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

:root {
    --fds-bg: #0B0F19;
    --fds-card: #111827;
    --fds-card-soft: #172033;
    --fds-line: rgba(255, 255, 255, 0.1);
    --fds-text: #FFFFFF;
    --fds-muted: #9CA3AF;
    --fds-neon: #D7FF41;
    --fds-neon-strong: #BDEB16;
    --fds-danger: #FF5470;
    --fds-info: #38BDF8;
    --fds-font-ui: "Plus Jakarta Sans", "Segoe UI", sans-serif;
    --fds-font-display: "Poppins", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

body {
    font-family: var(--fds-font-display);
    background: var(--fds-bg);
    color: var(--fds-text);
}

a {
    color: inherit;
}

.btn-neon {
    background: var(--fds-neon);
    border-color: var(--fds-neon);
    color: #090D14;
    font-weight: 700;
}

.btn-neon:hover,
.btn-neon:focus {
    background: var(--fds-neon-strong);
    border-color: var(--fds-neon-strong);
    color: #090D14;
}

.btn-outline-neon {
    border-color: rgba(215, 255, 65, 0.65);
    color: var(--fds-neon);
    font-weight: 600;
}

.btn-outline-neon:hover {
    background: var(--fds-neon);
    color: #090D14;
}

.text-neon {
    color: var(--fds-neon);
}

.muted {
    color: var(--fds-muted);
}

.brand-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    border: 1px solid rgba(215, 255, 65, 0.5);
    color: var(--fds-neon);
    border-radius: 999px;
    padding: 0.35rem 0.8rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.install-body,
.landing-body {
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(215, 255, 65, 0.16), transparent 34rem),
        linear-gradient(135deg, #0B0F19 0%, #111827 52%, #080A10 100%);
}

.install-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 2rem;
}

.install-card {
    width: min(720px, 100%);
    background: rgba(17, 24, 39, 0.92);
    border: 1px solid var(--fds-line);
    border-radius: 8px;
    padding: clamp(1.5rem, 3vw, 3rem);
    box-shadow: 0 20px 80px rgba(0, 0, 0, 0.35);
}

.install-card h1 {
    margin: 1.3rem 0 0.8rem;
    font-weight: 800;
}

.landing-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem clamp(1rem, 4vw, 4rem);
}

.landing-logo,
.admin-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 1.05rem;
    font-weight: 800;
    text-decoration: none;
}

.logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--fds-neon);
    color: #0B0F19;
    display: inline-grid;
    place-items: center;
    font-weight: 900;
}

.landing-hero {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 520px);
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 5rem;
}

.landing-copy h1 {
    font-size: clamp(2.7rem, 7vw, 6.5rem);
    line-height: 0.95;
    font-weight: 800;
    margin: 1.1rem 0;
}

.landing-copy p {
    color: #D1D5DB;
    font-size: clamp(1rem, 2vw, 1.25rem);
    max-width: 650px;
}

.landing-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.7rem;
}

.landing-panel {
    border: 1px solid var(--fds-line);
    border-radius: 8px;
    background: rgba(17, 24, 39, 0.82);
    overflow: hidden;
    box-shadow: 0 24px 100px rgba(0, 0, 0, 0.4);
}

.screen-preview {
    aspect-ratio: 16 / 10;
    background:
        linear-gradient(140deg, rgba(215, 255, 65, 0.2), transparent 42%),
        linear-gradient(180deg, #151F33, #05070D);
    padding: 1.2rem;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: 1rem;
}

.preview-bar,
.preview-footer {
    display: flex;
    justify-content: space-between;
    gap: 0.8rem;
    color: #D1D5DB;
    font-size: 0.82rem;
}

.preview-media {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #05070D;
    border-radius: 6px;
    display: grid;
    place-items: center;
    color: var(--fds-neon);
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
}

.admin-body,
.login-shell {
    --admin-bg: #F4F7FB;
    --admin-surface: #FFFFFF;
    --admin-surface-soft: #EEF3FA;
    --admin-line: rgba(15, 23, 42, 0.08);
    --admin-text: #0F172A;
    --admin-muted: #64748B;
    --admin-accent: #2563EB;
    --admin-accent-strong: #1D4ED8;
    --admin-sidebar: #FFFFFF;
    --admin-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
    font-family: var(--fds-font-ui);
    font-size: 15.5px;
    line-height: 1.5;
    letter-spacing: -0.01em;
    color: var(--admin-text);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.admin-body {
    min-height: 100vh;
    background: var(--admin-bg);
}

.admin-layout {
    --admin-sidebar-width: 270px;
    display: grid;
    grid-template-columns: var(--admin-sidebar-width) minmax(0, 1fr);
    min-height: 100vh;
    transition: grid-template-columns 180ms ease;
}

.admin-layout.is-sidebar-collapsed {
    --admin-sidebar-width: 84px;
}

.admin-sidebar-backdrop {
    display: none;
}

.admin-sidebar {
    background: var(--admin-sidebar);
    border-right: 1px solid var(--admin-line);
    padding: 1rem 0.85rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    z-index: 30;
}

.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
}

.admin-support-btn {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    width: 100%;
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 10px;
    background: #EFF6FF;
    color: var(--admin-accent-strong);
    text-decoration: none;
    padding: 0.75rem 0.85rem;
    font-weight: 600;
    font-size: 0.94rem;
}

.admin-support-btn:hover {
    background: #DBEAFE;
    color: var(--admin-accent-strong);
}

.admin-support-btn i {
    font-size: 1.1rem;
    color: #16A34A;
}

.admin-nav {
    display: grid;
    gap: 0.25rem;
    margin-top: 0.75rem;
}

.admin-nav a {
    color: #475569;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: 10px;
    padding: 0.72rem 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.72rem;
    font-weight: 500;
    font-size: 0.94rem;
}

.admin-nav a:hover,
.admin-nav a.active {
    background: #EFF6FF;
    border-color: rgba(37, 99, 235, 0.12);
    color: var(--admin-accent-strong);
    font-weight: 600;
}

.admin-nav a.active {
    box-shadow: inset 3px 0 0 var(--admin-accent);
}

.admin-nav i {
    color: #94A3B8;
    font-size: 1.05rem;
    width: 1.15rem;
    text-align: center;
}

.admin-nav a.active i,
.admin-nav a:hover i {
    color: var(--admin-accent);
}

.admin-main {
    min-width: 0;
}

.admin-topbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem clamp(1rem, 2.5vw, 2rem);
    border-bottom: 1px solid var(--admin-line);
    background: rgba(255, 255, 255, 0.92);
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(12px);
}

.admin-topbar-left,
.admin-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

.admin-topbar-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    line-height: 1.2;
}

.admin-greeting {
    color: var(--admin-muted);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    margin-bottom: 0.15rem;
}

.admin-topbar-copy .h4 {
    margin: 0;
    line-height: 1.2;
}

.admin-sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    border: 1px solid var(--admin-line);
    background: #FFFFFF;
    color: #334155;
    display: inline-grid;
    place-items: center;
    cursor: pointer;
}

.admin-sidebar-toggle:hover {
    background: #F8FAFC;
    color: var(--admin-accent);
}

.admin-notify-btn {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--admin-line);
    background: #FFFFFF;
    color: #334155;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.admin-notify-btn::after {
    display: none;
}

.admin-notify-btn:hover,
.admin-notify-btn:focus,
.admin-notify-btn.show {
    background: #F8FAFC;
    border-color: rgba(37, 99, 235, 0.22);
    color: var(--admin-accent);
    outline: none;
}

.admin-notify-btn i {
    font-size: 1.05rem;
}

.admin-notify-dot {
    position: absolute;
    top: 9px;
    right: 10px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #EF4444;
    box-shadow: 0 0 0 2px #FFFFFF;
}

.admin-notify-panel {
    width: min(360px, calc(100vw - 1.5rem));
    margin-top: 0.55rem !important;
    padding: 0;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.16);
    background:
        linear-gradient(180deg, #FFFFFF 0%, #F8FAFC 100%);
}

.admin-notify-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem 1.05rem 0.85rem;
    border-bottom: 1px solid var(--admin-line);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(255, 255, 255, 0.9));
}

.admin-notify-title {
    font-size: 0.98rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--admin-text);
}

.admin-notify-subtitle {
    margin-top: 0.12rem;
    color: var(--admin-muted);
    font-size: 0.78rem;
}

.admin-notify-clear {
    border: 0;
    background: transparent;
    color: #2563EB;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.2rem 0;
    cursor: pointer;
}

.admin-notify-clear:hover {
    color: #1D4ED8;
    text-decoration: underline;
}

.admin-notify-list {
    display: grid;
    max-height: 360px;
    overflow: auto;
}

.admin-notify-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.9rem 1.05rem;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
    transition: background 140ms ease;
}

.admin-notify-item:last-child {
    border-bottom: 0;
}

.admin-notify-item:hover {
    background: rgba(37, 99, 235, 0.05);
    color: inherit;
}

.admin-notify-icon {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1rem;
}

.admin-notify-item.tone-danger .admin-notify-icon {
    background: #FEF2F2;
    color: #DC2626;
}

.admin-notify-item.tone-warning .admin-notify-icon {
    background: #FFFBEB;
    color: #D97706;
}

.admin-notify-item.tone-success .admin-notify-icon {
    background: #ECFDF5;
    color: #059669;
}

.admin-notify-item.tone-info .admin-notify-icon {
    background: #EFF6FF;
    color: #2563EB;
}

.admin-notify-body {
    min-width: 0;
    flex: 1;
}

.admin-notify-item-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.admin-notify-item-top strong {
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-notify-item-top time {
    color: #94A3B8;
    font-size: 0.74rem;
    white-space: nowrap;
}

.admin-notify-msg {
    display: block;
    margin-top: 0.18rem;
    color: #64748B;
    font-size: 0.84rem;
    line-height: 1.35;
}

.admin-user-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    padding: 0.28rem 0.7rem 0.28rem 0.28rem;
    border-radius: 999px;
    border: 1px solid var(--admin-line);
    background: #FFFFFF;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    cursor: pointer;
}

.admin-user-chip:hover,
.admin-user-chip:focus,
.admin-user-chip.show {
    background: #F8FAFC;
    border-color: rgba(37, 99, 235, 0.22);
    color: inherit;
    outline: none;
}

.admin-user-chip::after {
    display: none;
}

.admin-user-caret {
    font-size: 0.75rem;
    color: #94A3B8;
    margin-left: 0.1rem;
}

.admin-user-menu {
    min-width: 240px;
    margin-top: 0.55rem !important;
    padding: 0.45rem;
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
}

.admin-user-menu-head {
    padding: 0.65rem 0.75rem 0.45rem;
}

.admin-user-menu-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--admin-text);
    letter-spacing: -0.02em;
}

.admin-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    border-radius: 10px;
    padding: 0.65rem 0.75rem;
    font-weight: 500;
    color: #334155;
}

.admin-user-menu .dropdown-item i {
    width: 1rem;
    text-align: center;
    color: #64748B;
}

.admin-user-menu .dropdown-item:hover,
.admin-user-menu .dropdown-item:focus {
    background: #F1F5F9;
    color: #0F172A;
}

.admin-user-menu-logout {
    color: #DC2626 !important;
}

.admin-user-menu-logout i {
    color: #DC2626 !important;
}

.admin-user-menu-logout:hover,
.admin-user-menu-logout:focus {
    background: #FEF2F2 !important;
    color: #B91C1C !important;
}

.admin-user-menu .dropdown-divider {
    margin: 0.35rem 0.4rem;
    opacity: 1;
    border-color: var(--admin-line);
}

.admin-user-meta {
    display: grid;
    line-height: 1.15;
}

.admin-user-name {
    font-weight: 600;
    font-size: 0.94rem;
}

.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    object-fit: cover;
    border: 1px solid var(--admin-line);
    background: #E2E8F0;
}

.admin-avatar-lg {
    width: 72px;
    height: 72px;
}

.profile-page {
    display: grid;
    grid-template-columns: minmax(260px, 320px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    max-width: 1080px;
}

.profile-side {
    display: grid;
    justify-items: center;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(37, 99, 235, 0.08), transparent 38%),
        #FFFFFF;
}

.profile-side-avatar-wrap {
    margin-bottom: 0.85rem;
}

.profile-hero-avatar {
    width: 96px;
    height: 96px;
}

.profile-photo-box {
    width: 100%;
    text-align: left;
    margin-top: 0.35rem;
    padding-top: 1rem;
    border-top: 1px solid var(--admin-line);
}


.profile-main {
    display: grid;
    gap: 1rem;
}

.profile-kicker {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #64748B;
    margin-bottom: 0.2rem;
}

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

.profile-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-size: 0.78rem;
    font-weight: 600;
}

.profile-badge-soft {
    background: #F1F5F9;
    color: #475569;
}

.profile-section-head {
    margin-bottom: 1rem;
}

.profile-hint {
    background: #F8FAFC;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    padding: 0.7rem 0.85rem;
    color: #64748B;
    font-size: 0.88rem;
}

.profile-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.7rem;
    flex-wrap: wrap;
}

@media (max-width: 991.98px) {
    .profile-page {
        grid-template-columns: 1fr;
        max-width: 720px;
    }
}

@media (max-width: 575.98px) {
    .profile-actions {
        justify-content: stretch;
    }

    .profile-actions .btn {
        width: 100%;
    }
}

.admin-avatar-fallback {
    display: inline-grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--admin-accent-strong);
    background: #DBEAFE;
}

.admin-content {
    padding: clamp(1rem, 2.5vw, 2rem);
}

.content-card,
.metric-card {
    background: var(--admin-surface);
    border: 1px solid var(--admin-line);
    border-radius: 14px;
    box-shadow: var(--admin-shadow);
}

.content-card {
    padding: 1.25rem;
}

.metric-card {
    padding: 1.2rem;
    min-height: 124px;
    position: relative;
    overflow: hidden;
}

.metric-card::before {
    content: "";
    position: absolute;
    inset: 0 auto 0 0;
    width: 3px;
    background: var(--admin-accent);
}

.metric-card .metric-label {
    color: var(--admin-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.metric-card .metric-value {
    margin-top: 0.5rem;
    font-size: clamp(1.7rem, 3.5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--admin-text);
}

.dash {
    display: grid;
    gap: 1.15rem;
}

.dash-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 1rem;
    padding: 1.35rem 1.4rem;
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 18px;
    background:
        radial-gradient(circle at top right, rgba(37, 99, 235, 0.16), transparent 42%),
        linear-gradient(135deg, #FFFFFF 0%, #F8FBFF 48%, #EEF4FF 100%);
    box-shadow: var(--admin-shadow);
    overflow: hidden;
}

.dash-kicker {
    color: #1D4ED8;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
}

.dash-title {
    margin: 0;
    font-size: clamp(1.45rem, 2.6vw, 1.9rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--admin-text);
}

.dash-subtitle {
    margin: 0.45rem 0 0;
    max-width: 42rem;
    color: var(--admin-muted);
    font-size: 0.98rem;
}

.dash-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 1rem;
    margin-top: 1rem;
    color: #475569;
    font-size: 0.88rem;
    font-weight: 500;
}

.dash-hero-meta i {
    color: #2563EB;
    margin-right: 0.3rem;
}

.dash-meta-warn {
    color: #B45309;
}

.dash-meta-warn i {
    color: #D97706;
}

.dash-health {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 23, 42, 0.06);
    border-radius: 16px;
    padding: 1rem 1.05rem;
    backdrop-filter: blur(8px);
}

.dash-health-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.dash-health-label {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-health-value {
    margin-top: 0.2rem;
    font-size: 1.85rem;
    font-weight: 750;
    letter-spacing: -0.03em;
    color: var(--admin-text);
}

.dash-health-ring {
    --dash-rate: 0;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at center, #FFFFFF 58%, transparent 59%),
        conic-gradient(#2563EB calc(var(--dash-rate) * 1%), #E2E8F0 0);
    font-size: 0.72rem;
    font-weight: 700;
    color: #334155;
}

.dash-health-bar {
    margin-top: 0.9rem;
    height: 8px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
}

.dash-health-bar span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #60A5FA, #2563EB);
}

.dash-health-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-top: 0.9rem;
}

.dash-health-stat {
    padding: 0.55rem 0.45rem;
    border-radius: 10px;
    background: #F8FAFC;
    text-align: center;
}

.dash-health-stat strong {
    display: block;
    font-size: 1.05rem;
    font-weight: 750;
    letter-spacing: -0.02em;
}

.dash-health-stat span {
    display: block;
    margin-top: 0.1rem;
    color: var(--admin-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.dash-health-stat.tone-success strong { color: #059669; }
.dash-health-stat.tone-danger strong { color: #DC2626; }
.dash-health-stat.tone-warning strong { color: #D97706; }
.dash-health-stat.tone-blue strong { color: #2563EB; }

.dash-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
}

.dash-metric {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 1.05rem 1.1rem;
    border-radius: 16px;
    border: 1px solid var(--admin-line);
    background: #FFFFFF;
    box-shadow: var(--admin-shadow);
    min-height: 118px;
}

.dash-metric-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    font-size: 1.15rem;
}

.dash-metric.tone-blue .dash-metric-icon { background: #EFF6FF; color: #2563EB; }
.dash-metric.tone-indigo .dash-metric-icon { background: #EEF2FF; color: #4F46E5; }
.dash-metric.tone-sky .dash-metric-icon { background: #F0F9FF; color: #0284C7; }
.dash-metric.tone-slate .dash-metric-icon { background: #F1F5F9; color: #475569; }

.dash-metric-label {
    color: var(--admin-muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.dash-metric-value {
    margin-top: 0.2rem;
    font-size: clamp(1.55rem, 2.8vw, 2rem);
    font-weight: 750;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.dash-metric-hint {
    margin-top: 0.25rem;
    color: #64748B;
    font-size: 0.82rem;
}

.dash-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.85rem;
}

.dash-action {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.95rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--admin-line);
    background: #FFFFFF;
    text-decoration: none;
    color: inherit;
    box-shadow: var(--admin-shadow);
    transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.dash-action:hover {
    border-color: rgba(37, 99, 235, 0.28);
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.08);
    color: inherit;
}

.dash-action-icon {
    width: 40px;
    height: 40px;
    border-radius: 11px;
    display: grid;
    place-items: center;
    background: #EFF6FF;
    color: #2563EB;
    flex: 0 0 auto;
}

.dash-action-copy {
    display: grid;
    gap: 0.1rem;
    min-width: 0;
}

.dash-action-copy strong {
    font-size: 0.94rem;
    font-weight: 700;
}

.dash-action-copy small {
    color: var(--admin-muted);
    font-size: 0.8rem;
}

.dash-action-arrow {
    margin-left: auto;
    color: #94A3B8;
}

.dash-list-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.dash-panel {
    background: #FFFFFF;
    border: 1px solid var(--admin-line);
    border-radius: 16px;
    box-shadow: var(--admin-shadow);
    padding: 1.15rem 1.2rem;
    min-height: 100%;
}

.dash-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
    margin-bottom: 1rem;
}

.dash-panel-head h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dash-panel-head p {
    margin: 0.2rem 0 0;
    color: var(--admin-muted);
    font-size: 0.86rem;
}

.dash-list {
    display: grid;
    gap: 0.55rem;
}

.dash-list-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.85rem;
    border-radius: 12px;
    border: 1px solid transparent;
    background: #F8FAFC;
    text-decoration: none;
    color: inherit;
    transition: background 140ms ease, border-color 140ms ease;
}

.dash-list-item:hover {
    background: #EFF6FF;
    border-color: rgba(37, 99, 235, 0.14);
    color: inherit;
}

.dash-avatar {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #DBEAFE;
    color: #1D4ED8;
    font-weight: 750;
    flex: 0 0 auto;
}

.dash-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex: 0 0 auto;
    margin-left: 0.35rem;
}

.dash-status-dot.is-online,
.dash-pill.is-online {
    background: #10B981;
}

.dash-status-dot.is-offline {
    background: #94A3B8;
}

.dash-list-main {
    min-width: 0;
    flex: 1;
}

.dash-list-title {
    font-weight: 700;
    font-size: 0.94rem;
    letter-spacing: -0.01em;
}

.dash-list-meta {
    color: var(--admin-muted);
    font-size: 0.8rem;
    margin-top: 0.12rem;
}

.dash-list-side {
    text-align: right;
    flex: 0 0 auto;
}

.dash-mini-stats {
    display: flex;
    gap: 0.55rem;
    justify-content: flex-end;
    color: #64748B;
    font-size: 0.76rem;
    font-weight: 600;
}

.dash-mini-bar {
    margin-top: 0.35rem;
    width: 88px;
    height: 5px;
    border-radius: 999px;
    background: #E2E8F0;
    overflow: hidden;
    margin-left: auto;
}

.dash-mini-bar span {
    display: block;
    height: 100%;
    background: #2563EB;
}

.dash-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
}

.dash-pill.is-offline {
    background: #94A3B8;
}

.dash-empty {
    padding: 1.4rem 0.8rem;
    text-align: center;
    color: var(--admin-muted);
    font-size: 0.92rem;
}

@media (max-width: 1199.98px) {
    .dash-metrics,
    .dash-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dash-list-wide {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 991.98px) {
    .dash-hero {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .dash-metrics,
    .dash-actions,
    .dash-health-stats,
    .dash-list-wide {
        grid-template-columns: 1fr;
    }

    .dash-panel-head {
        flex-direction: column;
    }

    .dash-list-item {
        align-items: flex-start;
    }

    .dash-list-side {
        text-align: left;
    }

    .dash-mini-stats {
        justify-content: flex-start;
    }

    .dash-mini-bar {
        margin-left: 0;
    }
}

.admin-body .table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--admin-text);
    --bs-table-border-color: var(--admin-line);
    --bs-table-striped-bg: transparent;
    --bs-table-hover-bg: #F8FAFC;
}

.admin-body .table thead th {
    color: #64748B;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom-color: var(--admin-line);
    font-weight: 600;
}

.admin-body .table td {
    font-size: 0.94rem;
    font-weight: 500;
}

.admin-body .table .fw-bold {
    font-weight: 600 !important;
}

.admin-body .table tbody tr:hover {
    background: #F8FAFC;
}

.admin-body .form-control,
.admin-body .form-select,
.login-shell .form-control,
.login-shell .form-select {
    background-color: #FFFFFF;
    color: var(--admin-text);
    border-color: rgba(15, 23, 42, 0.12);
    border-radius: 10px;
    min-height: 44px;
}

.admin-body .form-control:focus,
.admin-body .form-select:focus,
.login-shell .form-control:focus,
.login-shell .form-select:focus {
    background-color: #FFFFFF;
    color: var(--admin-text);
    border-color: var(--admin-accent);
    box-shadow: 0 0 0 0.18rem rgba(37, 99, 235, 0.14);
}

.admin-body .form-control::file-selector-button,
.login-shell .form-control::file-selector-button {
    background: #EFF6FF;
    border: 0;
    color: var(--admin-accent-strong);
    font-weight: 600;
}

.admin-body .form-label,
.login-shell .form-label {
    color: #334155;
    font-weight: 500;
    font-size: 0.9rem;
}

.admin-body .muted,
.login-shell .muted {
    color: var(--admin-muted);
}

.admin-body .admin-logo,
.login-shell .admin-logo {
    color: var(--admin-text);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    padding: 0.35rem 0.45rem;
}

.admin-body .admin-logo-img,
.login-shell .admin-logo-img,
.landing-logo .admin-logo-img {
    display: block;
    width: auto;
    max-width: 180px;
    height: 40px;
    object-fit: contain;
    flex: 0 0 auto;
}

.admin-body .admin-logo-favicon {
    display: none;
    width: 34px;
    height: 34px;
    object-fit: contain;
    flex: 0 0 auto;
    border-radius: 8px;
}

.admin-body .admin-logo:not(:has(.admin-logo-img)) .admin-logo-favicon {
    display: block;
}

.admin-layout.is-sidebar-collapsed .admin-logo-img {
    display: none;
}

.admin-layout.is-sidebar-collapsed .admin-logo-favicon {
    display: block;
}

.admin-layout.is-sidebar-collapsed .admin-logo:not(:has(.admin-logo-favicon)) .admin-logo-img {
    display: block;
    max-width: 34px;
    height: 34px;
}

.brand-asset-preview {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    background: #F8FAFC;
}

.brand-asset-preview img {
    display: block;
    max-width: 180px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.brand-asset-preview-sm img {
    max-width: 48px;
    max-height: 48px;
}

.admin-body .logo-mark {
    width: 34px;
    height: 34px;
    background: var(--admin-accent);
    color: #FFFFFF;
    border-radius: 10px;
    flex: 0 0 auto;
    display: inline-grid;
    place-items: center;
    font-weight: 800;
}

.admin-body h1,
.admin-body h2,
.admin-body h3,
.admin-body h4,
.admin-body h5,
.login-shell h1 {
    color: var(--admin-text);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.admin-body .h4,
.admin-topbar h1 {
    font-size: 1.28rem;
    font-weight: 700;
}

.admin-body .h5 {
    font-size: 1.05rem;
    font-weight: 600;
}

.admin-body .small,
.admin-body small {
    font-size: 0.84rem;
    line-height: 1.4;
}

.admin-body .btn,
.login-shell .btn,
.admin-body a.btn,
.login-shell a.btn,
.admin-body button.btn,
.login-shell button.btn {
    --fds-btn-height: 44px;
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: var(--fds-btn-height);
    min-height: var(--fds-btn-height);
    padding: 0 1rem;
    border-width: 1px;
    border-style: solid;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.92rem;
    letter-spacing: -0.01em;
    line-height: 1;
    vertical-align: middle;
    text-decoration: none;
}

.admin-body .btn-sm,
.login-shell .btn-sm {
    --fds-btn-height: 36px;
    height: var(--fds-btn-height);
    min-height: var(--fds-btn-height);
    padding: 0 0.75rem;
    font-size: 0.84rem;
    gap: 0.35rem;
}

.admin-body .btn-lg,
.login-shell .btn-lg {
    --fds-btn-height: 48px;
    height: var(--fds-btn-height);
    min-height: var(--fds-btn-height);
    padding: 0 1.15rem;
    font-size: 0.98rem;
}

.admin-body .btn i,
.login-shell .btn i {
    font-size: 1em;
    line-height: 1;
}

.admin-body .btn-icon {
    width: var(--fds-btn-height);
    min-width: var(--fds-btn-height);
    padding-left: 0;
    padding-right: 0;
}

.admin-body .btn-neon,
.login-shell .btn-neon {
    background: var(--admin-accent);
    border-color: var(--admin-accent);
    color: #FFFFFF;
}

.admin-body .btn-neon:hover,
.admin-body .btn-neon:focus,
.login-shell .btn-neon:hover,
.login-shell .btn-neon:focus {
    background: var(--admin-accent-strong);
    border-color: var(--admin-accent-strong);
    color: #FFFFFF;
}

.admin-body .btn-outline-neon,
.admin-body .btn-outline-secondary,
.admin-body .btn-outline-light,
.login-shell .btn-outline-secondary {
    --bs-btn-color: #334155;
    --bs-btn-border-color: rgba(15, 23, 42, 0.14);
    --bs-btn-bg: #FFFFFF;
    --bs-btn-hover-bg: #F8FAFC;
    --bs-btn-hover-border-color: rgba(15, 23, 42, 0.22);
    --bs-btn-hover-color: #0F172A;
    background: #FFFFFF;
    color: #334155;
    border-color: rgba(15, 23, 42, 0.14);
}

.admin-body .btn-outline-neon:hover,
.admin-body .btn-outline-secondary:hover,
.admin-body .btn-outline-light:hover,
.login-shell .btn-outline-secondary:hover {
    background: #F8FAFC;
    color: #0F172A;
    border-color: rgba(15, 23, 42, 0.22);
}

.admin-body .btn-outline-danger {
    --bs-btn-color: #DC2626;
    --bs-btn-border-color: rgba(220, 38, 38, 0.28);
    --bs-btn-bg: #FFFFFF;
    --bs-btn-hover-bg: #FEF2F2;
    --bs-btn-hover-border-color: #DC2626;
    --bs-btn-hover-color: #B91C1C;
    background: #FFFFFF;
}

.admin-body .btn-group-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.admin-body .d-flex.gap-2:has(> .btn),
.admin-body .profile-actions {
    align-items: center;
}

.fds-upload {
    display: grid;
    gap: 0.65rem;
    cursor: pointer;
}

.fds-upload-input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.fds-upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 44px;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 10px;
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
    font-size: 0.92rem;
}

.fds-upload:hover .fds-upload-btn,
.fds-upload:focus-within .fds-upload-btn {
    background: #DBEAFE;
    border-color: rgba(37, 99, 235, 0.35);
}

.fds-upload-name {
    display: block;
    width: 100%;
    padding: 0.7rem 0.85rem;
    border: 1px dashed var(--admin-line);
    border-radius: 10px;
    background: #F8FAFC;
    color: #64748B;
    font-size: 0.86rem;
    line-height: 1.35;
    word-break: break-word;
}

.admin-body .badge.text-bg-dark {
    background: #E2E8F0 !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-body .badge.text-bg-success {
    background: #ECFDF5 !important;
    color: #047857 !important;
    border: 1px solid rgba(16, 185, 129, 0.22);
}

.admin-body .badge.text-bg-secondary {
    background: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid rgba(15, 23, 42, 0.06);
}

.admin-body .alert {
    background: #FFFFFF;
    border-color: var(--admin-line);
    color: var(--admin-text);
    border-radius: 12px;
}

.admin-body .alert-success {
    border-color: rgba(16, 185, 129, 0.28);
    background: #ECFDF5;
}

.admin-body .alert-danger {
    border-color: rgba(220, 38, 38, 0.28);
    background: #FEF2F2;
}

.admin-body .alert-secondary {
    background: #F8FAFC;
}

.admin-body .form-text {
    color: #64748B !important;
}

.admin-layout.is-sidebar-collapsed .admin-logo-text,
.admin-layout.is-sidebar-collapsed .admin-nav a span,
.admin-layout.is-sidebar-collapsed .admin-support-btn span {
    display: none;
}

.admin-layout.is-sidebar-collapsed .admin-nav a,
.admin-layout.is-sidebar-collapsed .admin-support-btn,
.admin-layout.is-sidebar-collapsed .admin-logo {
    justify-content: center;
    padding-left: 0.55rem;
    padding-right: 0.55rem;
}

.admin-layout.is-sidebar-collapsed .admin-support-btn {
    width: 48px;
    margin: 0 auto;
    padding: 0.75rem 0;
}

.quick-pair-card {
    border-color: rgba(37, 99, 235, 0.16);
}

.quick-pair-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.9rem;
    align-items: end;
}

.quick-pair-form .pairing-code-input {
    min-height: 46px;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-align: center;
}

.quick-pair-submit {
    align-self: end;
}

.screen-asset-preview {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
    background: #F8FAFC;
    border: 1px solid var(--admin-line);
    border-radius: 10px;
    padding: 0.6rem;
}

.screen-asset-preview img {
    width: 76px;
    height: 52px;
    object-fit: contain;
    background: #FFFFFF;
    border-radius: 5px;
    padding: 0.25rem;
}

.media-preview {
    width: 96px;
    height: 58px;
    object-fit: cover;
    border-radius: 8px;
    background: #E2E8F0;
    border: 1px solid var(--admin-line);
}

.support-preview {
    background: #F8FAFC;
    border: 1px solid var(--admin-line);
    border-radius: 12px;
    padding: 0.9rem 1rem;
}

.support-preview a {
    color: var(--admin-accent-strong);
    font-weight: 600;
    word-break: break-all;
}

.admin-modal {
    border: 0;
    border-radius: 16px;
    overflow: hidden;
}

.admin-modal .modal-header {
    border-bottom: 1px solid var(--admin-line, rgba(15, 23, 42, 0.08));
    padding: 1rem 1.25rem;
}

.admin-modal .modal-body {
    padding: 1.25rem;
}

.admin-modal-tabs .nav-link {
    border-radius: 999px;
    color: #475569;
    font-weight: 500;
    font-size: 0.9rem;
    padding: 0.45rem 0.95rem;
}

.admin-modal-tabs .nav-link.active {
    background: #EFF6FF;
    color: #1D4ED8;
    font-weight: 600;
}

.login-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1rem;
    background:
        radial-gradient(circle at 80% 10%, rgba(37, 99, 235, 0.12), transparent 28rem),
        linear-gradient(180deg, #F8FBFF 0%, #F4F7FB 100%);
    color: var(--admin-text, #0F172A);
}

.login-card {
    width: min(430px, 100%);
    background: #FFFFFF;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
    border-radius: 16px;
    padding: 2rem;
}

.login-card-wide {
    width: min(520px, 100%);
}

.login-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.35rem;
    padding: 0.35rem;
    border-radius: 12px;
    background: #F1F5F9;
    margin-bottom: 1.25rem;
}

.login-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.92rem;
    color: #64748B;
}

.login-tab.is-active {
    background: #fff;
    color: #0F172A;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
}

.login-trial-note {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: #EFF6FF;
    border: 1px solid #BFDBFE;
    color: #1E3A8A;
    font-size: 0.88rem;
}

.login-trial-note i {
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.login-shell .admin-logo {
    color: #0F172A;
}

.login-shell .logo-mark {
    background: #2563EB;
    color: #FFFFFF;
}

.login-shell .alert-danger {
    background: #FEF2F2;
    border-color: rgba(220, 38, 38, 0.28);
    color: #991B1B;
}

.player-body {
    margin: 0;
    overflow: hidden;
    background: #000;
    color: #fff;
    font-family: var(--fds-font-display);
}

.player-shell {
    position: fixed;
    inset: 0;
    display: grid;
    background: #000;
}

.player-shell-fullscreen {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    grid-template-areas: "content";
}

.player-shell-framed {
    grid-template-columns: var(--player-sidebar-width, 24%) 1fr;
    grid-template-rows: 1fr minmax(44px, 6.2vh);
    grid-template-areas:
        "sidebar content"
        "footer footer";
}

.player-shell-framed.player-shell-sidebar-right {
    grid-template-columns: 1fr var(--player-sidebar-width, 24%);
    grid-template-areas:
        "content sidebar"
        "footer footer";
}

.player-sidebar {
    grid-area: sidebar;
    background: var(--player-primary-color, #F5AD00);
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-content: stretch;
    justify-items: center;
    gap: clamp(0.7rem, 2vh, 1.4rem);
    padding:
        clamp(1rem, 2.6vh, 2rem)
        clamp(0.8rem, 2vw, 1.6rem)
        clamp(0.9rem, 2.2vh, 1.6rem);
    color: var(--player-sidebar-text, #08111F);
    overflow: hidden;
    min-height: 0;
    height: 100%;
}

.player-brand-area {
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.player-logo {
    max-width: 100%;
    max-height: clamp(64px, 12vh, 148px);
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.18));
}

.player-logo-fallback {
    min-width: 96px;
    border: 2px solid var(--player-sidebar-soft, rgba(8, 17, 31, 0.14));
    border-radius: 999px;
    padding: 0.65rem 0.9rem;
    text-align: center;
    font-weight: 900;
    line-height: 1;
    font-size: clamp(0.85rem, 1.6vw, 1.1rem);
    color: var(--player-sidebar-text, #08111F);
    background: var(--player-logo-fallback-bg, rgba(255, 255, 255, 0.32));
    backdrop-filter: blur(6px);
}

.player-sidebar-message {
    width: 100%;
    max-width: 240px;
    margin: 0;
    padding: 0 clamp(0.15rem, 0.6vw, 0.4rem);
    text-align: center;
    font-size: clamp(0.95rem, 1.9vw, 1.45rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--player-sidebar-text, #08111F);
    text-wrap: balance;
    overflow-wrap: anywhere;
}

.player-sidebar-message[hidden] {
    display: none !important;
}

.player-sidebar-spacer {
    width: 100%;
    min-height: 0;
    align-self: stretch;
}

.player-qr-block {
    width: 100%;
    max-width: 240px;
    justify-self: center;
    align-self: end;
    display: grid;
    justify-items: center;
    gap: clamp(0.45rem, 1.2vh, 0.7rem);
    margin: 0;
    padding: clamp(0.7rem, 1.6vh, 1rem) clamp(0.7rem, 1.4vw, 1rem);
    border-radius: 16px;
    background: var(--player-qr-card, rgba(255, 255, 255, 0.94));
    border: 1px solid var(--player-qr-card-border, rgba(8, 17, 31, 0.08));
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.55);
    color: #08111F;
}

.player-qr-block[hidden] {
    display: none !important;
}

.player-qr-label {
    font-size: clamp(0.85rem, 1.7vw, 1.2rem);
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #08111F;
    line-height: 1.1;
    text-align: center;
}

.player-qr {
    width: 100%;
    max-width: min(100%, 11.5vw, 176px);
    aspect-ratio: 1;
    object-fit: contain;
    background: #FFFFFF;
    padding: clamp(0.3rem, 0.8vw, 0.45rem);
    border-radius: 10px;
    border: 1px solid rgba(8, 17, 31, 0.06);
}

.player-content {
    grid-area: content;
    min-width: 0;
    min-height: 0;
    background: var(--player-stage-color, #000000);
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.player-footer {
    grid-area: footer;
    background: var(--player-footer-color, #1E2F8F);
}

.player-stage {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: hidden;
}

.player-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    outline: 0;
    object-fit: fill;
    object-position: center center;
    opacity: 0;
    transition: opacity 700ms ease;
    background: transparent;
}

.player-media.active {
    opacity: 1;
}

.pairing-screen,
.empty-playlist,
.emergency-screen {
    position: fixed;
    inset: 0;
    display: grid;
    place-items: center;
    padding: clamp(1rem, 3vw, 2.5rem);
    overflow: hidden;
    z-index: 10;
}

.pairing-screen {
    background: #121212;
    color: #f1f3f4;
    font-family: "Roboto", "Segoe UI", sans-serif;
    padding: 0;
}

.empty-playlist {
    background:
        radial-gradient(ellipse 90% 55% at 50% -15%, rgba(215, 255, 65, 0.16), transparent 55%),
        radial-gradient(ellipse 45% 38% at 100% 100%, rgba(30, 47, 143, 0.42), transparent 58%),
        radial-gradient(ellipse 36% 28% at 0% 88%, rgba(245, 173, 0, 0.1), transparent 52%),
        linear-gradient(180deg, #04060c 0%, var(--fds-bg) 42%, #060912 100%);
}

.pairing-ambient {
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
    filter: blur(80px);
    opacity: 0.55;
}

.pairing-ambient-neon {
    width: min(42vw, 420px);
    height: min(42vw, 420px);
    top: 8%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(215, 255, 65, 0.22);
}

.pairing-ambient-blue {
    width: min(50vw, 520px);
    height: min(36vw, 360px);
    right: -8%;
    bottom: -6%;
    background: rgba(30, 47, 143, 0.38);
}

.empty-card,
.emergency-card {
    position: relative;
    text-align: center;
    width: min(820px, 100%);
}

.empty-card {
    padding: clamp(1.4rem, 3.2vw, 2.6rem);
    border-radius: 28px;
    background:
        linear-gradient(155deg, rgba(23, 32, 51, 0.94) 0%, rgba(11, 15, 25, 0.9) 100%);
    border: 1px solid rgba(255, 255, 255, 0.09);
    box-shadow:
        0 28px 90px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(18px);
}

.empty-card .brand-pill {
    background: rgba(215, 255, 65, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.empty-title {
    margin: 0.85rem 0 0.35rem;
    font-size: clamp(1.85rem, 4.2vw, 3rem);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.08;
}

.empty-copy {
    margin: 0 auto;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: clamp(0.98rem, 1.8vw, 1.12rem);
    line-height: 1.45;
}

.pairing-layout {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    width: min(920px, 100%);
    min-height: min(100vh, 100%);
    padding: clamp(2rem, 5vh, 4rem) clamp(1.5rem, 4vw, 3rem);
    text-align: center;
}

.pairing-header {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 2.5rem;
}

.pairing-header-logo {
    max-width: min(180px, 42vw);
    max-height: 42px;
    object-fit: contain;
    filter: brightness(0) invert(1);
    opacity: 0.95;
}

.pairing-header-name {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    text-transform: uppercase;
}

.pairing-main {
    display: flex;
    flex: 1;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: clamp(1.5rem, 4vh, 3rem) 0;
}

.pairing-lead {
    margin: 0;
    max-width: 34rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: clamp(1.05rem, 2.2vw, 1.45rem);
    font-weight: 400;
    line-height: 1.45;
}

.pairing-lead-code {
    margin-top: clamp(1.75rem, 4vh, 2.75rem);
}

.pairing-url {
    margin: 0.45rem 0 0;
    font-size: clamp(1.2rem, 2.8vw, 1.85rem);
    font-weight: 500;
    line-height: 1.3;
    word-break: break-word;
}

.pairing-url a {
    color: #8ab4f8;
    text-decoration: none;
}

.pairing-url a:hover,
.pairing-url a:focus-visible {
    color: #aecbfb;
    text-decoration: underline;
    outline: none;
}

.pairing-lead strong {
    color: #ffffff;
    font-weight: 500;
}

.pairing-code {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(0.55rem, 2.4vw, 1.35rem);
    width: 100%;
    margin: clamp(1.35rem, 3.5vh, 2.5rem) 0 clamp(1rem, 2.5vh, 1.75rem);
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    transition: opacity 180ms ease, transform 180ms ease;
}

.pairing-code:hover,
.pairing-code:focus-visible {
    outline: none;
    opacity: 0.92;
}

.pairing-code.is-copied {
    transform: scale(0.985);
}

.pairing-digit {
    min-width: 0.62em;
    color: #ffffff;
    font-size: clamp(3.6rem, 12vw, 7.5rem);
    font-weight: 300;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0;
}

.pairing-digit.is-placeholder {
    color: rgba(255, 255, 255, 0.22);
}

.pairing-status {
    margin: 0;
    color: rgba(255, 255, 255, 0.56);
    font-size: clamp(0.95rem, 1.8vw, 1.1rem);
    font-weight: 400;
}

.pairing-device {
    min-height: 1.1rem;
    margin-top: 0.65rem;
    color: rgba(255, 255, 255, 0.45);
    font-size: 0.9rem;
    font-weight: 500;
}

.pairing-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.95rem;
}

.pairing-footer-btn {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.62);
    padding: 0.35rem 0.15rem;
    font: inherit;
    cursor: pointer;
    transition: color 160ms ease;
}

.pairing-footer-btn:hover,
.pairing-footer-btn:focus-visible {
    color: #ffffff;
    outline: none;
}

.pairing-footer-sep {
    opacity: 0.45;
}

.player-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border: 1px solid var(--fds-neon);
    border-radius: 12px;
    background: linear-gradient(180deg, #e8ff70 0%, var(--fds-neon) 100%);
    color: #071018;
    padding: 0.78rem 1.15rem;
    min-height: 46px;
    font: inherit;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(215, 255, 65, 0.22);
    transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

.player-action:hover,
.player-action:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 14px 30px rgba(215, 255, 65, 0.3);
    background: linear-gradient(180deg, #f0ff8a 0%, var(--fds-neon-strong) 100%);
}

.player-action.secondary {
    background: rgba(255, 255, 255, 0.03);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.22);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.player-action.secondary:hover,
.player-action.secondary:focus-visible {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(215, 255, 65, 0.45);
    box-shadow: 0 0 0 1px rgba(215, 255, 65, 0.15);
}

@media (max-width: 767.98px) {
    .empty-card {
        border-radius: 22px;
        padding: 1.15rem;
    }

    .pairing-code {
        gap: 0.45rem;
    }

    .pairing-digit {
        min-width: 0.52em;
    }
}

.player-fullscreen-btn {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 40;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(5, 7, 13, 0.72);
    color: #FFFFFF;
    padding: 0.65rem 1rem;
    min-height: 44px;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    backdrop-filter: blur(8px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease, background 160ms ease;
}

.player-fullscreen-btn.is-visible,
.player-fullscreen-btn:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.player-fullscreen-btn:hover {
    background: rgba(5, 7, 13, 0.9);
}

.player-body.is-fullscreen .player-fullscreen-btn {
    opacity: 0;
    pointer-events: none;
}

.emergency-screen {
    background: #D71920;
    z-index: 20;
}

.emergency-card h1 {
    font-size: clamp(2.5rem, 8vw, 6rem);
    font-weight: 800;
}

.emergency-kicker {
    margin-bottom: 1rem;
    font-size: clamp(0.85rem, 2vw, 1.1rem);
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.84);
}

.emergency-card p {
    font-size: clamp(1.2rem, 3vw, 2rem);
}

@media (max-width: 991.98px) {
    .landing-hero,
    .admin-layout {
        grid-template-columns: 1fr;
    }

    .landing-panel {
        order: -1;
    }

    .admin-sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: rgba(15, 23, 42, 0.42);
        z-index: 35;
    }

    .admin-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(288px, 86vw);
        height: 100vh;
        transform: translateX(-105%);
        transition: transform 180ms ease;
        box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
    }

    .admin-layout.is-sidebar-open .admin-sidebar {
        transform: translateX(0);
    }

    .admin-layout.is-sidebar-collapsed {
        --admin-sidebar-width: 270px;
    }

    .admin-layout.is-sidebar-collapsed .admin-logo-text,
    .admin-layout.is-sidebar-collapsed .admin-nav a span,
    .admin-layout.is-sidebar-collapsed .admin-support-btn span {
        display: inline;
    }

    .admin-layout.is-sidebar-collapsed .admin-nav a,
    .admin-layout.is-sidebar-collapsed .admin-support-btn,
    .admin-layout.is-sidebar-collapsed .admin-logo {
        justify-content: flex-start;
        padding-left: 0.8rem;
        padding-right: 0.8rem;
    }

    .admin-layout.is-sidebar-collapsed .admin-support-btn {
        width: 100%;
        margin: 0;
        padding: 0.75rem 0.85rem;
    }

    .quick-pair-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .landing-nav {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-topbar {
        align-items: center;
    }

    .admin-user-meta {
        display: none;
    }

    .admin-user-caret {
        display: none;
    }

    .content-card {
        padding: 0.9rem;
    }

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

/* Configuracoes (master) */
.settings-shell .settings-head {
    margin-bottom: 0.25rem;
}

.settings-tabs,
.settings-subtabs {
    gap: 0.35rem;
    border-bottom: 1px solid var(--fds-border, #E2E8F0);
    padding-bottom: 0.75rem;
}

.settings-tabs .nav-link,
.settings-subtabs .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    border-radius: 999px;
    padding: 0.5rem 0.95rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--fds-muted, #64748B);
    background: transparent;
    border: 1px solid transparent;
    transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.settings-tabs .nav-link:hover,
.settings-subtabs .nav-link:hover {
    color: var(--fds-primary, #2563EB);
    background: rgba(37, 99, 235, 0.06);
}

.settings-tabs .nav-link.active,
.settings-subtabs .nav-link.active {
    color: #fff;
    background: linear-gradient(135deg, var(--fds-primary, #2563EB), #1D4ED8);
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.22);
}

.settings-subtabs .nav-link {
    font-size: 0.82rem;
    padding: 0.42rem 0.8rem;
}

.settings-test-mail {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px dashed var(--fds-border, #E2E8F0);
}

.settings-placeholder-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.settings-placeholder-list li {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fds-primary, #2563EB);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.settings-placeholders {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.settings-placeholder {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--fds-primary, #2563EB);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.settings-template-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .settings-template-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.billing-shell .billing-stat-card,
.billing-plan-card {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 14px;
    background: #fff;
}

.billing-shell {
    display: grid;
    gap: 1rem;
}

.billing-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 1.25rem 1.35rem;
}

.billing-kicker {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--fds-muted, #64748B);
    margin-bottom: 0.35rem;
}

.billing-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.92rem;
    white-space: nowrap;
}

.billing-hero-badge.tone-success {
    color: #166534;
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
}

.billing-hero-badge.tone-info {
    color: #1d4ed8;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
}

.billing-hero-badge.tone-warning {
    color: #b45309;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.billing-hero-badge.tone-danger {
    color: #b91c1c;
    background: #fef2f2;
    border: 1px solid #fecaca;
}

.billing-alert {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
}

.billing-alert i {
    margin-top: 0.15rem;
}

.billing-current-grid {
    display: grid;
    gap: 1rem;
    margin-top: 1.25rem;
}

@media (min-width: 992px) {
    .billing-current-grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
        align-items: start;
    }
}

.billing-current-aside .billing-aside-box {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 12px;
    padding: 1rem;
    background: #f8fafc;
}

.billing-plan-badge {
    align-self: flex-start;
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fds-primary, #2563EB);
    background: rgba(37, 99, 235, 0.08);
    border: 1px solid rgba(37, 99, 235, 0.16);
    border-radius: 999px;
    padding: 0.2rem 0.55rem;
}

.billing-plan-savings {
    font-size: 0.82rem;
    font-weight: 700;
    color: #15803d;
}

.billing-plan-equiv {
    font-size: 0.85rem;
    color: var(--fds-muted, #64748B);
}

.billing-footnote {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-top: 1.25rem;
    padding: 1rem 1.1rem;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--fds-border, #E2E8F0);
}

.billing-footnote i {
    font-size: 1.25rem;
    color: var(--fds-primary, #2563EB);
    margin-top: 0.1rem;
}

.invoice-filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.invoice-filter-tab {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    border: 1px solid var(--fds-border, #E2E8F0);
    color: #334155;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
}

.invoice-filter-tab.is-active {
    background: rgba(37, 99, 235, 0.08);
    border-color: rgba(37, 99, 235, 0.25);
    color: var(--fds-primary, #2563EB);
}

.invoice-pay-head .invoice-pay-status {
    font-size: 0.85rem;
    padding: 0.55rem 0.9rem;
}

.invoice-pay-metric {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 12px;
    padding: 0.9rem 1rem;
    background: #f8fafc;
}

.invoice-pay-metric span {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--fds-muted, #64748B);
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.invoice-method-grid {
    display: grid;
    gap: 1rem;
}

@media (min-width: 992px) {
    .invoice-method-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.invoice-method-card {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 14px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    background: #fff;
    transition: box-shadow 160ms ease, border-color 160ms ease;
}

.invoice-method-card.is-active {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.invoice-method-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(37, 99, 235, 0.08);
    color: var(--fds-primary, #2563EB);
    font-size: 1.2rem;
}

.invoice-pix-layout {
    display: grid;
    gap: 1rem;
    align-items: start;
}

@media (min-width: 768px) {
    .invoice-pix-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

.invoice-pix-qr {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 12px;
    padding: 0.75rem;
    background: #fff;
}

.invoice-pix-qr img {
    width: 100%;
    height: auto;
    display: block;
}

.invoice-copy-box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.5rem;
}

.invoice-card-frame-wrap {
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 14px;
    overflow: hidden;
    background: #fff;
    min-height: 620px;
}

.invoice-card-frame {
    width: 100%;
    min-height: 620px;
    border: 0;
}

.invoice-row-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    justify-content: flex-end;
    align-items: center;
}

.invoice-trial-days {
    width: 4.25rem;
}

.invoice-master-panel {
    border: 1px solid rgba(30, 47, 143, 0.12);
    background: linear-gradient(180deg, rgba(30, 47, 143, 0.03), transparent);
}

.invoice-master-detail span {
    display: block;
    font-size: 0.78rem;
    color: var(--fds-muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.invoice-master-detail strong {
    display: block;
}

.invoice-master-actions {
    padding-top: 0.5rem;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.invoice-master-settle-form .form-control,
.invoice-master-trial-form .form-control {
    min-width: 180px;
}

.billing-stat-card {
    padding: 1rem 1.1rem;
    min-height: 88px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.25rem;
}

.billing-stat-label {
    font-size: 0.78rem;
    color: var(--fds-muted, #64748B);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 700;
}

.billing-usage-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--fds-border, #E2E8F0);
    border-radius: 12px;
    background: #fff;
}

.billing-plan-card {
    height: 100%;
    padding: 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    transition: box-shadow 160ms ease, transform 160ms ease;
}

.billing-plan-card:hover {
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
    transform: translateY(-2px);
}

.billing-plan-card.is-current {
    border-color: rgba(37, 99, 235, 0.45);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.billing-plan-price {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--fds-primary, #2563EB);
    line-height: 1.1;
}

.billing-plan-price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--fds-muted, #64748B);
}

.billing-plan-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.45rem;
    flex: 1;
}

.billing-plan-features li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.92rem;
    color: #334155;
}
