/* ============================================================
   NEME5WEB — Style System v3
   Black / Red / Montserrat+Inter — dramatic redesign
   ============================================================ */

:root {
    --bg:          #080808;
    --bg-2:        #0d0d0d;
    --bg-3:        #111;
    --bg-card:     #0e0e0e;
    --border:      rgba(255,255,255,0.13);
    --border-light:rgba(255,255,255,0.22);
    --border-acc:  rgba(227,28,28,0.3);
    --text:        #f0f0f0;
    --text-muted:  #888;
    --text-dim:    #3d3d3d;
    --accent:      #e31c1c;
    --accent-2:    #b81515;
    --accent-glow: rgba(227,28,28,0.2);
    --gold:        #e9c46a;
    --gold-dim:    rgba(233,196,106,0.12);
    --success-light:#52b788;
    --warning:     #e9c46a;
    --error:       #e31c1c;
    --font-heading:'Montserrat', sans-serif;
    --font-display:'Montserrat', sans-serif;
    --font-body:   'Inter', sans-serif;
    --radius:      8px;
    --radius-lg:   14px;
    --shadow:      0 8px 32px rgba(0,0,0,0.7);
    --shadow-acc:  0 0 40px rgba(227,28,28,0.18);
    --transition:  0.25s ease;
    --nav-h:       76px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: var(--font-body); background: var(--bg); color: var(--text); line-height: 1.6; overflow-x: hidden; min-height: 100vh; }
img  { display: block; max-width: 100%; }
a    { color: inherit; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-2); }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Scroll progress bar ── */
body::before {
    content: '';
    position: fixed; top: 0; left: 0;
    width: calc(var(--scroll-pct, 0) * 1%);
    height: 2px;
    background: var(--accent);
    z-index: 10001;
    transition: width 0.1s linear;
}

/* ── Page entrance ── */
body { animation: bodyIn 0.4s ease; }
@keyframes bodyIn { from { opacity: 0; } to { opacity: 1; } }

/* ── Cursors ── */
a, button, [data-modal-open], .feature-item, .btn, label, select, input, textarea { cursor: pointer; }
input[type="text"], input[type="email"], input[type="password"],
input[type="tel"], input[type="number"], input[type="url"], textarea { cursor: text; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--nav-h);
    background: rgba(8,8,8,0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
    z-index: 1000;
    transition: border-color var(--transition), transform 0.35s ease;
}
.navbar.scrolled    { border-bottom-color: var(--border); }
.navbar--hidden     { transform: translateY(-100%); }

.nav-container {
    max-width: 1320px; margin: 0 auto;
    padding: 0 32px; height: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.nav-logo { text-decoration: none; display: flex; align-items: center; gap: 0; flex-shrink: 0; }
.nav-logo-icon { height: 40px; width: auto; object-fit: contain; flex-shrink: 0; margin-right: -4px; mix-blend-mode: screen; }
.logo-neme5 { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: 0.5px; line-height: 1; }
.logo-web   { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: 0.5px; line-height: 1; }

.nav-links { display: flex; align-items: center; gap: 16px; list-style: none; }
.nav-link {
    text-decoration: none; color: var(--text-muted);
    font-size: 14px; font-weight: 500;
    padding: 6px 12px; border-radius: var(--radius);
    transition: color var(--transition); will-change: transform;
}
.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--text); }
.nav-admin { color: var(--accent) !important; }
.nav-btn { text-decoration: none; font-family: var(--font-body); font-size: 13px; font-weight: 600; padding: 7px 18px; border-radius: var(--radius); transition: all var(--transition); }
.nav-btn--outline { color: var(--text-muted); border: 1px solid var(--border-light); }
.nav-btn--outline:hover { color: var(--text); border-color: rgba(255,255,255,0.25); }
.nav-btn--solid { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.nav-btn--solid:hover { background: var(--accent-2); }
.nav-user { display: flex; align-items: center; gap: 8px; }
.user-avatar { width: 30px; height: 30px; background: var(--accent); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.user-name { font-size: 13px; color: var(--text-muted); }

/* Burger */
.burger { display: none; flex-direction: column; justify-content: center; gap: 5px; background: none; border: none; cursor: pointer; padding: 10px; min-width: 44px; min-height: 44px; }
.burger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all var(--transition); }
.burger.open span:nth-child(1) { transform: rotate(45deg) translate(5px,5px); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px,-5px); }

/* ============================================================
   MESSAGES
   ============================================================ */
.messages-wrapper { position: fixed; top: calc(var(--nav-h) + 12px); right: 16px; z-index: 999; display: flex; flex-direction: column; gap: 8px; max-width: 360px; width: calc(100vw - 32px); }
.message { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); font-size: 14px; box-shadow: var(--shadow); }
.message--success { border-color: rgba(82,183,136,0.35); }
.message--error   { border-color: rgba(227,28,28,0.35); }
.message-icon { font-size: 16px; flex-shrink: 0; }
.message--success .message-icon { color: var(--success-light); }
.message--error   .message-icon { color: var(--accent); }
.message-close { margin-left: auto; background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 18px; line-height: 1; }

/* ============================================================
   LAYOUT
   ============================================================ */
.main-content { padding-top: var(--nav-h); min-height: calc(100vh - 200px); }
.container { max-width: 1320px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 100px 0; }
.section--alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); padding: 48px 0 32px; margin-top: 80px; }
.footer-container { max-width: 1320px; margin: 0 auto; padding: 0 40px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 48px; align-items: start; }
.footer-brand p { color: var(--text-muted); font-size: 13px; margin-top: 10px; }
.footer-links { display: flex; flex-direction: column; gap: 12px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; transition: color var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-copy { text-align: right; }
.footer-copy p { color: var(--text-dim); font-size: 13px; }

/* ============================================================
   TYPOGRAPHY (sections)
   ============================================================ */
.section-eyebrow {
    display: inline-block;
    font-size: 11px; font-weight: 700;
    letter-spacing: 2.5px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 16px;
}
.section-eyebrow--center { display: flex; justify-content: center; }

.section-tag {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 4px 12px;
    background: rgba(227,28,28,0.09); border: 1px solid rgba(227,28,28,0.22);
    border-radius: 100px; color: var(--accent);
    font-size: 11px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 20px;
}
.section-tag--center { display: flex; justify-content: center; }

.section-title {
    font-family: var(--font-heading);
    font-size: clamp(36px, 5.5vw, 72px);
    font-weight: 900; line-height: 1; letter-spacing: -1.5px; margin-bottom: 20px;
}
.section-title span { color: var(--accent); }
.section-title--center { text-align: center; }
.section-subtitle { color: var(--text-muted); font-size: clamp(15px, 2vw, 18px); max-width: 560px; line-height: 1.75; }
.section-subtitle--center { text-align: center; margin: 0 auto; }

/* ============================================================
   HERO — 2-COLUMN: content left, Three.js right
   ============================================================ */
.hero {
    display: grid;
    grid-template-columns: 1fr 46%;
    min-height: 100vh;
    align-items: center;
    position: relative;
    overflow: hidden;
    /* Subtle dot grid background */
    background-image: radial-gradient(rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Red radial glow behind canvas */
.hero::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 55%;
    height: 80%;
    background: radial-gradient(ellipse, rgba(227,28,28,0.12) 0%, transparent 65%);
    pointer-events: none;
}

.hero-content {
    padding: 120px 48px 80px calc((100vw - 1320px) / 2 + 40px);
    position: relative;
    z-index: 1;
}
@media (max-width: 1320px) { .hero-content { padding-left: 40px; } }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: 11px; font-weight: 700;
    letter-spacing: 3px; text-transform: uppercase;
    color: var(--accent); margin-bottom: 28px;
    opacity: 0;
    animation: fadeUp 0.5s ease 0.05s forwards;
}
.hero-eyebrow::before { content: ''; width: 20px; height: 1px; background: var(--accent); }

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(56px, 8vw, 116px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -3px;
    margin-bottom: 28px;
}
.hero-line { display: block; will-change: transform; }
.hero-line.line-accent { color: var(--accent); text-shadow: none !important; }
.hero-line.line-muted  { color: rgba(240,240,240,0.2); text-shadow: none !important; }

.hero-desc {
    color: var(--text-muted);
    font-size: 17px; line-height: 1.75;
    max-width: 480px; margin-bottom: 40px;
    will-change: transform;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.55s forwards;
}
.hero-actions {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    will-change: transform;
    opacity: 0;
    animation: fadeUp 0.6s ease 0.7s forwards;
}
.hero-stats {
    display: flex; align-items: stretch; gap: 0;
    margin-top: 52px; padding-top: 36px;
    border-top: 1px solid var(--border);
    opacity: 0;
    animation: fadeUp 0.6s ease 0.85s forwards;
}
.hero-stat {
    flex: 1; text-align: center; padding: 0 24px;
    border-right: 1px solid var(--border);
}
.hero-stat:last-child { border-right: none; }
.stat-val  { font-family: var(--font-heading); font-size: 34px; font-weight: 900; color: var(--accent); line-height: 1; letter-spacing: -1px; text-shadow: 0 0 20px rgba(227,28,28,0.6); }
.stat-lbl  { font-size: 11px; color: var(--text-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

/* Canvas wrapper */
.hero-canvas-wrap {
    position: relative;
    height: 100vh;
    overflow: hidden;
    z-index: 1;
}
#three-canvas {
    position: absolute;
    inset: 0;
    width: 100% !important;
    height: 100% !important;
}

@keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-body); font-size: 14px; font-weight: 600;
    padding: 12px 24px; border-radius: var(--radius);
    border: none; cursor: pointer; text-decoration: none;
    transition: all var(--transition); letter-spacing: 0.2px;
    white-space: nowrap; position: relative; overflow: hidden; will-change: transform;
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-2); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(227,28,28,0.35); }
.btn--outline { background: transparent; color: var(--text); border: 1px solid var(--border-light); }
.btn--outline:hover { border-color: rgba(255,255,255,0.3); background: rgba(255,255,255,0.04); }
.btn--ghost { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }
.btn--ghost:hover { color: var(--text); border-color: var(--border-light); }
.btn--gold { background: var(--gold); color: #080808; }
.btn--gold:hover { background: #d4a83a; transform: translateY(-1px); }
.btn--danger { background: rgba(227,28,28,0.12); color: var(--accent); border: 1px solid rgba(227,28,28,0.28); }
.btn--danger:hover { background: var(--accent); color: #fff; }
.btn--success { background: rgba(82,183,136,0.12); color: var(--success-light); border: 1px solid rgba(82,183,136,0.28); }
.btn--success:hover { background: var(--success-light); color: #080808; }
.btn--sm  { padding: 7px 14px; font-size: 13px; }
.btn--lg  { padding: 14px 32px; font-size: 16px; }
.btn--full{ width: 100%; justify-content: center; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none !important; }

/* Ripple */
.ripple { position: absolute; width: 4px; height: 4px; background: rgba(255,255,255,0.3); border-radius: 50%; transform: translate(-50%,-50%) scale(0); animation: ripple-out 0.55s ease forwards; pointer-events: none; }
@keyframes ripple-out { to { transform: translate(-50%,-50%) scale(80); opacity: 0; } }

/* ============================================================
   WHY — LARGE NUMBERED LIST (dramatically different)
   ============================================================ */
.why-list { display: flex; flex-direction: column; }
.why-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 48px;
    padding: 52px 0;
    border-bottom: 1px solid var(--border);
    align-items: start;
    will-change: transform;
    transition: background var(--transition);
    cursor: default;
}
.why-item:first-child { border-top: 1px solid var(--border); }
.why-item:hover .why-num { color: rgba(227,28,28,0.22); }

.why-num {
    font-family: var(--font-heading);
    font-size: 100px; font-weight: 900;
    color: rgba(255,255,255,0.04);
    line-height: 0.85;
    letter-spacing: -5px;
    transition: color 0.4s ease;
    user-select: none;
}
.why-content { padding-top: 6px; }
.why-icon  { font-size: 28px; margin-bottom: 16px; }
.why-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.why-desc  { font-size: 15px; color: var(--text-muted); line-height: 1.7; max-width: 560px; }

/* ============================================================
   LANDING TYPES — 2×2 CARD GRID WITH 3D TILT
   ============================================================ */
.ltype-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    perspective: 1200px;
}
.ltype-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-lg);
    padding: 40px;
    cursor: default;
    transition: border-color 0.3s ease, box-shadow 0.4s ease;
    will-change: transform;
    transform-style: preserve-3d;
    position: relative;
    overflow: hidden;
}
.ltype-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 0%, rgba(227,28,28,0.06), transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ltype-card:hover { border-color: var(--border-acc); box-shadow: 0 24px 64px rgba(0,0,0,0.6), 0 0 40px rgba(227,28,28,0.12); }
.ltype-card:hover::before { opacity: 1; }
.ltype-card--featured { border-top-color: var(--accent); border-color: rgba(227,28,28,0.25); }
.ltype-card-icon  { font-size: 40px; margin-bottom: 24px; display: block; }
.ltype-card-price { font-family: var(--font-heading); font-size: 28px; font-weight: 900; color: var(--accent); letter-spacing: -1px; margin-bottom: 12px; }
.ltype-card-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 12px; }
.ltype-card-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.65; margin-bottom: 20px; }
.ltype-card-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.ltype-card-tags span { padding: 4px 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 100px; font-size: 11px; color: var(--text-dim); }

/* ── 3D card shine overlay (injected by JS tilt) ── */
.card-shine {
    position: absolute; inset: 0;
    pointer-events: none; opacity: 0;
    transition: opacity 0.15s ease;
    border-radius: inherit; z-index: 3;
}

/* Keep old ltype-list styles for non-index pages */
.ltype-list { display: flex; flex-direction: column; gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; }
.ltype-item { display: grid; grid-template-columns: 60px 1fr auto; gap: 24px; align-items: center; padding: 28px 32px; background: var(--bg-card); transition: background var(--transition), border-left-color var(--transition); border-left: 2px solid transparent; }
.ltype-item:hover { background: var(--bg-3); border-left-color: var(--accent); }
.ltype-icon  { font-size: 28px; text-align: center; }
.ltype-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 6px; }
.ltype-desc  { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 10px; }
.ltype-tags  { display: flex; flex-wrap: wrap; gap: 6px; }
.ltype-tags span { padding: 3px 10px; background: var(--bg-3); border: 1px solid var(--border); border-radius: 100px; font-size: 11px; color: var(--text-dim); }
.ltype-price { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--accent); letter-spacing: -0.5px; white-space: nowrap; }

/* ============================================================
   PROCESS
   ============================================================ */
.process-list { display: flex; flex-direction: column; }
.process-item {
    display: grid; grid-template-columns: 80px 1fr; gap: 32px;
    padding: 40px 0; border-bottom: 1px solid var(--border);
    will-change: transform;
}
.process-item:last-child { border-bottom: none; }
.process-num {
    font-family: var(--font-heading); font-size: 64px; font-weight: 900;
    color: rgba(255,255,255,0.05); line-height: 1; letter-spacing: -3px; text-align: right;
    transition: color 0.4s ease;
}
.process-item:hover .process-num { color: rgba(227,28,28,0.2); }
.process-body { padding-top: 6px; }
.process-title { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 10px; }
.process-desc  { color: var(--text-muted); font-size: 15px; line-height: 1.7; }

/* ============================================================
   TECH STACK
   ============================================================ */
.tech-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tech-badge {
    padding: 10px 20px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: all var(--transition); will-change: transform; cursor: default;
}
.tech-badge:hover { color: var(--text); border-color: var(--border-acc); background: rgba(227,28,28,0.06); transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.4); }

/* ============================================================
   TECH STACK GRID (redesigned)
   ============================================================ */
.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.tech-cat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition);
    position: relative; overflow: hidden;
}
.tech-cat-card::before {
    content: '';
    position: absolute; bottom: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent 60%);
    opacity: 0; transition: opacity 0.3s;
}
.tech-cat-card:hover { border-color: var(--border-acc); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.tech-cat-card:hover::before { opacity: 1; }
.tech-cat-label {
    font-size: 10px; font-weight: 700; letter-spacing: 2px;
    text-transform: uppercase; color: var(--accent);
    margin-bottom: 18px; display: flex; align-items: center; gap: 8px;
}
.tech-cat-label::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, var(--border-acc), transparent);
}
.tech-item-row {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.04);
}
.tech-item-row:last-child { border-bottom: none; }
.tech-item-icon { font-size: 20px; width: 28px; text-align: center; flex-shrink: 0; }
.tech-item-info { flex: 1; }
.tech-item-name { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.2; }
.tech-item-ver  { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.tech-item-badge {
    font-size: 10px; font-weight: 700; letter-spacing: 0.5px;
    padding: 2px 8px; border-radius: 100px;
    background: rgba(227,28,28,0.1); color: var(--accent);
    border: 1px solid rgba(227,28,28,0.2);
}
@media (max-width: 900px) { .tech-stack-grid { grid-template-columns: 1fr; } }
@media (max-width: 1024px) and (min-width: 901px) { .tech-stack-grid { grid-template-columns: repeat(2,1fr); } }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
    position: relative; overflow: hidden;
    background: radial-gradient(ellipse 90% 70% at 50% 50%, rgba(227,28,28,0.08) 0%, transparent 65%), var(--bg);
}
.cta-inner { max-width: 680px; margin: 0 auto; text-align: center; position: relative; z-index: 1; will-change: transform; }
.cta-section .section-title { font-size: clamp(36px, 5vw, 66px); }

/* ============================================================
   BUTTONS: price pop
   ============================================================ */
.price-pop { animation: pricePop 0.3s cubic-bezier(0.34,1.56,0.64,1); }
@keyframes pricePop { 0% { transform: scale(1); } 50% { transform: scale(1.1); color: var(--accent); } 100% { transform: scale(1); } }

/* ============================================================
   GENERIC CARD
   ============================================================ */
.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition); }
.card:hover { border-color: var(--border-light); }

/* ============================================================
   GRIDS
   ============================================================ */
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }

/* ============================================================
   BADGES
   ============================================================ */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600; position: relative; }
.badge--red    { background: rgba(227,28,28,0.12); color: var(--accent); border: 1px solid rgba(227,28,28,0.25); }
.badge--yellow { background: rgba(233,196,106,0.12); color: var(--warning); border: 1px solid rgba(233,196,106,0.25); }
.badge--green  { background: rgba(82,183,136,0.12); color: var(--success-light); border: 1px solid rgba(82,183,136,0.25); }
.badge--gold   { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(233,196,106,0.3); }
.badge--muted  { background: var(--bg-3); color: var(--text-muted); border: 1px solid var(--border); }

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 12px; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; letter-spacing: 0.5px; text-transform: uppercase; }
.form-control { width: 100%; padding: 12px 16px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); font-family: var(--font-body); font-size: 15px; transition: border-color var(--transition), box-shadow var(--transition); appearance: none; }
.form-control:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-control::placeholder { color: var(--text-dim); }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint  { font-size: 12px; color: var(--text-dim); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--accent); margin-top: 6px; }
.form-check { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: border-color var(--transition); }
.form-check:hover { border-color: var(--border-light); }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.form-check-label { font-size: 14px; color: var(--text-muted); line-height: 1.5; }
.form-check-label strong { color: var(--text); display: block; margin-bottom: 2px; }

/* Feature checkboxes */
.features-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 12px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; padding: 14px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; transition: all var(--transition); position: relative; overflow: hidden; }
.feature-item:hover { border-color: var(--border-light); background: var(--bg-2); }
.feature-item.selected { border-color: var(--accent); background: rgba(227,28,28,0.05); box-shadow: inset 0 0 0 1px var(--accent), 0 0 16px rgba(227,28,28,0.08); }
.feature-item.selected::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg,transparent 30%,rgba(255,255,255,0.03) 50%,transparent 70%); animation: shimmerSlide 1.5s ease infinite; pointer-events: none; border-radius: inherit; }
@keyframes shimmerSlide { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.feature-item input[type="checkbox"] { accent-color: var(--accent); margin-top: 2px; width: 16px; height: 16px; flex-shrink: 0; }
.feature-item-info  { flex: 1; }
.feature-item-name  { font-size: 14px; font-weight: 500; color: var(--text); }
.feature-item-price { font-size: 13px; color: var(--accent); margin-top: 2px; }
.feature-item-desc  { font-size: 12px; color: var(--text-dim); margin-top: 4px; }

/* Rating */
.rating-group { display: flex; gap: 8px; }
.rating-radio { display: none; }
.rating-label { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); cursor: pointer; font-size: 18px; transition: all var(--transition); }
.rating-label:hover { border-color: var(--accent); background: rgba(227,28,28,0.08); }
.rating-radio:checked + .rating-label { border-color: var(--accent); background: rgba(227,28,28,0.12); }

/* ============================================================
   AUTH
   ============================================================ */
.auth-wrapper {
    min-height: calc(100vh - var(--nav-h));
    display: flex; align-items: center; justify-content: center;
    padding: 40px 24px;
    background-image: radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 28px 28px;
    position: relative;
}
.auth-wrapper::before {
    content: '';
    position: absolute; inset: 0;
    background: radial-gradient(ellipse 70% 60% at 50% 40%, rgba(227,28,28,0.06) 0%, transparent 70%);
    pointer-events: none;
}
.auth-card {
    width: 100%; max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 44px;
    position: relative; z-index: 1;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.04);
}
.auth-card::before { content: ''; position: absolute; top: -1px; left: 32px; right: 32px; height: 2px; background: var(--accent); border-radius: 0 0 2px 2px; }
.auth-logo { text-align: center; margin-bottom: 28px; font-size: 32px; }
.auth-title { font-family: var(--font-heading); font-size: 36px; font-weight: 900; letter-spacing: -1px; text-align: center; margin-bottom: 6px; }
.auth-subtitle { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-footer { text-align: center; margin-top: 20px; font-size: 14px; color: var(--text-muted); }
.auth-footer a { color: var(--accent); text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

/* ============================================================
   PAGE HEADERS
   ============================================================ */
.page-header {
    padding: 80px 0 64px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 64px;
    position: relative;
    overflow: hidden;
    background-image:
        radial-gradient(rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 32px 32px;
}
.page-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 60% 100% at 0% 50%, rgba(227,28,28,0.07) 0%, transparent 60%);
    pointer-events: none;
}
.page-header .container { position: relative; }

/* ============================================================
   PROJECTS
   ============================================================ */
.project-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition); will-change: transform; transform-style: preserve-3d; position: relative; }
.project-card:hover { border-color: var(--border-acc); box-shadow: 0 20px 60px rgba(0,0,0,0.5), 0 0 40px rgba(227,28,28,0.12); transform: translateY(-4px); }
.project-img-wrap { position: relative; overflow: hidden; }
.project-img { width: 100%; height: 200px; object-fit: cover; display: block; transition: transform 0.5s ease; }
.project-card:hover .project-img { transform: scale(1.05); }
.project-img-wrap::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 50%, rgba(8,8,8,0.6) 100%); pointer-events: none; }
.project-img-placeholder { width: 100%; height: 200px; background: linear-gradient(135deg, var(--bg-3), var(--bg-2)); display: flex; align-items: center; justify-content: center; color: var(--text-dim); font-size: 40px; }
.project-body { padding: 24px; }
.project-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 10px; }
.project-desc  { color: var(--text-muted); font-size: 14px; line-height: 1.65; margin-bottom: 20px; }
.project-actions { display: flex; gap: 10px; align-items: center; }

/* ============================================================
   REVIEWS
   ============================================================ */
.review-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 28px;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    will-change: transform; transform-style: preserve-3d;
    position: relative; overflow: hidden;
}
.review-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0; transition: opacity 0.3s ease;
}
.review-card:hover { border-color: var(--border-acc); box-shadow: 0 12px 40px rgba(227,28,28,0.1); transform: translateY(-2px); }
.review-card:hover::before { opacity: 1; }
.review-header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.review-avatar { width: 40px; height: 40px; background: var(--bg-3); border: 1px solid var(--border-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 700; color: var(--accent); flex-shrink: 0; }
.review-meta   { flex: 1; }
.review-author { font-weight: 600; font-size: 15px; }
.review-date   { font-size: 12px; color: var(--text-dim); margin-top: 2px; }
.review-stars  { display: flex; gap: 2px; font-size: 15px; }
.star-filled   { color: var(--gold); }
.star-empty    { color: rgba(255,255,255,0.08); }
.review-text   { color: var(--text-muted); font-size: 14px; line-height: 1.7; }
.review-project { font-size: 13px; color: var(--text-dim); margin-top: 12px; border-top: 1px solid var(--border); padding-top: 12px; }

/* ── Reviews stat bar ── */
.reviews-stat-bar {
    display: flex; gap: 0;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 48px;
}
.reviews-stat-item {
    flex: 1; padding: 28px 20px; text-align: center;
    border-right: 1px solid var(--border);
    position: relative; overflow: hidden;
    transition: background var(--transition);
}
.reviews-stat-item:last-child { border-right: none; }
.reviews-stat-item:hover { background: var(--bg-3); }
.reviews-stat-item::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
    background: var(--accent); opacity: 0; transition: opacity 0.3s;
}
.reviews-stat-item:hover::before { opacity: 1; }
.reviews-stat-val { font-family: var(--font-heading); font-size: 40px; font-weight: 900; color: var(--accent); letter-spacing: -2px; line-height: 1; }
.reviews-stat-item:last-child .reviews-stat-val { color: var(--gold); font-size: 28px; letter-spacing: 2px; }
.reviews-stat-lbl { font-size: 11px; color: var(--text-dim); margin-top: 6px; text-transform: uppercase; letter-spacing: 1px; }

@media (max-width: 600px) {
    .reviews-stat-bar { flex-wrap: wrap; }
    .reviews-stat-item { flex: 1 1 calc(50% - 1px); border-bottom: 1px solid var(--border); }
    .reviews-stat-item:nth-child(odd) { border-right: 1px solid var(--border); }
    .reviews-stat-item:nth-last-child(-n+2) { border-bottom: none; }
}

/* ── My orders price row ── */
.order-price-row { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px; padding-top: 8px; border-top: 1px solid var(--border); }
.order-price-value { font-family: var(--font-heading); font-size: 32px; font-weight: 900; color: var(--accent); letter-spacing: -1px; line-height: 1; margin-top: 4px; }
.order-price-value--pending { font-size: 20px; color: var(--text-muted); }
.order-discount-note { font-size: 12px; color: var(--success-light); margin-top: 6px; }
.order-actions { display: flex; gap: 8px; }

/* ============================================================
   EMPTY STATE
   ============================================================ */
.empty-state { text-align: center; padding: 80px 24px; }
.empty-icon  { font-size: 56px; margin-bottom: 16px; opacity: 0.2; }
.empty-title { font-family: var(--font-heading); font-size: 28px; font-weight: 700; letter-spacing: -0.5px; margin-bottom: 8px; }
.empty-text  { color: var(--text-muted); font-size: 15px; margin-bottom: 24px; }

/* ============================================================
   ORDER PAGE
   ============================================================ */
.order-layout { display: grid; grid-template-columns: 1fr 340px; gap: 32px; align-items: start; }
.order-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); }
.price-summary { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; }
.price-title { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.price-rows { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.price-row  { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); }
.price-row .price-val { color: var(--text); font-weight: 500; }
.price-divider { height: 1px; background: var(--border); margin: 16px 0; }
.price-total { display: flex; justify-content: space-between; align-items: center; }
.price-total-label { font-weight: 600; font-size: 15px; }
.price-total-value { font-family: var(--font-heading); font-size: 30px; font-weight: 900; color: var(--accent); letter-spacing: -1px; }
.price-discount { color: var(--success-light); font-size: 13px; margin-top: 8px; text-align: right; }
.form-section-card  { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; }
.form-section-title { font-family: var(--font-heading); font-size: 22px; font-weight: 700; letter-spacing: -0.3px; margin-bottom: 20px; }

/* ============================================================
   ADMIN
   ============================================================ */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--nav-h)); }
.admin-sidebar { background: var(--bg-2); border-right: 1px solid var(--border); padding: 32px 0; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: auto; }
.admin-sidebar-title { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-dim); padding: 0 20px 12px; }
.admin-nav-item { display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 500; transition: all var(--transition); border-left: 2px solid transparent; }
.admin-nav-item:hover { color: var(--text); background: var(--bg-3); }
.admin-nav-item.active { color: var(--accent); background: rgba(227,28,28,0.07); border-left-color: var(--accent); }
.admin-nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-content { padding: 32px; overflow: auto; }
.admin-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 16px; }
.admin-page-title { font-family: var(--font-heading); font-size: 36px; font-weight: 900; letter-spacing: -1px; }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 40px; }
.stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; position: relative; overflow: hidden; animation: statIn 0.5s cubic-bezier(0.34,1.56,0.64,1) backwards; }
.stat-card:nth-child(1) { animation-delay: 0.05s; }
.stat-card:nth-child(2) { animation-delay: 0.10s; }
.stat-card:nth-child(3) { animation-delay: 0.15s; }
.stat-card:nth-child(4) { animation-delay: 0.20s; }
@keyframes statIn { from { opacity: 0; transform: translateY(16px) scale(0.97); } to { opacity: 1; transform: none; } }
.stat-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; }
.stat-card--red::before    { background: var(--accent); }
.stat-card--yellow::before { background: var(--warning); }
.stat-card--green::before  { background: var(--success-light); }
.stat-card--gold::before   { background: var(--gold); }
.stat-card-label { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 12px; }
.stat-card-value { font-family: var(--font-heading); font-size: 44px; font-weight: 900; letter-spacing: -2px; line-height: 1; }
.stat-card--red .stat-card-value    { color: var(--accent); }
.stat-card--yellow .stat-card-value { color: var(--warning); }
.stat-card--green .stat-card-value  { color: var(--success-light); }
.stat-card--gold .stat-card-value   { color: var(--gold); }
.table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 32px; }
.table-header  { padding: 20px 24px; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.table-title   { font-family: var(--font-heading); font-size: 20px; font-weight: 700; letter-spacing: -0.3px; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); padding: 12px 16px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
td { padding: 14px 16px; font-size: 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }

/* ============================================================
   TABS
   ============================================================ */
.tabs { display: flex; border-bottom: 1px solid var(--border); margin-bottom: 32px; overflow-x: auto; }
.tab-btn { padding: 12px 24px; background: none; border: none; border-bottom: 2px solid transparent; margin-bottom: -1px; color: var(--text-muted); font-family: var(--font-body); font-size: 14px; font-weight: 600; cursor: pointer; transition: all var(--transition); white-space: nowrap; }
.tab-btn:hover { color: var(--text); }
.tab-btn.active { color: var(--accent); border-bottom-color: var(--accent); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ============================================================
   MODAL
   ============================================================ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.82); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px; opacity: 0; pointer-events: none; transition: opacity var(--transition); }
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 36px; width: 100%; max-width: 540px; transform: translateY(20px); transition: transform var(--transition); max-height: 90vh; overflow-y: auto; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.modal-title  { font-family: var(--font-heading); font-size: 26px; font-weight: 700; letter-spacing: -0.5px; }
.modal-close  { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 22px; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius); transition: all var(--transition); }
.modal-close:hover { background: var(--bg-3); color: var(--text); }

/* ============================================================
   MY ORDERS
   ============================================================ */
.orders-list { display: flex; flex-direction: column; gap: 20px; }
.order-card  { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; transition: border-color var(--transition); }
.order-card:hover { border-color: var(--border-light); }
.order-card-header { display: flex; align-items: center; justify-content: space-between; padding: 20px 28px; border-bottom: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.order-card-id { font-family: var(--font-heading); font-size: 26px; font-weight: 900; letter-spacing: -0.5px; }
.order-hash { color: var(--accent); }
.order-card-meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.order-date { font-size: 13px; color: var(--text-dim); }
.order-status-badge { display: inline-flex; align-items: center; gap: 7px; padding: 5px 13px; border-radius: 100px; font-size: 12px; font-weight: 600; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }
.order-status-badge.status-new        { background: rgba(233,196,106,0.1); color: var(--warning); border: 1px solid rgba(233,196,106,0.25); }
.status-new .status-dot               { background: var(--warning); animation: blink-dot 1.5s ease-in-out infinite; }
.order-status-badge.status-in_progress{ background: rgba(130,170,255,0.1); color: #82aaff; border: 1px solid rgba(130,170,255,0.25); }
.status-in_progress .status-dot       { background: #82aaff; animation: blink-dot 1s ease-in-out infinite; }
.order-status-badge.status-completed  { background: rgba(82,183,136,0.1); color: var(--success-light); border: 1px solid rgba(82,183,136,0.25); }
.status-completed .status-dot         { background: var(--success-light); }
.order-status-badge.status-delivered  { background: var(--gold-dim); color: var(--gold); border: 1px solid rgba(233,196,106,0.3); }
.status-delivered .status-dot         { background: var(--gold); }
@keyframes blink-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }
.order-progress { padding: 20px 28px; border-bottom: 1px solid var(--border); background: var(--bg-2); }
.progress-track { display: flex; align-items: center; }
.progress-step { display: flex; flex-direction: column; align-items: center; gap: 8px; flex-shrink: 0; }
.progress-step span { font-size: 10px; color: var(--text-dim); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; white-space: nowrap; }
.progress-step.done span { color: var(--text-muted); }
.ps-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--bg-3); border: 2px solid var(--border-light); transition: all 0.3s; }
.progress-step.done .ps-dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.progress-line { flex: 1; height: 2px; background: var(--border); margin-bottom: 20px; transition: background 0.3s; min-width: 40px; }
.progress-line.active { background: var(--accent); }
.order-card-body { padding: 24px 28px; display: flex; flex-direction: column; gap: 20px; }
.order-section-label { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-dim); margin-bottom: 10px; }
.order-features-list { display: flex; flex-wrap: wrap; gap: 8px; }
.order-feature-tag { padding: 4px 12px; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); font-size: 13px; color: var(--text-muted); }
.order-feature-tag em { font-style: normal; color: var(--accent); margin-left: 6px; }
.order-section-text { font-size: 14px; color: var(--text-muted); line-height: 1.65; background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 16px; }
.order-footer { padding: 16px 28px; border-top: 1px solid var(--border); background: var(--bg-2); display: flex; gap: 10px; flex-wrap: wrap; }

/* PDF page */
.pdf-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 60px 24px; }
.pdf-card { max-width: 500px; width: 100%; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 44px; text-align: center; position: relative; }
.pdf-card::before { content: ''; position: absolute; top: -1px; left: 20%; right: 20%; height: 2px; background: var(--accent); }
.pdf-icon    { font-size: 56px; margin-bottom: 20px; display: block; }
.pdf-title   { font-family: var(--font-heading); font-size: 28px; font-weight: 900; letter-spacing: -1px; margin-bottom: 10px; }
.pdf-meta    { color: var(--text-dim); font-size: 13px; margin-bottom: 8px; }
.pdf-info    { background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; margin: 20px 0; text-align: left; }
.pdf-info-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; padding: 6px 0; border-bottom: 1px solid var(--border); }
.pdf-info-row:last-child { border-bottom: none; }
.pdf-info-label { color: var(--text-muted); }
.pdf-info-val   { font-weight: 600; }
.pdf-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }

/* ============================================================
   UTILITIES
   ============================================================ */
.divider { height: 1px; background: var(--border); margin: 40px 0; }
.text-accent { color: var(--accent); }
.text-muted  { color: var(--text-muted); }
.text-dim    { color: var(--text-dim); }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }  .gap-12 { gap: 12px; }  .gap-16 { gap: 16px; }
.mt-8   { margin-top: 8px; }  .mt-16 { margin-top: 16px; }
.mt-24  { margin-top: 24px; } .mt-32 { margin-top: 32px; }
.mb-16  { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }
.spinner { width: 18px; height: 18px; border: 2px solid var(--border-light); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.fade-up { animation: fadeUp 0.5s ease forwards; }

/* ============================================================
   LARGE SCREENS
   ============================================================ */
@media (min-width: 1600px) {
    .container, .footer-container, .nav-container { max-width: 1560px; }
    .hero-content { padding-left: calc((100vw - 1560px) / 2 + 40px); }
}
@media (min-width: 2560px) {
    .container, .footer-container, .nav-container { max-width: 2100px; }
    .hero-content { padding-left: calc((100vw - 2100px) / 2 + 40px); }
    .hero-title { font-size: 140px; }
}

/* ============================================================
   RESPONSIVE ≤1200px
   ============================================================ */
@media (max-width: 1200px) {
    .hero { grid-template-columns: 1fr 42%; }
    .why-item { grid-template-columns: 110px 1fr; gap: 32px; }
    .why-num  { font-size: 80px; }
}

/* ============================================================
   RESPONSIVE ≤1024px
   ============================================================ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; }
    .hero-content { padding: 120px 40px 48px; }
    .hero-canvas-wrap { height: 340px; }
    .ltype-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .order-layout { grid-template-columns: 1fr; }
    .order-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; overflow-y: visible; display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; padding: 8px; border-right: none; border-bottom: 1px solid var(--border); }
    .admin-sidebar-title { display: none; }
    .admin-sidebar > div { grid-column: 1 / -1; }
    .admin-nav-item { flex-direction: column; align-items: center; gap: 3px; padding: 8px 4px; border-left: none; border-bottom: 2px solid transparent; border-radius: var(--radius); font-size: 11px; text-align: center; }
    .admin-nav-item.active { border-bottom-color: var(--accent); }
    .admin-nav-icon { font-size: 18px; width: auto; }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
    .footer-container { grid-template-columns: 1fr; text-align: center; gap: 32px; }
    .footer-links { flex-direction: row; justify-content: center; flex-wrap: wrap; gap: 10px 20px; }
    .footer-copy  { text-align: center; }
    .why-item { grid-template-columns: 90px 1fr; gap: 24px; padding: 36px 0; }
    .why-num  { font-size: 64px; letter-spacing: -3px; }
}

/* ============================================================
   RESPONSIVE ≤900px (mobile nav)
   ============================================================ */
@media (max-width: 900px) {
    .burger { display: flex; }
    body.menu-open::before { content: ''; position: fixed; inset: 0; background: rgba(0,0,0,0.6); z-index: 998; width: 100%; height: 100%; top: 0; }
    .nav-links { position: fixed; top: 0; right: 0; width: min(280px,80vw); height: 100vh; height: 100dvh; background: var(--bg-2); border-left: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: calc(var(--nav-h) + 16px) 12px 48px; transform: translateX(100%); pointer-events: none; transition: transform 0.3s ease; z-index: 999; overflow-y: auto; box-shadow: -4px 0 24px rgba(0,0,0,0.4); }
    .nav-links.open { transform: translateX(0); pointer-events: all; }
    .nav-links li  { display: block; width: 100%; }
    .nav-link { display: block; padding: 12px 14px; width: 100%; font-size: 15px; }
    .nav-btn  { display: block; padding: 12px 14px; width: 100%; text-align: center; margin-top: 4px; font-size: 15px; border-radius: var(--radius); }
    .nav-user { padding: 12px 14px; width: 100%; }
    .grid-3   { grid-template-columns: 1fr; }
    .grid-2   { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .process-item { grid-template-columns: 52px 1fr; gap: 20px; }
    .process-num  { font-size: 42px; }
    .auth-card    { padding: 32px 24px; }
    .admin-content { padding: 20px 16px; }
    .features-grid { grid-template-columns: 1fr; }
    .hero-stats { flex-direction: row; }
    .hero-stat  { padding: 0 16px; }
    .stat-val   { font-size: 26px; }
    .why-item   { grid-template-columns: 1fr; gap: 8px; padding: 32px 0; }
    .why-num    { font-size: 48px; letter-spacing: -2px; }
    .ltype-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   RESPONSIVE ≤480px
   ============================================================ */
@media (max-width: 480px) {
    .container, .nav-container { padding: 0 20px; }
    .footer-container { padding: 0 20px; }
    .hero-content { padding: 100px 20px 48px; }
    .hero-title  { letter-spacing: -2px; }
    .hero-canvas-wrap { height: 240px; }
    .hero-stats  { flex-direction: column; gap: 16px; }
    .hero-stat   { border-right: none; border-bottom: 1px solid var(--border); padding: 0 0 16px; }
    .hero-stat:last-child { border-bottom: none; padding-bottom: 0; }
    .stats-grid  { grid-template-columns: 1fr 1fr; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; justify-content: center; }
    .section     { padding: 72px 0; }
    table        { font-size: 13px; }
    th, td       { padding: 10px 12px; }
}
