:root {
    /* Color Palette - Premium Light Theme (Arctic Slate) */
    --bg-color: #f8fafc;
    --card-bg: rgba(255, 255, 255, 0.8);
    --border-color: rgba(226, 232, 240, 0.8);
    --text-primary: #1e293b;        /* Deep Navy/Slate for headers */
    --text-secondary: #475569;      /* Slate blue for metadata */
    --accent-color: #1e3a8a;        /* Brand Navy Blue */
    --accent-vivid: #2563eb;
    --accent-hover: #172554;
    --accent-glow: rgba(30, 58, 138, 0.15);
    --saffron: #f97316;             /* Brand Saffron */
    --green: #10b981;              /* Brand Green */
    --highlight: #f97316;           /* Saffron Highlight */
    --success: #10b981;
    --danger: #ef4444;
    
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.4);
    --box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --font-main: 'Inter', system-ui, -apple-system, sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --font-mono: 'Roboto Mono', monospace;
    
    scroll-behavior: smooth;
}

/* Dark Mode Preview - Infrastructure Only */
.dark-theme {
    --bg-color: #0f172a;
    --card-bg: rgba(30, 41, 59, 0.7);
    --border-color: rgba(51, 65, 85, 0.5);
    --text-primary: #f1f5f9;
    --text-secondary: #94a3b8;
    --accent-color: #3b82f6;
    --glass-bg: rgba(15, 23, 42, 0.8);
    --glass-border: rgba(255, 255, 255, 0.05);
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    background-image: 
        radial-gradient(at 0% 0%, rgba(37, 99, 235, 0.03) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(124, 58, 237, 0.03) 0px, transparent 50%);
}

h1, h2, h3, h4, .logo-text {
    font-family: var(--font-heading);
}

.container {
    max-width: 1600px; /* Enlarged for premium feel */
    margin: 0 auto;
    padding: 0 2.5rem;
}

/* Glassmorphism utility - Light Mode Refined */
.glass {
    background: var(--glass-bg);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--box-shadow);
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-family: var(--font-main);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-color), #2c4da0);
    color: #fff;
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.3);
    background: linear-gradient(135deg, #1e40af, var(--accent-color));
}

.btn-saffron {
    background: linear-gradient(135deg, var(--saffron), #ea580c);
    color: white;
    border: none;
}

.btn-outline {
    background: rgba(255, 255, 255, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: var(--glass-bg);
    border-color: var(--text-secondary);
}

.btn-icon {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}
.btn-icon:hover { color: var(--accent-color); }
.full-width { width: 100%; justify-content: center; }

/* Header - Light Premium Frosted */
.main-header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(14px) saturate(180%);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    z-index: 1000;
}

.main-header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo img {
    height: 48px;
    width: auto;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    color: var(--text-primary);
    text-decoration: none;
    display: flex;
    align-items: center;
}

.logo-text .accent {
    color: var(--saffron);
    margin-left: 0.4rem; /* Additional separation */
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.25rem;
    align-items: center;
    margin-left: 4rem; /* Large space between logo and search */
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: all 0.3s;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--saffron);
    transition: width 0.3s ease;
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
}

.nav-divider {
    width: 1px;
    height: 24px;
    background: var(--border-color);
    margin: 0 0.5rem;
}

.admin-link {
    color: var(--accent-color) !important;
    font-weight: 700 !important;
}

/* Hero Section - Light & Modern */
.hero {
    padding: 8rem 0;
    background: 
        radial-gradient(circle at 80% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 20% 80%, rgba(249, 115, 22, 0.05) 0%, transparent 50%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Vertical Propagation Widget - Pinned Right */
.propagation-mini-widget {
    position: absolute;
    top: 160px; /* Moved down for better alignment */
    right: 3.5rem; /* Moved left for better breathing room */
    z-index: 999;
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
}

.propagation-mini-widget .widget-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.25rem;
}

.propagation-mini-widget .widget-title {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.8;
}

.propagation-mini-widget .live-indicator {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--success);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.propagation-mini-widget .pulse {
    width: 6px;
    height: 6px;
    background: var(--success);
    border-radius: 50%;
    box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
    animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
    0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(16, 185, 129, 0); }
    100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.propagation-mini-widget img {
    width: 140px; /* Slightly more compact for professional look */
    border-radius: 8px;
    display: block;
    transition: all 0.3s ease;
}

.propagation-mini-widget:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: var(--accent-vivid);
    background: rgba(255, 255, 255, 0.9);
}

.propagation-mini-widget:hover img {
    filter: contrast(1.1);
}

@media (max-width: 1400px) {
    .propagation-mini-widget {
        right: 1.5rem;
    }
}

@media (max-width: 1100px) {
    .propagation-mini-widget {
        position: relative !important;
        top: 20px !important;
        right: auto !important;
        margin: 0 auto 2rem;
    }
}

/* Premium Logo Verified Badge */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--accent-vivid);
    border: 1px solid rgba(255, 123, 0, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-logo-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

.badge-sk {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(153, 27, 27, 0.05) 100%);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-upgraded {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(30, 58, 138, 0.05) 100%);
    color: var(--accent-vivid);
    border: 1px solid rgba(37, 99, 235, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Premium Side-by-Side Profile Layout --- */
.premium-profile-card {
    display: flex;
    gap: 2.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.premium-profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.profile-image-standard {
    flex: 0 0 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.profile-image-standard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-profile-card:hover .profile-image-standard img {
    transform: scale(1.05);
}

.profile-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Privacy Gating Overlay */
.privacy-gate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #fff 40%, rgba(255,255,255,0.8) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.privacy-gate-content {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    max-width: 320px;
}

.privacy-gate-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 650px) {
    .premium-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .profile-image-standard {
        flex: 0 0 200px;
        width: 200px;
    }
}

.hero h1 {
    font-size: 4.5rem;
    font-weight: 800;
    line-height: 1.05;
    margin-bottom: 2rem;
    letter-spacing: -2px;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--saffron) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 650px;
    margin: 0 auto 3rem;
}

.search-box-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 1rem;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    padding: 0.35rem;
    background: rgba(226, 232, 240, 0.5);
    border-radius: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.3s;
}

.tab-btn.active {
    background: #fff;
    color: var(--accent-color);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.search-input-wrapper {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 0.75rem 0.75rem 0.75rem 1.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.search-input-wrapper input {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    padding: 0.75rem 0;
    outline: none;
    font-weight: 500;
}

/* Map Section */
.section { padding: 5rem 0; }

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.75rem;
    font-weight: 800;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 40%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.map-controls {
    margin-top: 1.5rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

.map-tab {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 500;
}

.map-tab.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.map-section {
    scroll-margin-top: 100px;
}

.map-container {
    height: 600px;
    width: 100%;
    z-index: 10;
}

/* Custom leaflet theme */
.leaflet-container {
    background: #0b0e14 !important;
}

/* Results Section */
#results-section {
    padding-bottom: 8rem;
}

.results-grid {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    margin-top: 2rem;
}

.profile-card {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.profile-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.callsign {
    font-family: var(--font-mono);
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: -0.5px;
}

.verified-badge {
    color: var(--success);
    display: flex;
    align-items: center;
}

.location {
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loader {
    text-align: center;
    padding: 3rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
    grid-column: 1 / -1;
}

.no-results {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    grid-column: 1 / -1;
}

.qrz-badge {
    background: rgba(37, 99, 235, 0.1);
    color: var(--accent-color);
    border: 1px solid rgba(37, 99, 235, 0.2);
    font-size: 0.65rem;
    padding: 2px 8px;
    border-radius: 20px;
    margin-left: 0.5rem;
    vertical-align: middle;
    font-weight: 700;
    text-transform: uppercase;
}

.sub-text {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(16px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.modal-content {
    width: 440px;
    padding: 2.5rem;
    background: #fff;
    border-radius: 24px;
}

/* User Dashboard Redesign */
.modal-content.elegant-dashboard {
    width: 90%;
    max-width: 1000px;
    padding: 3rem;
    max-height: 90vh;
    overflow-y: auto;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
}

.dash-profile-layout {
    display: flex;
    gap: 3.5rem;
    align-items: flex-start;
}

.profile-sidebar {
    flex: 0 0 280px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.profile-main-form {
    flex: 1;
    display: flex;
    flex-direction: column;
}

@media (max-width: 850px) {
    .dash-profile-layout {
        flex-direction: column;
        gap: 2rem;
    }
    .profile-sidebar {
        flex: auto;
        width: 100%;
    }
    .modal-content.elegant-dashboard {
        padding: 1.5rem;
        width: 95%;
    }
}

.article-modal {
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Stop main container from scrolling */
}

.article-modal .modal-body {
    overflow-y: auto;
    flex: 1;
    padding-right: 0.5rem; /* Space for scrollbar */
    margin-top: 1.5rem;
}

.hidden { display: none; }

.form-group { margin-bottom: 1.5rem; }
.form-group label { display: block; margin-bottom: 0.5rem; color: var(--text-secondary); }
.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-primary);
    outline: none;
    transition: all 0.3s;
    font-weight: 500;
}

.form-group input:focus {
    border-color: var(--accent-color);
    background: #fff;
    box-shadow: 0 0 0 4px var(--accent-glow);
}

footer {
    padding: 6rem 0 3rem;
    background: #fff;
    border-top: 1px solid var(--border-color);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.95rem;
    padding-top: 3rem;
    border-top: 1px solid var(--border-color);
    font-weight: 500;
}

/* Auth Modal Tabs */
#auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}
.auth-tab {
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    padding: 0.6rem 1.25rem;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: -1px;
}
.auth-tab.active {
    color: var(--accent-color);
    border-bottom-color: var(--accent-color);
}

/* Modal close button */
.close-modal, .close-modal-qrz {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
}
.close-modal:hover, .close-modal-qrz:hover { color: var(--text-primary); }
.modal-content { position: relative; }

/* Form focus */
.form-group input:focus {
    border-color: var(--accent-color);
    outline: none;
    box-shadow: 0 0 0 2px rgba(247, 183, 49, 0.15);
}

/* Disabled btn */
.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
}

/* Profile card extra tags */
.zone-tag, .sync-tag {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-family: var(--font-mono);
}
.sync-tag { opacity: 0.6; }

.profile-card .btn { margin-top: auto; }

.small { padding: 0.4rem 1rem; font-size: 0.85rem; }

.mobile-menu-toggle {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.5rem;
    z-index: 2001;
}

@media (max-width: 1024px) {
    .nav-links {
        gap: 1.5rem;
    }
}

@media (max-width: 1200px) {
    .container { padding: 0 1.5rem; }
    .mobile-menu-toggle { display: block !important; }
    
    .nav-links {
        display: flex;
        position: fixed;
        top: 0;
        right: -100%;
        width: 320px;
        height: 100vh;
        background: #fff;
        flex-direction: column;
        justify-content: center;
        padding: 4rem 2rem;
        transition: 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
        z-index: 2000;
        gap: 1.75rem;
        margin-left: 0;
        box-shadow: -10px 0 30px rgba(0,0,0,0.1);
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.5rem;
        width: 100%;
        text-align: center;
    }

    .nav-divider { display: none; }
    #auth-nav { width: 100%; }
    #auth-nav button { width: 100%; justify-content: center; font-size: 1.1rem; }
}

@media (max-width: 768px) {
    .hero h1 { font-size: 3rem; }
    .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* --- Enhanced Native Profile & Community Styles --- */

.section-header p {
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

/* Native Profile Dashboard Layout - Definitive Premium Wide */
.profile-dashboard {
    padding: 4.5rem;
    display: flex;
    flex-direction: column;
    gap: 4.5rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 40px;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 10px 60px -15px rgba(0, 0, 0, 0.06);
    width: 100%;
    margin-bottom: 5rem;
}

@media (min-width: 850px) {
    .profile-dashboard.has-bio-ready {
        flex-direction: row;
        align-items: stretch;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
}

.profile-dashboard:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.15);
}

.profile-left-col {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    flex: 1 1 520px;
    text-align: left;
}

@media (min-width: 850px) {
    .profile-left-col {
        padding-right: 4.5rem;
        border-right: 1px solid var(--border-color);
    }
}

@media (min-width: 850px) {
    .profile-dashboard.has-bio-ready {
        display: grid;
        grid-template-columns: 520px 1fr;
        align-items: stretch;
        max-width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}

.premium-plate {
    display: inline-flex;
    align-items: center;
    background: #fff;
    border: 1px solid var(--border-color);
    border-left: 6px solid var(--accent-color); /* Royal Blue Stripe */
    border-radius: 12px 24px 24px 12px;
    padding: 1rem 2.5rem;
    gap: 1.5rem;
    box-shadow: 10px 10px 30px rgba(0,0,0,0.03);
    margin-bottom: 2rem;
}

.call-pref {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-color);
    font-family: 'Outfit', sans-serif;
    margin-right: 0.25rem;
}

.callsign {
    font-family: 'Outfit', sans-serif;
    font-size: 4rem;
    font-weight: 950;
    color: #0f172a;
    letter-spacing: -1px;
    line-height: 1;
}

.license-tag-premium {
    font-size: 0.8rem;
    font-weight: 800;
    background: #f1f5f9;
    color: #475569;
    padding: 0.4rem 1rem;
    border-radius: 8px;
    margin-left: 1rem;
    border: 1px solid var(--border-color);
    text-transform: uppercase;
}

.full-name-premium {
    font-family: 'Outfit', sans-serif;
    font-size: 2.75rem;
    font-weight: 950;
    color: #0f172a;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    letter-spacing: -1.5px;
}

.unified-info-list-premium {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.15rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.info-item i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.info-item.contact {
    color: var(--accent-color);
    font-weight: 700;
}

.contact-group-v2 {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.city-item, .district-item, .state-item, .pin-item, .country-item {
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
    font-size: 1rem;
}

.state-item {
    color: var(--accent-vivid);
}

.country-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-vivid);
    margin-top: 0.5rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.country-label i { width: 14px; height: 14px; }

.address-main i, .address-full i {
    color: var(--accent-color);
    flex-shrink: 0;
}

.zip-code {
    color: var(--accent-color);
    font-size: 0.85rem;
    font-weight: 700;
    margin-left: 1.6rem;
    margin-top: 0.25rem;
}

.profile-right-col.bio-vertical {
    background: linear-gradient(145deg, #f8fafc, #f1f5f9);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin-left: 2rem;
    flex: 1 1 500px;
    box-shadow: inset 0 2px 20px rgba(0,0,0,0.02);
}

@media (max-width: 849px) {
    .profile-right-col.bio-vertical { margin-left: 0; margin-top: 2rem; }
}

.bio-header-premium {
    padding: 1.75rem 3rem;
    background: #fff;
    border-bottom: 1px solid var(--border-color);
}

.bio-header-premium h4 {
    display: flex;
    align-items: center;
    gap: 1rem;
    color: #1e293b;
    font-size: 1.35rem;
    font-weight: 900;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.5px;
}

.scroll-y {
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.2) transparent;
}

.scroll-y::-webkit-scrollbar {
    width: 6px;
}

.scroll-y::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.2);
    border-radius: 10px;
}

.legible-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #334155;
    font-weight: 450;
}

.content-rich h1, .content-rich h2, .content-rich h3 { color: var(--accent-color); margin: 1.5rem 0 1rem; }
.content-rich p { margin-bottom: 1.25rem; }
.content-rich ul, .content-rich ol { margin-bottom: 1.25rem; padding-left: 1.5rem; }
.content-rich li { margin-bottom: 0.5rem; }
.content-rich strong { color: var(--text-primary); font-weight: 700; }
.content-rich a { color: var(--accent-color); text-decoration: underline; }

.bio-link-box {
    text-align: center;
    padding: 3.5rem;
    border-radius: 20px;
    background: rgba(37, 99, 235, 0.04);
    border: 2px dashed rgba(37, 99, 235, 0.2);
    margin: 2rem;
}

.bio-link-box i { font-size: 2.5rem; color: var(--accent-color); margin-bottom: 1.5rem; display: block; }
.bio-link-box p { margin-bottom: 2rem; color: var(--text-secondary); font-weight: 600; font-size: 1.1rem; }

.bio-footer-meta {
    padding: 1.75rem 3rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sync-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.sync-status i.rotating {
    animation: rotate 2s linear infinite;
}

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

.bio-placeholder {
    padding: 6rem 2rem;
    text-align: center;
}

.bio-placeholder p {
    font-size: 1.25rem;
    font-weight: 500;
    max-width: 350px;
    margin: 0 auto;
}

.bio-footer-note {
    padding: 2rem 3rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    font-size: 1rem;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
}

.premium-cta {
    padding: 1.5rem 3rem !important;
    font-size: 1.1rem !important;
    font-weight: 800 !important;
    border-radius: 16px !important;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.bio-header {
    padding: 1.5rem 2rem;
    background: rgba(255,255,255,0.02);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}
.bio-header h4 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-primary);
    font-size: 1.1rem;
    margin: 0;
}

.profile-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.license-tag {
    background: #f1f5f9;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 800;
    color: #475569;
    border: 1px solid var(--border-color);
}

.profile-body-compact {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.profile-info-compact h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.address {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.grid-loc {
    font-family: 'Roboto Mono', monospace;
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.profile-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Badges - Light Mode */
.badge {
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    background: #f1f5f9;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.badge.verified {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
    border-color: rgba(16, 185, 129, 0.2);
}

.profile-avatar.large img {
    width: 140px;
    height: 140px;
    border-radius: 20px;
    object-fit: cover;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.contact-group {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.contact-group.high-contrast {
    background: #f1f5f9;
    border-left: 4px solid var(--accent-color);
}

.accent-vivid { color: var(--accent-vivid); }

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

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

.contact-link.vivid { font-weight: 600; letter-spacing: 0.5px; }
.contact-link:hover { color: var(--accent-vivid); text-decoration: underline; }

.bio-content-full {
    padding: 2.5rem;
    font-size: 1.1rem;
    line-height: 1.85;
    color: var(--text-secondary);
    max-height: none;
    min-height: 100px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.02), rgba(0,0,0,0.1));
}

.bio-content-full.scroll-y {
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Webkit Scrollbar for Bio */
.bio-content-full.scroll-y::-webkit-scrollbar {
    width: 8px;
}
.bio-content-full.scroll-y::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.1);
}
.bio-content-full.scroll-y::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 4px;
}
.bio-content-full.scroll-y::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.legible-text {
    /* Clean text for light background */
    text-shadow: none;
}
.legible-text p, .legible-text li, .legible-text div { 
    color: var(--text-primary); 
    letter-spacing: normal; 
} 

.content-rich a {
    color: var(--accent-vivid);
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 2px;
    text-decoration-color: rgba(0, 223, 216, 0.3);
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 4px;
}
.content-rich a:hover {
    color: #ffffff;
    text-decoration-color: var(--accent-vivid);
    background: rgba(0, 223, 216, 0.15);
    padding: 2px 6px;
    margin: 0 -6px; /* Compensate for padding to prevent layout shift */
    box-shadow: 0 0 10px rgba(0, 223, 216, 0.2);
}

.content-rich img { 
    max-width: 100%; 
    border-radius: 12px; 
    margin: 1.5rem 0; 
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color);
}
.content-rich p { margin-bottom: 1.5rem; }

.edit-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
}
.edit-btn:hover { background: var(--accent-color); color: var(--bg-dark); }

.profile-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap; 
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    margin-top: 0.5rem;
}

.profile-footer .btn { 
    white-space: nowrap; 
    padding: 1rem 2rem;
    font-size: 1rem;
}
.qsl-note { 
    color: var(--text-secondary); 
    font-size: 0.9rem; 
    line-height: 1.4; 
    max-width: 60%;
}

.form-footer {
    display: flex;
    justify-content: flex-end;
    margin-top: 0.5rem;
}

.small-link {
    font-size: 0.85rem;
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.admin-support-note {
    margin-top: 1.5rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
    padding: 1rem;
    background: rgba(255,255,255,0.02);
    border-radius: 8px;
}

.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
    margin-top: 2rem;


}

.social-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 3rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
}

.hero-overlay h3 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
    font-weight: 800;
}

.hero-overlay p {
    color: var(--text-dim);
    max-width: 600px;
}

.card-visual {
    height: 150px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: rgba(255,255,255,0.03);
}

.card-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.community-card:hover .card-visual img {
    transform: scale(1.05);
}

.card-content h3 {
    margin-bottom: 0.75rem;
}

.community-card {
    padding: 1.5rem !important; /* Overriding previous padding */
    text-align: left !important;
}

.market-info {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.market-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.market-header .seller {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--accent-color);
    font-weight: 700;
}

.market-info h3 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.price {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.market-info .desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.close-modal-edit {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
}

textarea {
    width: 100%;
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1rem;
    color: var(--text-primary);
    font-family: inherit;
    resize: vertical;
    transition: all 0.3s;
}

textarea:focus {
    background: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 4px var(--accent-glow);
    outline: none;
}

#edit-profile-modal .modal-content {
    max-width: 800px;
}

.market-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: auto;
}

/* ============================================================
   NEWS SECTION
============================================================ */
.news-split-layout {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 900px) {
    .news-split-layout {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.news-col {
    display: flex;
    flex-direction: column;
    height: 600px;
    padding: 0;
    overflow: hidden;
}

.news-col-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: linear-gradient(to right, rgba(37, 99, 235, 0.05), transparent);
    border-bottom: 1px solid var(--border-color);
}

.news-col-header.global {
    background: linear-gradient(to right, rgba(124, 58, 237, 0.05), transparent);
    border-bottom: 1px solid var(--border-color);
}

.news-col-header h3 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    margin: 0;
}

.news-feed-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Custom Scrollbar for News Feed */
.news-feed-container::-webkit-scrollbar { width: 4px; }
.news-feed-container::-webkit-scrollbar-track { background: transparent; }
.news-feed-container::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.1); border-radius: 10px; }
.news-feed-container::-webkit-scrollbar-thumb:hover { background: var(--accent-color); }

.news-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.5rem;
    transition: all 0.3s;
}

.news-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.05);
    border-color: var(--accent-color);
}

.news-card.sticky {
    border-left: 4px solid var(--accent-vivid);
    background: linear-gradient(to right, rgba(124, 58, 237, 0.03), #fff);
}

.news-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.news-card h4 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.news-card p {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    display: -webkit-box;
    line-clamp: 3;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-card a.read-more {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}
.news-card a.read-more:hover { text-decoration: underline; color: var(--text-primary); }
/* Suggestions Box for Signup */
.suggestions-box { margin-top: 1rem; padding: 1rem; background: rgba(37, 99, 235, 0.05); border-radius: 12px; border: 1px dashed rgba(37, 99, 235, 0.2); }
.suggestion-label { font-size: 0.75rem; color: var(--text-secondary); display: block; margin-bottom: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.chips-list { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { padding: 0.4rem 0.8rem; background: #fff; border: 1px solid var(--border-color); border-radius: 20px; font-size: 0.8rem; font-weight: 700; color: var(--accent-color); cursor: pointer; transition: all 0.2s; box-shadow: 0 2px 4px rgba(0,0,0,0.02); }
.chip:hover { border-color: var(--accent-color); background: var(--accent-glow); transform: translateY(-2px); box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1); }
.chip:active { transform: translateY(0); }

/* Resources Page Extra Utility Classes */
.guide-section h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
}

.resource-nav a i {
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
}

.fee-table tr:hover {
    background: rgba(30, 58, 138, 0.02);
}

.resource-content strong {
    color: var(--text-primary);
}

/* Auth Logic for Dash feedback */
.auth-feedback.success { background: rgba(16, 185, 129, 0.1); color: #059669; border: 1px solid rgba(16, 185, 129, 0.2); }
.auth-feedback.error { background: rgba(239, 68, 68, 0.1); color: #dc2626; border: 1px solid rgba(239, 68, 68, 0.2); }

/* --- Legal / Article Page Styles --- */
.legal-page {
    padding: 6rem 0;
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    padding: 4rem;
    border-radius: 32px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0,0,0,0.03);
}

.legal-header {
    text-align: center;
    margin-bottom: 4rem;
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 30%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.legal-header p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.legal-content h2 {
    font-size: 1.75rem;
    margin-top: 3rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
}

.legal-content p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-content ul {
    margin-bottom: 2rem;
    padding-left: 1.5rem;
}

.legal-content li {
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

/* Footer Branding Boost */
.footer-info .logo {
    margin-bottom: 2rem !important;
    gap: 1.25rem;
}

.footer-info .logo img {
    height: 72px !important;
}

.footer-info .logo .logo-text {
    font-size: 2.25rem !important;
}

.footer-info p {
    font-size: 1.1rem;
    max-width: 400px;
    line-height: 1.7;
}

/* Contact Page Specifics */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 4rem;
    margin-top: 4rem;
}

.contact-info-card {
    padding: 2.5rem;
    background: #f8fafc;
    border-radius: 24px;
    border: 1px solid var(--border-color);
}

.contact-method {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 2rem;
}

.contact-method i {
    width: 24px;
    height: 24px;
    color: var(--accent-color);
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.contact-method p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.contact-form-card {
    padding: 3rem;
    background: #fff;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

@media (max-width: 850px) {
    .contact-grid { grid-template-columns: 1fr; }
    .legal-container { padding: 2rem; }
}

/* =============================================
   MEMBERSHIP / JOIN SECTION
   ============================================= */

/* Nav "Join" pill link */
.nav-membership {
    color: var(--saffron) !important;
    font-weight: 700 !important;
    background: rgba(249, 115, 22, 0.08);
    padding: 0.4rem 1rem !important;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.25);
    transition: all 0.3s ease !important;
}
.nav-membership:hover {
    background: var(--saffron) !important;
    color: #fff !important;
    border-color: var(--saffron) !important;
}

/* Accent helpers */
.accent-saffron { color: var(--saffron); }

.membership-section {
    background:
        radial-gradient(ellipse at 10% 50%, rgba(249, 115, 22, 0.04) 0%, transparent 55%),
        radial-gradient(ellipse at 90% 20%, rgba(30, 58, 138, 0.05) 0%, transparent 55%);
    padding: 7rem 0;
}

/* -- Header -- */
.membership-header {
    text-align: center;
    margin-bottom: 5rem;
}
.membership-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(249, 115, 22, 0.08);
    color: var(--saffron);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 0.4rem 1.25rem;
    border-radius: 50px;
    border: 1px solid rgba(249, 115, 22, 0.2);
    margin-bottom: 1.5rem;
}
.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--saffron);
    animation: pulse-dot 2s infinite;
}
@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.7); }
}
.membership-header h2 {
    font-family: var(--font-heading);
    font-size: 3.25rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    margin-bottom: 1.25rem;
    background: none;
    -webkit-text-fill-color: initial;
}
.membership-header p {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto;
}

/* -- Why Grid -- */
.why-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.75rem;
    margin-bottom: 3rem;
}
@media (max-width: 1024px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .why-grid { grid-template-columns: 1fr; } }

/* Card entry animation */
@keyframes slideUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================
   CRITICAL OVERRIDE FOR BLUE MODAL ISSUE
   Forcing white backgrounds to resolve visibility.
   ============================================= */

.admin-edit-panel,
#user-profile-edit-modal .admin-edit-panel,
#admin-profile-edit-modal .admin-edit-panel {
    background: #ffffff !important;
    background-color: #ffffff !important;
    color: #1e293b !important;
}

.edit-panel-body,
#user-profile-edit-modal .edit-panel-body,
#admin-profile-edit-modal .edit-panel-body {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
}

.form-section-elegant,
#user-profile-edit-modal .form-section-elegant,
#admin-profile-edit-modal .form-section-elegant {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

.dash-view-section, 
.dash-main-content,
#dash-profile-edit-mode,
#dash-profile-view-mode {
    background: transparent !important;
}

#dash-profile-edit-mode form,
#dash-profile-edit-mode div {
    background-color: transparent !important;
}

/* Force white backgrounds for the actual card containers */
#dash-profile-edit-mode > div > div {
    background-color: #f1f5f9 !important;
}

#dash-profile-edit-mode h1, 
#dash-profile-edit-mode h2, 
#dash-profile-edit-mode span {
    color: #1e3a8a !important;
}

#user-profile-edit-form > div {
    background: transparent !important;
}

/* Ensure no massive blue headers are leaking from admin panel */
.admin-page-header {
    background: transparent !important;
}

/* Restoration for missing fields */
input, select, textarea {
    background-color: #ffffff !important;
    opacity: 1 !important;
    visibility: visible !important;
}
.animate-in {
    animation: slideUp 0.55s ease both;
}

.why-card {
    padding: 2.25rem 2rem;
    border-radius: 20px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.04);
    position: relative;
    overflow: hidden;
}
.why-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-color), var(--saffron));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
    border-radius: 999px 999px 0 0;
}
.why-card:hover::before { transform: scaleX(1); }
.why-card:hover {
    transform: translateY(-8px);
    border-color: rgba(30, 58, 138, 0.15);
    box-shadow: 0 24px 50px -12px rgba(0,0,0,0.1);
}
.why-card h3 {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
    letter-spacing: -0.3px;
}
.why-card p {
    font-size: 0.97rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Icon wrappers */
.why-icon-wrap {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.why-icon-wrap i { width: 24px; height: 24px; }

.icon-blue.edit-panel-body,
#user-profile-edit-modal .edit-panel-body,
#admin-profile-edit-modal .edit-panel-body {
    background: #f8fafc !important;
    background-color: #f8fafc !important;
}

.form-section-elegant,
#user-profile-edit-modal .form-section-elegant,
#admin-profile-edit-modal .form-section-elegant {
    background: #ffffff !important;
    background-color: #ffffff !important;
}

/* =============================================
   MODERATION & SUBMISSION FEEDBACK
   ============================================= */

.status-banner {
    padding: 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
    font-weight: 600;
    animation: slideDown 0.4s ease-out;
}

.status-banner.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.status-banner.error {
    background: rgba(239, 68, 68, 0.1);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.status-banner .banner-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.status-banner i {
    width: 20px;
    height: 20px;
}

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

.read-more {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.read-more:hover {
    letter-spacing: 0.8px;
    opacity: 0.8;
}

.icon-blue   { background: rgba(30, 58, 138, 0.08); color: var(--accent-color); }
.icon-saffron{ background: rgba(249, 115, 22, 0.1);  color: var(--saffron); }
.icon-green  { background: rgba(16, 185, 129, 0.1);  color: var(--green); }
.icon-purple { background: rgba(124, 58, 237, 0.1);  color: #7c3aed; }

/* -- Benefits Banner -- */
.benefits-banner {
    padding: 2.75rem 3rem;
    border-radius: 24px;
    margin-bottom: 3rem;
    background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
    border: 1px solid var(--border-color);
}
.benefits-banner-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 2.5rem;
    align-items: center;
}
.banner-text { flex: 0 0 auto; }
.banner-text h3 {
    font-family: var(--font-heading);
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 0.4rem;
}
.banner-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}
.benefits-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    flex: 1;
}
.benefit-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(30, 58, 138, 0.06);
    color: var(--accent-color);
    border: 1px solid rgba(30, 58, 138, 0.12);
    padding: 0.45rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.25s;
    white-space: nowrap;
}
.benefit-pill:hover {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    transform: translateY(-2px);
}
.benefit-pill i {
    width: 14px;
    height: 14px;
    color: var(--green);
    flex-shrink: 0;
}
.benefit-pill:hover i { color: #fff; }

/* -- CTA Block -- */
.membership-cta { margin-top: 2rem; }
.cta-inner {
    text-align: center;
    padding: 5rem 3rem;
    border-radius: 32px;
    background: linear-gradient(145deg,
        rgba(30, 58, 138, 0.03) 0%,
        rgba(249, 115, 22, 0.03) 100%
    );
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}
.cta-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% -10%, rgba(249, 115, 22, 0.07) 0%, transparent 60%);
    pointer-events: none;
}
.cta-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.75rem;
}
.cta-flag { font-size: 1.8rem; }
.cta-tag {
    background: rgba(16, 185, 129, 0.1);
    color: var(--green);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 0.35rem 1rem;
    border-radius: 50px;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.cta-inner h2 {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-primary);
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    background: none;
    -webkit-text-fill-color: initial;
}
.cta-inner > p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin: 0 auto 2.5rem;
}
.cta-actions {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}
.cta-btn-main {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent-color), var(--saffron));
    box-shadow: 0 8px 24px rgba(30, 58, 138, 0.2);
    transition: all 0.3s ease;
}
.cta-btn-main:hover {
    transform: translateY(-3px) scale(1.03);
    box-shadow: 0 12px 32px rgba(30, 58, 138, 0.3);
}
.cta-btn-secondary {
    padding: 1rem 2.25rem;
    font-size: 1.05rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
}
.cta-note {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
}
/* =============================================
   ENHANCED USER DASHBOARD
   ============================================= */
.dashboard-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
    overflow-x: auto;
}

.dash-tab {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 1.25rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    border-radius: 10px;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dash-tab i { width: 18px; height: 18px; opacity: 0.7; }

.dash-tab:hover {
    background: rgba(37, 99, 235, 0.05);
    color: var(--accent-color);
}

.dash-tab.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.dash-tab.active i { opacity: 1; }

.dash-tab.admin-only {
    color: #b91c1c;
    background: rgba(185, 28, 28, 0.05);
}

.dash-tab.admin-only.active {
    background: #b91c1c;
    color: #fff;
}

/* Profile Tab Grid */
.dash-profile-grid {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
}

.profile-photo-column {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.photo-preview-wrap {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    border: 4px solid #fff;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.photo-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: #fff;
}

.photo-preview-wrap:hover .photo-overlay { opacity: 1; }

/* Admin Grid */
.admin-dash-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.admin-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: #fff;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.admin-card:hover { transform: translateY(-5px); }

.admin-card h4 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.admin-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 1rem;
}

.admin-stats-bar {
    display: flex;
    justify-content: space-around;
    padding: 1.25rem;
    border-radius: 16px;
    background: rgba(30, 58, 138, 0.03);
}

.admin-stats-bar .stat {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.admin-stats-bar .stat strong {
    font-size: 1.1rem;
    margin-left: 0.5rem;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

@media (max-width: 768px) {
    .dash-profile-grid { grid-template-columns: 1fr; gap: 2rem; }
    .admin-dash-grid { grid-template-columns: 1fr; }
}

/* --- Claim & Verification UI --- */
.claim-card {
    padding: 1.5rem;
    border-radius: 16px;
    background: var(--glass-bg);
    border: 1px solid var(--accent-saffron);
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1.5rem;
}

.claim-card .accent {
    font-weight: 700;
}

.v-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.v-icon {
    width: 48px;
    height: 48px;
    color: var(--accent-saffron);
}

.upload-box {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(0,0,0,0.015);
    margin: 1.5rem 0;
}

.upload-box:hover {
    border-color: var(--accent-saffron);
    background: rgba(244, 150, 48, 0.05);
}

.upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-secondary);
    cursor: pointer;
}

.upload-placeholder i {
    width: 40px;
    height: 40px;
    opacity: 0.5;
}

.upload-placeholder span {
    font-weight: 500;
}

.badge-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin-left: 6px;
    position: relative;
    top: -1px;
}

.badge-dot.danger {
    background: #ef4444;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.4);
}

.progress-bar {
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-saffron), #fb923c);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 500;
}

.alert.success {
    background: rgba(16, 185, 129, 0.1);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert.success i { color: #10b981; }

.verification-card h3 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.v-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Marketplace Filters */
.marketplace-filters {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.filter-chip {
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
}

.filter-chip:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: #fff;
}

.filter-chip.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px var(--accent-glow);
}

/* ── Native Dashboard Wrapper ─────────────────────────────── */
#dashboard-site-content {
    min-height: 100vh;
    background: #f1f5f9;
}

.dash-view-header {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 6px rgba(0,0,0,0.06);
}
.dash-nav-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}
.dash-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}
.dash-brand h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--text-primary);
}
.dash-user-summary {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}
.user-callsign {
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 1.1rem;
}

.section-title-wrap { margin-bottom: 1.5rem; }
.section-title-wrap h3 { font-size: 1.75rem; font-weight: 800; margin-bottom: 0.25rem; color: var(--text-primary); }
.section-title-wrap p { color: var(--text-secondary); font-size: 0.95rem; }

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

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.tiny { font-size: 0.75rem; opacity: 0.7; }

/* Verification Card */
.verification-card-premium { padding: 2.5rem; max-width: 800px; }
.v-header-premium { display: flex; gap: 1.5rem; align-items: center; }
.v-icon-wrap {
    width: 60px; height: 60px;
    background: var(--accent-glow); color: var(--accent-color);
    border-radius: 16px; display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.v-icon-wrap i { width: 28px; height: 28px; }
.upload-box-premium {
    border: 2px dashed var(--border-color); border-radius: 20px;
    padding: 3rem; text-align: center; transition: all 0.3s; background: rgba(248,250,252,0.5);
}
.upload-box-premium:hover { border-color: var(--accent-color); background: #fff; }
.upload-label-premium { display: flex; flex-direction: column; align-items: center; gap: 1rem; cursor: pointer; }
.upload-label-premium i { width: 48px; height: 48px; color: var(--text-secondary); }

.dash-profile-grid-premium {
    padding: 3rem;
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 4rem;
}

/* Dashboard Layout - Flexbox (always side-by-side on desktop) */
.dashboard-layout {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding-top: 2.5rem;
    padding-bottom: 5rem;
    min-height: calc(100vh - 80px);
}

.dash-sidebar {
    flex: 0 0 260px;
    width: 260px;
    min-width: 260px;
    position: sticky;
    top: 80px;
    padding: 1.25rem;
    border-radius: 20px;
    align-self: flex-start;
}

.dash-main-content {
    flex: 1;
    min-width: 0;  /* prevents flex overflow */
    display: flex;
    flex-direction: column;
    gap: 0;
}

.dash-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dash-nav-btn {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: left;
    width: 100%;
    position: relative;
}

.dash-nav-btn i { width: 18px; height: 18px; flex-shrink: 0; }

.dash-nav-btn:hover {
    background: rgba(30,58,138,0.06);
    color: var(--accent-color);
    transform: translateX(3px);
}

.dash-nav-btn.active {
    background: var(--accent-glow);
    color: var(--accent-color);
    font-weight: 700;
}

.dash-nav-btn.active::before {
    content: '';
    position: absolute;
    left: 0; top: 25%; bottom: 25%;
    width: 3px;
    background: var(--accent-color);
    border-radius: 0 3px 3px 0;
}

.dash-sidebar-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.dash-view-section {
    animation: fadeIn 0.35s ease-out;
}

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

/* Tablet: shrink sidebar but keep side-by-side */
@media (max-width: 992px) and (min-width: 768px) {
    .dashboard-layout { gap: 1.25rem; }
    .dash-sidebar { flex: 0 0 200px; width: 200px; min-width: 200px; }
    .dash-nav-btn span { display: none; }
    .dash-nav-btn { justify-content: center; padding: 0.85rem; }
    .dash-nav-btn i { width: 22px; height: 22px; }
}

/* Mobile only: stack vertically */
@media (max-width: 767px) {
    .dashboard-layout {
        flex-direction: column;
        padding-top: 1rem;
        gap: 1rem;
    }
    .dash-sidebar {
        flex: none;
        width: 100%;
        min-width: 0;
        position: relative;
        top: 0;
        padding: 1rem;
    }
    .dash-nav {
        flex-direction: row;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        gap: 0.25rem;
    }
    .dash-nav-btn {
        white-space: nowrap;
        flex-shrink: 0;
        padding: 0.6rem 0.9rem;
        font-size: 0.82rem;
    }
    .dash-nav-btn.active::before { display: none; }
    .dash-profile-grid-premium {
        grid-template-columns: 1fr;
        padding: 1.5rem;
    }
}

    border: 1px solid var(--accent-color);
    padding: 0.5rem 2.5rem 0.5rem 1rem;
    border-radius: 99px;
    color: var(--accent-color);
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
    outline: none;
    transition: all 0.2s ease;
}

/* --- QSL Designer Styles --- */
.theme-opt {
    padding: 0.75rem;
    border: 2px solid transparent;
    border-radius: 12px;
    background: #f8fafc;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}
.theme-opt:hover {
    background: #f1f5f9;
    border-color: var(--border-color);
}
.theme-opt.active {
    background: var(--accent-glow);
    border-color: var(--accent-color);
    color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.1);
}
.qsl-mini-card {
    transition: all 0.3s ease;
    cursor: pointer;
}
.qsl-mini-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.identity-select:hover {
    background: var(--accent-color);
    color: #fff;
}

.identity-switcher-wrap::after {
    content: '▼';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.6rem;
    pointer-events: none;
}

/* Available Search & Claim */
.available-search-wrap .search-input-group {
    background: #fff;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border-radius: 99px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.available-search-wrap input {
    border: none;
    outline: none;
    width: 100%;
    font-size: 1rem;
    background: transparent;
}

.available-chip {
    padding: 0.4rem 0.6rem 0.4rem 1rem !important;
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    border: 1px solid var(--border-color);
    background: #fff !important;
}

.claim-mini-btn {
    background: var(--accent-color);
    color: #fff;
    border: none;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.claim-mini-btn:hover {
    background: var(--saffron);
    transform: scale(1.05);
}

/* Marketplace Auctions */
/* --- PROFESSIONAL MARKETPLACE REDESIGN --- */
.marketplace-controls {
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
    padding: 0.5rem;
    border-radius: 50px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
}

.marketplace-modes {
    display: flex;
    gap: 0.5rem;
}

.mode-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    color: var(--text-secondary);
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.mode-btn i { width: 18px; }

.mode-btn.active {
    background: var(--accent-color);
    color: white;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

.mode-btn:not(.active):hover {
    background: rgba(255,255,255,0.1);
    color: var(--text-primary);
}

.marketplace-section.hidden { display: none; }

/* Fixed Price Grid Refinement */
.marketplace-card {
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.02);
}

.marketplace-card:hover {
    transform: translateY(-8px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.sold-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: 5px;
    transform: rotate(-15deg);
    z-index: 2;
}

/* --- PROFESSIONAL AUCTION HUB TABLE --- */
.table-container-premium {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    background: rgba(255,255,255,0.01);
}

.auction-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 800px;
}

.auction-table th {
    padding: 1.25rem 1.5rem;
    background: rgba(255,255,255,0.03);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 2px solid var(--border-color);
}

.auction-table td {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.auction-row {
    transition: all 0.2s ease;
}

.auction-row:hover {
    background: rgba(37, 99, 235, 0.03);
}

.auction-row.expired {
    opacity: 0.5;
    pointer-events: none;
    filter: grayscale(1);
}

.timer-wrap {
    font-family: var(--font-mono);
    font-weight: 600;
    color: #ef4444; 
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mini-bid-input {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    padding: 0.5rem;
    border-radius: 6px;
    width: 110px;
    outline: none;
}

.mini-bid-input:focus {
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .hide-mobile { display: none; }
}

/* Marketplace Cleaned */
    border: 1px solid rgba(249, 115, 22, 0.3);
}

.auction-live-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--saffron);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    animation: pulse-glow 2s infinite;
}

@keyframes pulse-glow {
    0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(249, 115, 22, 0); }
    100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); }
}

.bid-status-wrap {
    margin: 1rem 0;
    padding: 1rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
}

.bidder-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.auction-timer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--saffron);
    font-weight: 700;
    margin-bottom: 1rem;
}

.bid-input-group {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    margin-top: 0.5rem;
}

.bid-input-group input {
    flex: 1;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    outline: none;
}

.bid-input-group input:focus {
    border-color: var(--accent-vivid);
}

/* No Results Premium Card */
.no-results-premium {
    text-align: center;
    padding: 4rem 2rem;
    max-width: 600px;
    margin: 2rem auto;
    border: 1px dashed var(--border-color);
    background: rgba(255,255,255,0.4);
}

.no-res-icon {
    font-size: 3rem;
    color: var(--text-secondary);
    opacity: 0.2;
    margin-bottom: 1.5rem;
}

.no-res-icon i {
    width: 64px;
    height: 64px;
}

.no-res-actions {
    margin-top: 2rem;
    background: var(--accent-glow);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--accent-glow);
}

.no-results-premium h3 {
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

/* Profile & Upload Extensions */
.photo-preview-wrap {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 24px;
    overflow: hidden;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.photo-preview-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    opacity: 0;
    transition: 0.3s;
}

.photo-preview-wrap:hover .photo-overlay {
    opacity: 1;
}

.upload-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 6px;
    background: var(--green);
    transition: width 0.3s ease;
}

.verification-mini-card {
    padding: 1.5rem;
    border: 1px solid var(--accent-glow);
    background: rgba(30, 58, 138, 0.02) !important;
}

.v-header-premium {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.v-icon-wrap {
    width: 48px;
    height: 48px;
    background: var(--accent-glow);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* News Feed Lively Refinement */
.news-meta .source {
    padding: 2px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.source-dx-world { background: rgba(37, 99, 235, 0.1); color: #2563eb; }
.source-arrl-news { background: rgba(249, 115, 22, 0.1); color: #f97316; }
.source-rsgb-news { background: rgba(16, 185, 129, 0.1); color: #10b981; }
.source-amateurradio-com { background: rgba(139, 92, 246, 0.1); color: #8b5cf6; }

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

.animate-in {
    animation: fadeInUp 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

.news-card {
    transition: all 0.3s ease;
}

.news-card:hover {
    transform: scale(1.01) translateX(5px);
    background: rgba(255,255,255,0.95);
    border-color: var(--accent-vivid);
}

/* --- Marketplace Image Gallery & Lightbox --- */
.marketplace-card {
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    overflow: hidden;
}

.marketplace-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.15);
}

.market-img {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Locked 4:3 Aspect Ratio */
    background: #f1f5f9;
    cursor: zoom-in;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

.market-img img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.marketplace-card:hover .market-img img {
    transform: scale(1.08);
}

/* Lightbox Modal */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(12px);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-modal.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 90%;
    max-height: 95vh;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    border-radius: 12px;
    box-shadow: 0 4px 60px rgba(0,0,0,0.7);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.lightbox-modal.active .lightbox-content img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    color: white;
    font-size: 3rem;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: 0.2s;
}

.lightbox-close:hover {
    color: var(--accent-vivid);
    transform: rotate(90deg);
}

/* --- Admin Moderation Tabs --- */
.mod-tabs {
    display: flex;
    gap: 1rem;
    margin: 1.5rem 0;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.mod-tab-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.mod-tab-btn:hover {
    background: rgba(255,255,255,0.5);
    color: var(--text-primary);
}

.mod-tab-btn.active {
    background: #fff;
    color: var(--accent-vivid);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.mod-tab-btn.active i {
    color: var(--accent-vivid);
}

.mod-tab-btn i {
    width: 18px;
    height: 18px;
    opacity: 0.7;
}

.mod-tab-btn .count-pill {
    font-size: 0.7rem;
    background: rgba(0,0,0,0.1);
    padding: 2px 6px;
    border-radius: 10px;
    color: var(--text-secondary);
}

.mod-tab-btn.active .count-pill {
    background: var(--accent-glow);
    color: var(--accent-vivid);
}

/* Elegant Verification Badge Animation */
.verified-seal-wrap {
    position: relative;
    display: inline-flex;
    overflow: hidden;
    border-radius: 20px;
}

.verified-seal-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transform: skewX(-20deg);
    animation: seal-shimmer 6s infinite ease-in-out;
}

@keyframes seal-shimmer {
    0% { left: -100%; }
    15% { left: 100%; }
    100% { left: 100%; }
}

/* --- Admin Edit Modal --- */
.admin-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: none;
    justify-content: center;
    align-items: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.admin-edit-overlay.active {
    display: flex;
    opacity: 1;
}

.admin-edit-panel {
    background: #fff;
    width: 100%;
    max-width: 700px;
    max-height: 90vh;
    border-radius: 20px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.4);
}

.edit-panel-header {
    padding: 1.5rem 2rem;
    background: var(--primary-deep);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.edit-panel-header .header-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.edit-panel-header h3 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 700;
}

.edit-panel-header .accent {
    color: var(--accent-vivid);
}

.close-edit {
    background: rgba(255,255,255,0.1);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
}

.close-edit:hover {
    background: rgba(255,0,0,0.2);
}

.edit-panel-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.edit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.form-group-sm label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.form-group-sm input, 
.form-group-sm textarea {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.9rem;
    background: #f8fafc;
    transition: 0.2s;
}

.form-group-sm input:focus, 
.form-group-sm textarea:focus {
    outline: none;
    border-color: var(--primary-deep);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.edit-option-row {
    padding: 1.25rem;
    background: rgba(15, 23, 42, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.05);
}

.edit-panel-footer {
    padding: 1.5rem 2rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

/* Animations */
.animate-up {
    animation: slideUp 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

/* --- Networking System Styles --- */
.network-grid-premium {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.network-card {
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.network-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.network-avatar {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.network-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.network-info {
    flex: 1;
}

.network-info h4 {
    margin: 0;
    font-size: 1.1rem;
    color: var(--accent-color);
    font-family: var(--font-mono);
}

.network-info p {
    margin: 0;
}

.network-tabs {
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.dash-tab {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.3s;
}

.dash-tab.active {
    background: var(--accent-color) !important;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
    border-bottom: none;
}

/* Social Handles in Profile Card */
.social-handles-premium {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.social-icon-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(30, 58, 138, 0.05);
    color: var(--accent-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-icon-btn:hover {
    background: var(--accent-color);
    color: #fff;
    transform: translateY(-3px);
}

.connected {
    background: var(--success) !important;
    color: #fff !important;
    border-color: var(--success) !important;
}

.section-divider {
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-secondary);
    opacity: 0.6;
    border-bottom: 1px solid var(--border-color);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.animate-in {
    animation: fadeInSlideUp 0.5s ease forwards;
}

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

/* --- QSL Designer Styles --- */
.qsl-designer-layout {
    background: var(--card-bg);
}

.theme-opt {
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-secondary);
}

.theme-opt:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
}

.theme-opt.active {
    background: var(--accent-color);
    color: #fff;
    border-color: var(--accent-color);
    box-shadow: 0 4px 12px rgba(30, 58, 138, 0.2);
}

.form-group-mini label {
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    display: block;
}

#qsl-canvas {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.qsl-card-received {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.qsl-card-received:hover {
    transform: scale(1.02);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

/* Animations */
.animate-in {
    animation: fadeInSlide 0.5s ease forwards;
}

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

/* Live Operator Dashboard Styles - Refactored for Robustness */
.dashboard-grid-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    animation: fadeIn 0.4s ease-out;
}

@media (max-width: 1300px) {
    .dashboard-grid-layout {
        grid-template-columns: 1fr;
    }
    
    .dash-section-header {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 1.5rem;
    }
}

.dash-widget {
    min-width: 0; /* Prevent grid blowouts */
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dash-widget:hover {
    transform: translateY(-4px);
}

.solar-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

@media (max-width: 500px) {
    .solar-stats-grid {
        grid-template-columns: 1fr;
    }
}

.nearby-ham-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    background: white;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
}

.nearby-ham-card:hover {
    background: #f8fafc;
    border-color: var(--accent-vivid);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.feed-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    border-left: 4px solid var(--accent-color);
    background: rgba(30, 58, 138, 0.02);
    border-radius: 0 16px 16px 0;
    transition: background 0.2s;
}

.feed-item:hover {
    background: rgba(30, 58, 138, 0.05);
}

.feed-item.news { border-left-color: #f59e0b; }
.feed-item.market { border-left-color: #10b981; }

.monitoring-toggle {
    transition: all 0.3s;
}

.monitoring-toggle:hover {
    background: rgba(30, 58, 138, 0.08) !important;
}

/* Toggle Switch Styling */
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
}

.switch input { 
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
}

input:checked + .slider {
  background-color: var(--accent-vivid);
}

input:checked + .slider:before {
  transform: translateX(20px);
}

.slider.round {
  border-radius: 24px;
}

.slider.round:before {
  border-radius: 50%;
}

/* =============================================
   DASHBOARD HEADER USER BLOCK
   ============================================= */
.dash-user-info-block {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 1rem 0.4rem 0.5rem;
    background: rgba(30,58,138,0.05);
    border: 1px solid rgba(30,58,138,0.12);
    border-radius: 50px;
}
.dash-user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-color), var(--saffron));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 0.9rem;
    flex-shrink: 0;
    background-size: cover;
    background-position: center;
}
.dash-header-callsign {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-color);
    line-height: 1;
}
.dash-header-name {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* =============================================
   ADMIN PANEL - ELEGANT MODERATION UI
   ============================================= */

/* Stats Row */
.admin-stats-row {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
}
.admin-stat-pill {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}
.admin-stat-pill:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(30,58,138,0.1);
}
.stat-icon { font-size: 1.6rem; }
.stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--accent-color);
    line-height: 1;
}
.stat-lbl {
    font-size: 0.72rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 3px;
}

/* Moderation Section Block */
.mod-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    margin-bottom: 2rem;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.mod-section-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1.25rem 1.75rem;
    border-bottom: 1px solid var(--border-color);
    background: #f8fafc;
}
.mod-section-header h3 {
    font-size: 1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    flex: 1;
}
.mod-section-header i {
    width: 20px;
    height: 20px;
    color: var(--accent-color);
}
.mod-count {
    background: var(--accent-glow);
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 2px 10px;
    border-radius: 99px;
}

/* Moderation Table */
.mod-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.mod-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}
.mod-table thead tr {
    background: #f8fafc;
    border-bottom: 1px solid var(--border-color);
}
.mod-table th {
    padding: 0.9rem 1.25rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: #64748b;
    white-space: nowrap;
    text-align: left;
}
.mod-table tbody tr {
    border-bottom: 1px solid rgba(226,232,240,0.6);
    transition: background 0.15s ease;
}
.mod-table tbody tr:last-child { border-bottom: none; }
.mod-table tbody tr:hover { background: rgba(30,58,138,0.025); }
.mod-table td {
    padding: 1rem 1.25rem;
    vertical-align: middle;
    color: var(--text-primary);
}
.mod-table td.text-muted { color: var(--text-secondary); font-size: 0.83rem; }
.empty-table-cell {
    text-align: center;
    color: var(--text-secondary);
    padding: 3rem !important;
    font-style: italic;
    font-size: 0.9rem;
}

/* Action Buttons */
.action-btns {
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
    align-items: center;
}
.btn-act {
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    border: 1px solid transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    background: #f1f5f9;
    color: #475569;
}
.btn-act:hover { background: #e2e8f0; }
.btn-act.approve {
    background: rgba(16,185,129,0.1);
    color: #065f46;
    border-color: rgba(16,185,129,0.2);
}
.btn-act.approve:hover { background: #10b981; color: #fff; }
.btn-act.reject {
    background: rgba(245,158,11,0.1);
    color: #92400e;
    border-color: rgba(245,158,11,0.2);
}
.btn-act.reject:hover { background: #f59e0b; color: #fff; }
.btn-act.delete {
    background: rgba(239,68,68,0.08);
    color: #991b1b;
    border-color: rgba(239,68,68,0.15);
}
.btn-act.delete:hover { background: #ef4444; color: #fff; }

/* User Cell in roles table */
.user-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.user-avatar-sm {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--accent-color), var(--saffron));
    color: #fff;
    font-weight: 800;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.user-callsign-label {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--accent-color);
}
.role-tag {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 99px;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.3px;
}
.role-tag.admin { background: rgba(139,92,246,0.1); color: #6d28d9; }
.role-tag.mod   { background: rgba(59,130,246,0.1); color: #1d4ed8; }
.role-tag.verified { background: rgba(16,185,129,0.1); color: #065f46; }
.role-tag.ml-1  { margin-left: 0.4rem; }
.callsign-label {
    font-family: var(--font-mono, monospace);
    font-weight: 800;
    color: var(--accent-color);
}
.text-strong { font-weight: 700; }
.text-xs  { font-size: 0.75rem; }

/* Loading / Error states */
.admin-loading {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 3rem;
    color: var(--text-secondary);
    font-style: italic;
    justify-content: center;
}
.admin-error-msg {
    padding: 2rem;
    text-align: center;
    color: #dc2626;
    background: rgba(239,68,68,0.05);
    border-radius: 12px;
    border: 1px solid rgba(239,68,68,0.15);
    margin: 1rem;
}

/* Admin Grid Premium for moderation container */
.admin-grid-premium {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-stats-row { gap: 1rem; }
    .admin-stat-pill { padding: 1rem; }
    .mod-table th, .mod-table td { padding: 0.75rem 0.9rem; }
}

/* =============================================
   ADMIN PANEL - PREMIUM PAGE COMPONENTS
   ============================================= */

/* Admin Page Header */
.admin-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.75rem 2rem;
    background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 100%);
    border-radius: 20px;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.admin-page-title {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}
.admin-shield-icon {
    width: 52px; height: 52px;
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    flex-shrink: 0;
}
.admin-shield-icon i { width: 26px; height: 26px; }
.admin-page-header h1 {
    font-size: 1.6rem; font-weight: 800;
    color: #fff; margin: 0; line-height: 1.2;
}
.admin-page-header h1 .accent { color: #fbbf24; }
.admin-page-header p { color: rgba(255,255,255,0.75); font-size: 0.9rem; margin: 4px 0 0; }
.admin-page-header .btn-outline {
    border-color: rgba(255,255,255,0.4);
    color: #fff;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(4px);
}
.admin-page-header .btn-outline:hover { background: rgba(255,255,255,0.25); }

/* Admin Tab Bar */
.admin-tab-bar {
    display: flex;
    gap: 0.4rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 0.4rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.admin-tab-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.88rem;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}
.admin-tab-btn i { width: 16px; height: 16px; }
.admin-tab-btn:hover { background: rgba(30,58,138,0.06); color: var(--accent-color); }
.admin-tab-btn.active {
    background: var(--accent-color);
    color: #fff;
    box-shadow: 0 3px 10px rgba(37,99,235,0.25);
}
.admin-tab-btn.active i { opacity: 1; }

/* Admin View Toolbar */
.admin-view-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.admin-view-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.3px;
}
.admin-view-subtitle {
    color: var(--text-secondary);
    font-size: 0.88rem;
    margin: 4px 0 0;
}
.accent-count {
    color: var(--accent-color);
    font-weight: 700;
}

/* Admin Search Input */
.admin-search-input {
    padding: 0.55rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.88rem;
    color: var(--text-primary);
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    min-width: 220px;
}
.admin-search-input:focus { border-color: var(--accent-color); box-shadow: 0 0 0 3px rgba(37,99,235,0.08); }

/* Admin Backup Card */
.admin-backup-card {
    border-radius: 20px;
    padding: 4rem 3rem;
    text-align: center;
    border: 1px solid var(--border-color);
    background: #fff;
    max-width: 560px;
    margin: 0 auto;
}
.backup-icon {
    width: 72px; height: 72px;
    background: rgba(37,99,235,0.08);
    color: var(--accent-color);
    border-radius: 20px;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 1.5rem;
}
.backup-icon i { width: 36px; height: 36px; }
.admin-backup-card h3 {
    font-size: 1.4rem; font-weight: 800; margin: 0 0 0.75rem; color: var(--text-primary);
}
.admin-backup-card p {
    color: var(--text-secondary); font-size: 0.92rem; line-height: 1.6; margin: 0;
}
.admin-backup-status {
    margin-top: 1.25rem;
    font-size: 0.82rem;
    color: var(--text-secondary);
    font-style: italic;
}

@media (max-width: 640px) {
    .admin-page-header { padding: 1.25rem; }
    .admin-page-header h1 { font-size: 1.2rem; }
    .admin-tab-btn { padding: 0.55rem 0.85rem; font-size: 0.8rem; }
    .admin-view-toolbar { flex-direction: column; align-items: flex-start; }
    .admin-search-input { min-width: 100%; }
}

/* Premium Section Divider for Dashboard Forms */
.section-divider-premium {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    position: relative;
    overflow: hidden;
}

.divider-text {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-vivid);
    white-space: nowrap;
    z-index: 1;
    background: #fff;
    padding-right: 0.5rem;
}

.divider-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, var(--accent-glow), transparent);
}

.loader-tiny {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    display: inline-block;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 8px;
}

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

/* Form Interactivity */
.dash-form .form-group label {
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
    color: #475569;
}

.dash-form .form-group input, 
.dash-form .form-group select,
.dash-form .form-group textarea {
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.5);
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.dash-form .form-group input:focus,
.dash-form .form-group select:focus,
.dash-form .form-group textarea:focus {
    background: #fff;
    border-color: var(--accent-vivid);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
    transform: translateY(-1px);
}

/* Station Gallery Enhancements */
.gallery-grid::-webkit-scrollbar {
    width: 6px;
}
.gallery-grid::-webkit-scrollbar-track {
    background: rgba(30, 58, 138, 0.02);
    border-radius: 10px;
}
.gallery-grid::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 10px;
}

.gallery-item.active {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.1);
}

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

.gallery-item img {
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.upload-dropzone:hover {
    border-color: var(--accent-vivid) !important;
    background: var(--accent-glow) !important;
    transform: translateY(-2px);
}

.photo-picker-card {
    background: linear-gradient(to right, rgba(255,255,255,0.9), rgba(248,250,252,0.8));
    transition: all 0.3s ease;
}

.photo-picker-card:hover {
    box-shadow: 0 10px 30px -10px rgba(30, 58, 138, 0.15);
}

 
 
 
/* Premium Logo Verified Badge */
.badge-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 4px 12px;
    background: linear-gradient(135deg, rgba(255, 123, 0, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
    color: var(--accent-vivid);
    border: 1px solid rgba(255, 123, 0, 0.3);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    box-shadow: 0 4px 12px rgba(255, 123, 0, 0.1);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-logo-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.2));
}

/* --- Premium Side-by-Side Profile Layout --- */
.premium-profile-card {
    display: flex;
    gap: 2.5rem;
    padding: 2rem;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem;
}

.premium-profile-card:hover {
    transform: translateY(-5px);
    border-color: var(--accent-color);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.profile-image-standard {
    flex: 0 0 220px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background: #f8fafc;
}

.profile-image-standard img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.premium-profile-card:hover .profile-image-standard img {
    transform: scale(1.05);
}

.profile-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.profile-tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.tech-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-label {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tech-value {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Privacy Gating Overlay */
.privacy-gate-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, #fff 40%, rgba(255,255,255,0.8) 70%, transparent 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 10;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(4px);
}

.privacy-gate-content {
    background: #fff;
    padding: 1.5rem 2rem;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border: 1px solid var(--border-color);
    max-width: 320px;
}

.privacy-gate-content p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

@media (max-width: 650px) {
    .premium-profile-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 1.5rem;
    }
    .profile-image-standard {
        flex: 0 0 200px;
        width: 200px;
    }
}


.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.tabular-details-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
}

.card-header-sm {
    background: var(--accent-color);
    color: #fff;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.details-table-wrapper {
    overflow-x: auto;
}

.details-table-minimal {
    width: 100%;
    border-collapse: collapse;
}

.details-table-minimal th {
    text-align: left;
    padding: 0.75rem 1.25rem;
    background: #f8fafc;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.details-table-minimal td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

.details-table-minimal input, 
.details-table-minimal select {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.2s;
}

.details-table-minimal input:focus,
.details-table-minimal select:focus {
    background: #f1f5f9;
    border-color: var(--border-color);
    outline: none;
}

.verification-badge-corner {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #fff;
    padding: 0.4rem 0.75rem;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #94a3b8;
}

.status-indicator.verified { background: var(--success); }
.status-indicator.pending { background: #f59e0b; }
.status-indicator.unverified { background: var(--danger); }

.status-text {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--text-secondary);
}

@media (max-width: 768px) {
    .form-grid-3, .form-grid-2 {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   PREMIUM EDIT MODALS (Shared across User/Admin)
   ============================================= */

.admin-edit-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.65); /* Neutralized overlay */
    backdrop-filter: blur(12px) saturate(150%);
    -webkit-backdrop-filter: blur(12px) saturate(150%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 1.5rem;
}

.admin-edit-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.admin-edit-panel {
    background: #ffffff !important; /* Force solid background */
    width: 100%;
    max-width: 1100px;
    max-height: 92vh;
    border-radius: 24px;
    box-shadow: 0 40px 100px rgba(0, 0, 0, 0.4);
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden;
    transform: translateY(30px) scale(0.98);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid var(--border-color);
}

.admin-edit-overlay.active .admin-edit-panel {
    transform: translateY(0) scale(1);
}

.edit-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 3rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    position: relative;
    z-index: 10;
}

.edit-panel-header .header-main {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.edit-panel-header .header-main i {
    color: var(--accent-vivid);
    padding: 0.75rem;
    background: var(--accent-glow);
    border-radius: 12px;
}

.edit-panel-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.75px;
}

.edit-panel-header .close-edit {
    font-size: 1.5rem;
    background: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.edit-panel-header .close-edit:hover {
    background: var(--danger);
    color: #fff;
    border-color: var(--danger);
    transform: rotate(90deg);
}

.edit-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 3rem;
    background: #f1f5f9 !important; /* Slightly darker for section contrast */
    scrollbar-width: thin;
}

.form-grid-container {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.form-section-elegant {
    background: #ffffff !important;
    padding: 2.5rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.form-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.form-group-sm {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.form-group-sm label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: none;
    letter-spacing: normal;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.input-premium, .select-premium {
    width: 100%;
    padding: 0.85rem 1rem;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    font-size: 0.95rem;
    color: #1e293b;
    transition: all 0.2s ease;
    outline: none;
}

.input-premium:focus {
    border-color: var(--accent-vivid);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
    background: #fff;
}

textarea.input-premium {
    min-height: 140px;
    line-height: 1.6;
}

.edit-panel-footer {
    padding: 2rem 3rem;
    border-top: 1px solid var(--border-color);
    background: #ffffff;
    display: flex;
    justify-content: flex-end;
    gap: 1.5rem;
    align-items: center;
}

.edit-option-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-color);
    border-radius: 12px;
}

.verification-badge-corner {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: var(--bg-color);
    padding: 0.6rem 1.2rem;
    border-radius: 14px;
    border: 1px solid var(--border-color);
}

@media (max-width: 900px) {
    .form-grid-2, .form-grid-3 {
        grid-template-columns: 1fr;
    }
    .edit-panel-header {
        padding: 1.5rem;
    }
    .edit-panel-body {
        padding: 1.5rem;
    }
}

 / *   = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = 
       C R I T I C A L   O V E R R I D E   F O R   B L U E   M O D A L   I S S U E 
       F o r c i n g   w h i t e   b a c k g r o u n d s   t o   r e s o l v e   v i s i b i l i t y . 
       = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =   * / 
 . a d m i n - e d i t - p a n e l ,   
 # u s e r - p r o f i l e - e d i t - m o d a l   . a d m i n - e d i t - p a n e l ,   
 # a d m i n - p r o f i l e - e d i t - m o d a l   . a d m i n - e d i t - p a n e l   { 
         b a c k g r o u n d :   # f f f f f f   ! i m p o r t a n t ; 
         b a c k g r o u n d - c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
         c o l o r :   # 1 e 2 9 3 b   ! i m p o r t a n t ; 
 } 
 
 . e d i t - p a n e l - b o d y , 
 # u s e r - p r o f i l e - e d i t - m o d a l   . e d i t - p a n e l - b o d y , 
 # a d m i n - p r o f i l e - e d i t - m o d a l   . e d i t - p a n e l - b o d y   { 
         b a c k g r o u n d :   # f 8 f a f c   ! i m p o r t a n t ; 
         b a c k g r o u n d - c o l o r :   # f 8 f a f c   ! i m p o r t a n t ; 
 } 
 
 . f o r m - s e c t i o n - e l e g a n t , 
 # u s e r - p r o f i l e - e d i t - m o d a l   . f o r m - s e c t i o n - e l e g a n t , 
 # a d m i n - p r o f i l e - e d i t - m o d a l   . f o r m - s e c t i o n - e l e g a n t   { 
         b a c k g r o u n d :   # f f f f f f   ! i m p o r t a n t ; 
         b a c k g r o u n d - c o l o r :   # f f f f f f   ! i m p o r t a n t ; 
 } 
  
 