/* ============================================================
   T2P AISoft — Unified Video-AI Template
   Layout base: ViAI (light, clean, corporate)
   Accent nod:  CapCut (teal→blue gradient on logo/highlights)
   Font: Be Vietnam Pro  ·  Icons: Font Awesome 6
   ============================================================ */

:root{
  /* Brand (ViAI) */
  --brand:#1E40AF;
  --brand-2:#3b82f6;
  --brand-dark:#1B3A9E;
  /* Video AI accent (CapCut) — used sparingly */
  --teal:#2fe6d6;
  --blue:#3d8bff;
  /* CTA accent (ViAI) */
  --accent:#F5A623;
  --yellow:#F6BE00;
  --danger:#ef4444;
  /* Text + surfaces */
  --text:#171717;
  --muted:#52525b;
  --muted-2:#71717a;
  --bg:#ffffff;
  --bg-soft:#fafafa;
  --bg-blue:#eff6ff;
  --line:#e4e4e7;
  --line-soft:#f4f4f5;
  --foot:#16213E;
  /* Gradients */
  --grad-brand:linear-gradient(135deg,var(--brand),var(--brand-2));
  --grad-video:linear-gradient(135deg,var(--brand),var(--blue) 60%,var(--teal));
  --grad-thumb:linear-gradient(135deg,#dbeafe,#eff6ff);
  --grad-prod:linear-gradient(160deg,#1e3a8a,#2563eb);
  --maxw:1200px;
  --radius:18px;
}

*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{font-family:'Be Vietnam Pro',system-ui,-apple-system,sans-serif;color:var(--text);background:var(--bg);line-height:1.55;-webkit-font-smoothing:antialiased}
a{text-decoration:none;color:inherit}
img{max-width:100%;display:block}
.container{width:100%;max-width:none;margin:0;padding:0 clamp(20px,4vw,72px)}
.grad-text{background:linear-gradient(90deg,var(--blue),var(--teal));-webkit-background-clip:text;background-clip:text;color:transparent}
.o{color:var(--accent)}
.b{color:var(--brand)}
.g{color:var(--accent)}

/* ---------- Buttons ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;font-family:inherit;font-weight:700;font-size:14px;border-radius:8px;padding:10px 18px;cursor:pointer;border:none;transition:.2s;white-space:nowrap}
.btn:hover{transform:translateY(-1px)}
.btn-lg{padding:14px 26px;font-size:15px}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-dark)}
.btn-orange{background:var(--accent);color:#fff}
.btn-orange:hover{filter:brightness(.96)}
.btn-outline{border:1.5px solid var(--brand);color:var(--brand);background:#fff}
.btn-outline:hover{background:var(--brand);color:#fff}
.w-100{width:100%}

/* ---------- Header (light — ViAI) ---------- */
header{position:sticky;top:0;z-index:60;background:rgba(255,255,255,.95);backdrop-filter:blur(8px);border-bottom:1px solid var(--line-soft)}
.nav{display:flex;align-items:center;gap:24px;height:64px}
.logo{display:flex;align-items:center;gap:10px;font-weight:800;font-size:24px;color:var(--brand);white-space:nowrap}
.logo .ico{width:42px;height:42px;border-radius:12px;background:var(--grad-video);display:flex;align-items:center;justify-content:center;color:#fff;font-size:20px}
.logo small{display:block;font-size:9px;font-weight:600;color:var(--muted-2);letter-spacing:.6px;text-transform:uppercase}
.logo .brand-t2p{color:var(--brand)}
.logo .brand-ai{color:var(--yellow)}
.logo .brand-soft{color:var(--brand)}
footer .logo .brand-t2p,footer .logo .brand-soft{color:var(--brand-2)}
.menu{display:flex;gap:22px;align-items:center;font-size:14px;font-weight:600;margin-left:14px}
.menu a{display:flex;align-items:center;gap:5px;padding:6px 0;color:var(--text);text-transform:uppercase;letter-spacing:.3px;white-space:nowrap}
.menu a:hover{color:var(--brand)}
.badge{font-size:9px;font-weight:800;padding:2px 7px;border-radius:20px;color:#fff;letter-spacing:.3px}
.badge.hot,.badge.free{background:var(--danger)}
.badge.demo{background:var(--accent);color:#111}
.badge.new{background:#16a34a}
.nav-right{margin-left:auto;display:flex;gap:10px;align-items:center}
.navbar-toggler{display:none;background:none;border:none;color:var(--brand);font-size:22px;cursor:pointer}

/* ---------- Hero (light — ViAI) ---------- */
.hero{position:relative;overflow:hidden;background:#fff;padding:64px 0 44px}
.hero-grid{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center}
.eyebrow{display:inline-flex;align-items:center;gap:8px;background:var(--bg-blue);border:1px solid #dbeafe;color:var(--brand);font-size:12px;font-weight:700;padding:7px 14px;border-radius:30px;margin-bottom:20px;letter-spacing:.3px}
.hero h1{font-size:54px;font-weight:800;line-height:1.1;letter-spacing:-1px;color:var(--text)}
.hero p.sub{margin:22px 0 28px;font-size:18px;color:var(--muted);max-width:520px}
.hero-cta{display:flex;gap:14px;margin-bottom:26px;flex-wrap:wrap}
.hero-feats{display:flex;gap:24px;flex-wrap:wrap;font-size:14px;font-weight:600;color:var(--muted)}
.hero-feats span i{color:var(--brand);margin-right:7px}
.hero-img{position:relative;border-radius:24px;overflow:hidden;background:var(--grad-thumb);aspect-ratio:4/3;display:flex;align-items:center;justify-content:center;box-shadow:0 24px 60px rgba(30,64,175,.12)}
.hero-img .play{width:96px;height:96px;border-radius:50%;background:var(--grad-video);display:flex;align-items:center;justify-content:center;font-size:34px;color:#fff;box-shadow:0 12px 30px rgba(30,64,175,.35)}
.hero-chip{position:absolute;background:#fff;border:1px solid var(--line-soft);border-radius:14px;padding:11px 15px;font-size:13px;font-weight:600;display:flex;align-items:center;gap:9px;box-shadow:0 10px 26px rgba(10,20,60,.12)}
.hero-chip i{color:var(--brand)}
.hero-chip.c1{top:20px;left:-16px}
.hero-chip.c2{bottom:24px;right:-14px}

/* ---------- Stats bar (overlap — ViAI) ---------- */
.stats-wrap{margin-top:6px;position:relative;z-index:20}
.stats{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border:1px solid var(--line-soft);border-radius:var(--radius);padding:28px;box-shadow:0 8px 30px rgba(10,20,60,.08)}
.stat{display:flex;align-items:center;justify-content:center;gap:14px;border-right:2px solid var(--line-soft)}
.stat:last-child{border-right:none}
.stat i{font-size:40px;color:var(--brand)}
.stat .num{font-size:28px;font-weight:800;color:var(--brand)}
.stat .lbl{font-size:13px;font-weight:600;color:var(--muted-2)}

/* ---------- Sections ---------- */
section.pad{padding:56px 0}
.bg-soft{background:rgba(250,250,250,.7)}
.bg-blue{background:rgba(239,246,255,.6)}
.sec-head{text-align:center;max-width:720px;margin:0 auto 36px}
.sec-head .eyebrow-light{display:inline-block;background:var(--bg-blue);color:var(--brand);font-size:12px;font-weight:800;letter-spacing:.6px;padding:6px 14px;border-radius:20px;margin-bottom:14px}
.sec-head h2{font-size:36px;font-weight:800;color:var(--brand);line-height:1.15}
.sec-head p{margin:10px auto 0;color:var(--muted);font-size:16px}

/* ---------- Solution cards (3 — ViAI) ---------- */
.sol-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.sol-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;transition:.25s}
.sol-card:hover{box-shadow:0 12px 30px rgba(10,20,60,.1);transform:translateY(-4px)}
.sol-card .thumb{aspect-ratio:16/9;background:var(--grad-thumb);display:flex;align-items:center;justify-content:center;font-size:46px;color:#3b82f6}
.sol-card .body{padding:24px;text-align:center}
.sol-card h3{font-size:19px;color:var(--brand);font-weight:800;margin-bottom:10px}
.sol-card p{font-size:14.5px;color:var(--muted);margin-bottom:18px}

/* ---------- Product cards (4 — ViAI) ---------- */
.prod-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.prod-card{border:1px solid var(--line);border-radius:18px;overflow:hidden;background:#fff;transition:.25s}
.prod-card:hover{box-shadow:0 12px 30px rgba(10,20,60,.1);transform:translateY(-4px)}
.prod-card .thumb{aspect-ratio:1;background:var(--grad-prod);display:flex;align-items:center;justify-content:center;color:#fff;font-weight:800;font-size:18px;flex-direction:column;gap:10px;text-align:center;padding:14px}
.prod-card .thumb i{font-size:36px}
.prod-card .body{padding:18px}
.prod-card h4{font-size:15px;font-weight:700;color:var(--text)}
.prod-card .body p{font-size:13px;color:var(--muted);margin-top:6px}

/* ---------- Why-choose feature cards (6 — ViAI) ---------- */
.why-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.feat-card{background:#fff;border:1px solid var(--line-soft);border-radius:16px;padding:26px;box-shadow:0 4px 14px rgba(0,0,0,.04);transition:.25s}
.feat-card:hover{box-shadow:0 14px 32px rgba(30,64,175,.1);transform:translateY(-4px)}
.feat-card .fi{width:52px;height:52px;border-radius:14px;background:var(--bg-blue);display:flex;align-items:center;justify-content:center;color:var(--brand);font-size:22px;margin-bottom:16px}
.feat-card h3{font-size:19px;color:var(--brand);font-weight:700;margin-bottom:8px}
.feat-card p{font-size:14.5px;color:var(--muted)}

/* ---------- News / media cards (4 — ViAI) ---------- */
.news-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px}
.news-card{border-radius:14px;overflow:hidden;background:#fff;border:1px solid var(--line-soft);transition:.25s}
.news-card:hover{box-shadow:0 12px 28px rgba(10,20,60,.1);transform:translateY(-3px)}
.news-card .thumb{aspect-ratio:16/10;background:var(--grad-prod);display:flex;align-items:center;justify-content:center;position:relative}
.news-card .thumb .play{width:48px;height:48px;border-radius:50%;background:rgba(255,255,255,.22);border:1px solid rgba(255,255,255,.4);display:flex;align-items:center;justify-content:center;color:#fff;font-size:16px}
.news-card .body{padding:16px}
.news-card h4{font-size:15px;font-weight:700;color:var(--brand);line-height:1.35}
.news-card .meta{font-size:12.5px;color:var(--muted-2);margin-top:8px}

/* ---------- Ecosystem / integration logos ---------- */
.logos{display:flex;justify-content:center;gap:46px;flex-wrap:wrap;align-items:center;margin-top:26px;opacity:.6}
.logos .lg{font-weight:800;color:var(--muted-2);font-size:20px;display:flex;align-items:center;gap:8px}
.logos .lg i{font-size:22px}

/* ---------- Tool / pricing cards (products.html) ---------- */
.tool-card{border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;transition:.25s;display:flex;flex-direction:column;height:100%}
.tool-card:hover{box-shadow:0 20px 44px rgba(10,20,60,.14);transform:translateY(-5px);border-color:transparent}
.tool-head{padding:26px 24px;color:#fff;position:relative}
.tool-head.easyclip{background:linear-gradient(135deg,#1E40AF,#3d8bff)}
.tool-head.autocapcut{background:linear-gradient(135deg,#1e3a8a,#2fe6d6)}
.tool-head.videocutter{background:linear-gradient(135deg,#0f766e,#2fe6d6)}
.tool-head h3{font-size:22px;font-weight:800;display:flex;align-items:center;gap:9px}
.tool-head .tagline{font-size:14px;opacity:.92;margin-top:4px}
.tool-body{padding:22px 24px;display:flex;flex-direction:column;flex:1}
.tool-price{display:flex;align-items:baseline;gap:10px;margin-bottom:16px}
.tool-price .now{font-size:28px;font-weight:800;color:var(--brand)}
.tool-price .old{font-size:15px;color:var(--muted-2);text-decoration:line-through}
.tool-body ul{list-style:none;display:flex;flex-direction:column;gap:11px;margin-bottom:20px;flex:1}
.tool-body li{font-size:14px;color:#3f3f46;display:flex;gap:9px;align-items:flex-start}
.tool-body li i{color:#16a34a;margin-top:3px}

/* ---------- CTA band (ViAI blue) ---------- */
.cta{position:relative;overflow:hidden;background:linear-gradient(135deg,var(--brand),#2c53c9);color:#fff}
.cta .container{max-width:1240px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:30px;padding:52px clamp(20px,4vw,48px);flex-wrap:wrap}
.cta h2{font-size:34px;font-weight:800;line-height:1.15}
.cta p{margin-top:10px;opacity:.92}

/* ---------- Footer (ViAI dark #16213E) ---------- */
footer{background:var(--foot);color:#fff;padding:50px 0 20px}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr 1fr;gap:30px}
.foot-col h4{font-size:16px;font-weight:700;margin-bottom:16px}
.foot-col ul{list-style:none;display:flex;flex-direction:column;gap:11px}
.foot-col li{font-size:14px;color:rgba(255,255,255,.75);display:flex;align-items:center;gap:9px;cursor:pointer}
.foot-col li:hover{color:#fff}
.foot-col li i{color:var(--accent);width:16px}
.foot-desc{font-size:14px;color:rgba(255,255,255,.75);margin:14px 0}
.foot-social{display:flex;gap:10px;margin-top:16px}
.foot-social a{width:38px;height:38px;border-radius:50%;background:rgba(255,255,255,.1);display:flex;align-items:center;justify-content:center;transition:.2s}
.foot-social a:hover{background:var(--accent)}
.foot-bottom{border-top:1px solid rgba(255,255,255,.1);margin-top:34px;padding-top:20px;display:flex;justify-content:space-between;font-size:13px;color:rgba(255,255,255,.7);flex-wrap:wrap;gap:8px}

/* ---------- Shared page components ---------- */
.page-band{background:linear-gradient(135deg,var(--brand),#2c53c9);color:#fff;padding:46px 0 40px}
.page-band .container{max-width:1200px;margin:0 auto}
.page-band h1{font-size:38px;font-weight:800;line-height:1.15;color:#fff}
.page-band h1 .hl{color:var(--yellow)}
.page-band p{color:#c9d6ff;margin-top:10px;font-size:16px;max-width:640px}
.breadcrumb{display:flex;flex-wrap:wrap;align-items:center;gap:8px;font-size:13px;color:rgba(255,255,255,.75);margin-bottom:14px}
.breadcrumb a:hover{color:#fff}
.breadcrumb i{font-size:9px;opacity:.7}
.crumb-dark{color:var(--muted-2)}
.crumb-dark a{color:var(--muted)}
.crumb-dark a:hover{color:var(--brand)}
.wrap-1200{max-width:1200px;margin:0 auto;padding:0 clamp(20px,4vw,32px)}
.tag{display:inline-flex;align-items:center;gap:5px;font-size:11px;font-weight:800;letter-spacing:.3px;text-transform:uppercase;padding:4px 10px;border-radius:20px;background:var(--bg-blue);color:var(--brand)}
.tag.orange{background:rgba(245,166,35,.15);color:#b45309}
.tag.green{background:rgba(22,163,74,.12);color:#15803d}
.pagination{display:flex;justify-content:center;gap:8px;margin-top:36px}
.pagination a{width:40px;height:40px;display:flex;align-items:center;justify-content:center;border-radius:10px;border:1px solid var(--line);background:#fff;font-weight:600;font-size:14px;color:var(--muted);transition:.2s}
.pagination a:hover{border-color:var(--brand);color:var(--brand)}
.pagination a.active{background:var(--brand);border-color:var(--brand);color:#fff}

/* ---------- Dashboard shell ---------- */
.dash-section{padding:32px 0 56px;background:var(--bg-soft);min-height:70vh}
.dash-wrap{max-width:1240px;margin:0 auto;padding:0 clamp(20px,4vw,32px);display:grid;grid-template-columns:270px 1fr;gap:26px;align-items:start}
@media(max-width:900px){.dash-wrap{grid-template-columns:1fr}}
.dash-side{background:#fff;border:1px solid var(--line-soft);border-radius:18px;overflow:hidden;box-shadow:0 6px 20px rgba(10,20,60,.05);position:sticky;top:84px}
@media(max-width:900px){.dash-side{position:static}}
.dash-user{padding:24px;text-align:center;background:linear-gradient(160deg,var(--brand),var(--brand-dark));color:#fff}
.dash-user .av{width:72px;height:72px;border-radius:50%;margin:0 auto 12px;background:rgba(255,255,255,.15);border:2px solid rgba(255,255,255,.45);display:flex;align-items:center;justify-content:center;font-size:32px}
.dash-user .role{font-size:12px;color:#c9d6ff}
.dash-user .name{font-size:18px;font-weight:800;margin-top:2px}
.dash-nav{list-style:none;padding:10px}
.dash-nav a{display:flex;align-items:center;gap:12px;padding:11px 12px;border-radius:12px;font-size:14px;font-weight:600;color:#3f3f46;transition:.2s;margin-bottom:2px}
.dash-nav a .ic{width:34px;height:34px;border-radius:10px;background:var(--bg-blue);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:15px;flex-shrink:0}
.dash-nav a:hover{background:var(--bg-soft)}
.dash-nav a.active{background:var(--brand);color:#fff}
.dash-nav a.active .ic{background:rgba(255,255,255,.2);color:#fff}
.dash-nav hr{border:none;border-top:1px solid var(--line-soft);margin:8px 6px}
.dash-nav a.logout{color:var(--danger)}
.dash-nav a.logout .ic{background:rgba(239,68,68,.1);color:var(--danger)}
.dash-main{min-width:0;display:flex;flex-direction:column;gap:22px}
.dash-title{font-size:24px;font-weight:800;color:var(--brand-dark)}
.dash-title small{display:block;font-size:14px;font-weight:500;color:var(--muted);margin-top:4px}
.dash-card{background:#fff;border:1px solid var(--line-soft);border-radius:18px;padding:24px;box-shadow:0 4px 14px rgba(10,20,60,.04)}
.dash-card h2{font-size:18px;font-weight:800;color:var(--brand-dark);margin-bottom:4px}
.dash-card .cardsub{font-size:13px;color:var(--muted);margin-bottom:18px}
.stat-tiles{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
@media(max-width:680px){.stat-tiles{grid-template-columns:1fr}}
.stat-tile{border-radius:16px;padding:22px;color:#fff;position:relative;overflow:hidden}
.stat-tile.blue{background:linear-gradient(135deg,var(--brand),var(--brand-2))}
.stat-tile.teal{background:linear-gradient(135deg,#0f766e,var(--teal))}
.stat-tile.orange{background:linear-gradient(135deg,#e08a00,var(--accent))}
.stat-tile .ti{font-size:26px;opacity:.9;margin-bottom:10px}
.stat-tile .tv{font-size:26px;font-weight:800}
.stat-tile .tl{font-size:13px;opacity:.9;margin-top:2px}
.data-table{width:100%;border-collapse:collapse}
.data-table th{text-align:left;font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.3px;color:var(--muted-2);padding:12px 14px;background:var(--bg-soft);border-bottom:1px solid var(--line)}
.data-table th.tright,.data-table td.tright{text-align:right}
.data-table td{padding:14px;font-size:14px;color:#3f3f46;border-bottom:1px solid var(--line-soft)}
.data-table tr:last-child td{border-bottom:none}
.st-badge{display:inline-flex;align-items:center;gap:5px;font-size:12px;font-weight:700;padding:4px 10px;border-radius:20px}
.st-badge.ok{background:rgba(22,163,74,.12);color:#15803d}
.st-badge.pending{background:rgba(245,166,35,.15);color:#b45309}
.st-badge.fail{background:rgba(239,68,68,.12);color:#b91c1c}
.amt-plus{color:#16a34a;font-weight:700}
.amt-minus{color:var(--danger);font-weight:700}

/* ---------- Floating contacts ---------- */
.floating{position:fixed;right:18px;bottom:18px;z-index:70;display:flex;flex-direction:column;gap:12px}
.floating a{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;color:#fff;font-size:22px;box-shadow:0 8px 20px rgba(0,0,0,.25);transition:.2s}
.floating a:hover{transform:scale(1.08)}
.floating .zalo{background:#0068ff}
.floating .phone{background:#16a34a}
.floating .mess{background:#7c3aed}

/* ---------- Auth pages (ViAI) ---------- */
.auth-page{min-height:calc(100vh - 64px);display:flex;align-items:center;justify-content:center;padding:56px 20px;background:var(--bg-soft)}
.auth-card{width:100%;max-width:440px;background:#fff;border-radius:20px;overflow:hidden;box-shadow:0 10px 40px rgba(10,20,60,.1)}
.auth-head{background:linear-gradient(160deg,var(--brand),var(--brand-dark));color:#fff;text-align:center;padding:36px 30px 30px}
.auth-head .ico{width:70px;height:70px;border-radius:20px;background:var(--grad-video);color:#fff;display:flex;align-items:center;justify-content:center;font-size:32px;margin:0 auto 14px}
.auth-head h1{font-size:26px;font-weight:800}
.auth-head p{opacity:.85;font-size:14px;margin-top:5px}
.auth-body{padding:32px 30px}
.btn-google{width:100%;display:flex;align-items:center;justify-content:center;gap:10px;background:#fff;border:1.5px solid var(--line);color:#3f3f46;font-weight:700;font-size:15px;padding:13px;border-radius:12px;cursor:pointer;transition:.2s;font-family:inherit}
.btn-google:hover{border-color:#c7c7cc;box-shadow:0 4px 14px rgba(0,0,0,.06);background:#fafafa}
.btn-google svg{width:20px;height:20px;flex-shrink:0}
.auth-divider{display:flex;align-items:center;gap:12px;margin:20px 0;color:var(--muted-2);font-size:13px;font-weight:500}
.auth-divider::before,.auth-divider::after{content:"";flex:1;height:1px;background:var(--line)}
.field{margin-bottom:18px}
.field label{display:block;font-size:14px;font-weight:600;margin-bottom:8px;color:var(--text)}
.field input,.field select{width:100%;padding:14px 16px;border:1px solid var(--line);border-radius:12px;font-size:15px;font-family:inherit;outline:none;transition:.2s;background:#fff}
.field input:focus,.field select:focus{border-color:var(--brand);box-shadow:0 0 0 3px rgba(30,64,175,.12)}
.field input::placeholder{color:#a1a1aa}
.btn-submit{width:100%;background:var(--accent);color:#fff;font-weight:700;font-size:16px;padding:16px;border:none;border-radius:12px;cursor:pointer;transition:.2s;font-family:inherit}
.btn-submit:hover{filter:brightness(.96)}
.row-between{display:flex;align-items:center;justify-content:space-between;margin:6px 0 22px}
.remember{display:flex;align-items:center;gap:8px;font-size:14px;color:var(--muted)}
.forgot{font-size:14px;color:var(--brand);font-weight:600}
.auth-foot{text-align:center;margin-top:20px;font-size:14px;color:var(--muted)}
.auth-foot a{color:var(--accent);font-weight:700}
.auth-note{text-align:center;font-size:13px;color:var(--muted-2);margin-top:14px}
.auth-note i{color:var(--brand)}
.row-2{display:grid;grid-template-columns:1fr 1fr;gap:16px}

/* ---------- Register split ---------- */
.reg-wrap{display:grid;grid-template-columns:1fr 1fr;gap:44px;align-items:center;max-width:1080px;margin:0 auto;padding:56px 24px}
.reg-hero .ribbon{display:inline-block;background:#FEF3C7;color:#B45309;font-size:12px;font-weight:800;padding:7px 15px;border-radius:20px;letter-spacing:.5px;margin-bottom:18px}
.reg-hero h1{font-size:42px;font-weight:800;line-height:1.15;color:var(--text)}
.reg-hero p{margin-top:18px;font-size:16px;color:var(--muted);max-width:460px}
.reg-perks{list-style:none;margin-top:22px;display:flex;flex-direction:column;gap:12px}
.reg-perks li{display:flex;gap:10px;align-items:center;font-size:15px;font-weight:600;color:#3f3f46}
.reg-perks li i{width:26px;height:26px;border-radius:8px;background:var(--bg-blue);color:var(--brand);display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0}

/* ---------- Fade-in ---------- */
.fade-up{opacity:0;transform:translateY(24px);animation:fadeUp .7s ease forwards}
.fade-up.d1{animation-delay:.1s}.fade-up.d2{animation-delay:.2s}.fade-up.d3{animation-delay:.3s}
@keyframes fadeUp{to{opacity:1;transform:none}}

/* ---------- Responsive ---------- */
@media(max-width:1330px) and (min-width:961px){
  .nav{gap:14px}
  .menu{gap:14px;font-size:13px;margin-left:6px}
  .nav-right{gap:8px}
  .btn{padding:8px 12px;font-size:13px}
  .logo{font-size:20px}
  .logo .ico{width:36px;height:36px;font-size:17px}
  .logo small{font-size:8px}
}
@media(max-width:960px){
  .hero-grid,.stats,.sol-grid,.prod-grid,.why-grid,.news-grid,.foot-grid,.reg-wrap,.row-2{grid-template-columns:1fr;direction:ltr}
  .reg-wrap{gap:24px;align-items:start;padding:20px 20px 40px}
  .reg-hero h1{font-size:30px}
  .reg-hero p{margin-top:12px}
  .hero h1{font-size:38px}
  .sec-head h2,.cta h2{font-size:28px}
  .menu{display:none}
  .navbar-toggler{display:block}
  .stat{border-right:none;border-bottom:1px solid var(--line-soft);padding-bottom:16px}
  .stat:last-child{border-bottom:none}
  .cta .container{flex-direction:column;text-align:center}
  .hero-chip{display:none}
  .foot-grid{gap:24px}
}
@media(max-width:560px){
  .prod-grid,.news-grid{grid-template-columns:1fr 1fr}
  .hero h1{font-size:32px}
}

/* ===== Header thu gọn cho điện thoại — tránh tràn ngang ===== */
@media(max-width:640px){
  .nav{gap:8px}
  .logo small{display:none}
  .logo{font-size:17px}
  .logo .ico{width:32px;height:32px;font-size:15px}
  .nav-right{gap:7px}
  .nav-right .btn-outline{display:none}   /* ẩn nút phụ (Đăng nhập/Đăng ký/ví) — giữ nút chính */
  .nav-right .btn{padding:8px 12px;font-size:12.5px}
  .lang-switch button{padding:5px 9px;font-size:11px}
}
@media(max-width:440px){
  .nav{gap:6px}
  .logo{font-size:14px}
  .logo .ico{width:29px;height:29px;font-size:13px}
  .nav-right{gap:6px}
  .nav-right .btn{padding:6px 9px;font-size:11px}
  .lang-switch button{padding:4px 7px;font-size:10.5px}
}

/* ===== Language switcher (VI / EN) ===== */
.lang-switch{display:inline-flex;align-items:center;border:1px solid var(--line);border-radius:20px;overflow:hidden;background:#fff;flex-shrink:0}
.lang-switch button{border:0;background:transparent;font-family:inherit;font-size:12px;font-weight:700;color:var(--muted);padding:6px 11px;cursor:pointer;line-height:1;transition:.15s}
.lang-switch button:hover{color:var(--brand)}
.lang-switch button.active{background:var(--brand);color:#fff}
.lang-switch button+button{border-left:1px solid var(--line)}

/* ============================================================
   Override legacy site.css `a.btn, button.btn` (specificity 0,1,1)
   which otherwise clobbers the template button system on redesigned
   pages (forces uppercase, white text, line-height:48px, square).
   These selectors match/exceed that specificity and load after it.
   ============================================================ */
a.btn, button.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-family:inherit; font-weight:700; font-size:14px; line-height:1.2;
  border:none; border-radius:8px; padding:10px 18px;
  text-transform:none; letter-spacing:normal; color:var(--text); position:static;
}
a.btn.btn-lg, button.btn.btn-lg{ padding:14px 26px; font-size:15px }
a.btn.btn-primary, button.btn.btn-primary{ background:var(--brand); color:#fff }
a.btn.btn-primary:hover, button.btn.btn-primary:hover{ background:var(--brand-dark); color:#fff }
a.btn.btn-orange, button.btn.btn-orange{ background:var(--accent); color:#fff }
a.btn.btn-orange:hover, button.btn.btn-orange:hover{ filter:brightness(.96); background:var(--accent); color:#fff }
a.btn.btn-outline, button.btn.btn-outline{ border:1.5px solid var(--brand); color:var(--brand); background:#fff }
a.btn.btn-outline:hover, button.btn.btn-outline:hover{ background:var(--brand); color:#fff }
a.btn.btn-white, button.btn.btn-white{ background:#fff; color:var(--brand) }
a.btn.btn-white:hover, button.btn.btn-white:hover{ background:#fff; color:var(--brand); filter:brightness(.97) }
