:root {
    --primary-dark: #4a3269;
    --primary: #62448d;
    --primary-light: #7b5ba8;
    --accent: #e20613;
    --accent-hover: #c50510;
    --accent-light: #ff2d3a;
    --success: #28a745;
    --warning: #ffc107;
    --light-bg: #ebebeb;
    --white: #ffffff;
    --text-dark: #212529;
    --text-muted: #6c757d;
    --border: #dee2e6;
    --sidebar-width: 260px;
}

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
}

/* BRAND */
.navbar-logo {
    height: 38px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-logo {
    height: 32px;
    width: auto;
    filter: brightness(0) invert(1);
}

.auth-logo {
    height: 44px;
    width: auto;
}

.brand-club {
    font-weight: 300;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.brand-club-dark {
    font-weight: 300;
    font-size: 1.1rem;
    color: var(--primary-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* NAVBAR */
.bg-primary-dark {
    background-color: var(--primary-dark) !important;
}

.navbar-dark .nav-link {
    color: rgba(255, 255, 255, 0.8) !important;
    font-weight: 400;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.navbar-dark .nav-link:hover {
    color: var(--white) !important;
}

/* BUTTONS */
.btn-accent {
    background-color: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    font-weight: 500;
}

.btn-accent:hover {
    background-color: var(--accent-hover);
    border-color: var(--accent-hover);
    color: var(--white);
}

.btn-primary {
    background-color: var(--primary);
    border-color: var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    border-color: var(--primary-dark);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline-primary:hover, .btn-outline-primary.active {
    background-color: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

/* TEXT */
.text-accent {
    color: var(--accent) !important;
}

/* HERO */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    padding: 100px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(232, 25, 44, 0.15) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--white);
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 540px;
    margin-bottom: 2rem;
    line-height: 1.7;
}

.min-vh-50 {
    min-height: 50vh;
}

/* SECTIONS */
.section-title {
    font-weight: 700;
    font-size: 1.8rem;
    color: var(--primary-dark);
}

.section-title.text-white {
    color: var(--white) !important;
}

/* PAGE HEADER */
.page-header {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    padding: 50px 0 30px;
    color: var(--white);
}

.page-header h1 {
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.page-header .breadcrumb {
    margin-bottom: 0;
}

.page-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.7);
}

.page-header .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.9);
}

/* STEP CARDS */
.step-card {
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.step-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    color: var(--white);
}

.step-number {
    font-size: 2rem;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.06);
    margin-bottom: 0.5rem;
}

/* GIFT CARDS */
.gift-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s, box-shadow 0.3s;
    overflow: hidden;
}

.gift-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.gift-card-img {
    height: 180px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gift-detail-img {
    height: 350px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.points-cost {
    color: var(--accent);
    font-weight: 600;
}

/* NEWS CARDS */
.news-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
    transition: transform 0.3s;
}

.news-card:hover {
    transform: translateY(-3px);
}

/* ADVANTAGE CARDS */
.advantage-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: background 0.3s;
}

.advantage-card:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* CTA GRADIENT */
.bg-accent-gradient {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
}

/* FOOTER */
.footer-dark {
    background-color: var(--primary-dark);
    color: rgba(255, 255, 255, 0.6);
}

.footer-links li {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--white);
}

/* RULES */
.rules-list li {
    margin-bottom: 0.75rem;
    padding-left: 10px;
    border-left: 3px solid var(--accent);
}

.timeline-block {
    position: relative;
    padding-left: 30px;
}

.timeline-step {
    position: relative;
    margin-bottom: 1.5rem;
}

.step-marker {
    position: absolute;
    left: -38px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.85rem;
}

.product-list li {
    padding: 6px 0;
    border-bottom: 1px solid var(--border);
}

/* ARTICLE */
.article-content h3, .article-content h4 {
    margin-top: 1.5rem;
}

.article-content p {
    line-height: 1.8;
}

/* AUTH */
.auth-body {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-container {
    width: 100%;
    padding: 2rem;
    display: flex;
    justify-content: center;
}

.auth-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 420px;
}

.auth-card-wide {
    max-width: 700px;
}

/* CLIENT LAYOUT */
.client-body {
    background: var(--light-bg);
}

.client-wrapper {
    display: flex;
    min-height: 100vh;
}

.client-sidebar {
    width: var(--sidebar-width);
    background: var(--primary-dark);
    position: fixed;
    top: 60px;
    bottom: 0;
    left: 0;
    overflow-y: auto;
    z-index: 100;
}

.client-content {
    margin-left: var(--sidebar-width);
    flex: 1;
    min-height: calc(100vh - 60px);
}

.sidebar-user-block {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.points-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: var(--white);
    padding: 4px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}

.sidebar-nav {
    padding: 1rem 0;
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.sidebar-link:hover {
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-link.active {
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
    border-left-color: var(--accent);
}

.sidebar-link i {
    width: 20px;
    text-align: center;
}

.sidebar-section-title {
    padding: 8px 20px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.35);
    font-weight: 600;
}

/* STAT CARDS */
.stat-card {
    background: var(--white);
    border-radius: 12px;
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.stat-primary .stat-icon {
    background: rgba(98, 68, 141, 0.1);
    color: var(--primary);
}

.stat-success .stat-icon {
    background: rgba(40, 167, 69, 0.1);
    color: var(--success);
}

.stat-warning .stat-icon {
    background: rgba(255, 193, 7, 0.1);
    color: var(--warning);
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* CARDS */
.card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.card-header {
    background: transparent;
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    font-weight: 600;
}

/* TABLES */
.table th {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom-width: 1px;
}

.table td {
    vertical-align: middle;
    font-size: 0.9rem;
}

/* ACCORDION */
.accordion-button:not(.collapsed) {
    background-color: rgba(98, 68, 141, 0.05);
    color: var(--primary-dark);
}

.accordion-button:focus {
    box-shadow: 0 0 0 0.2rem rgba(98, 68, 141, 0.15);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .client-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s;
    }

    .client-sidebar.show {
        transform: translateX(0);
    }

    .client-content {
        margin-left: 0;
    }

    .hero-title {
        font-size: 2rem;
    }
}

@media (max-width: 767.98px) {
    .hero-section {
        padding: 60px 0 50px;
    }

    .hero-title {
        font-size: 1.8rem;
    }
}
