/* ========================================
   HIYUS - Main Stylesheet
   Clean Dark Theme
   ======================================== */

/* ---------- Variables ---------- */
:root {
    --bg-base: #09090b;
    --bg-raised: #0c0c0e;
    --bg-surface: #18181b;
    --bg-surface-hover: #1f1f23;
    --bg-overlay: #27272a;
    --border: #27272a;
    --border-light: #3f3f46;
    --text: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-dim: #52525b;
    --accent: #22c55e;
    --accent-hover: #16a34a;
    --accent-soft: rgba(34, 197, 94, 0.1);
    --accent-border: rgba(34, 197, 94, 0.25);
    --green: #22c55e;
    --red: #ef4444;
    --orange: #f59e0b;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.25);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.3);
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --transition: 0.15s ease;
    --navbar-h: 72px;
}

/* ---------- Light Theme ---------- */
[data-theme="light"] {
    --bg-base: #f8f9fb;
    --bg-raised: #ffffff;
    --bg-surface: #ffffff;
    --bg-surface-hover: #f1f3f5;
    --bg-overlay: #e9ecef;
    --border: #dee2e6;
    --border-light: #ced4da;
    --text: #1a1a2e;
    --text-secondary: #495057;
    --text-muted: #6c757d;
    --text-dim: #adb5bd;
    --accent: #16a34a;
    --accent-hover: #15803d;
    --accent-soft: rgba(22,163,74,0.08);
    --accent-border: rgba(22,163,74,0.2);
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.03);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.04);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
}

/* Light theme component overrides */
[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
[data-theme="light"] .navbar.scrolled {
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 16px rgba(0,0,0,0.06);
}
[data-theme="light"] .navbar-menu {
    background: rgba(0,0,0,0.025);
    border-color: rgba(0,0,0,0.06);
}
[data-theme="light"] .navbar-menu > a:hover,
[data-theme="light"] .nav-dropdown:hover > a {
    background: rgba(0,0,0,0.05);
}
[data-theme="light"] .navbar-menu > a.active {
    background: rgba(0,0,0,0.06);
}
[data-theme="light"] .hero-bg {
    background: linear-gradient(180deg, #f0f4f8 0%, #f8f9fb 50%, #f8f9fb 100%);
}
[data-theme="light"] .hero-bg::before {
    background: radial-gradient(ellipse, rgba(22,163,74,0.06) 0%, transparent 70%);
}
[data-theme="light"] .product-card,
[data-theme="light"] .category-card,
[data-theme="light"] .stat-card,
[data-theme="light"] .team-card,
[data-theme="light"] .cta-box {
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
[data-theme="light"] .product-card:hover,
[data-theme="light"] .category-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
[data-theme="light"] .btn-outline {
    border-color: #ced4da;
    color: #495057;
}
[data-theme="light"] .btn-outline:hover {
    border-color: #adb5bd;
    background: rgba(0,0,0,0.03);
    color: #1a1a2e;
}
[data-theme="light"] .footer {
    background: #f0f2f5;
    border-top-color: #dee2e6;
}
[data-theme="light"] .alert-danger { color: #dc2626; }
[data-theme="light"] .alert-success { color: #16a34a; }
[data-theme="light"] .alert-warning { color: #ca8a04; }
[data-theme="light"] ::selection { background: rgba(22,163,74,0.2); color: #000; }
[data-theme="light"] .dropdown-menu a:hover { background: rgba(0,0,0,0.04); }
[data-theme="light"] .nav-dropdown .dropdown-menu { box-shadow: 0 12px 40px rgba(0,0,0,0.1), 0 0 0 1px rgba(0,0,0,0.05); }
[data-theme="light"] .section-title { color: #1a1a2e; }
[data-theme="light"] .reference-item { border-color: #dee2e6; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,0.04); }

/* ---------- Reset ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 15px; -webkit-text-size-adjust: 100%; }

body {
    font-family: var(--font);
    background: var(--bg-base);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font); }

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 0.87rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    white-space: nowrap;
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    border-color: var(--accent);
}
.btn-primary:hover {
    background: var(--accent-hover);
    border-color: var(--accent-hover);
}

.btn-secondary {
    background: var(--bg-surface);
    color: var(--text);
    border-color: var(--border);
}
.btn-secondary:hover {
    background: var(--bg-surface-hover);
    border-color: var(--border-light);
}

.btn-ghost {
    background: transparent;
    color: var(--text-secondary);
    border-color: transparent;
}
.btn-ghost:hover {
    color: var(--text);
    background: var(--bg-surface);
}

.btn-outline,
.btn-outline-light {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-outline:hover,
.btn-outline-light:hover {
    background: var(--bg-surface);
    border-color: var(--border-light);
}

.btn-discord {
    background: #5865F2;
    color: #fff;
    border-color: #5865F2;
}
.btn-discord:hover {
    background: #4752c4;
    border-color: #4752c4;
}

.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-lg { padding: 12px 24px; font-size: 0.93rem; }
.btn-block { display: flex; width: 100%; }
.btn i { font-size: 0.9em; }

/* ---------- Navbar ---------- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--navbar-h);
    display: flex;
    align-items: center;
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    transition: all 0.2s ease;
}

.navbar.scrolled {
    background: rgba(9, 9, 11, 0.95);
    border-bottom-color: var(--border);
}

.navbar .container {
    display: flex;
    align-items: center;
    gap: 0;
}

/* Logo */
.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text);
    letter-spacing: -0.02em;
    margin-right: auto;
    flex-shrink: 0;
}
.navbar-brand img {
    height: 44px;
    width: auto;
}
.navbar-brand .logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
}

/* Nav Links — centered pill group */
.navbar-menu {
    display: flex;
    align-items: center;
    gap: 1px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 50px;
    padding: 3px 4px;
}

.navbar-menu > a,
.nav-dropdown > a {
    padding: 7px 14px;
    color: var(--text-muted);
    font-size: 0.84rem;
    font-weight: 500;
    border-radius: 50px;
    transition: color 0.15s ease, background 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}

.navbar-menu > a:hover,
.nav-dropdown:hover > a {
    color: var(--text);
    background: rgba(255,255,255,0.06);
}

.navbar-menu > a.active {
    color: var(--text);
    background: rgba(255,255,255,0.08);
}

.navbar-menu > a i.fa-chevron-down,
.nav-dropdown > a i.fa-chevron-down {
    font-size: 0.55rem;
    opacity: 0.5;
    margin-left: 2px;
}

/* Dropdown */
.nav-dropdown {
    position: relative;
}
.nav-dropdown .dropdown-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    min-width: 200px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.04);
    padding: 6px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 100;
}
.nav-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    font-size: 0.84rem;
    transition: all 0.12s ease;
}
.dropdown-menu a i {
    width: 18px;
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
    transition: color 0.12s ease;
}
.dropdown-menu a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text);
}
.dropdown-menu a:hover i {
    color: var(--accent);
}

/* Nav Actions */
.navbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: 24px;
    flex-shrink: 0;
}

.navbar-actions .btn-discord {
    padding: 8px 18px;
    font-size: 0.85rem;
    border-radius: 50px;
}

.mobile-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 6px;
    border-radius: var(--radius-sm);
    transition: color 0.15s ease;
}
.mobile-toggle:hover {
    color: var(--text);
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 92vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--navbar-h) + 40px) 24px 60px;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: var(--bg-base);
    z-index: 0;
}
.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(34, 197, 94, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

#particles-canvas {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.3;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--accent-soft);
    border: 1px solid var(--accent-border);
    padding: 5px 14px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--accent);
    margin-bottom: 20px;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    margin-bottom: 16px;
    letter-spacing: -0.03em;
    color: var(--text);
}

.hero-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
    line-height: 1.6;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Section ---------- */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--accent);
    margin-bottom: 8px;
}

.section-title {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}

.section-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    max-width: 440px;
    margin: 0 auto;
}

/* ---------- Categories ---------- */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.category-card {
    display: block;
    padding: 28px 22px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition);
    color: var(--text);
}
.category-card:hover {
    border-color: var(--border-light);
    background: var(--bg-surface-hover);
}
.category-card .category-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 14px;
}
.category-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 4px;
}
.category-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
    line-height: 1.5;
}
.category-card .category-count {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ---------- Products Grid ---------- */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.products-grid-sm {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
}

.product-card {
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition);
}
.product-card:hover {
    border-color: var(--border-light);
    box-shadow: var(--shadow-md);
}

.product-image {
    position: relative;
    display: block;
    aspect-ratio: 16/10;
    background: var(--bg-raised);
    overflow: hidden;
}
.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}
.product-card:hover .product-image img {
    transform: scale(1.03);
}
.product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-dim);
    font-size: 1.8rem;
}
.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--green);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
    z-index: 2;
}

.product-info {
    padding: 18px;
}
.product-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--accent);
    font-weight: 600;
}
.product-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 6px 0;
    line-height: 1.4;
}
.product-title a { color: var(--text); }
.product-title a:hover { color: var(--accent); }

.product-excerpt {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 14px;
    line-height: 1.5;
}
.product-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--border);
}
.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.price-current {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text);
}
.price-current small { font-size: 0.8rem; color: var(--text-secondary); }
.price-old {
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: line-through;
}

/* ---------- Page Header ---------- */
.page-header {
    padding: calc(var(--navbar-h) + 36px) 0 32px;
    border-bottom: 1px solid var(--border);
    text-align: center;
}
.page-header-sm { padding-bottom: 24px; }

.page-title {
    font-size: clamp(1.3rem, 3vw, 1.7rem);
    font-weight: 600;
    margin-top: 10px;
}
.page-title i { color: var(--accent); margin-right: 6px; }

.page-subtitle {
    color: var(--text-secondary);
    margin-top: 6px;
    font-size: 0.9rem;
}

/* Breadcrumb */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    flex-wrap: wrap;
    font-size: 0.8rem;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb i { font-size: 0.55rem; color: var(--text-dim); }
.breadcrumb span { color: var(--text-secondary); }

/* ---------- Filter Bar ---------- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    padding: 18px 0;
    margin-bottom: 28px;
    border-bottom: 1px solid var(--border);
}
.filter-btn {
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition);
    font-family: var(--font);
    text-decoration: none;
}
.filter-btn:hover,
.filter-btn.active {
    border-color: var(--text-muted);
    color: var(--text);
    background: var(--bg-surface);
}

.products-section { padding: 36px 0 60px; }

/* ---------- Product Detail ---------- */
.product-detail-section {
    padding: calc(var(--navbar-h) + 24px) 0 60px;
}
.product-detail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 36px;
    margin-top: 20px;
}

.product-gallery {
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
    align-self: start;
}
.gallery-main {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--bg-raised);
    aspect-ratio: 4/3;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-dim);
    font-size: 2.5rem;
    gap: 10px;
    height: 100%;
}
.gallery-placeholder p { font-size: 0.9rem; }

.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    overflow-x: auto;
}
.gallery-thumb {
    flex-shrink: 0;
    width: 64px;
    height: 48px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    border: 2px solid transparent;
    background: var(--bg-raised);
    cursor: pointer;
    transition: border-color var(--transition);
    padding: 0;
}
.gallery-thumb.active,
.gallery-thumb:hover {
    border-color: var(--accent);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* Detail Info */
.detail-category {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--accent);
    font-weight: 600;
}
.detail-title {
    font-size: clamp(1.3rem, 3vw, 1.65rem);
    font-weight: 600;
    margin: 6px 0 10px;
    line-height: 1.3;
}
.detail-short-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.65;
}
.detail-price-box {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    padding: 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: 20px;
}
.detail-price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text);
}
.detail-price-old {
    font-size: 1rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.detail-discount-badge {
    background: var(--green);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 4px;
}

.detail-features { margin-bottom: 20px; }
.detail-features h3 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 10px;
}
.detail-features h3 i { color: var(--accent); margin-right: 6px; }
.detail-features ul { display: flex; flex-direction: column; gap: 6px; }
.detail-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.87rem;
    color: var(--text-secondary);
    padding: 8px 12px;
    background: var(--bg-surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.detail-features li i { color: var(--green); margin-top: 3px; flex-shrink: 0; }

.detail-actions { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.detail-meta { display: flex; gap: 14px; font-size: 0.78rem; color: var(--text-muted); }
.detail-meta i { margin-right: 4px; }

.product-description-block {
    margin-top: 40px;
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.product-description-block h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--border);
}
.product-description-block h2 i { color: var(--accent); margin-right: 8px; }
.description-content {
    color: var(--text-secondary);
    line-height: 1.8;
    font-size: 0.9rem;
}
.description-content h1, .description-content h2, .description-content h3 { color: var(--text); margin: 16px 0 8px; }
.description-content p { margin-bottom: 10px; }
.description-content ul, .description-content ol { margin: 10px 0; padding-left: 20px; }
.description-content ul { list-style: disc; }
.description-content ol { list-style: decimal; }
.description-content img { border-radius: var(--radius-sm); margin: 10px 0; }

.related-products { margin-top: 48px; }
.related-products h2 { font-size: 1.15rem; font-weight: 600; margin-bottom: 20px; }

/* ---------- References ---------- */
.references-section {
    padding: 64px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

/* ---------- Team ---------- */
.team-section {
    padding: 80px 0;
}
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
    margin-top: 40px;
}
.team-card {
    text-align: center;
    padding: 32px 16px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card-bg);
    transition: border-color var(--transition), transform var(--transition);
}
.team-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}
.team-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(34, 197, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    overflow: hidden;
}
.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.team-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.team-role {
    font-size: 0.8rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}
.references-slider .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.reference-item {
    text-align: center;
    opacity: 0.85;
    transition: opacity var(--transition);
    text-decoration: none;
    display: block;
    cursor: pointer;
}
.reference-item:hover { opacity: 1; }
.reference-item img {
    height: 64px;
    object-fit: contain;
    margin: 0 auto;
    transition: filter var(--transition);
}
.reference-item:hover img { filter: brightness(1.1); }
.reference-item span, .ref-name-only {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 6px;
    display: block;
}

/* ---------- Stats ---------- */
.stats-section { padding: 60px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}
.stat-card {
    text-align: center;
    padding: 28px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.stat-card .stat-icon {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    color: var(--accent);
    margin: 0 auto 12px;
}
.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text);
    line-height: 1;
    display: inline;
}
.stat-suffix {
    font-size: 1rem;
    font-weight: 600;
    color: var(--accent);
}
.stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    display: block;
}

/* ---------- CTA ---------- */
.cta-section { padding: 64px 0; }
.cta-box {
    padding: 48px 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    text-align: center;
}
.cta-title {
    font-size: clamp(1.2rem, 3vw, 1.6rem);
    font-weight: 600;
    margin-bottom: 8px;
}
.cta-desc {
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
}
.cta-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ---------- Checkout ---------- */
.checkout-section { padding: 36px 0 60px; }
.checkout-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
    align-items: start;
}
.checkout-form {
    padding: 28px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.checkout-form h2 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.checkout-form h2 i { color: var(--accent); margin-right: 6px; }

.checkout-summary .glass-card {
    padding: 28px;
    position: sticky;
    top: calc(var(--navbar-h) + 16px);
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.checkout-summary h2 { font-size: 1rem; font-weight: 600; margin-bottom: 20px; }
.checkout-summary h2 i { color: var(--accent); margin-right: 6px; }

.summary-product { display: flex; gap: 14px; align-items: center; }
.summary-product-image {
    width: 72px;
    height: 54px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-raised);
}
.summary-product-image img { width: 100%; height: 100%; object-fit: cover; }
.summary-placeholder { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--text-dim); }
.summary-product-info h3 { font-size: 0.9rem; font-weight: 600; }
.summary-category { font-size: 0.72rem; color: var(--text-muted); }
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-row { display: flex; justify-content: space-between; padding: 4px 0; font-size: 0.87rem; color: var(--text-secondary); }
.summary-discount span:last-child { color: var(--green); }
.summary-total { padding: 10px 0; font-size: 1rem; font-weight: 600; color: var(--text); }
.summary-total span:last-child { color: var(--accent); }
.checkout-summary .btn { margin-top: 16px; }
.summary-note { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 12px; }
.summary-note i { color: var(--green); margin-right: 3px; }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 16px; }
.form-group label {
    display: block;
    font-size: 0.82rem;
    font-weight: 500;
    margin-bottom: 5px;
    color: var(--text-secondary);
}
.form-group label .required { color: var(--red); }
.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 10px 14px;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text);
    font-family: var(--font);
    font-size: 0.87rem;
    transition: border-color var(--transition);
    outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    border-color: var(--accent);
}
.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-dim);
}

/* ---------- Alerts ---------- */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    margin-bottom: 16px;
    font-size: 0.87rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.alert i { margin-top: 2px; flex-shrink: 0; }
.alert ul { margin: 0; }
.alert-danger { background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.15); color: #fca5a5; }
.alert-success { background: rgba(34,197,94,0.08); border: 1px solid rgba(34,197,94,0.15); color: #86efac; }
.alert-warning { background: rgba(234,179,8,0.08); border: 1px solid rgba(234,179,8,0.15); color: #fde68a; }

/* ---------- Empty State ---------- */
.empty-state {
    text-align: center;
    padding: 64px 20px;
}
.empty-state i { font-size: 2.5rem; margin-bottom: 14px; color: var(--text-dim); }
.empty-state h3 { font-size: 1rem; color: var(--text-secondary); margin-bottom: 6px; }
.empty-state p { margin-bottom: 16px; color: var(--text-muted); font-size: 0.87rem; }

/* ---------- Login ---------- */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--bg-base);
}
.login-card {
    width: 100%;
    max-width: 400px;
    padding: 32px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}
.login-header {
    text-align: center;
    margin-bottom: 24px;
}
.login-header h1 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 12px;
}
.login-header p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-top: 4px;
}
.login-header .login-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--accent-soft);
    border-radius: var(--radius-md);
    font-size: 1.2rem;
    color: var(--accent);
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.footer {
    border-top: 1px solid var(--border);
    padding: 48px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
.footer-brand .navbar-brand { margin-bottom: 10px; }
.footer-brand p {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.6;
}
.footer-social {
    display: flex;
    gap: 8px;
    margin-top: 14px;
}
.footer-social a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: all var(--transition);
}
.footer-social a:hover {
    border-color: var(--border-light);
    color: var(--text);
}
.footer-title {
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 14px;
    color: var(--text);
}
.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.82rem;
    transition: color var(--transition);
}
.footer-links a:hover { color: var(--text); }
.footer-links a i { width: 14px; margin-right: 6px; font-size: 0.75rem; }

.footer-bottom {
    padding: 16px 0;
    border-top: 1px solid var(--border);
    text-align: center;
    font-size: 0.75rem;
    color: var(--text-dim);
}

/* ---------- Animations ---------- */
.animate-fade-up {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}
.delay-1 { transition-delay: 0.08s; }
.delay-2 { transition-delay: 0.16s; }
.delay-3 { transition-delay: 0.24s; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-light); }

::selection { background: rgba(34, 197, 94, 0.25); color: #fff; }

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 32px;
}
.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    font-size: 0.85rem;
    border: 1px solid var(--border);
    color: var(--text-secondary);
    transition: all var(--transition);
}
.pagination a:hover {
    border-color: var(--border-light);
    color: var(--text);
}
.pagination .active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .disabled {
    opacity: 0.3;
    pointer-events: none;
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
