/* ============================================================
    ORBETEROVERFLOW  -  Dark Navy Blue & Dark Gold Theme
    ============================================================ */

:root {
    --navy:       #0b1929;
    --navy-light: #122240;
    --navy-mid:   #1a2f4e;
    --gold:       #b8860b;
    --gold-light: #d4a017;
    --gold-dark:  #8b6914;
    --text:       #e0e6ed;
    --text-muted: #8899aa;
    --danger:     #e74c3c;
    --success:    #27ae60;
    --info:       #2980b9;
}

/* ── Global ─────────────────────────────────────────────── */
body {
    background-color: var(--navy);
    color: var(--text);
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

a { color: var(--gold-light); }
a:hover { color: var(--gold); }

::selection {
    background: var(--gold);
    color: var(--navy);
}

/* ── Navbar ─────────────────────────────────────────────── */
.navbar {
    background-color: var(--navy-light) !important;
    border-bottom: 2px solid var(--gold-dark);
    padding: .75rem 1.5rem;
}
.navbar-brand {
    color: var(--gold-light) !important;
    font-weight: 700;
    font-size: 1.4rem;
    letter-spacing: .5px;
}
.navbar-brand i { margin-right: .4rem; }
.nav-link { color: var(--text) !important; transition: color .2s; }
.nav-link:hover { color: var(--gold-light) !important; }
.nav-link.active { color: var(--gold) !important; font-weight: 600; }

/* ── Cards ──────────────────────────────────────────────── */
.card {
    background-color: var(--navy-light);
    border: 1px solid var(--navy-mid);
    border-radius: .75rem;
}
.card-header {
    background-color: var(--navy-mid);
    border-bottom: 1px solid var(--gold-dark);
    color: var(--gold-light);
    font-weight: 600;
}

/* ── Forms ──────────────────────────────────────────────── */
.form-control, .form-select {
    background-color: var(--navy-mid);
    border: 1px solid #2c3e5a;
    color: var(--text);
}
.form-control:focus, .form-select:focus {
    background-color: var(--navy-mid);
    border-color: var(--gold);
    color: var(--text);
    box-shadow: 0 0 0 .2rem rgba(184, 134, 11, .25);
}
.form-control::placeholder { color: var(--text-muted); }
.form-label { color: var(--gold-light); font-weight: 500; }

/* ── Buttons ────────────────────────────────────────────── */
.btn-gold {
    background-color: var(--gold);
    border-color: var(--gold);
    color: var(--navy);
    font-weight: 600;
}
.btn-gold:hover {
    background-color: var(--gold-light);
    border-color: var(--gold-light);
    color: var(--navy);
}
.btn-outline-gold {
    border-color: var(--gold);
    color: var(--gold-light);
}
.btn-outline-gold:hover,
.btn-check:checked + .btn-outline-gold {
    background-color: var(--gold);
    color: var(--navy);
}

/* ── Tables ─────────────────────────────────────────────── */
.table {
    color: var(--text);
    --bs-table-bg: transparent;
}
.table thead th {
    background-color: var(--navy-mid);
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold-dark);
    font-weight: 600;
}
.table tbody tr {
    border-bottom: 1px solid #1e3250;
    transition: background-color .15s;
}
.table tbody tr:hover {
    background-color: rgba(184, 134, 11, .06);
}
.table td { vertical-align: middle; }

/* ── Badges ─────────────────────────────────────────────── */
.badge-gold {
    background-color: var(--gold-dark);
    color: #fff;
}
.bg-gold {
    background-color: var(--gold-dark) !important;
}
.badge-status {
    font-size: .78rem;
    padding: .35em .65em;
    border-radius: .5rem;
}

/* ── Auth pages ─────────────────────────────────────────── */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.auth-card {
    width: 100%;
    max-width: 440px;
}
.auth-card .card {
    border-top: 3px solid var(--gold);
}
.auth-logo {
    font-size: 2.5rem;
    color: var(--gold);
}

.auth-links-bar {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.auth-links-bar a {
    color: var(--text-muted);
    text-decoration: none;
}

.auth-links-bar a:hover {
    color: var(--gold-light);
}

/* ── Alerts ─────────────────────────────────────────────── */
.alert { border-radius: .5rem; }

.license-chip {
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: .88rem;
    margin-right: .5rem;
    padding: .35rem .8rem !important;
}

.license-chip-warning {
    color: #f4d35e !important;
    border-color: rgba(244, 211, 94, .35);
    background: rgba(244, 211, 94, .08);
}

.license-chip-success {
    color: #7adf9d !important;
    border-color: rgba(122, 223, 157, .35);
    background: rgba(122, 223, 157, .08);
}

.license-chip-danger {
    color: #ff8f84 !important;
    border-color: rgba(255, 143, 132, .35);
    background: rgba(255, 143, 132, .08);
}

.license-chip-reminder {
    color: var(--gold-light) !important;
    border-color: rgba(212, 160, 23, .45);
    background: rgba(212, 160, 23, .12);
}

.navbar .navbar-nav {
    align-items: center;
}

@media (min-width: 992px) {
    .navbar-nav.me-auto {
        flex-wrap: wrap;
        row-gap: .15rem;
    }

    .navbar-nav.me-auto .nav-link,
    .navbar-nav:not(.me-auto) .nav-link {
        padding-left: .55rem;
        padding-right: .55rem;
        font-size: .95rem;
    }
}

/* ── Stats cards ────────────────────────────────────────── */
.stat-card {
    border-left: 4px solid var(--gold);
    background-color: var(--navy-light);
    border-radius: .5rem;
    padding: 1.25rem 1.5rem;
}
.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--gold-light);
}
.stat-card .stat-label {
    color: var(--text-muted);
    font-size: .85rem;
    text-transform: uppercase;
    letter-spacing: .5px;
}

/* ── Scrollbar ──────────────────────────────────────────── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--navy); }
::-webkit-scrollbar-thumb {
    background: var(--navy-mid);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }

/* ── Modal overrides ────────────────────────────────────── */
.modal-content {
    background-color: var(--navy-light);
    border: 1px solid var(--navy-mid);
    color: var(--text);
}
.modal-header {
    border-bottom-color: var(--navy-mid);
}
.modal-footer {
    border-top-color: var(--navy-mid);
}
.btn-close {
    filter: invert(1);
}

/* ── Public site ─────────────────────────────────────────── */
.public-page {
    overflow-x: hidden;
    background:
        radial-gradient(circle at top right, rgba(212, 160, 23, 0.18), transparent 28%),
        radial-gradient(circle at bottom left, rgba(41, 128, 185, 0.14), transparent 22%),
        var(--navy);
}

.public-nav {
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(12px);
    background: rgba(11, 25, 41, 0.9);
    border-bottom: 1px solid rgba(212, 160, 23, 0.18);
}

.public-nav .nav-link {
    color: var(--text-muted) !important;
}

.public-nav .nav-link:hover,
.public-nav .nav-link.active {
    color: var(--gold-light) !important;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 5rem 0 3rem;
}

.hero-section > .container {
    position: relative;
    z-index: 2;
}

.hero-motion {
    position: absolute;
    border-radius: 999px;
    filter: blur(14px);
    opacity: .48;
    pointer-events: none;
    z-index: 1;
}

.hero-motion-one {
    top: 3rem;
    right: -4rem;
    width: 16rem;
    height: 16rem;
    background: radial-gradient(circle, rgba(212, 160, 23, 0.34), rgba(212, 160, 23, 0.04) 70%);
    animation: heroFloatOne 14s ease-in-out infinite;
}

.hero-motion-two {
    top: 10rem;
    left: -5rem;
    width: 14rem;
    height: 14rem;
    background: radial-gradient(circle, rgba(65, 153, 225, 0.26), rgba(65, 153, 225, 0.03) 72%);
    animation: heroFloatTwo 18s ease-in-out infinite;
}

.hero-motion-three {
    bottom: -3rem;
    right: 22%;
    width: 11rem;
    height: 11rem;
    background: radial-gradient(circle, rgba(122, 223, 157, 0.18), rgba(122, 223, 157, 0.02) 74%);
    animation: heroFloatThree 16s ease-in-out infinite;
}

.hero-orb {
    border: 1px solid rgba(212, 160, 23, 0.25);
    background: linear-gradient(145deg, rgba(18, 34, 64, 0.96), rgba(11, 25, 41, 0.92));
    border-radius: 1.25rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
}

.section-kicker {
    color: var(--gold-light);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    font-weight: 700;
}

.feature-card,
.pricing-card,
.cta-panel {
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 34, 64, 0.95), rgba(11, 25, 41, 0.95));
    border: 1px solid rgba(212, 160, 23, 0.14);
    border-radius: 1rem;
    padding: clamp(1rem, 2.5vw, 1.5rem);
}

.roadmap-card {
    height: 100%;
    background: linear-gradient(180deg, rgba(18, 34, 64, 0.97), rgba(11, 25, 41, 0.96));
    border: 1px solid rgba(212, 160, 23, 0.18);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

.roadmap-list {
    display: grid;
    gap: .85rem;
}

.roadmap-item {
    display: flex;
    gap: .75rem;
    align-items: flex-start;
    padding: .85rem 1rem;
    border-radius: .85rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--text);
}

.roadmap-item.is-done {
    border-color: rgba(122, 223, 157, 0.22);
    background: rgba(122, 223, 157, 0.08);
}

.roadmap-check {
    margin-top: .15rem;
    min-width: 1.15rem;
    min-height: 1.15rem;
    border-color: rgba(212, 160, 23, 0.45);
    background-color: rgba(11, 25, 41, 0.92);
    opacity: 1;
}

.roadmap-check:checked {
    background-color: var(--success);
    border-color: var(--success);
}

.roadmap-check:disabled {
    opacity: 1;
}

.sortable-list {
    display: grid;
    gap: .5rem;
}

.sortable-chip,
.sortable-row {
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease;
}

.sortable-chip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    flex-wrap: wrap;
}

.sortable-chip.is-dragging,
.sortable-row.is-dragging {
    opacity: .55;
    transform: scale(.99);
}

.drag-handle {
    cursor: grab;
}

.drag-handle:active {
    cursor: grabbing;
}

.pricing-switch {
    display: inline-flex;
    gap: .75rem;
    flex-wrap: wrap;
}

.pricing-switch .btn {
    min-width: 140px;
}

.feature-card i,
.pricing-card .plan-icon {
    color: var(--gold-light);
    font-size: 1.6rem;
}

.pricing-card.highlight {
    border-color: rgba(212, 160, 23, 0.45);
    box-shadow: 0 18px 45px rgba(212, 160, 23, 0.08);
}

.price-amount {
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--gold-light);
}

.hero-mini-grid .cta-panel {
    min-height: 100%;
}

@keyframes heroFloatOne {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(-18px, 20px, 0) scale(1.08); }
}

@keyframes heroFloatTwo {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(24px, -14px, 0) scale(.96); }
}

@keyframes heroFloatThree {
    0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
    50% { transform: translate3d(16px, -18px, 0) scale(1.05); }
}

.plan-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0 0;
}

.plan-list li {
    margin-bottom: 0.7rem;
    color: var(--text);
}

.plan-list li::before {
    content: '\2713';
    color: var(--gold-light);
    margin-right: 0.55rem;
}

.public-footer {
    border-top: 1px solid rgba(212, 160, 23, 0.14);
    color: var(--text-muted);
}

.admin-license-action-row {
    display: inline-flex;
    gap: .5rem;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
}

@media (max-width: 767px) {
    .hero-section {
        padding-top: 3.5rem;
        padding-bottom: 2.25rem;
    }

    .license-chip {
        margin-right: 0;
        margin-bottom: .4rem;
    }

    .pricing-switch {
        width: 100%;
    }

    .pricing-switch .btn,
    .admin-license-action-row,
    .admin-license-action-row .form-select,
    .admin-license-action-row .btn {
        width: 100%;
    }

    .price-amount {
        font-size: 2rem;
    }

    .hero-motion {
        opacity: .28;
        filter: blur(18px);
    }

    .hero-section .btn,
    .cta-panel .btn {
        width: 100%;
    }
}

.account-shell {
    display: grid;
    gap: 1.25rem;
}

.account-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 1.25rem;
}

.account-panel {
    background: linear-gradient(180deg, rgba(18, 34, 64, 0.96), rgba(11, 25, 41, 0.94));
    border: 1px solid rgba(212, 160, 23, 0.16);
    border-radius: 1rem;
    padding: 1.5rem;
}

.account-avatar {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, .16);
    color: var(--gold-light);
    font-size: 2rem;
    font-weight: 700;
}

.account-meta-label {
    color: var(--text-muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.account-stat {
    background: rgba(255,255,255,.02);
    border: 1px solid rgba(212,160,23,.12);
    border-radius: .85rem;
    padding: 1rem;
}

@media (max-width: 991px) {
    .account-grid {
        grid-template-columns: 1fr;
    }
}

.help-hero,
.help-section-card,
.help-guide-card,
.help-role-card,
.help-highlight-card,
.manual-sheet,
.manual-panel,
.manual-role-box {
    background: linear-gradient(180deg, rgba(18, 34, 64, 0.96), rgba(11, 25, 41, 0.94));
    border: 1px solid rgba(212, 160, 23, 0.16);
    border-radius: 1rem;
}

.help-hero,
.help-section-card,
.manual-sheet,
.manual-panel,
.help-role-card,
.help-highlight-card,
.manual-role-box {
    padding: 1.5rem;
}

.help-guide-card {
    padding: 1.25rem;
    color: var(--text);
    transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.help-guide-card:hover {
    transform: translateY(-2px);
    border-color: rgba(212, 160, 23, 0.36);
    box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}

.help-role-card,
.help-highlight-card,
.help-subpanel,
.manual-role-box,
.help-visual-card,
.help-faq-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: .95rem;
    padding: 1rem;
}

.help-subpanel {
    height: 100%;
}

.help-panel-title {
    color: var(--gold-light);
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .08em;
    margin-bottom: .75rem;
    text-transform: uppercase;
}

.help-list,
.help-steps,
.manual-toc {
    margin: 0;
    padding-left: 1.2rem;
}

.help-list li,
.help-steps li,
.manual-toc li {
    margin-bottom: .55rem;
    color: var(--text);
}

.manual-shell {
    max-width: 1240px;
}

.manual-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    flex-wrap: wrap;
}

.manual-cover {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
}

.manual-section {
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid rgba(212, 160, 23, 0.14);
}

.manual-section:first-of-type {
    border-top: 0;
    padding-top: 0;
    margin-top: 0;
}

.manual-section-number {
    min-width: 2rem;
    min-height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 160, 23, 0.18);
    color: var(--gold-light);
    border-radius: 999px;
    font-weight: 700;
}

.manual-toc a {
    color: var(--gold-light);
    text-decoration: none;
}

.manual-toc a:hover {
    color: var(--gold);
}

.help-visual-image {
    width: 100%;
    height: auto;
    display: block;
    border-radius: .85rem;
    border: 1px solid rgba(212, 160, 23, 0.18);
    background: rgba(255,255,255,.02);
}

.help-faq-accordion .accordion-item {
    border: 1px solid rgba(212, 160, 23, 0.12);
    background: rgba(255,255,255,.02);
    overflow: hidden;
}

.help-faq-accordion .accordion-button {
    background: rgba(18, 34, 64, 0.92);
    color: var(--text);
    font-weight: 600;
}

.help-faq-accordion .accordion-button:not(.collapsed) {
    color: var(--gold-light);
    background: rgba(26, 47, 78, 0.95);
    box-shadow: none;
}

.help-faq-accordion .accordion-button:focus {
    box-shadow: 0 0 0 .2rem rgba(184, 134, 11, .18);
}

.help-faq-accordion .accordion-body {
    background: rgba(11, 25, 41, 0.72);
}

.help-faq-tags {
    display: flex;
    gap: .4rem;
    flex-wrap: wrap;
}

.help-faq-result {
    min-height: 1.5rem;
}

.dashboard-help-card {
    border-color: rgba(212, 160, 23, 0.22);
}

@media print {
    body.manual-page,
    body.manual-page * {
        background: #fff !important;
        color: #111 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }

    .print-hide,
    .navbar,
    .public-footer,
    .container-fluid.mt-3,
    .btn,
    .license-chip {
        display: none !important;
    }

    body.manual-page {
        font-size: 11pt;
    }

    .manual-shell,
    .manual-sheet,
    .manual-panel,
    .manual-role-box {
        max-width: none !important;
        border: 1px solid #ccc !important;
    }

    .manual-section,
    .manual-panel,
    .manual-role-box {
        page-break-inside: avoid;
    }

    .help-visual-image {
        max-height: 230px;
        object-fit: contain;
    }

    a,
    a:visited {
        text-decoration: none !important;
        color: #111 !important;
    }
}
