/**
 * GilGamez BlackBox Starter — Primary SPA Stylesheet
 */
:root {
    --bg-primary: var(--theme-bg-base, #0b0f17);
    --bg-surface: var(--theme-bg-surface, #111827);
    --bg-card: var(--theme-bg-card, #161f30);
    --border-subtle: var(--theme-border, rgba(255, 255, 255, 0.08));
    --border-gold: var(--theme-border-accent, rgba(197, 160, 89, 0.3));
    --primary-gold: var(--theme-accent, #c5a059);
    --gold-glow: var(--theme-glow, rgba(197, 160, 89, 0.15));
    --text-primary: var(--theme-text-primary, #f8fafc);
    --text-secondary: var(--theme-text-secondary, #94a3b8);
    --text-muted: var(--theme-text-muted, #64748b);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

/* Background & Particle Canvases */
.particle-background-canvas,
.particle-fx-canvas {
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
}

/* Standard GilGamez 3-Column Glassmorphism Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    max-width: 100vw;
    padding: 0 24px;
    height: 72px;
    display: flex;
    align-items: center;
    box-sizing: border-box;
    transition: background 0.35s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.35s ease,
                box-shadow 0.35s ease,
                height 0.35s ease,
                backdrop-filter 0.35s ease;
}

.site-header--sticky {
    position: sticky;
}

.site-header--normal {
    height: 72px;
}

.site-header--compact {
    height: 58px;
}

.site-header--glassmorphism {
    background: var(--theme-header-bg, rgba(11, 15, 23, 0.88));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--theme-header-border, var(--border-subtle, rgba(255, 255, 255, 0.08)));
}

.site-header.is-scrolled {
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.site-header .header-inner,
.header-container {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    min-width: 0;
    box-sizing: border-box;
}

.site-header-grid {
    display: grid;
    grid-template-columns: var(--header-left-ratio, 2.5fr) var(--header-mid-ratio, 5fr) var(--header-right-ratio, 2.5fr);
    align-items: center;
    width: 100%;
    gap: 16px;
    height: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.header-col-left {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    min-width: 0;
}

.header-col-mid {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 0 8px;
}

.header-col-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    min-width: 0;
}

.header-user-actions-group {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    flex-shrink: 0;
}

/* Left Zone: Brand Logo & Title */
.brand-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    font-weight: 700;
    white-space: nowrap;
    transition: transform 0.2s ease;
}

.brand-link:hover {
    transform: scale(1.02);
}

.brand-logo-icon,
.brand-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-gold, #c5a059);
    filter: drop-shadow(0 0 10px var(--gold-glow, rgba(197, 160, 89, 0.4)));
    flex-shrink: 0;
}

.brand-title,
.brand-title-text {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    white-space: nowrap;
}

.header-brand-badge,
.brand-badge {
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 9999px;
    background: var(--gold-glow, rgba(197, 160, 89, 0.15));
    color: var(--primary-gold, #c5a059);
    border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.3));
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Mid Zone: Navigation Pills (Canonical Core Standard) */
.nav-pill-list {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--theme-glass-bg, rgba(255, 255, 255, 0.04));
    padding: 4px 6px;
    border-radius: 30px;
    border: 1px solid var(--theme-glass-border, var(--border-subtle, rgba(255, 255, 255, 0.08)));
    list-style: none;
    margin: 0;
    flex-shrink: 0;
}

.nav-pill-item {
    list-style: none;
    margin: 0;
    padding: 0;
    display: inline-flex;
}

.nav-pill-item a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary, #94a3b8);
    text-decoration: none;
    border-radius: 20px;
    white-space: nowrap;
    line-height: 1;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-pill-item a:hover {
    color: var(--text-primary, #ffffff);
    background: rgba(255, 255, 255, 0.08);
}

.nav-pill-item a.is-active,
.nav-pill-item a.active {
    color: var(--theme-text-inverse, #0b0f17);
    background: linear-gradient(135deg, var(--primary-gold, #c5a059), #e0bc75);
    box-shadow: 0 2px 10px var(--gold-glow, rgba(197, 160, 89, 0.35));
    font-weight: 700;
}

.nav-pill-badge {
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f59e0b, #ef4444);
    color: #ffffff;
    letter-spacing: 0.02em;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

/* Right Zone: Obsidian Gold Header Button */
.btn-header-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary-gold, #c5a059), #aa851d);
    color: var(--theme-text-inverse, #0b0f17);
    font-weight: 700;
    font-size: 0.86rem;
    padding: 8px 16px;
    border-radius: var(--radius-sm, 8px);
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 2px 12px var(--gold-glow, rgba(197, 160, 89, 0.25));
    white-space: nowrap;
    line-height: 1.2;
}

.btn-header-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 18px var(--gold-glow, rgba(197, 160, 89, 0.4));
    color: var(--theme-text-inverse, #0b0f17);
}

/* Theme Switcher Header Slot */
.theme-switcher-header-slot {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
}

/* Responsive Header Standard (Mobile & Tablet) */
@media (max-width: 991px) {
    .site-header {
        height: auto;
        min-height: 64px;
        padding: 8px 16px;
    }
    .site-header-grid {
        grid-template-columns: 1fr auto;
        gap: 10px;
    }
    .header-col-mid {
        order: 3;
        grid-column: 1 / -1;
        justify-content: flex-start;
        overflow-x: auto;
        padding: 4px 0;
        scrollbar-width: none;
    }
    .header-col-mid::-webkit-scrollbar {
        display: none;
    }
    .header-col-right {
        order: 2;
    }
}

@media (max-width: 576px) {
    .site-header {
        padding: 6px 12px;
    }
    .brand-title-text {
        font-size: 0.98rem;
    }
    .brand-badge {
        display: none;
    }
    .btn-header-cta {
        padding: 6px 12px;
        font-size: 0.78rem;
        gap: 5px;
    }
    .nav-pill-item a {
        padding: 5px 10px;
        font-size: 0.78rem;
    }
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--theme-accent, #c5a059), var(--theme-accent-hover, #aa851d));
    color: var(--theme-text-inverse, #0b0f17);
    font-weight: 600;
    font-size: 13px;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px var(--gold-glow);
}

/* Main Content */
.main-content-container {
    flex: 1;
    max-width: 1280px;
    width: 100%;
    margin: 0 auto;
    padding: 40px 24px;
}

/* Hero Section */
.hero-section {
    text-align: center;
    padding: 60px 0 40px;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 9999px;
    background: var(--gold-glow);
    border: 1px solid var(--border-gold);
    color: var(--primary-gold);
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 24px;
    font-family: var(--font-heading);
    letter-spacing: 0.04em;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 20px;
}

.hero-title span {
    background: linear-gradient(135deg, var(--text-primary) 25%, var(--primary-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 680px;
    margin: 0 auto 36px;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 24px;
    margin-top: 48px;
}

@media (max-width: 640px) {
    .header-container,
    .main-content-container {
        padding-left: 16px;
        padding-right: 16px;
    }
}

.feature-card {
    background: var(--bg-surface);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: var(--border-gold);
}

.card-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    background: var(--gold-glow);
    color: var(--primary-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.card-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* Status Panel */
.status-panel {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    margin-top: 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
}

/* Footer */
.site-footer {
    border-top: 1px solid var(--border-subtle);
    background: var(--bg-surface);
    padding: 32px 24px;
    margin-top: auto;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--text-muted);
    font-size: 13px;
}

/* ─── Platform Services Refined Micro-Launcher & Dropdown (Core Platform Standard) ─── */
.services-handler-dropdown {
    position: relative;
    display: inline-flex;
    align-items: center;
}

.btn-services-handler {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    background: var(--theme-bg-card, rgba(22, 31, 48, 0.8));
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.1));
    border-radius: var(--radius-sm, 8px);
    color: var(--text-secondary, #94a3b8);
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.btn-services-handler:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-gold, #c5a059);
    color: var(--primary-gold, #c5a059);
    box-shadow: 0 0 14px var(--gold-glow, rgba(197, 160, 89, 0.3));
    transform: translateY(-1px);
}

.services-trigger-icon {
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), color 0.2s ease;
}

.btn-services-handler:hover .services-trigger-icon {
    transform: rotate(45deg);
    color: var(--primary-gold, #c5a059);
}

.services-dot {
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.services-handler-dropdown.is-open .btn-services-handler {
    background: rgba(197, 160, 89, 0.18);
    border-color: var(--primary-gold, #c5a059);
    box-shadow: 0 0 16px var(--gold-glow, rgba(197, 160, 89, 0.45));
    color: var(--primary-gold, #c5a059);
}

.services-handler-dropdown.is-open .services-trigger-icon {
    transform: rotate(90deg);
    color: var(--primary-gold, #c5a059);
}

/* Linear-style Categorized Ecosystem Hub Dropdown */
.services-dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 24px);
    background: var(--bg-card, #161f30);
    border: 1px solid var(--border-gold, rgba(197, 160, 89, 0.3));
    border-radius: var(--radius-lg, 16px);
    padding: 14px;
    box-shadow: 0 20px 48px -8px rgba(0, 0, 0, 0.85), 0 0 25px var(--gold-glow, rgba(197, 160, 89, 0.15));
    z-index: 1050;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    animation: servicesPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    box-sizing: border-box;
}

.services-handler-dropdown.is-open .services-dropdown-menu {
    display: block;
}

@keyframes servicesPopIn {
    0% {
        opacity: 0;
        transform: translateY(-6px) scale(0.97);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.services-dropdown-header {
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
}

.services-dropdown-title-group {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.services-dropdown-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-primary, #f8fafc);
    letter-spacing: 0.01em;
}

.services-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 9999px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.services-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 6px #10b981;
    animation: pulseDot 2s infinite ease-in-out;
}

@keyframes pulseDot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.45; transform: scale(0.8); }
}

.services-status-text {
    font-size: 0.62rem;
    font-weight: 700;
    color: #34d399;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.services-dropdown-subtext {
    font-size: 0.72rem;
    color: var(--text-muted, #64748b);
    display: block;
    margin-top: 2px;
}

.services-dropdown-sections {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: 420px;
    overflow-y: auto;
}

.services-section-group {
    display: flex;
    flex-direction: column;
}

.services-section-label {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 4px 6px;
}

.services-section-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.service-row-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 10px;
    border-radius: var(--radius-sm, 8px);
    background: transparent;
    border: 1px solid transparent;
    text-decoration: none;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: border-box;
    cursor: pointer;
}

.service-row-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
    transform: translateX(2px);
}

.service-row-item:active {
    transform: translateX(0) scale(0.99);
}

.service-row-icon-box {
    width: 32px;
    height: 32px;
    min-width: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.service-row-item:hover .service-row-icon-box {
    transform: scale(1.06);
}

.row-pos {
    background: rgba(6, 182, 212, 0.14);
    border: 1px solid rgba(6, 182, 212, 0.32);
    color: #22d3ee;
}

.row-oms {
    background: rgba(139, 92, 246, 0.14);
    border: 1px solid rgba(139, 92, 246, 0.32);
    color: #c084fc;
}

.row-git {
    background: rgba(245, 158, 11, 0.14);
    border: 1px solid rgba(245, 158, 11, 0.32);
    color: #fbbf24;
}

.row-mail {
    background: rgba(56, 189, 248, 0.14);
    border: 1px solid rgba(56, 189, 248, 0.32);
    color: #38bdf8;
}

.row-messenger {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.32);
    color: #34d399;
}

.row-ai {
    background: rgba(236, 72, 153, 0.14);
    border: 1px solid rgba(236, 72, 153, 0.32);
    color: #f472b6;
}

.row-iam {
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid rgba(197, 160, 89, 0.32);
    color: var(--primary-gold, #c5a059);
}

.service-row-meta {
    flex: 1;
    min-width: 0;
}

.service-row-header {
    display: flex;
    align-items: center;
    gap: 6px;
}

.service-row-name {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary, #f1f5f9);
}

.service-row-tag {
    font-size: 0.58rem;
    font-weight: 700;
    padding: 1px 5px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.tag-pos { background: rgba(6, 182, 212, 0.12); color: #22d3ee; border: 1px solid rgba(6, 182, 212, 0.25); }
.tag-oms { background: rgba(139, 92, 246, 0.12); color: #c084fc; border: 1px solid rgba(139, 92, 246, 0.25); }
.tag-git { background: rgba(245, 158, 11, 0.12); color: #fbbf24; border: 1px solid rgba(245, 158, 11, 0.25); }
.tag-mail { background: rgba(56, 189, 248, 0.12); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.25); }
.tag-messenger { background: rgba(16, 185, 129, 0.12); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.25); }
.tag-ai { background: rgba(236, 72, 153, 0.12); color: #f472b6; border: 1px solid rgba(236, 72, 153, 0.25); }
.tag-iam { background: rgba(197, 160, 89, 0.12); color: var(--primary-gold, #c5a059); border: 1px solid rgba(197, 160, 89, 0.25); }

.service-row-desc {
    font-size: 0.69rem;
    color: var(--text-muted, #64748b);
    margin-top: 1px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: block;
}

.service-row-trailing {
    display: flex;
    align-items: center;
    padding-left: 4px;
}

.service-row-arrow {
    color: var(--text-muted, #475569);
    transition: all 0.2s ease;
}

.service-row-item:hover .service-row-arrow {
    transform: translateX(2px);
    color: var(--text-primary, #cbd5e1);
}

.services-dropdown-footer {
    margin-top: 10px;
    padding-top: 8px;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.68rem;
    color: var(--text-muted, #64748b);
}

.services-footer-status {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.services-footer-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #10b981;
}

.services-footer-hint {
    font-size: 0.65rem;
    color: #475569;
    font-family: monospace;
}

@media (max-width: 480px) {
    .btn-services-handler {
        width: 32px;
        height: 32px;
    }
    .services-dropdown-menu {
        width: calc(100vw - 20px);
        right: -12px;
        padding: 10px;
    }
}

/* Law BF-33: Zero-Chrome Standalone Sign-In Surface */
body[data-auth-shell="true"] #site-header,
body[data-auth-shell="true"] #site-footer {
    display: none !important;
}

.bb-signin-stage {
    min-height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 16px;
    box-sizing: border-box;
}

.bb-signin-card {
    width: 100%;
    max-width: 430px;
    padding: 28px 24px;
    border-radius: 16px;
    background: var(--bg-surface, rgba(17, 24, 39, 0.92));
    border: 1px solid var(--border-subtle, rgba(197, 160, 89, 0.28));
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(16px);
}

.bb-signin-brand {
    text-align: center;
    margin-bottom: 18px;
}

.bb-signin-emblem {
    width: 48px;
    height: 48px;
    margin: 0 auto 12px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(197, 160, 89, 0.14);
    border: 1px solid rgba(197, 160, 89, 0.38);
    color: var(--accent, #c5a059);
}

.bb-signin-title {
    margin: 0 0 6px;
    font-size: clamp(1.2rem, 2.4vw, 1.45rem);
    color: var(--text-primary, #f8fafc);
}

.bb-signin-subtitle {
    margin: 0;
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
}

.bb-signin-notice {
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid rgba(197, 160, 89, 0.35);
    background: rgba(197, 160, 89, 0.08);
    margin-bottom: 16px;
    font-size: 0.875rem;
}

.bb-signin-notice[data-severity="danger"] {
    border-color: rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.1);
}

.bb-signin-notice[data-severity="warning"] {
    border-color: rgba(245, 158, 11, 0.45);
    background: rgba(245, 158, 11, 0.1);
}

.bb-signin-notice strong {
    display: block;
    margin-bottom: 4px;
    color: var(--text-primary, #f8fafc);
}

.bb-signin-notice p {
    margin: 0;
    color: var(--text-secondary, #cbd5e1);
    line-height: 1.45;
}

.bb-signin-form {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.bb-signin-field {
    display: grid;
    gap: 6px;
}

.bb-signin-field[hidden] {
    display: none !important;
}

.bb-signin-field label {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-secondary, #cbd5e1);
}

.bb-signin-field input {
    min-height: 44px;
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.12));
    background: var(--bg-input, #0b1120);
    color: var(--text-primary, #f8fafc);
    font-size: 0.92rem;
    box-sizing: border-box;
}

.bb-signin-btn {
    min-height: 44px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    box-sizing: border-box;
}

.bb-signin-feedback {
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 0.85rem;
    border: 1px solid rgba(239, 68, 68, 0.45);
    background: rgba(239, 68, 68, 0.12);
    color: #fecaca;
}

.bb-signin-footer-links {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.08));
    display: flex;
    justify-content: center;
}

.bb-signin-back-link {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.875rem;
    color: var(--text-muted, #94a3b8);
    text-decoration: none;
    padding: 0 12px;
}

.bb-signin-back-link:hover {
    color: var(--text-primary, #f8fafc);
}
