/* === COLOR PALETTE & VARIABLES (from main site) === */
:root {
    --color-dark-bg: #1E1E40;
    --color-primary-blue: #40C9FF;
    --color-secondary-green: #A2FF86;
    --color-text-light: #f0f0f0;
    --color-subtle-light: #c0c0c0;
    --color-secondary-gold: #FFD700;
    --album-border: var(--color-primary-blue);
    --album-title: var(--color-secondary-green);
}

/* === BASIC RESET & BODY STYLING === */
* { box-sizing: border-box; }

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--color-primary-blue);
    color: var(--color-dark-bg);
    padding: 8px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
    font-weight: bold;
    z-index: 10000;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

body {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    color: var(--color-text-light);
    background-color: var(--color-dark-bg);
    background: url('https://public-assets.hembling.net/dashboard/floridasunset.png') no-repeat center center/cover;
    background-attachment: fixed;
    overflow-x: hidden;
    font-size: 85%; /* Reduce all text by 15% */
}

/* Smooth scrolling for anchor links */
html { scroll-behavior: smooth; }

.page-overlay {
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    min-height: 100vh;
    width: 100%;
}

/* === NAVIGATION STYLES (from main site) === */
.main-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    background-color: rgba(30, 30, 64, 0.95);
    backdrop-filter: blur(8px);
    padding: 0.9rem 1rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    border-bottom: 3px solid var(--color-secondary-gold);
}

.nav-logo a { text-decoration: none; font-size: 3.2rem; line-height: 1; }
.logo-name { color: var(--color-primary-blue); font-family: 'Pacifico', cursive; font-size: .85em; text-shadow: 4px 4px 0px rgba(0, 0, 0, 0.8), 0 0 10px rgba(64, 201, 255, 0.5); margin-right: 1px; }
.logo-suffix { color: var(--color-secondary-green); font-family: 'Montserrat', sans-serif; font-size: 0.55em; font-weight: 700; vertical-align: top; text-shadow: 0 0 5px rgba(162, 255, 134, 0.5); }
.nav-links { list-style: none; display: flex; margin: 0; padding: 0; gap: 5px; }
.nav-links a { display: block; padding: 10px 20px; border-radius: 8px; color: var(--color-text-light); text-decoration: none; font-weight: 600; border: 1px solid transparent; transition: all 0.3s ease; }
.nav-links a:hover { color: var(--color-primary-blue); background-color: rgba(162, 255, 134, 0.1); border-color: var(--color-primary-blue); transform: translateY(-2px); }
.nav-links a.active,
.nav-links a[aria-current="page"] {
    color: var(--color-primary-blue);
    background-color: rgba(162, 255, 134, 0.15);
    border-color: rgba(64, 201, 255, 0.6);
}

/* === MAIN CONTENT CONTAINER === */
.main-content {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 40px; /* Double side margin */
}

.profile-setup-placeholder {
    background: rgba(10, 10, 20, 0.85);
    border: 1px solid rgba(64, 201, 255, 0.4);
    border-radius: 12px;
    padding: 20px 28px;
    margin: 0 16px 32px;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.profile-setup-placeholder strong {
    display: block;
    font-size: 1.1em;
    margin-bottom: 6px;
}

.profile-setup-placeholder p {
    margin: 0;
    color: rgba(245, 247, 255, 0.8);
    line-height: 1.5;
}

/* Shared Section Heading Style */
.section-heading {
    color: var(--color-primary-blue);
    font-family: 'Montserrat', sans-serif;
    font-size: 1.8em;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 25px;
    border-bottom: 3px solid var(--color-secondary-green);
    padding-bottom: 8px;
    text-align: left;
    margin-left: 16px;
    margin-right: 16px;
}

/* === CORE SERVICES SECTION === */
.core-services {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 16px;
    margin-right: 16px;
}

.service-entry {
    display: grid;
    grid-template-columns: 1fr 160px; /* Main content + status column */
    gap: 12px;
    align-items: center;
    margin-bottom: 8px;
}

.service-buttons {
    display: flex;
    gap: 10px;
    align-items: stretch; /* Ensures all buttons in a row have the same height */
    margin-left: 8px;
    margin-right: 8px;
}

/* Base style for all service buttons for consistent sizing and alignment */
.service-buttons > .service-button {
    flex: 1 1 0%; /* Default to grow and shrink equally */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start; /* Align text to the left */
    padding: 18px 22px; /* A unified padding */
    text-align: left;
}

/* This targets ONLY the first service entry (Emby) to apply the 75/25 split */
.service-entry:first-child .service-button:first-child {
    flex-grow: 3; /* Emby button takes ~75% of the space */
}
.service-entry:first-child .service-button.request {
    flex-grow: 1; /* Request button takes ~25% of the space */
}

/* General button styling (colors, borders, etc.) */
.service-button {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 2px solid var(--color-primary-blue);
    color: var(--color-text-light);
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
    margin-left: 4px;
    margin-right: 4px;
}

.service-button:hover {
    transform: translateY(-5px);
    background: rgba(30, 30, 64, 0.9);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 20px var(--color-primary-blue);
}

.service-button .service-title {
    display: block;
    font-size: 1.2em;
    color: var(--color-text-light);
    font-weight: 700;
    margin-bottom: 4px;
}

.service-button .service-description {
    display: block;
    font-size: 0.85em;
    color: var(--color-subtle-light);
}

/* Styling for the "Request" button */
.service-button.request {
    background: var(--color-secondary-gold);
    border-color: transparent;
    color: var(--color-dark-bg);
    font-weight: 700;
    align-items: center; /* Center the single word "Request" */
    font-size: 1em;
    padding: 12px 10px;
}

.service-button.request:hover {
    background: #ffe44d; /* Lighter gold on hover */
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
}

/* Status styling (no changes needed here) */
.service-status {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,0.02);
    padding: 8px 10px;
    border-radius: 10px;
    font-weight: 700;
    color: var(--color-subtle-light);
    min-width: 120px;
    justify-content: center;
}
.service-status .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #bbb;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

/* Greeting */
.greeting {
    font-size: 1.1em;
    color: var(--color-text-light);
    margin-top: 10px;
    margin-bottom: 6px;
    font-weight: 700;
    margin-left: 16px;
    margin-right: 16px;
}

/* === FAMILY FEED SECTION === */
#family-feed-section {
    margin-top: 60px;
}

.feed-form {
    background: rgba(10, 10, 20, 0.85);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(64, 201, 255, 0.3);
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 40px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    margin-left: 16px;
    margin-right: 16px;
}

.feed-form .form-header h3 {
    margin: 0 0 5px 0;
    font-size: 1.4em;
    color: var(--color-primary-blue);
}

.feed-form .form-header p {
    margin: 0 0 20px 0;
    color: var(--color-subtle-light);
}

.feed-form textarea {
    width: 100%;
    height: 100px;
    background: #111125;
    border: 1px solid var(--color-primary-blue);
    color: var(--color-text-light);
    padding: 12px;
    border-radius: 8px;
    font-size: 1em;
    font-family: 'Montserrat', sans-serif;
    resize: vertical;
    margin-bottom: 20px;
}

.poster-context {
    margin: 12px 0 8px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(245, 247, 255, 0.7);
    font-size: 0.95rem;
}

.poster-context-name {
    font-weight: 600;
    color: var(--color-primary-blue);
}

.poster-context.poster-context-warning {
    color: rgba(255, 107, 107, 0.85);
}

.poster-context.poster-context-warning .poster-context-name {
    color: #ff6b6b;
}

.feed-form .form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 15px;
}

.feed-form .form-actions .form-submit-btn {
    margin-left: auto;
}

.image-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: transparent;
    border: 1px solid var(--color-primary-blue);
    color: var(--color-primary-blue);
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.image-upload-btn:hover {
    background-color: rgba(64, 201, 255, 0.1);
    color: var(--color-text-light);
}

#file-chosen-text {
    font-size: 0.9em;
    color: var(--color-subtle-light);
    flex-grow: 1; /* Pushes the submit button to the right */
}

.form-error-message {
    color: #ff6b6b;
    font-weight: 600;
    margin-top: 15px;
    text-align: center;
    display: none; /* Hidden by default */
}

/* === UPLOAD SECTION & PHOTO ALBUM OPTION === */
.upload-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1 1 260px;
}

.photo-album-option {
    margin-top: 10px;
    padding: 10px;
    background: rgba(64, 201, 255, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(64, 201, 255, 0.3);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    cursor: pointer;
    font-size: 0.9em;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    accent-color: var(--color-secondary-green);
}

.checkmark {
    display: none;
}

/* === RECENT UPDATES SECTION === */
.recent-updates {
    margin: 30px 16px 20px 16px;
    background: rgba(10, 10, 20, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(64, 201, 255, 0.4);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.recent-updates-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(64, 201, 255, 0.3);
    padding-bottom: 10px;
}

.recent-updates-header h3 {
    color: var(--color-text-light);
    font-size: 1.3em;
    margin: 0;
}

.live-indicator {
    font-size: 0.8em;
    color: var(--color-secondary-green);
    font-weight: 600;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

.recent-posts-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 400px;
    overflow-y: auto;
}

.loading-posts {
    text-align: center;
    color: var(--color-subtle-light);
    font-style: italic;
    padding: 20px;
}

.recent-post-item {
    background: rgba(20, 20, 35, 0.82);
    border: 1px solid rgba(64, 201, 255, 0.22);
    border-radius: 10px;
    padding: 16px 18px;
    cursor: pointer;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.recent-post-item:hover {
    transform: translateY(-3px);
    border-color: rgba(64, 201, 255, 0.45);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

.recent-post-item:focus-visible {
    outline: none;
    border-color: rgba(64, 201, 255, 0.65);
    box-shadow: 0 0 0 3px rgba(64, 201, 255, 0.35);
}

.recent-post-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.recent-post-title {
    font-size: 1em;
    font-weight: 600;
    color: var(--color-text-light);
    margin: 0;
}

.recent-post-time {
    font-size: 0.82em;
    color: var(--color-subtle-light);
    white-space: nowrap;
}

.recent-post-content {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.recent-thumbnail {
    width: 64px;
    height: 64px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(64, 201, 255, 0.3);
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.recent-post-snippet {
    color: var(--color-text-light);
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.view-more-section {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(64, 201, 255, 0.2);
}

.view-more-link {
    color: var(--color-secondary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 1em;
    transition: color 0.3s ease;
}

.view-more-link:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

/* === PHOTO MODAL === */
.photo-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.photo-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
}

.photo-modal-content {
    position: relative;
    background: rgba(10, 10, 20, 0.95);
    border: 1px solid rgba(64, 201, 255, 0.4);
    border-radius: 12px;
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.photo-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.3s ease;
}

.photo-modal-close:hover {
    background: rgba(255, 0, 0, 0.7);
}

.photo-modal-image {
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    display: block;
}

.photo-modal-info {
    padding: 20px;
    border-top: 1px solid rgba(64, 201, 255, 0.3);
}

.photo-modal-author {
    font-weight: 600;
    color: var(--color-text-light);
    margin-bottom: 5px;
}

.photo-modal-date {
    font-size: 0.9em;
    color: var(--color-subtle-light);
    margin-bottom: 10px;
}

.photo-modal-caption {
    color: var(--color-text-light);
    line-height: 1.5;
    white-space: pre-wrap;
}

/* === FEED PAGE SPECIFIC STYLES === */
.feed-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(64, 201, 255, 0.1), rgba(162, 255, 134, 0.1));
    border-bottom: 1px solid rgba(64, 201, 255, 0.3);
}

.feed-header-content {
    max-width: 800px;
    margin: 0 auto;
}

.page-title {
    font-size: 2.5em;
    color: var(--color-text-light);
    margin: 0 0 10px 0;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.1em;
    color: var(--color-subtle-light);
    margin: 0 0 20px 0;
}

.back-link {
    color: var(--color-secondary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: var(--color-primary-blue);
    text-decoration: underline;
}

.share-update-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.share-form-container {
    background: rgba(10, 10, 20, 0.9);
    border: 1px solid rgba(64, 201, 255, 0.4);
    border-radius: 12px;
    overflow: hidden;
}

.expand-share-btn {
    width: 100%;
    padding: 20px;
    background: rgba(64, 201, 255, 0.1);
    border: none;
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background 0.3s ease;
}

.expand-share-btn:hover {
    background: rgba(64, 201, 255, 0.2);
}

.expand-share-btn svg {
    width: 20px;
    height: 20px;
}

.feed-form.collapsed {
    display: none;
}

.feed-form .form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
}

.collapse-btn {
    background: none;
    border: none;
    color: var(--color-subtle-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.3s ease;
}

.collapse-btn:hover {
    color: var(--color-text-light);
}

.feed-controls {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.feed-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(64, 201, 255, 0.3);
    border-radius: 8px;
    padding: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.sort-options, .filter-options {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sort-options label, .filter-options label {
    color: var(--color-text-light);
    font-weight: 600;
}

.sort-select {
    padding: 5px 10px;
    background: rgba(20, 20, 35, 0.9);
    border: 1px solid rgba(64, 201, 255, 0.3);
    border-radius: 4px;
    color: var(--color-text-light);
}

.filter-checkbox {
    accent-color: var(--color-secondary-green);
}

.feed-stats {
    color: var(--color-subtle-light);
    font-size: 0.9em;
}

.full-feed-section {
    padding: 20px 0 60px;
    max-width: 1200px;
    margin: 0 auto;
}

.full-feed-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 28px;
    padding: 0 16px;
}

@media (min-width: 768px) {
    .full-feed-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 24px;
    }
}

@media (min-width: 1280px) {
    .full-feed-container {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 32px;
    }
}

.load-more-section {
    text-align: center;
    margin-top: 30px;
}

.load-more-btn {
    background: rgba(64, 201, 255, 0.1);
    border: 1px solid rgba(64, 201, 255, 0.4);
    color: var(--color-text-light);
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.load-more-btn:hover {
    background: rgba(64, 201, 255, 0.2);
    transform: translateY(-2px);
}

/* === RESPONSIVE DESIGN FOR FEED PAGE === */
@media (max-width: 768px) {
    .feed-controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .sort-options, .filter-options {
        justify-content: center;
    }
    
    .page-title {
        font-size: 2em;
    }
}

/* === ALBUM PAGE STYLES === */
.album-header {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(162, 255, 134, 0.1), rgba(64, 201, 255, 0.1));
    border-bottom: 1px solid rgba(162, 255, 134, 0.3);
}

/* === MY PHOTOS SECTION === */
.my-photos-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
    margin-bottom: 20px;
}

.my-photos-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid rgba(162, 255, 134, 0.4);
}

.my-photos-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.upload-photo-btn {
    background: var(--color-secondary-green);
    color: var(--color-dark-bg);
    border: none;
    padding: 10px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    font-size: 0.9em;
}

.upload-photo-btn:hover {
    background: var(--color-primary-blue);
    color: var(--color-text-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(162, 255, 134, 0.3);
}

.upload-photo-btn svg {
    width: 20px;
    height: 20px;
}

.my-photos-title {
    color: var(--color-text-light);
    font-size: 1.8em;
    margin: 0;
    font-weight: 700;
}

.my-photos-count {
    color: var(--color-secondary-green);
    font-weight: 600;
    font-size: 1.1em;
}

.my-photos-container {
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(162, 255, 134, 0.3);
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.my-photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 15px;
    margin-bottom: 15px;
}

.my-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 2px solid rgba(162, 255, 134, 0.3);
}

.my-photo-item:hover {
    transform: translateY(-3px);
    border-color: var(--color-secondary-green);
    box-shadow: 0 6px 20px rgba(162, 255, 134, 0.2);
}

.my-photo-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.my-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.my-photo-item:hover img {
    transform: scale(1.03);
}

.my-photo-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0, 0, 0, 0.7) 0%, 
        transparent 30%, 
        transparent 70%, 
        rgba(0, 0, 0, 0.7) 100%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 12px;
}

.my-photo-item:hover .my-photo-overlay {
    opacity: 1;
}

.my-photo-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
}

.view-photo-btn, .delete-photo-btn {
    background: rgba(0, 0, 0, 0.8);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: white;
}

.view-photo-btn:hover {
    background: var(--color-primary-blue);
    transform: scale(1.1);
}

.delete-photo-btn:hover {
    background: #ff4757;
    transform: scale(1.1);
}

.my-photo-info {
    display: flex;
    justify-content: flex-end;
}

.my-photo-date {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 0.8em;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
}

.my-photos-toggle {
    text-align: center;
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(162, 255, 134, 0.2);
}

.toggle-my-photos-btn {
    background: rgba(162, 255, 134, 0.1);
    border: 1px solid rgba(162, 255, 134, 0.3);
    color: var(--color-text-light);
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
    transition: all 0.3s ease;
}

.toggle-my-photos-btn:hover {
    background: rgba(162, 255, 134, 0.2);
    border-color: var(--color-secondary-green);
    transform: translateY(-2px);
}

.toggle-my-photos-btn svg {
    transition: transform 0.3s ease;
}

.no-my-photos {
    text-align: center;
    padding: 40px 20px;
    color: var(--color-text-light);
}

.no-my-photos p {
    margin-bottom: 20px;
    color: var(--color-subtle-light);
    font-size: 1.1em;
}

.btn.btn-secondary {
    background: rgba(64, 201, 255, 0.2);
    color: var(--color-primary-blue);
    border: 1px solid rgba(64, 201, 255, 0.4);
}

.btn.btn-secondary:hover {
    background: rgba(64, 201, 255, 0.3);
    color: var(--color-text-light);
    transform: translateY(-2px);
}

.loading-my-photos {
    text-align: center;
    color: var(--color-subtle-light);
    font-style: italic;
    padding: 40px;
    font-size: 1.1em;
}

/* === UPLOAD FORM STYLES === */
.upload-form-container {
    background: rgba(20, 20, 35, 0.95);
    border: 1px solid rgba(64, 201, 255, 0.4);
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.album-upload-form {
    padding: 0;
}

.upload-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid rgba(64, 201, 255, 0.3);
    background: rgba(64, 201, 255, 0.1);
}

.upload-form-header h3 {
    color: var(--color-text-light);
    margin: 0;
    font-size: 1.3em;
    font-weight: 600;
}

.close-upload-btn {
    background: none;
    border: none;
    color: var(--color-subtle-light);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.close-upload-btn:hover {
    color: var(--color-text-light);
    background: rgba(255, 255, 255, 0.1);
}

.upload-form-body {
    padding: 25px;
}

.upload-input-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 20px;
    border: 2px dashed rgba(64, 201, 255, 0.3);
    border-radius: 8px;
    transition: border-color 0.3s ease;
}

.upload-input-section:hover {
    border-color: rgba(64, 201, 255, 0.5);
}

.album-file-input-label {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(64, 201, 255, 0.2);
    color: var(--color-text-light);
    padding: 12px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(64, 201, 255, 0.4);
}

.album-file-input-label:hover {
    background: rgba(64, 201, 255, 0.3);
    transform: translateY(-2px);
}

#file-chosen-text {
    font-size: 0.9em;
    color: var(--color-subtle-light);
    min-width: 160px;
}

@media (max-width: 768px) {
    .feed-form .form-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .feed-form .form-actions .form-submit-btn {
        width: 100%;
        margin-left: 0;
    }

    #file-chosen-text {
        min-width: unset;
    }
}

.upload-preview {
    position: relative;
    margin-bottom: 20px;
    text-align: center;
}

.upload-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    border: 1px solid rgba(64, 201, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.remove-preview-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff4757;
    color: white;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.remove-preview-btn:hover {
    transform: scale(1.1);
}

.upload-details {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.form-group label {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9em;
}

.form-group input,
.form-group textarea {
    padding: 10px 12px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(64, 201, 255, 0.3);
    border-radius: 6px;
    color: var(--color-text-light);
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    box-shadow: 0 0 0 2px rgba(64, 201, 255, 0.2);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.upload-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 15px;
    border-top: 1px solid rgba(64, 201, 255, 0.3);
}

.upload-error-message {
    background: rgba(255, 71, 87, 0.2);
    border: 1px solid rgba(255, 71, 87, 0.4);
    color: #ff4757;
    padding: 12px 15px;
    border-radius: 6px;
    margin: 15px 25px;
    font-weight: 600;
}

.upload-progress {
    padding: 15px 25px;
    border-top: 1px solid rgba(64, 201, 255, 0.3);
    background: rgba(64, 201, 255, 0.05);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(64, 201, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: var(--color-primary-blue);
    width: 0%;
    transition: width 0.3s ease;
    animation: pulse 1.5s infinite;
}

.progress-text {
    color: var(--color-text-light);
    font-size: 0.9em;
    font-weight: 600;
}

.album-stats {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(162, 255, 134, 0.3);
    border-radius: 12px;
    padding: 20px;
    gap: 20px;
}

.stat-item {
    text-align: center;
    flex: 1;
}

.stat-number {
    display: block;
    font-size: 2em;
    font-weight: 700;
    color: var(--color-secondary-green);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--color-subtle-light);
    font-size: 0.9em;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.album-controls {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.album-controls-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(162, 255, 134, 0.3);
    border-radius: 8px;
    padding: 15px;
    gap: 20px;
    flex-wrap: wrap;
}

.view-options {
    display: flex;
    gap: 10px;
}

.view-btn {
    padding: 8px 12px;
    background: rgba(20, 20, 35, 0.8);
    border: 1px solid rgba(162, 255, 134, 0.3);
    border-radius: 6px;
    color: var(--color-text-light);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn:hover, .view-btn.active {
    background: rgba(162, 255, 134, 0.2);
    border-color: var(--color-secondary-green);
}

.album-section {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.album-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.album-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.album-photo-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    transition: transform 0.3s ease;
    border: 1px solid rgba(162, 255, 134, 0.3);
}

.album-photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.album-photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.album-photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 15px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.album-photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.photo-photographer {
    color: var(--color-text-light);
    font-weight: 600;
    font-size: 0.9em;
}

.photo-date {
    color: var(--color-subtle-light);
    font-size: 0.8em;
}

.album-photo-list-item {
    display: flex;
    gap: 15px;
    background: rgba(10, 10, 20, 0.8);
    border: 1px solid rgba(162, 255, 134, 0.3);
    border-radius: 12px;
    padding: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.album-photo-list-item:hover {
    background: rgba(20, 20, 35, 0.9);
    transform: translateY(-2px);
}

.list-thumbnail {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
    border: 1px solid rgba(162, 255, 134, 0.3);
}

.list-photo-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.list-photo-title {
    color: var(--color-text-light);
    font-size: 1.1em;
    font-weight: 600;
    margin: 0;
}

.list-photo-description {
    color: var(--color-text-light);
    font-size: 0.9em;
    line-height: 1.4;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.list-photo-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.list-photo-photographer {
    color: var(--color-secondary-green);
    font-weight: 600;
    font-size: 0.9em;
}

.list-photo-date {
    color: var(--color-subtle-light);
    font-size: 0.8em;
}

.no-photos {
    text-align: center;
    padding: 60px 20px;
    color: var(--color-text-light);
}

.no-photos h3 {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: var(--color-secondary-green);
}

.no-photos p {
    margin-bottom: 20px;
    color: var(--color-subtle-light);
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn.btn-primary {
    background: var(--color-secondary-green);
    color: var(--color-dark-bg);
}

.btn.btn-primary:hover {
    background: var(--color-primary-blue);
    transform: translateY(-2px);
}

.album-load-more {
    text-align: center;
    margin-top: 30px;
}

.loading-photos {
    text-align: center;
    color: var(--color-subtle-light);
    font-style: italic;
    padding: 40px;
    font-size: 1.1em;
}

/* === RESPONSIVE DESIGN FOR ALBUM === */
@media (max-width: 768px) {
    .stats-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .stat-item {
        border-bottom: 1px solid rgba(162, 255, 134, 0.2);
        padding-bottom: 15px;
    }
    
    .stat-item:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .album-controls-container {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .view-options {
        justify-content: center;
    }
    
    .album-grid.grid-view {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    .album-photo-list-item {
        flex-direction: column;
        text-align: center;
    }
    
    .list-thumbnail {
        width: 150px;
        height: 150px;
        align-self: center;
    }
    
    .list-photo-meta {
        flex-direction: column;
        gap: 5px;
    }
    
    /* My Photos responsive styles */
    .my-photos-header {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
    
    .my-photos-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .my-photos-title {
        font-size: 1.5em;
    }
    
    .my-photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }
    
    .my-photo-actions {
        gap: 6px;
    }
    
    .view-photo-btn, .delete-photo-btn {
        width: 32px;
        height: 32px;
    }
    
    .my-photo-date {
        font-size: 0.7em;
        padding: 3px 6px;
    }
    
    /* Upload form responsive styles */
    .upload-form-header {
        padding: 15px 20px;
    }
    
    .upload-form-header h3 {
        font-size: 1.1em;
    }
    
    .upload-form-body {
        padding: 20px;
    }
    
    .upload-actions {
        flex-direction: column-reverse;
        gap: 10px;
    }
    
    .upload-actions .btn {
        width: 100%;
        text-align: center;
    }
    
    .album-file-input-label {
        padding: 10px 16px;
        font-size: 0.9em;
    }
    
    .upload-details {
        gap: 12px;
    }
}

/* === FEED POSTS CONTAINER === */
.posts-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 30px 16px 60px;
}

@media (min-width: 768px) {
    .posts-container {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    }
}

@media (min-width: 1280px) {
    .posts-container {
        grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
        gap: 28px;
    }
}

.feed-post {
    background: rgba(10, 10, 20, 0.88);
    border: 1px solid rgba(64, 201, 255, 0.28);
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
    min-height: 0;
}

.feed-post:hover {
    transform: translateY(-6px);
    border-color: rgba(64, 201, 255, 0.55);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.5);
}

.feed-post-media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: rgba(20, 20, 35, 0.9);
    overflow: hidden;
}

.feed-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.feed-post:hover .feed-post-media img {
    transform: scale(1.03);
}

.feed-post-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.feed-post-meta {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    font-size: 0.9em;
}

.feed-post-author {
    font-weight: 600;
    color: var(--color-text-light);
    letter-spacing: 0.01em;
}

.feed-post-time {
    font-size: 0.85em;
    color: var(--color-subtle-light);
    text-align: right;
}

.feed-post-text {
    color: var(--color-text-light);
    font-size: 0.95em;
    line-height: 1.6;
    white-space: pre-wrap;
}

.feed-post-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 8px;
}

.feed-post-actions button {
    background: rgba(64, 201, 255, 0.12);
    border: 1px solid rgba(64, 201, 255, 0.4);
    color: var(--color-primary-blue);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 0.8em;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.feed-post-actions button:hover {
    background: rgba(64, 201, 255, 0.22);
    border-color: rgba(64, 201, 255, 0.6);
    color: var(--color-text-light);
}

.feed-post-highlight {
    box-shadow: 0 0 0 2px rgba(64, 201, 255, 0.65), 0 20px 40px rgba(0, 0, 0, 0.55);
}

/* === NEWS SECTION (from main site) === */
.news-feed { display: flex; flex-direction: column; gap: 25px; margin-bottom: 60px; margin-left: 16px; margin-right: 16px; }
.news-item { background: rgba(10, 10, 20, 0.85); backdrop-filter: blur(8px); border: 1px solid rgba(64, 201, 255, 0.3); padding: 20px; border-radius: 10px; text-align: left; box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4); }
.news-title { font-size: 1.3em; color: var(--color-primary-blue); margin-bottom: 5px; font-weight: 700; }
.news-date { font-size: 0.9em; color: var(--color-subtle-light); margin-bottom: 15px; }

/* === COMPLAINTS DEPARTMENT === */
.complaints-section {
    text-align: center;
    margin-top: 50px;
    padding: 40px;
    background: rgba(10, 10, 20, 0.7);
    border-radius: 12px;
    border-top: 2px solid var(--color-secondary-gold);
    margin-left: 16px;
    margin-right: 16px;
}

.complaint-btn {
    background-color: var(--color-secondary-gold);
    color: var(--color-dark-bg);
    border: none;
    padding: 15px 30px;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 10px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.complaint-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4), 0 0 25px rgba(255, 215, 0, 0.7);
}

/* === COMPLAINT MODAL & FORM STYLES === */
.complaint-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: none; /* Initially hidden */
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.complaint-form-container {
    position: relative;
    background: var(--color-dark-bg);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--color-secondary-green);
    box-shadow: 0 0 30px rgba(162, 255, 134, 0.5);
    width: 90%;
    max-width: 500px;
    text-align: center;
    /* Animation properties */
    transition: transform 0.5s ease-in-out, opacity 0.5s ease;
}

.complaint-form-container.crumple {
    transform: scale(0) rotate(360deg);
    opacity: 0;
}

.complaint-form-container.drop {
    transition: transform 0.6s cubic-bezier(0.55, 0, 1, 0.45); /* Gravity effect */
    transform: translateY(200px) scale(0) rotate(360deg);
}

.complaint-form-container h3 {
    color: var(--color-secondary-green);
    margin-top: 0;
    font-size: 1.6em;
}

.complaint-form-container textarea {
    width: 100%;
    height: 150px;
    background: #111125;
    border: 1px solid var(--color-primary-blue);
    color: var(--color-text-light);
    padding: 10px;
    border-radius: 8px;
    font-size: 1em;
    margin-bottom: 20px;
    box-sizing: border-box;
    resize: none;
}

.form-submit-btn {
    background-color: var(--color-secondary-green);
    color: var(--color-dark-bg);
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background-color 0.2s ease;
}
.form-submit-btn:hover { background-color: #c1ffab; }

/* Garbage Can Styling (fixed so the animation is visible) */
#garbage-can {
    position: fixed;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%) translateY(120px);
    width: 100px;
    height: 120px;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.45s cubic-bezier(0.22, 0.9, 0.38, 1);
    z-index: 3500;
}
#garbage-can.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
#garbage-can.disappear {
    transform: translateX(-50%) translateY(200px);
    opacity: 0;
}

/* Flying clone used to animate the form into the trash can */
.fly-clone {
    position: fixed;
    z-index: 3600;
    box-shadow: 0 12px 40px rgba(0,0,0,0.6);
    transition: transform 0.7s cubic-bezier(0.22, 0.9, 0.38, 1), opacity 0.5s ease;
    will-change: transform, opacity;
    pointer-events: none;
    overflow: hidden;
}

/* subtle acceptance pulse on the garbage can + lid snap */
#garbage-can.accept {
    transform: translateX(-50%) scale(1.05);
    transition: transform 0.18s cubic-bezier(.2,.9,.2,1);
}

/* lid styling and snap animation */
#garbage-lid {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
    width: 64px;
    height: 10px;
    background: #A2FF86;
    border-radius: 3px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.35);
    transform-origin: center center;
    transition: transform 0.18s cubic-bezier(.2,.9,.2,1);
    z-index: 3050;
}

/* lid closed state when accept class is present on can */
#garbage-can.accept #garbage-lid {
    transform: translateX(-50%) rotate(30deg) translateY(6px);
}

/* Toast message when complaint has been deleted */
.toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(162,255,134,0.12);
    color: var(--color-secondary-green);
    border: 1px solid rgba(162,255,134,0.25);
    padding: 10px 18px;
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 6px 20px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, transform 0.25s ease;
    z-index: 4000;
}
.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(-6px);
}

/* Responsive */
/* === HAMBURGER MENU & MOBILE NAV === */
.hamburger-menu {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px;
    height: 44px;
    background: rgba(30,30,64,0.7);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    z-index: 1201;
    margin-right: 8px;
    transition: background 0.2s;
}
.hamburger-menu:focus, .hamburger-menu:hover {
    background: rgba(30,30,64,0.95);
    outline: 2px solid var(--color-primary-blue);
}
.hamburger-menu .bar {
    display: block;
    width: 28px;
    height: 4px;
    margin: 3px 0;
    background: var(--color-primary-blue);
    border-radius: 2px;
    transition: all 0.3s;
}

.mobile-nav-drawer {
    position: fixed;
    top: 0;
    right: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: rgba(20, 20, 40, 0.98);
    box-shadow: -8px 0 32px rgba(0,0,0,0.7);
    z-index: 1200;
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(.4,1.2,.4,1), background 0.2s;
    opacity: 1;
    pointer-events: auto;
}
.mobile-nav-drawer.open {
    transform: translateX(0);
}
.mobile-nav-links {
    list-style: none;
    margin: 0;
    padding: 40px 0 0 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
.mobile-nav-links a.active,
.mobile-nav-links a[aria-current="page"] {
    color: var(--color-primary-blue);
}
    width: 100%;
}
.mobile-nav-links li {
    width: 100%;
    text-align: left;
}
.mobile-nav-links a {
    display: block;
    width: 100%;
    padding: 18px 32px;
    color: var(--color-text-light);
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 700;
    border-radius: 0;
    background: none;
    border-left: 4px solid transparent;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.mobile-nav-links a:active, .mobile-nav-links a:focus, .mobile-nav-links a:hover {
    background: rgba(64,201,255,0.10);
    color: var(--color-primary-blue);
    border-left: 4px solid var(--color-primary-blue);
}

@media (max-width: 900px) {
    .main-nav {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        padding: 0.5rem 1rem;
    }
    .nav-logo { margin-bottom: 0; }
    .nav-links {
        display: none !important;
    }
    .hamburger-menu {
        display: flex;
    }
}
@media (max-width: 768px) {
    .main-content {
        padding: 0 10px;
    }
    .section-heading, .core-services, .feed-form, .posts-container, .news-feed, .complaints-section, .greeting {
        margin-left: 4px;
        margin-right: 4px;
    }
}

/* === DIRECTORY PAGE STYLES === */
.directory-list { margin-top: 20px; }
.directory-category { background: rgba(10,10,20,0.75); padding: 12px; border-radius: 10px; border: 1px solid rgba(64,201,255,0.08); }
.category-title { color: var(--color-primary-blue); margin: 0 0 10px 0; font-size: 1.1em; }
.directory-entries { max-height: 60vh; overflow: auto; display: flex; flex-direction: column; gap: 12px; padding-right: 8px; }
.directory-entry { display: flex; gap: 12px; align-items: center; padding: 10px; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid rgba(162,255,134,0.03); }
.entry-photo { width: 72px; height: 72px; border-radius: 8px; object-fit: cover; border: 2px solid rgba(64,201,255,0.08); }
.entry-body { display: flex; flex-direction: column; gap: 6px; }
.entry-name { font-weight: 800; color: var(--color-text-light); }
.entry-phone, .entry-address, .entry-email { font-size: 0.95em; color: var(--color-subtle-light); }
.entry-email a { color: var(--color-secondary-green); text-decoration: none; }
.entry-email a:hover { text-decoration: underline; }

/* === FOOTER STYLES === */
.main-footer {
    height: 50px; /* Provides extra scroll space at the bottom */
    margin-top: 80px; /* Creates space between the last section and the footer */
    border-top: 3px solid var(--color-secondary-gold);
    background-color: rgba(30, 30, 64, 0.85); /* Matches the nav bar's dark, semi-transparent feel */
    backdrop-filter: blur(8px);
}

/* === ALBUM PAGE STYLES === */
.album-collection { margin-bottom: 28px; margin-left: 16px; margin-right: 16px; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-top: 12px; }
.album-item { background: rgba(10,10,20,0.6); border: 3px solid var(--album-border); border-radius: 8px; overflow: hidden; height: 0; padding-bottom: 66%; position: relative; transition: transform 0.28s ease, box-shadow 0.28s ease; }
.album-item img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.35s ease; }

/* Hover zoom */
.album-item:hover { transform: scale(1.03); box-shadow: 0 10px 30px rgba(0,0,0,0.6); }
.album-item:hover img { transform: scale(1.12); }

/* Expanded photo modal */
.photo-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(0,0,0,0.9); z-index: 6000; }
.photo-modal.open { display: flex; }
.photo-modal .photo-wrap { max-width: 95%; max-height: 95%; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 40px rgba(0,0,0,0.7); border: 6px solid var(--album-border); }
.photo-modal img { display: block; width: 100%; height: auto; max-height: 95vh; object-fit: contain; background: var(--color-dark-bg); }
.photo-modal .photo-close { position: absolute; right: 22px; top: 22px; background: transparent; color: var(--color-text-light); border: none; font-size: 1.6rem; cursor: pointer; }

/* Album section title color */
.album-collection .category-title { color: var(--album-title); }

/* === HELP MODAL STYLES === */
.help-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    backdrop-filter: blur(5px);
}

.help-modal.open {
    display: flex;
}

.help-modal-content {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a2a5a 100%);
    border-radius: 15px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    border: 2px solid var(--color-primary-blue);
}

.help-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    color: var(--color-subtle-light);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 5001;
    background: transparent;
    border: none;
}

.help-close:hover {
    color: var(--color-primary-blue);
    transform: scale(1.1);
}

.help-modal-header {
    text-align: center;
    padding: 30px 30px 20px;
    border-bottom: 2px solid var(--color-primary-blue);
}

.help-modal-header h2 {
    font-family: var(--font-display);
    font-size: 2em;
    margin-bottom: 10px;
    color: var(--color-text-light);
}

.help-modal-subtitle {
    font-size: 1.1em;
    color: var(--color-primary-blue);
    font-weight: 600;
}

.help-modal-body {
    padding: 20px 30px 30px;
}

.help-section {
    margin-bottom: 25px;
}

.help-section h3 {
    color: var(--color-secondary-green);
    font-size: 1.2em;
    margin-bottom: 10px;
    font-weight: 600;
}

.help-section p {
    color: var(--color-text-light);
    line-height: 1.6;
    margin-bottom: 10px;
}

.help-section ul,
.help-section ol {
    color: var(--color-text-light);
    margin-left: 20px;
    line-height: 1.6;
}

.help-section li {
    margin-bottom: 5px;
}

.help-section strong {
    color: var(--color-primary-blue);
}

.help-cta {
    text-align: center;
    padding: 20px;
    background: rgba(64, 201, 255, 0.1);
    border-radius: 10px;
    border: 1px solid var(--color-primary-blue);
}

.help-cta p {
    color: var(--color-text-light);
    font-size: 1.1em;
    margin-bottom: 15px;
}

.help-email-btn {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-green));
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.help-email-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.4);
}

.help-email-btn:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .help-modal-content {
        width: 95%;
        max-height: 90vh;
        margin: 10px;
    }
    
    .help-modal-header {
        padding: 20px 20px 15px;
    }
    
    .help-modal-header h2 {
        font-size: 1.5em;
    }
    
    .help-modal-body {
        padding: 15px 20px 20px;
    }
    
    .help-section h3 {
        font-size: 1.1em;
    }
    
    .help-section ul,
    .help-section ol {
        margin-left: 15px;
    }
}

/* === REQUEST ACCESS MODAL STYLES === */
.request-access-modal {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.75);
    z-index: 5000;
}

.request-access-modal.hidden {
    display: none;
}

.ram-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.75);
}

.ram-card {
    position: relative;
    width: 92%;
    max-width: 500px;
    background: var(--color-dark-bg);
    padding: 24px;
    border-radius: 12px;
    border: 2px solid rgba(64,201,255,0.2);
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
}

.ram-close {
    position: absolute;
    right: 18px;
    top: 18px;
    background: transparent;
    color: var(--color-text-light);
    border: none;
    font-size: 1.4rem;
    cursor: pointer;
    padding: 4px;
}

.ram-close:hover {
    color: var(--color-primary-blue);
}

.ram-card h2 {
    color: var(--color-primary-blue);
    margin: 0 0 16px 0;
    font-size: 1.5rem;
}

.ram-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.ram-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: var(--color-text-light);
    font-weight: 600;
}

.ram-form input {
    padding: 12px;
    border: 2px solid rgba(64,201,255,0.3);
    border-radius: 6px;
    background: rgba(30,30,64,0.8);
    color: var(--color-text-light);
    font-size: 1rem;
}

.ram-form input:focus {
    outline: none;
    border-color: var(--color-primary-blue);
}

.ram-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 8px;
}

.ram-actions button {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.ram-cancel {
    background: rgba(128,128,128,0.2);
    color: var(--color-text-light);
}

.ram-cancel:hover {
    background: rgba(128,128,128,0.4);
}

.ram-actions button[type="submit"] {
    background: var(--color-primary-blue);
    color: var(--color-dark-bg);
}

.ram-actions button[type="submit"]:hover {
    background: var(--color-secondary-green);
}

.ram-msg {
    margin: 12px 0 0 0;
    font-size: 0.9rem;
    color: var(--color-secondary-green);
    min-height: 1.2em;
}

/* === PROFILE SYSTEM STYLES === */
.profile-nav-item {
    position: relative;
}

.profile-button {
    background: none;
    border: 2px solid var(--color-primary-blue);
    border-radius: 50%;
    padding: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-button:hover {
    border-color: var(--color-secondary-green);
    transform: scale(1.05);
}

.profile-picture {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--color-dark-bg);
}

.profile-dropdown {
    position: absolute;
    top: 50px;
    right: 0;
    background: var(--color-dark-bg);
    border: 2px solid var(--color-primary-blue);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    z-index: 6000;
    min-width: 320px;
    max-width: 400px;
    display: none; /* Hidden by default */
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.profile-dropdown.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.profile-dropdown-content {
    padding: 20px;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(64, 201, 255, 0.2);
}

.profile-large-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-blue);
}

.profile-info h3 {
    color: var(--color-text-light);
    margin: 0 0 5px 0;
    font-size: 1.1em;
}

.profile-info p {
    color: var(--color-subtle-light);
    margin: 0;
    font-size: 0.9em;
}

.profile-section {
    margin-bottom: 20px;
}

.profile-section label {
    display: block;
    color: var(--color-text-light);
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9em;
}

.profile-section input[type="text"] {
    width: 100%;
    padding: 8px 12px;
    background: rgba(64, 201, 255, 0.1);
    border: 1px solid var(--color-primary-blue);
    border-radius: 8px;
    color: var(--color-text-light);
    font-size: 0.9em;
    margin-bottom: 10px;
}

.profile-section input[type="text"]:focus {
    outline: none;
    border-color: var(--color-secondary-green);
    box-shadow: 0 0 0 2px rgba(162, 255, 134, 0.2);
}

.profile-btn {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-secondary-green));
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-right: 8px;
    margin-bottom: 8px;
}

.profile-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.profile-remove-btn {
    background: linear-gradient(135deg, #f44336, #da190b) !important;
}

.profile-logout-btn {
    background: linear-gradient(135deg, #666, #333) !important;
    width: 100%;
    margin-right: 0;
}

.profile-upload-btn {
    background: linear-gradient(135deg, var(--color-secondary-green), #4CAF50) !important;
}

/* Extended Profile Sections */
.profile-section-title {
    color: var(--color-secondary-green);
    font-size: 0.9em;
    margin: 15px 0 10px 0;
    padding: 8px 0;
    border-bottom: 1px solid rgba(162, 255, 134, 0.3);
    display: flex;
    align-items: center;
    gap: 8px;
}

.directory-section {
    background: rgba(162, 255, 134, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.profile-checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
}

.profile-checkbox {
    width: 18px;
    height: 18px;
    accent-color: var(--color-secondary-green);
    cursor: pointer;
}

.profile-checkbox-group label {
    cursor: pointer;
    font-size: 0.9em;
    margin: 0;
}

.profile-help-text {
    color: var(--color-subtle-light);
    font-size: 0.8em;
    font-style: italic;
    margin-top: 5px;
    display: block;
}

.contact-section, .social-section {
    background: rgba(64, 201, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    margin: 10px 0;
}

.profile-field-group {
    margin-bottom: 15px;
}

.profile-field-group label {
    display: block;
    color: var(--color-text-light);
    font-size: 0.85em;
    margin-bottom: 5px;
    font-weight: 500;
}

.profile-field-group input,
.profile-field-group textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    font-size: 0.85em;
    font-family: inherit;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

.profile-field-group input:focus,
.profile-field-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    background: rgba(0, 0, 0, 0.5);
}

.profile-field-group textarea {
    resize: vertical;
    min-height: 60px;
}

.profile-save-contact {
    background: linear-gradient(135deg, var(--color-primary-blue), #0080ff) !important;
    width: 100%;
    margin-right: 0;
    font-weight: 600;
}

#contact-save-section {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth transitions for showing/hiding sections */
.contact-section, .social-section, #contact-save-section {
    transition: all 0.3s ease;
    opacity: 1;
}

.contact-section[style*="display: none"],
.social-section[style*="display: none"],
#contact-save-section[style*="display: none"] {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0 15px;
    margin: 0;
}

/* === IMPROVED PROFILE DROPDOWN STYLES === */

/* Profile avatar container */
.profile-avatar-container {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}

.profile-avatar:hover {
    border-color: var(--color-secondary-green);
    transform: scale(1.05);
}

/* Profile menu items */
.profile-menu {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 15px;
}

.profile-menu-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: rgba(64, 201, 255, 0.1);
    border: none;
    border-bottom: 1px solid rgba(64, 201, 255, 0.2);
    text-decoration: none;
    color: var(--color-text-light);
    transition: all 0.2s ease;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: inherit;
}

.profile-menu-item:first-child {
    border-radius: 8px 8px 0 0;
}

.profile-menu-item:last-child {
    border-radius: 0 0 8px 8px;
    border-bottom: none;
}

.profile-menu-item:only-child {
    border-radius: 8px;
}

.profile-menu-item:hover {
    background: rgba(64, 201, 255, 0.2);
    transform: translateX(5px);
}

.menu-icon {
    font-size: 1.2em;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.menu-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.menu-title {
    font-size: 0.95em;
    font-weight: 600;
    color: var(--color-text-light);
}

.menu-subtitle {
    font-size: 0.8em;
    color: var(--color-subtle-light);
    opacity: 0.8;
}

/* Navigation profile picture improvements */
.profile-picture {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-primary-blue);
    transition: all 0.3s ease;
    display: block;
    background-color: #f3f4f6;
}

.profile-picture:hover {
    border-color: var(--color-secondary-green);
    transform: scale(1.1);
}

.profile-button {
    background: none;
    border: none;
    padding: 6px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.profile-button:hover {
    background: rgba(64, 201, 255, 0.2);
}

/* === DIRECTORY PAGE STYLES === */

.directory-section {
    padding: 40px 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.directory-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-title {
    font-size: 2.2em;
    color: var(--color-secondary-green);
    margin-bottom: 15px;
    font-weight: 600;
}

.directory-description {
    color: var(--color-subtle-light);
    font-size: 1.1em;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.directory-controls {
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.search-container {
    flex: 1;
    max-width: 400px;
}

.directory-search {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 25px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    font-size: 1em;
    font-family: inherit;
    transition: all 0.3s ease;
}

.directory-search:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    background: rgba(0, 0, 0, 0.5);
    box-shadow: 0 0 20px rgba(64, 201, 255, 0.3);
}

.filter-container {
    min-width: 150px;
}

.directory-filter {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.3);
    color: var(--color-text-light);
    font-size: 0.9em;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
}

.directory-filter:focus {
    outline: none;
    border-color: var(--color-secondary-green);
    background: rgba(0, 0, 0, 0.5);
}

.directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

.loading-message {
    grid-column: 1 / -1;
    text-align: center;
    color: var(--color-subtle-light);
    font-size: 1.1em;
    padding: 60px 20px;
}

.directory-card {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    position: relative;
}

.directory-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--color-primary-blue);
}

/* VIP User Styling */
.directory-card.vip-presidente {
    border: 2px solid var(--color-secondary-gold);
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1), rgba(0, 0, 0, 0.4));
    box-shadow: 0 0 20px rgba(255, 215, 0, 0.2);
}

.directory-card.vip-presidente:hover {
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.4);
    border-color: var(--color-secondary-gold);
    transform: translateY(-8px);
}

.directory-card.vip-first-lady {
    border: 2px solid var(--color-secondary-green);
    background: linear-gradient(135deg, rgba(162, 255, 134, 0.1), rgba(0, 0, 0, 0.4));
    box-shadow: 0 0 20px rgba(162, 255, 134, 0.2);
}

.directory-card.vip-first-lady:hover {
    box-shadow: 0 10px 30px rgba(162, 255, 134, 0.4);
    border-color: var(--color-secondary-green);
    transform: translateY(-8px);
}

.user-category {
    position: absolute;
    top: -10px;
    left: 15px;
    background: linear-gradient(135deg, var(--color-secondary-gold), #FFB700);
    color: var(--color-dark-bg);
    padding: 4px 12px;
    border-radius: 15px;
    font-size: 0.75em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.3);
    z-index: 10;
}

.directory-card.vip-first-lady .user-category {
    background: linear-gradient(135deg, var(--color-secondary-green), #4CAF50);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.card-profile-pic {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--color-secondary-green);
}

.card-info {
    flex: 1;
}

.card-name {
    color: var(--color-secondary-green);
    font-size: 1.2em;
    font-weight: 600;
    margin: 0 0 5px 0;
}

.card-email {
    color: var(--color-subtle-light);
    font-size: 0.9em;
    margin: 0;
}

.card-bio {
    color: var(--color-text-light);
    font-size: 0.9em;
    line-height: 1.5;
    margin-bottom: 15px;
    padding: 10px;
    background: rgba(162, 255, 134, 0.1);
    border-radius: 8px;
    border-left: 3px solid var(--color-secondary-green);
}

.card-contacts {
    margin-bottom: 15px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 10px;
    font-size: 0.9em;
}

.contact-icon {
    font-size: 1.1em;
    min-width: 20px;
}

.contact-link {
    color: var(--color-primary-blue);
    text-decoration: none;
    transition: color 0.3s ease;
    font-weight: 500;
}

.contact-link:hover {
    color: var(--color-secondary-green);
    text-decoration: underline;
}

/* Enhanced mobile styling for phone links */
@media (max-width: 768px) {
    .contact-link[href^="tel:"] {
        color: var(--color-secondary-green);
        font-weight: 600;
        padding: 2px 4px;
        border-radius: 4px;
        background: rgba(162, 255, 134, 0.1);
        border: 1px solid rgba(162, 255, 134, 0.3);
    }
    
    .contact-link[href^="tel:"]:active {
        background: rgba(162, 255, 134, 0.2);
        transform: scale(0.98);
    }
}

.contact-text {
    color: var(--color-text-light);
    line-height: 1.4;
}

.card-social {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 15px;
}

.social-title {
    color: var(--color-secondary-green);
    font-size: 0.9em;
    margin: 0 0 10px 0;
    font-weight: 500;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.social-link {
    display: inline-block;
    padding: 6px 12px;
    background: linear-gradient(135deg, var(--color-primary-blue), #0080ff);
    color: white;
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.social-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(64, 201, 255, 0.4);
}

.social-link.facebook {
    background: linear-gradient(135deg, #1877f2, #0d5cbf);
}

.social-link.instagram {
    background: linear-gradient(135deg, #e1306c, #c13584);
}

.social-link.twitter {
    background: linear-gradient(135deg, #1da1f2, #0d8bd9);
}

.social-link.linkedin {
    background: linear-gradient(135deg, #0077b5, #005885);
}

.social-link.website {
    background: linear-gradient(135deg, var(--color-secondary-green), #4CAF50);
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: var(--color-subtle-light);
}

.empty-icon {
    font-size: 4em;
    margin-bottom: 20px;
}

.empty-state h3 {
    color: var(--color-secondary-green);
    font-size: 1.5em;
    margin-bottom: 15px;
}

.empty-state p {
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 30px;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.cta-button {
    display: inline-block;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--color-primary-blue), #0080ff);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(64, 201, 255, 0.4);
}

/* Mobile responsive for directory */
@media (max-width: 768px) {
    .directory-section {
        padding: 20px 15px;
    }
    
    .page-title {
        font-size: 1.8em;
    }
    
    .directory-controls {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-container,
    .filter-container {
        width: 100%;
        max-width: none;
    }
    
    .directory-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .card-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .card-profile-pic {
        width: 80px;
        height: 80px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* Mobile responsive */
@media (max-width: 768px) {
    .profile-dropdown {
        right: -10px;
        left: auto;
        width: calc(100vw - 40px);
        max-width: 350px;
    }
    
    .profile-button {
        width: 70px;
        height: 70px;
        padding: 8px;
    }
    
    .profile-picture {
        width: 62px;
        height: 62px;
    }
}

/* === PROFILE SETTINGS PAGE === */

.profile-settings-backdrop {
    background: linear-gradient(135deg, var(--color-dark-bg) 0%, #2a2a5a 100%);
    border-radius: 20px;
    margin: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(64, 201, 255, 0.3);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 140px);
}

.profile-settings-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.profile-settings-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 30px 0;
}

.profile-settings-header h1 {
    color: var(--color-secondary-green);
    font-size: 2.5em;
    margin: 0 0 10px 0;
    font-weight: 700;
}

.profile-settings-header p {
    color: var(--color-subtle-light);
    font-size: 1.1em;
    margin: 0;
}

.profile-section {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(64, 201, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    margin-bottom: 30px;
    backdrop-filter: blur(10px);
}

.profile-section h2 {
    color: var(--color-primary-blue);
    font-size: 1.4em;
    margin: 0 0 25px 0;
    font-weight: 600;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(64, 201, 255, 0.3);
}

.profile-picture-section {
    display: flex;
    align-items: center;
    gap: 30px;
    flex-wrap: wrap;
}

.current-picture {
    flex-shrink: 0;
}

.settings-profile-pic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.picture-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    min-width: 200px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    align-items: start;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    color: var(--color-text-light);
    font-weight: 600;
    margin-bottom: 8px;
    font-size: 0.95em;
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(64, 201, 255, 0.3);
    border-radius: 8px;
    padding: 12px 15px;
    color: var(--color-text-light);
    font-size: 1em;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--color-primary-blue);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 0 0 3px rgba(64, 201, 255, 0.1);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--color-subtle-light);
    opacity: 0.7;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px; /* Increased from 80px for better bio editing */
    font-family: inherit;
    line-height: 1.6; /* Better text readability */
}

/* Make bio text area span full width */
#directory-bio-group {
    grid-column: 1 / -1;
}

#directory-bio-group textarea {
    min-height: 140px; /* Extra height for bio */
    max-height: 300px; /* Prevent excessive height */
}

.checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 0;
    margin-bottom: 15px; /* Add spacing between checkbox groups */
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-weight: 400;
    line-height: 1.5;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 22px; /* Slightly larger for better visibility */
    height: 22px;
    border: 2px solid var(--color-primary-blue);
    border-radius: 6px; /* Slightly more rounded */
    background: transparent;
    position: relative;
    flex-shrink: 0;
    margin-top: 1px; /* Better alignment with text */
    transition: all 0.2s ease;
    display: inline-block; /* Ensure proper display */
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: var(--color-secondary-green);
    border-color: var(--color-secondary-green);
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: var(--color-dark-bg);
    font-weight: bold;
    font-size: 15px; /* Slightly larger checkmark */
    line-height: 1;
}

.checkbox-text {
    color: var(--color-text-light);
    font-weight: 500; /* Reduced from 600 for better readability */
    font-size: 1em;
    line-height: 1.5;
    margin-left: 8px; /* Add some spacing from checkbox */
}

/* Fix checkbox alignment in privacy settings */
.privacy-settings .checkbox-group {
    align-items: flex-start;
    margin-bottom: 20px;
}

.privacy-settings .checkbox-label {
    align-items: flex-start;
    width: 100%;
}

.form-help {
    margin: 8px 0 0 0;
    color: var(--color-subtle-light);
    font-size: 0.85em;
    line-height: 1.4;
}

/* Privacy Settings Styling */
.privacy-settings .notification-preferences {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(64, 201, 255, 0.2);
}

.privacy-settings .notification-preferences h3 {
    color: var(--color-primary-blue);
    font-size: 1.1rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.privacy-settings .checkbox-group:has(input:disabled) .checkbox-text {
    opacity: 0.6;
}

.privacy-settings .checkbox-group:has(input:disabled) .checkbox-custom {
    opacity: 0.6;
    border-color: rgba(64, 201, 255, 0.3);
}

.privacy-settings .checkbox-group:has(input:disabled) .form-help em {
    color: var(--color-accent-orange);
    font-style: italic;
}

.directory-settings {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-actions {
    text-align: center;
    padding: 40px 0;
}

.btn {
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, #30A9E0 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s ease;
    margin: 0 10px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(64, 201, 255, 0.4);
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-secondary-green) 0%, #88E066 100%);
    color: var(--color-dark-bg);
}

.btn-primary:hover {
    box-shadow: 0 5px 15px rgba(162, 255, 134, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--color-subtle-light);
    border: 2px solid var(--color-subtle-light);
}

.btn-secondary:hover {
    background: var(--color-subtle-light);
    color: var(--color-dark-bg);
    box-shadow: 0 5px 15px rgba(192, 192, 192, 0.3);
}

.btn-large {
    padding: 15px 40px;
    font-size: 1.1em;
    margin: 0 15px;
}

/* Profile dropdown active state */
.profile-dropdown-links .profile-link.active {
    background: var(--color-primary-blue);
    color: var(--color-dark-bg);
    font-weight: 600;
}

.profile-dropdown-divider {
    height: 1px;
    background: rgba(64, 201, 255, 0.3);
    margin: 5px 0;
}

.profile-dropdown-links .delete-profile-link {
    color: #ff6b6b;
    border-left: 3px solid transparent;
}

.profile-dropdown-links .delete-profile-link:hover {
    background: rgba(255, 107, 107, 0.1);
    border-left-color: #ff6b6b;
}

.profile-dropdown-links .logout-link {
    color: var(--color-subtle-light);
}

/* Mobile responsiveness for profile settings */
@media (max-width: 768px) {
    .profile-settings-backdrop {
        margin: 10px;
        padding: 15px;
        border-radius: 15px;
        min-height: calc(100vh - 120px);
    }
    
    .profile-settings-container {
        padding: 15px;
    }
    
    .profile-settings-header h1 {
        font-size: 2em;
    }
    
    .profile-section {
        padding: 20px;
    }
    
    .profile-picture-section {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .form-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .btn {
        display: block;
        margin: 5px 0;
        width: 100%;
    }
    
    .btn-large {
        margin: 10px 0;
    }
}

@media (max-width: 600px) {
    .picture-actions {
        min-width: 100%;
    }
    
    .profile-actions {
        padding: 30px 0;
    }
}

/* ============= PROFILE FORM MODAL STYLES ============= */

.profile-form-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex !important;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    overflow: hidden;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.profile-form-content {
    background: linear-gradient(135deg, #1E1E40 0%, #2A2A5A 100%);
    border-radius: 12px;
    border: 2px solid #FFD700;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    width: 90%;
    max-width: 900px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    animation: slideInDown 0.3s ease-out;
    will-change: transform, opacity;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    position: relative;
}

/* Loading state for modal - overlay spinner on top of header */
.profile-form-content.loading {
    display: flex;
    flex-direction: column;
}

/* Spinner container positioned absolutely over content */
.profile-form-content.loading .profile-form-loading-spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(30, 30, 64, 0.95) 0%, rgba(42, 42, 90, 0.95) 100%);
    border-radius: 10px;
    z-index: 100;
    animation: fadeIn 0.3s ease-out;
}

.profile-form-loading-spinner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    animation: fadeIn 0.3s ease-out;
}

.loading-animation {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 215, 0, 0.2);
    border-top-color: #FFD700;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-text {
    color: #40C9FF;
    font-size: 16px;
    font-weight: 500;
}

.profile-form-body {
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

.profile-form-body.hidden {
    opacity: 0;
    pointer-events: none;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal Header */
.profile-form-header {
    position: sticky;
    top: 0;
    background: linear-gradient(135deg, #1E1E40 0%, #2A2A5A 100%);
    border-bottom: 2px solid #FFD700;
    color: #40C9FF;
    padding: 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.profile-form-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
    flex: 1;
    min-width: 150px;
    color: #FFD700;
}

.modal-actions-top {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.modal-actions-top .btn {
    padding: 10px 16px;
    font-size: 14px;
    white-space: nowrap;
}

.modal-actions-top .btn-primary {
    background: white;
    color: #667eea;
    border: none;
    font-weight: 600;
}

.modal-actions-top .btn-primary:hover {
    background: #f0f0f0;
}

.modal-actions-top .btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.modal-actions-top .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
}

.profile-form-header .modal-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.profile-form-header .modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Success Message */
.profile-save-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    border-radius: 6px;
    padding: 16px;
    margin: 16px;
    margin-bottom: 8px;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.success-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.success-icon {
    font-size: 20px;
    font-weight: bold;
}

.success-message {
    font-weight: 500;
}

/* Form Body */
.profile-form-body {
    padding: 24px;
    color: #40C9FF;
    overflow-y: auto;
    flex: 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: thin;
    scrollbar-color: #FFD700 #1E1E40;
}

.profile-form-body::-webkit-scrollbar {
    width: 8px;
}

.profile-form-body::-webkit-scrollbar-track {
    background: #1E1E40;
}

.profile-form-body::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 4px;
}

.profile-form-body::-webkit-scrollbar-thumb:hover {
    background: #FFC700;
}

.profile-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Form Sections */
.profile-form-section {
    border-bottom: 1px solid #FFD700;
    padding-bottom: 20px;
}

.profile-form-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-form-section h2 {
    font-size: 18px;
    font-weight: 600;
    color: #A2FF86;
    margin: 0 0 16px 0;
    display: flex;
    gap: 6px;
    align-items: center;
}

.required-badge {
    font-size: 12px;
    background: #fee2e2;
    color: #dc2626;
    padding: 2px 6px;
    border-radius: 3px;
    font-weight: 600;
}

/* Immutable Field (CF Email) */
.immutable-field-container {
    position: relative;
    display: flex;
    gap: 8px;
    align-items: center;
}

.immutable-field {
    flex: 1;
    padding: 12px;
    border: 2px solid #FFD700;
    border-radius: 6px;
    font-size: 14px;
    background: rgba(30, 30, 64, 0.5);
    color: #40C9FF;
    cursor: not-allowed;
    font-style: italic;
}

.immutable-field:disabled,
.immutable-field:readonly {
    opacity: 0.7;
}

.immutable-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(162, 255, 134, 0.1);
    color: #A2FF86;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    white-space: nowrap;
}

.immutable-help {
    margin-top: 8px;
    color: #b0b0c0;
    font-size: 13px;
    line-height: 1.5;
}

.email-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    border-bottom: 1px solid #667eea;
}

.email-link:hover {
    text-decoration: underline;
}

/* Form Inputs */
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group label {
    font-weight: 600;
    color: #40C9FF;
    font-size: 14px;
}

.required {
    color: #dc2626;
    margin-left: 2px;
}

.form-input {
    padding: 10px 12px;
    border: 2px solid #FFD700;
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.2s;
    background: rgba(30, 30, 64, 0.5);
    color: #40C9FF;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.form-input:focus {
    outline: none;
    border-color: #A2FF86;
    box-shadow: 0 0 0 3px rgba(162, 255, 134, 0.1);
}

.form-input:disabled {
    background: rgba(30, 30, 64, 0.3);
    color: #808090;
}

.form-help {
    font-size: 12px;
    color: #b0b0c0;
    margin: 0;
}

/* Checkbox Group */
.checkbox-group {
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 400;
    color: #40C9FF;
}

.checkbox-label input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border: 2px solid #FFD700;
    border-radius: 4px;
    background: rgba(30, 30, 64, 0.5);
    transition: all 0.2s;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom {
    background: #A2FF86;
    border-color: #A2FF86;
    color: #1E1E40;
}

.checkbox-label input[type="checkbox"]:checked + .checkbox-custom::after {
    content: "✓";
    font-size: 14px;
    font-weight: bold;
}

.checkbox-text {
    font-weight: 400;
}

/* Profile Picture Upload */
.profile-picture-upload {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.profile-picture-preview {
    flex-shrink: 0;
}

.picture-preview-img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #FFD700;
}

.picture-controls {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.picture-controls .btn {
    white-space: nowrap;
}

/* Form Footer */
.profile-form-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #40C9FF;
}

.footer-note {
    font-size: 12px;
    color: #b0b0c0;
    margin: 0;
    line-height: 1.6;
}

.footer-note strong {
    color: #A2FF86;
}

/* ============= NEW REQUIRED SECTION STYLES ============= */

.required-section {
    background: rgba(162, 255, 134, 0.05);
    border-left: 4px solid #A2FF86;
    padding: 16px 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.required-section h2 {
    margin-top: 0;
    color: #A2FF86;
}

.required-indicator {
    font-size: 11px;
    background: #A2FF86;
    color: #1E1E40;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 700;
    margin-left: 8px;
}

.section-note {
    font-size: 13px;
    color: #b0b0c0;
    margin: 8px 0 16px 0;
    font-style: italic;
}

.required-input {
    border: 2px solid #A2FF86 !important;
}

.required-input:focus {
    border-color: #A2FF86 !important;
    box-shadow: 0 0 0 3px rgba(162, 255, 134, 0.1) !important;
}

/* Responsive Design */
@media (max-width: 640px) {
    .profile-form-modal {
        padding: 10px;
    }

    .profile-form-content {
        max-height: 95vh;
    }

    .profile-form-header {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .profile-form-header h1 {
        font-size: 20px;
    }

    .modal-actions-top {
        flex-direction: column;
        width: 100%;
    }

    .modal-actions-top .btn {
        width: 100%;
    }

    .profile-form-header .modal-close {
        position: absolute;
        top: 12px;
        right: 12px;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }

    .profile-picture-upload {
        flex-direction: column;
        align-items: center;
    }

    .profile-form-body {
        padding: 16px;
    }
}

/* ============= CUSTOM DIALOG SYSTEM ============= */
/* Replaces default grey browser alerts with branded dialogs */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(2px);
}

.custom-dialog {
    background: linear-gradient(135deg, #1E1E40 0%, #2A2A5A 100%);
    border: 2px solid #40C9FF;
    border-radius: 12px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(64, 201, 255, 0.3);
    animation: slideInUp 0.3s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dialog-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.dialog-logo {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: linear-gradient(135deg, #A2FF86 0%, #40C9FF 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    color: #1E1E40;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.dialog-logo:hover {
    transform: scale(1.05);
}

.dialog-title {
    font-size: 24px;
    font-weight: 700;
    color: #A2FF86;
    margin: 0;
}

.dialog-content {
    color: #f0f0f0;
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.dialog-emoji {
    font-size: 48px;
    text-align: center;
    margin: 16px 0;
}

.dialog-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

.dialog-button {
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.dialog-button-primary {
    background: linear-gradient(135deg, #A2FF86 0%, #7FD863 100%);
    color: #1E1E40;
}

.dialog-button-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 16px rgba(162, 255, 134, 0.3);
}

.dialog-button-secondary {
    background: rgba(64, 201, 255, 0.2);
    color: #40C9FF;
    border: 1px solid #40C9FF;
}

.dialog-button-secondary:hover {
    background: rgba(64, 201, 255, 0.3);
    transform: translateY(-2px);
}

.dialog-button-link {
    background: transparent;
    color: #40C9FF;
    text-decoration: underline;
    padding: 0;
}

.dialog-button-link:hover {
    color: #A2FF86;
}

/* Success Dialog */
.success-dialog .dialog-title {
    color: #A2FF86;
}

.success-dialog .custom-dialog {
    border-color: #A2FF86;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(162, 255, 134, 0.3);
}

/* Error Dialog */
.error-dialog .dialog-title {
    color: #ff6b6b;
}

.error-dialog .custom-dialog {
    border-color: #ff6b6b;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 40px rgba(255, 107, 107, 0.2);
}

.error-dialog .dialog-button-primary {
    background: linear-gradient(135deg, #40C9FF 0%, #2B9AC4 100%);
    color: #1E1E40;
}

.error-dialog .dialog-button-primary:hover {
    box-shadow: 0 8px 16px rgba(64, 201, 255, 0.3);
}

.countdown-timer {
    font-size: 12px;
    color: #b0b0c0;
    margin-top: 12px;
    text-align: center;
    font-style: italic;
}

/* Hidden by default */
.modal-overlay {
    display: none;
}

.modal-overlay.visible {
    display: flex;
}

/* Hembling.net logo link styling */
.hembling-logo-link {
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}
