/* =========================================================
   ByteMarket — Design System
   Palette: near-black base, electric violet primary, cyan accent
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Vazirmatn:wght@100..900&display=swap');

:root{
  /* Core palette */
  --bg-0:#0a0b0e;
  --bg-1:#0e1015;
  --bg-2:#14171d;
  --bg-3:#1b1f27;
  --line:#262b35;
  --line-soft:#1d212a;

  --text-0:#eef0f4;
  --text-1:#c3c8d1;
  --text-2:#868c99;
  --text-3:#5b6170;

  --brand:#6c5ce7;
  --brand-2:#8b7cf6;
  --brand-dim:#4b3fb0;
  --cyan:#00d9c0;
  --cyan-dim:#0a3d38;
  --amber:#ffb020;
  --red:#ef4b52;

  --brand-glow: 0 0 0 1px rgba(108,92,231,.35), 0 8px 30px -8px rgba(108,92,231,.55);
  --cyan-glow: 0 0 0 1px rgba(0,217,192,.3), 0 8px 24px -8px rgba(0,217,192,.45);

  --radius-sm:10px;
  --radius-md:16px;
  --radius-lg:24px;

  --shadow-card: 0 1px 0 rgba(255,255,255,.02) inset, 0 20px 40px -24px rgba(0,0,0,.7);

  --ease: cubic-bezier(.16,.84,.44,1);
  --font: 'Vazirmatn', Tahoma, sans-serif;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{
  margin:0; padding:0;
  background:var(--bg-0);
  color:var(--text-0);
  font-family:var(--font);
  direction:rtl;
  text-align:right;
  -webkit-font-smoothing:antialiased;
}
body{
  background-image:
    radial-gradient(900px 500px at 85% -5%, rgba(108,92,231,.16), transparent 60%),
    radial-gradient(700px 400px at 10% 0%, rgba(0,217,192,.08), transparent 55%);
  background-repeat:no-repeat;
  overflow-x:hidden;
}
img{ max-width:100%; display:block; }
a{ color:inherit; text-decoration:none; }
ul{ margin:0; padding:0; list-style:none; }
button{ font-family:inherit; cursor:pointer; }
input,textarea,select{ font-family:inherit; }
:focus-visible{ outline:2px solid var(--cyan); outline-offset:2px; border-radius:6px; }

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 24px;
}

@media (prefers-reduced-motion: reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal{ opacity:0; transform:translateY(24px); transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible{ opacity:1; transform:translateY(0); }
.reveal-stagger > * { opacity:0; transform:translateY(18px); transition:opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-stagger.is-visible > *{ opacity:1; transform:translateY(0); }
.reveal-stagger.is-visible > *:nth-child(1){ transition-delay:.05s; }
.reveal-stagger.is-visible > *:nth-child(2){ transition-delay:.12s; }
.reveal-stagger.is-visible > *:nth-child(3){ transition-delay:.19s; }
.reveal-stagger.is-visible > *:nth-child(4){ transition-delay:.26s; }
.reveal-stagger.is-visible > *:nth-child(5){ transition-delay:.33s; }
.reveal-stagger.is-visible > *:nth-child(6){ transition-delay:.40s; }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  padding:13px 26px; border-radius:12px; border:1px solid transparent;
  font-weight:700; font-size:15px; transition:transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space:nowrap;
}
.btn-primary{
  background:linear-gradient(180deg, var(--brand-2), var(--brand));
  color:#fff; box-shadow:var(--brand-glow);
}
.btn-primary:hover{ transform:translateY(-2px); box-shadow:0 0 0 1px rgba(108,92,231,.5), 0 14px 34px -10px rgba(108,92,231,.65); }
.btn-ghost{
  background:rgba(255,255,255,.03); color:var(--text-0); border-color:var(--line);
}
.btn-ghost:hover{ background:rgba(255,255,255,.06); border-color:#3a4150; transform:translateY(-1px); }
.btn-cyan{
  background:linear-gradient(180deg, #21e8cf, var(--cyan)); color:#04211d; box-shadow:var(--cyan-glow);
}
.btn-cyan:hover{ transform:translateY(-2px); }
.btn-sm{ padding:9px 16px; font-size:13px; border-radius:10px; }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; transform:none !important; }

/* ---------- Navbar ---------- */
.navbar{
  position:fixed; top:0; inset-inline:0; z-index:200;
  padding:18px 0;
  transition:padding .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s var(--ease);
  border-bottom:1px solid transparent;
}
.navbar.is-scrolled{
  padding:12px 0;
  background:rgba(10,11,14,.78);
  backdrop-filter:blur(14px) saturate(140%);
  border-color:var(--line-soft);
}
.navbar .container{ display:flex; align-items:center; justify-content:space-between; gap:24px; }
.brand{ display:flex; align-items:center; gap:10px; font-weight:800; font-size:19px; letter-spacing:.2px; }
.brand .brand-mark{
  width:34px; height:34px; border-radius:9px;
  background:linear-gradient(135deg, var(--brand-2), var(--cyan));
  display:flex; align-items:center; justify-content:center;
  color:#0a0b0e; font-weight:900; font-size:16px;
  box-shadow:var(--brand-glow);
}
.nav-links{ display:flex; align-items:center; gap:30px; }
.nav-links a{
  font-size:14.5px; color:var(--text-1); position:relative; padding:6px 0; transition:color .2s;
}
.nav-links a::after{
  content:""; position:absolute; right:0; bottom:0; height:2px; width:0;
  background:linear-gradient(90deg, var(--cyan), var(--brand-2));
  transition:width .3s var(--ease);
}
.nav-links a:hover{ color:var(--text-0); }
.nav-links a:hover::after, .nav-links a.active::after{ width:100%; }
.nav-links a.active{ color:var(--text-0); }
.nav-actions{ display:flex; align-items:center; gap:12px; }
.nav-user{ display:flex; align-items:center; gap:10px; }
.nav-user .avatar{
  width:36px; height:36px; border-radius:50%;
  background:var(--bg-3); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--cyan); font-size:14px;
}
.burger{ display:none; width:40px; height:40px; border-radius:10px; border:1px solid var(--line); background:rgba(255,255,255,.03); color:var(--text-0); align-items:center; justify-content:center; font-size:18px; }

.mobile-menu{
  position:fixed; inset:0; z-index:199; background:rgba(8,9,12,.97); backdrop-filter:blur(6px);
  display:flex; flex-direction:column; align-items:center; justify-content:center; gap:26px;
  opacity:0; pointer-events:none; transition:opacity .3s var(--ease);
}
.mobile-menu.is-open{ opacity:1; pointer-events:all; }
.mobile-menu a{ font-size:22px; font-weight:700; }
.mobile-menu .close-btn{ position:absolute; top:24px; left:24px; font-size:26px; color:var(--text-1); }

/* ---------- Hero ---------- */
.hero{
  position:relative; padding:170px 0 110px; overflow:hidden;
}
.hero-grid{ display:grid; grid-template-columns:1.05fr .95fr; gap:50px; align-items:center; }
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  padding:7px 14px; border-radius:100px;
  background:rgba(108,92,231,.12); border:1px solid rgba(108,92,231,.35);
  color:var(--brand-2); font-size:13px; font-weight:700; margin-bottom:22px;
}
.eyebrow .dot{ width:6px; height:6px; border-radius:50%; background:var(--cyan); box-shadow:0 0 10px var(--cyan); }
.hero h1{
  font-size:54px; line-height:1.22; font-weight:900; margin:0 0 22px; letter-spacing:-.5px;
}
.hero h1 .accent{
  background:linear-gradient(90deg, var(--cyan), var(--brand-2));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p.lead{ font-size:17.5px; color:var(--text-1); line-height:1.9; max-width:520px; margin:0 0 34px; }
.hero-actions{ display:flex; gap:14px; margin-bottom:44px; }
.hero-stats{ display:flex; gap:36px; }
.hero-stats .stat b{ display:block; font-size:26px; font-weight:900; color:var(--text-0); }
.hero-stats .stat span{ font-size:13px; color:var(--text-2); }

/* Hero visual: stacked glowing tiles */
.hero-visual{ position:relative; height:460px; }
.tile-stack{ position:absolute; inset:0; }
.tile{
  position:absolute; width:230px; border-radius:18px; padding:20px;
  background:linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border:1px solid var(--line); box-shadow:var(--shadow-card);
  animation:float 7s ease-in-out infinite;
}
.tile .tile-icon{
  width:42px; height:42px; border-radius:11px; display:flex; align-items:center; justify-content:center;
  font-size:19px; margin-bottom:14px;
}
.tile .tile-title{ font-weight:800; font-size:14.5px; margin-bottom:4px; }
.tile .tile-sub{ font-size:12.5px; color:var(--text-2); }
.tile-a{ top:6%; right:8%; z-index:3; animation-delay:0s; }
.tile-a .tile-icon{ background:rgba(108,92,231,.18); color:var(--brand-2); }
.tile-b{ top:34%; right:32%; z-index:2; animation-delay:1.4s; }
.tile-b .tile-icon{ background:rgba(0,217,192,.16); color:var(--cyan); }
.tile-c{ top:58%; right:2%; z-index:1; animation-delay:2.8s; }
.tile-c .tile-icon{ background:rgba(255,176,32,.16); color:var(--amber); }
@keyframes float{
  0%,100%{ transform:translateY(0) rotate(-1.5deg); }
  50%{ transform:translateY(-16px) rotate(1deg); }
}
.orbit-ring{
  position:absolute; left:2%; bottom:6%; width:260px; height:260px;
  border:1px dashed rgba(108,92,231,.35); border-radius:50%;
  animation:spin 34s linear infinite;
}
.orbit-ring::before{
  content:""; position:absolute; width:14px; height:14px; border-radius:50%;
  background:var(--cyan); box-shadow:0 0 18px var(--cyan);
  top:-7px; right:calc(50% - 7px);
}
@keyframes spin{ to{ transform:rotate(360deg); } }

/* ---------- Section shell ---------- */
.section{ padding:100px 0; position:relative; }
.section-head{ text-align:center; max-width:640px; margin:0 auto 56px; }
.section-head .eyebrow{ margin-bottom:16px; }
.section-head h2{ font-size:36px; font-weight:900; margin:0 0 14px; letter-spacing:-.3px; }
.section-head p{ color:var(--text-1); font-size:16px; line-height:1.85; }
.section-alt{ background:var(--bg-1); border-top:1px solid var(--line-soft); border-bottom:1px solid var(--line-soft); }

/* ---------- Services ---------- */
.services-grid{ display:grid; grid-template-columns:repeat(3,1fr); gap:22px; }
.service-card{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md);
  padding:32px 26px; transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.service-card:hover{ transform:translateY(-6px); border-color:rgba(108,92,231,.4); box-shadow:var(--brand-glow); }
.service-icon{
  width:52px; height:52px; border-radius:14px; margin-bottom:20px;
  display:flex; align-items:center; justify-content:center; font-size:22px;
  background:linear-gradient(150deg, rgba(108,92,231,.22), rgba(0,217,192,.14));
  color:var(--brand-2);
}
.service-card h3{ font-size:18px; font-weight:800; margin:0 0 10px; }
.service-card p{ color:var(--text-2); font-size:14.5px; line-height:1.8; margin:0; }

/* ---------- Products ---------- */
.tabs{ display:flex; justify-content:center; gap:10px; margin-bottom:40px; flex-wrap:wrap; }
.tab-btn{
  padding:11px 22px; border-radius:100px; border:1px solid var(--line);
  background:var(--bg-2); color:var(--text-1); font-weight:700; font-size:14px;
  transition:all .25s var(--ease);
}
.tab-btn.active{ background:linear-gradient(180deg, var(--brand-2), var(--brand)); color:#fff; border-color:transparent; box-shadow:var(--brand-glow); }
.tab-btn:not(.active):hover{ border-color:#3a4150; color:var(--text-0); }

.products-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:20px; }
.product-card{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md);
  overflow:hidden; display:flex; flex-direction:column;
  transition:transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.product-card:hover{ transform:translateY(-6px); border-color:rgba(0,217,192,.35); box-shadow:0 20px 40px -20px rgba(0,0,0,.6); }
.product-thumb{
  height:130px; display:flex; align-items:center; justify-content:center; font-size:38px;
  background:linear-gradient(150deg, var(--bg-3), var(--bg-1));
  border-bottom:1px solid var(--line-soft); position:relative;
}
.product-badge{
  position:absolute; top:10px; right:10px; font-size:11px; font-weight:800; padding:4px 10px;
  border-radius:100px; background:rgba(0,217,192,.15); color:var(--cyan); border:1px solid rgba(0,217,192,.35);
}
.product-body{ padding:18px 18px 20px; display:flex; flex-direction:column; gap:10px; flex:1; }
.product-cat{ font-size:11.5px; color:var(--text-3); font-weight:700; }
.product-title{ font-size:15.5px; font-weight:800; line-height:1.5; }
.product-desc{ font-size:12.5px; color:var(--text-2); line-height:1.7; flex:1; }
.product-foot{ display:flex; align-items:center; justify-content:space-between; margin-top:6px; }
.product-price{ font-weight:900; font-size:15.5px; color:var(--cyan); }
.product-price small{ font-size:11px; color:var(--text-3); font-weight:600; margin-inline-start:4px; }
.product-stock{ font-size:11.5px; color:var(--text-3); }

/* ---------- Testimonials ---------- */
.testi-layout{ display:grid; grid-template-columns:.85fr 1.15fr; gap:40px; align-items:start; }
.testi-form{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-lg); padding:30px;
}
.testi-form h3{ margin:0 0 6px; font-size:18px; font-weight:800; }
.testi-form p.hint{ color:var(--text-2); font-size:13px; margin:0 0 22px; }
.star-picker{ display:flex; gap:6px; margin-bottom:20px; font-size:26px; }
.star-picker i{ color:#3a3f4a; transition:color .2s, transform .2s; cursor:pointer; }
.star-picker i.active, .star-picker i:hover{ color:var(--amber); transform:scale(1.12); }
.testi-list{ display:flex; flex-direction:column; gap:16px; max-height:520px; overflow-y:auto; padding-inline-end:6px; }
.testi-list::-webkit-scrollbar{ width:6px; }
.testi-list::-webkit-scrollbar-thumb{ background:var(--line); border-radius:10px; }
.testi-card{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md); padding:20px;
}
.testi-top{ display:flex; align-items:center; gap:12px; margin-bottom:10px; }
.testi-avatar{
  width:38px; height:38px; border-radius:50%; background:var(--bg-3); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--brand-2); font-weight:800; font-size:13px;
}
.testi-name{ font-weight:700; font-size:14px; }
.testi-date{ font-size:11.5px; color:var(--text-3); }
.testi-stars{ font-size:13px; color:var(--amber); margin-inline-start:auto; }
.testi-text{ font-size:13.5px; color:var(--text-1); line-height:1.85; margin:0; }
.testi-empty{ text-align:center; color:var(--text-3); padding:40px 0; font-size:13.5px; }

/* ---------- FAQ ---------- */
.faq-list{ max-width:780px; margin:0 auto; display:flex; flex-direction:column; gap:12px; }
.faq-item{
  background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md); overflow:hidden;
}
.faq-q{
  display:flex; align-items:center; justify-content:space-between; gap:14px;
  padding:20px 24px; font-weight:700; font-size:15px; transition:background .2s;
}
.faq-q:hover{ background:rgba(255,255,255,.02); }
.faq-q i{ color:var(--brand-2); transition:transform .3s var(--ease); font-size:14px; flex-shrink:0; }
.faq-item.open .faq-q i{ transform:rotate(180deg); }
.faq-a{ max-height:0; overflow:hidden; transition:max-height .35s var(--ease); }
.faq-a p{ padding:0 24px 22px; margin:0; color:var(--text-2); font-size:14px; line-height:1.85; }

/* ---------- Contact CTA ---------- */
.cta-banner{
  border-radius:28px; padding:56px; text-align:center; position:relative; overflow:hidden;
  background:linear-gradient(135deg, rgba(108,92,231,.18), rgba(0,217,192,.08)), var(--bg-2);
  border:1px solid rgba(108,92,231,.3);
}
.cta-banner h2{ font-size:30px; font-weight:900; margin:0 0 14px; }
.cta-banner p{ color:var(--text-1); margin:0 0 28px; font-size:15.5px; }
.cta-actions{ display:flex; gap:14px; justify-content:center; }

/* ---------- Footer ---------- */
.footer{ background:var(--bg-1); border-top:1px solid var(--line-soft); padding:64px 0 28px; }
.footer-grid{ display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:40px; margin-bottom:48px; }
.footer-brand p{ color:var(--text-2); font-size:13.5px; line-height:1.9; margin:14px 0 20px; max-width:280px; }
.footer-social{ display:flex; gap:10px; }
.footer-social a{
  width:36px; height:36px; border-radius:10px; background:var(--bg-2); border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center; color:var(--text-1); transition:all .25s;
}
.footer-social a:hover{ color:var(--cyan); border-color:rgba(0,217,192,.4); transform:translateY(-2px); }
.footer h4{ font-size:14.5px; font-weight:800; margin:0 0 18px; }
.footer ul li{ margin-bottom:12px; }
.footer ul a{ color:var(--text-2); font-size:13.5px; transition:color .2s; }
.footer ul a:hover{ color:var(--text-0); }
.footer-bottom{
  border-top:1px solid var(--line-soft); padding-top:24px; display:flex; justify-content:space-between;
  color:var(--text-3); font-size:12.5px; flex-wrap:wrap; gap:10px;
}

/* ---------- Auth pages ---------- */
.auth-wrap{
  min-height:100vh; display:flex; align-items:center; justify-content:center; padding:120px 20px 60px;
}
.auth-card{
  width:100%; max-width:440px; background:var(--bg-2); border:1px solid var(--line);
  border-radius:var(--radius-lg); padding:38px 34px; box-shadow:var(--shadow-card);
}
.auth-card .brand{ justify-content:center; margin-bottom:8px; }
.auth-card h1{ text-align:center; font-size:22px; font-weight:900; margin:18px 0 6px; }
.auth-card p.sub{ text-align:center; color:var(--text-2); font-size:13.5px; margin:0 0 28px; }
.field{ margin-bottom:16px; }
.field label{ display:block; font-size:13px; font-weight:700; color:var(--text-1); margin-bottom:8px; }
.field .input-wrap{ position:relative; }
.field input, .field textarea, .field select{
  width:100%; background:var(--bg-1); border:1px solid var(--line); color:var(--text-0);
  border-radius:11px; padding:12px 14px; font-size:14px; transition:border-color .2s, box-shadow .2s;
}
.field input:focus, .field textarea:focus, .field select:focus{
  border-color:var(--brand-2); box-shadow:0 0 0 3px rgba(108,92,231,.18); outline:none;
}
.field .input-wrap i{ position:absolute; top:50%; transform:translateY(-50%); right:14px; color:var(--text-3); font-size:14px; }
.field .input-wrap input{ padding-right:38px; }
.field .toggle-pass{ left:14px; right:auto; cursor:pointer; }
.field-error{ color:var(--red); font-size:12px; margin-top:6px; display:none; }
.field.has-error input, .field.has-error select{ border-color:var(--red); }
.field.has-error .field-error{ display:block; }
.form-msg{ padding:12px 16px; border-radius:10px; font-size:13.5px; margin-bottom:18px; display:none; }
.form-msg.show{ display:block; }
.form-msg.error{ background:rgba(239,75,82,.12); border:1px solid rgba(239,75,82,.35); color:#ff9298; }
.form-msg.success{ background:rgba(0,217,192,.1); border:1px solid rgba(0,217,192,.35); color:var(--cyan); }
.pass-strength{ height:4px; border-radius:4px; background:var(--bg-1); margin-top:8px; overflow:hidden; }
.pass-strength span{ display:block; height:100%; width:0%; background:var(--red); transition:width .3s, background .3s; }
.auth-foot{ text-align:center; margin-top:22px; font-size:13.5px; color:var(--text-2); }
.auth-foot a{ color:var(--cyan); font-weight:700; }
.form-row-2{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }

/* ---------- Dashboard shell ---------- */
.dash-wrap{ display:grid; grid-template-columns:260px 1fr; min-height:100vh; }
.dash-sidebar{
  background:var(--bg-1); border-left:1px solid var(--line-soft);
  padding:24px 18px; display:flex; flex-direction:column; gap:6px; position:sticky; top:0; height:100vh;
}
.dash-sidebar .brand{ padding:10px 10px 24px; }
.dash-nav a{
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:11px;
  color:var(--text-1); font-size:14px; font-weight:600; transition:all .2s;
}
.dash-nav a i{ width:20px; text-align:center; color:var(--text-3); transition:color .2s; }
.dash-nav a:hover{ background:rgba(255,255,255,.04); color:var(--text-0); }
.dash-nav a.active{ background:rgba(108,92,231,.14); color:var(--brand-2); }
.dash-nav a.active i{ color:var(--brand-2); }
.dash-nav .nav-sep{ height:1px; background:var(--line-soft); margin:14px 6px; }
.dash-main{ padding:36px 40px; max-width:1100px; }
.dash-header{ display:flex; justify-content:space-between; align-items:center; margin-bottom:30px; flex-wrap:wrap; gap:16px; }
.dash-header h1{ font-size:24px; font-weight:900; margin:0; }
.dash-header p{ color:var(--text-2); font-size:13.5px; margin:6px 0 0; }

.stat-cards{ display:grid; grid-template-columns:repeat(4,1fr); gap:18px; margin-bottom:32px; }
.stat-card{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md); padding:22px; }
.stat-card .stat-icon{ width:38px; height:38px; border-radius:10px; display:flex; align-items:center; justify-content:center; font-size:16px; margin-bottom:14px; }
.stat-card b{ display:block; font-size:24px; font-weight:900; }
.stat-card span{ font-size:12.5px; color:var(--text-2); }

.panel{ background:var(--bg-2); border:1px solid var(--line); border-radius:var(--radius-md); padding:26px; margin-bottom:24px; }
.panel-head{ display:flex; justify-content:space-between; align-items:center; margin-bottom:20px; flex-wrap:wrap; gap:12px; }
.panel-head h3{ font-size:16.5px; font-weight:800; margin:0; }

.table-wrap{ overflow-x:auto; }
table{ width:100%; border-collapse:collapse; font-size:13.5px; }
th{ text-align:right; color:var(--text-2); font-weight:700; font-size:12.5px; padding:10px 12px; border-bottom:1px solid var(--line); white-space:nowrap; }
td{ padding:14px 12px; border-bottom:1px solid var(--line-soft); color:var(--text-1); vertical-align:middle; }
tr:last-child td{ border-bottom:none; }
.badge{ display:inline-flex; align-items:center; gap:6px; padding:5px 12px; border-radius:100px; font-size:11.5px; font-weight:700; }
.badge-open{ background:rgba(255,176,32,.14); color:var(--amber); }
.badge-progress{ background:rgba(108,92,231,.16); color:var(--brand-2); }
.badge-closed{ background:rgba(0,217,192,.14); color:var(--cyan); }
.badge-rejected{ background:rgba(239,75,82,.14); color:#ff8890; }

.empty-state{ text-align:center; padding:60px 20px; color:var(--text-2); }
.empty-state i{ font-size:38px; color:var(--text-3); margin-bottom:16px; display:block; }
.empty-state p{ margin:0 0 20px; font-size:14px; }

/* Ticket thread */
.ticket-meta{ display:flex; gap:24px; flex-wrap:wrap; margin-bottom:24px; }
.ticket-meta .item span{ display:block; font-size:11.5px; color:var(--text-3); margin-bottom:4px; }
.ticket-meta .item b{ font-size:14px; }
.thread{ display:flex; flex-direction:column; gap:16px; margin-bottom:24px; }
.msg{ display:flex; gap:12px; max-width:78%; }
.msg.mine{ margin-inline-start:auto; flex-direction:row-reverse; }
.msg .msg-avatar{ width:34px; height:34px; border-radius:50%; background:var(--bg-3); border:1px solid var(--line); display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:800; flex-shrink:0; }
.msg.mine .msg-avatar{ color:var(--brand-2); }
.msg.admin .msg-avatar{ color:var(--cyan); }
.msg-bubble{ background:var(--bg-1); border:1px solid var(--line); border-radius:14px; padding:12px 16px; }
.msg.mine .msg-bubble{ background:rgba(108,92,231,.14); border-color:rgba(108,92,231,.3); }
.msg.admin .msg-bubble{ background:rgba(0,217,192,.08); border-color:rgba(0,217,192,.25); }
.msg-bubble .msg-name{ font-size:12px; font-weight:700; color:var(--text-2); margin-bottom:5px; }
.msg-bubble p{ margin:0; font-size:13.5px; line-height:1.75; color:var(--text-0); }
.msg-bubble .msg-time{ font-size:10.5px; color:var(--text-3); margin-top:6px; }
.reply-box{ display:flex; gap:12px; align-items:flex-end; }
.reply-box textarea{ flex:1; resize:none; min-height:52px; }

/* Login banner strip on dashboard needing auth */
.locked-note{ background:rgba(255,176,32,.1); border:1px solid rgba(255,176,32,.3); color:var(--amber); padding:14px 18px; border-radius:12px; font-size:13.5px; margin-bottom:20px; }

/* Toast */
.toast{
  position:fixed; bottom:26px; left:50%; transform:translateX(-50%) translateY(30px);
  background:var(--bg-3); border:1px solid var(--line); color:var(--text-0);
  padding:14px 22px; border-radius:12px; font-size:14px; z-index:500; box-shadow:var(--shadow-card);
  opacity:0; pointer-events:none; transition:all .35s var(--ease); display:flex; align-items:center; gap:10px;
}
.toast.show{ opacity:1; transform:translateX(-50%) translateY(0); pointer-events:all; }
.toast.toast-success i{ color:var(--cyan); }
.toast.toast-error i{ color:var(--red); }

/* Back to top */
.back-top{
  position:fixed; bottom:26px; left:26px; width:46px; height:46px; border-radius:50%;
  background:var(--bg-3); border:1px solid var(--line); color:var(--text-0);
  display:flex; align-items:center; justify-content:center; font-size:16px; z-index:150;
  opacity:0; pointer-events:none; transform:translateY(14px); transition:all .3s var(--ease);
}
.back-top.show{ opacity:1; pointer-events:all; transform:translateY(0); }
.back-top:hover{ border-color:var(--brand-2); color:var(--brand-2); }

/* Page header (inner pages) */
.page-hero{ padding:150px 0 60px; text-align:center; }
.page-hero h1{ font-size:34px; font-weight:900; margin:0 0 12px; }
.page-hero p{ color:var(--text-2); font-size:14.5px; }
.breadcrumb{ color:var(--text-3); font-size:13px; }
.breadcrumb a{ color:var(--text-2); }
.breadcrumb a:hover{ color:var(--cyan); }

/* Skeleton for empty product grid state etc */
.mt-0{ margin-top:0; }

/* Utility */
.text-center{ text-align:center; }
.mb-lg{ margin-bottom:40px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width:1080px){
  .products-grid{ grid-template-columns:repeat(3,1fr); }
  .footer-grid{ grid-template-columns:1.2fr 1fr 1fr; }
  .footer-grid .footer-col-4{ display:none; }
}

@media (max-width:960px){
  .nav-links{ display:none; }
  .burger{ display:flex; }
  .hero-grid{ grid-template-columns:1fr; text-align:center; }
  .hero p.lead{ margin-inline:auto; }
  .hero-actions{ justify-content:center; }
  .hero-stats{ justify-content:center; }
  .hero-visual{ height:340px; margin-top:20px; }
  .services-grid{ grid-template-columns:repeat(2,1fr); }
  .products-grid{ grid-template-columns:repeat(2,1fr); }
  .testi-layout{ grid-template-columns:1fr; }
  .dash-wrap{ grid-template-columns:1fr; }
  .dash-sidebar{ position:static; height:auto; flex-direction:row; overflow-x:auto; padding:14px; }
  .dash-sidebar .brand{ display:none; }
  .dash-nav{ display:flex; gap:6px; }
  .dash-nav .nav-sep{ display:none; }
  .dash-main{ padding:26px 20px; }
  .stat-cards{ grid-template-columns:repeat(2,1fr); }
}

@media (max-width:600px){
  .container{ padding:0 18px; }
  .hero{ padding:130px 0 70px; }
  .hero h1{ font-size:34px; }
  .hero p.lead{ font-size:15.5px; }
  .section{ padding:70px 0; }
  .section-head h2{ font-size:26px; }
  .services-grid{ grid-template-columns:1fr; }
  .products-grid{ grid-template-columns:1fr 1fr; gap:12px; }
  .product-thumb{ height:100px; font-size:28px; }
  .footer-grid{ grid-template-columns:1fr 1fr; gap:28px; }
  .cta-banner{ padding:36px 22px; }
  .cta-banner h2{ font-size:22px; }
  .cta-actions{ flex-direction:column; }
  .form-row-2{ grid-template-columns:1fr; }
  .auth-card{ padding:28px 22px; }
  .hero-stats{ gap:22px; }
  .stat-cards{ grid-template-columns:1fr 1fr; }
}
