/* =============================================================
   PrenKey — Design System
   Purple / indigo / electric blue accent, deep navy primary.
   ============================================================= */

:root {
    /* Brand palette */
    --navy: #101329;
    --navy-2: #1a1d3d;
    --indigo: #5146E5;
    --indigo-dark: #4536d6;
    --purple: #7c3aed;
    --electric: #3b82f6;
    --cyan: #27a9d6;
    --green: #00a651;

    /* Neutrals */
    --ink: #0b1220;
    --muted: #64748b;
    --line: #e2e8f0;
    --bg: #ffffff;
    --panel: #f6f8fc;

    /* System */
    --radius: 14px;
    --radius-sm: 9px;
    --shadow: 0 1px 2px rgba(16,24,40,.06), 0 4px 16px rgba(16,24,40,.06);
    --shadow-lg: 0 12px 40px rgba(16,24,40,.14);

    /* Font */
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
}

/* ---- Image / SVG safety (CRITICAL) ---- */
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
svg { height: auto; }
.icon svg, .category-icon svg, .feature-icon svg, .step-icon svg { display: block; width: 28px; height: 28px; }
.product-card img, .product-gallery img { width: 100%; height: 100%; object-fit: cover; }

a { color: var(--indigo); text-decoration: none; }
a:hover { color: var(--indigo-dark); }

h1, h2, h3, h4 { line-height: 1.2; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: 2.75rem; font-weight: 800; }
h2 { font-size: 2.1rem; font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }

/* ---- Buttons ---- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 24px; border-radius: var(--radius-sm);
    font-weight: 600; font-size: .95rem; font-family: var(--font);
    border: 1px solid transparent; cursor: pointer;
    transition: transform .12s, box-shadow .12s, background .12s, border-color .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--indigo); color: #fff; box-shadow: 0 4px 14px rgba(79,70,229,.32); }
.btn-primary:hover { background: var(--indigo-dark); color: #fff; }
.btn-secondary { background: var(--purple); color: #fff; }
.btn-secondary:hover { background: #6d28d9; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: #cbd5e1; }
.btn-outline { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-lg { padding: 15px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---- Badges ---- */
.badge {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 3px 10px; border-radius: 999px;
    font-size: .75rem; font-weight: 600;
}
.badge-green { background: #dcfce7; color: #15803d; }
.badge-blue { background: #e0e7ff; color: #4338ca; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-gray { background: #f3f4f6; color: #4b5563; }
.badge-red { background: #fee2e2; color: #b91c1c; }

/* ---- Alerts ---- */
.alert { padding: 12px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; }
.alert-error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }

/* ---- Sections ---- */
.section { padding: 64px 0; }
.section-alt { background: var(--panel); }
.section-head { text-align: center; max-width: 620px; margin: 0 auto 40px; }
.section-head h2 { margin-bottom: 10px; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* =============================================================
   Header
   ============================================================= */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(14,16,38,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 20px; }
.logo { color: #fff; font-weight: 800; font-size: 1.4rem; letter-spacing: -0.02em; }
.logo span { color: var(--purple); }
.logo-img { height: 34px; width: auto; display: block; }

.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
    color: #cbd5e1; padding: 8px 14px; border-radius: 8px;
    font-weight: 500; font-size: .93rem;
    transition: color .12s, background .12s;
}
.main-nav a:hover { color: #fff; background: rgba(255,255,255,.08); }
.main-nav a.active { color: #fff; background: rgba(124,58,237,.25); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
    position: relative; display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 10px; color: #cbd5e1;
    transition: color .12s, background .12s;
}
.icon-btn:hover { color: #fff; background: rgba(255,255,255,.08); }
.badge-count {
    position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px;
    padding: 0 5px; border-radius: 999px; background: #7c3aed; color: #fff;
    font-size: 10.5px; font-weight: 700; line-height: 18px; text-align: center;
    box-shadow: 0 0 0 2px #0e1026;
}

.currency-switch { display: flex; border: 1px solid rgba(255,255,255,.16); border-radius: 8px; overflow: hidden; }
.currency-switch a { padding: 6px 11px; font-size: .8rem; font-weight: 600; color: #cbd5e1; line-height: 1; }
.currency-switch a.active { background: var(--purple); color: #fff; }
.currency-switch-mobile { display: none; }

.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; line-height: 1; }

@media (max-width: 900px) {
    .nav-toggle { display: block; }
    .currency-switch-desktop { display: none; }
    .main-nav {
        display: none; position: absolute; top: 72px; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        background: var(--navy); padding: 12px 16px 20px;
        border-bottom: 1px solid rgba(255,255,255,.08);
    }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 13px 16px; }
    .currency-switch-mobile { display: flex; margin: 10px 16px 4px; align-self: flex-start; }
}

/* =============================================================
   Hero
   ============================================================= */
.hero {
    background: linear-gradient(135deg, #0f1228 0%, #191643 55%, #21164f 100%);
    color: #fff; position: relative; overflow: hidden;
    padding: 64px 0 72px;
}
.hero::before {
    content: ""; position: absolute; right: -160px; top: -160px;
    width: 520px; height: 520px; border-radius: 50%;
    background: radial-gradient(circle, rgba(124,58,237,.28), transparent 65%);
}
.hero::after {
    content: ""; position: absolute; left: -140px; bottom: -180px;
    width: 440px; height: 440px; border-radius: 50%;
    background: radial-gradient(circle, rgba(59,130,246,.2), transparent 65%);
}
.hero-layout { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.hero-inner { max-width: 560px; }
.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    background: rgba(124,58,237,.16); color: #c4b5fd;
    border: 1px solid rgba(124,58,237,.35);
    padding: 6px 14px; border-radius: 999px;
    font-size: .82rem; font-weight: 600; margin-bottom: 20px;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); }
.hero h1 { font-size: 3rem; margin-bottom: 16px; }
.hero h1 .accent {
    background: linear-gradient(90deg, #a78bfa, #818cf8, #60a5fa);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: #c4b5fd;
}
.hero .lead { color: #cbd5e1; font-size: 1.12rem; margin-bottom: 28px; max-width: 500px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-ctas .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); background: rgba(255,255,255,.06); }
.hero-ctas .btn-ghost:hover { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.7); color: #fff; }
.hero-points { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.hero-points li { color: #cbd5e1; font-size: .9rem; display: flex; align-items: center; gap: 7px; }
.tick { color: #a78bfa; font-weight: 700; }

.hero-visual { display: flex; justify-content: center; }
.hero-slider { position: relative; width: 100%; max-width: 360px; }
.hero-slide { display: none; }
.hero-slide.active { display: block; animation: heroFade .35s ease; }
@keyframes heroFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.hero-panel {
    display: block;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 18px; overflow: hidden;
    box-shadow: 0 24px 60px rgba(0,0,0,.4);
    width: 100%;
    transition: border-color .15s, box-shadow .15s;
}
.hero-panel:hover { border-color: rgba(167,139,250,.5); box-shadow: 0 28px 70px rgba(0,0,0,.5); }
.hero-panel-img { height: 200px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); padding: 18px; }
.hero-panel-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.hero-panel-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 3rem; font-weight: 800; color: #7c3aed;
    background: linear-gradient(135deg, rgba(124,58,237,.15), rgba(79,70,229,.15));
}
.hero-panel-body { padding: 18px 20px 20px; }
.hero-panel-body .cat { color: #a78bfa; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.hero-panel-body .name { color: #fff; font-weight: 700; font-size: 1.05rem; margin-bottom: 4px; }
.hero-panel-body .price { color: #c4b5fd; font-weight: 800; font-size: 1.25rem; }
.hero-panel-body .cta { display: inline-block; margin-top: 12px; color: #a78bfa; font-weight: 600; font-size: .9rem; }

.hero-slider-btn {
    position: absolute; top: 42%; transform: translateY(-50%);
    background: rgba(14,16,38,.55); color: #fff; border: 1px solid rgba(255,255,255,.2);
    width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: .95rem; line-height: 1;
    display: flex; align-items: center; justify-content: center; transition: background .12s;
}
.hero-slider-btn:hover { background: rgba(124,58,237,.7); }
.hero-slider-btn.prev { left: -12px; }
.hero-slider-btn.next { right: -12px; }
.hero-slider-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.hero-dot {
    width: 9px; height: 9px; border-radius: 50%; border: none; cursor: pointer; padding: 0;
    background: rgba(255,255,255,.28); transition: background .12s;
}
.hero-dot.active { background: #a78bfa; }

@media (max-width: 900px) {
    .hero-layout { grid-template-columns: 1fr; }
    .hero-visual { margin-top: 32px; }
    .hero h1 { font-size: 2.3rem; }
    .hero-slider { max-width: 360px; }
    .hero-slider-btn.prev { left: 0; }
    .hero-slider-btn.next { right: 0; }
}

/* =============================================================
   Stats bar
   ============================================================= */
.stats-bar { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 640px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
.stat { text-align: center; padding: 24px 16px; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--indigo); letter-spacing: -0.02em; }
.stat-label { color: var(--muted); font-size: .86rem; margin-top: 2px; }

/* =============================================================
   Category cards
   ============================================================= */
.category-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.category-card {
    display: flex; flex-direction: column; align-items: center;
    padding: 26px 24px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
    color: var(--ink);
    transition: transform .15s, box-shadow .15s, border-color .15s;
}
.category-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--purple); color: var(--ink); }
.category-icon {
    width: 56px; height: 56px; border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ede9fe, #e0e7ff);
    color: var(--indigo); margin-bottom: 16px;
}
.category-card h3 { margin-bottom: 6px; }
.category-card p { color: var(--muted); font-size: .9rem; flex: 1; text-align: center; }
.category-card .explore { color: var(--indigo); font-size: .88rem; font-weight: 600; margin-top: 14px; }

/* =============================================================
   Product cards
   ============================================================= */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; }
.product-card {
    display: flex; flex-direction: column;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
    overflow: hidden; color: var(--ink);
    transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.product-card-img { position: relative; height: 176px; background: #eef1f7; overflow: hidden; }
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.product-card-placeholder {
    width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
    font-size: 2.6rem; font-weight: 800; color: #cbd5e1;
    background: linear-gradient(135deg, #f1f3f9, #e5e9f2);
}
.product-card-badge { position: absolute; top: 10px; left: 10px; }
.product-card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.product-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.product-card-category { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--indigo); margin-bottom: 4px; }
.product-card-rating { display: flex; align-items: center; gap: 5px; font-size: .84rem; margin-bottom: 12px; }
.product-card-rating .stars { color: #f59e0b; }
.product-card-rating .stars-empty { color: #e5e7eb; }
.product-card-rating .rating-value { font-weight: 700; color: var(--ink); }
.product-card-rating .rating-count { color: var(--muted); }
.product-card-desc { color: var(--muted); font-size: .88rem; margin-bottom: 14px; flex: 1; }
.product-card-footer { display: flex; align-items: center; justify-content: space-between; }
.product-card-price { font-weight: 800; font-size: 1.12rem; color: var(--indigo); }
.product-card .btn { padding: 8px 16px; font-size: .85rem; }

/* =============================================================
   Feature cards
   ============================================================= */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 20px; }
.feature-card {
    padding: 26px 24px; background: #fff;
    border: 1px solid var(--line); border-radius: var(--radius);
}
.feature-icon {
    width: 48px; height: 48px; border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    background: #ede9fe; color: var(--indigo); margin-bottom: 14px;
}
.feature-card h3 { margin-bottom: 8px; }
.feature-card p { color: var(--muted); font-size: .92rem; }

/* =============================================================
   Steps
   ============================================================= */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps li { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: 50%;
    background: var(--indigo); color: #fff; font-weight: 700; font-size: .92rem; margin-bottom: 12px;
}
.steps strong { display: block; margin-bottom: 4px; }
.steps span { color: var(--muted); font-size: .9rem; }

/* =============================================================
   Trust / security strip
   ============================================================= */
.trust-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.trust-item { display: flex; align-items: center; gap: 14px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.trust-icon { width: 40px; height: 40px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: #dcfce7; color: #15803d; flex-shrink: 0; }
.trust-icon svg { width: 22px; height: 22px; }
.trust-item strong { display: block; font-size: .95rem; }
.trust-item span { color: var(--muted); font-size: .82rem; }

/* =============================================================
   Breadcrumb
   ============================================================= */
.breadcrumb { font-size: .86rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--indigo); }
.breadcrumb .sep { margin: 0 8px; color: #cbd5e1; }

/* =============================================================
   Forms
   ============================================================= */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.form-group input, .form-group select, .form-group textarea {
    width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    font-size: .95rem; font-family: var(--font); background: #fff; color: var(--ink);
    transition: border-color .12s, box-shadow .12s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.14);
}
.form-group textarea { min-height: 160px; resize: vertical; }
.form-hint { font-size: .8rem; color: var(--muted); margin-top: 4px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .form-row { grid-template-columns: 1fr; } }

/* =============================================================
   Tables
   ============================================================= */
.table-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.data-table { width: 100%; border-collapse: collapse; }
.data-table th, .data-table td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.data-table th { background: #f9fafb; font-weight: 600; color: var(--muted); text-transform: uppercase; font-size: .72rem; letter-spacing: .04em; }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: #fafbfc; }

/* =============================================================
   Pagination
   ============================================================= */
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 32px; }
.pagination a { padding: 9px 15px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); background: #fff; }
.pagination a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }
.pagination a:hover:not(.active) { border-color: var(--indigo); }

/* =============================================================
   Product page
   ============================================================= */
.shop-page, .product-page, .cart-page, .checkout-page { padding: 44px 0; }

/* Shop toolbar + filters */
.shop-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.shop-search { display: flex; gap: 10px; flex: 1; max-width: 480px; }
.shop-search input { flex: 1; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; font-family: var(--font); }
.shop-sort { display: flex; align-items: center; gap: 8px; }
.shop-sort select { padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .9rem; font-family: var(--font); background: #fff; }
.category-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.category-pills a { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink); font-size: .88rem; background: #fff; }
.category-pills a:hover { border-color: var(--indigo); }
.category-pills a.active { background: var(--indigo); color: #fff; border-color: var(--indigo); }

/* 4-column product grid */
.product-grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .product-grid-4 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .product-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .product-grid-4 { grid-template-columns: 1fr; } }

.product-layout { display: grid; grid-template-columns: 420px 1fr; gap: 40px; align-items: start; }
@media (max-width: 920px) { .product-layout { grid-template-columns: 1fr; } }
.product-gallery { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.product-gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.product-main h1 { font-size: 2rem; margin-bottom: 10px; }
.product-short { color: var(--muted); font-size: 1.05rem; margin-bottom: 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 10px 20px; margin: 16px 0; color: #15803d; font-size: .88rem; font-weight: 600; }

.purchase-box { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: #fff; box-shadow: var(--shadow); }
.field-label { display: block; font-weight: 600; margin-bottom: 10px; font-size: .92rem; }
.variant-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.variant-option {
    display: flex; align-items: center; gap: 12px; padding: 13px 16px;
    border: 1px solid var(--line); border-radius: var(--radius-sm); cursor: pointer; background: #fff;
    transition: border-color .12s;
}
.variant-option:hover { border-color: var(--indigo); }
.variant-option input { accent-color: var(--indigo); }
.variant-name { flex: 1; font-weight: 500; }
.variant-price { font-weight: 700; color: var(--indigo); }
.purchase-row { margin-bottom: 16px; }
.purchase-row input { width: 80px; padding: 9px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.purchase-actions { display: flex; gap: 12px; }
.wishlist-form { margin: 14px 0 0; }
.wishlist-btn { border: 1px solid var(--line); }
.wishlist-btn.active { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.wishlist-item { display: flex; flex-direction: column; }
.wishlist-item .product-card { flex: 1; }
.wishlist-remove { margin-top: 10px; text-align: center; }

.delivery-note { margin: 20px 0; padding: 16px 18px; background: #eef2ff; border: 1px solid #c7d2fe; border-radius: var(--radius-sm); font-size: .92rem; }
.required-info { margin: 20px 0; padding: 20px; background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); }
.required-info h3 { margin-bottom: 10px; }
.muted { color: var(--muted); }
.reviews h3 { margin-bottom: 16px; }
.review-card { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px 20px; margin-bottom: 12px; background: #fff; }
.review-rating { color: #f59e0b; }
.reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.reviews-summary { display: flex; align-items: center; gap: 8px; }
.reviews-avg { font-size: 1.6rem; font-weight: 800; color: var(--ink); }
.reviews-stars { color: #f59e0b; font-size: 1.05rem; }
.review-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.review-title { margin: 4px 0 6px; font-size: 1rem; }
.review-meta { margin-top: 8px; font-size: .85rem; }
.review-author { font-weight: 600; color: var(--ink); }

/* Star rating picker (radio-based, no JS) */
.star-picker { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; margin: 6px 0 14px; }
.star-picker input { position: absolute; opacity: 0; width: 0; height: 0; }
.star-picker label { font-size: 1.6rem; color: #d1d5db; cursor: pointer; transition: color .1s; }
.star-picker label:hover,
.star-picker label:hover ~ label,
.star-picker input:checked ~ label { color: #f59e0b; }

/* Order page review UI */
.order-review-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 14px; background: #fff; }
.order-review-heading { margin-bottom: 12px; }
.review-form .field-label { display: block; font-weight: 600; margin-bottom: 4px; font-size: .9rem; }
.review-form input[type="text"], .review-form textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; }
.review-form .form-group { margin-bottom: 14px; }
.submitted-review { padding: 12px 0; }
.submitted-review .review-rating { font-size: 1.1rem; }

/* =============================================================
   Cart
   ============================================================= */
.cart-layout { display: grid; grid-template-columns: 1fr 340px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .cart-layout { grid-template-columns: 1fr; } }
.cart-items { display: flex; flex-direction: column; gap: 14px; }
.cart-item {
    display: grid; grid-template-columns: 1fr auto auto auto; gap: 18px; align-items: center;
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; box-shadow: var(--shadow);
}
@media (max-width: 640px) { .cart-item { grid-template-columns: 1fr auto; } }
.cart-item-name { font-weight: 600; }
.cart-item-plan { color: var(--muted); font-size: .88rem; }
.cart-item-price { font-weight: 700; color: var(--indigo); white-space: nowrap; }
.qty-input { width: 56px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); text-align: center; }
.cart-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.cart-summary h2 { font-size: 1.2rem; }
.cart-actions { display: flex; gap: 12px; }

/* =============================================================
   Cart / checkout (legacy helpers)
   ============================================================= */
.cart-total { font-size: 1.15rem; }

.checkout-layout { display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start; }
@media (max-width: 860px) { .checkout-layout { grid-template-columns: 1fr; } }
.checkout-section { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); }
.checkout-section h2 { font-size: 1.2rem; margin-bottom: 16px; }
.checkout-side { }
.checkout-summary { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.checkout-summary h2 { font-size: 1.2rem; margin-bottom: 16px; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form input { flex: 1; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.coupon-applied { background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: var(--radius-sm); padding: 12px 14px; }
.create-account { margin-top: 4px; }
.create-account-checkbox { display: flex; gap: 8px; align-items: flex-start; font-size: .9rem; color: var(--ink); cursor: pointer; }
.create-account-checkbox input { margin-top: 3px; flex-shrink: 0; }
.account-fields { margin-top: 12px; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #f9fafb; }
.summary-row { display: flex; justify-content: space-between; padding: 7px 0; font-size: .92rem; }
.summary-total { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 14px; font-weight: 800; font-size: 1.1rem; }
.summary-item { padding: 8px 0; border-bottom: 1px solid var(--line); }
.summary-item:last-of-type { border-bottom: none; }
.summary-item-row { display: flex; justify-content: space-between; gap: 12px; }
.summary-item-name { flex: 1; }
.summary-item-qty { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.terms { display: block; margin: 16px 0; font-size: .86rem; color: var(--muted); }

/* =============================================================
   Contact
   ============================================================= */
.contact-layout { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: start; }
@media (max-width: 820px) { .contact-layout { grid-template-columns: 1fr; } }
.contact-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-item { padding: 12px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: none; }
.contact-item strong { display: block; margin-bottom: 3px; font-size: .92rem; }
.contact-item span { color: var(--muted); font-size: .9rem; }
.contact-form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.contact-form textarea { width: 100%; min-height: 160px; resize: vertical; }

/* =============================================================
   Auth
   ============================================================= */
.auth-wrap { padding: 60px 0; min-height: 55vh; }
.auth-card {
    max-width: 440px; margin: 0 auto; background: #fff;
    border: 1px solid var(--line); border-radius: 16px; padding: 34px; box-shadow: var(--shadow-lg);
}
.auth-card h1 { font-size: 1.6rem; margin-bottom: 8px; }
.auth-card label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 16px; }
.auth-card input { display: block; width: 100%; margin-top: 6px; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: 1rem; }
.auth-card input:focus { outline: none; border-color: var(--indigo); box-shadow: 0 0 0 3px rgba(79,70,229,.14); }
.auth-card .btn { width: 100%; margin-top: 8px; }
.auth-alt { text-align: center; font-size: .9rem; color: var(--muted); margin-top: 16px; }

/* =============================================================
   Footer
   ============================================================= */
.site-footer { background: var(--navy); color: #94a3b8; padding: 55px 0 0; font-size: .9rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: #fff; font-weight: 800; font-size: 1.3rem; margin-bottom: 10px; }
.footer-brand span { color: var(--purple); }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 10px; }
.footer-col p { color: #64748b; line-height: 1.7; }
.footer-title { color: #fff; font-weight: 700; margin-bottom: 14px; font-size: .88rem; text-transform: uppercase; letter-spacing: .05em; }
.footer-col a { display: block; color: #94a3b8; padding: 5px 0; transition: color .12s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; color: #64748b; font-size: .84rem; }
.footer-social { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-social a { color: #94a3b8; display: inline-flex; align-items: center; gap: 6px; }
.footer-social a:hover { color: #fff; }
.footer-payment { display: flex; align-items: center; gap: 10px; }
.footer-payment-label { color: #64748b; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.footer-payment-img { width: 100%; max-width: 500px; height: auto; display: block; background: #fff; padding: 7px 12px; border-radius: 6px; }

/* =============================================================
   Account dashboard
   ============================================================= */
.account-layout { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start; }
@media (max-width: 820px) { .account-layout { grid-template-columns: 1fr; } }
.account-sidebar { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.account-sidebar a { display: block; padding: 13px 20px; color: var(--ink); font-weight: 500; font-size: .92rem; border-bottom: 1px solid var(--line); }
.account-sidebar a:last-child { border-bottom: none; }
.account-sidebar a:hover, .account-sidebar a.active { background: #eef2ff; color: var(--indigo); }
.account-sidebar form { display: block; }
.account-sidebar button { display: block; width: 100%; text-align: left; padding: 13px 20px; background: none; border: none; color: var(--ink); font-weight: 500; font-size: .92rem; cursor: pointer; border-bottom: 1px solid var(--line); font-family: inherit; }
.account-sidebar form:last-child button { border-bottom: none; }
.account-sidebar button:hover { background: #eef2ff; color: var(--indigo); }

/* =============================================================
   Order timeline
   ============================================================= */
.order-timeline { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 24px; position: relative; }
.order-timeline::before { content: ""; position: absolute; top: 14px; left: 8%; right: 8%; height: 2px; background: var(--line); }
.timeline-step { display: flex; flex-direction: column; align-items: center; text-align: center; flex: 1; position: relative; z-index: 1; }
.timeline-dot {
    width: 30px; height: 30px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: #fff; border: 2px solid var(--line); color: var(--muted);
    font-size: .82rem; font-weight: 700; margin-bottom: 8px;
}
.timeline-step.done .timeline-dot { background: var(--indigo); border-color: var(--indigo); color: #fff; }
.timeline-label { font-size: .78rem; color: var(--muted); font-weight: 500; }
.timeline-step.done .timeline-label { color: var(--ink); }
.order-info { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; margin-bottom: 24px; box-shadow: var(--shadow); }

/* =============================================================
   Account dashboard stat cards + ticket thread + order confirm
   ============================================================= */
.stat-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; box-shadow: var(--shadow); }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--indigo); }
.stat-card .stat-label { color: var(--muted); font-size: .82rem; margin-top: 2px; }

.payment-required { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.payment-required h2 { margin-top: 0; }

.ticket-thread { display: flex; flex-direction: column; gap: 14px; }
.ticket-msg { max-width: 80%; padding: 12px 16px; border-radius: 12px; background: #f3f4f6; }
.ticket-msg.mine { align-self: flex-end; background: #e0e7ff; }
.ticket-msg.admin { align-self: flex-start; background: #f3f4f6; }
.ticket-msg-author { font-weight: 700; font-size: .82rem; margin-bottom: 4px; }
.ticket-msg-body { font-size: .92rem; }
.ticket-msg-time { font-size: .74rem; color: var(--muted); margin-top: 6px; }

.order-confirm-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; text-align: left; box-shadow: var(--shadow); }
.order-confirm-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.order-confirm-row:last-child { border-bottom: none; }
.order-confirm-row span:first-child { color: var(--muted); }

/* =============================================================
   Misc
   ============================================================= */
.page-content { max-width: 760px; line-height: 1.8; }
.empty { padding: 48px; text-align: center; color: var(--muted); }
.section-title { font-size: 1.05rem; font-weight: 700; margin: 26px 0 12px; }

/* Dynamic content pages (About / Policies) */
.content-page-hero {
    background: linear-gradient(135deg, #0f1228 0%, #191643 60%, #21164f 100%);
    color: #fff; padding: 56px 0; text-align: center;
}
.content-page-hero h1 { color: #fff; font-size: 2.2rem; margin: 0 0 10px; }
.content-page-subtitle { color: #cbd5e1; font-size: 1.08rem; max-width: 640px; margin: 0 auto; }
.content-card {
    background: #fff; border: 1px solid var(--line); border-radius: 16px;
    padding: 44px 48px; margin: 40px auto 70px; max-width: 1100px;
    box-shadow: var(--shadow); font-size: 1.05rem; line-height: 1.8; color: #1f2937;
}
.content-card p { margin: 0 0 18px; }
@media (max-width: 640px) {
    .content-page-hero { padding: 40px 0; }
    .content-page-hero h1 { font-size: 1.7rem; }
    .content-card { padding: 24px 20px; margin: 24px auto 44px; font-size: 1rem; }
}

/* Admin login */
.admin-login-body { display: flex; align-items: center; justify-content: center; min-height: 100vh; background: linear-gradient(135deg, #6c7be3, #7e7a8d); }

.admin-login-card { width: 100%; max-width: 380px; background: #fff; border-radius: 16px; padding: 38px; box-shadow: 0 24px 70px rgba(0,0,0,.35); }
.admin-login-card h1 { margin-bottom: 8px; text-align: center; }
.admin-login-card label { display: block; font-weight: 600; margin-bottom: 14px; font-size: .9rem; }
.admin-login-card input { width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); margin-top: 6px; }
.admin-login-card .btn { width: 100%; margin-top: 10px; }
