/* =========================================
   NgaraGO - Main Stylesheet
   ========================================= */

:root {
    --primary: #1a3a8f;
    --primary-light: #2451b3;
    --primary-dark: #102060;
    --accent: #0e9e6e;
    --accent-light: #12b87f;
    --accent-dark: #0a7a54;
    --gold: #f4a320;
    --danger: #e74c3c;
    --warning: #f39c12;
    --info: #3498db;
    --purple: #9b59b6;
    --dark: #1a1a2e;
    --dark-2: #2d2d44;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --gray-lighter: #f8f9fa;
    --white: #ffffff;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.14);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
    font-family: var(--font);
    color: var(--dark);
    background: var(--white);
    line-height: 1.65;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main { flex: 1; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* =========================================
   NAVBAR
   ========================================= */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--white);
    box-shadow: 0 2px 16px rgba(26,58,143,0.10);
    border-bottom: 2px solid rgba(26,58,143,0.07);
}

.nav-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.nav-logo img { height: 52px; width: auto; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    margin-left: 1rem;
}

.nav-links a {
    padding: 0.45rem 0.85rem;
    border-radius: var(--radius-sm);
    font-weight: 500;
    font-size: 0.94rem;
    color: var(--dark);
    transition: var(--transition);
}

.nav-links a:hover, .nav-links a.active {
    color: var(--primary);
    background: rgba(26,58,143,0.07);
}

.nav-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-cart {
    position: relative;
    width: 42px; height: 42px;
    border-radius: 50%;
    background: var(--gray-lighter);
    display: flex; align-items: center; justify-content: center;
    color: var(--dark);
    font-size: 1.1rem;
    transition: var(--transition);
}

.btn-cart:hover { background: var(--primary); color: var(--white); }

.cart-badge {
    position: absolute;
    top: -4px; right: -4px;
    background: var(--accent);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    min-width: 18px; height: 18px;
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    padding: 0 4px;
    border: 2px solid white;
}

.btn-outline-nav {
    padding: 0.42rem 1rem;
    border: 2px solid var(--primary);
    border-radius: 8px;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

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

.btn-primary-nav {
    padding: 0.42rem 1rem;
    background: var(--primary);
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 0.88rem;
    transition: var(--transition);
}

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

.nav-user-menu { position: relative; }

.btn-user-menu {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.42rem 0.85rem;
    background: var(--gray-lighter);
    border: none; border-radius: 8px;
    cursor: pointer; font-size: 0.9rem; font-weight: 500;
    color: var(--dark);
    transition: var(--transition);
}

.btn-user-menu:hover { background: var(--primary); color: white; }
.btn-user-menu i:first-child { font-size: 1.2rem; color: var(--primary); }
.btn-user-menu:hover i { color: white; }

.user-dropdown {
    position: absolute; top: calc(100% + 8px); right: 0;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 210px;
    padding: 0.5rem 0;
    opacity: 0; visibility: hidden;
    transform: translateY(-8px);
    transition: var(--transition);
    border: 1px solid var(--gray-light);
    z-index: 200;
}

.user-dropdown.show { opacity: 1; visibility: visible; transform: translateY(0); }

.user-dropdown a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.65rem 1.2rem;
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
}

.user-dropdown a:hover { background: var(--gray-lighter); color: var(--primary); }
.user-dropdown a i { width: 16px; color: var(--gray); }
.user-dropdown a:hover i { color: var(--primary); }

.dropdown-divider { height: 1px; background: var(--gray-light); margin: 0.3rem 0; }

.nav-toggle {
    display: none;
    flex-direction: column; gap: 5px;
    background: none; border: none; cursor: pointer;
    padding: 4px;
}

.nav-toggle span {
    display: block; width: 26px; height: 2px;
    background: var(--dark); border-radius: 2px;
    transition: var(--transition);
}

/* =========================================
   BUTTONS
   ========================================= */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.7rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600; font-size: 0.95rem;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-primary { background: var(--primary); color: white; border-color: var(--primary); }
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-1px); }

.btn-accent { background: var(--accent); color: white; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); transform: translateY(-1px); }

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

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

.btn-white { background: white; color: var(--primary); border-color: white; }
.btn-white:hover { background: var(--gray-lighter); }

.btn-danger { background: var(--danger); color: white; border-color: var(--danger); }
.btn-danger:hover { background: #c0392b; }

.btn-sm { padding: 0.45rem 1rem; font-size: 0.85rem; }
.btn-lg { padding: 0.9rem 2rem; font-size: 1.05rem; }
.btn-full { width: 100%; }

/* =========================================
   HERO
   ========================================= */
.hero {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 45%, var(--accent-dark) 100%);
    color: white;
    padding: 6rem 0 5rem;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute; inset: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 400"><path fill="rgba(255,255,255,0.04)" d="M0,160L60,170.7C120,181,240,203,360,186.7C480,171,600,117,720,112C840,107,960,149,1080,165.3C1200,181,1320,171,1380,165.3L1440,160V400H0Z"/></svg>') no-repeat bottom;
    background-size: cover;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 50px;
    padding: 0.35rem 1rem;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 1.25rem;
    backdrop-filter: blur(10px);
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.25rem;
}

.hero h1 span { color: var(--gold); }

.hero p {
    font-size: 1.1rem;
    opacity: 0.88;
    margin-bottom: 2rem;
    max-width: 520px;
}

.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-stats {
    display: flex; gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.2);
}

.hero-stat-item h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold);
}

.hero-stat-item p { font-size: 0.85rem; opacity: 0.8; }

.hero-visual {
    display: flex; flex-direction: column; gap: 1rem;
    animation: float 4s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

.hero-card {
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius);
    padding: 1.2rem 1.5rem;
    backdrop-filter: blur(10px);
    display: flex; align-items: center; gap: 1rem;
}

.hero-card-icon {
    width: 48px; height: 48px;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}

.hero-card h4 { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.2rem; }
.hero-card p { font-size: 0.8rem; opacity: 0.75; }

/* =========================================
   SECTION STYLES
   ========================================= */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-lg { padding: 7rem 0; }

.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-label {
    display: inline-block;
    color: var(--accent);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1rem;
}

.section-header p { font-size: 1.05rem; color: var(--gray); max-width: 600px; margin: 0 auto; }

.bg-light { background: var(--gray-lighter); }
.bg-dark { background: var(--dark); color: white; }
.bg-primary { background: var(--primary); color: white; }
.bg-gradient { background: linear-gradient(135deg, var(--primary-dark), var(--accent-dark)); color: white; }

/* =========================================
   PRODUCT CARDS
   ========================================= */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.75rem;
}

.product-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.75rem;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--card-color, var(--primary));
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.product-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-lg);
    border-color: var(--card-color, var(--primary));
}

.product-card.featured {
    border-color: var(--gold);
    background: linear-gradient(160deg, #fffdf0 0%, white 100%);
}

.product-card.featured::before { background: var(--gold); }

.featured-badge {
    position: absolute;
    top: 1rem; right: 1rem;
    background: var(--gold);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-icon {
    width: 60px; height: 60px;
    border-radius: 16px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.6rem;
    margin-bottom: 1.25rem;
    background: var(--icon-bg, rgba(26,58,143,0.1));
    color: var(--card-color, var(--primary));
}

.product-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; color: var(--dark); }
.product-card .product-desc { font-size: 0.88rem; color: var(--gray); margin-bottom: 1.25rem; line-height: 1.6; flex: 1; }

.product-price {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--card-color, var(--primary));
    margin-bottom: 0.3rem;
}

.product-price small {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--gray);
}

.product-price.price-devis { font-size: 1rem; font-weight: 700; }

.product-card-footer {
    display: flex; gap: 0.75rem; margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--gray-light);
}

.product-card-footer .btn { flex: 1; font-size: 0.85rem; padding: 0.55rem 0.75rem; }

/* =========================================
   PRODUCT DETAIL PAGE
   ========================================= */
.product-detail-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 4rem 0;
}

.product-detail-hero .container {
    display: flex; gap: 3rem; align-items: center;
}

.product-detail-icon {
    width: 100px; height: 100px;
    border-radius: 24px;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 3rem;
    flex-shrink: 0;
    border: 2px solid rgba(255,255,255,0.3);
}

.product-detail-info h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.product-detail-info p { font-size: 1.05rem; opacity: 0.88; max-width: 600px; }

.product-detail-content { display: grid; grid-template-columns: 1fr 360px; gap: 2.5rem; padding: 3rem 0; }

.product-features-list { list-style: none; }
.product-features-list li {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
}

.product-features-list li:last-child { border-bottom: none; }
.product-features-list li i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-light);
    position: sticky;
    top: 100px;
}

.pricing-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--dark); }

.pricing-variant {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
}

.pricing-variant:hover, .pricing-variant.selected {
    border-color: var(--primary);
    background: rgba(26,58,143,0.04);
}

.pricing-variant input[type="radio"] { display: none; }
.pricing-variant-name { font-weight: 600; font-size: 0.95rem; }
.pricing-variant-price { font-size: 1.2rem; font-weight: 800; color: var(--primary); margin-top: 0.3rem; }
.pricing-variant-desc { font-size: 0.8rem; color: var(--gray); margin-top: 0.2rem; }

/* =========================================
   HOSTING / DOMAIN TABLES
   ========================================= */
.hosting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.5rem;
}

.hosting-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
    transition: var(--transition);
    text-align: center;
    position: relative;
}

.hosting-card.recommended {
    border-color: var(--primary);
    transform: scale(1.03);
}

.hosting-card.recommended::before {
    content: 'Recommandé';
    position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 700;
    padding: 0.3rem 1rem; border-radius: 50px;
}

.hosting-card:hover { box-shadow: var(--shadow-lg); }

.hosting-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.5rem; }

.hosting-price {
    font-size: 2rem; font-weight: 900; color: var(--primary);
    margin: 1rem 0 0.25rem;
}

.hosting-price span { font-size: 0.85rem; font-weight: 500; color: var(--gray); }

.hosting-features { margin: 1.5rem 0; text-align: left; }
.hosting-features li {
    display: flex; align-items: center; gap: 0.6rem;
    font-size: 0.88rem; padding: 0.35rem 0;
    border-bottom: 1px solid var(--gray-lighter);
}

.hosting-features li:last-child { border-bottom: none; }
.hosting-features li i { color: var(--accent); font-size: 0.8rem; }

/* Domain checker */
.domain-checker {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    max-width: 700px;
    margin: 0 auto 3rem;
}

.domain-input-group {
    display: flex; gap: 0.75rem; margin-bottom: 1rem;
}

.domain-input-group input {
    flex: 1;
    padding: 0.8rem 1.2rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    transition: var(--transition);
    outline: none;
}

.domain-input-group input:focus { border-color: var(--primary); }

.domain-result {
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 0.75rem;
}

.domain-result.available { background: #d4edda; color: #155724; display: flex; }
.domain-result.unavailable { background: #f8d7da; color: #721c24; display: flex; }
.domain-result.checking { background: var(--gray-lighter); color: var(--gray); display: flex; }

.domain-extensions {
    display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem;
}

.ext-badge {
    padding: 0.3rem 0.85rem;
    border: 2px solid var(--gray-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

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

/* =========================================
   CART & FORMS
   ========================================= */
.cart-table { width: 100%; border-collapse: collapse; }
.cart-table th {
    text-align: left;
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 2px solid var(--gray-light);
}

.cart-table td {
    padding: 1.2rem 1rem;
    border-bottom: 1px solid var(--gray-lighter);
    vertical-align: middle;
}

.cart-table tr:hover td { background: var(--gray-lighter); }

.cart-product-info { display: flex; align-items: center; gap: 1rem; }
.cart-product-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    background: var(--gray-lighter);
    flex-shrink: 0;
}

.cart-summary {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
}

.summary-row {
    display: flex; justify-content: space-between;
    padding: 0.65rem 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--gray-lighter);
}

.summary-row:last-child { border-bottom: none; }
.summary-total { font-weight: 800; font-size: 1.1rem; color: var(--primary); }

/* Forms */
.form-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid var(--gray-light);
    max-width: 480px;
    margin: 0 auto;
}

.form-card h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 0.5rem; }
.form-card > p { color: var(--gray); font-size: 0.9rem; margin-bottom: 2rem; }

.form-group { margin-bottom: 1.2rem; }

.form-group label {
    display: block;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.45rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-family: var(--font);
    transition: var(--transition);
    outline: none;
    background: white;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(26,58,143,0.1); }

.form-group.has-error input,
.form-group.has-error select { border-color: var(--danger); }

.form-error { font-size: 0.8rem; color: var(--danger); margin-top: 0.35rem; display: block; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

.form-divider { text-align: center; position: relative; margin: 1.5rem 0; color: var(--gray); font-size: 0.85rem; }
.form-divider::before, .form-divider::after {
    content: '';
    position: absolute; top: 50%;
    width: calc(50% - 1.5rem);
    height: 1px; background: var(--gray-light);
}
.form-divider::before { left: 0; }
.form-divider::after { right: 0; }

/* =========================================
   DASHBOARD
   ========================================= */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; gap: 2rem; padding: 2.5rem 0; }

.dashboard-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
    align-self: start;
    position: sticky;
    top: 100px;
}

.sidebar-user {
    text-align: center;
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--gray-light);
}

.sidebar-avatar {
    width: 72px; height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 1.8rem;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 0.75rem;
    font-weight: 700;
}

.sidebar-user h4 { font-size: 1rem; font-weight: 700; }
.sidebar-user p { font-size: 0.82rem; color: var(--gray); }

.sidebar-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    color: var(--dark);
    transition: var(--transition);
    margin-bottom: 0.2rem;
}

.sidebar-nav a:hover, .sidebar-nav a.active {
    background: rgba(26,58,143,0.07);
    color: var(--primary);
}

.sidebar-nav a.active { font-weight: 600; }
.sidebar-nav a i { width: 18px; color: var(--gray); }
.sidebar-nav a.active i, .sidebar-nav a:hover i { color: var(--primary); }

.dashboard-content { min-width: 0; }

.dashboard-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 2rem;
}

.dashboard-header h2 { font-size: 1.5rem; font-weight: 800; }

/* Stats cards */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1.25rem; margin-bottom: 2rem; }

.stat-card {
    background: white;
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 2px solid var(--gray-light);
}

.stat-icon {
    width: 44px; height: 44px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stat-card h3 { font-size: 1.6rem; font-weight: 900; }
.stat-card p { font-size: 0.82rem; color: var(--gray); margin-top: 0.2rem; }

/* Order status badges */
.status-badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    padding: 0.3rem 0.75rem;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 700;
}

.status-valide { background: #fff3cd; color: #856404; }
.status-paye { background: #cce5ff; color: #004085; }
.status-actif { background: #d4edda; color: #155724; }
.status-renouvele { background: #d1ecf1; color: #0c5460; }
.status-inactif { background: #f8d7da; color: #721c24; }
.status-annule { background: var(--gray-light); color: var(--gray); }

/* Progress stepper */
.order-stepper { display: flex; align-items: center; gap: 0; margin: 1.5rem 0; }
.step { flex: 1; text-align: center; position: relative; }
.step::before {
    content: '';
    position: absolute; top: 20px; left: 50%; width: 100%;
    height: 2px; background: var(--gray-light); z-index: 0;
}
.step:last-child::before { display: none; }
.step-circle {
    width: 40px; height: 40px;
    border-radius: 50%;
    background: var(--gray-light);
    color: var(--gray);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.9rem;
    margin: 0 auto 0.5rem;
    position: relative; z-index: 1;
    border: 2px solid var(--gray-light);
}
.step.done .step-circle { background: var(--accent); color: white; border-color: var(--accent); }
.step.active .step-circle { background: var(--primary); color: white; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(26,58,143,0.15); }
.step p { font-size: 0.78rem; color: var(--gray); }
.step.active p, .step.done p { color: var(--dark); font-weight: 600; }

/* =========================================
   ADMIN
   ========================================= */
.admin-layout { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }

.admin-sidebar {
    background: var(--dark);
    color: white;
    padding: 1.5rem;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}

.admin-sidebar .logo { padding: 1rem 0 2rem; text-align: center; }
.admin-sidebar .logo img { height: 44px; filter: brightness(0) invert(1); margin: 0 auto 0.5rem; }
.admin-sidebar .logo p { font-size: 0.75rem; opacity: 0.5; }

.admin-nav h5 {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    opacity: 0.5;
    padding: 0.75rem 0.75rem 0.35rem;
}

.admin-nav a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.7rem 0.75rem;
    border-radius: 8px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.75);
    transition: var(--transition);
    margin-bottom: 2px;
}

.admin-nav a:hover, .admin-nav a.active { background: rgba(255,255,255,0.1); color: white; }
.admin-nav a i { width: 18px; }

.admin-content { padding: 2rem; background: var(--gray-lighter); overflow-x: hidden; }
.admin-topbar {
    display: flex; align-items: center; justify-content: space-between;
    background: white;
    padding: 1rem 2rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 2rem;
}

.admin-topbar h1 { font-size: 1.3rem; font-weight: 800; }

/* Data table */
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 0.9rem 1.2rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: var(--gray-lighter);
    border-bottom: 2px solid var(--gray-light);
}

.data-table td {
    padding: 1rem 1.2rem;
    border-bottom: 1px solid var(--gray-lighter);
    font-size: 0.9rem;
}

.data-table tbody tr:hover td { background: rgba(26,58,143,0.03); }

.table-wrap {
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* =========================================
   ALERTS & TOASTS
   ========================================= */
.alert {
    display: flex; align-items: flex-start; gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-sm);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    border: 1px solid transparent;
}

.alert-success { background: #d4edda; color: #155724; border-color: #c3e6cb; }
.alert-error { background: #f8d7da; color: #721c24; border-color: #f5c6cb; }
.alert-warning { background: #fff3cd; color: #856404; border-color: #ffeeba; }
.alert-info { background: #cce5ff; color: #004085; border-color: #b8daff; }

.toast-container { position: fixed; bottom: 2rem; right: 2rem; z-index: 9999; display: flex; flex-direction: column; gap: 0.75rem; }

.toast {
    background: white;
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    box-shadow: var(--shadow-lg);
    display: flex; align-items: center; gap: 0.75rem;
    min-width: 280px; max-width: 380px;
    font-size: 0.9rem;
    animation: slideInRight 0.3s ease;
    border-left: 4px solid var(--primary);
}

.toast.toast-success { border-color: var(--accent); }
.toast.toast-error { border-color: var(--danger); }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* =========================================
   MISC COMPONENTS
   ========================================= */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 4rem 0 3rem;
    text-align: center;
}

.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 0.75rem; }
.page-hero p { font-size: 1.05rem; opacity: 0.85; max-width: 550px; margin: 0 auto; }

.breadcrumb {
    display: flex; align-items: center; gap: 0.5rem;
    font-size: 0.85rem;
    margin-top: 1.25rem;
    opacity: 0.75;
    justify-content: center;
}

.breadcrumb a:hover { opacity: 1; text-decoration: underline; }
.breadcrumb span { opacity: 0.6; }

.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 2rem; }

.why-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius);
    background: white;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.why-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

.why-icon {
    width: 64px; height: 64px;
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(26,58,143,0.1), rgba(14,158,110,0.1));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.8rem; margin: 0 auto 1.25rem;
    color: var(--primary);
}

.why-card h4 { font-size: 1rem; font-weight: 700; margin-bottom: 0.5rem; }
.why-card p { font-size: 0.88rem; color: var(--gray); }

/* Testimonials */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }

.testimonial-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow);
    position: relative;
}

.testimonial-card::before {
    content: '"';
    font-size: 5rem;
    color: var(--primary);
    opacity: 0.1;
    position: absolute;
    top: -0.5rem;
    left: 1rem;
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-text { font-size: 0.95rem; color: var(--gray); margin-bottom: 1.5rem; line-height: 1.7; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }

.author-avatar {
    width: 42px; height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.95rem;
}

.author-info h5 { font-size: 0.9rem; font-weight: 700; }
.author-info p { font-size: 0.8rem; color: var(--gray); }

.stars { color: var(--gold); font-size: 0.85rem; margin-bottom: 0.75rem; }

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.cta-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 1rem; }
.cta-section p { font-size: 1.05rem; opacity: 0.88; margin-bottom: 2rem; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-btns { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Footer */
.footer { margin-top: auto; }

.footer-top {
    background: var(--dark);
    color: white;
    padding: 4rem 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
}

.footer-logo { height: 48px; margin-bottom: 1rem; }

.footer-brand p { font-size: 0.88rem; opacity: 0.65; margin-bottom: 1.5rem; line-height: 1.7; }

.footer-social { display: flex; gap: 0.6rem; }

.footer-social a {
    width: 36px; height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,0.08);
    display: flex; align-items: center; justify-content: center;
    font-size: 0.88rem;
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer-social a:hover { background: var(--accent); color: white; }

.footer-col h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 1.25rem; color: white; }
.footer-col ul li { margin-bottom: 0.6rem; }
.footer-col ul a { font-size: 0.87rem; color: rgba(255,255,255,0.6); transition: var(--transition); }
.footer-col ul a:hover { color: var(--accent); }

.footer-contact li {
    display: flex; align-items: flex-start; gap: 0.65rem;
    font-size: 0.87rem; color: rgba(255,255,255,0.6);
    margin-bottom: 0.75rem;
}

.footer-contact li i { color: var(--accent); margin-top: 2px; flex-shrink: 0; }
.footer-contact li a { color: rgba(255,255,255,0.6); }
.footer-contact li a:hover { color: var(--accent); }

.footer-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    font-size: 0.82rem;
    color: rgba(255,255,255,0.7);
    margin-top: 1rem;
}

.footer-badge i { color: var(--accent); }

.footer-bottom {
    background: #111122;
    padding: 1.25rem 0;
}

.footer-bottom-inner {
    display: flex; align-items: center; justify-content: space-between;
}

.footer-bottom p { font-size: 0.85rem; color: rgba(255,255,255,0.45); }

.footer-bottom-links { display: flex; gap: 1.25rem; }
.footer-bottom-links a { font-size: 0.82rem; color: rgba(255,255,255,0.45); transition: var(--transition); }
.footer-bottom-links a:hover { color: var(--accent); }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 992px) {
    .hero-inner { grid-template-columns: 1fr; }
    .hero-visual { display: none; }
    .product-detail-content { grid-template-columns: 1fr; }
    .pricing-card { position: static; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { display: none; }
}

@media (max-width: 768px) {
    .nav-links, .nav-actions .btn-outline-nav, .nav-actions .btn-primary-nav { display: none; }
    .nav-links.show { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: white; padding: 1rem; box-shadow: var(--shadow-lg); z-index: 999; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom-inner { flex-direction: column; gap: 0.5rem; text-align: center; }
    .hosting-grid { grid-template-columns: 1fr; }
    .products-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .hero-btns { flex-direction: column; }
    .hero-stats { flex-wrap: wrap; gap: 1rem; }
}
