﻿/* ================= THEME ================= */
:root {
    --gold: #d4af37;
    --gold-soft: #f5df9c;
    --gold-glow: rgba(212,175,55,.85);
    --lava1: #2a1a00;
    --lava2: #4a2c00;
    --dark: #0b0b0b;
    --panel: #141414;
    --velvet: #6b0f1a;
    --text: #f7f6f2;
    --muted: #bdb59f;
}

/* ================= BODY ================= */
body {
    margin: 0;
    font-family: 'Inter',sans-serif;
    min-height: 100vh;
    background: radial-gradient(circle at 15% 10%, rgba(212,175,55,.25), transparent 40%), radial-gradient(circle at 80% 85%, rgba(139,90,0,.35), transparent 45%), linear-gradient(135deg,var(--lava1),var(--lava2));
    color: var(--text);
}

/* ================= SIDEBAR ================= */
.sidebar {
    width: 280px;
    height: 100vh;
    position: fixed;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,#2b1200,#070707);
    box-shadow: 10px 0 45px rgba(0,0,0,.95);
    transition: width .35s ease;
}
/* ===== SIDEBAR COLLAPSE ===== */


body.collapsed .sidebar {
    width: 90px;
}

/* main & topbar shift */
body.collapsed .topbar,
body.collapsed .main {
    margin-left: 90px;
}

/* hide text smoothly */
body.collapsed .brand-row h1,
body.collapsed .brand small,
body.collapsed .profile-info,
body.collapsed .submenu,
body.collapsed .sidebar-footer {
    display: none;
}

/* center logo */
body.collapsed .brand-row {
    justify-content: center;
}

/* profile shrink */
body.collapsed .profile {
    justify-content: center;
}

    body.collapsed .profile img {
        width: 42px;
    }

/* menu compact */
body.collapsed .menu-title {
    justify-content: center;
    padding: 16px 0;
    font-size: 18px;
}

/* disable submenu animation in collapsed */
body.collapsed .menu-item.active .submenu {
    max-height: 0;
}

/* toggle button */
.sidebar-toggle {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    background: linear-gradient(145deg,#1a1a1a,#000);
    box-shadow: 0 0 0 1px rgba(212,175,55,.4), 0 0 20px rgba(212,175,55,.6);
    transition: all .25s ease;
}

    .sidebar-toggle span {
        height: 3px;
        width: 22px;
        margin: 0 auto;
        background: linear-gradient(90deg,var(--gold),var(--gold-soft));
        border-radius: 3px;
        box-shadow: 0 0 10px var(--gold-glow);
    }

    .sidebar-toggle:hover {
        transform: scale(1.08);
        box-shadow: 0 0 0 1px rgba(212,175,55,.6), 0 0 30px rgba(212,175,55,.9);
    }


/* BRAND */
.brand {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid rgba(212,175,55,.25);
}

    .brand img {
        width: 56px;
        height: 56px;
        object-fit: contain;
        margin-bottom: 8px;
        filter: drop-shadow(0 0 18px var(--gold-glow));
    }

    .brand h1 {
        font-family: 'Cinzel',serif;
        font-size: 22px;
        margin: 0;
        color: var(--gold);
        text-shadow: 0 0 25px var(--gold-glow);
    }

    .brand small {
        display: block;
        font-size: 11px;
        letter-spacing: 1px;
        color: var(--muted);
    }

.brand-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

    /* ===== CLEAN, LARGE, FLAT LOGO ===== */
    .brand-row img {
        width: 120px; /* increased width */
        height: auto;
        max-height: 90px; /* increased height */
        object-fit: contain;
        background: none;
        padding: 0;
        border-radius: 0;
        filter: drop-shadow(0 0 14px rgba(212,175,55,.9)) drop-shadow(0 0 30px rgba(212,175,55,.55)) brightness(1.1) contrast(1.25);
        transition: transform .25s ease;
    }


    .brand-row h1 {
        font-family: 'Cinzel',serif;
        font-size: 22px;
        margin: 0;
        color: var(--gold);
        text-shadow: 0 0 25px var(--gold-glow);
    }

/* PROFILE */
.profile {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-bottom: 1px solid rgba(212,175,55,.2);
}

    .profile img {
        width: 48px;
        border-radius: 50%;
        border: 2px solid var(--gold);
        box-shadow: 0 0 20px var(--gold-glow);
    }

.profile-info h4 {
    margin: 0;
    font-size: 14px;
}

.profile-info span {
    font-size: 11px;
    color: var(--gold);
    font-weight: 700;
}

/* MENU */
.menu {
    flex: 1;
    padding-top: 10px;
    overflow-y: auto;
}

.menu-item {
    cursor: pointer;
}

.menu-title {
    padding: 14px 26px;
    color: var(--muted);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .menu-title:hover {
        background: linear-gradient(90deg,rgba(212,175,55,.25),transparent);
        color: var(--gold);
    }

.submenu {
    max-height: 0;
    overflow: hidden;
    transition: max-height .35s ease;
}

.menu-item.active .submenu {
    max-height: 300px;
}

.submenu a {
    display: block;
    padding: 10px 46px;
    font-size: 13px;
    color: #d7cfb5;
    text-decoration: none;
}

    .submenu a:hover {
        color: var(--gold);
    }

/* FOOTER */
.sidebar-footer {
    padding: 14px;
    text-align: center;
    font-size: 11px;
    border-top: 1px solid rgba(212,175,55,.25);
}

    .sidebar-footer span {
        color: var(--gold);
        font-weight: 700;
    }

/* ================= TOPBAR ================= */
.topbar {
    margin-left: 280px;
    height: 72px;
    background: linear-gradient(90deg,var(--velvet),#000);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 30px;
    box-shadow: 0 8px 30px rgba(0,0,0,.9);
}

.balance {
    padding: 8px 26px;
    background: radial-gradient(circle,var(--gold-soft),var(--gold));
    color: #000;
    font-weight: 800;
    border-radius: 30px;
    box-shadow: 0 0 35px var(--gold-glow), 0 0 70px rgba(212,175,55,.6);
}

/* ================= MAIN ================= */
.main {
    margin-left: 280px;
    padding: 30px;
}

/* ================= DASHBOARD ================= */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
    gap: 28px;
}

/* GLOW CARDS */
.card {
    position: relative;
    padding: 24px;
    border-radius: 20px;
    background: linear-gradient(145deg,#181818,#050505);
    box-shadow: 0 0 0 1px rgba(212,175,55,.35), 0 0 50px rgba(212,175,55,.4), inset 0 0 30px rgba(212,175,55,.12);
    overflow: hidden;
}

    .card::before {
        content: "";
        position: absolute;
        inset: -45%;
        background: conic-gradient( transparent, rgba(212,175,55,.55), transparent );
        animation: spin 9s linear infinite;
    }

    .card::after {
        content: "";
        position: absolute;
        inset: 2px;
        border-radius: 18px;
        background: linear-gradient(145deg,#151515,#040404);
    }

    .card * {
        position: relative;
        z-index: 1;
    }
/* ================= CHART SECTIONS ================= */
.chart-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(420px,1fr));
    gap: 28px;
}

.chart-card {
    position: relative;
    height: 320px;
    padding: 24px;
    border-radius: 22px;
    background: linear-gradient(145deg,#181818,#050505);
    box-shadow: 0 0 0 1px rgba(212,175,55,.35), 0 0 55px rgba(212,175,55,.45), inset 0 0 35px rgba(212,175,55,.12);
    overflow: hidden;
}

    .chart-card::before {
        content: "";
        position: absolute;
        inset: -45%;
        background: conic-gradient( transparent, rgba(212,175,55,.45), transparent );
        animation: spin 12s linear infinite;
    }

    .chart-card::after {
        content: "";
        position: absolute;
        inset: 3px;
        border-radius: 20px;
        background: linear-gradient(145deg,#151515,#040404);
    }

    .chart-card * {
        position: relative;
        z-index: 1;
    }

.chart-title {
    font-size: 14px;
    color: var(--gold);
    margin-bottom: 10px;
    letter-spacing: .6px;
}

/* Dummy chart visuals */
.fake-chart {
    height: 100%;
    border-radius: 14px;
    background: linear-gradient( to top, rgba(212,175,55,.35), rgba(212,175,55,.05) );
    box-shadow: inset 0 0 40px rgba(212,175,55,.25);
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.card-title {
    font-size: 13px;
    color: var(--muted);
}

.card-value {
    font-size: 32px;
    font-weight: 800;
    margin-top: 6px;
    color: var(--gold);
    text-shadow: 0 0 25px var(--gold-glow);
}

/* TABLE */
.table-card {
    grid-column: 1/-1;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th, td {
    padding: 14px;
    font-size: 13px;
}

th {
    color: var(--gold);
    border-bottom: 1px solid rgba(212,175,55,.3);
}

tr:hover {
    background: rgba(212,175,55,.08);
}
/* ================= WORKFLOW STEPPER ================= */
/* ================= HORIZONTAL WORKFLOW STEPPER ================= */
.workflow-stepper.horizontal {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 26px;
    margin-bottom: 32px;
    border-radius: 22px;
    background: linear-gradient(145deg,#1b1406,#050505);
    box-shadow: 0 0 0 1px rgba(212,175,55,.35), 0 0 45px rgba(212,175,55,.4);
}

.workflow-step {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
}

    /* Connector line */
    .workflow-step:not(:last-child)::after {
        content: "";
        position: absolute;
        top: 20px;
        right: -50%;
        width: 100%;
        height: 2px;
        background: linear-gradient(90deg,var(--gold),transparent);
        opacity: .4;
    }

/* Step circle */
.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    background: #000;
    color: var(--muted);
    box-shadow: 0 0 0 1px rgba(212,175,55,.3);
}

/* Title */
.step-title {
    font-size: 14px;
    color: var(--muted);
}

/* Active */
.workflow-step.active .step-circle {
    background: radial-gradient(circle,var(--gold-soft),var(--gold));
    color: #000;
    box-shadow: 0 0 30px var(--gold-glow);
}

.workflow-step.active .step-title {
    color: var(--gold);
}

/* Completed */
.workflow-step.completed .step-circle {
    background: linear-gradient(145deg,var(--gold),var(--gold-soft));
    color: #000;
    box-shadow: 0 0 25px var(--gold-glow);
}

/* Locked */
.workflow-step.locked {
    opacity: .35;
    pointer-events: none;
}
.workflow-stepper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 24px 0;
}

    .workflow-stepper .step {
        display: flex;
        flex-direction: column;
        align-items: center;
        min-width: 90px;
    }

    .workflow-stepper .circle {
        width: 42px;
        height: 42px;
        border-radius: 50%;
        border: 2px solid #d4af37;
        color: #d4af37;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 600;
    }

    .workflow-stepper .step.active .circle {
        background: #d4af37;
        color: #000;
    }

    .workflow-stepper .step.done .circle {
        background: #d4af37;
        color: #000;
    }

    .workflow-stepper .label {
        margin-top: 6px;
        font-size: 13px;
        color: #d4af37;
    }

    .workflow-stepper .line {
        width: 70px;
        height: 2px;
        background: rgba(212, 175, 55, 0.3);
    }

        .workflow-stepper .line.done {
            background: #d4af37;
        }

/* ================= WORKFLOW SECTIONS ================= */
.workflow-section {
    display: none;
    animation: fadeIn .35s ease;
}

    .workflow-section.active {
        display: block;
    }

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}
.package-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    padding: 0 24px;
}

.package-card {
    background: linear-gradient(145deg, #0c0c0c, #000);
    border: 1px solid rgba(212,175,55,0.35);
    border-radius: 16px;
    padding: 22px;
    cursor: pointer;
    transition: all .25s ease;
}

    .package-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 0 25px rgba(212,175,55,0.25);
    }

    .package-card.active {
        border-color: #d4af37;
        box-shadow: 0 0 35px rgba(212,175,55,0.4);
    }

.package-title {
    color: #d4af37;
    font-size: 16px;
}

.package-price {
    font-size: 34px;
    color: #d4af37;
    margin: 8px 0;
}

.package-desc {
    color: #aaa;
}
