/* ========== 1.2V ========== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --premium-bg: #f8f9fa;
    --premium-dark: #121212;
    --premium-gold: #d4af37;
    --premium-gold-dark: #b8860b;
    --premium-silver: #c0c0c0;
    --card-shadow: 0 15px 35px rgba(0, 0, 0, 0.08);
    --glass-bg: rgba(255, 255, 255, 0.95);
    --glass-border: rgba(212, 175, 55, 0.2);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    --sidebar-width: 260px;
}

/* ========== BASE ========== */
*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--premium-bg);
    color: var(--premium-dark);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
}

/* ========== TYPOGRAPHY ========== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    letter-spacing: -0.02em;
}

.text-gold {
    color: var(--premium-gold);
}

.text-premium {
    color: var(--premium-gold) !important;
}

.letter-spacing-1 {
    letter-spacing: 1px;
}

.x-small {
    font-size: 0.75rem;
}

.bg-luxury {
    background-color: var(--premium-bg) !important;
}

.premium-gradient-text {
    background: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ========== CARDS ========== */
.card-luxury {
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    transition: var(--transition);
}

.card-luxury:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

/* ========== BUTTONS ========== */
.btn-premium {
    background-color: var(--premium-dark);
    color: white;
    border-radius: 12px;
    padding: 12px 28px;
    font-weight: 500;
    letter-spacing: 0.5px;
    transition: var(--transition);
    border: none;
    min-height: 44px;
}

.btn-premium:hover {
    background-color: var(--premium-gold);
    color: white;
    box-shadow: 0 8px 15px rgba(197, 160, 89, 0.3);
}

.btn-premium-outline {
    background: transparent;
    border: 2px solid var(--premium-dark);
    color: var(--premium-dark);
    border-radius: 12px;
    padding: 10px 26px;
    font-weight: 500;
    transition: var(--transition);
    min-height: 44px;
}

.btn-premium-outline:hover {
    background: var(--premium-dark);
    color: white;
}

/* ========== NAVIGATION ========== */
.navbar-luxury {
    background: white;
    padding: 12px 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
    z-index: 1030;
}

.nav-link {
    font-weight: 500;
    color: var(--premium-dark) !important;
    margin: 0 15px;
    position: relative;
    min-height: 44px;
    display: flex;
    align-items: center;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--premium-gold);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

/* ========== HAMBURGER ========== */
.hamburger-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    transition: var(--transition);
    min-width: 44px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    color: var(--premium-dark);
    font-size: 1.25rem;
}

.hamburger-btn:hover {
    background: var(--premium-bg);
}

/* ========== SIDEBAR OVERLAY ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1010;
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.sidebar-overlay.active {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

/* ========== SIDEBAR ========== */
#sidebar-luxury {
    background: white;
    border-right: 1px solid #f0f0f0;
    height: 100vh;
    width: var(--sidebar-width);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1020;
    padding: 85px 15px 25px;
    transition: transform 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
    overflow-y: auto;
}

.sidebar-link {
    display: flex;
    align-items: center;
    padding: 12px 18px;
    color: #666;
    text-decoration: none;
    border-radius: 12px;
    margin-bottom: 6px;
    transition: var(--transition);
    min-height: 44px;
    font-size: 0.9rem;
    font-weight: 500;
}

.sidebar-link i {
    margin-right: 10px;
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

.sidebar-link:hover,
.sidebar-link.active {
    background: var(--premium-dark);
    color: white;
}

.sidebar-link.active {
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

/* ========== ADMIN LAYOUT ========== */
.admin-layout {
    display: flex;
    min-height: 100vh;
}

.admin-main {
    flex: 1;
    margin-left: var(--sidebar-width);
    padding: 30px;
    min-height: 100vh;
    background-color: var(--premium-bg);
    transition: margin-left 0.35s ease;
}

/* ========== SEARCH BOX ========== */
.luxury-search-box {
    position: relative;
    max-width: 460px;
    width: 100%;
}

.luxury-search-box .form-control {
    border-radius: 50px;
    padding: 10px 20px 10px 45px;
    border: 1px solid #f0f0f0;
    font-size: 0.88rem;
    background: #fcfcfc;
    transition: var(--transition);
    min-height: 44px;
}

.luxury-search-box .form-control:focus {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    background: #fff;
    border-color: var(--premium-gold);
}

.luxury-search-box .search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #aaa;
    font-size: 0.9rem;
}

/* ========== FORM CONTROLS ========== */
.form-control-luxury {
    border-radius: 12px;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    background: #fff;
    transition: var(--transition);
    min-height: 48px;
}

.form-control-luxury:focus {
    border-color: var(--premium-gold);
    box-shadow: 0 0 0 4px rgba(197, 160, 89, 0.1);
    outline: none;
}

/* ========== TABLE ========== */
.table-luxury {
    border-collapse: separate;
    border-spacing: 0 8px;
}

.table-luxury tr {
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.table-luxury td,
.table-luxury th {
    background: white;
    padding: 16px 20px;
    border: none;
    vertical-align: middle;
}

.table-luxury tr td:first-child {
    border-top-left-radius: 12px;
    border-bottom-left-radius: 12px;
}

.table-luxury tr td:last-child {
    border-top-right-radius: 12px;
    border-bottom-right-radius: 12px;
}

/* ========== BADGES ========== */
.status-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* ========== ICON BOXES ========== */
.luxury-icon-box {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.luxury-brand-icon {
    width: 60px;
    height: 60px;
    background: var(--premium-dark);
    color: var(--premium-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.8rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.luxury-brand-icon-sm {
    width: 38px;
    height: 38px;
    background: var(--premium-dark);
    color: var(--premium-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ========== TIMELINE ========== */
.timeline-luxury {
    position: relative;
    padding-left: 30px;
}

.timeline-luxury::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 2px;
    height: 100%;
    background: #e0e0e0;
}

.timeline-item-luxury {
    position: relative;
    padding-bottom: 35px;
}

.timeline-dot-luxury {
    position: absolute;
    left: -35px;
    top: 5px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--premium-gold);
    border: 3px solid white;
    box-shadow: 0 0 0 1px var(--premium-gold);
}

/* ========== CHARTS ========== */
.chart-container-luxury {
    background: white;
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.03);
    border: 1px solid #f0f0f0;
}

/* ========== PUBLIC TRACKER ========== */
.bg-tracker {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 30px 16px 40px;
}

.tracker-container {
    max-width: 800px;
    width: 100%;
}

.glass-card {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.05);
}

.progress-luxury {
    height: 10px;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    margin: 1.5rem 0;
}

.progress-bar-luxury {
    height: 100%;
    background: var(--premium-gold) !important;
    border-radius: 6px;
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== STEP INDICATOR ========== */
.step-indicator {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 1;
    flex: 1;
}

.step-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 0 0 1px #ddd;
    transition: all 0.3s;
}

.step.active .step-dot {
    background: var(--premium-gold);
    box-shadow: 0 0 0 4px rgba(212, 175, 55, 0.15);
}

.step-label {
    font-size: 0.65rem;
    font-weight: 700;
    color: #bbb;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    line-height: 1.2;
}

.step.active .step-label {
    color: var(--premium-dark);
}

/* ========== TIMELINE PUBLIC ========== */
.timeline-public {
    border-left: 2px solid var(--premium-gold);
    margin-left: 10px;
    padding-left: 25px;
    position: relative;
}

.timeline-item {
    position: relative;
    margin-bottom: 25px;
}

.timeline-item::before {
    content: '';
    position: absolute;
    left: -33px;
    top: 5px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--premium-gold);
}

.timeline-item.active::before {
    background: var(--premium-gold);
    box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ========== ACHIEVEMENTS ========== */
.achievement-card {
    transition: var(--transition);
    border: 1px solid rgba(212, 175, 55, 0.1) !important;
}

.achievement-card:hover {
    transform: translateY(-8px);
    border-color: var(--premium-gold) !important;
    box-shadow: 0 20px 40px rgba(212, 175, 55, 0.1) !important;
}

.achievement-icon {
    width: 50px;
    height: 50px;
    background: var(--premium-dark);
    color: var(--premium-gold);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    transition: var(--transition);
}

.achievement-card:hover .achievement-icon {
    background: var(--premium-gold);
    color: white;
    transform: rotate(10deg);
}

.count-up {
    background: linear-gradient(135deg, var(--premium-dark) 0%, var(--premium-gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ================================================
   RESPONSIVE — TABLET (≤ 991px)
   ================================================ */
@media (max-width: 991.98px) {
    .hamburger-btn {
        display: flex;
    }

    #sidebar-luxury {
        transform: translateX(-100%);
        padding-top: 70px;
    }

    #sidebar-luxury.sidebar-open {
        transform: translateX(0);
    }

    .admin-main {
        margin-left: 0;
        padding: 20px;
    }

    .luxury-search-box {
        max-width: 300px;
    }
}

/* ================================================
   RESPONSIVE — MOBILE (≤ 767px)
   ================================================ */
@media (max-width: 767.98px) {
    .bg-tracker {
        padding: 16px 12px 32px;
        align-items: flex-start;
    }

    .tracker-container {
        padding: 0;
    }

    .glass-card .card-body {
        padding: 1.5rem !important;
    }

    .step-label {
        font-size: 0.58rem;
        letter-spacing: 0;
    }

    .step-dot {
        width: 12px;
        height: 12px;
    }

    .table-responsive {
        border-radius: 12px;
    }

    .table-luxury td,
    .table-luxury th {
        padding: 12px 14px;
    }

    .admin-main {
        padding: 15px;
    }

    .luxury-search-box {
        display: none;
    }

    .mobile-search-wrap {
        display: block;
        padding: 10px 16px;
        background: white;
        border-top: 1px solid #f5f5f5;
    }

    .mobile-search-wrap .luxury-search-box {
        display: block;
        max-width: 100%;
    }

    .card-luxury {
        border-radius: 16px;
    }
}

/* ================================================
   RESPONSIVE — SMALL MOBILE (≤ 480px)
   ================================================ */
@media (max-width: 480px) {

    .btn-premium,
    .btn-premium-outline {
        padding: 10px 18px;
        font-size: 0.9rem;
    }

    .status-badge {
        font-size: 0.7rem;
        padding: 5px 10px;
    }

    .luxury-brand-icon {
        width: 50px;
        height: 50px;
        font-size: 1.4rem;
    }
}