@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

/* ========================================================
   1. RESET & CSS VARIABLES (LIGHT & DARK THEMES)
   ======================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg-primary: #0a0a10;
    --bg-surface: #12121c;
    --bg-surface-elevated: #181826;
    --bg-input: #141420;
    --border-color: rgba(255, 255, 255, 0.12);
    --border-focus: #6366f1;
    --text-primary: #ffffff;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    --primary-gradient: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);
    --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    --accent: #6366f1;
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
}

/* Light Mode for Admin & Pages (Requirement 6) */
body.light-mode {
    --bg-primary: #f8fafc;
    --bg-surface: #ffffff;
    --bg-surface-elevated: #f1f5f9;
    --bg-input: #ffffff;
    --border-color: #e2e8f0;
    --border-focus: #4f46e5;
    --text-primary: #0f172a;
    --text-secondary: #334155;
    --text-muted: #64748b;
    --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    --card-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

body {
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    transition: background-color 0.3s ease, color 0.3s ease;
}

body:not(.landing-page):not(.light-mode) {
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(99, 102, 241, 0.1), transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(236, 72, 153, 0.08), transparent 45%);
    background-attachment: fixed;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.25s ease;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.25;
    color: var(--text-primary);
}

ul, ol {
    list-style: none;
}

/* ========================================================
   2. AUTO-HIDE SCROLLBAR (Hides when not focused/hovered - Requirement 2)
   ======================================================== */
* {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
    transition: scrollbar-color 0.25s ease;
}

*:hover, *:focus-within {
    scrollbar-color: rgba(99, 102, 241, 0.45) transparent;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 9999px;
    transition: background 0.25s ease;
}

*:hover::-webkit-scrollbar-thumb,
*:focus-within::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.4);
}

*:hover::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.85);
}

.modal-content {
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

.modal-content:hover,
.modal-content:focus-within {
    scrollbar-color: rgba(99, 102, 241, 0.5) transparent;
}

/* ========================================================
   3. UTILITY CLASSES & SVG ICONS
   ======================================================== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-column { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.align-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }

.svg-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    flex-shrink: 0;
}

.svg-icon svg {
    display: block;
}

/* ========================================================
   4. GLASS CARDS & BUTTONS
   ======================================================== */
.glass-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: var(--card-shadow);
    border-radius: 18px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body:not(.light-mode) .glass-card {
    background: rgba(20, 20, 32, 0.75);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 22px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    gap: 8px;
    white-space: nowrap;
    border: 1px solid transparent;
}

.btn:active {
    transform: scale(0.98);
}

.btn-primary {
    background: var(--primary-gradient);
    color: #ffffff;
    box-shadow: 0 4px 18px rgba(99, 102, 241, 0.35);
}

.btn-primary:hover {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.55);
    transform: translateY(-2px);
    color: #ffffff;
}

.btn-secondary {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: rgba(99, 102, 241, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.35);
    color: #ef4444;
}

body:not(.light-mode) .btn-danger {
    color: #fca5a5;
}

.btn-danger:hover {
    background: #ef4444;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-outline:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-copy {
    background: rgba(99, 102, 241, 0.12);
    border: 1px solid rgba(99, 102, 241, 0.3);
    color: #6366f1;
}

body:not(.light-mode) .btn-copy {
    color: #a5b4fc;
}

.btn-copy:hover {
    background: #6366f1;
    color: #ffffff;
}

.btn-block {
    width: 100%;
}

/* ========================================================
   5. FORMS & INPUTS (HIGH CONTRAST & VISIBILITY)
   ======================================================== */
.form-group {
    margin-bottom: 1.25rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.form-input, .form-select, .form-textarea {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 10px;
    color: var(--text-primary) !important;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.25s ease;
    box-sizing: border-box;
}

body:not(.light-mode) .form-input,
body:not(.light-mode) .form-select,
body:not(.light-mode) .form-textarea {
    background: #141420 !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}

body.light-mode .form-input,
body.light-mode .form-select,
body.light-mode .form-textarea {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.2) !important;
    outline: none;
}

.form-input::placeholder, .form-textarea::placeholder {
    color: var(--text-muted) !important;
}

.form-input-group {
    display: flex;
    gap: 0.5rem;
}

.form-input-group .form-input {
    flex: 1;
}

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

.form-select option {
    background: var(--bg-surface);
    color: var(--text-primary);
    padding: 8px;
}

.form-hint {
    display: block;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
}

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

/* ========================================================
   6. LANDING PAGE: LIGHT DESIGN & EQUAL HEIGHT CARDS (Req 3 & 9)
   ======================================================== */
body.landing-page {
    background-color: #f8fafc;
    background-image: 
        radial-gradient(circle at 10% 10%, rgba(99, 102, 241, 0.06), transparent 50%),
        radial-gradient(circle at 90% 90%, rgba(168, 85, 247, 0.05), transparent 50%);
    color: #0f172a;
}

.landing-navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
}

.landing-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.3rem;
    font-weight: 800;
    color: #0f172a;
}

.school-logo-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #4f46e5, #7c3aed);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(79, 70, 229, 0.3);
}

.landing-hero {
    padding: 5rem 0 3.5rem;
    text-align: center;
}

.landing-hero h1 {
    font-size: 3.25rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.landing-gradient-text {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #db2777 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.landing-hero p {
    font-size: 1.15rem;
    color: #475569;
    max-width: 680px;
    margin: 0 auto 2.5rem;
}

/* EQUAL HEIGHT PRECISION CARDS (Requirement 3) */
.precision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: stretch; /* Forces equal height across rows */
}

.precision-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 18px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%; /* Exact equal height */
    box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.05);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.precision-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px -5px rgba(79, 70, 229, 0.12);
    border-color: #cbd5e1;
}

.precision-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: rgba(79, 70, 229, 0.1);
    color: #4f46e5;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    flex-shrink: 0;
}

.precision-card-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.75rem;
}

.precision-card-desc {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.6;
    flex: 1; /* Pushes content evenly */
}

.landing-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    margin-bottom: 4rem;
}

.landing-stat-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
}

.landing-stat-card .val {
    font-size: 2.25rem;
    font-weight: 800;
    color: #4f46e5;
    margin-bottom: 0.25rem;
}

.landing-stat-card .lbl {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #64748b;
}

.landing-footer {
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
    padding: 3rem 0 2rem;
    margin-top: 4rem;
    color: #64748b;
}

/* ========================================================
   7. BIO LINK PAGE WITH THEMES & COMPONENTS (Req 4, 10, 11)
   ======================================================== */
.bio-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 1.25rem 2rem;
    transition: all 0.3s ease;
}

.bio-container {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
}

.bio-header {
    text-align: center;
    margin-bottom: 2rem;
}

.bio-avatar-wrapper, .bio-avatar-transparent {
    width: 96px;
    height: 96px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.bio-avatar-wrapper img, .bio-avatar-transparent img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 50%;
    background: transparent !important;
    padding: 0 !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28));
}

.bio-name {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bio-desc {
    font-size: 0.95rem;
    opacity: 0.9;
    max-width: 440px;
    margin: 0 auto;
}

.bio-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* Bio Link Card */
.bio-link-card {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-radius: 14px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bio-link-card:hover {
    transform: translateY(-2px) scale(1.01);
}

.bio-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 14px;
    flex-shrink: 0;
}

.bio-link-info {
    flex: 1;
    min-width: 0;
}

.bio-link-title {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.bio-link-desc {
    font-size: 0.8rem;
    opacity: 0.75;
    margin-top: 2px;
}

/* COLLAPSIBLE VIDEO ACCORDION (Requirement 10) */
.bio-video-accordion {
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.video-toggle-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.25s ease;
}

.video-toggle-btn .chevron-icon {
    transition: transform 0.3s ease;
}

.video-collapse-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    padding: 0 16px;
}

.video-collapse-content.expanded {
    max-height: 500px;
    opacity: 1;
    padding: 0 16px 16px;
}

.video-collapse-content.expanded .video-responsive-wrapper {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.video-responsive-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    background: #000;
}

.video-responsive-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

/* PHOTO GALLERY COMPONENT (Requirement 11 & 2) */
.bio-gallery-card {
    border-radius: 14px;
    padding: 16px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.bio-gallery-card:has(.gallery-toggle-btn) {
    padding: 0;
    overflow: hidden;
}

.gallery-toggle-btn {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    width: 100%;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all 0.25s ease;
    background: transparent;
    color: inherit;
}

.gallery-toggle-btn .chevron-icon {
    transition: transform 0.3s ease;
}

.gallery-collapse-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
    padding: 0 16px;
}

.gallery-collapse-content.expanded {
    max-height: 1200px;
    opacity: 1;
    padding: 0 16px 16px;
}

.bio-gallery-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.bio-gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.bio-gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.2);
}

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

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

.bio-gallery-caption {
    position: absolute;
    bottom: 0;
    inset-inline: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.85));
    color: #ffffff;
    font-size: 0.75rem;
    padding: 14px 8px 6px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* SECTION LABEL ITEM */
.bio-label-badge {
    display: inline-block;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* BIO SOCIAL MEDIA BAR (Requirement 4) */
.bio-social-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 1.5rem 0 1rem;
    flex-wrap: wrap;
}

.bio-social-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    text-decoration: none;
}

.bio-social-btn:hover {
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.bio-social-btn svg {
    width: 20px;
    height: 20px;
}

/* 5 PRESET BIO THEMES (Requirements 2, 4 & 7) */
/* 1. Theme Dark Modern (Default) */
.theme-dark_modern {
    background-color: #0b0b14;
    background-image: radial-gradient(circle at 50% 10%, rgba(99, 102, 241, 0.2), transparent 60%);
    color: #ffffff;
}
.theme-dark_modern .bio-name { color: #ffffff; }
.theme-dark_modern .bio-desc { color: #cbd5e1; }
.theme-dark_modern .bio-link-card,
.theme-dark_modern .bio-video-accordion,
.theme-dark_modern .bio-gallery-card {
    background: rgba(22, 22, 34, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.theme-dark_modern .bio-link-card:hover,
.theme-dark_modern .bio-video-accordion:hover,
.theme-dark_modern .bio-gallery-card:hover {
    border-color: rgba(99, 102, 241, 0.5);
}
.theme-dark_modern .bio-link-icon { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
.theme-dark_modern .bio-link-title { color: #ffffff; }
.theme-dark_modern .bio-link-desc { color: #cbd5e1; }
.theme-dark_modern .bio-gallery-header { color: #ffffff; }
.theme-dark_modern .bio-gallery-header-icon { color: #a5b4fc; }
.theme-dark_modern .bio-label-badge { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.15); color: #cbd5e1; }
.theme-dark_modern .bio-social-btn { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.15); color: #ffffff; }
.theme-dark_modern .bio-social-btn:hover { background: rgba(99, 102, 241, 0.3); border-color: #6366f1; color: #ffffff; }
.theme-dark_modern .video-toggle-btn,
.theme-dark_modern .gallery-toggle-btn { color: #ffffff; }

/* 2. Theme Clean Light */
.theme-clean_light {
    background-color: #f8fafc;
    background-image: radial-gradient(circle at 50% 10%, rgba(79, 70, 229, 0.06), transparent 60%);
    color: #0f172a;
}
.theme-clean_light .bio-name { color: #0f172a; }
.theme-clean_light .bio-desc { color: #475569; }
.theme-clean_light .bio-link-card,
.theme-clean_light .bio-video-accordion,
.theme-clean_light .bio-gallery-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: #0f172a;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}
.theme-clean_light .bio-link-card:hover,
.theme-clean_light .bio-video-accordion:hover,
.theme-clean_light .bio-gallery-card:hover {
    border-color: #6366f1;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.12);
}
.theme-clean_light .bio-link-icon { background: rgba(79, 70, 229, 0.1); color: #4f46e5; }
.theme-clean_light .bio-link-title { color: #0f172a; font-weight: 700; }
.theme-clean_light .bio-link-desc { color: #64748b; }
.theme-clean_light .bio-gallery-header { color: #0f172a; }
.theme-clean_light .bio-gallery-header-icon { color: #4f46e5; }
.theme-clean_light .bio-label-badge { background: #e2e8f0; border: 1px solid #cbd5e1; color: #1e293b; }
.theme-clean_light .bio-social-btn { background: #ffffff; border-color: #cbd5e1; color: #334155; }
.theme-clean_light .bio-social-btn:hover { background: #4f46e5; border-color: #4f46e5; color: #ffffff; }
.theme-clean_light .video-toggle-btn,
.theme-clean_light .gallery-toggle-btn { color: #0f172a; }
.theme-clean_light .bio-footer-copyright { color: #64748b; }

/* 3. Theme Emerald Mint */
.theme-emerald_mint {
    background-color: #064e3b;
    background-image: radial-gradient(circle at 50% 10%, rgba(52, 211, 153, 0.25), transparent 70%);
    color: #ffffff;
}
.theme-emerald_mint .bio-name { color: #ffffff; }
.theme-emerald_mint .bio-desc { color: #d1fae5; }
.theme-emerald_mint .bio-link-card,
.theme-emerald_mint .bio-video-accordion,
.theme-emerald_mint .bio-gallery-card {
    background: rgba(6, 78, 59, 0.85);
    border: 1px solid rgba(52, 211, 153, 0.3);
    color: #ffffff;
}
.theme-emerald_mint .bio-link-card:hover,
.theme-emerald_mint .bio-video-accordion:hover,
.theme-emerald_mint .bio-gallery-card:hover {
    border-color: #34d399;
}
.theme-emerald_mint .bio-link-icon { background: rgba(52, 211, 153, 0.2); color: #6ee7b7; }
.theme-emerald_mint .bio-link-title { color: #ffffff; }
.theme-emerald_mint .bio-link-desc { color: #a7f3d0; }
.theme-emerald_mint .bio-gallery-header { color: #ffffff; }
.theme-emerald_mint .bio-gallery-header-icon { color: #6ee7b7; }
.theme-emerald_mint .bio-label-badge { background: rgba(52, 211, 153, 0.15); border: 1px solid rgba(52, 211, 153, 0.3); color: #a7f3d0; }
.theme-emerald_mint .bio-social-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(52, 211, 153, 0.3); color: #ffffff; }
.theme-emerald_mint .bio-social-btn:hover { background: #059669; border-color: #34d399; color: #ffffff; }
.theme-emerald_mint .video-toggle-btn,
.theme-emerald_mint .gallery-toggle-btn { color: #ffffff; }

/* 4. Theme Ocean Blue */
.theme-ocean_blue {
    background-color: #0c4a6e;
    background-image: radial-gradient(circle at 50% 10%, rgba(56, 189, 248, 0.25), transparent 70%);
    color: #ffffff;
}
.theme-ocean_blue .bio-name { color: #ffffff; }
.theme-ocean_blue .bio-desc { color: #e0f2fe; }
.theme-ocean_blue .bio-link-card,
.theme-ocean_blue .bio-video-accordion,
.theme-ocean_blue .bio-gallery-card {
    background: rgba(12, 74, 110, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: #ffffff;
}
.theme-ocean_blue .bio-link-card:hover,
.theme-ocean_blue .bio-video-accordion:hover,
.theme-ocean_blue .bio-gallery-card:hover {
    border-color: #38bdf8;
}
.theme-ocean_blue .bio-link-icon { background: rgba(56, 189, 248, 0.2); color: #7dd3fc; }
.theme-ocean_blue .bio-link-title { color: #ffffff; }
.theme-ocean_blue .bio-link-desc { color: #bae6fd; }
.theme-ocean_blue .bio-gallery-header { color: #ffffff; }
.theme-ocean_blue .bio-gallery-header-icon { color: #7dd3fc; }
.theme-ocean_blue .bio-label-badge { background: rgba(56, 189, 248, 0.15); border: 1px solid rgba(56, 189, 248, 0.3); color: #bae6fd; }
.theme-ocean_blue .bio-social-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(56, 189, 248, 0.3); color: #ffffff; }
.theme-ocean_blue .bio-social-btn:hover { background: #0284c7; border-color: #38bdf8; color: #ffffff; }
.theme-ocean_blue .video-toggle-btn,
.theme-ocean_blue .gallery-toggle-btn { color: #ffffff; }

/* 5. Theme Sunset Purple */
.theme-sunset_purple {
    background-color: #4c1d95;
    background-image: radial-gradient(circle at 50% 10%, rgba(244, 114, 182, 0.25), transparent 70%);
    color: #ffffff;
}
.theme-sunset_purple .bio-name { color: #ffffff; }
.theme-sunset_purple .bio-desc { color: #fce7f3; }
.theme-sunset_purple .bio-link-card,
.theme-sunset_purple .bio-video-accordion,
.theme-sunset_purple .bio-gallery-card {
    background: rgba(76, 29, 149, 0.85);
    border: 1px solid rgba(244, 114, 182, 0.3);
    color: #ffffff;
}
.theme-sunset_purple .bio-link-card:hover,
.theme-sunset_purple .bio-video-accordion:hover,
.theme-sunset_purple .bio-gallery-card:hover {
    border-color: #f472b6;
}
.theme-sunset_purple .bio-link-icon { background: rgba(244, 114, 182, 0.2); color: #fbcfe8; }
.theme-sunset_purple .bio-link-title { color: #ffffff; }
.theme-sunset_purple .bio-link-desc { color: #fbcfe8; }
.theme-sunset_purple .bio-gallery-header { color: #ffffff; }
.theme-sunset_purple .bio-gallery-header-icon { color: #fbcfe8; }
.theme-sunset_purple .bio-label-badge { background: rgba(244, 114, 182, 0.15); border: 1px solid rgba(244, 114, 182, 0.3); color: #fce7f3; }
.theme-sunset_purple .bio-social-btn { background: rgba(255, 255, 255, 0.1); border-color: rgba(244, 114, 182, 0.3); color: #ffffff; }
.theme-sunset_purple .bio-social-btn:hover { background: #a21caf; border-color: #f472b6; color: #ffffff; }
.theme-sunset_purple .video-toggle-btn,
.theme-sunset_purple .gallery-toggle-btn { color: #ffffff; }

/* ========================================================
   8. ADMIN DASHBOARD & VERTICAL BIO LIST (Req 1, 6)
   ======================================================== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-sidebar {
    width: 270px;
    background: var(--bg-surface);
    border-right: 1px solid var(--border-color);
    padding: 1.75rem 1.25rem;
    flex-shrink: 0;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 100;
    display: flex;
    flex-direction: column;
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.25rem;
    font-weight: 800;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.admin-nav-item:hover {
    background: rgba(99, 102, 241, 0.08);
    color: var(--text-primary);
}

.admin-nav-item.active {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(168, 85, 247, 0.2) 100%);
    border: 1px solid rgba(99, 102, 241, 0.4);
    color: var(--text-primary);
    font-weight: 600;
}

.admin-content {
    flex: 1;
    margin-left: 270px;
    padding: 2.25rem;
    max-width: 1300px;
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.admin-title {
    font-size: 1.75rem;
    font-weight: 800;
}

.tab-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.tab-content.active {
    display: block;
}

/* BIO TAB VERTICAL DOWNWARD LIST (Requirement 1) */
.biolink-vertical-list {
    display: flex;
    flex-direction: column !important; /* Stack vertically */
    gap: 12px;
    width: 100%;
}

.biolink-admin-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.biolink-admin-item:hover {
    border-color: var(--accent);
}

.order-badge {
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-muted);
    width: 24px;
    text-align: center;
}

/* THEME SELECTOR GRID IN SETTINGS */
.theme-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.theme-option-box {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.theme-option-box.active, .theme-option-box:hover {
    border-color: #6366f1;
    transform: translateY(-2px);
}

.theme-color-preview {
    height: 40px;
    border-radius: 8px;
    margin-bottom: 8px;
}

/* ========================================================
   9. STATS & TABLES
   ======================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    padding: 1.5rem;
    border-radius: 16px;
}

.stat-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.stat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-number {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

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

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

.data-table th {
    text-align: left;
    padding: 14px 16px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border-color);
}

.data-table td {
    padding: 16px;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.data-table tr:hover td {
    background: rgba(99, 102, 241, 0.03);
}

/* ========================================================
   10. MODAL POPUPS & LOADING (Req 5 & 7)
   ======================================================== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 14, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
    transition: all 0.25s ease;
    padding: 1.25rem;
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
}

.modal-content {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.85), 0 0 35px rgba(99, 102, 241, 0.15);
    border-radius: 18px;
    max-width: 540px;
    width: 100%;
    max-height: 85vh; /* Fits screen cleanly */
    overflow-y: auto;
    transform: scale(0.95) translateY(10px);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 2rem;
    box-sizing: border-box;
}

.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--text-primary);
}

/* GLOBAL LOADING OVERLAY (Requirement 7) */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 14, 0.7);
    backdrop-filter: blur(6px);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
    color: #ffffff;
}

.global-loading-overlay.active {
    display: flex;
}

.spinner-icon {
    animation: spin 1s linear infinite;
    color: #6366f1;
}

/* DIALOG CARDS */
.app-dialog-card {
    text-align: center;
    padding: 2.25rem;
}

.app-dialog-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.app-dialog-icon.success {
    background: rgba(16, 185, 129, 0.15);
    border: 2px solid rgba(16, 185, 129, 0.4);
    color: #10b981;
}

.app-dialog-icon.error {
    background: rgba(239, 68, 68, 0.15);
    border: 2px solid rgba(239, 68, 68, 0.4);
    color: #ef4444;
}

.app-dialog-icon.info {
    background: rgba(99, 102, 241, 0.15);
    border: 2px solid rgba(99, 102, 241, 0.4);
    color: #818cf8;
}

.app-dialog-icon.warning {
    background: rgba(245, 158, 11, 0.15);
    border: 2px solid rgba(245, 158, 11, 0.4);
    color: #f59e0b;
}

.app-dialog-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.app-dialog-message {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.75rem;
    line-height: 1.5;
}

/* ========================================================
   11. UPLOAD PROGRESS & REDIRECT PAGE
   ======================================================== */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.25s ease;
    background: var(--bg-surface-elevated);
}

.upload-zone:hover, .upload-zone.dragover {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.08);
}

.upload-progress-wrapper {
    margin-top: 1.5rem;
}

.progress-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    height: 10px;
    overflow: hidden;
    position: relative;
}

body:not(.light-mode) .progress-track {
    background: rgba(255, 255, 255, 0.1);
}

.progress-fill {
    background: linear-gradient(90deg, #6366f1, #a855f7);
    height: 100%;
    width: 0%;
    transition: width 0.2s ease;
    border-radius: 50px;
}

.redirect-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
}

.redirect-card {
    max-width: 500px;
    width: 100%;
    padding: 2.25rem;
    text-align: center;
    border-radius: 20px;
}

.redirect-thumb-box {
    width: 100%;
    max-height: 240px;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    background: #0f0f18;
    border: 1px solid var(--border-color);
}

.redirect-thumb-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.redirect-countdown-circle {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 1.5rem auto;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    font-weight: 800;
    background: linear-gradient(135deg, #6366f1, #a855f7);
    color: #ffffff;
    box-shadow: 0 0 25px rgba(99, 102, 241, 0.4);
}

.redirect-url-pill {
    background: var(--bg-surface-elevated);
    border: 1px solid var(--border-color);
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    word-break: break-all;
    margin-bottom: 1.5rem;
}

/* BADGES */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.badge-primary { background: rgba(99, 102, 241, 0.15); color: #6366f1; border: 1px solid rgba(99, 102, 241, 0.3); }
.badge-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.badge-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.15); color: #3b82f6; border: 1px solid rgba(59, 130, 246, 0.3); }

/* ANIMATIONS */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

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

/* ========================================================
   12. RESPONSIVENESS & MOBILE NAVIGATION (Requirements 6 & 12)
   ======================================================== */
.admin-mobile-header {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 1.25rem;
}

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 16, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
}

.sidebar-close-btn {
    display: none;
}

@media (max-width: 992px) {
    .precision-grid { grid-template-columns: 1fr 1fr; }
    .landing-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
        z-index: 1000;
        box-shadow: 10px 0 30px rgba(0, 0, 0, 0.5);
    }
    .admin-sidebar.active {
        transform: translateX(0);
    }
    .sidebar-overlay.active {
        display: block !important;
    }
    .sidebar-close-btn {
        display: inline-flex !important;
    }
    .admin-content {
        margin-left: 0;
        padding: 1.25rem;
    }
    .admin-mobile-header {
        display: flex !important;
    }
    .mobile-menu-btn {
        display: inline-flex !important;
    }
}

@media (max-width: 768px) {
    .landing-hero h1 { font-size: 2.25rem; }
    .precision-grid { grid-template-columns: 1fr; }
    .landing-stats-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .biolink-admin-item { flex-direction: column; align-items: flex-start; }
}

.mobile-menu-btn {
    display: none;
}

/* ========================================================
   13. LANDING PAGE MOBILE DRAWER & HERO SHORTENER (Req 1 & 3)
   ======================================================== */
.landing-mobile-menu {
    display: none;
    background: #ffffff;
    border-bottom: 1px solid #e2e8f0;
    padding: 1rem 1.25rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.landing-mobile-menu.active {
    display: block;
    animation: fadeIn 0.25s ease forwards;
}

.landing-mobile-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-mobile-nav a {
    padding: 10px 14px;
    border-radius: 10px;
    font-weight: 600;
    color: #334155;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.landing-mobile-nav a:hover {
    background: #f1f5f9;
    color: #4f46e5;
}

.landing-shortener-card {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    padding: 8px 12px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    box-shadow: 0 10px 30px -5px rgba(79, 70, 229, 0.12);
}

.landing-shorten-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.landing-shorten-icon {
    color: #4f46e5;
    display: flex;
    align-items: center;
    padding-left: 8px;
    flex-shrink: 0;
}

.landing-shorten-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: 10px 6px;
    background: transparent;
    color: #0f172a;
    font-family: inherit;
    min-width: 0;
}

.landing-shorten-input::placeholder {
    color: #94a3b8;
}

.landing-shorten-btn {
    padding: 11px 22px;
    white-space: nowrap;
    font-weight: 700;
    border-radius: 12px;
    flex-shrink: 0;
}

/* In-place Shorten Result Card & Custom Slug Modifier (Requirement 1) */
.landing-shortener-result {
    margin-top: 14px;
    padding: 14px 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-align: left;
    animation: fadeIn 0.3s ease;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.result-main-row {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 10px;
    padding: 8px 12px;
    margin-bottom: 12px;
}

.result-url-box {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-url-text {
    font-weight: 700;
    color: #4f46e5;
    font-size: 0.95rem;
}

.landing-custom-slug-box {
    border-top: 1px dashed #cbd5e1;
    padding-top: 12px;
}

.custom-slug-label {
    font-size: 0.85rem;
    color: #334155;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.landing-custom-slug-row {
    display: flex;
    align-items: stretch;
}

.slug-domain-prefix {
    font-size: 0.85rem;
    color: #64748b;
    background: #f1f5f9;
    padding: 8px 12px;
    border-radius: 8px 0 0 8px;
    border: 1px solid #cbd5e1;
    border-right: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.landing-custom-slug-row .form-control {
    flex: 1;
    border-radius: 0;
    padding: 8px 12px;
    font-size: 0.9rem;
    border: 1px solid #cbd5e1;
    outline: none;
    color: #0f172a;
    background: #ffffff;
}

.landing-custom-slug-row .btn {
    border-radius: 0 8px 8px 0;
    padding: 8px 16px;
    font-weight: 600;
}

.landing-slug-feedback {
    margin-top: 8px;
    font-size: 0.825rem;
    font-weight: 600;
    display: none;
}

.landing-slug-feedback.success {
    display: block;
    color: #16a34a;
}

.landing-slug-feedback.error {
    display: block;
    color: #dc2626;
}

@media (max-width: 640px) {
    .landing-shorten-input-row {
        flex-direction: column;
        align-items: stretch;
    }
    .landing-shorten-btn {
        width: 100%;
    }
    .result-main-row {
        flex-wrap: wrap;
    }
    .landing-custom-slug-row {
        flex-direction: column;
    }
    .slug-domain-prefix {
        border-radius: 8px 8px 0 0;
        border-right: 1px solid #cbd5e1;
        border-bottom: none;
    }
    .landing-custom-slug-row .form-control {
        border-radius: 0;
    }
    .landing-custom-slug-row .btn {
        border-radius: 0 0 8px 8px;
    }
}

/* ========================================================
   14. MODERN LOGIN PAGE OVERHAUL (Requirement 10)
   ======================================================== */
.login-page-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    background-color: var(--bg-primary);
    background-image: 
        radial-gradient(circle at 15% 20%, rgba(99, 102, 241, 0.18), transparent 45%),
        radial-gradient(circle at 85% 80%, rgba(236, 72, 153, 0.15), transparent 45%);
}

.login-card-glass {
    max-width: 440px;
    width: 100%;
    padding: 2.75rem 2.25rem;
    border-radius: 24px;
    background: rgba(18, 18, 28, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.14);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

body.light-mode .login-card-glass {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.password-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-input-wrapper .form-input {
    padding-right: 48px;
}

.password-toggle-btn {
    position: absolute;
    right: 10px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 6px;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.password-toggle-btn:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.08);
}

body.light-mode .password-toggle-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* ========================================================
   15. CLEAN LOADING OVERLAY - SPINNER ONLY (Requirement 11)
   ======================================================== */
.global-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 16, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.global-loading-overlay.active {
    display: flex;
}

.global-loading-overlay .spinner-icon {
    width: 52px;
    height: 52px;
    color: #6366f1;
    animation: spin 0.85s linear infinite;
}

/* ========================================================
   16. PROMO ADS / CALLOUT BANNER (Requirement 12)
   ======================================================== */
.promo-banner {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(168, 85, 247, 0.12));
    border: 1px dashed rgba(99, 102, 241, 0.4);
    border-radius: 16px;
    padding: 1.5rem 1.75rem;
    margin-top: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.promo-badge-text {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: #4f46e5;
    margin-bottom: 4px;
}

.bio-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.25s ease;
    margin-top: 1.25rem;
}

.bio-promo-badge:hover {
    background: rgba(99, 102, 241, 0.25);
    border-color: #6366f1;
    color: #ffffff;
    transform: translateY(-2px);
}

/* ========================================================
   17. BIOLINK DRAG AND DROP & EDIT (Requirement 9)
   ======================================================== */
.biolink-admin-item {
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.biolink-admin-item:active {
    cursor: grabbing;
}

.biolink-admin-item.dragging {
    opacity: 0.45;
    transform: scale(0.99);
}

.biolink-admin-item.drag-over {
    border-top: 2px solid #6366f1;
}

.drag-handle {
    cursor: grab;
    color: var(--text-muted);
    padding: 4px;
    display: flex;
    align-items: center;
}
