:root {
  --bg-main: #070a12;
  --bg-alt: #0b101d;
  --bg-card: #111827;
  --bg-card-elevated: #161f33;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent: #f97316;
  --accent-hover: #ea580c;
  --accent-soft: rgba(249, 115, 22, 0.14);
  --success: #10b981;
  --danger: #ef4444;
  --radius: 16px;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.muted { color: var(--text-muted); font-size: 14px; }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 10px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: all 0.22s ease; font-family: inherit;
}
.btn-lg { padding: 13px 24px; font-size: 15px; }
.btn-sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.full-width { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 6px 20px rgba(249, 115, 22, 0.28); }
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

.btn-ghost { background: transparent; color: var(--text-main); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }

.btn-outline { background: rgba(255, 255, 255, 0.02); border-color: var(--border-strong); color: var(--text-main); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: rgba(249, 115, 22, 0.06); }

.btn-admin-nav {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(234, 88, 12, 0.1));
  border: 1px solid rgba(249, 115, 22, 0.45);
  color: #fdba74; font-size: 13px; padding: 7px 13px;
}
.btn-admin-nav:hover { background: var(--accent); color: #fff; }

.btn-disabled { background: rgba(255, 255, 255, 0.04); color: var(--text-muted); border-color: var(--border); cursor: not-allowed; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #dc2626; }
.btn-danger-outline { background: transparent; border-color: rgba(239, 68, 68, 0.4); color: #fca5a5; }
.btn-danger-outline:hover { background: rgba(239, 68, 68, 0.12); }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 60;
  background: rgba(7, 10, 18, 0.84); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-main); }
.brand-logo { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-text { font-size: 18px; letter-spacing: 0.6px; font-weight: 700; }
.brand-text strong { color: var(--accent); font-weight: 800; }

.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 14px; font-weight: 600; transition: color 0.2s; }
.nav-links a:hover { color: var(--text-main); }
.nav-actions { display: flex; align-items: center; gap: 10px; }

.user-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-card); border: 1px solid var(--border-strong);
  color: var(--text-main); padding: 5px 12px 5px 5px; border-radius: 999px;
  cursor: pointer; font-family: inherit; font-size: 13.5px; font-weight: 600;
}
.user-pill:hover { border-color: var(--accent); }
.user-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent);
  color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px;
}
.badge-id {
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  padding: 2px 7px; border-radius: 6px; background: var(--accent-soft); color: var(--accent);
}

/* HERO DYNAMIC CAROUSEL */
.hero-carousel {
  position: relative; overflow: hidden;
  border-bottom: 1px solid var(--border);
  min-height: 560px; display: flex; align-items: center;
}
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at center, black 35%, transparent 80%);
}
.hero-ambient {
  position: absolute; top: -160px; right: -80px; width: 620px; height: 620px;
  border-radius: 50%; filter: blur(90px); opacity: 0.22;
  background: var(--accent); pointer-events: none; transition: background 0.8s ease;
}
.carousel-container { position: relative; z-index: 2; padding-top: 64px; padding-bottom: 56px; width: 100%; }

.slide-item {
  display: none; grid-template-columns: 1.15fr 0.85fr; gap: 48px; align-items: center;
  animation: slideFadeIn 0.55s cubic-bezier(0.16, 1, 0.3, 1);
}
.slide-item.active { display: grid; }

@keyframes slideFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 12px; font-weight: 600;
  padding: 6px 13px; border-radius: 999px; margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong);
}
.slide-badge-dot { width: 8px; height: 8px; border-radius: 50%; }

.slide-content h1 {
  font-size: 46px; line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 18px;
}
.slide-desc { color: var(--text-muted); font-size: 16.5px; margin-bottom: 30px; max-width: 550px; line-height: 1.7; }
.slide-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Slide Visual Card (Bên phải banner) */
.slide-visual {
  position: relative; border-radius: 20px; overflow: hidden;
  background: rgba(17, 24, 39, 0.78); backdrop-filter: blur(18px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.55);
}
.slide-visual-img { width: 100%; height: 330px; object-fit: cover; display: block; }
.slide-mockup { padding: 24px; }
.mockup-bar { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--border); }
.dots-mac { display: flex; gap: 6px; }
.dots-mac span { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.mockup-tag { font-family: var(--font-mono); font-size: 11px; color: var(--success); }
.slide-mockup h4 { font-size: 19px; margin-bottom: 10px; }
.slide-mockup p { font-size: 14px; color: #cbd5e1; line-height: 1.75; margin-bottom: 16px; }
.mockup-bar-progress { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
.mockup-bar-progress div { height: 100%; width: 72%; border-radius: 99px; }

/* Carousel Controls */
.carousel-controls {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--border);
}
.carousel-dots { display: flex; gap: 8px; }
.dot-btn {
  width: 28px; height: 6px; border-radius: 99px; border: none;
  background: rgba(255, 255, 255, 0.16); cursor: pointer; transition: all 0.3s ease;
}
.dot-btn.active { width: 52px; background: var(--accent); }
.carousel-arrows { display: flex; gap: 8px; }
.arrow-btn {
  width: 40px; height: 40px; border-radius: 10px; background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-strong); color: var(--text-main); font-size: 16px;
  cursor: pointer; transition: all 0.2s;
}
.arrow-btn:hover { border-color: var(--accent); color: var(--accent); background: rgba(249, 115, 22, 0.08); }

.slide-timer-bar { position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: rgba(255, 255, 255, 0.05); }
.slide-timer-fill { height: 100%; width: 0%; background: var(--accent); }

/* SECTIONS & PRODUCTS */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-tag { font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--accent); letter-spacing: 1px; }
.section-head h2 { font-size: 32px; font-weight: 800; margin: 8px 0 12px; }
.section-head p { color: var(--text-muted); font-size: 15.5px; }

.products-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.product-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column; cursor: pointer;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.product-card:hover {
  transform: translateY(-4px); border-color: var(--accent);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.45);
}
.product-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 18px; }
.product-icon {
  width: 54px; height: 54px; border-radius: 14px; background: var(--accent-soft);
  color: var(--accent); display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 22px; overflow: hidden; border: 1px solid rgba(249, 115, 22, 0.3);
}
.product-icon img { width: 100%; height: 100%; object-fit: cover; }
.product-badges { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-pill {
  font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
}
.status-pill.live { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.status-pill.pending { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.status-pill.planned { background: rgba(148, 163, 184, 0.15); color: #cbd5e1; }
.version-tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-muted); }

.product-cat { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent); margin-bottom: 4px; }
.product-card h3 { font-size: 23px; margin-bottom: 6px; }
.product-tagline { font-size: 14.5px; font-weight: 600; color: #e2e8f0; margin-bottom: 10px; }
.product-summary { color: var(--text-muted); font-size: 14px; margin-bottom: 22px; flex: 1; }
.product-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 16px; border-top: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--accent);
}

/* FEATURES GRID */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.feature-num { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 14px; }
.feature-card h4 { font-size: 18px; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 14px; }

/* PRODUCT DETAIL MODAL - STOREFRONT PRO EDITION */
.modal-box.modal-product {
  max-width: 1060px; width: 95vw; max-height: 90vh; padding: 0;
  overflow-y: auto; overflow-x: hidden; border-radius: 22px; background: #0b101d;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.85);
}
.modal-product::-webkit-scrollbar { width: 7px; }
.modal-product::-webkit-scrollbar-track { background: #070a12; border-radius: 0 22px 22px 0; }
.modal-product::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.16); border-radius: 99px; }
.modal-product::-webkit-scrollbar-thumb:hover { background: var(--accent); }

.modal-product .modal-close {
  position: sticky; top: 16px; float: right; margin: 16px 18px 0 0;
  width: 38px; height: 38px; border-radius: 50%; z-index: 30;
  background: rgba(7, 10, 18, 0.78); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16); color: #f8fafc;
  display: flex; align-items: center; justify-content: center; font-size: 22px;
  transition: all 0.2s ease;
}
.modal-product .modal-close:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.prod-banner {
  position: relative; clear: both; margin-top: -54px;
  padding: 46px 40px 36px; overflow: hidden;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.22) 0%, rgba(17, 24, 39, 0.96) 52%, #0b101d 100%);
  border-bottom: 1px solid var(--border);
}
.prod-banner-bg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: 0.22; pointer-events: none;
}
.prod-banner-inner { position: relative; z-index: 2; display: flex; align-items: center; gap: 24px; }
.prod-hero-icon {
  width: 84px; height: 84px; flex-shrink: 0; border-radius: 20px;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.25), rgba(234, 88, 12, 0.12));
  border: 1px solid rgba(249, 115, 22, 0.45); color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 36px; font-weight: 800; overflow: hidden;
  box-shadow: 0 14px 34px rgba(249, 115, 22, 0.25);
}
.prod-hero-icon img { width: 100%; height: 100%; object-fit: cover; }
.prod-hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 8px; }
.prod-hero-title { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; }
.prod-hero-tagline { font-size: 16px; color: #cbd5e1; margin-bottom: 14px; }
.prod-tags-row { display: flex; flex-wrap: wrap; gap: 8px; }
.prod-chip {
  font-family: var(--font-mono); font-size: 11.5px; color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border-strong);
  padding: 4px 10px; border-radius: 8px;
}

.prod-store-grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 30px;
  padding: 32px 40px 40px; align-items: start;
}
.prod-detail-section { margin-bottom: 28px; }
.prod-detail-section:last-child { margin-bottom: 0; }
.prod-detail-section h4 {
  font-size: 13px; color: var(--accent); margin-bottom: 14px;
  text-transform: uppercase; letter-spacing: 1px; font-family: var(--font-mono);
}

.prod-showcase-frame {
  border-radius: 16px; overflow: hidden; border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, #111827, #070a12); margin-bottom: 28px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
.prod-showcase-frame img { width: 100%; max-height: 300px; object-fit: cover; display: block; }
.prod-showcase-sim { padding: 22px 24px; }
.sim-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.sim-badge { font-family: var(--font-mono); font-size: 11px; color: var(--success); }
.sim-quote { font-size: 14.5px; color: #e2e8f0; line-height: 1.75; font-style: italic; }

.prod-features-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.feat-mini-card {
  background: rgba(255, 255, 255, 0.025); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; transition: border-color 0.2s;
}
.feat-mini-card:hover { border-color: rgba(249, 115, 22, 0.4); }
.feat-mini-num { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.feat-mini-text { font-size: 13.5px; color: #e2e8f0; line-height: 1.55; }

.changelog-box {
  background: #070a12; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; font-family: var(--font-mono); font-size: 12.5px; color: #cbd5e1; white-space: pre-wrap; line-height: 1.65;
}

.prod-side-panel {
  background: #111827; border: 1px solid var(--border-strong);
  border-radius: 16px; padding: 22px; margin-bottom: 20px;
}
.dl-card {
  background: #070a12; border: 1px solid var(--border); border-radius: 12px;
  padding: 16px; margin-bottom: 14px; transition: border-color 0.2s;
}
.dl-card:last-child { margin-bottom: 0; }
.dl-card:hover { border-color: var(--border-strong); }
.dl-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.dl-os-icon { width: 22px; height: 22px; color: #60a5fa; flex-shrink: 0; }
.dl-os-icon.android { color: #34d399; }
.dl-card h5 { font-size: 15.5px; margin: 0; }
.dl-card p { font-size: 12.5px; color: var(--text-muted); margin-bottom: 14px; }

.specs-table { display: flex; flex-direction: column; }
.spec-item {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.spec-item:last-child { border-bottom: none; padding-bottom: 0; }
.spec-item span { color: var(--text-muted); }
.spec-item strong { color: #f8fafc; text-align: right; }
/* PORTAL & ADMIN STUDIO */
.portal-section { padding: 48px 0 84px; min-height: calc(100vh - 150px); }
.portal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; }
.portal-header h2 { font-size: 28px; margin-top: 4px; }
.portal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; }
.portal-sidebar { display: flex; flex-direction: column; gap: 6px; background: var(--bg-card); padding: 10px; border-radius: var(--radius); border: 1px solid var(--border); }
.portal-tab {
  text-align: left; background: transparent; border: none; color: var(--text-muted);
  padding: 12px 14px; border-radius: 10px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
.portal-tab:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.04); }
.portal-tab.active { background: var(--accent-soft); color: var(--accent); }
.portal-tab.admin-tab { border-top: 1px solid var(--border); margin-top: 6px; color: #fdba74; }

.card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.card h3 { font-size: 19px; margin-bottom: 4px; }
.card-sub { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.card-head-flex { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; }
.danger-zone { border-color: rgba(239, 68, 68, 0.35); }

.admin-topbar {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.14), rgba(17, 24, 39, 0.9));
  border: 1px solid rgba(249, 115, 22, 0.35); border-radius: var(--radius);
  padding: 20px 24px; margin-bottom: 20px;
}
.admin-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.admin-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
.admin-item-box {
  background: #070a12; border: 1px solid var(--border-strong); border-radius: 12px;
  padding: 18px; margin-bottom: 16px;
}
.admin-item-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
}

.info-row {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid var(--border);
}
.info-row:last-child { border-bottom: none; }
.info-label { color: var(--text-muted); font-size: 14px; }
.uid-box { display: flex; align-items: center; gap: 8px; }
.uid-box code {
  font-family: var(--font-mono); font-size: 13px; background: rgba(0, 0, 0, 0.4);
  padding: 5px 10px; border-radius: 6px; color: #e2e8f0;
}
.status-badge.active {
  font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
  background: rgba(16, 185, 129, 0.16); color: var(--success);
}

.session-item {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px;
  background: rgba(0, 0, 0, 0.22);
}
.session-title { font-weight: 700; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.session-meta { font-size: 13px; color: var(--text-muted); margin-top: 4px; }
.current-tag { font-size: 11px; background: rgba(16, 185, 129, 0.16); color: var(--success); padding: 2px 8px; border-radius: 6px; }

/* FORMS & ALERTS */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: #e2e8f0; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 10px 13px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: #090d16; color: var(--text-main); font-family: inherit; font-size: 14px;
}
.form-group textarea { min-height: 82px; resize: vertical; line-height: 1.5; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { outline: none; border-color: var(--accent); }
.form-stack { max-width: 440px; }

.pass-wrap { position: relative; }
.pass-wrap input { padding-right: 64px; }
.toggle-pass {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; color: var(--text-muted); font-size: 12.5px; font-weight: 600; cursor: pointer;
}

.alert { padding: 12px 14px; border-radius: 10px; font-size: 13.5px; margin-bottom: 16px; font-weight: 500; }
.alert.error { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }
.alert.success { background: rgba(16, 185, 129, 0.14); border: 1px solid rgba(16, 185, 129, 0.4); color: #6ee7b7; }

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100; background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(8px); display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-box {
  position: relative; width: 100%; max-width: 430px; background: var(--bg-card);
  border: 1px solid var(--border-strong); border-radius: 18px; padding: 28px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.7);
}
.modal-wide { max-width: 600px; }
.modal-close {
  position: absolute; top: 16px; right: 18px; background: transparent; border: none;
  color: var(--text-muted); font-size: 26px; cursor: pointer; line-height: 1;
}
.modal-brand { text-align: center; margin-bottom: 20px; }
.modal-brand h3 { font-size: 22px; margin: 8px 0 4px; }
.modal-brand p { font-size: 13.5px; color: var(--text-muted); }

.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: #090d16; padding: 4px; border-radius: 10px; margin-bottom: 20px; }
.auth-tab {
  padding: 9px; border: none; background: transparent; color: var(--text-muted);
  font-weight: 600; font-size: 14px; border-radius: 8px; cursor: pointer; font-family: inherit;
}
.auth-tab.active { background: var(--bg-card); color: var(--text-main); }
.legal-content { color: var(--text-muted); font-size: 14px; margin-top: 14px; line-height: 1.7; }

/* FAQ SECTION */
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.faq-card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: border-color 0.2s;
}
.faq-card:hover { border-color: var(--border-strong); }
.faq-card h4 { font-size: 16.5px; color: #f8fafc; margin-bottom: 8px; }
.faq-card p { font-size: 14px; color: var(--text-muted); line-height: 1.65; }

/* LEGAL CENTER VIEW */
.legal-section { padding: 48px 0 84px; min-height: calc(100vh - 150px); }
.legal-layout { display: grid; grid-template-columns: 270px 1fr; gap: 28px; align-items: start; }
.legal-doc-card { padding: 34px 38px; }
.legal-doc-meta { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.legal-doc-heading { font-size: 28px; font-weight: 800; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.legal-doc-body h3 { font-size: 17.5px; color: #f8fafc; margin: 24px 0 10px; }
.legal-doc-body h3:first-child { margin-top: 0; }
.legal-doc-body p { color: #cbd5e1; font-size: 14.5px; line-height: 1.78; margin-bottom: 12px; }
.legal-doc-body ul { margin: 8px 0 16px 20px; color: #cbd5e1; font-size: 14.5px; line-height: 1.75; }
.legal-doc-body li { margin-bottom: 6px; }
.legal-callout {
  background: rgba(249, 115, 22, 0.08); border-left: 3px solid var(--accent);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 16px 0; color: #e2e8f0; font-size: 14px;
}

/* FOOTER 3 CỘT */
.footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: #05070d; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--border); }
.footer-copy { color: var(--text-muted); font-size: 13.5px; margin-top: 12px; max-width: 380px; line-height: 1.65; }
.footer-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 12.5px; }
.footer-status a { color: var(--success); text-decoration: none; font-weight: 600; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #f8fafc; margin-bottom: 14px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: var(--text-muted); text-decoration: none; font-size: 13.5px; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 22px; color: var(--text-muted); font-size: 13px;
}

/* INPUT KÈM NÚT UPLOAD ẢNH & MOBILE DRAWER */
.input-with-upload { display: flex; gap: 8px; align-items: center; }
.input-with-upload input { flex: 1; }
.mobile-menu-btn {
  display: none; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border-strong);
  color: var(--text-main); width: 40px; height: 40px; border-radius: 10px;
  font-size: 18px; align-items: center; justify-content: center; cursor: pointer;
}
.mobile-drawer {
  display: flex; flex-direction: column; background: #0b101d;
  border-top: 1px solid var(--border); padding: 12px 20px 18px;
}
.mobile-drawer a {
  padding: 12px 8px; color: var(--text-main); text-decoration: none;
  font-weight: 600; font-size: 15px; border-bottom: 1px solid var(--border);
}
.mobile-drawer a:last-child { border-bottom: none; }

@media (max-width: 880px) {
  .slide-item.active, .products-grid, .features-grid, .faq-grid, .portal-layout, .legal-layout, .footer-grid, .prod-store-grid, .prod-features-cards, .admin-grid-2, .admin-grid-3 {
    grid-template-columns: 1fr;
  }
  .legal-doc-card { padding: 24px 20px; }
  .prod-banner { padding: 36px 22px 26px; }
  .prod-banner-inner { flex-direction: column; align-items: flex-start; }
  .prod-store-grid { padding: 24px 22px 30px; }
  .slide-content h1 { font-size: 34px; }
  .nav-links { display: none; }
  .mobile-menu-btn { display: inline-flex; }
}