/*
============================================
  KGS-EGY Premium Components
  Header, Footer, Products, Cards, etc.
============================================
*/

/* ==========================================
   1. HEADER / NAVIGATION
========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-sticky);
    transition: var(--transition-base);
}

.header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-4) 0;
    transition: var(--transition-base);
}

.header.scrolled {
    background: var(--surface-glass);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--surface-border);
    box-shadow: var(--shadow-lg);
}

.header.scrolled .header-wrapper {
    padding: var(--space-3) 0;
}

/* Logo */
.header-logo img {
    height: 100px;
    width: auto;
    transition: var(--transition-base);
}

.header.scrolled .header-logo img {
    height: 70px;
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-menu__item {
    position: relative;
}

.nav-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    position: relative;
}

.nav-menu__link::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: var(--space-4);
    left: var(--space-4);
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: left;
    transition: var(--transition-base);
}

.nav-menu__link:hover,
.nav-menu__link.active {
    color: var(--gold);
}

.nav-menu__link:hover::after,
.nav-menu__link.active::after {
    transform: scaleX(1);
}

/* Dropdown */
.nav-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
    list-style: none;
}

.nav-menu__item:hover .nav-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-dropdown__link {
    display: block;
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
}

.nav-dropdown__link:hover {
    background: var(--bg-tertiary);
    color: var(--gold);
}

/* Header Actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.header-action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-lg);
    transition: var(--transition-base);
}

.header-action-btn:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

/* Language Dropdown */
.lang-dropdown {
    position: relative;
}

.lang-dropdown__toggle {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    background: var(--bg-tertiary);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: var(--transition-base);
}

.lang-dropdown__toggle:hover {
    border-color: var(--gold);
}

.lang-dropdown__toggle img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

.lang-dropdown__menu {
    position: absolute;
    top: calc(100% + var(--space-2));
    left: 0;
    min-width: 150px;
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    padding: var(--space-2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-base);
    box-shadow: var(--shadow-xl);
    list-style: none;
    z-index: 10;
}

.lang-dropdown:hover .lang-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown__item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.lang-dropdown__item:hover {
    background: var(--bg-tertiary);
    color: var(--gold);
}

.lang-dropdown__item img {
    width: 24px;
    height: 18px;
    object-fit: cover;
    border-radius: var(--radius-sm);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 30px;
    height: 30px;
    cursor: pointer;
    z-index: 100;
}

.menu-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--gold);
    border-radius: 2px;
    transition: var(--transition-base);
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Navigation */
@media (max-width: 991px) {
    .menu-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 300px;
        height: 100vh;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        background: var(--bg-secondary);
        padding: var(--space-20) var(--space-6) var(--space-6);
        border-left: 1px solid var(--surface-border);
        transition: var(--transition-base);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu__link {
        padding: var(--space-4);
        border-bottom: 1px solid var(--surface-border);
    }

    .nav-menu__link::after {
        display: none;
    }

    .nav-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        background: var(--bg-tertiary);
        margin-top: var(--space-2);
    }

    .mobile-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.7);
        opacity: 0;
        visibility: hidden;
        transition: var(--transition-base);
        z-index: calc(var(--z-sticky) - 1);
    }

    .mobile-overlay.active {
        opacity: 1;
        visibility: visible;
    }
}

/* ==========================================
   2. HERO / BANNER SECTION
========================================== */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(var(--space-24) + 80px) 0 var(--space-24);
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    z-index: -2;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 50%, rgba(212, 175, 55, 0.08) 0%, transparent 50%);
    z-index: -1;
    animation: float 20s ease-in-out infinite;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 14px;
    font-weight: var(--font-medium);
    margin-bottom: var(--space-6);
    animation: fadeInDown 0.8s ease-out forwards;
}

.hero-title {
    font-size: var(--text-6xl);
    font-weight: var(--font-extrabold);
    color: var(--text-primary);
    line-height: 1.2;
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
    opacity: 0;
}

.hero-title span {
    background: var(--gold-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: var(--text-lg);
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-buttons {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: wrap;
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    opacity: 0;
}

.hero-image {
    position: relative;
    animation: fadeInLeft 1s ease-out 0.4s forwards;
    opacity: 0;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.5));
}

.hero-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulseGold 3s ease-in-out infinite;
}

/* Decorative Shapes */
.hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    opacity: 0.1;
}

.hero-shape--1 {
    top: 10%;
    right: 10%;
    width: 100px;
    height: 100px;
    border: 2px solid var(--gold);
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
}

.hero-shape--2 {
    bottom: 20%;
    left: 5%;
    width: 150px;
    height: 150px;
    background: var(--gold);
    clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
    animation: rotate 20s linear infinite;
}

.hero-shape--3 {
    top: 30%;
    left: 15%;
    width: 80px;
    height: 80px;
    border: 2px solid var(--gold);
    transform: rotate(45deg);
    animation: float 8s ease-in-out infinite reverse;
}

/* ==========================================
   3. SECTION HEADERS
========================================== */
.section-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: var(--radius-full);
    color: var(--gold);
    font-size: 2.5rem;
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-4);
}

.section-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.section-title span {
    color: var(--gold);
}

.section-description {
    font-size: 1.5rem;
    color: var(--text-tertiary);
    max-width: 700px;
    margin: 0 auto;
}

/* Gold Divider */
.section-divider {
    width: 80px;
    height: 3px;
    background: var(--gold-gradient);
    margin: var(--space-4) auto 0;
    border-radius: var(--radius-full);
}

/* ==========================================
   4. PRODUCT CARDS
========================================== */
.products-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

.product-card {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
}

.product-card:hover {
    transform: translateY(-8px);
    border-color: var(--surface-border-hover);
    box-shadow: var(--shadow-gold);
}

.product-card__image {
    position: relative;
    height: 250px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.product-card:hover .product-card__image img {
    transform: scale(1.1);
}

.product-card__badge {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    padding: var(--space-1) var(--space-3);
    background: var(--gold);
    color: var(--bg-primary);
    font-size: 12px;
    font-weight: var(--font-bold);
    border-radius: var(--radius-full);
    z-index: 2;
}

.product-card__actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    align-items: center;
    gap: var(--space-3);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
    z-index: 2;
}

.product-card:hover .product-card__actions {
    opacity: 1;
    visibility: visible;
}

.product-card__action-btn {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gold);
    color: var(--bg-primary);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--text-lg);
    cursor: pointer;
    transition: var(--transition-base);
    transform: translateY(20px);
}

.product-card:hover .product-card__action-btn {
    transform: translateY(0);
}

.product-card:hover .product-card__action-btn:nth-child(2) {
    transition-delay: 0.1s;
}

.product-card__action-btn:hover {
    background: var(--gold-light);
    transform: scale(1.1);
}

.product-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: var(--transition-base);
}

.product-card:hover .product-card__overlay {
    opacity: 1;
}

.product-card__content {
    padding: var(--space-6);
}

.product-card__category {
    font-size: 12px;
    color: var(--gold);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--space-2);
}

.product-card__title {
    font-size: var(--text-lg);
    font-weight: var(--font-semibold);
    color: var(--text-primary);
    margin-bottom: var(--space-3);
    transition: var(--transition-base);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card__title:hover {
    color: var(--gold);
}

.product-card__stock {
    font-size: 14px;
    margin-bottom: var(--space-3);
}

.product-card__stock.in-stock {
    color: var(--success);
}

.product-card__stock.out-stock {
    color: var(--danger);
}

.product-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.product-card__price {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--gold);
}

.product-card__price--old {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-right: var(--space-2);
}

.product-card__btn {
    padding: var(--space-2) var(--space-4);
    background: transparent;
    border: 1px solid var(--gold);
    border-radius: var(--radius-lg);
    color: var(--gold);
    font-size: 14px;
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-base);
}

.product-card__btn:hover {
    background: var(--gold);
    color: var(--bg-primary);
}

/* ==========================================
   5. CATEGORY TABS
========================================== */
.category-tabs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-bottom: var(--space-12);
}

.category-tab {
    padding: var(--space-3) var(--space-6);
    background: transparent;
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: var(--text-base);
    font-weight: var(--font-medium);
    cursor: pointer;
    transition: var(--transition-base);
}

.category-tab:hover,
.category-tab.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

/* ==========================================
   6. FOOTER
========================================== */
.footer {
    background: var(--bg-secondary);
    border-top: 1px solid var(--surface-border);
    position: relative;
    overflow: hidden;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gold-gradient);
}

.footer-main {
    padding: var(--space-20) 0;
}

.footer-widget {
    margin-bottom: var(--space-8);
}

.footer-logo {
    margin-bottom: var(--space-6);
}

.footer-logo img {
    height: 50px;
    width: auto;
}

.footer-description {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
    max-width: 350px;
}

.footer-social {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.footer-social__link {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-tertiary);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-full);
    color: var(--text-secondary);
    font-size: 3rem;
    transition: var(--transition-base);
}

.footer-social__link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--gold);
    margin-bottom: var(--space-6);
    position: relative;
    padding-bottom: var(--space-3);
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 40px;
    height: 2px;
    background: var(--gold);
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: var(--space-3);
}

.footer-links a {
    color: var(--text-tertiary);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: var(--transition-base);
}

.footer-links a i {
    color: var(--gold);
    font-size: 14px;
}

.footer-links a:hover {
    color: var(--gold);
    padding-right: var(--space-2);
}

.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
    color: var(--text-tertiary);
}

.footer-contact li i {
    color: var(--gold);
    font-size: var(--text-lg);
    margin-top: 4px;
}

.footer-bottom {
    padding: var(--space-6) 0;
    border-top: 1px solid var(--surface-border);
}

.footer-bottom__content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    color: var(--text-tertiary);
    font-size: 14px;
}

.footer-copyright a {
    color: var(--gold);
    font-weight: var(--font-semibold);
}

@media (max-width: 768px) {
    .footer-bottom__content {
        flex-direction: column;
        text-align: center;
    }
}

/* ==========================================
   7. BREADCRUMB
========================================== */
.breadcrumb-section {
    background: var(--bg-secondary);
    padding: calc(var(--space-20) + 80px) 0 var(--space-12);
    position: relative;
    overflow: hidden;
}

.breadcrumb-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.05) 0%, transparent 50%);
}

.breadcrumb-content {
    position: relative;
    z-index: 1;
}

.breadcrumb-title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-4);
}

.breadcrumb-nav {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    list-style: none;
    padding: 0;
    margin: 0;
}

.breadcrumb-nav li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--text-tertiary);
    font-size: 14px;
}

.breadcrumb-nav li a {
    color: var(--text-tertiary);
    transition: var(--transition-base);
}

.breadcrumb-nav li a:hover {
    color: var(--gold);
}

.breadcrumb-nav li.active {
    color: var(--gold);
}

.breadcrumb-nav li i {
    color: var(--gold);
    font-size: 10px;
}

/* ==========================================
   8. DASHBOARD / USER PANEL
========================================== */
.dashboard-section {
    padding: var(--space-16) 0;
    background: var(--bg-primary);
    min-height: 100vh;
}

/* Sidebar */
.dashboard-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    position: sticky;
    top: 100px;
}

.dashboard-user {
    text-align: center;
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--surface-border);
    margin-bottom: var(--space-6);
}

.dashboard-user__avatar {
    width: 100px;
    height: 100px;
    border-radius: var(--radius-full);
    border: 3px solid var(--gold);
    margin: 0 auto var(--space-4);
    overflow: hidden;
    box-shadow: var(--shadow-gold-sm);
}

.dashboard-user__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dashboard-user__name {
    font-size: var(--text-lg);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-1);
}

.dashboard-user__welcome {
    font-size: 14px;
    color: var(--text-tertiary);
}

.dashboard-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dashboard-menu__item {
    margin-bottom: var(--space-2);
}

.dashboard-menu__link {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    color: var(--text-secondary);
    border-radius: var(--radius-lg);
    transition: var(--transition-base);
    font-weight: var(--font-medium);
}

.dashboard-menu__link i {
    width: 20px;
    color: var(--gold);
}

.dashboard-menu__link:hover,
.dashboard-menu__link.active {
    background: rgba(212, 175, 55, 0.1);
    color: var(--gold);
}

.dashboard-menu__link.active {
    border-right: 3px solid var(--gold);
}

/* Dashboard Content */
.dashboard-content {
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
}

.dashboard-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-6);
    border-bottom: 1px solid var(--surface-border);
}

.dashboard-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

@media (max-width: 992px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    border-color: var(--surface-border-hover);
    transform: translateY(-4px);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(30%, -30%);
}

.stat-card__header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: var(--space-4);
}

.stat-card__title {
    font-size: 14px;
    font-weight: var(--font-medium);
    color: var(--text-tertiary);
}

.stat-card__icon {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-lg);
    color: var(--gold);
    font-size: var(--text-2xl);
}

.stat-card__value {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    color: var(--gold);
}

.stat-card__change {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-top: var(--space-2);
    font-size: 14px;
}

.stat-card__change.positive {
    color: var(--success);
}

.stat-card__change.negative {
    color: var(--danger);
}

/* ==========================================
   9. AUTH PAGES (LOGIN/REGISTER)
========================================== */
.auth-section {
    min-height: 100vh;
    display: flex;
    align-items: stretch;
    background: var(--bg-primary);
}

.auth-image {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.auth-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 10, 15, 0.9) 0%, rgba(10, 10, 15, 0.7) 100%);
    z-index: 1;
}

.auth-image__content {
    position: relative;
    z-index: 2;
    padding: var(--space-12);
    text-align: center;
    color: var(--text-primary);
}

.auth-image__title {
    font-size: var(--text-4xl);
    font-weight: var(--font-bold);
    margin-bottom: var(--space-4);
}

.auth-image__text {
    font-size: var(--text-lg);
    color: var(--text-secondary);
}

.auth-form-wrapper {
    flex: 0 0 500px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: var(--space-12);
    background: var(--bg-secondary);
    border-right: 1px solid var(--surface-border);
}

.auth-logo {
    margin-bottom: var(--space-8);
}

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

.auth-form__title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.auth-form__subtitle {
    color: var(--text-tertiary);
    margin-bottom: var(--space-8);
}

.auth-form .form-group {
    margin-bottom: var(--space-5);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    margin: var(--space-6) 0;
    color: var(--text-muted);
    font-size: 14px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--surface-border);
}

.auth-footer {
    margin-top: var(--space-8);
    text-align: center;
    color: var(--text-tertiary);
}

.auth-footer a {
    color: var(--gold);
    font-weight: var(--font-semibold);
}

@media (max-width: 992px) {
    .auth-section {
        flex-direction: column-reverse;
    }

    .auth-form-wrapper {
        flex: 1;
        max-width: 100%;
    }

    .auth-image {
        min-height: 300px;
        flex: 0;
    }
}

/* ==========================================
   10. PAGINATION
========================================== */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    margin-top: var(--space-12);
}

.pagination {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-item .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 var(--space-3);
    background: var(--bg-card);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
    font-weight: var(--font-medium);
    transition: var(--transition-base);
}

.page-item .page-link:hover,
.page-item.active .page-link {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--bg-primary);
}

.page-item.disabled .page-link {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================
   11. EMPTY STATE
========================================== */
.empty-state {
    text-align: center;
    padding: var(--space-16);
}

.empty-state__icon {
    width: 100px;
    height: 100px;
    margin: 0 auto var(--space-6);
    background: rgba(212, 175, 55, 0.1);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--text-4xl);
    color: var(--gold);
}

.empty-state__title {
    font-size: var(--text-xl);
    font-weight: var(--font-bold);
    color: var(--text-primary);
    margin-bottom: var(--space-2);
}

.empty-state__text {
    color: var(--text-tertiary);
    margin-bottom: var(--space-6);
}

/* ==========================================
   12. LOADING STATES
========================================== */
.skeleton {
    background: linear-gradient(90deg, var(--bg-tertiary) 0%, var(--bg-card-hover) 50%, var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

.skeleton-text {
    height: 1em;
    margin-bottom: var(--space-2);
}

.skeleton-title {
    height: 1.5em;
    width: 60%;
    margin-bottom: var(--space-4);
}

.skeleton-image {
    height: 200px;
}

.skeleton-btn {
    height: 44px;
    width: 120px;
}





