:root {
    --bg: #050c0a;
    --bg-soft: #081411;
    --panel: rgba(10, 24, 20, 0.78);
    --panel-solid: #0b1915;
    --panel-soft: rgba(16, 30, 25, 0.72);
    --border: rgba(236, 202, 112, 0.18);
    --border-strong: rgba(236, 202, 112, 0.34);
    --text: #eef3ef;
    --muted: #9ca9a2;
    --accent: #e6be59;
    --accent-2: #ffdc84;
    --success: #36d18f;
    --danger: #ff6f7f;
    --warning: #ffb24d;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --radius: 28px;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
    margin: 0;
    font-family: 'Oxanium', sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(230, 190, 89, 0.13), transparent 22%),
        radial-gradient(circle at bottom left, rgba(25, 163, 122, 0.1), transparent 18%),
        linear-gradient(180deg, #030806 0%, #07110e 46%, #040807 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: url('../img/bg-panel.png') center/cover no-repeat;
    opacity: .06;
    pointer-events: none;
    z-index: -2;
}

.public-shell-body {
    min-height: 100vh;
}

img { max-width: 100%; }
a { text-decoration: none; }
.form-control, .form-select {
    min-height: 54px;
    border-radius: 18px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.05);
    color: var(--text);
    box-shadow: none;
}
.form-control:focus, .form-select:focus {
    color: var(--text);
    background: rgba(255,255,255,0.08);
    border-color: rgba(230, 190, 89, 0.46);
    box-shadow: 0 0 0 .25rem rgba(230, 190, 89, 0.12);
}
.form-control::placeholder { color: rgba(255,255,255,0.38); }
.form-label {
    color: #dce6df;
    font-size: .9rem;
    margin-bottom: .55rem;
}

.auth-page-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, 1fr) minmax(520px, 1.1fr);
}
.auth-page-register {
    grid-template-columns: minmax(360px, .9fr) minmax(660px, 1.25fr);
}
.auth-side-brand {
    position: relative;
    padding: 54px;
    overflow: hidden;
    background: linear-gradient(145deg, rgba(7, 15, 13, .96), rgba(8, 18, 15, .82));
    border-right: 1px solid rgba(255,255,255,0.06);
}
.auth-side-brand::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url('../img/bg-auth.png') center/cover no-repeat;
    opacity: .22;
}
.auth-brand-inner {
    position: relative;
    z-index: 1;
    max-width: 520px;
    margin: auto 0;
}
.auth-brand-logo { max-width: 240px; margin-bottom: 2rem; }
.eyebrow-text,
.eyebrow-chip {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    color: var(--accent-2);
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .76rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.eyebrow-chip {
    border: 1px solid rgba(230, 190, 89, .25);
    background: rgba(230, 190, 89, .08);
    padding: .5rem .85rem;
    border-radius: 999px;
}
.auth-side-brand h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.04;
    margin-bottom: 1rem;
}
.auth-side-brand p {
    color: #c6d0ca;
    font-size: 1.02rem;
    line-height: 1.8;
    margin-bottom: 1.7rem;
}
.auth-feature-list {
    display: grid;
    gap: .9rem;
}
.auth-feature-list div,
.sponsor-badge-card {
    padding: 1rem 1.1rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    backdrop-filter: blur(10px);
}
.auth-feature-list i { color: var(--accent); margin-right: .65rem; }
.sponsor-badge-card small,
.sponsor-badge-card span { display:block; color: var(--muted); }
.sponsor-badge-card strong { font-size: 1.15rem; color: var(--accent-2); }

.auth-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 44px 26px;
}
.auth-form-panel-wide { padding-inline: 32px; }
.glass-card {
    position: relative;
    background: linear-gradient(180deg, rgba(10, 22, 19, 0.86), rgba(7, 14, 12, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}
.auth-card {
    width: 100%;
    max-width: 560px;
    padding: 2rem;
}
.auth-form-panel-wide .auth-card { max-width: 820px; }
.auth-mark { width: 78px; }
.auth-title {
    font-size: clamp(2rem, 5vw, 2.7rem);
    font-weight: 800;
    margin-bottom: .35rem;
}
.auth-copy { color: var(--muted); }
.check-glass {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    padding: 1rem 1.1rem;
    border-radius: 18px;
    cursor: pointer;
}
.check-glass input { margin-top: .2rem; }
.input-glow {
    position: relative;
}
.input-glow i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,0.45);
}
.input-glow .form-control { padding-left: 2.9rem; }

.btn {
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: .02em;
}
.btn-brand {
    color: #111;
    border: 0;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 14px 32px rgba(230, 190, 89, .24);
}
.btn-brand:hover { color: #111; filter: brightness(1.03); }
.btn-outline-brand {
    color: var(--accent-2);
    border: 1px solid rgba(230, 190, 89, .34);
    background: rgba(230, 190, 89, .05);
}
.btn-outline-brand:hover {
    color: #111;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}
.border-gold { border-color: rgba(230,190,89,.38)!important; }

.auth-shell-body .app-wrapper {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
}
.sidebar-glass {
    position: sticky;
    top: 0;
    height: 100vh;
    background: linear-gradient(180deg, rgba(9, 18, 15, 0.95), rgba(6, 13, 11, 0.9));
    border-right: 1px solid rgba(255,255,255,.05);
    padding: 1.4rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    z-index: 1000;
}
.sidebar-logo { max-width: 180px; }
.sidebar-user-card,
.sidebar-footer-card {
    padding: 1rem 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
}
.sidebar-user-card {
    display:flex; align-items:center; gap: .9rem;
}
.sidebar-user-card strong, .sidebar-footer-card strong { display:block; }
.sidebar-user-card span, .sidebar-footer-card span { color: var(--muted); font-size:.85rem; }
.sidebar-user-icon {
    width: 48px; height: 48px; border-radius: 16px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(230,190,89,.12); color: var(--accent);
}
.sidebar-nav { display:grid; gap:.45rem; }
.sidebar-link {
    display:flex; align-items:center; gap:.85rem;
    padding: .95rem 1rem;
    border-radius: 18px;
    color: #dfe8e2;
    transition: .25s ease;
}
.sidebar-link:hover, .sidebar-link.active {
    color: #111;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
    box-shadow: 0 16px 40px rgba(230,190,89,.18);
}
.sidebar-link i { font-size: 1.1rem; }

.main-panel {
    min-width: 0;
    padding: 1.15rem;
}
.topbar-glass {
    display:flex; align-items:center; justify-content:space-between; gap: 1rem;
    padding: 1rem 1.1rem;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 26px;
    background: rgba(8,16,14,.72);
    backdrop-filter: blur(18px);
    position: sticky;
    top: 1rem;
    z-index: 999;
}
.topbar-title { font-weight: 800; font-size: clamp(1.2rem, 2vw, 1.8rem); }
.topbar-subtitle { color: var(--muted); font-size: .86rem; }
.topbar-actions { display:flex; align-items:center; gap: .85rem; }
.referral-chip, .profile-trigger, .btn-toggle-sidebar {
    background: rgba(255,255,255,.05);
    color: var(--text);
    border: 1px solid rgba(255,255,255,.08);
}
.referral-chip { display:flex; align-items:center; gap:.55rem; padding: .8rem 1rem; }
.profile-trigger { width: 54px; height: 54px; border-radius: 18px; }
.profile-avatar { font-size: 1.3rem; color: var(--accent); }
.profile-menu {
    min-width: 250px;
    background: rgba(10,18,16,.98);
    border-radius: 20px;
    padding: .6rem;
}
.profile-menu .dropdown-header small { display:block; color: var(--muted); }
.profile-menu .dropdown-item {
    color: #edf2ef;
    border-radius: 14px;
    padding: .8rem .9rem;
}
.profile-menu .dropdown-item:hover { background: rgba(255,255,255,.07); }
.profile-menu .dropdown-item i { margin-right: .65rem; }

.content-area > .row,
.content-area > section,
.content-area > .glass-card { margin-bottom: 1.2rem; }
.hero-dashboard-card { padding: 2rem; }
.hero-dashboard-card h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
    font-weight: 800;
    line-height: 1.1;
    margin: .75rem 0 1rem;
}
.hero-dashboard-card h2 span { color: var(--accent-2); }
.hero-dashboard-card p { color: #cad5ce; max-width: 680px; line-height: 1.8; }
.hero-inline-stats {
    display:flex; flex-wrap:wrap; gap: .95rem; margin-top: 1.5rem;
}
.hero-inline-stats > div {
    min-width: 160px;
    padding: .95rem 1rem;
    border-radius: 18px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
}
.hero-inline-stats strong { display:block; font-size: 1.35rem; color: var(--accent-2); }
.hero-inline-stats span { font-size: .82rem; color: var(--muted); }
.dashboard-hero-image, .shop-side-image { filter: drop-shadow(0 30px 40px rgba(0,0,0,.45)); }
.stat-highlight-card, .mini-stat-card, .glass-card {
    padding: 1.3rem;
}
.stat-highlight-head { display:flex; justify-content:space-between; align-items:center; margin-bottom: 1rem; }
.status-dot { width: 12px; height:12px; border-radius:50%; display:inline-block; background:#667; }
.status-dot.active { background: var(--success); box-shadow: 0 0 0 8px rgba(54,209,143,.12); }
.status-dot.inactive { background: var(--danger); box-shadow: 0 0 0 8px rgba(255,111,127,.12); }
.soft-data-list { display:grid; gap: .95rem; }
.soft-data-list li { display:flex; justify-content:space-between; gap: 1rem; color: var(--muted); }
.soft-data-list strong { color: var(--text); text-align:right; }
.mini-stat-card {
    display:flex; flex-direction:column; gap:.6rem;
    min-height: 166px;
}
.stat-icon {
    width: 50px; height:50px; display:inline-flex; align-items:center; justify-content:center;
    border-radius: 16px; font-size: 1.25rem; color: var(--accent);
    background: rgba(230,190,89,.1);
}
.mini-stat-card span { color: var(--muted); }
.mini-stat-card strong { font-size: clamp(1.45rem, 2vw, 2rem); }

.section-card-head {
    display:flex; justify-content:space-between; align-items:flex-start; gap:1rem;
    margin-bottom: 1rem;
}
.section-card-head h3 { margin: .55rem 0 0; font-size: 1.35rem; font-weight: 800; }
.table-responsive { border-radius: 22px; overflow:hidden; }
.soft-table-wrap { background: rgba(255,255,255,.02); border: 1px solid rgba(255,255,255,.05); }
.soft-table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--text);
    --bs-table-border-color: rgba(255,255,255,.06);
    margin-bottom: 0;
}
.soft-table thead th {
    color: #d5ddd7;
    font-size: .84rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    padding: 1rem;
}
.soft-table tbody td {
    padding: 1rem;
    vertical-align: middle;
}
.status-badge {
    display:inline-flex; align-items:center; justify-content:center;
    padding: .42rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 700;
    text-transform: uppercase; letter-spacing: .04em;
    background: rgba(255,255,255,.08); color: #e6edf0;
}
.status-paid, .status-activated, .status-finished, .status-released { background: rgba(54,209,143,.14); color: #87f0be; }
.status-retained, .status-partial_paid, .status-partial_released, .status-detected, .status-processing { background: rgba(255,178,77,.14); color: #ffcf8e; }
.status-company_kept, .status-expired, .status-failed, .status-cancelled { background: rgba(255,111,127,.12); color: #ff97a4; }
.status-waiting_payment, .status-pending, .status-created, .status-payment_detected { background: rgba(154,169,162,.12); color: #c9d4cd; }

.package-card {
    height: 100%;
    padding: 1.2rem;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(10, 20, 17, .9), rgba(7, 14, 11, .86));
    border: 1px solid rgba(230,190,89,.12);
    transition: .28s ease;
}
.package-card:hover { transform: translateY(-6px); border-color: rgba(230,190,89,.28); }
.package-card-top strong { font-size: 2rem; color: var(--accent-2); }
.package-card-top h4 { font-size: 1.55rem; font-weight: 800; margin: .5rem 0; }
.package-badge {
    display:inline-flex; padding:.38rem .75rem; border-radius:999px;
    background: rgba(255,255,255,.06); color: var(--accent-2); font-size:.72rem;
}
.package-copy { color: var(--muted); line-height: 1.7; min-height: 84px; }
.qty-control {
    display:flex; align-items:center; justify-content:center; gap: .65rem; margin: 1.1rem 0;
}
.qty-btn, .qty-input {
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 16px;
    height: 52px;
}
.qty-btn { width:52px; }
.qty-input { width:72px; text-align:center; }
.package-summary { display:grid; gap:.7rem; margin-bottom: 1rem; }
.package-summary div { display:flex; align-items:center; justify-content:space-between; gap:1rem; color: var(--muted); }
.package-summary strong { color: var(--text); }
.package-summary .total { padding-top:.8rem; border-top:1px solid rgba(255,255,255,.06); }
.package-summary .total strong { color: var(--accent-2); }
.sticky-side-panel { position: sticky; top: 6.8rem; }
.invoice-modal-shell {
    border-radius: 30px;
    border: 1px solid rgba(255,255,255,.08);
    background: linear-gradient(180deg, rgba(9,17,15,.98), rgba(7,13,11,.96));
}
.invoice-qr-box {
    min-height: 260px; border-radius: 24px;
    display:grid; place-items:center;
    border: 1px dashed rgba(230,190,89,.3);
    background: rgba(255,255,255,.03);
    padding: 1rem;
}
.invoice-detail-box, .profile-referral-box, .status-live-panel {
    padding: 1rem;
    border-radius: 20px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.06);
}
.status-live-panel { color: var(--accent-2); font-weight: 700; }

.team-legend { display:flex; gap: 1rem; flex-wrap:wrap; color: var(--muted); }
.team-legend .dot { width:12px; height:12px; border-radius:50%; display:inline-block; margin-right:.35rem; }
.team-legend .dot.active { background: var(--success); }
.team-legend .dot.inactive { background: #65727a; }
.orgchart-shell {
    min-height: 680px;
    border-radius: 26px;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(230,190,89,.06), transparent 20%), rgba(255,255,255,.02);
}
.orgchart-shell .boc-search { display:none; }
.pills-glass .nav-link {
    color: var(--muted);
    border-radius: 999px;
    padding: .85rem 1.2rem;
    border: 1px solid rgba(255,255,255,.05);
}
.pills-glass .nav-link.active {
    color: #111;
    background: linear-gradient(135deg, var(--accent-2), var(--accent));
}

.eq-toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 2000;
    min-width: 260px;
    max-width: 360px;
    padding: 1rem 1.1rem;
    border-radius: 18px;
    transform: translateY(14px);
    opacity: 0;
    transition: .22s ease;
    box-shadow: 0 30px 70px rgba(0,0,0,.45);
    color: #fff;
}
.eq-toast.is-visible { transform: translateY(0); opacity: 1; }
.eq-toast-success { background: linear-gradient(135deg, #198f61, #2cb975); }
.eq-toast-danger { background: linear-gradient(135deg, #aa3347, #f05b73); }

.reveal-card { animation: cardIn .55s ease both; }
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1399px) {
    .auth-shell-body .app-wrapper { grid-template-columns: 280px minmax(0, 1fr); }
}
@media (max-width: 1199px) {
    .auth-page-shell, .auth-page-register { grid-template-columns: 1fr; }
    .auth-card { max-width: 760px; }
    .auth-side-brand { min-height: 320px; }
    .auth-shell-body .app-wrapper { grid-template-columns: 1fr; }
    .sidebar-glass {
        position: fixed;
        left: 0;
        top: 0;
        width: min(86vw, 320px);
        transform: translateX(-102%);
        transition: .28s ease;
        box-shadow: var(--shadow);
    }
    .sidebar-glass.is-open { transform: translateX(0); }
    .topbar-glass { top: .65rem; }
    .main-panel { padding-top: .8rem; }
}
@media (max-width: 991px) {
    .hero-dashboard-card { padding: 1.4rem; }
    .topbar-glass { flex-direction: column; align-items: stretch; }
    .topbar-actions { width: 100%; justify-content: space-between; }
    .section-card-head { flex-direction: column; }
    .sticky-side-panel { position: static; }
}
@media (max-width: 767px) {
    .auth-form-panel, .auth-form-panel-wide { padding: 24px 14px; }
    .auth-card { padding: 1.3rem; border-radius: 24px; }
    .hero-inline-stats > div { min-width: calc(50% - .5rem); }
    .referral-chip span { display: none; }
    .topbar-actions { gap: .55rem; }
    .mini-stat-card { min-height: auto; }
}
@media (max-width: 575px) {
    .hero-inline-stats > div { min-width: 100%; }
    .topbar-title { font-size: 1.25rem; }
    .soft-table thead { display:none; }
    .soft-table, .soft-table tbody, .soft-table tr, .soft-table td { display:block; width:100%; }
    .soft-table tr { padding: .9rem 1rem; border-bottom: 1px solid rgba(255,255,255,.06); }
    .soft-table td { padding: .25rem 0; border:0; }
    .soft-table td::before {
        content: attr(data-label);
        display:block;
        font-size:.72rem;
        color: var(--muted);
        text-transform: uppercase;
        letter-spacing: .05em;
    }
}

.auth-link-soft{
  color:#d7b867;
  text-decoration:none;
  font-weight:600;
}
.auth-link-soft:hover{ color:#f2d889; }

.register-wizard-steps{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:10px;
}
.wizard-step{
  padding:12px 14px;
  border-radius:14px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.06);
  color:#9db0bf;
  font-size:.92rem;
  text-align:center;
}
.wizard-step.is-active{
  background:linear-gradient(180deg,rgba(228,193,95,.18),rgba(228,193,95,.08));
  border-color:rgba(228,193,95,.45);
  color:#fff2c0;
}