/* =====================================================================
   Shared Account – design system (theo AIShareHub: nền tối, cyan neon,
   xanh lá neon, card kính, grid-circuit, hiệu ứng 3D cinematic)
   ===================================================================== */
:root {
  color-scheme: dark;
  --background: #0a0b14;
  --foreground: #f0f4ff;
  --primary: #00e5ff;
  --primary-foreground: #0a0b14;
  --secondary: #12152a;
  --secondary-foreground: #f0f4ff;
  --accent: #39ff14;
  --accent-foreground: #0a0b14;
  --muted: #1e2240;
  --muted-foreground: #8892b0;
  --card: #111428;
  --card-foreground: #f0f4ff;
  --border: #1e2a4a;
  --input: #1e2240;
  --ring: #00e5ff;
  --danger: #ff4d6d;
  --warn: #ffb020;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 28px;
  --radius-3xl: 36px;
  --p10: rgba(0, 229, 255, 0.1);
  --p15: rgba(0, 229, 255, 0.15);
  --p20: rgba(0, 229, 255, 0.2);
  --p30: rgba(0, 229, 255, 0.3);
  --p50: rgba(0, 229, 255, 0.5);
  --a10: rgba(57, 255, 20, 0.1);
  --a20: rgba(57, 255, 20, 0.2);
  --a30: rgba(57, 255, 20, 0.3);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --header-h: 64px;
  --tabbar-h: 64px;
  --sidebar-w: 264px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}
@media (min-width: 768px) {
  :root { --header-h: 80px; }
}

/* ---------- Base ---------- */
* { box-sizing: border-box; border-color: var(--border); }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: var(--primary); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
img { max-width: 100%; display: block; }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.right { margin-left: auto; }
.row { display: flex; align-items: center; gap: 10px; }
.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt-8 { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.hidden { display: none !important; }
.text-primary { color: var(--primary); }
.text-accent { color: var(--accent); }
.boot { padding: 60px 20px; text-align: center; color: var(--muted-foreground); }
code { background: var(--muted); padding: 1px 6px; border-radius: 6px; font-size: 12px; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }
@media (min-width: 640px) { .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .container { padding: 0 2rem; } }

/* ---------- Nền toàn trang ---------- */
.bg-fx { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0, 229, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%);
}
.bg3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.85; }
.bg-blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; }
.bg-blob-1 { width: 520px; height: 520px; top: -160px; right: -120px; background: radial-gradient(circle, rgba(0, 229, 255, 0.22), transparent 70%); animation: depthPulse 8s ease-in-out infinite; }
.bg-blob-2 { width: 460px; height: 460px; bottom: -160px; left: -140px; background: radial-gradient(circle, rgba(57, 255, 20, 0.12), transparent 70%); animation: depthPulse 10s ease-in-out infinite 2s; }
.app-root { position: relative; z-index: 1; }

/* ---------- Tiện ích từ design system ---------- */
.tag-pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 0.3rem 0.8rem; border-radius: 9999px;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap;
  border: 1px solid var(--border); color: var(--muted-foreground); background: transparent;
}
.tag-primary { border-color: var(--p30); color: var(--primary); background: var(--p10); }
.tag-accent { border-color: var(--a30); color: var(--accent); background: var(--a10); }
.tag-muted { border-color: var(--border); color: var(--muted-foreground); background: rgba(255, 255, 255, 0.03); }
.tag-warn { border-color: rgba(255, 176, 32, 0.4); color: var(--warn); background: rgba(255, 176, 32, 0.1); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; animation: pingSlow 2s ease-in-out infinite; }

.hero-heading { font-size: clamp(2.4rem, 6.5vw, 5.6rem); line-height: 1.05; letter-spacing: -0.04em; font-weight: 800; }
.section-heading { font-size: clamp(1.9rem, 4vw, 3.4rem); line-height: 1.1; letter-spacing: -0.03em; font-weight: 800; }
.text-highlight-cyan { background: var(--primary); color: var(--primary-foreground); padding: 0.08em 0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.35; }
.text-highlight-dark { background: var(--background); color: var(--foreground); padding: 0.08em 0.25em; box-decoration-break: clone; -webkit-box-decoration-break: clone; line-height: 1.35; }
.shimmer-text {
  background: linear-gradient(90deg, var(--primary) 0%, var(--accent) 40%, var(--primary) 80%); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: shimmer 3s linear infinite;
}
.glow-cyan { box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), 0 0 60px rgba(0, 229, 255, 0.12); }
.glow-green { box-shadow: 0 0 20px rgba(57, 255, 20, 0.4), 0 0 50px rgba(57, 255, 20, 0.15); }
.card-glass { background: rgba(17, 20, 40, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--p15); }
.card-glass-hover { transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s var(--ease-spring); }
.card-glass-hover:hover { border-color: var(--p50); box-shadow: 0 0 32px var(--p20); transform: translateY(-4px); }
.grid-circuit { background-image: linear-gradient(rgba(0, 229, 255, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 229, 255, 0.04) 1px, transparent 1px); background-size: 40px 40px; }
.noise-overlay { position: relative; }
.noise-overlay::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 1; border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
}
.blob { position: absolute; pointer-events: none; border-radius: 50%; }
.blob-primary { background: radial-gradient(ellipse at center, rgba(0, 229, 255, 0.18) 0%, transparent 70%); filter: blur(60px); }
.blob-accent { background: radial-gradient(ellipse at center, rgba(57, 255, 20, 0.12) 0%, transparent 70%); filter: blur(80px); }
.scan-line { position: absolute; left: 0; right: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), transparent); animation: scanLine 5s linear infinite; z-index: 2; pointer-events: none; }
.organic-hero { border-bottom-left-radius: 80px; }
@media (min-width: 768px) { .organic-hero { border-bottom-left-radius: 140px; } }
.perspective-container { perspective: 1200px; perspective-origin: 50% 50%; }

.card-3d { transform-style: preserve-3d; transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.35s ease, border-color 0.3s ease; will-change: transform; }
.card-3d:hover { transform: rotateX(-4deg) rotateY(4deg) translateZ(16px) scale(1.02); box-shadow: -8px 16px 40px rgba(0, 229, 255, 0.18), 0 0 60px rgba(0, 229, 255, 0.08); border-color: var(--p50); }
.hover-3d-lift { transition: transform 0.3s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.3s ease; transform-style: preserve-3d; }
.hover-3d-lift:hover, .btn.hover-3d-lift:hover:not(:disabled) { transform: perspective(600px) translateZ(20px) translateY(-4px); box-shadow: 0 20px 60px rgba(0, 229, 255, 0.2), 0 0 40px rgba(0, 229, 255, 0.1); }
[data-mouse3d] { transform-style: preserve-3d; will-change: transform; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes pulseGlow { 0%, 100% { opacity: 1; box-shadow: 0 0 20px rgba(0, 229, 255, 0.4); } 50% { opacity: 0.7; box-shadow: 0 0 40px rgba(0, 229, 255, 0.7), 0 0 80px rgba(0, 229, 255, 0.2); } }
@keyframes scanLine { 0% { transform: translateY(-100%); opacity: 0; } 10% { opacity: 1; } 90% { opacity: 1; } 100% { transform: translateY(80vh); opacity: 0; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pingSlow { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }
@keyframes shimmer { 0% { background-position: -200% center; } 100% { background-position: 200% center; } }
@keyframes depthPulse { 0%, 100% { transform: perspective(800px) translateZ(0); } 50% { transform: perspective(800px) translateZ(12px) scale(1.04); } }
@keyframes pageEnter3D { 0% { opacity: 0; transform: perspective(1400px) rotateX(8deg) translateY(40px) scale(0.97); } 100% { opacity: 1; transform: perspective(1400px) rotateX(0) translateY(0) scale(1); } }
@keyframes reveal3DUp { 0% { opacity: 0; transform: perspective(800px) rotateX(20deg) translateY(48px) translateZ(-60px); } 100% { opacity: 1; transform: perspective(800px) rotateX(0) translateY(0) translateZ(0); } }
@keyframes reveal3DLeft { 0% { opacity: 0; transform: perspective(800px) rotateY(-18deg) translateX(-40px) translateZ(-40px); } 100% { opacity: 1; transform: perspective(800px) rotateY(0) translateX(0) translateZ(0); } }
@keyframes reveal3DRight { 0% { opacity: 0; transform: perspective(800px) rotateY(18deg) translateX(40px) translateZ(-40px); } 100% { opacity: 1; transform: perspective(800px) rotateY(0) translateX(0) translateZ(0); } }
@keyframes depthPop { 0% { opacity: 0; transform: perspective(800px) scale(0.85) translateZ(-80px); } 60% { transform: perspective(800px) scale(1.03) translateZ(8px); } 100% { opacity: 1; transform: perspective(800px) scale(1) translateZ(0); } }
@keyframes rotateSlow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.animate-float { animation: float 6s ease-in-out infinite; }
.animate-pulse-glow { animation: pulseGlow 3s ease-in-out infinite; }
.animate-ping-slow { animation: pingSlow 2s ease-in-out infinite; }
.animate-depth-pulse { animation: depthPulse 4s ease-in-out infinite; }
.animate-page-enter { animation: pageEnter3D 0.9s var(--ease-out) forwards; }
.animate-reveal-3d-up { animation: reveal3DUp 0.8s var(--ease-out) forwards; opacity: 0; }
.animate-reveal-3d-left { animation: reveal3DLeft 0.8s var(--ease-out) forwards; opacity: 0; }
.animate-reveal-3d-right { animation: reveal3DRight 0.8s var(--ease-out) forwards; opacity: 0; }
.animate-depth-pop { animation: depthPop 0.7s var(--ease-spring) forwards; opacity: 0; }
.stagger-3d-1 { animation-delay: 0.05s; }
.stagger-3d-2 { animation-delay: 0.15s; }
.stagger-3d-3 { animation-delay: 0.25s; }
.stagger-3d-4 { animation-delay: 0.35s; }
.stagger-3d-5 { animation-delay: 0.45s; }
.stagger-3d-6 { animation-delay: 0.55s; }

.reveal-3d { opacity: 0; transform: perspective(800px) rotateX(16deg) translateY(40px) translateZ(-40px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-3d-left { opacity: 0; transform: perspective(800px) rotateY(-14deg) translateX(-32px) translateZ(-30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-3d-right { opacity: 0; transform: perspective(800px) rotateY(14deg) translateX(32px) translateZ(-30px); transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.reveal-3d-pop { opacity: 0; transform: perspective(800px) scale(0.88) translateZ(-60px); transition: opacity 0.6s var(--ease-spring), transform 0.6s var(--ease-spring); }
.reveal-3d.is-visible { opacity: 1; transform: perspective(800px) rotateX(0deg) translateY(0) translateZ(0); }
.reveal-3d-left.is-visible, .reveal-3d-right.is-visible { opacity: 1; transform: perspective(800px) rotateY(0deg) translateX(0) translateZ(0); }
.reveal-3d-pop.is-visible { opacity: 1; transform: perspective(800px) scale(1) translateZ(0); }
.reveal-wrap { height: 100%; }
.reveal-wrap > .room-card, .reveal-wrap > .testi-card { height: 100%; }

/* ---------- Nút ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.8rem 1.6rem; border-radius: 9999px; border: 1px solid transparent;
  font-size: 0.875rem; font-weight: 700; line-height: 1.2; white-space: nowrap;
  transition: opacity 0.2s, border-color 0.2s, color 0.2s, background 0.2s, transform 0.25s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.25s;
}
.btn svg { width: 16px; height: 16px; flex: none; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 24px rgba(0, 229, 255, 0.35), 0 0 60px rgba(0, 229, 255, 0.12); }
.btn-primary:hover:not(:disabled) { opacity: 0.92; transform: perspective(600px) translateZ(12px) translateY(-2px); box-shadow: 0 16px 40px rgba(0, 229, 255, 0.25), 0 0 40px rgba(0, 229, 255, 0.15); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); box-shadow: 0 0 20px rgba(57, 255, 20, 0.35), 0 0 50px rgba(57, 255, 20, 0.12); }
.btn-accent:hover:not(:disabled) { opacity: 0.92; transform: perspective(600px) translateZ(12px) translateY(-2px); }
.btn-outline { border-color: var(--border); color: var(--foreground); background: transparent; }
.btn-outline:hover:not(:disabled) { border-color: var(--p50); color: var(--primary); transform: translateY(-2px); }
.btn-glass { background: rgba(255, 255, 255, 0.04); border-color: var(--border); color: var(--muted-foreground); }
.btn-glass:hover:not(:disabled) { color: var(--primary); border-color: var(--p50); }
.btn-ghost { color: var(--primary); }
.btn-ghost:hover:not(:disabled) { background: var(--p10); }
.btn-danger { background: rgba(255, 77, 109, 0.12); color: #ff8fa3; border-color: rgba(255, 77, 109, 0.35); }
.btn-danger:hover:not(:disabled) { background: rgba(255, 77, 109, 0.22); }
.btn-sm { padding: 0.55rem 1.1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2rem; font-size: 0.95rem; }
.btn-block { width: 100%; }
.btn-cta { border-radius: var(--radius-lg); width: 100%; padding: 0.9rem 1.2rem; }
.btn .arrow-circle { width: 28px; height: 28px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(10, 11, 20, 0.2); transition: transform 0.25s; }
.btn:hover .arrow-circle { transform: translate(2px, -2px); }
.btn-outline .arrow-circle { background: var(--primary); color: var(--primary-foreground); }

/* ---------- Header / Footer ---------- */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 50; transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s; border-bottom: 1px solid transparent; background: transparent; }
.site-header.scrolled { background: rgba(10, 11, 20, 0.9); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--foreground); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; white-space: nowrap; }
.brand-img { width: 36px; height: 36px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(0, 229, 255, 0.4)); transition: opacity 0.3s; }
.brand:hover .brand-img { opacity: 0.8; }
.brand-text span { color: var(--primary); }
.header-nav { display: none; align-items: center; gap: 2rem; }
.header-nav a { position: relative; font-size: 0.875rem; font-weight: 600; color: var(--muted-foreground); transition: color 0.2s; padding: 6px 0; }
.header-nav a::after { content: ""; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--primary); transition: width 0.3s; }
.header-nav a:hover, .header-nav a.active { color: var(--foreground); }
.header-nav a:hover::after, .header-nav a.active::after { width: 100%; }
.header-cta { display: none; align-items: center; gap: 12px; }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: var(--radius); border: 1px solid var(--border); color: var(--foreground); }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-menu[hidden] { display: none !important; }
.mobile-menu { position: fixed; inset: 0; z-index: 40; background: rgba(10, 11, 20, 0.96); backdrop-filter: blur(20px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.6rem; padding: 24px; }
.mobile-menu a, .mobile-menu button { font-size: 1.5rem; font-weight: 800; color: var(--foreground); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .btn { font-size: 0.95rem; }
@media (min-width: 768px) {
  .header-nav, .header-cta { display: flex; }
  .menu-btn { display: none; }
  .header-nav { gap: 1.1rem; }
  .header-nav a { white-space: nowrap; font-size: 0.8rem; }
}
@media (min-width: 1100px) { .header-nav { gap: 2rem; } .header-nav a { font-size: 0.875rem; } }
.header-user { display: flex; align-items: center; gap: 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; text-transform: uppercase; color: var(--primary); background: var(--p10); border: 1px solid var(--p30); flex: none; }
.header-user .name { display: none; font-weight: 700; font-size: 0.875rem; }
@media (min-width: 768px) { .header-user .name { display: inline; } }
.role-badge { display: inline-flex; align-items: center; gap: 6px; padding: 0.25rem 0.7rem; border-radius: 9999px; font-size: 0.65rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
.role-badge.user { color: var(--primary); background: var(--p10); border: 1px solid var(--p30); }
.role-badge.admin { color: var(--accent-foreground); background: var(--accent); box-shadow: 0 0 16px rgba(57, 255, 20, 0.35); }
.icon-btn { width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--foreground); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:hover { border-color: var(--p50); color: var(--primary); }

.site-footer { border-top: 1px solid var(--border); padding: 40px 0; margin-top: 40px; background: var(--background); position: relative; z-index: 1; }
.footer-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 24px; }
.footer-left { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px; }
.footer-nav a { font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground); min-height: 44px; display: inline-flex; align-items: center; transition: color 0.2s; }
.footer-nav a:hover { color: var(--foreground); }
.footer-right { display: flex; align-items: center; gap: 16px; color: var(--muted-foreground); font-size: 0.875rem; }
.social { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--muted-foreground); transition: all 0.2s; }
.social:hover { color: var(--primary); border-color: var(--primary); }
.social svg { width: 16px; height: 16px; }
.motion-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 0.4rem 0.8rem; border-radius: 9999px; border: 1px solid var(--border); color: var(--muted-foreground); font-size: 0.75rem; font-weight: 700; transition: all 0.2s; }
.motion-toggle:hover { color: var(--primary); border-color: var(--p50); }
.motion-toggle i { width: 28px; height: 16px; border-radius: 9999px; background: var(--muted); position: relative; transition: background 0.2s; }
.motion-toggle i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.motion-toggle.on i { background: var(--primary); }
.motion-toggle.on i::after { transform: translateX(12px); background: var(--primary-foreground); }
@media (min-width: 640px) { .footer-inner { flex-direction: row; } }

/* ---------- Khung trang app ---------- */
.page { max-width: 80rem; margin: 0 auto; padding: calc(var(--header-h) + 20px) 1rem calc(var(--tabbar-h) + 32px); }
@media (min-width: 640px) { .page { padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .page { padding-bottom: 48px; padding-top: calc(var(--header-h) + 32px); } }
.page-title { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.page-title h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; }
.tabbar { position: fixed; bottom: 0; left: 0; right: 0; z-index: 30; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: rgba(10, 11, 20, 0.92); border-top: 1px solid var(--border); backdrop-filter: blur(16px); display: flex; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted-foreground); font-size: 11px; font-weight: 700; }
.tabbar a svg { width: 22px; height: 22px; }
.tabbar a.active { color: var(--primary); text-shadow: 0 0 12px rgba(0, 229, 255, 0.5); }
.tabbar a.admin-tab.active { color: var(--accent); }
@media (min-width: 768px) { .tabbar { display: none; } }
.hide-mobile { display: none !important; }
@media (min-width: 768px) { .hide-mobile { display: inline-flex !important; } }

/* ---------- Card / UI ---------- */
.card { position: relative; background: rgba(17, 20, 40, 0.72); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--p15); border-radius: var(--radius-2xl); padding: 22px; transition: border-color 0.3s; }
.card:hover { border-color: var(--p30); }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.card-head h2, .card-head h3 { font-size: 1rem; font-weight: 800; letter-spacing: -0.01em; }
.section-label { font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-foreground); font-weight: 800; }
@media (max-width: 767px) { .card { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(17, 20, 40, 0.94); } }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 0.3rem 0.75rem; border-radius: 9999px; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; border: 1px solid; }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.pill.queuing { color: var(--primary); background: var(--p10); border-color: var(--p30); }
.pill.running { color: var(--accent); background: var(--a10); border-color: var(--a30); }
.pill.ended { color: var(--muted-foreground); background: rgba(255, 255, 255, 0.03); border-color: var(--border); }

.badge { display: inline-flex; align-items: center; padding: 0.25rem 0.6rem; border-radius: 8px; font-size: 0.75rem; font-weight: 700; background: rgba(255, 255, 255, 0.04); color: var(--foreground); border: 1px solid var(--border); }
.badge.admin { color: var(--accent); background: var(--a10); border-color: var(--a30); }
.badge.user { color: var(--primary); background: var(--p10); border-color: var(--p30); }

.progress { height: 6px; background: var(--muted); border-radius: 9999px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, var(--primary), #39ff14); box-shadow: 0 0 12px rgba(0, 229, 255, 0.5); transition: width 0.4s; }
.progress.warn > span { background: linear-gradient(90deg, #ffb020, #ff7a00); box-shadow: 0 0 12px rgba(255, 176, 32, 0.4); }
.progress.danger > span { background: linear-gradient(90deg, #ff4d6d, #ff2a5f); box-shadow: 0 0 12px rgba(255, 77, 109, 0.4); }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.8rem; font-weight: 700; }
.hint { font-size: 0.75rem; color: var(--muted-foreground); }
.input, .select, .textarea { width: 100%; padding: 0.7rem 0.9rem; border: 1px solid var(--border); border-radius: var(--radius); background: var(--input); color: var(--foreground); outline: none; transition: border-color 0.2s, box-shadow 0.2s; }
.input::placeholder, .textarea::placeholder { color: rgba(136, 146, 176, 0.7); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--p20); }
.input:disabled { opacity: 0.6; }
.textarea { min-height: 96px; resize: vertical; }
.textarea.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; min-height: 140px; }
.checkbox { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.checkbox input { width: 18px; height: 18px; accent-color: var(--primary); }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }
.form-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.error-text { color: #ff8fa3; font-size: 13px; }

.empty { text-align: center; padding: 44px 16px; color: var(--muted-foreground); }
.empty .icon { font-size: 40px; margin-bottom: 8px; }
.announce { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 16px; padding: 14px 16px; border-radius: var(--radius-xl); background: var(--p10); border: 1px solid var(--p30); color: var(--foreground); font-size: 0.9rem; }
.announce strong { display: block; font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 2px; color: var(--primary); }
.announce.admin-note { background: var(--a10); border-color: var(--a30); }
.announce.admin-note strong { color: var(--accent); }

.filter-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; margin-bottom: 16px; scrollbar-width: none; }
.filter-tabs::-webkit-scrollbar { display: none; }
.filter-tabs button { border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--muted-foreground); padding: 0.55rem 1rem; border-radius: 9999px; font-weight: 700; font-size: 0.8rem; white-space: nowrap; transition: all 0.2s; }
.filter-tabs button:hover { color: var(--foreground); }
.filter-tabs button.active { background: var(--primary); color: var(--primary-foreground); border-color: transparent; box-shadow: 0 0 20px rgba(0, 229, 255, 0.35); }
.filter-tabs .count { opacity: 0.7; margin-left: 5px; }

/* ---------- Thẻ phòng (kiểu product card) ---------- */
.room-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 720px) { .room-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .room-grid { grid-template-columns: repeat(3, 1fr); } }
.room-card { border-radius: var(--radius-3xl); overflow: hidden; cursor: pointer; display: flex; flex-direction: column; border: 1px solid var(--p20); }
.room-card.is-running { border-color: var(--a20); }
.room-card.is-running:hover { border-color: rgba(57, 255, 20, 0.5); box-shadow: -8px 16px 40px rgba(57, 255, 20, 0.15), 0 0 60px rgba(57, 255, 20, 0.06); }
.room-banner { position: relative; height: 150px; background: linear-gradient(135deg, rgba(0, 229, 255, 0.16), rgba(17, 20, 40, 0.2) 60%, rgba(57, 255, 20, 0.08)); overflow: hidden; }
.room-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, transparent 40%, var(--card)); }
.room-watermark { position: absolute; right: 18px; bottom: -22px; font-size: 128px; font-weight: 800; letter-spacing: -0.06em; color: rgba(0, 229, 255, 0.08); line-height: 1; pointer-events: none; }
.is-running .room-watermark { color: rgba(57, 255, 20, 0.08); }
.brand-badge { position: absolute; top: 0; left: 0; z-index: 2; background: rgba(17, 20, 40, 0.92); backdrop-filter: blur(6px); padding: 12px 14px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); border-bottom-right-radius: var(--radius-xl); }
.brand-badge .brand-name { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1; color: var(--primary); }
.brand-badge .brand-sub { display: block; margin-top: 4px; font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.room-banner .pill { position: absolute; top: 12px; right: 12px; z-index: 2; }
.room-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 14px; flex: 1; position: relative; z-index: 1; }
.room-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.room-name { font-size: 1.15rem; font-weight: 800; letter-spacing: -0.02em; }
.room-tag { font-size: 0.8rem; color: var(--muted-foreground); margin-top: 6px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.room-tag .tag-pill { font-size: 0.6rem; padding: 0.2rem 0.55rem; }
.room-price { text-align: right; flex: none; }
.price-big { font-size: 1.7rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.price-unit { font-size: 0.8rem; color: var(--muted-foreground); margin-left: 3px; }
.room-slots { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; }
.room-slots strong { font-size: 1rem; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.feature-list li { display: flex; align-items: center; gap: 9px; font-size: 0.85rem; color: var(--muted-foreground); }
.feature-list svg { width: 16px; height: 16px; color: var(--accent); flex: none; }
.room-actions { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.mine-tag { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-weight: 800; font-size: 0.8rem; }

/* ---------- Trang giới thiệu ---------- */
.landing { overflow-x: hidden; }
.hero { position: relative; width: 100%; min-height: 100vh; overflow: hidden; background: linear-gradient(180deg, rgba(10, 11, 20, 0.45), rgba(10, 11, 20, 0.75)); display: flex; align-items: flex-end; }
/* Nền hero hoàn toàn bằng code: nền sao (bg-fx) lộ nhẹ qua hero, scrim tối bên trái cho chữ, canvas sóng + mưa code */
.hero-scrim { position: absolute; inset: 0; z-index: 0; pointer-events: none; background: linear-gradient(to right, rgba(10, 11, 20, 0.7), rgba(10, 11, 20, 0.2) 50%, rgba(10, 11, 20, 0.1)), linear-gradient(to bottom, rgba(10, 11, 20, 0.35), transparent 40%, rgba(10, 11, 20, 0.85)); }
.hero-wave { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-blob-1 { top: 20%; left: 15%; width: 420px; height: 420px; opacity: 0.6; }
.hero-blob-2 { bottom: 25%; right: 20%; width: 360px; height: 360px; }
.hero-planet { position: absolute; z-index: 2; right: -6%; top: 4%; width: min(88vw, 560px); height: min(88vw, 560px); pointer-events: none; opacity: 0.75; }
@media (min-width: 1024px) { .hero-planet { right: 4%; top: calc(var(--header-h) + 8px); width: min(40vw, 72vh, 600px); height: min(40vw, 72vh, 600px); opacity: 1; } }
.hero-float { position: absolute; bottom: 100px; right: 2rem; z-index: 5; display: none; width: 260px; will-change: transform; transform-style: preserve-3d; }
.hero-float .card-glass { transform-style: preserve-3d; will-change: transform; }
@media (min-width: 1180px) { .hero-float { display: block; } }
.hero-float .card-glass { border-radius: var(--radius-2xl); padding: 20px; border-color: var(--p20); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5); }
.hero-float .fl-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 0.68rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
.hero-float .fl-row { padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.75rem; color: var(--muted-foreground); }
.hero-float .fl-row:first-of-type { border-top: 0; padding-top: 0; }
.hero-float .fl-row b { display: block; color: var(--foreground); font-size: 0.9rem; margin-bottom: 2px; }
.hero-float .fl-quote { font-style: italic; opacity: 0.7; font-size: 0.75rem; padding-top: 8px; }
.hero-float .fl-arrow { display: flex; justify-content: flex-end; margin-top: 10px; color: var(--primary); }
.hero-float .fl-arrow svg { width: 20px; height: 20px; }
.hero-content { position: relative; z-index: 3; width: 100%; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; padding-top: calc(var(--header-h) + 48px); padding-bottom: 80px; }
@media (min-width: 768px) { .hero-content { padding-bottom: 110px; } }
.hero-content .tag-pill { margin-bottom: 24px; }
.hero-text { display: flex; flex-direction: column; align-items: flex-start; width: 100%; }
@media (min-width: 1024px) { .hero-text { max-width: 58%; } .hero-content .hero-heading { font-size: clamp(2.4rem, 4.8vw, 4.4rem); } }
.hero-title-wrap { max-width: 44rem; margin-bottom: 30px; }
.hero-content .hero-heading { margin: 0; }
.hero-sub { font-size: 1rem; color: var(--muted-foreground); max-width: 36rem; line-height: 1.7; margin-bottom: 36px; }
@media (min-width: 768px) { .hero-sub { font-size: 1.125rem; } }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.stats-row { display: flex; flex-wrap: wrap; gap: 28px 40px; margin-top: 56px; padding-top: 30px; border-top: 1px solid var(--border); }
.stat-item p:first-child { font-size: 1.6rem; font-weight: 800; color: var(--primary); letter-spacing: -0.03em; }
.stat-item p:last-child { font-size: 0.68rem; font-weight: 700; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 2px; }

.section { position: relative; padding: 80px 0; overflow: hidden; }
@media (min-width: 768px) { .section { padding: 110px 0; } }
.section-alt { background: var(--secondary); }
.section-head { display: flex; flex-direction: column; gap: 20px; margin-bottom: 48px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }
.section-head .tag-pill, .head-grid .tag-pill, .testi-head .tag-pill { margin-bottom: 14px; }
.section-head > div, .head-grid > div, .testi-head > div { display: flex; flex-direction: column; align-items: flex-start; }
.stats-row { width: 100%; }
@media (min-width: 768px) { .section-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.section-head.no-line { border-bottom: 0; padding-bottom: 0; }
.head-grid { display: grid; gap: 28px; margin-bottom: 56px; align-items: end; }
@media (min-width: 1024px) { .head-grid { grid-template-columns: 3fr 2fr; gap: 48px; } }
.head-grid p { color: var(--muted-foreground); line-height: 1.7; margin-bottom: 20px; }

.steps-grid { display: grid; gap: 14px; }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 6px; } }
.step-card { border-radius: var(--radius-3xl); padding: 30px; height: 100%; display: flex; flex-direction: column; gap: 20px; border: 1px solid var(--border); }
.step-card:hover { border-color: var(--p30); }
.step-top { display: flex; align-items: center; justify-content: space-between; }
.step-num { font-size: 2.4rem; font-weight: 800; color: rgba(136, 146, 176, 0.3); line-height: 1; }
.step-icon { width: 48px; height: 48px; border-radius: var(--radius-lg); display: grid; place-items: center; border: 1px solid; }
.step-icon svg { width: 22px; height: 22px; }
.step-icon.primary { color: var(--primary); border-color: var(--p30); background: var(--p10); }
.step-icon.accent { color: var(--accent); border-color: var(--a30); background: var(--a10); }
.step-card h3 { font-size: 1.1rem; font-weight: 800; margin-bottom: 10px; }
.step-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }
.step-foot { padding-top: 16px; border-top: 1px solid var(--border); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(136, 146, 176, 0.75); margin-top: auto; }

.testi-head { display: grid; gap: 28px; align-items: center; margin-bottom: 48px; }
@media (min-width: 1024px) { .testi-head { grid-template-columns: 1fr 1.7fr; gap: 48px; } }
/* 3 ô số liệu: thẻ kính, icon, số lớn – specificity cao hơn .testi-head > div */
.testi-head > .testi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: stretch; }
.tstat { position: relative; overflow: hidden; border-radius: var(--radius-2xl); padding: 24px 16px 20px; text-align: center; border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tstat::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--primary), transparent); opacity: 0.8; }
.tstat::after { content: ""; position: absolute; top: -50px; right: -50px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, var(--p20), transparent 70%); pointer-events: none; }
.tstat.accent::before { background: linear-gradient(90deg, transparent, var(--accent), transparent); }
.tstat.accent::after { background: radial-gradient(circle, var(--a20), transparent 70%); }
.tstat:hover { border-color: var(--p30); }
.tstat.accent:hover { border-color: var(--a30); }
.tstat-ic { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--p10); border: 1px solid var(--p30); color: var(--primary); margin-bottom: 4px; box-shadow: 0 0 18px var(--p15); }
.tstat-ic svg { width: 20px; height: 20px; }
.tstat.accent .tstat-ic { background: var(--a10); border-color: var(--a30); color: var(--accent); box-shadow: 0 0 18px var(--a10); }
.tstat-v { font-size: clamp(1.7rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1; color: var(--primary); }
.tstat.accent .tstat-v { color: var(--accent); }
.tstat-l { font-size: 0.66rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
@media (max-width: 640px) { .testi-head > .testi-stats { gap: 10px; } .tstat { padding: 16px 8px 14px; border-radius: var(--radius-xl); } .tstat-ic { width: 34px; height: 34px; } .tstat-ic svg { width: 16px; height: 16px; } .tstat-l { letter-spacing: 0.06em; } }
.testi-grid { display: grid; gap: 20px; }
@media (min-width: 768px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }
.testi-card { border-radius: var(--radius-3xl); padding: 28px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--border); }
.testi-card .quote-icon { color: var(--p30); width: 28px; height: 28px; }
.stars { display: flex; gap: 3px; color: var(--accent); }
.stars svg { width: 14px; height: 14px; }
.testi-card blockquote { margin: 0; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; font-style: italic; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); }
.testi-author .avatar { width: 40px; height: 40px; }
.testi-avatar { overflow: hidden; border: 2px solid var(--p30); box-shadow: 0 0 14px var(--p15); padding: 0; }
.testi-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.testi-author .who p:first-child { font-size: 0.875rem; font-weight: 700; }
.testi-author .who p:last-child { font-size: 0.75rem; color: var(--muted-foreground); }

.faq-wrap { max-width: 56rem; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item { border-radius: var(--radius-xl); border: 1px solid var(--border); overflow: hidden; transition: border-color 0.3s; }
.faq-item.open { border-color: rgba(0, 229, 255, 0.4); }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; text-align: left; font-weight: 700; font-size: 0.95rem; color: var(--foreground); }
.faq-q .plus { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--muted-foreground); transition: all 0.3s; }
.faq-q .plus svg { width: 16px; height: 16px; }
.faq-item.open .plus { background: var(--primary); border-color: var(--primary); color: var(--primary-foreground); transform: rotate(45deg); }
.faq-a { padding: 0 24px 24px; font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

.cta-section { padding: 0 0 80px; }
.cta-banner { position: relative; border-radius: 40px; overflow: hidden; background: var(--secondary); min-height: 420px; display: flex; align-items: center; border: 1px solid var(--border); transition: border-color 0.5s; }
.cta-banner:hover { border-color: var(--p20); }
@media (min-width: 768px) { .cta-banner { border-radius: 60px; } }
.cta-ring { position: absolute; top: -80px; right: -80px; width: 380px; height: 380px; border: 40px solid rgba(0, 229, 255, 0.05); border-radius: 50%; pointer-events: none; animation: depthPulse 6s ease-in-out infinite; }
.cta-ring-2 { position: absolute; bottom: -120px; right: 18%; width: 300px; height: 300px; border: 24px solid rgba(57, 255, 20, 0.04); border-radius: 50%; pointer-events: none; }
.cta-glow { position: absolute; right: 0; top: 0; bottom: 0; width: 60%; background: radial-gradient(ellipse at 70% 50%, rgba(0, 229, 255, 0.14), transparent 60%); pointer-events: none; }
.cta-content { position: relative; z-index: 2; padding: 40px 28px; max-width: 36rem; }
@media (min-width: 768px) { .cta-content { padding: 64px; } }
.cta-content h2 { font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 800; line-height: 1.12; letter-spacing: -0.03em; margin: 28px 0 44px; }
.cta-content .hero-ctas { gap: 18px; }
.cta-note { margin-top: 30px; font-size: 0.75rem; color: var(--muted-foreground); }

/* ---------- Sản phẩm chính: logo chính chủ + màu nhấn theo --brand ---------- */
.room-banner.has-brand { background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 24%, transparent), rgba(17, 20, 40, 0.2) 55%, color-mix(in srgb, var(--brand) 8%, transparent)); }
.room-banner.has-brand .brand-badge .brand-name { color: var(--brand); }
.room-logo { position: absolute; right: 22px; bottom: 12px; z-index: 1; width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; pointer-events: none; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 30%, transparent), transparent 70%); }
.room-logo img { width: 60px; height: 60px; object-fit: contain; filter: drop-shadow(0 0 16px color-mix(in srgb, var(--brand) 60%, transparent)); transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1); }
.room-card:hover .room-logo img { transform: scale(1.1) rotate(-5deg); }
.logo-broken img { display: none; }
.logo-broken::after { content: "?"; font-weight: 800; font-size: 1.4rem; color: var(--brand, var(--primary)); }

.provider-logo.has-logo { background: color-mix(in srgb, var(--brand) 12%, transparent); border-color: color-mix(in srgb, var(--brand) 38%, transparent); }
.provider-logo.has-logo img { width: 22px; height: 22px; object-fit: contain; }

.hero-logo { display: inline-grid; place-items: center; width: 1em; height: 1em; margin-right: 0.3em; vertical-align: -0.12em; }
.hero-logo img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 12px color-mix(in srgb, var(--brand) 60%, transparent)); }

.hero-brands { display: flex; flex-wrap: wrap; gap: 10px; margin: -4px 0 26px; }
.hero-brand { display: inline-flex; align-items: center; gap: 9px; padding: 8px 15px 8px 10px; border-radius: 9999px; color: var(--foreground); font-weight: 700; font-size: 0.85rem; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--brand) 38%, transparent); background: color-mix(in srgb, var(--brand) 10%, rgba(17, 20, 40, 0.65)); backdrop-filter: blur(6px); transition: transform 0.3s, box-shadow 0.3s; }
.hero-brand img { width: 22px; height: 22px; object-fit: contain; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--brand) 60%, transparent)); }
.hero-brand:hover { transform: translateY(-2px); box-shadow: 0 8px 24px color-mix(in srgb, var(--brand) 25%, transparent); }

.section-sub { color: var(--muted-foreground); max-width: 640px; margin-top: 12px; font-size: 1rem; line-height: 1.6; }
.product-grid { display: grid; gap: 22px; }
@media (min-width: 900px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
.product-card { position: relative; overflow: hidden; border-radius: var(--radius-3xl); padding: 28px; display: flex; flex-direction: column; gap: 16px; height: 100%; border: 1px solid color-mix(in srgb, var(--brand) 30%, transparent); }
.product-card:hover { border-color: color-mix(in srgb, var(--brand) 60%, transparent); box-shadow: -8px 16px 40px color-mix(in srgb, var(--brand) 18%, transparent), 0 0 60px color-mix(in srgb, var(--brand) 8%, transparent); }
.product-glow { position: absolute; right: -90px; top: -90px; width: 280px; height: 280px; border-radius: 50%; pointer-events: none; filter: blur(12px); background: radial-gradient(circle, color-mix(in srgb, var(--brand) 32%, transparent), transparent 70%); }
.product-head { display: flex; align-items: center; gap: 16px; position: relative; }
.product-logo { width: 72px; height: 72px; flex: none; display: grid; place-items: center; border-radius: 22px; background: color-mix(in srgb, var(--brand) 14%, rgba(17, 20, 40, 0.85)); border: 1px solid color-mix(in srgb, var(--brand) 42%, transparent);
  box-shadow: 0 0 30px color-mix(in srgb, var(--brand) 25%, transparent), inset 0 0 20px color-mix(in srgb, var(--brand) 10%, transparent); }
.product-logo img { width: 44px; height: 44px; object-fit: contain; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--brand) 60%, transparent)); }
.product-logo.sm { width: 40px; height: 40px; border-radius: 12px; }
.product-logo.sm img { width: 24px; height: 24px; }
.product-title { flex: 1; min-width: 0; }
.product-provider { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted-foreground); }
.product-name { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; letter-spacing: -0.03em; color: var(--brand); line-height: 1.1; }
.tag-brand { border-color: color-mix(in srgb, var(--brand) 40%, transparent); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.product-tagline { font-size: 1.05rem; font-weight: 700; line-height: 1.4; }
.product-desc { color: var(--muted-foreground); line-height: 1.65; font-size: 0.95rem; }
.product-card .feature-list svg { color: var(--brand); }
.product-foot { margin-top: auto; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 16px; border-top: 1px solid var(--border); }
.product-price { display: flex; align-items: baseline; gap: 6px; }
.product-price .price-big { color: var(--brand); }
.product-meta { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 180px; }
.product-open { font-size: 0.8rem; color: var(--muted-foreground); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.product-open .dot { background: var(--brand); }
.product-foot .btn { margin-left: auto; }
.product-card .btn-primary { background: var(--brand); box-shadow: 0 0 22px color-mix(in srgb, var(--brand) 40%, transparent); }
.product-card .btn-outline:hover { border-color: var(--brand); color: var(--brand); }
@media (max-width: 520px) { .product-card { padding: 22px; } .product-head { flex-wrap: wrap; } .product-title { flex: 1 1 55%; } .product-head .tag-brand { order: 3; } .product-foot .btn { width: 100%; margin-left: 0; } }

/* Admin → Nội dung */
.product-editor { border-color: color-mix(in srgb, var(--brand) 30%, transparent); }
.product-editor .card-head h3 { color: var(--brand); }
.color-pick { width: 46px; height: 40px; padding: 3px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--secondary); cursor: pointer; flex: none; }
.upload-btn { cursor: pointer; flex: none; white-space: nowrap; }
.upload-btn.is-busy { opacity: 0.6; pointer-events: none; }

/* ---------- Rank theo chi tiêu (huy hiệu Canva, màu --rank từng bậc) ---------- */
.rank-badge { display: inline-grid; place-items: center; flex: none; width: 56px; height: 56px; }
.rank-badge img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 0 10px color-mix(in srgb, var(--rank) 55%, transparent)); }
.rank-badge.xs { width: 28px; height: 28px; }
.rank-badge.xs img { filter: drop-shadow(0 0 4px color-mix(in srgb, var(--rank) 50%, transparent)); }
.rank-badge.sm { width: 30px; height: 30px; margin-left: 2px; }
.rank-badge.md { width: 84px; height: 84px; }
.rank-badge.lg { width: 128px; height: 128px; }
.rank-badge.lg img { filter: drop-shadow(0 0 22px color-mix(in srgb, var(--rank) 60%, transparent)); animation: rankFloat 5s ease-in-out infinite; }
@keyframes rankFloat { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-6px) rotate(1.5deg); } }
.rank-badge.logo-broken::after { content: "★"; color: var(--rank); font-size: 1.2em; }
.text-rank { color: var(--rank); }
.tag-rank { border-color: color-mix(in srgb, var(--rank) 45%, transparent); color: var(--rank); background: color-mix(in srgb, var(--rank) 12%, transparent); }

/* Giá gốc gạch + giá sau giảm */
.price-old { font-size: 0.8rem; color: var(--muted-foreground); text-decoration: line-through; line-height: 1; }
.price-sale { color: var(--accent); }
.price-line { display: inline-flex; align-items: baseline; white-space: nowrap; }
.room-price { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; max-width: 52%; }
.room-price .tag-rank { font-size: 0.58rem; padding: 0.18rem 0.5rem; letter-spacing: 0.04em; }
.room-top > div:first-child { min-width: 0; flex: 1; }
.price-inline { gap: 6px; flex-wrap: wrap; }
.price-inline .price-old { margin-right: 0; }
.price-inline .tag-rank { font-size: 0.6rem; padding: 0.15rem 0.5rem; }

/* Thẻ rank ở "Của tôi" */
.rank-card { position: relative; overflow: hidden; border-color: color-mix(in srgb, var(--rank) 40%, transparent); }
.rank-glow { position: absolute; left: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; pointer-events: none; filter: blur(14px); background: radial-gradient(circle, color-mix(in srgb, var(--rank) 30%, transparent), transparent 70%); }
.rank-main { position: relative; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.rank-info { flex: 1; min-width: 220px; }
.rank-name { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; color: var(--rank); line-height: 1.1; text-shadow: 0 0 24px color-mix(in srgb, var(--rank) 45%, transparent); }
.rank-meta { font-size: 0.85rem; color: var(--muted-foreground); margin-top: 6px; line-height: 1.6; }
.rank-meta b { color: var(--foreground); }
.rank-progress { height: 8px; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); overflow: hidden; margin-top: 12px; border: 1px solid var(--border); }
.rank-progress span { display: block; height: 100%; border-radius: 9999px; background: linear-gradient(90deg, color-mix(in srgb, var(--rank) 60%, #fff 0%), var(--rank)); box-shadow: 0 0 14px color-mix(in srgb, var(--rank) 60%, transparent); transition: width 0.8s var(--ease-out); }
.rank-ladder { display: flex; gap: 6px; margin-top: 18px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.rank-ladder::-webkit-scrollbar { display: none; }
.rank-step { flex: 1; min-width: 86px; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: var(--radius-xl); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.02); font-size: 0.7rem; color: var(--muted-foreground); opacity: 0.55; transition: all 0.3s; }
.rank-step b { color: var(--foreground); font-size: 0.72rem; }
.rank-step i { font-style: normal; font-weight: 700; color: var(--rank); }
.rank-step.done { opacity: 0.85; }
.rank-step.now { opacity: 1; border-color: color-mix(in srgb, var(--rank) 60%, transparent); background: color-mix(in srgb, var(--rank) 10%, transparent); box-shadow: 0 0 20px color-mix(in srgb, var(--rank) 25%, transparent); transform: translateY(-3px); }

/* Mục Rank trên trang giới thiệu */
.rank-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (min-width: 640px) { .rank-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .rank-grid { grid-template-columns: repeat(6, 1fr); gap: 12px; } }
.rank-tier { position: relative; height: 100%; border-radius: var(--radius-2xl); padding: 26px 12px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; border: 1px solid color-mix(in srgb, var(--rank) 28%, transparent); overflow: hidden; }
.rank-tier::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--rank) 22%, transparent), transparent 60%); pointer-events: none; }
.rank-tier:hover { border-color: color-mix(in srgb, var(--rank) 65%, transparent); box-shadow: 0 12px 40px color-mix(in srgb, var(--rank) 18%, transparent); }
.rank-tier.is-me { border-color: var(--rank); box-shadow: 0 0 0 1px var(--rank), 0 0 36px color-mix(in srgb, var(--rank) 30%, transparent); }
.rank-tier.is-top .rank-badge.md { width: 96px; height: 96px; }
.rank-me-tag { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); font-size: 0.58rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--background); background: var(--rank); padding: 3px 10px; border-radius: 9999px; white-space: nowrap; }
.rank-tier-name { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; color: var(--rank); margin-top: 4px; }
.rank-tier-min { font-size: 0.72rem; color: var(--muted-foreground); }
.rank-tier-off { margin-top: 8px; font-size: 1.5rem; font-weight: 800; letter-spacing: -0.03em; color: var(--foreground); line-height: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; }
.rank-tier-off small { font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); }
.rank-note { text-align: center; margin-top: 22px; font-size: 0.8rem; color: var(--muted-foreground); }

/* Admin: bảng rank, ô rank trong danh sách người chơi, công tắc */
.rank-cell { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; }
.rank-cell b { color: var(--rank); }
.rank-table td { vertical-align: top; }
.rank-table .input.tiny { font-size: 0.72rem; padding: 6px 8px; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.75rem; font-weight: 700; color: var(--muted-foreground); }
.switch input { display: none; }
.switch .track { width: 38px; height: 22px; border-radius: 9999px; background: var(--muted); position: relative; transition: background 0.2s; border: 1px solid var(--border); }
.switch .track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform 0.2s; }
.switch input:checked + .track { background: var(--accent); }
.switch input:checked + .track::after { transform: translateX(16px); }
.switch input:checked ~ .switch-label { color: var(--accent); }

/* ---------- v2: giữ chỗ / đơn hàng / slot / hỗ trợ / quản trị ---------- */
.tag-danger { border-color: rgba(255, 77, 109, 0.45); color: #ff6b87; background: rgba(255, 77, 109, 0.1); }
.text-danger { color: #ff6b87; }
.progress { position: relative; }
.progress > i { position: absolute; top: 0; height: 100%; background: repeating-linear-gradient(45deg, rgba(255, 176, 32, 0.75) 0 4px, rgba(255, 176, 32, 0.35) 4px 8px); }
.stats a.stat { color: inherit; text-decoration: none; transition: transform 0.2s, border-color 0.2s; }
.stats a.stat:hover { transform: translateY(-2px); border-color: var(--p30); }
.stat.accent .n { color: var(--accent); } .stat.primary .n { color: var(--primary); } .stat.warn .n { color: var(--warn); } .stat.danger .n { color: #ff6b87; } .stat.muted .n { color: var(--muted-foreground); }
.stats.todo { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .stats.todo { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .stats.todo { grid-template-columns: repeat(7, 1fr); } }
.three-col { display: grid; gap: 14px; }
@media (min-width: 960px) { .three-col { grid-template-columns: repeat(3, 1fr); } }
.kv { display: grid; gap: 6px 14px; grid-template-columns: 1fr; font-size: 0.875rem; }
@media (min-width: 640px) { .kv { grid-template-columns: 1fr 1fr; } }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-bottom: 1px dashed var(--border); }
.kv > div span { color: var(--muted-foreground); flex: none; }
.kv > div b { text-align: right; }
.file-view { background: #05060f; color: #d6e2ff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; margin: 8px 0; box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.05); }
.pay-card { border-color: rgba(255, 176, 32, 0.4); }
.pay-box { display: flex; flex-direction: column; gap: 6px; }
.pay-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 0.875rem; }
.pay-row span { color: var(--muted-foreground); flex: none; min-width: 110px; }
.pay-row b { flex: 1; word-break: break-all; }
.pay-row .link-btn { flex: none; }
.thread { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; padding-right: 4px; }
.msg { padding: 10px 14px; border-radius: var(--radius-lg); background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); font-size: 0.875rem; white-space: pre-wrap; max-width: 92%; }
.msg.admin { align-self: flex-end; background: var(--a10); border-color: var(--a30); }
.msg .who { font-size: 0.7rem; font-weight: 700; margin-bottom: 4px; color: var(--muted-foreground); }
.member-list.compact li { padding: 7px 0; font-size: 0.85rem; }
.member-list.attention li { align-items: flex-start; }
.member-list .seat-no.me { background: var(--a10); color: var(--accent); border-color: var(--a30); }
.tstat-ic.sm { width: 32px; height: 32px; border-radius: 10px; margin: 0; }
.tstat-ic.sm svg { width: 16px; height: 16px; }
.tstat-ic.sm.warn { color: var(--warn); border-color: rgba(255, 176, 32, 0.4); background: rgba(255, 176, 32, 0.1); box-shadow: none; }
.rank-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 9999px; border: 1px solid color-mix(in srgb, var(--rank) 45%, transparent); background: color-mix(in srgb, var(--rank) 10%, transparent); color: var(--foreground); font-size: 0.8rem; text-decoration: none; }
.rank-chip b { color: var(--rank); }
.my-slot { border-left: 3px solid var(--brand); }
.auth-admin { margin-top: 14px; border-top: 1px solid var(--border); padding-top: 10px; }
.auth-admin summary { cursor: pointer; font-size: 0.8rem; color: var(--muted-foreground); }
.auth-admin summary:hover { color: var(--primary); }
.page-title .row.wrap { gap: 8px; }
details.card summary { cursor: pointer; }
.filter-tabs button span { opacity: 0.7; font-weight: 600; margin-left: 4px; }
.tbl .row.wrap { gap: 4px; }
.mobile-menu a.active { color: var(--primary); }
.header-user.active .name { color: var(--primary); }
/* ---------- Chi tiết phòng ---------- */
.room-hero { position: relative; overflow: hidden; margin: -20px -1rem 20px; padding: 36px 1.25rem 40px; min-height: 260px; background: linear-gradient(135deg, rgba(0, 229, 255, 0.12), var(--secondary) 55%, rgba(57, 255, 20, 0.06)); border: 1px solid var(--border); border-top: 0; }
@media (min-width: 640px) { .room-hero { margin-left: -1.5rem; margin-right: -1.5rem; padding-left: 1.5rem; padding-right: 1.5rem; } }
@media (min-width: 768px) { .room-hero { margin: -32px 0 24px; border-radius: var(--radius-3xl); border-top: 1px solid var(--border); padding: 44px 40px 48px; min-height: 300px; } }
.room-hero .hero-planet { right: -20%; top: 50%; transform: translateY(-50%); width: 230px; height: 230px; opacity: 0.8; }
@media (min-width: 768px) { .room-hero .hero-planet { right: 3%; top: 50%; width: 290px; height: 290px; opacity: 1; } }
.room-hero-content { position: relative; z-index: 3; max-width: 60%; }
@media (max-width: 767px) { .room-hero-content { max-width: 100%; } }
.room-hero .prov { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; letter-spacing: -0.03em; margin: 10px 0 6px; }
.room-hero .prov span { color: var(--primary); }
.room-hero .title { font-size: 1.05rem; color: var(--muted-foreground); }
.detail-status { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0 16px; }
.quota-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0 4px; }
.quota-row .label { font-weight: 700; }
.quota-row .val { font-weight: 800; }
.quota-reset { font-size: 12px; color: var(--muted-foreground); padding: 6px 0 10px; border-bottom: 1px dashed var(--border); }
.quota-block:last-of-type .quota-reset { border-bottom: 0; }
.seats-head { display: flex; align-items: baseline; gap: 6px; margin-bottom: 8px; }
.seats-head strong { font-size: 1.4rem; }
.seat-stage { perspective: 900px; perspective-origin: 50% 0; padding-bottom: 6px; }
.seat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 10px; margin-top: 12px; transform: rotateX(16deg); transform-style: preserve-3d; transform-origin: 50% 0; }
.seat { position: relative; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center; color: #3f4a75; background: linear-gradient(180deg, #1c2249, #12162f); border: 1px solid var(--border); transform-style: preserve-3d; transition: transform 0.25s, box-shadow 0.25s; box-shadow: 0 6px 0 #0a0c1c, 0 12px 20px rgba(0, 0, 0, 0.45); }
.seat svg { width: 22px; height: 22px; }
.seat:hover { transform: translateZ(8px) translateY(-2px); }
.seat.taken { color: var(--primary); background: linear-gradient(180deg, rgba(0, 229, 255, 0.35), rgba(0, 229, 255, 0.12)); border-color: var(--p50); box-shadow: 0 6px 0 #063a44, 0 14px 26px rgba(0, 229, 255, 0.25); }
.seat.mine { color: var(--accent-foreground); background: linear-gradient(180deg, #5cff3d, #2fd60c); border-color: rgba(57, 255, 20, 0.7); transform: translateZ(16px) translateY(-4px); box-shadow: 0 8px 0 #1a7a08, 0 18px 32px rgba(57, 255, 20, 0.4), 0 0 34px rgba(57, 255, 20, 0.3); }
.seat .no { position: absolute; bottom: 1px; right: 5px; font-size: 9px; font-weight: 800; color: rgba(255, 255, 255, 0.55); }
.seat.mine .no { color: rgba(0, 0, 0, 0.55); }
.seat-hint { margin-top: 12px; font-size: 0.875rem; }
.seat-hint b { color: var(--accent); }
.legend { display: flex; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted-foreground); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }
.member-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.member-list li:last-child { border-bottom: 0; }
.member-list .seat-no { width: 30px; height: 30px; border-radius: 9px; background: var(--p10); color: var(--primary); border: 1px solid var(--p30); display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.member-list li.me .seat-no { background: var(--a10); color: var(--accent); border-color: var(--a30); }
.file-box { background: #05060f; color: #d6e2ff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; white-space: pre-wrap; word-break: break-all; max-height: 320px; overflow: auto; margin: 0; box-shadow: inset 0 0 40px rgba(0, 229, 255, 0.05); }
.file-locked { display: flex; gap: 12px; align-items: center; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; color: var(--muted-foreground); font-size: 0.875rem; }
.file-locked .lock { font-size: 22px; }
.notes { white-space: pre-wrap; font-size: 0.9rem; }
.action-bar { display: flex; gap: 10px; margin: 16px 0; flex-wrap: wrap; }
.action-bar .btn { flex: 1; }
.copy-row { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }

/* ---------- Đăng nhập ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: calc(var(--header-h) + 16px) 1rem 40px; position: relative; }
.auth-card { width: 100%; max-width: 440px; border-radius: var(--radius-3xl); padding: 28px 26px 30px; position: relative; overflow: hidden; }
.auth-card .blob { top: -120px; left: 50%; transform: translateX(-50%); width: 360px; height: 220px; }
.auth-brand { text-align: center; margin-bottom: 20px; position: relative; }
.auth-logo { width: 84px; height: 84px; margin: 0 auto 12px; object-fit: contain; filter: drop-shadow(0 0 24px rgba(0, 229, 255, 0.45)); }
.auth-brand h1 { font-size: 1.6rem; font-weight: 800; letter-spacing: -0.03em; }
.auth-brand h1 span { color: var(--primary); }
.auth-brand p { color: var(--muted-foreground); font-size: 0.875rem; margin-top: 6px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--border); border-radius: 9999px; padding: 4px; margin-bottom: 20px; }
.auth-tabs button { padding: 10px; border-radius: 9999px; font-weight: 700; color: var(--muted-foreground); transition: all 0.3s; }
.auth-tabs button.active { background: var(--primary); color: var(--primary-foreground); box-shadow: 0 0 20px rgba(0, 229, 255, 0.35); }
.auth-form { display: flex; flex-direction: column; gap: 12px; position: relative; }
.auth-foot { text-align: center; margin-top: 14px; font-size: 13px; color: var(--muted-foreground); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0 12px; color: var(--muted-foreground); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.social-row { display: flex; flex-direction: column; gap: 10px; }
.btn-social { width: 100%; background: rgba(255, 255, 255, 0.05); border-color: var(--border); color: var(--foreground); justify-content: center; }
.btn-social:hover { border-color: var(--p50); background: rgba(255, 255, 255, 0.08); }
.btn-social svg { width: 18px; height: 18px; }
.btn-social-tg { color: #29a9eb; }
.tg-widget { position: relative; min-height: 44px; display: flex; justify-content: center; align-items: center; }
.tg-widget > .btn-social { pointer-events: none; position: absolute; inset: 0; opacity: 0.35; }
.tg-widget iframe { position: relative; z-index: 1; }
.tg-widget.small { min-height: 36px; justify-content: flex-end; }
.tg-widget.small > .btn-social { display: none; }
.sub-head { display: flex; align-items: center; gap: 10px; font-weight: 800; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.sub-head svg { width: 18px; height: 18px; }
.sub-head .tg-ic { color: #29a9eb; display: inline-flex; }
.link-btn { color: var(--primary); font-size: inherit; font-weight: 700; text-decoration: underline; }
.tg-wait-box { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: var(--radius); background: rgba(41, 169, 235, 0.08); border: 1px solid rgba(41, 169, 235, 0.35); font-size: 0.85rem; line-height: 1.6; }
.tg-wait-box .dot { flex: none; margin-top: 8px; background: #29a9eb; }
.tg-wait { margin-top: 4px; }
.link-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.link-list li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.link-list li:last-child { border-bottom: 0; }
.link-ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); flex: none; }
.link-ic svg { width: 18px; height: 18px; }
.link-ic.tg { color: #29a9eb; }
.avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.avatar { overflow: hidden; }
.avatar-lg { width: 52px; height: 52px; font-size: 1.1rem; }

/* ---------- Khu vực quản trị ---------- */
.admin-layout { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-side { display: none; }
.admin-main-wrap { min-width: 0; }
.admin-topnav { display: flex; gap: 6px; overflow-x: auto; padding: calc(var(--header-h) + 10px) 1rem 0; scrollbar-width: none; }
.admin-topnav::-webkit-scrollbar { display: none; }
.admin-topnav a { display: inline-flex; align-items: center; gap: 6px; padding: 0.55rem 1rem; border-radius: 9999px; white-space: nowrap; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.03); color: var(--muted-foreground); font-weight: 700; font-size: 0.8rem; }
.admin-topnav a svg { width: 16px; height: 16px; }
.admin-topnav a.active { background: var(--accent); color: var(--accent-foreground); border-color: transparent; box-shadow: 0 0 20px rgba(57, 255, 20, 0.35); }
.admin-main { padding: 16px 1rem 48px; max-width: 1180px; margin: 0 auto; width: 100%; }
.side-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--radius); color: var(--muted-foreground); font-weight: 700; width: 100%; text-align: left; transition: background 0.2s, color 0.2s; font-size: 0.9rem; }
.side-link svg { width: 18px; height: 18px; flex: none; }
.side-link:hover { background: rgba(255, 255, 255, 0.04); color: var(--foreground); }
.side-link.active { background: var(--a10); color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.side-foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; }
@media (min-width: 900px) {
  .admin-layout { grid-template-columns: var(--sidebar-w) 1fr; }
  .admin-side { display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 22px 16px; background: rgba(18, 21, 42, 0.85); border-right: 1px solid var(--border); backdrop-filter: blur(16px); }
  .admin-top, .admin-topnav { display: none; }
  .admin-main { padding: 32px 36px 56px; }
}
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 18px; }
@media (min-width: 720px) { .stats { grid-template-columns: repeat(5, 1fr); } }
.stat { background: rgba(17, 20, 40, 0.72); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: 16px; position: relative; overflow: hidden; }
.stat::before { content: ""; position: absolute; inset: 0; background: radial-gradient(180px 90px at 100% 0%, rgba(0, 229, 255, 0.14), transparent 70%); pointer-events: none; }
.stat .n { font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; position: relative; }
.stat .l { font-size: 0.7rem; color: var(--muted-foreground); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; position: relative; }
.two-col { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1.2fr 1fr; align-items: start; } }
.quick-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-trip { display: flex; flex-direction: column; gap: 12px; }
.admin-trip .head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-trip .actions { display: flex; gap: 6px; flex-wrap: wrap; }
.trip-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8rem; color: var(--muted-foreground); }
.trip-meta b { color: var(--foreground); font-weight: 700; }
.provider-logo { width: 40px; height: 40px; border-radius: var(--radius); flex: none; color: var(--primary); font-weight: 800; font-size: 1rem; background: var(--p10); border: 1px solid var(--p30); display: grid; place-items: center; }
.status-select { padding: 0.45rem 0.7rem; border-radius: 9999px; border: 1px solid var(--border); background: var(--input); color: var(--foreground); font-size: 0.8rem; font-weight: 700; }
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.tbl th, .tbl td { padding: 11px 8px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl th { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-foreground); font-weight: 800; }
.tbl tr:last-child td { border-bottom: 0; }
.perm-table td:nth-child(2), .perm-table td:nth-child(3), .perm-table th:nth-child(2), .perm-table th:nth-child(3) { text-align: center; width: 92px; }
.perm-yes { color: var(--accent); font-weight: 800; }
.perm-no { color: rgba(255, 77, 109, 0.85); font-weight: 800; }
.perm-part { color: var(--warn); font-weight: 700; font-size: 12px; }

/* ---------- Toast / Modal ---------- */
.toasts { position: fixed; top: 14px; left: 0; right: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 12px; }
.toast { pointer-events: auto; background: rgba(17, 20, 40, 0.96); color: #fff; padding: 11px 18px; border-radius: 9999px; font-size: 14px; font-weight: 600; border: 1px solid var(--p30); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(0, 229, 255, 0.15); max-width: 520px; animation: fadeInUp 0.3s var(--ease-out); }
.toast.success { border-color: var(--a30); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(57, 255, 20, 0.25); }
.toast.error { border-color: rgba(255, 77, 109, 0.6); box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 77, 109, 0.3); }
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(10, 11, 20, 0.75); display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(6px); }
.modal { background: rgba(17, 20, 40, 0.98); width: 100%; max-width: 660px; max-height: 92vh; overflow: auto; border-radius: 28px 28px 0 0; padding: 22px 20px 26px; border: 1px solid var(--p20); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6); animation: depthPop 0.35s var(--ease-spring) forwards; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 20px; } .modal { border-radius: var(--radius-3xl); padding: 26px; } }
.modal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.modal-head h2 { font-size: 1.1rem; font-weight: 800; letter-spacing: -0.02em; }
.modal-close { margin-left: auto; width: 36px; height: 36px; border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); color: #fff; border-radius: 50%; font-size: 18px; display: grid; place-items: center; }

/* Tắt hiệu ứng khi người dùng chọn trong app (không tự theo cài đặt hệ điều hành, xem app.js) */
html[data-motion="reduce"] .reveal-3d, html[data-motion="reduce"] .reveal-3d-left, html[data-motion="reduce"] .reveal-3d-right, html[data-motion="reduce"] .reveal-3d-pop,
html[data-motion="reduce"] .card-3d, html[data-motion="reduce"] .hover-3d-lift, html[data-motion="reduce"] .animate-page-enter,
html[data-motion="reduce"] .animate-reveal-3d-up, html[data-motion="reduce"] .animate-reveal-3d-left, html[data-motion="reduce"] .animate-reveal-3d-right,
html[data-motion="reduce"] .animate-depth-pop, html[data-motion="reduce"] .animate-depth-pulse, html[data-motion="reduce"] .scan-line,
html[data-motion="reduce"] .animate-ping-slow, html[data-motion="reduce"] .shimmer-text, html[data-motion="reduce"] .animate-float,
html[data-motion="reduce"] .dot, html[data-motion="reduce"] .bg-blob, html[data-motion="reduce"] [data-mouse3d] {
  animation: none !important; transition: opacity 0.3s ease !important; transform: none !important; opacity: 1 !important;
}
html[data-motion="reduce"] .seat-grid { transform: none; }
html[data-motion="reduce"] .bg3d { display: none; }
html[data-motion="reduce"] .rank-badge.lg img { animation: none; }
