/* ── Saffron & Slate Sovereign Design System ── */
:root {
    --surface: #f8f9ff;
    --surface-dim: #ccdbf3;
    --surface-bright: #f8f9ff;
    --surface-container-lowest: #ffffff;
    --surface-container-low: #eff4ff;
    --surface-container: #e6eeff;
    --surface-container-high: #dce9ff;
    --surface-container-highest: #d5e3fc;
    --on-surface: #0d1c2e;
    --on-surface-variant: #574237;
    --inverse-surface: #233144;
    --inverse-on-surface: #eaf1ff;
    --outline: #8b7266;
    --outline-variant: #dec0b2;
    --primary: #994200;
    --on-primary: #ffffff;
    --primary-container: #c05400;
    --on-primary-container: #fffbff;
    --primary-fixed: #ffdbca;
    --primary-fixed-dim: #ffb68f;
    --on-primary-fixed: #331100;
    --on-primary-fixed-variant: #773200;
    --secondary: #4c5e83;
    --on-secondary: #ffffff;
    --secondary-container: #c2d5ff;
    --on-secondary-container: #495c80;
    --secondary-fixed: #d7e2ff;
    --on-secondary-fixed: #051b3c;
    --tertiary: #006a46;
    --on-tertiary: #ffffff;
    --tertiary-container: #20845c;
    --on-tertiary-container: #f5fff6;
    --tertiary-fixed: #98f6c5;
    --on-tertiary-fixed: #002113;
    --error: #ba1a1a;
    --error-container: #ffdad6;
    --shadow-sm: 0 1px 8px rgba(13, 28, 46, 0.04);
    --shadow-md: 0 4px 16px rgba(13, 28, 46, 0.06);
    --shadow-lg: 0 8px 24px rgba(13, 28, 46, 0.1);
    --content-max: 1240px;
}

* { box-sizing: border-box; }
html, body { width: 100%; margin: 0; padding: 0; background-color: var(--surface); color: var(--on-surface); font-family: 'Plus Jakarta Sans', "Noto Sans Devanagari", system-ui, -apple-system, sans-serif; -webkit-tap-highlight-color: transparent; }
body { min-height: 100vh; display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { display: block; max-width: 100%; }

/* Material Symbols Outlined
   NOTE: keep the font-feature/variation settings exactly like this — without
   them some browsers render the raw ligature names ("settings", "dashboard")
   instead of the glyph, which looks like a broken icon font. */
.material-symbols-outlined {
    font-family: 'Material Symbols Outlined';
    font-weight: normal;
    font-style: normal;
    font-size: 24px;
    line-height: 1;
    letter-spacing: normal;
    text-transform: none;
    display: inline-block;
    white-space: nowrap;
    word-wrap: normal;
    direction: ltr;
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-feature-settings: 'liga';
    -webkit-font-feature-settings: 'liga';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
    user-select: none;
}

/* Typography Classes */
.font-display-lg { font-size: 40px; line-height: 48px; letter-spacing: -0.02em; font-weight: 700; }
.font-headline-lg { font-size: 28px; line-height: 36px; letter-spacing: -0.015em; font-weight: 700; }
.font-headline-md { font-size: 22px; line-height: 28px; letter-spacing: -0.01em; font-weight: 600; }
.font-headline-sm { font-size: 18px; line-height: 24px; letter-spacing: 0em; font-weight: 600; }
.font-body-lg { font-size: 16px; line-height: 26px; font-weight: 400; }
.font-body-md { font-size: 14px; line-height: 22px; font-weight: 400; }
.font-label-lg { font-size: 14px; line-height: 20px; letter-spacing: 0.01em; font-weight: 600; }
.font-label-md { font-size: 12px; line-height: 16px; letter-spacing: 0.03em; font-weight: 600; }
.font-label-sm { font-size: 11px; line-height: 14px; letter-spacing: 0.05em; font-weight: 700; }

/* Header Component */
.app-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 50;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 8px rgba(13, 28, 46, 0.04);
    border-bottom: 1px solid var(--surface-container-high);
}
.header-inner {
    height: 4rem;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.header-brand {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-width: 0;
}
.header-logo {
    display: grid;
    place-items: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 0.75rem;
    color: #fff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    font-size: 1.3rem;
    font-weight: 900;
    box-shadow: 0 4px 12px rgba(153, 66, 0, 0.3);
    flex-shrink: 0;
}
.brand-title-wrap {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.brand-title-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}
.brand-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--on-surface);
    letter-spacing: -0.02em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pwa-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: var(--secondary-fixed);
    color: var(--on-secondary-fixed);
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.brand-subtitle {
    font-size: 0.72rem;
    color: var(--secondary);
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.header-icon-btn {
    position: relative;
    width: 2.6rem;
    height: 2.6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--secondary);
    transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.header-icon-btn:hover {
    color: var(--primary);
    background: var(--surface-container-low);
}
.header-icon-btn:active { transform: scale(0.95); }
.badge-dot {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: var(--primary);
    border: 2px solid #ffffff;
}

/* Layout Shell */
.app-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: var(--content-max);
    margin: 0 auto;
    padding-top: 4.5rem;
    padding-bottom: 5.5rem;
}

/* Bottom Navigation Dock */
.bottom-nav {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 50;
    background: #0da12a;
    backdrop-filter: blur(16px);
    box-shadow: 0 -6px 24px rgba(13, 28, 46, 0.16), 0 -2px 8px rgba(0, 0, 0, 0.08);
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}
.bottom-nav-inner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: 4rem;
    max-width: var(--content-max);
    margin: 0 auto;
    padding: 0 0.5rem;
}
.bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.25rem 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    font-weight: 600;
    transition: color 0.15s ease, transform 0.15s ease;
}
.bottom-nav-item.is-active {
    color: #ffffff;
    font-weight: 800;
}
.bottom-nav-item .material-symbols-outlined {
    font-size: 22px;
    margin-bottom: 2px;
}
.bottom-nav-primary {
    position: relative;
}
.bottom-nav-primary .nav-icon-circle {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-top: -1.25rem;
    border-radius: 50%;
    color: #ffffff;
    background: #4287f5;
    box-shadow: 0 6px 16px rgba(66, 135, 245, 0.42);
    border: 3px solid #ffffff;
}

/* The Join action is the primary task in the mobile dock. */
.bottom-nav-primary .nav-icon-circle {
    width: 3.35rem;
    height: 3.35rem;
    margin-top: -1.65rem;
    border-width: 3px;
}
.bottom-nav-primary .nav-icon-circle .material-symbols-outlined { font-size: 27px; }

/* Sections & Cards Utility */
.section-title-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 0 1rem;
}
.pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}
.pill-saffron { background: var(--primary-fixed); color: var(--on-primary-fixed); }
.pill-emerald { background: var(--tertiary-fixed); color: var(--on-tertiary-fixed); }
.pill-navy { background: var(--secondary-fixed); color: var(--on-secondary-fixed); }
.pill-gold { background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%); color: #92400e; border: 1px solid rgba(200, 155, 60, 0.3); }

/* Light-green highlight block that sits directly under the Updates & Notice card */
.notice-highlight-div {
    width: 100%;
    min-height: 3.25rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 1.25rem;
    background: #e3f6e3;
    color: var(--on-surface);
}

/* Stories Carousel */
.stories-scroll {
    display: flex;
    gap: 1.15rem;
    overflow-x: auto;
    padding: 0.35rem 1rem 0.85rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.stories-scroll::-webkit-scrollbar { display: none; }

.story-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    flex-shrink: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    text-align: center;
}
.story-ring {
    position: relative;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-fixed-dim), var(--tertiary));
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(153, 66, 0, 0.15);
}
.story-btn:hover .story-ring {
    transform: scale(1.06);
    box-shadow: 0 6px 18px rgba(153, 66, 0, 0.25);
}
.story-avatar {
    width: 4.4rem;
    height: 4.4rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2.5px solid var(--surface-container-lowest);
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #fff;
    font-weight: 800;
    font-size: 1.3rem;
}
.story-tag {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 7px;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 8.5px;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    border: 1.5px solid #ffffff;
    white-space: nowrap;
    z-index: 2;
}

/* Horizontal Cards Carousel */
.cards-scroll {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 0.5rem 1rem 1rem;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}
.cards-scroll::-webkit-scrollbar { display: none; }

.new-member-card {
    min-width: 240px;
    max-width: 240px;
    background: var(--surface-container-lowest);
    border-radius: 1.25rem;
    padding: 1rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.new-member-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}
.member-avatar-wrap {
    position: relative;
    width: 3.5rem;
    height: 3.5rem;
}
.member-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(135deg, var(--primary), var(--primary-container));
    color: #fff;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}
.trust-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 1.25rem;
    height: 1.25rem;
    border-radius: 50%;
    background: var(--tertiary);
    color: #fff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    border: 2px solid #fff;
}

/* ── Fast-Loading Optimized Luxury Hexagon New Member Card ── */
.new-member-card-luxury {
    min-width: 240px;
    max-width: 240px;
    background: linear-gradient(155deg, #1a2f3d 0%, #0d1b26 100%);
    border-radius: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.new-member-card-luxury::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 9rem;
    height: 9rem;
    background-image: radial-gradient(circle at 70% 30%, rgba(212, 184, 98, 0.12) 0%, transparent 70%),
                      url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 0L46 26L72 20L52 40L72 60L46 54L40 80L34 54L8 60L28 40L8 20L34 26Z' fill='rgba(255,255,255,0.04)'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: cover;
    pointer-events: none;
}
.new-member-card-luxury:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 36px rgba(0, 0, 0, 0.5);
    border-color: rgba(230, 202, 101, 0.35);
}

.luxury-card-body {
    padding: 1.1rem 1rem 0.85rem;
    position: relative;
    z-index: 2;
}

.luxury-top-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
}

/* Metallic Hexagon Avatar Frame */
.hex-avatar-outer {
    position: relative;
    width: 4.25rem;
    height: 4.5rem;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,0.4));
}
.hex-avatar-frame {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #d2dadf 0%, #6f7c87 100%);
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    padding: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hex-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
}
.hex-avatar-initials {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #243b4d 0%, #11202c 100%);
    color: #e6ca65;
    clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 1.2rem;
}

/* Verified Badge on Hexagon */
.hex-trust-badge {
    position: absolute;
    bottom: 2px;
    right: -2px;
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
    color: #ffffff;
    border: 2px solid #e6ca65;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 900;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
    z-index: 5;
}

/* Gold Metallic "NEW" Badge */
.gold-new-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 0.65rem;
    background: linear-gradient(135deg, #ebd17a 0%, #b8932c 100%);
    color: #2b2003;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.06em;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 3px 8px rgba(0, 0, 0, 0.35);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.3);
}

.luxury-member-name {
    margin: 0.85rem 0 0.2rem;
    font-size: 1.15rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: 0.01em;
}

.luxury-location-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: #bcd0de;
    font-size: 12px;
    margin-top: 0.25rem;
}

.luxury-role-title {
    margin: 0.35rem 0 0;
    font-size: 12px;
    color: #8da4b5;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Luxury Card Footer Tray */
.luxury-card-footer {
    padding: 0.75rem 1rem;
    background: rgba(8, 17, 26, 0.65);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    backdrop-filter: blur(4px);
    position: relative;
    z-index: 2;
}

.luxury-verified-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    line-height: 1.2;
}

.luxury-chapter-gold {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #ebd17a;
    font-size: 11px;
    font-weight: 800;
    margin-top: 0.15rem;
}

.luxury-eye-btn {
    width: 2.25rem;
    height: 1.85rem;
    border-radius: 0.55rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.05) 100%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e6ca65;
    display: grid;
    place-items: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 2px 6px rgba(0,0,0,0.3);
    transition: background 0.15s ease, transform 0.15s ease;
}
.new-member-card-luxury:hover .luxury-eye-btn {
    background: linear-gradient(135deg, #ebd17a 0%, #b8932c 100%);
    color: #2b2003;
}

/* Spotlight Gold Leaderboard Banner */
.spotlight-banner {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--on-surface) 0%, var(--inverse-surface) 100%);
    border-radius: 1rem;
    padding: 1.25rem;
    color: #ffffff;
    box-shadow: var(--shadow-md);
    margin-bottom: 0.85rem;
}
.spotlight-banner::after {
    content: "";
    position: absolute;
    right: -1.5rem;
    bottom: -2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
    background: rgba(192, 84, 0, 0.25);
    filter: blur(24px);
    pointer-events: none;
}
.rank-badge-gold {
    position: absolute;
    top: -0.4rem;
    left: -0.4rem;
    width: 1.6rem;
    height: 1.6rem;
    border-radius: 50%;
    background: var(--primary-container);
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 12px;
    font-weight: 800;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

/* Featured & Directory Grid */
.featured-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 0 1rem;
}
.featured-card {
    background: var(--surface-container-lowest);
    border-radius: 1.25rem;
    padding: 1.15rem;
    box-shadow: var(--shadow-md);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.featured-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }

/* Directory Grid */
.directory-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    padding: 0 0.4rem;
    box-sizing: border-box;
    width: 100%;
}

.directory-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--surface-container-lowest);
    padding: 0.55rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    min-width: 0;
    box-sizing: border-box;
}
.directory-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}
.card-photo-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 0.85rem;
    overflow: hidden;
    background: var(--surface-container-low);
    margin-bottom: 0.65rem;
}
.card-photo-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.card-photo-placeholder {
    display: grid;
    place-content: center;
    gap: 0.3rem;
    color: var(--secondary);
    text-align: center;
    font-size: 11px;
    border: 1px dashed var(--secondary);
}
.card-photo-placeholder .material-symbols-outlined { font-size: 34px; }
.directory-test-name { font-style: italic; }
.profile-private-fields { display: grid; gap: 0.45rem; margin-top: 0.7rem; padding-top: 0.7rem; border-top: 1px solid var(--surface-container-high); }
.profile-private-field { display: flex; align-items: center; gap: 0.45rem; min-width: 0; min-height: 1.9rem; color: var(--on-surface-variant); font-size: 13px; line-height: 1; }
.profile-private-field > .material-symbols-outlined { flex: 0 0 16px; font-size: 16px; color: var(--secondary); }
.directory-privacy-eye { display: grid; place-items: center; flex: 0 0 1.65rem; width: 1.65rem; height: 1.65rem; margin-left: auto; padding: 0; border: 1px solid var(--surface-container-high); border-radius: 50%; background: var(--secondary-container); color: var(--on-secondary-container); cursor: pointer; }
.directory-privacy-eye .material-symbols-outlined { font-size: 15px; }
.member-privacy-modal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.member-privacy-modal-backdrop { position: absolute; inset: 0; border: 0; background: rgba(15, 15, 20, 0.56); }
.member-privacy-modal-panel { position: relative; z-index: 1; width: min(100%, 25rem); padding: 1.5rem; border-radius: 1.1rem; background: var(--surface-container-lowest); box-shadow: var(--shadow-lg); text-align: center; }
.member-privacy-modal-panel h2 { margin: 0.5rem 0; font-size: 1.15rem; color: var(--on-surface); }
.member-privacy-modal-panel p { margin: 0 0 1.25rem; color: var(--on-surface-variant); font-size: 0.92rem; line-height: 1.55; }
.member-privacy-modal-icon { color: var(--primary); font-size: 2.25rem; }
.member-privacy-modal-close { position: absolute; top: 0.55rem; right: 0.55rem; width: 2rem; height: 2rem; border: 0; background: transparent; color: var(--secondary); font-size: 1.4rem; cursor: pointer; }
.directory-card:hover .card-photo-box img { transform: scale(1.04); }

/* Filter Bar & Search Console */
.search-console {
    padding: 0 1rem;
    margin-bottom: 0.75rem;
}
.search-bar-wrap {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-container-lowest);
    padding: 0.4rem 0.6rem;
    border-radius: 0.85rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--surface-container-high);
}
.search-bar-wrap input {
    flex: 1;
    border: 0;
    background: transparent;
    padding: 0.5rem;
    font-size: 0.95rem;
    color: var(--on-surface);
    outline: none;
}
.filter-chips-scroll {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 1rem;
    -webkit-overflow-scrolling: touch;
}
.filter-chips-scroll::-webkit-scrollbar { display: none; }

.filter-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    background: var(--surface-container-low);
    color: var(--on-surface-variant);
    font-size: 12px;
    font-weight: 700;
    border: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.filter-chip-btn.is-active, .filter-chip-btn:hover {
    background: var(--on-surface);
    color: var(--surface-container-lowest);
}

/* Directory search console: clear button, sort menu, filter sheet, empty state */
#filter-trigger { position: relative; }
.directory-clear-btn {
    width: 1.6rem;
    height: 1.6rem;
    flex-shrink: 0;
    border: 0;
    border-radius: 9999px;
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    font-size: 15px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.directory-clear-btn:hover { background: var(--surface-container); }
.directory-filter-dot {
    position: absolute;
    top: 0.3rem;
    right: 0.3rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--primary);
}
.directory-card[hidden] { display: none; }
.directory-sort-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 40;
    min-width: 12rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0.3rem;
    background: var(--surface-container-lowest);
    border: 1px solid var(--surface-container-high);
    border-radius: 0.75rem;
    box-shadow: var(--shadow-lg);
}
.directory-sort-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 0.6rem;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: var(--on-surface);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
}
.directory-sort-option:hover { background: var(--surface-container-low); }
.directory-sort-option .material-symbols-outlined { font-size: 15px; color: var(--primary); opacity: 0; }
.directory-sort-option.is-selected { background: var(--surface-container-low); }
.directory-sort-option.is-selected .material-symbols-outlined { opacity: 1; }
body.has-directory-sheet { overflow: hidden; }
.directory-sheet {
    position: fixed;
    inset: 0;
    z-index: 280;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}
.directory-sheet-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    border: 0;
    background: rgba(0, 0, 0, 0.5);
}
.directory-sheet-panel {
    position: relative;
    width: min(100%, 26rem);
    max-height: 86vh;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    padding: 1rem 1rem 1.25rem;
    background: var(--surface-container-lowest);
    border-radius: 1.25rem 1.25rem 0 0;
    box-shadow: var(--shadow-lg);
}
.directory-sheet-head { display: flex; align-items: center; justify-content: space-between; }
.directory-sheet-head strong { font-size: 15px; color: var(--on-surface); }
.directory-sheet-close {
    width: 2rem;
    height: 2rem;
    border: 0;
    border-radius: 9999px;
    background: var(--surface-container-high);
    color: var(--on-surface-variant);
    font-size: 18px;
    line-height: 1;
    display: grid;
    place-items: center;
    cursor: pointer;
}
.directory-sheet-field { display: block; font-size: 11px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary); }
.directory-sheet-field select {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.6rem 0.7rem;
    border: 1px solid var(--surface-container-high);
    border-radius: 0.6rem;
    background: var(--surface-container-low);
    color: var(--on-surface);
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.directory-sheet-toggle { display: flex; align-items: center; gap: 0.5rem; font-size: 13px; font-weight: 600; color: var(--on-surface); }
.directory-sheet-toggle input { width: 1.1rem; height: 1.1rem; accent-color: var(--primary); }
.directory-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.directory-empty { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; padding: 2rem 1rem; text-align: center; }
.directory-empty .material-symbols-outlined { font-size: 30px; color: var(--secondary); }
.directory-empty strong { font-size: 15px; color: var(--on-surface); }
.directory-empty p { margin: 0 0 0.6rem; font-size: 12px; color: var(--secondary); }
#directory-voice-btn.is-listening { background: var(--primary); color: var(--on-primary); animation: directoryPulse 1.1s ease-in-out infinite; }
@keyframes directoryPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Category Filter Bar for Our Proud */
.proud-category-bar {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.25rem 1rem 0.75rem;
}
.proud-category-bar::-webkit-scrollbar { display: none; }
.proud-cat-btn {
    padding: 0.4rem 0.85rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    background: var(--surface-container);
    color: var(--secondary);
    border: 0;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}
.proud-cat-btn.is-active, .proud-cat-btn:hover {
    background: var(--on-surface);
    color: #ffffff;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 2.75rem;
    padding: 0.65rem 1.25rem;
    border-radius: 0.75rem;
    font-weight: 800;
    font-size: 0.95rem;
    border: 0;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    box-shadow: 0 6px 18px rgba(153, 66, 0, 0.35);
}
.btn-primary:hover {
    background: linear-gradient(135deg, #b04b00 0%, #994200 100%);
}
.btn-secondary {
    color: var(--secondary);
    background: var(--surface-container-low);
}
.btn-secondary:hover { background: var(--surface-container-high); }

/* Splash Screen Container */
.app-splash {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    background: linear-gradient(135deg, #0d1c2e 0%, #1a2838 50%, #233144 100%);
    color: #fff;
    opacity: 1;
    visibility: visible;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    overflow: hidden;
}

.splash-content-inner {
    width: 100%;
    height: 100%;
    max-width: 440px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    box-sizing: border-box;
}

/* 1) Logo Container with 20% Top/Left/Right Margins */
.splash-logo-container {
    margin-top: 20% !important;
    margin-left: 20% !important;
    margin-right: 20% !important;
    width: calc(100% - 40%) !important;
    box-sizing: border-box !important;
    display: flex;
    justify-content: center;
    align-items: center;
}
.splash-logo-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 0 50px rgba(230, 160, 0, 0.55), 0 12px 36px rgba(0, 0, 0, 0.65);
    animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.06); }
}

/* 2) Typewriter Title */
.splash-title-wrap {
    margin-top: 1.5rem;
    min-height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 1rem;
    text-align: center;
}
.splash-typing-title {
    font-size: 16px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.02em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}
.splash-cursor {
    font-size: 17px;
    font-weight: 300;
    color: var(--primary-fixed, #e6a000);
    animation: splashCursorBlink 0.7s infinite;
    margin-left: 2px;
}
@keyframes splashCursorBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* 3) Sub-features Fade In/Out Carousel */
.splash-sub-carousel {
    margin-top: 0.85rem;
    min-height: 1.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.splash-feature-text {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.splash-feature-text.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* 4) Continuous Progress Bar - 20% Bottom Margin */
.splash-progress-track {
    width: 65%;
    max-width: 240px;
    height: 4px;
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.2);
}
.splash-progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 45%;
    border-radius: 9999px;
    background: linear-gradient(90deg, #e6a000, #ffb822);
    box-shadow: 0 0 10px rgba(230, 160, 0, 0.7);
    animation: splashContinuousProgress 1.4s ease-in-out infinite;
}
@keyframes splashContinuousProgress {
    0% {
        left: -45%;
        width: 35%;
    }
    50% {
        width: 65%;
    }
    100% {
        left: 100%;
        width: 35%;
    }
}

/* 5) Splash Next Action Button */
.splash-action-wrap {
    position: absolute;
    bottom: 8%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s ease;
    z-index: 10;
}

.splash-action-wrap.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.splash-next-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.75rem 1.65rem;
    background: linear-gradient(135deg, #e6a000 0%, #ffb822 100%);
    color: #0d1c2e;
    font-size: 14px;
    font-weight: 800;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    box-shadow: 0 6px 22px rgba(230, 160, 0, 0.45), 0 2px 8px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.splash-next-btn:hover, .splash-next-btn:active {
    transform: scale(1.06);
    box-shadow: 0 8px 28px rgba(230, 160, 0, 0.65);
}
@keyframes splash-failsafe { to { opacity: 0; visibility: hidden; pointer-events: none; } }

/* Skip Link */
.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 10000;
    padding: 0.75rem 1.25rem;
    border-radius: 0.6rem;
    color: #fff;
    background: var(--on-surface);
    transform: translateY(-150%);
    transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

/* Toast */
.toast {
    position: fixed;
    right: 1.25rem;
    bottom: 5.5rem;
    z-index: 100;
    max-width: min(25rem, calc(100% - 2.5rem));
    padding: 0.9rem 1.2rem;
    border-radius: 0.9rem;
    color: #ffffff;
    background: var(--on-surface);
    box-shadow: var(--shadow-lg);
    font-size: 0.92rem;
}

/* Modal Popup for Stories */
.story-modal {
    position: fixed;
    inset: 0;
    z-index: 9000;
    display: grid;
    place-items: center;
    padding: 1.25rem;
    background: rgba(13, 28, 46, 0.65);
    backdrop-filter: blur(12px);
    animation: fadeIn 0.2s ease;
}
.story-modal-card {
    width: min(28rem, 100%);
    background: var(--surface-container-lowest);
    border-radius: 1.5rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-lg);
    position: relative;
}
.story-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: var(--surface-container-low);
    color: var(--on-surface);
    display: grid;
    place-items: center;
    border: 0;
    cursor: pointer;
}

/* Registration Wizard Panels */
.wizard-panel {
    display: none;
}
.wizard-panel.is-active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* ── Auth Layout & Form Controls ── */
.auth-layout {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    padding: 1.5rem 1rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}
.auth-layout--login {
    max-width: 30rem;
    margin: 0 auto;
}
@media (min-width: 768px) {
    .auth-layout {
        grid-template-columns: 1.1fr 1fr;
        padding: 2.5rem 1.5rem;
    }
}

.auth-card {
    background: var(--surface-container-lowest);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--surface-container-high);
}
.auth-card__title {
    margin: 0 0 0.25rem;
    color: var(--on-surface);
}
.auth-card__intro {
    margin: 0 0 1.25rem;
    color: var(--secondary);
}
.auth-card__identifier-group { margin-top: 0; }
.auth-card__status { margin: 0.55rem 0 0; }
.auth-card__pin-stage { margin-top: 1rem; }
.auth-card__pin-boxes {
    display: flex;
    gap: 0.4rem;
    margin-top: 0.4rem;
}
.auth-card__action {
    width: 100%;
    min-height: 3rem;
    margin-top: 1rem;
    font-size: 16px;
}
.auth-card__action .material-symbols-outlined { font-size: 18px; }
.auth-card__continue { margin-top: 1.25rem; }
.auth-card__help-link {
    display: block;
    margin-top: 1rem;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}

.form-group {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
}

.form-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.form-input-icon {
    position: absolute;
    left: 0.85rem;
    color: var(--secondary);
    font-size: 20px;
    pointer-events: none;
    transition: color 0.2s ease;
}

.form-input {
    width: 100%;
    height: 3rem;
    padding: 0.5rem 0.85rem 0.5rem 2.65rem;
    border-radius: 0.75rem;
    border: 1.5px solid var(--outline-variant);
    background: var(--surface);
    color: var(--on-surface);
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-input:focus {
    border-color: var(--primary);
    background: var(--surface-container-lowest);
    box-shadow: 0 0 0 4px rgba(153, 66, 0, 0.15);
}

.form-input-wrap:focus-within .form-input-icon {
    color: var(--primary);
}

.form-error {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.75rem;
    color: var(--error);
    background: var(--error-container);
    font-size: 14px;
    font-weight: 600;
}

/* ── 6-Digit PIN Boxes ── */
.pin-boxes-container {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-top: 0.35rem;
}

.pin-box {
    flex: 1;
    width: 100%;
    max-width: 3.2rem;
    height: 3.4rem;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--on-surface);
    background: var(--surface);
    border: 1.5px solid var(--outline-variant);
    border-radius: 0.75rem;
    outline: none;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.pin-box::-webkit-outer-spin-button,
.pin-box::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.pin-box:focus {
    border-color: var(--primary);
    background: var(--surface-container-lowest);
    box-shadow: 0 0 0 4px rgba(153, 66, 0, 0.2);
    transform: scale(1.06);
}

.pin-box.is-filled {
    border-color: var(--primary-container);
    background: var(--surface-container-low);
}

/* ── Leaderboard Achievers Tabs ── */
.leaderboard-tabs {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: var(--surface-container-high);
    padding: 0.25rem;
    border-radius: 9999px;
    width: fit-content;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.04);
}

.leaderboard-tab-btn {
    padding: 0.35rem 0.85rem;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary);
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.leaderboard-tab-btn:hover {
    color: var(--on-surface);
}

.leaderboard-tab-btn.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    box-shadow: 0 4px 12px rgba(153, 66, 0, 0.35);
}

.leaderboard-panel {
    display: none;
}

.leaderboard-panel.is-active {
    display: block;
    animation: fadeIn 0.25s ease;
}

/* ── Instagram Reels Style Full-Screen Story Viewer ── */
.reels-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    background: rgba(13, 28, 46, 0.92);
    backdrop-filter: blur(16px);
    animation: fadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
}

.reels-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.reels-card {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 430px;
    height: 100vh;
    height: 100dvh;
    background: #0d1c2e;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

@media (min-width: 640px) {
    .reels-card {
        height: min(840px, calc(100vh - 2rem));
        border-radius: 1.5rem;
        border: 1px solid rgba(255, 255, 255, 0.12);
    }
}

/* Progress bar */
.reels-progress-wrap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0.5rem 0.75rem 0;
}
.reels-progress-bar {
    height: 3px;
    background: rgba(255, 255, 255, 0.35);
    border-radius: 2px;
    overflow: hidden;
    position: relative;
}
.reels-progress-bar::after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0%;
    background: var(--primary-fixed-dim);
    border-radius: 2px;
    transition: width 0.1s linear;
}
.reels-modal.is-playing .reels-progress-bar::after {
    animation: reelProgress 8s linear forwards;
}
@keyframes reelProgress {
    from { width: 0%; }
    to { width: 100%; }
}

/* Header */
.reels-header {
    position: absolute;
    top: 0.85rem;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 0.5rem 0.85rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(to bottom, rgba(13, 28, 46, 0.85) 0%, rgba(13, 28, 46, 0) 100%);
}
.reels-user-info {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
}
.reels-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-fixed);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.reels-user-meta {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.reels-user-name-row {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.reels-user-name {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.reels-verified-icon {
    font-size: 15px;
    color: var(--tertiary-fixed);
}
.reels-badge {
    padding: 0.1rem 0.4rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.reels-user-time {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
}
.reels-close-btn {
    width: 2.1rem;
    height: 2.1rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    border: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    font-size: 14px;
    backdrop-filter: blur(8px);
    transition: background 0.2s ease;
}
.reels-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Content & Hero Image */
.reels-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}
.reels-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}
.reels-caption-box {
    position: relative;
    z-index: 20;
    padding: 2.5rem 5rem 1.75rem 1.15rem;
    background: linear-gradient(to top, rgba(13, 28, 46, 0.95) 0%, rgba(13, 28, 46, 0.7) 60%, rgba(13, 28, 46, 0) 100%);
    color: #ffffff;
}
.reels-caption-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.reels-handle {
    font-size: 13px;
    font-weight: 800;
    color: var(--primary-fixed-dim);
}
.reels-role-tag {
    font-size: 11px;
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
    font-weight: 600;
}
.reels-title {
    margin: 0 0 0.35rem;
    font-size: 18px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
}
.reels-text {
    margin: 0 0 0.65rem;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.4;
}
.reels-marquee-row {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 11px;
    color: var(--primary-fixed);
    font-weight: 600;
}

/* Right Side Vertical Action Stack */
.reels-actions {
    position: absolute;
    right: 0.85rem;
    bottom: 2rem;
    z-index: 35;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.1rem;
}
.reels-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    transition: transform 0.15s ease;
}
.reels-action-btn:active {
    transform: scale(0.85);
}
.reels-action-btn .action-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: rgba(13, 28, 46, 0.55);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    display: grid;
    place-items: center;
    font-size: 20px;
    transition: all 0.2s ease;
}
.reels-action-btn.is-active .action-icon {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(153, 66, 0, 0.45);
}
.reels-action-btn.is-active .heart-icon {
    background: #e11d48;
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(225, 29, 72, 0.45);
}
.action-count {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* Follow Button */
.reels-follow-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    border-radius: 9999px;
    background: var(--primary);
    color: #ffffff;
    font-size: 11px;
    font-weight: 800;
    border: 0;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(153, 66, 0, 0.4);
    transition: all 0.2s ease;
}
.reels-follow-btn.is-following {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    box-shadow: none;
}

/* Navigation Chevrons */
.reels-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 30;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    background: rgba(13, 28, 46, 0.5);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #ffffff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background 0.2s ease;
}
.reels-nav-btn:hover {
    background: rgba(13, 28, 46, 0.8);
}
.reels-prev-btn { left: 0.5rem; }
.reels-next-btn { right: 0.5rem; }
@media (max-width: 640px) {
    .reels-nav-btn { display: none; }
}

/* Reels Profile Drawer Overlay (Swipe Left to View Member Profile) */
.reels-profile-drawer {
    position: absolute;
    inset: 0;
    z-index: 40;
    background: rgba(13, 28, 46, 0.96);
    backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    color: #ffffff;
    overflow-y: auto;
}
.reels-profile-drawer.is-open {
    transform: translateX(0);
}
.reels-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.reels-drawer-back-btn {
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.15s ease;
}
.reels-drawer-back-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.reels-drawer-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.reels-drawer-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.reels-drawer-avatar-wrap {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin-bottom: 0.85rem;
}
.reels-drawer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.reels-drawer-verified {
    position: absolute;
    bottom: 2px;
    right: 2px;
    font-size: 20px;
    color: var(--tertiary-fixed);
    background: #0d1c2e;
    border-radius: 50%;
}
.reels-drawer-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}
.reels-drawer-handle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.2rem 0 0.6rem;
}
.reels-drawer-role-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.25rem;
}
.reels-drawer-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}
.drawer-stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.drawer-stat-num {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary-fixed-dim);
}
.drawer-stat-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-top: 2px;
}
.reels-drawer-info-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.85rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.drawer-info-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.85);
}
.drawer-info-row .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
}
.reels-drawer-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

/* ── Admin Login Portal Styles ── */
.admin-auth-card {
    background: linear-gradient(145deg, #0d1c2e 0%, #172a45 100%);
    border-radius: 1.5rem;
    padding: 1.75rem 1.5rem;
    box-shadow: 0 16px 48px rgba(13, 28, 46, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #ffffff;
}
.admin-card-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.admin-shield-icon {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 1rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    display: grid;
    place-items: center;
    color: #ffffff;
    flex-shrink: 0;
    box-shadow: 0 6px 18px rgba(153, 66, 0, 0.4);
}
.admin-shield-icon .material-symbols-outlined {
    font-size: 28px;
}
.admin-badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-fixed);
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}
.admin-role-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.06);
    padding: 0.35rem;
    border-radius: 0.85rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.admin-role-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.6rem 0.35rem;
    border-radius: 0.65rem;
    background: transparent;
    border: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}
.admin-role-tab:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.admin-role-tab.is-active {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-container) 100%);
    box-shadow: 0 4px 14px rgba(153, 66, 0, 0.4);
}
.admin-pin-box {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.18) !important;
    color: #ffffff !important;
}
.admin-pin-box:focus {
    border-color: var(--primary-fixed) !important;
    box-shadow: 0 0 0 3px rgba(255, 183, 77, 0.3) !important;
}
.admin-security-footnote {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
}

/* ── Global Member Profile Drawer Modal ── */
.global-profile-drawer {
    position: fixed;
    inset: 0;
    z-index: 9500;
    display: flex;
    justify-content: flex-end;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}
.global-profile-drawer.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}
.global-drawer-overlay {
    position: absolute;
    inset: 0;
    background: rgba(13, 28, 46, 0.65);
    backdrop-filter: blur(8px);
}
.global-drawer-panel {
    position: relative;
    z-index: 10;
    width: min(28rem, 100vw);
    height: 100%;
    background: linear-gradient(175deg, #0d1c2e 0%, #172a45 100%);
    color: #ffffff;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
}
.global-profile-drawer.is-open .global-drawer-panel {
    transform: translateX(0);
}
.global-drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.global-drawer-close-btn {
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0.4rem;
    border-radius: 50%;
    transition: background 0.15s ease;
}
.global-drawer-close-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}
.global-drawer-title {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.global-drawer-body {
    padding: 1.5rem 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}
.global-drawer-avatar-wrap {
    position: relative;
    width: 6rem;
    height: 6rem;
    margin-bottom: 0.85rem;
}
.global-drawer-avatar {
    width: 100%;
    height: 100%;
    border-radius: 1.25rem;
    object-fit: cover;
    border: 3px solid var(--primary);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.global-drawer-verified {
    position: absolute;
    bottom: -4px;
    right: -4px;
    font-size: 20px;
    color: var(--tertiary-fixed);
    background: #0d1c2e;
    border-radius: 50%;
}
.global-drawer-name {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0;
    color: #ffffff;
}
.global-drawer-handle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.65);
    margin: 0.2rem 0 0.6rem;
}
.global-drawer-role-badge {
    display: inline-block;
    padding: 0.25rem 0.85rem;
    border-radius: 9999px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    font-size: 11px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
}

/* Profile Views Statistics Box */
.profile-view-stats {
    width: 100%;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    text-align: center;
}
.view-stat-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    color: var(--primary-fixed);
}
.view-stat-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.25rem 0;
}
.view-count-num {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    background: linear-gradient(135deg, #ffffff 0%, var(--primary-fixed) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.view-count-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 0.25rem;
}
.view-breakdown-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.25rem;
}
.view-stat-pill {
    padding: 0.45rem 0.5rem;
    border-radius: 0.6rem;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
}
.member-views-pill {
    background: rgba(38, 166, 154, 0.18);
    color: #80cbc4;
    border: 1px solid rgba(38, 166, 154, 0.3);
}
.anon-views-pill {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

/* In the admin directory the same data is useful, but it must not dominate
   the moderation profile. Keep the totals visible in a single compact row. */
.global-profile-drawer.is-admin-compact .profile-view-stats {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.65rem;
    padding: 0.7rem 0.8rem;
    margin-bottom: 0.8rem;
    text-align: left;
}
.global-profile-drawer.is-admin-compact .view-stat-header {
    justify-content: flex-start;
    font-size: 0;
}
.global-profile-drawer.is-admin-compact .view-stat-header span:last-child {
    font-size: 11px !important;
}
.global-profile-drawer.is-admin-compact .view-stat-main {
    align-items: flex-start;
    padding: 0;
}
.global-profile-drawer.is-admin-compact .view-count-num { font-size: 1.25rem; }
.global-profile-drawer.is-admin-compact .view-count-label { font-size: 9px; }
.global-profile-drawer.is-admin-compact .view-breakdown-row {
    display: flex;
    margin: 0;
    gap: 0.35rem;
}
.global-profile-drawer.is-admin-compact .view-stat-pill {
    font-size: 0;
    padding: 0.38rem;
}
.global-profile-drawer.is-admin-compact .view-stat-pill span:first-child { font-size: 15px !important; }
.global-profile-drawer.is-admin-compact .view-stat-pill span:nth-child(2) { font-size: 11px; }

.global-drawer-stats {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 0.85rem;
    padding: 0.85rem 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 1.25rem;
}
.global-drawer-info-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 0.85rem;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    margin-bottom: 1.5rem;
    text-align: left;
}
.global-drawer-actions {
    width: 100%;
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------------------------------- */
/* Desktop 60/40 Split Screen Layout (Left Logo & Hero / Right App Shell)    */
/* -------------------------------------------------------------------------- */
.desktop-split-wrapper {
    display: block;
    width: 100%;
    min-height: 100vh;
}

.desktop-left-hero {
    display: none !important;
}

.desktop-right-app {
    width: 100%;
    min-height: 100vh;
    position: relative;
}

.hero-fgla-logo {
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain;
    border-radius: 50%;
}

@media (min-width: 992px) {
    html, body {
        background-color: #080c14;
        height: 100%;
        overflow: hidden;
    }

    .desktop-split-wrapper {
        display: flex !important;
        width: 100vw;
        height: 100vh;
        overflow: hidden;
    }

    /* Full-width Admin Panel Layout on Desktop */
    body[data-page="admin"] {
        overflow-y: auto !important;
    }

    body[data-page="admin"] .desktop-split-wrapper {
        display: block !important;
        height: auto !important;
        min-height: 100vh !important;
        overflow-y: auto !important;
    }

    body[data-page="admin"] .desktop-left-hero {
        display: none !important;
    }

    body[data-page="admin"] .desktop-right-app {
        flex: 0 0 100% !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 100vh !important;
        box-shadow: none !important;
        overflow-y: auto !important;
        background: radial-gradient(circle at 50% 20%, #111a28 0%, #080c14 100%) !important;
    }

    body[data-page="admin"] .desktop-right-app .app-main {
        overflow-y: visible !important;
        max-width: 1240px !important;
        margin: 0 auto !important;
        width: 100% !important;
        padding: 1.5rem 1.25rem 3.5rem !important;
        box-sizing: border-box !important;
    }

    body[data-page="admin"] .bottom-nav {
        display: none !important;
    }

    /* Left Hero Column: 70% Width — no scroll, fits viewport */
    .desktop-left-hero {
        display: flex !important;
        flex: 0 0 70%;
        width: 70%;
        height: 100vh;
        background: radial-gradient(circle at 35% 35%, #181c2b 0%, #080c14 75%);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        align-items: center;
        justify-content: center;
        padding: 1.5rem 2rem;
        position: relative;
        overflow: hidden;
        box-shadow: inset -20px 0 50px rgba(0, 0, 0, 0.4);
    }

    .desktop-left-hero::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: radial-gradient(rgba(217, 119, 6, 0.2) 1px, transparent 1px);
        background-size: 32px 32px;
        opacity: 0.35;
        pointer-events: none;
    }

    .hero-left-content {
        position: relative;
        z-index: 2;
        max-width: 600px;
        width: 100%;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: 0;
    }

    .hero-logo-frame {
        width: 180px;
        height: 180px;
        border-radius: 50%;
        padding: 6px;
        background: linear-gradient(135deg, rgba(217, 119, 6, 0.6) 0%, rgba(153, 66, 0, 0.25) 100%);
        box-shadow: 0 15px 45px rgba(0, 0, 0, 0.8), 0 0 35px rgba(217, 119, 6, 0.35);
        margin-bottom: 1.25rem;
        flex-shrink: 0;
        transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.4s ease;
    }

    .hero-logo-frame:hover {
        transform: scale(1.04);
        box-shadow: 0 25px 70px rgba(0, 0, 0, 0.9), 0 0 60px rgba(217, 119, 6, 0.5);
    }

    .hero-fgla-logo {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 50%;
        display: block;
        background: #000000;
    }

    .hero-title {
        font-size: 22px;
        font-weight: 800;
        letter-spacing: 0.5px;
        color: #ffffff;
        margin-bottom: 0.5rem;
        line-height: 1.3;
        text-transform: uppercase;
        background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
    }

    .hero-tagline-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        background: rgba(153, 66, 0, 0.22);
        border: 1px solid rgba(245, 158, 11, 0.4);
        padding: 0.35rem 1rem;
        border-radius: 2rem;
        color: #f59e0b;
        font-weight: 700;
        font-size: 13px;
        margin-bottom: 0.75rem;
    }

    .hero-description {
        font-size: 13px;
        color: rgba(255, 255, 255, 0.75);
        line-height: 1.55;
        margin-bottom: 1.25rem;
    }

    .hero-features-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 0.65rem;
        width: 100%;
        margin-bottom: 1.25rem;
    }

    .hero-feature-card {
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 0.75rem;
        padding: 0.65rem 0.5rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.3rem;
        text-align: center;
        backdrop-filter: blur(8px);
        transition: background 0.3s ease, border-color 0.3s ease;
    }

    .hero-feature-card:hover {
        background: rgba(255, 255, 255, 0.09);
        border-color: rgba(245, 158, 11, 0.4);
    }

    .hero-feature-card span.material-symbols-outlined {
        font-size: 22px;
        color: var(--primary-fixed);
    }

    .hero-feature-card strong {
        font-size: 11.5px;
        color: #ffffff;
        display: block;
        line-height: 1.25;
    }

    .hero-feature-card small {
        font-size: 10px;
        color: rgba(255, 255, 255, 0.6);
        display: block;
    }

    .hero-footer-note {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 11px;
        color: rgba(255, 255, 255, 0.5);
    }

    /* Right App Column: 30% Width — flex column: header top, nav bottom, main scrolls */
    .desktop-right-app {
        flex: 0 0 30%;
        width: 30%;
        height: 100vh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
        position: relative;
        background-color: var(--surface);
        box-shadow: -15px 0 35px rgba(0, 0, 0, 0.4);
    }

    .desktop-right-app .app-header {
        position: relative;
        flex-shrink: 0;
        width: 100%;
        z-index: 50;
    }

    /* Main content fills middle and scrolls */
    .desktop-right-app .app-main {
        flex: 1;
        overflow-y: auto;
        overflow-x: hidden;
        padding-top: 0;
        padding-bottom: 0;
        max-width: 100%;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .desktop-right-app .app-main::-webkit-scrollbar {
        display: none;
    }

    .desktop-right-app {
        position: relative;
        overflow: hidden;
    }

    .desktop-right-app .app-splash {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        z-index: 99999;
        border-radius: 0;
    }

    /* Prevent any child from overflowing the 30% column */
    .desktop-right-app .app-main > * {
        max-width: 100%;
        overflow-x: hidden;
    }

    .desktop-right-app .directory-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.45rem !important;
        padding: 0 0.35rem !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .desktop-right-app .directory-card {
        padding: 0.5rem !important;
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .desktop-right-app .card-photo-box {
        margin-bottom: 0.35rem !important;
    }

    .desktop-right-app .bottom-nav {
        position: relative;
        flex-shrink: 0;
        width: 100%;
        z-index: 50;
        box-shadow: 0 -6px 24px rgba(13, 28, 46, 0.16), 0 -2px 8px rgba(0, 0, 0, 0.08);
        border-top: 1px solid rgba(0, 0, 0, 0.08);
    }

    /* Compact header brand for narrow 30% column */
    .desktop-right-app .header-inner {
        padding: 0 0.65rem;
        gap: 0.35rem;
    }

    .desktop-right-app .brand-title {
        font-size: 0.95rem;
    }

    .desktop-right-app .brand-subtitle {
        font-size: 0.65rem;
        max-width: 120px;
    }

    .desktop-right-app .header-actions {
        gap: 0.15rem;
    }

    .desktop-right-app .header-icon-btn {
        width: 2.2rem;
        height: 2.2rem;
    }

    /* Force single-column auth layout inside narrow 30% column */
    .desktop-right-app .auth-layout {
        grid-template-columns: 1fr !important;
        max-width: 100%;
        padding: 1rem 0.75rem;
        gap: 1rem;
    }

    .desktop-right-app .auth-card {
        padding: 1.25rem;
        max-width: 100%;
        box-sizing: border-box;
    }

    .desktop-right-app .pin-boxes-container {
        gap: 0.3rem;
    }

    .desktop-right-app .pin-box {
        max-width: 2.5rem;
        height: 2.8rem;
        font-size: 1.1rem;
    }

    /* Constrain all section content for narrow column */
    .desktop-right-app .section-title-row {
        padding: 0 0.5rem;
    }

    .desktop-right-app .cards-scroll {
        padding: 0 0.5rem;
    }

    .desktop-right-app .featured-list {
        padding: 0 0.5rem;
    }
}

/* -------------------------------------------------------------------------- */
/* Logo Images & Language Switcher Styling                                     */
/* -------------------------------------------------------------------------- */
.splash-logo-img {
    width: 86px;
    height: 86px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5), 0 0 25px rgba(245, 158, 11, 0.4);
    animation: splashPulse 2s infinite ease-in-out;
}

@keyframes splashPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.header-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    /* Breathing room inside the header pill: 2px left / top / bottom */
    margin: 2px 0 2px 2px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    flex-shrink: 0;
    background: #000000;
}

.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.35rem 0.65rem;
    border-radius: 2rem;
    background: rgba(153, 66, 0, 0.1);
    border: 1px solid rgba(153, 66, 0, 0.25);
    color: var(--primary);
    font-weight: 800;
    font-size: 11.5px;
    cursor: pointer;
    transition: all 0.2s ease;
    line-height: 1;
}

.lang-toggle-btn:hover {
    background: rgba(153, 66, 0, 0.2);
    transform: scale(1.04);
}

.lang-toggle-btn:active {
    transform: scale(0.96);
}

.lang-toggle-btn .lang-text {
    font-family: inherit;
    font-weight: 800;
    letter-spacing: 0.03em;
}

/* Facebook-inspired metallic blue treatment for the public PWA header. */
.app-header {
    background: linear-gradient(135deg, #0a3d82 0%, #1877f2 48%, #0b4da2 100%);
    border-bottom-color: rgba(255, 255, 255, 0.26);
    box-shadow: 0 2px 10px rgba(4, 44, 97, 0.38), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.app-header .brand-title { color: #ffffff; }
.app-header .brand-subtitle { color: rgba(255, 255, 255, 0.82); }
.app-header .lang-toggle-btn {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 255, 255, 0.46);
}
.app-header .lang-toggle-btn:hover { background: rgba(255, 255, 255, 0.26); }

/* ─────────────────────────────────────────────────────────────
   GLOBAL HIDDEN RULE
───────────────────────────────────────────────────────────── */
[hidden] {
    display: none !important;
}

/* ─────────────────────────────────────────────────────────────
   REGISTRATION WIZARD & FORM UI STYLES
───────────────────────────────────────────────────────────── */
.wizard-steps {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    overflow-x: auto;
    padding: 0.35rem 0.1rem;
    margin: 0;
    list-style: none;
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.wizard-steps::-webkit-scrollbar {
    display: none;
}
.wizard-steps li {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    color: var(--secondary);
    background: var(--surface-container);
    transition: all 0.2s ease;
    cursor: pointer;
    flex-shrink: 0;
}
.wizard-steps li span {
    display: inline-grid;
    place-items: center;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.08);
    font-size: 10px;
    font-weight: 800;
    line-height: 1;
}
.wizard-steps li.is-active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(153, 66, 0, 0.25);
}
.wizard-steps li.is-active span {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

.wizard-panel {
    display: none;
}
.wizard-panel.is-active {
    display: block;
    animation: wizardFadeIn 0.25s ease-out;
}
@keyframes wizardFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.phone-field {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--outline-variant);
    border-radius: 0.75rem;
    background: #ffffff;
    overflow: hidden;
    margin-top: 0.4rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.date-trigger { display:flex; align-items:center; border:1.5px solid var(--outline-variant); border-radius:.75rem; overflow:hidden; background:#fff; margin-top:.35rem; }
.date-trigger:focus-within { border-color:var(--primary); box-shadow:0 0 0 3px rgba(153,66,0,.15); }
.date-trigger input[type="text"] { flex:1; border:0 !important; box-shadow:none !important; background:transparent; }
.date-trigger button { width:2.9rem; align-self:stretch; border:0; border-left:1px solid var(--outline-variant); background:var(--surface-container-low); color:var(--on-surface); display:grid; place-items:center; }
.date-trigger-icon { font-family:system-ui,sans-serif; font-size:1.05rem; line-height:1; }
.date-offcanvas { position:fixed; inset:0; z-index:1000; pointer-events:none; overflow:hidden; }
.date-offcanvas-backdrop { position:absolute; inset:0; width:100%; border:0; background:rgba(12,24,38,.34); opacity:0; transition:opacity .34s ease; }
.date-offcanvas-panel { position:absolute; top:0; right:0; width:min(92vw,390px); height:100%; box-sizing:border-box; padding:1.25rem; background:var(--surface-container-lowest); box-shadow:-18px 0 42px rgba(10,22,35,.22); transform:translateX(110%); transition:transform .52s cubic-bezier(.68,-.55,.265,1.55); }
.date-offcanvas.is-open { pointer-events:auto; }
.date-offcanvas.is-open .date-offcanvas-backdrop { opacity:1; }
.date-offcanvas.is-open .date-offcanvas-panel { transform:translateX(0); }
.date-offcanvas-handle { width:2.4rem; height:.28rem; border-radius:99px; background:var(--outline-variant); margin:0 auto 1.3rem; }
.calendar-widget { margin:1.4rem 0 .5rem; border:1px solid var(--outline-variant); border-radius:1rem; padding:.8rem; }
.calendar-widget-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:.7rem; }
.calendar-widget-head button { width:2.25rem; height:2.25rem; border:0; border-radius:.6rem; background:var(--surface-container-low); display:grid; place-items:center; }
.calendar-selectors { display:flex; gap:.35rem; min-width:0; }
.calendar-selectors select { min-width:0; width:auto; padding:.45rem .35rem; font-size:12px; font-weight:800; border-radius:.55rem; }
.calendar-weekdays,.calendar-days { display:grid; grid-template-columns:repeat(7,1fr); gap:.25rem; text-align:center; }
.calendar-weekdays { font-size:11px; color:var(--secondary); font-weight:800; margin-bottom:.35rem; }
.calendar-days button { aspect-ratio:1; border:0; border-radius:50%; background:transparent; color:var(--on-surface); font-weight:700; }
.calendar-days button:hover,.calendar-days button:focus { background:var(--primary-fixed); outline:0; }
.calendar-days button.is-selected { background:var(--primary); color:var(--on-primary); }
.calendar-days button:disabled { color:var(--outline-variant); }
.selected-date-preview { margin:1rem 0; text-align:center; color:var(--primary); font-size:1.35rem; font-weight:900; letter-spacing:-.02em; }
.phone-field:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(153, 66, 0, 0.15);
}
.phone-field span {
    padding: 0.75rem 0.85rem;
    background: var(--surface-container);
    color: var(--on-surface);
    font-weight: 800;
    font-size: 14px;
    border-right: 1.5px solid var(--outline-variant);
    user-select: none;
}
.phone-field input {
    flex: 1;
    min-width: 0;
    border: none !important;
    outline: none !important;
    padding: 0.75rem 0.85rem;
    font-size: 15px;
    font-weight: 600;
    color: var(--on-surface);
    background: transparent;
    box-shadow: none !important;
}

.mobile-digit-count {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.mobile-status {
    color: var(--secondary);
    border-radius: 0.55rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.mobile-status.is-available {
    color: #166534;
    background: #dcfce7;
    padding: 0.55rem 0.65rem;
    font-weight: 700;
}
.mobile-status.is-registered {
    color: #b91c1c;
    background: #fee2e2;
    padding: 0.55rem 0.65rem;
    font-weight: 700;
}

.pin-boxes {
    align-items: center;
    flex-wrap: nowrap;
    justify-content: center;
    width: 100%;
}
.pin-boxes input {
    width: min(11vw, 2.55rem) !important;
    min-width: 0;
    height: 3rem;
    border: 1.5px solid #dc2626;
    border-radius: 0.6rem;
    background: var(--surface-container-lowest);
    color: var(--on-surface);
    font-weight: 900;
    text-align: center;
    caret-color: var(--primary);
}
.pin-boxes input.is-filled {
    border-color: #16a34a;
    background: #f0fdf4;
}
.pin-boxes input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(153, 66, 0, 0.15);
    outline: none;
}
.pin-boxes input.is-filled:focus { border-color: #16a34a; }

.field-grid {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 0.75rem;
}
.field-grid label {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 13px;
    font-weight: 700;
    color: var(--on-surface);
}
.field-grid input,
.field-grid select {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1.5px solid var(--outline-variant);
    border-radius: 0.75rem;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    color: var(--on-surface);
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.field-grid input:focus,
.field-grid select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(153, 66, 0, 0.15);
}

.upload-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px dashed var(--outline-variant);
    border-radius: 1rem;
    padding: 1.5rem 1rem;
    background: var(--surface-container-low);
    cursor: pointer;
    text-align: center;
    transition: border-color 0.2s ease, background 0.2s ease;
}
.upload-box:hover {
    border-color: var(--primary);
    background: var(--surface-container);
}
.upload-box input[type="file"] {
    display: none;
}

.check-row {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    font-size: 13px;
    line-height: 1.4;
    color: var(--on-surface);
    cursor: pointer;
    font-weight: 500;
}
.check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.step-kicker {
    display: inline-block;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    color: var(--primary);
    letter-spacing: 0.5px;
}

.privacy-note {
    background: var(--surface-container-low);
    border-left: 3px solid var(--primary);
    padding: 0.75rem 1rem;
    border-radius: 0 0.5rem 0.5rem 0;
}
.privacy-note strong {
    display: block;
    font-size: 13px;
    color: var(--on-surface);
}
.privacy-note p {
    margin: 0.2rem 0 0;
    font-size: 12px;
    color: var(--secondary);
}

.wizard-actions-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding-top: 0.75rem;
    margin-bottom: 2rem;
}
.wizard-actions-row .btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    font-size: 14px;
    font-weight: 700;
    border-radius: 0.85rem;
    transition: transform 0.15s ease, background-color 0.15s ease, opacity 0.15s ease;
}
.wizard-actions-row .btn[disabled] {
    opacity: 0.45;
    pointer-events: none;
}
.wizard-actions-row .btn[hidden] {
    display: none !important;
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN CONTROL PANEL SHELL
   Auto-hiding left sidebar (hamburger toggle) + admin header menu bar with
   the language switch on the right (default: English).
   Used by /admin/dashboard and /admin/settings.
   ══════════════════════════════════════════════════════════════════════════ */
body[data-page="admin"] {
    background: #080c14;
    overflow-x: hidden;
}

.admin-shell {
    --admin-sidebar-width: 276px;
    --admin-sidebar-rail: 76px;
    --admin-header-height: 64px;

    /* Theme tokens — dark is the default admin look (see light overrides at the end) */
    --admin-bg: radial-gradient(circle at 50% 0%, #111a28 0%, #080c14 100%);
    --admin-sidebar-bg: linear-gradient(180deg, #0c1a2b 0%, #101f33 100%);
    --admin-header-bg: rgba(9, 15, 25, 0.92);
    --admin-surface: rgba(255, 255, 255, 0.04);
    --admin-panel: rgba(13, 28, 46, 0.85);
    --admin-panel-solid: #0d1c2e;
    --admin-border: rgba(255, 255, 255, 0.12);
    --admin-border-soft: rgba(255, 255, 255, 0.1);
    --admin-row-border: rgba(255, 255, 255, 0.08);
    --admin-text: #ffffff;
    --admin-text-muted: rgba(255, 255, 255, 0.65);
    --admin-text-soft: rgba(255, 255, 255, 0.6);
    --admin-text-subtle: rgba(255, 255, 255, 0.45);
    --admin-accent: var(--primary-fixed);
    --admin-accent-bg: rgba(230, 160, 0, 0.16);
    --admin-accent-border: rgba(230, 160, 0, 0.35);
    --admin-chip-bg: rgba(255, 255, 255, 0.07);
    --admin-icon-btn-bg: rgba(255, 255, 255, 0.06);
    --admin-icon-btn-border: rgba(255, 255, 255, 0.16);
    --admin-input-bg: rgba(255, 255, 255, 0.08);
    --admin-shadow: 14px 0 44px rgba(0, 0, 0, 0.45);

    width: 100%;
    min-height: 100vh;
    background: var(--admin-bg);
    color: var(--admin-text);
}

/* ── Left Sidebar Menu ── */
.admin-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 130;
    width: var(--admin-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 1rem 0.85rem 1.1rem;
    background: var(--admin-sidebar-bg);
    border-right: 1px solid var(--admin-border-soft);
    box-shadow: var(--admin-shadow);
    overflow-x: hidden;
    overflow-y: auto;
    transition: width 0.3s ease, transform 0.3s ease;
}

/* Resting auto-hidden state: collapsed to an icon rail */
.admin-shell[data-sidebar="rail"] .admin-sidebar {
    width: var(--admin-sidebar-rail);
}

/* Hovering / focusing the rail expands it as an overlay without shifting content */
.admin-shell[data-sidebar="rail"] .admin-sidebar:hover,
.admin-shell[data-sidebar="rail"] .admin-sidebar:focus-within {
    width: var(--admin-sidebar-width);
    box-shadow: 20px 0 55px rgba(0, 0, 0, 0.6);
}

/* Fully hidden (user toggled the hamburger off) */
.admin-shell[data-sidebar="hidden"] .admin-sidebar {
    transform: translateX(-100%);
}

.admin-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.4rem 0.45rem 1rem;
    border-bottom: 1px solid var(--admin-border-soft);
    margin-bottom: 0.5rem;
}
.admin-sidebar-brand img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: contain;
    background: #000000;
    border: 2px solid var(--admin-accent);
    padding: 2px;
    flex-shrink: 0;
}
.admin-sidebar-brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-sidebar-brand-text strong {
    color: var(--admin-text);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}
.admin-sidebar-brand-text span {
    color: var(--admin-text-soft);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    flex: 1;
    min-width: 0;
}

.admin-nav-section {
    padding: 0.9rem 0.6rem 0.35rem;
    color: var(--admin-text-subtle);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-nav-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    width: 100%;
    padding: 0.7rem 0.75rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    background: transparent;
    color: var(--admin-text-muted);
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    text-align: left;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.admin-nav-item .material-symbols-outlined {
    font-size: 21px;
    flex-shrink: 0;
}
.admin-nav-item:hover {
    background: var(--admin-input-bg);
    color: var(--admin-text);
}
.admin-nav-item.is-active {
    background: var(--admin-accent-bg);
    border-color: var(--admin-accent-border);
    color: var(--admin-accent);
}
.admin-nav-item.is-danger:hover {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
}
.admin-nav-logout {
    margin: 0;
}
.admin-nav-label,
.admin-nav-section,
.admin-sidebar-brand-text,
.admin-sidebar-footer span:last-child {
    transition: opacity 0.18s ease;
}
.admin-nav-label {
    white-space: nowrap;
    overflow: hidden;
}

/* ── Icon rail (auto-hidden rest state) ── */
.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-label {
    opacity: 0;
}

/* Captions and brand/footer text are removed from the layout entirely in the
   rail, otherwise their reserved width pushes the icons off-centre. */
.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-section,
.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-brand-text,
.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-footer span:last-child {
    display: none;
}

.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-item {
    display: grid;
    place-items: center;
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    margin-inline: auto;
    padding: 0;
    border-radius: 0.9rem;
}

.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-item .material-symbols-outlined {
    margin: 0;
    line-height: 1;
}

.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-brand {
    justify-content: center;
    padding: 0 0 0.65rem;
    margin-bottom: 0.25rem;
    border-bottom-color: transparent;
}

.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-footer {
    justify-content: center;
    padding: 0.65rem 0 0;
    border-top-color: transparent;
}

.admin-sidebar-footer {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: auto;
    padding: 0.9rem 0.6rem 0;
    border-top: 1px solid var(--admin-border-soft);
    color: var(--admin-text-subtle);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.admin-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px rgba(52, 211, 153, 0.9);
    flex-shrink: 0;
}

.admin-sidebar-backdrop {
    position: fixed;
    inset: 0;
    z-index: 125;
    padding: 0;
    border: 0;
    background: rgba(3, 7, 14, 0.7);
    cursor: pointer;
}
.admin-sidebar-backdrop[hidden] {
    display: none;
}

/* ── Content Column ── */
.admin-body {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100vh;
    margin-left: var(--admin-sidebar-width);
    transition: margin-left 0.3s ease;
}
.admin-shell[data-sidebar="rail"] .admin-body {
    margin-left: var(--admin-sidebar-rail);
}
.admin-shell[data-sidebar="hidden"] .admin-body {
    margin-left: 0;
}

/* ── Admin Header Menu Bar ── */
.admin-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: var(--admin-header-height);
    padding: 0.55rem 1.25rem;
    background: var(--admin-header-bg);
    border-bottom: 1px solid var(--admin-border-soft);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}
.admin-header-left,
.admin-header-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}
.admin-hamburger-btn {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid var(--admin-icon-btn-border);
    background: var(--admin-icon-btn-bg);
    color: var(--admin-text);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.admin-hamburger-btn:hover {
    background: var(--admin-input-bg);
}
.admin-hamburger-btn:active {
    transform: scale(0.95);
}
.admin-hamburger-btn .material-symbols-outlined {
    font-size: 24px;
}
.admin-header-brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    text-decoration: none;
}
.admin-header-brand img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
    background: #000000;
    border: 1px solid var(--primary-fixed);
    flex-shrink: 0;
}
.admin-header-titles {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.admin-header-titles strong {
    color: var(--admin-text);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}
.admin-header-titles span {
    color: var(--admin-text-soft);
    font-size: 11px;
    white-space: nowrap;
}

/* Shared square icon button used in the header (theme toggle) */
.admin-icon-btn {
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    flex-shrink: 0;
    border-radius: 0.75rem;
    border: 1px solid var(--admin-icon-btn-border);
    background: var(--admin-icon-btn-bg);
    color: var(--admin-text);
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.15s ease;
}
.admin-icon-btn:hover {
    background: var(--admin-input-bg);
}
.admin-icon-btn:active {
    transform: scale(0.95);
}
.admin-icon-btn .material-symbols-outlined {
    font-size: 20px;
}

.admin-icon-btn.is-active {
    background: var(--admin-accent-bg);
    border-color: var(--admin-accent-border);
    color: var(--admin-accent);
}

.admin-icon-btn.is-active:hover {
    background: var(--admin-accent-bg);
}

/* Sidebar pin: when pinned the menu never auto-hides */
.admin-pin-btn[aria-pressed="true"] {
    background: var(--admin-accent-bg);
    border-color: var(--admin-accent-border);
    color: var(--admin-accent);
}

.admin-pin-btn[aria-pressed="true"]:hover {
    background: var(--admin-accent-bg);
}

.admin-lang-toggle {
    padding: 0.45rem 0.8rem;
    background: var(--admin-icon-btn-bg);
    border: 1px solid var(--admin-icon-btn-border);
    color: var(--admin-text);
    font-size: 12px;
}
.admin-lang-toggle:hover {
    background: var(--admin-input-bg);
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.75rem 0.35rem 0.4rem;
    border-radius: 9999px;
    background: var(--admin-chip-bg);
    border: 1px solid var(--admin-border);
    color: var(--admin-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    white-space: nowrap;
}
.admin-user-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--tertiary) 100%);
    color: #ffffff;
    font-size: 12px;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Admin Main Content ── */
.admin-main {
    flex: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 1.5rem 1.5rem 3rem;
    box-sizing: border-box;
}
.admin-main > * {
    max-width: 100%;
    box-sizing: border-box;
}
.admin-footer {
    padding: 0 1.5rem 1.5rem;
    color: var(--admin-text-subtle);
    font-size: 12px;
    text-align: center;
}

/* ── Admin Dashboard Cards ── */
.admin-live-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: #34d399;
    font-size: 12px;
    font-weight: 600;
}
.admin-live-pill .material-symbols-outlined {
    font-size: 11px;
}

.admin-kpi-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border-soft);
    border-radius: 1rem;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.admin-kpi-card:hover {
    border-color: rgba(230, 160, 0, 0.35);
    transform: translateY(-2px);
}
.admin-kpi-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.75rem;
}
.admin-kpi-label {
    display: block;
    color: var(--admin-text-soft);
    font-size: 12px;
}
.admin-kpi-value {
    display: block;
    color: var(--admin-text);
    font-size: 22px;
    font-weight: 800;
    line-height: 1.2;
}
.admin-kpi-sub {
    display: block;
    margin-top: 2px;
    font-size: 11px;
    font-weight: 600;
}

/* KPI trend colours — tuned per theme so they stay readable on white */
.admin-kpi-sub.is-emerald { color: #34d399; }
.admin-kpi-sub.is-blue { color: #60a5fa; }
.admin-kpi-sub.is-purple { color: #c084fc; }

html[data-admin-theme="light"] .admin-kpi-sub.is-emerald { color: #047857; }
html[data-admin-theme="light"] .admin-kpi-sub.is-blue { color: #1d4ed8; }
html[data-admin-theme="light"] .admin-kpi-sub.is-purple { color: #7e22ce; }

.admin-module-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.admin-module-card:hover {
    transform: translateY(-2px);
    border-color: rgba(230, 160, 0, 0.4);
}
.admin-module-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 0.75rem;
}
.admin-module-title {
    margin: 0 0 0.25rem;
    color: var(--admin-text);
    font-size: 16px;
    font-weight: 700;
}
.admin-module-desc {
    margin: 0;
    color: var(--admin-text-muted);
    font-size: 12px;
    line-height: 1.45;
}
.admin-module-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.6rem;
    font-size: 12px;
    font-weight: 700;
}

.admin-panel-card {
    padding: 1.5rem;
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28);
}
.admin-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 700;
}
.admin-status-pill.is-verified {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.4);
    color: #34d399;
}
.admin-row-link {
    color: var(--admin-accent);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}
.admin-row-link:hover {
    text-decoration: underline;
}

.admin-row-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid var(--admin-accent);
    flex-shrink: 0;
}

/* ── Mobile / Tablet: sidebar becomes an off-canvas drawer ── */
@media (max-width: 991px) {
    .admin-sidebar,
    .admin-shell[data-sidebar="rail"] .admin-sidebar,
    .admin-shell[data-sidebar="hidden"] .admin-sidebar,
    .admin-shell[data-sidebar="rail"] .admin-sidebar:hover,
    .admin-shell[data-sidebar="rail"] .admin-sidebar:focus-within {
        width: 282px;
        transform: translateX(-100%);
        box-shadow: 14px 0 44px rgba(0, 0, 0, 0.45);
        z-index: 135;
        transition: transform .52s cubic-bezier(.68,-.55,.265,1.55);
    }
    .admin-shell.is-drawer-open .admin-sidebar,
    .admin-shell.is-drawer-open[data-sidebar="rail"] .admin-sidebar,
    .admin-shell.is-drawer-open[data-sidebar="hidden"] .admin-sidebar {
        transform: translateX(0);
    }
    .admin-shell .admin-body,
    .admin-shell[data-sidebar="rail"] .admin-body,
    .admin-shell[data-sidebar="hidden"] .admin-body {
        margin-left: 0;
    }
    /* Labels always visible in the drawer */
    .admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-label,
    .admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-section,
    .admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-brand-text,
    .admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-sidebar-footer span:last-child {
        opacity: 1;
    }
    .admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-nav-item {
        justify-content: flex-start;
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    .admin-header {
        padding: 0.5rem 0.85rem;
        gap: 0.5rem;
    }
    .admin-header-titles {
        display: none;
    }
    .admin-user-name {
        display: none;
    }
    .admin-user-chip {
        padding: 0.3rem;
    }
    /* The drawer has no auto-hide, so the pin control is desktop-only */
    .admin-pin-btn {
        display: none;
    }
    .admin-main {
        padding: 1rem 0.85rem 2.5rem;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN LIGHT THEME
   Toggled from the header button; the choice is stored in localStorage and
   applied to <html data-admin-theme> before first paint.
   ══════════════════════════════════════════════════════════════════════════ */
html[data-admin-theme="light"] body[data-page="admin"] {
    background: #eef2fa;
}

html[data-admin-theme="light"] .admin-shell {
    --admin-bg: radial-gradient(circle at 50% 0%, #fbfcff 0%, #e9eff9 100%);
    --admin-sidebar-bg: linear-gradient(180deg, #ffffff 0%, #f2f6fd 100%);
    --admin-header-bg: rgba(255, 255, 255, 0.94);
    --admin-surface: #ffffff;
    --admin-panel: #ffffff;
    --admin-panel-solid: #ffffff;
    --admin-border: rgba(13, 28, 46, 0.14);
    --admin-border-soft: rgba(13, 28, 46, 0.1);
    --admin-row-border: rgba(13, 28, 46, 0.08);
    --admin-text: #0d1c2e;
    --admin-text-muted: rgba(13, 28, 46, 0.72);
    --admin-text-soft: rgba(13, 28, 46, 0.65);
    --admin-text-subtle: rgba(13, 28, 46, 0.5);
    --admin-accent: var(--primary);
    --admin-accent-bg: rgba(153, 66, 0, 0.1);
    --admin-accent-border: rgba(153, 66, 0, 0.28);
    --admin-chip-bg: rgba(13, 28, 46, 0.05);
    --admin-icon-btn-bg: rgba(13, 28, 46, 0.05);
    --admin-icon-btn-border: rgba(13, 28, 46, 0.14);
    --admin-input-bg: rgba(13, 28, 46, 0.06);
    --admin-shadow: 10px 0 30px rgba(13, 28, 46, 0.1);
}

html[data-admin-theme="light"] .admin-sidebar-brand img,
html[data-admin-theme="light"] .admin-header-brand img {
    background: #ffffff;
}

html[data-admin-theme="light"] .admin-sidebar-backdrop {
    background: rgba(13, 28, 46, 0.4);
}

html[data-admin-theme="light"] .admin-panel-card {
    box-shadow: 0 8px 24px rgba(13, 28, 46, 0.08);
}

html[data-admin-theme="light"] .admin-status-pill.is-verified {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(16, 185, 129, 0.32);
    color: #047857;
}

html[data-admin-theme="light"] .admin-badge {
    background: rgba(153, 66, 0, 0.1);
    color: var(--primary);
}

html[data-admin-theme="light"] .admin-live-pill {
    color: #047857;
}

html[data-admin-theme="light"] .admin-auth-card {
    background: #ffffff;
    border-color: var(--admin-border);
    color: var(--admin-text);
    box-shadow: 0 12px 32px rgba(13, 28, 46, 0.1);
}

html[data-admin-theme="light"] .admin-card-header {
    border-bottom-color: var(--admin-border-soft);
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN SETTINGS TABS
   Pure-CSS tabs (radio + label + :checked sibling selector) so the whole
   form still submits in one request.
   ══════════════════════════════════════════════════════════════════════════ */
.admin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    padding: 0.35rem;
    margin-bottom: 1.5rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
}

.admin-tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.admin-tab-label {
    flex: 1 1 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.65rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.75rem;
    color: var(--admin-text-muted);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-tab-label .material-symbols-outlined {
    font-size: 19px;
}

.admin-tab-label:hover {
    background: var(--admin-input-bg);
    color: var(--admin-text);
}

.admin-tab-input:focus-visible + .admin-tab-label {
    outline: 2px solid var(--admin-accent);
    outline-offset: 2px;
}

.admin-tab-input:checked + .admin-tab-label {
    background: var(--admin-accent-bg);
    border-color: var(--admin-accent-border);
    color: var(--admin-accent);
}

.admin-tab-panels {
    flex: 1 0 100%;
    width: 100%;
    min-width: 0;
}

.admin-tab-panel {
    display: none;
}

#settingsTabBranding:checked ~ .admin-tab-panels [data-tab-panel="branding"],
#settingsTabSplash:checked ~ .admin-tab-panels [data-tab-panel="splash"],
#settingsTabApi:checked ~ .admin-tab-panels [data-tab-panel="api"] {
    display: block;
}

/* In-card surfaces on the settings page follow the active theme too */
.admin-subcard {
    padding: 1.25rem;
    background: var(--admin-surface);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
}

.admin-logo-preview {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    background: var(--admin-input-bg);
    border: 1px solid var(--admin-border-soft);
    border-radius: 1rem;
}

.admin-logo-preview img {
    width: 72px;
    height: 72px;
    padding: 4px;
    border-radius: 50%;
    object-fit: contain;
    background: #000000;
    border: 2px solid var(--admin-accent);
    flex-shrink: 0;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.28);
}

.admin-field-label {
    display: block;
    margin-bottom: 0.4rem;
    color: var(--admin-text);
    font-size: 13px;
    font-weight: 600;
}

.admin-text-input {
    width: 100%;
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.65rem;
    background: var(--admin-input-bg);
    color: var(--admin-text);
    font-size: 14px;
}

.admin-text-input::placeholder {
    color: var(--admin-text-subtle);
}

.admin-text-input:focus {
    outline: 2px solid var(--admin-accent-border);
    outline-offset: 1px;
}
.admin-shell select.admin-text-input { color: var(--admin-text); background-color: var(--admin-input-bg); }
.admin-shell select.admin-text-input option { color: #172033; background: #ffffff; }

.admin-field-hint {
    display: block;
    margin-top: 0.35rem;
    color: var(--admin-text-soft);
    font-size: 12px;
}

.admin-field {
    margin-bottom: 1.25rem;
}

.admin-check-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    color: var(--admin-text);
    font-size: 14px;
    cursor: pointer;
}

.admin-check-row input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--primary);
    flex-shrink: 0;
}

.admin-tab-heading {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 1rem;
    color: var(--admin-accent);
    font-size: 15px;
    font-weight: 800;
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN MEMBER DIRECTORY (/admin/members)
   ══════════════════════════════════════════════════════════════════════════ */
.admin-dir-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.1rem;
}

.admin-dir-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    color: var(--admin-text);
    font-size: 18px;
    font-weight: 800;
}

.admin-dir-title .material-symbols-outlined {
    font-size: 22px;
    color: var(--admin-accent);
}

.admin-dir-sub {
    margin: 0.25rem 0 0;
    color: var(--admin-text-soft);
    font-size: 13px;
}

.admin-dir-status {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--admin-border);
    border-radius: 9999px;
    background: var(--admin-surface);
    color: var(--admin-text-muted);
    font-size: 11.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-dir-status .material-symbols-outlined {
    font-size: 10px;
}

.admin-dir-status.is-live {
    color: #34d399;
    border-color: rgba(52, 211, 153, 0.35);
}

.admin-dir-status.is-preview {
    color: #fbbf24;
    border-color: rgba(251, 191, 36, 0.35);
}

html[data-admin-theme="light"] .admin-dir-status.is-live {
    color: #047857;
}

html[data-admin-theme="light"] .admin-dir-status.is-preview {
    color: #b45309;
}

.admin-dir-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.admin-dir-search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1 1 260px;
    min-width: 0;
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--admin-border);
    border-radius: 0.75rem;
    background: var(--admin-input-bg);
    color: var(--admin-text-soft);
}

.admin-dir-search input {
    flex: 1;
    min-width: 0;
    border: 0;
    background: transparent;
    color: var(--admin-text);
    font-size: 14px;
    outline: none;
}

.admin-dir-search input::placeholder {
    color: var(--admin-text-subtle);
}

.admin-dir-search .material-symbols-outlined {
    font-size: 20px;
}

.admin-dir-filters {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.admin-chip {
    padding: 0.45rem 0.9rem;
    border: 1px solid var(--admin-border);
    border-radius: 9999px;
    background: transparent;
    color: var(--admin-text-muted);
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.admin-chip:hover {
    background: var(--admin-input-bg);
    color: var(--admin-text);
}

.admin-chip.is-active {
    background: var(--admin-accent-bg);
    border-color: var(--admin-accent-border);
    color: var(--admin-accent);
}

.admin-dir-count {
    margin-left: auto;
    color: var(--admin-text-soft);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
}

.admin-dir-count strong {
    color: var(--admin-text);
    font-size: 14px;
}

.admin-dir-hint {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0.85rem 0 0;
    color: var(--admin-text-subtle);
    font-size: 12px;
}

.admin-dir-hint .material-symbols-outlined {
    color: #34d399;
}

html[data-admin-theme="light"] .admin-dir-hint .material-symbols-outlined {
    color: #047857;
}

.admin-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 0.85rem;
}

.admin-member-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    width: 100%;
    padding: 0 1rem 0 0;
    min-height: 88px;
    overflow: hidden;
    text-align: left;
    background: var(--admin-panel);
    border: 1px solid var(--admin-border);
    border-radius: 1rem;
    color: var(--admin-text);
    font-family: inherit;
    cursor: pointer;
    transition: transform 0.18s ease, border-color 0.18s ease;
}

.admin-member-card:hover {
    transform: translateY(-2px);
    border-color: var(--admin-accent-border);
}

.admin-member-card:focus-visible {
    outline: 2px solid var(--admin-accent);
    outline-offset: 2px;
}

/* Filtered-out cards must really disappear (the flex rule wins over [hidden]) */
.admin-member-card[hidden] {
    display: none;
}

.admin-member-avatar {
    width: 88px;
    height: 88px;
    align-self: stretch;
    border-radius: 1rem 0 0 1rem;
    object-fit: cover;
    background: var(--admin-input-bg);
    border: 0;
    flex-shrink: 0;
}
.admin-table-avatar { width:42px; height:42px; object-fit:cover; border-radius:.45rem; display:block; }

.admin-member-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
}

.admin-member-name {
    color: var(--admin-text);
    font-size: 14.5px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-member-role {
    color: var(--admin-accent);
    font-size: 12px;
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-member-place {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--admin-text-soft);
    font-size: 11.5px;
}

.admin-member-place .material-symbols-outlined {
    font-size: 13px;
}
.admin-member-mobile { color:var(--admin-text-soft); font-size:11px; font-weight:800; margin-top:.08rem; }
.admin-review-drawer { position:fixed; inset:0; z-index:300; pointer-events:none; }
.admin-review-drawer.is-open { pointer-events:auto; }
.admin-review-backdrop { position:absolute; inset:0; width:100%; border:0; padding:0; opacity:0; background:rgba(3,7,12,.62); transition:opacity .28s ease; }
.admin-review-drawer.is-open .admin-review-backdrop { opacity:1; }
.admin-review-panel { position:absolute; right:0; top:0; width:min(90vw,1180px); height:100%; box-sizing:border-box; overflow:auto; overscroll-behavior:contain; padding:1.25rem; background:var(--admin-panel); color:var(--admin-text); transform:translateX(101%); visibility:hidden; transition:transform .32s cubic-bezier(.22,.61,.36,1),visibility .32s; }
.review-profile-edit{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;margin-top:1.2rem;padding-top:1rem;border-top:1px solid var(--admin-border)}.review-profile-edit h3,.review-profile-edit .field-help,.review-profile-edit button,.review-profile-edit [data-profile-edit-result]{grid-column:1/-1}.review-profile-edit textarea{min-height:76px;resize:vertical}.my-profile-page .profile-edit-form{display:grid;gap:.8rem}.profile-edit-form label{display:grid;gap:.35rem;font-size:13px;font-weight:700}.profile-edit-form input,.profile-edit-form textarea{width:100%;box-sizing:border-box;padding:.7rem;border:1px solid var(--outline-variant);border-radius:.6rem;background:var(--surface-container-lowest);color:var(--on-surface)}
@media(max-width:640px){.admin-review-panel{width:90vw;padding:1rem}.review-profile-edit{grid-template-columns:1fr}}
.admin-review-drawer.is-open .admin-review-panel { transform:translateX(0); visibility:visible; }
.admin-review-photo { width:110px; height:110px; object-fit:cover; border-radius:.8rem; display:block; margin:1rem 0; }
.admin-review-actions { display:grid; grid-template-columns:repeat(3,1fr); gap:.5rem; margin-top:1rem; }

.admin-member-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    flex-shrink: 0;
}

.admin-member-id {
    padding: 0.15rem 0.4rem;
    border-radius: 0.35rem;
    background: var(--admin-input-bg);
    color: var(--admin-text-soft);
    font-family: monospace;
    font-size: 10.5px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-status-pill .material-symbols-outlined {
    font-size: 13px;
}

.admin-status-pill.is-pending {
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.35);
    color: #fbbf24;
}

html[data-admin-theme="light"] .admin-status-pill.is-pending {
    background: rgba(180, 83, 9, 0.12);
    border-color: rgba(180, 83, 9, 0.3);
    color: #b45309;
}

.admin-dir-empty {
    margin: 1.5rem 0;
    color: var(--admin-text-soft);
    font-size: 13.5px;
    text-align: center;
}

@media (max-width: 640px) {
    .admin-directory-grid {
        grid-template-columns: 1fr;
    }
    .admin-dir-count {
        margin-left: 0;
    }
}

/* ══════════════════════════════════════════════════════════════════════════
   ADMIN PANEL POLISH
   Focus rings, stacking fixes, tables, motion and small-screen rhythm.
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Toasts must float above the sidebar / header inside the admin shell */
body[data-page="admin"] .toast {
    z-index: 200;
    bottom: 1.5rem;
}

/* 2. One consistent, always-visible keyboard focus ring */
.admin-shell a:focus-visible,
.admin-shell button:focus-visible,
.admin-shell input:focus-visible,
.admin-shell select:focus-visible,
.admin-shell textarea:focus-visible,
.admin-shell [tabindex]:focus-visible {
    outline: 2px solid var(--admin-accent);
    outline-offset: 2px;
}

/* 3. Slim themed scrollbar for the sidebar and horizontal scroll areas */
.admin-sidebar {
    scrollbar-width: thin;
    scrollbar-color: var(--admin-border) transparent;
}

.admin-sidebar::-webkit-scrollbar,
.admin-table-wrap::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.admin-sidebar::-webkit-scrollbar-thumb,
.admin-table-wrap::-webkit-scrollbar-thumb {
    background: var(--admin-border);
    border-radius: 9999px;
}

/* 4. Data tables: sticky head, hover rows, aligned type */
.admin-table-wrap {
    width: 100%;
    overflow-x: auto;
    border-radius: 0.9rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--admin-text);
    font-size: 13px;
    text-align: left;
}

.admin-table thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 0.7rem 0.6rem;
    background: var(--admin-panel-solid);
    border-bottom: 1px solid var(--admin-border-soft);
    color: var(--admin-text-soft);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.admin-table tbody td {
    padding: 0.8rem 0.6rem;
    border-bottom: 1px solid var(--admin-row-border);
    vertical-align: middle;
}

.admin-table tbody tr {
    transition: background-color 0.15s ease;
}

.admin-table tbody tr:hover {
    background: var(--admin-input-bg);
}

.admin-table tbody tr:last-child td {
    border-bottom: 0;
}

.admin-table .is-right {
    text-align: right;
}

.admin-table-member {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    text-align: left;
}

.admin-table-member-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.admin-table-member-text strong {
    color: var(--admin-text);
    font-size: 13.5px;
    font-weight: 700;
}

.admin-table-member-text span {
    color: var(--admin-text-soft);
    font-size: 11px;
}

.admin-table-id {
    color: var(--admin-accent);
    font-family: monospace;
    font-weight: 700;
    white-space: nowrap;
}

.admin-table-place {
    color: var(--admin-text-muted);
}

/* 5. Small motion touch: cards ease in, then behave normally on hover */
@keyframes admin-card-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .admin-kpi-card,
    .admin-module-card,
    .admin-member-card {
        animation: admin-card-in 0.35s ease backwards;
    }
    .admin-kpi-card:nth-child(2) { animation-delay: 0.04s; }
    .admin-kpi-card:nth-child(3) { animation-delay: 0.08s; }
    .admin-kpi-card:nth-child(4) { animation-delay: 0.12s; }
}

/* Respect users who ask for less motion */
@media (prefers-reduced-motion: reduce) {
    .admin-shell *,
    .admin-shell *::before,
    .admin-shell *::after {
        transition-duration: 0.001ms !important;
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
    }
}

/* 6. Header brand must never push the action buttons off screen */
.admin-header-titles strong,
.admin-header-titles span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
}

.admin-header-titles {
    max-width: 34vw;
}

/* 7. Sidebar footer: keep the status text on its own line from the version chip */
.admin-version-chip {
    margin-left: auto;
    padding: 0.1rem 0.45rem;
    border: 1px solid var(--admin-border);
    border-radius: 9999px;
    background: var(--admin-chip-bg);
    color: var(--admin-text-subtle);
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.admin-shell[data-sidebar="rail"] .admin-sidebar:not(:hover):not(:focus-within) .admin-version-chip {
    display: none;
}

/* 8. Press feedback on the clickable admin cards */
.admin-member-card:active,
.admin-module-card:active {
    transform: translateY(0);
}

/* 9. Narrow screens: keep header controls reachable and tabs tappable */
@media (max-width: 560px) {
    .admin-header-titles {
        display: none;
    }
    .admin-tabs {
        gap: 0.3rem;
    }
    .admin-tab-label {
        padding: 0.6rem 0.7rem;
        font-size: 12px;
    }
    .admin-member-meta {
        align-items: flex-start;
    }
}
/* Mixed community updates feed */
.my-profile-page{padding:1rem;display:grid;gap:.85rem}.my-profile-hero{display:flex;gap:1rem;align-items:center;padding:1.1rem;border-radius:1.1rem;background:linear-gradient(135deg,var(--primary-container),var(--surface-container-low))}.my-profile-hero img{width:82px;height:82px;object-fit:cover;border-radius:50%;border:3px solid var(--surface)}.my-profile-hero h1{margin:.2rem 0;font-size:21px}.my-profile-hero p{display:flex;align-items:center;gap:.25rem;margin:.2rem 0;color:var(--secondary);font-size:13px}.my-profile-hero .material-symbols-outlined{font-size:15px}.my-profile-card{padding:1rem;border:1px solid var(--outline-variant);border-radius:.9rem;background:var(--surface)}.my-profile-card span{display:block;color:var(--secondary);font-size:11px;font-weight:800;text-transform:uppercase}.my-profile-card strong{display:block;margin-top:.35rem}.my-profile-card p{margin:.35rem 0 0;color:var(--on-surface)}
.directory-card-stats{display:flex;gap:.8rem;padding-top:.7rem;margin-top:.5rem;border-top:1px solid var(--surface-container-high);color:var(--secondary);font-size:11px}.directory-card-stats span{display:inline-flex;align-items:center;gap:.22rem}.directory-card-stats .material-symbols-outlined{font-size:16px}.directory-sheet-panel{width:min(96vw,560px)!important;padding:1.5rem!important}.directory-sheet-head strong{font-size:18px}.directory-sheet-field{font-size:14px!important}.directory-sheet-field select{min-height:46px!important;font-size:15px!important}.directory-sheet-toggle{font-size:14px!important;padding:.7rem 0}.directory-sheet-actions .btn{min-height:44px;font-size:14px}
.directory-card .card-photo-box{border-width:2px}.directory-card .card-photo-box.is-demo{border-color:#8b7ac8}.directory-card .card-photo-box.is-verified{border-color:var(--tertiary)}.directory-card .card-photo-box.is-trial{border-color:#d89528}
.directory-card-location { color: #2563eb; }
.directory-card-location .material-symbols-outlined { color: #2563eb; }
.directory-card-stats > span:first-child { color: #15803d; font-weight: 800; }
.directory-card-stats > span:last-child { color: #dc2626; font-weight: 800; }
.directory-card-stats > span:first-child b,
.directory-card-stats > span:last-child b { font-weight: 800; }

/* Directory discovery toolbar: the search is flush with the app header and
   docks below it while the member list is being scrolled. */
/* The header already occupies layout space in the desktop app column, while
   the sticky discovery toolbar reserves its own mobile header offset. */
body[data-page="members"] .app-main { padding-top: 0; }
.directory-discovery { margin-bottom: 1rem; padding-top: 0; }
.search-bar-wrap:focus-within {
    background: #fff9d9;
    border-color: #e5bd43;
    box-shadow: 0 0 0 3px rgba(229, 189, 67, 0.20), var(--shadow-sm);
}
.filter-chip-location { background:#e0f2fe; color:#0369a1; }
.filter-chip-doctors { background:#dcfce7; color:#15803d; }
.filter-chip-business { background:#fef3c7; color:#b45309; }
.filter-chip-lawyers { background:#ede9fe; color:#6d28d9; }
.filter-chip-recent { background:#fce7f3; color:#be185d; }
.filter-chip-local { background:#dbeafe; color:#1d4ed8; }
.filter-chip-verified { background:#ccfbf1; color:#0f766e; }
.filter-chip-btn.is-active { background:var(--on-surface); color:var(--surface-container-lowest); }

@media (max-width: 767px) {
    .directory-discovery {
        position: sticky;
        top: 4rem;
        z-index: 45;
        padding: 0.25rem 0.35rem 0.35rem;
        margin-left: -0.35rem;
        margin-right: -0.35rem;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(16px);
        transition: top 0.22s ease, box-shadow 0.22s ease;
    }
    body.directory-scroll-compact .app-header {
        opacity: 0;
        transform: translateY(-100%);
        pointer-events: none;
    }
    body.directory-scroll-compact .directory-discovery {
        top: 0;
        box-shadow: 0 5px 14px rgba(13, 28, 46, 0.10);
    }
    .app-header { transition: opacity 0.2s ease, transform 0.22s ease; }
}
.profile-like-button{width:100%;display:flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid var(--outline-variant);border-radius:.75rem;background:var(--surface-container-low);color:var(--on-surface);padding:.7rem;cursor:pointer}.profile-like-button.is-active{color:#c6285b;border-color:#c6285b;background:#fff0f5}.profile-like-button .material-symbols-outlined{font-size:20px}.directory-card-stats b{font:inherit}
.member-presence-dot{position:absolute;right:7px;bottom:7px;width:13px;height:13px;border-radius:50%;border:2px solid var(--surface-container-lowest);box-shadow:0 1px 5px rgba(0,0,0,.35);z-index:3}.member-presence-dot.is-live{background:#22c55e}.member-presence-dot.is-idle{background:#f59e0b}.global-drawer-avatar-wrap .member-presence-dot{right:6px;bottom:9px;width:17px;height:17px;border-color:#172a45}.admin-member-avatar-wrap{position:relative;width:88px;align-self:stretch;flex:0 0 88px}.admin-member-avatar-wrap .admin-member-avatar{width:100%;height:100%}.admin-table-avatar-wrap{position:relative;display:inline-block}.admin-table-avatar-wrap .member-presence-dot{width:11px;height:11px;right:-3px;bottom:-3px;border-color:var(--admin-panel-solid)}
.directory-local-sheet{position:fixed;inset:0;z-index:290;display:flex;align-items:flex-end;background:rgba(0,0,0,.5)}.directory-local-sheet>button{position:absolute;inset:0;border:0;background:transparent}.directory-local-sheet section{position:relative;z-index:1;width:100%;padding:1.5rem;border-radius:1.25rem 1.25rem 0 0;background:var(--surface);text-align:center}.directory-local-sheet section>span{font-size:32px;color:var(--primary)}.directory-local-sheet h2{margin:.4rem 0}.directory-local-sheet p{margin:.4rem 0 1rem;color:var(--secondary);font-size:13px;line-height:1.5}.directory-local-sheet .btn{width:100%;margin:.3rem 0}
.directory-permission-modal{position:fixed;inset:0;z-index:30;display:grid;place-items:center;padding:1rem;background:rgba(10,22,38,.45)}.directory-permission-backdrop{position:absolute;inset:0;border:0;background:transparent}.directory-permission-panel{position:relative;z-index:1;width:min(100%,390px);padding:1.5rem;border-radius:1.1rem;background:var(--surface);box-shadow:var(--shadow-lg);text-align:center}.directory-permission-panel>span{font-size:32px;color:var(--primary)}.directory-permission-panel h2{margin:.5rem 0}.directory-permission-panel p{color:var(--secondary);font-size:13px;line-height:1.5}.directory-permission-panel button[data-directory-permission]{width:100%;display:flex;gap:.6rem;align-items:center;border:1px solid var(--outline-variant);border-radius:.75rem;background:var(--surface-container-low);padding:.75rem;margin:.55rem 0;color:var(--on-surface);font-weight:700;text-align:left}.directory-permission-close{position:absolute;right:.65rem;top:.45rem;border:0;background:transparent;font-size:24px;color:var(--on-surface)}.directory-permission-panel .btn{margin-top:.8rem}
.updates-modal-panel h2{margin:0 0 1rem}
.updates-page{padding:1rem;position:relative}.updates-head{display:flex;justify-content:space-between;align-items:center}.updates-head h1{margin:.25rem 0}.updates-filter-button{border:1px solid var(--outline);background:var(--surface);border-radius:999px;padding:.55rem .75rem;display:flex;gap:.3rem;align-items:center;color:var(--on-surface);font-weight:700}.updates-filter-menu{position:absolute;right:1rem;top:4.5rem;z-index:3;background:var(--surface);border:1px solid var(--outline);border-radius:.8rem;padding:.35rem;box-shadow:var(--shadow-md)}.updates-filter-menu button{display:block;width:100%;text-align:left;border:0;background:transparent;padding:.6rem .8rem;color:var(--on-surface)}.updates-feed{display:grid;gap:.85rem;margin-top:1rem}.update-card{display:grid;grid-template-columns:88px 1fr;gap:.8rem;padding:.7rem;border:1px solid var(--outline-variant);border-radius:1rem;background:var(--surface);cursor:pointer}.update-card img{width:88px;height:88px;object-fit:cover;border-radius:.75rem}.update-card h2{margin:.2rem 0;font-size:16px}.update-card p,.update-card small{margin:.2rem 0;color:var(--secondary);font-size:12px}.updates-compose-fab{position:fixed;right:1.25rem;bottom:5.5rem;width:3.4rem;height:3.4rem;border-radius:50%;display:grid;place-items:center;background:var(--primary);color:var(--on-primary);box-shadow:var(--shadow-lg);z-index:4;text-decoration:none}.updates-compose-fab .material-symbols-outlined{font-size:28px}.updates-modal{position:fixed;inset:0;z-index:20;display:grid;place-items:center;padding:1rem;background:rgba(0,0,0,.42)}.updates-modal>[type=button]:first-child{position:absolute;inset:0;border:0;background:transparent}.updates-modal-panel{position:relative;z-index:1;width:min(100%,430px);padding:1.2rem;border-radius:1rem;background:var(--surface);box-shadow:var(--shadow-lg)}.updates-modal-panel h2{margin:0 0:1rem}.updates-modal-panel label{display:grid;gap:.3rem;margin:.7rem 0;color:var(--on-surface)}.updates-modal-panel input,.updates-modal-panel select,.updates-modal-panel textarea{padding:.65rem;border:1px solid var(--outline);border-radius:.5rem;background:var(--surface);color:var(--on-surface)}.updates-modal-close{position:absolute;right:.7rem;top:.5rem;border:0;background:transparent;font-size:24px;color:var(--on-surface)}
