/* ═══════════════════════════════════════════════════════════
   TempMail — VOIDGLASS theme
   Unique premium glass UI (not a clone of common landing kits)
   Deep plum-black · amber gold · rose prism · liquid glass
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

/* Preload critical font weights to avoid FOIT */
@font-face {
  font-family: 'Outfit';
  font-display: swap;
  font-weight: 400;
  src: local('Outfit');
}

:root,
html[data-theme='dark'] {
  --bg0: #07050e;
  --bg1: #0e0a18;
  --ink: #f6f1ff;
  --muted: rgba(246, 241, 255, 0.58);
  --faint: rgba(246, 241, 255, 0.36);
  --line: rgba(255, 220, 255, 0.12);
  --gold: #f0b429;
  --gold-soft: #ffd978;
  --rose: #e84a8a;
  --lilac: #b8a0ff;
  --prism: #7c5cff;
  --ok: #5ee9a8;
  --danger: #ff6b7a;
  --glass: rgba(22, 14, 36, 0.55);
  --glass-2: rgba(255, 255, 255, 0.035);
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  --input-bg: rgba(0, 0, 0, 0.32);
  --panel-bg: rgba(10, 6, 18, 0.55);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  --toast-ink: #1a0f08;
  --radius: 22px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --font: 'Outfit', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --brand: #b8a0ff;
  --cyan: #f0b429;
  --cyan-soft: #ffd978;
  --icon-bg: rgba(240, 180, 41, 0.12);
  --icon-border: rgba(240, 180, 41, 0.22);
  --icon-color: #ffd978;
  --selection: rgba(232, 74, 138, 0.35);
}

/* ── Global Custom Dark Glass Scrollbars ───────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: rgba(8, 4, 16, 0.6);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  transition: background 0.2s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(240, 180, 41, 0.6), rgba(232, 74, 138, 0.6));
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.4);
}

::-webkit-scrollbar-button {
  display: none !important;
  width: 0;
  height: 0;
}

::-webkit-scrollbar-corner {
  background: transparent;
}

* {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.2) rgba(8, 4, 16, 0.6);
}

/* GPU acceleration hints for animated elements */
.modal, .inbox-item, .btn, .seg-btn, .pool-chip, .cselect-btn {
  will-change: transform, opacity;
  transform: translateZ(0);
}

/* Pause ALL animations when tab is not visible — massive battery/GPU saver */
body.tab-hidden *,
body.tab-hidden *::before,
body.tab-hidden *::after {
  animation-play-state: paused !important;
  transition: none !important;
}

/* Smooth scroll for all scrollable containers */
html {
  scroll-behavior: smooth;
}

/* Content visibility for off-screen sections — massive render perf win */
.inbox-list li {
  content-visibility: auto;
  contain-intrinsic-size: 80px;
}
}

html[data-theme='light'] ::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.05);
}
html[data-theme='light'] ::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.25);
}
html[data-theme='light'] ::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #6b4fd6, #d6336c);
}
html[data-theme='light'] * {
  scrollbar-color: rgba(0, 0, 0, 0.25) rgba(0, 0, 0, 0.05);
}

/* Premium white / light theme */
html[data-theme='light'] {
  --bg0: #f4f1fb;
  --bg1: #ffffff;
  --ink: #1a1228;
  --muted: rgba(26, 18, 40, 0.62);
  --faint: rgba(26, 18, 40, 0.42);
  --line: rgba(80, 40, 120, 0.12);
  --gold: #c98900;
  --gold-soft: #b07a00;
  --rose: #d6336c;
  --lilac: #6b4fd6;
  --prism: #6b4fd6;
  --ok: #0f9f6e;
  --danger: #e03147;
  --glass: rgba(255, 255, 255, 0.72);
  --glass-2: rgba(255, 255, 255, 0.85);
  --glass-fill: linear-gradient(145deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.55));
  --input-bg: rgba(255, 255, 255, 0.9);
  --panel-bg: rgba(255, 255, 255, 0.72);
  --shadow: 0 18px 48px rgba(60, 30, 100, 0.1);
  --toast-ink: #1a0f08;
  --brand: #6b4fd6;
  --cyan: #c98900;
  --cyan-soft: #9a6a00;
  --icon-bg: rgba(107, 79, 214, 0.1);
  --icon-border: rgba(107, 79, 214, 0.18);
  --icon-color: #6b4fd6;
  --selection: rgba(107, 79, 214, 0.22);
}

html {
  transition: background-color 0.45s var(--ease-soft), color 0.35s var(--ease-soft);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  background: var(--bg0);
  color: var(--ink);
  line-height: 1.5;
}

::selection {
  background: var(--selection);
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

/* ── Unique void prism background ──────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: var(--bg0);
  /* Freeze background animations when tab is not visible — saves GPU */
}

/* Pause all background animations when window not focused */
.bg-scene:not(:focus-within) {
  /* no-op, handled by JS */
}

.bg-base {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 600px at 15% 10%, rgba(124, 92, 255, 0.28), transparent 60%),
    radial-gradient(700px 500px at 88% 18%, rgba(232, 74, 138, 0.18), transparent 55%),
    radial-gradient(800px 520px at 50% 100%, rgba(240, 180, 41, 0.1), transparent 50%),
    linear-gradient(165deg, #0a0714 0%, #07050e 45%, #05040a 100%);
  transition: opacity 0.5s var(--ease-soft);
}

html[data-theme='light'] .bg-base {
  background:
    radial-gradient(900px 600px at 12% 8%, rgba(184, 160, 255, 0.45), transparent 58%),
    radial-gradient(700px 500px at 90% 12%, rgba(255, 180, 210, 0.4), transparent 55%),
    radial-gradient(800px 520px at 50% 100%, rgba(255, 220, 150, 0.35), transparent 50%),
    linear-gradient(165deg, #faf8ff 0%, #f3eefc 45%, #efe8f8 100%);
}

html[data-theme='light'] .bg-orb-a {
  background: radial-gradient(circle, rgba(184, 160, 255, 0.55), transparent 70%);
}
html[data-theme='light'] .bg-orb-b {
  background: radial-gradient(circle, rgba(255, 150, 190, 0.4), transparent 70%);
}
html[data-theme='light'] .bg-orb-c {
  background: radial-gradient(circle, rgba(255, 210, 120, 0.35), transparent 70%);
}
html[data-theme='light'] .bg-noise { opacity: 0.025; }
html[data-theme='light'] .bg-vignette {
  background: radial-gradient(ellipse at center, transparent 45%, rgba(240, 230, 255, 0.55) 100%);
}
html[data-theme='light'] .bg-shard {
  background: linear-gradient(to bottom, transparent, rgba(107, 79, 214, 0.35), transparent);
  opacity: 0.25;
}

.bg-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.85;
  will-change: transform;
}

/* Reduce orb blur on mobile / low-power — major GPU saver */
@media (max-width: 768px) {
  .bg-orb {
    filter: blur(40px);
    opacity: 0.5;
  }
}

.bg-orb-a {
  width: min(52vw, 540px);
  height: min(52vw, 540px);
  left: -12%;
  top: 5%;
  background: radial-gradient(circle, rgba(124, 92, 255, 0.45), transparent 70%);
  animation: driftA 22s ease-in-out infinite;
}

.bg-orb-b {
  width: min(44vw, 480px);
  height: min(44vw, 480px);
  right: -10%;
  top: 22%;
  background: radial-gradient(circle, rgba(232, 74, 138, 0.35), transparent 70%);
  animation: driftB 26s ease-in-out infinite;
}

.bg-orb-c {
  width: min(50vw, 520px);
  height: min(50vw, 520px);
  left: 35%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(240, 180, 41, 0.18), transparent 70%);
  animation: driftC 28s ease-in-out infinite;
}

@keyframes driftA {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, 30px) scale(1.08); }
}
@keyframes driftB {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-30px, 40px) scale(1.05); }
}
@keyframes driftC {
  0%, 100% { transform: translate(0, 0); }
  50% { transform: translate(20px, -35px); }
}

/* Prism shards — disabled on mobile, reduced count effect on desktop */
.bg-shard {
  position: absolute;
  width: 1px;
  height: 140px;
  background: linear-gradient(to bottom, transparent, rgba(255, 217, 120, 0.55), transparent);
  opacity: 0.35;
  animation: shardFall linear infinite;
}

/* Hide shards on mobile — they're pure GPU cost with little visual benefit */
@media (max-width: 768px) {
  .bg-shard { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .bg-shard { display: none; }
  .bg-orb { animation: none !important; }
  .bg-ring { animation: none !important; }
  .prism-word { animation: none !important; }
  .text-emerald { animation: none !important; }
}
.bg-shard:nth-child(1) { left: 12%; animation-duration: 11s; animation-delay: 0s; height: 100px; }
.bg-shard:nth-child(2) { left: 28%; animation-duration: 15s; animation-delay: -3s; height: 160px; }
.bg-shard:nth-child(3) { left: 47%; animation-duration: 13s; animation-delay: -7s; }
.bg-shard:nth-child(4) { left: 63%; animation-duration: 17s; animation-delay: -2s; height: 90px; }
.bg-shard:nth-child(5) { left: 81%; animation-duration: 12s; animation-delay: -5s; height: 130px; }
.bg-shard:nth-child(6) { left: 91%; animation-duration: 16s; animation-delay: -9s; }

@keyframes shardFall {
  0% { transform: translateY(-20vh) rotate(18deg); opacity: 0; }
  15% { opacity: 0.4; }
  100% { transform: translateY(110vh) rotate(18deg); opacity: 0; }
}

.bg-ring {
  position: absolute;
  left: 50%;
  top: 38%;
  width: min(70vw, 720px);
  height: min(70vw, 720px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow:
    0 0 80px rgba(124, 92, 255, 0.08),
    inset 0 0 60px rgba(232, 74, 138, 0.05);
  animation: ringPulse 10s ease-in-out infinite;
}

.bg-ring::after {
  content: '';
  position: absolute;
  inset: 12%;
  border-radius: 50%;
  border: 1px dashed rgba(240, 180, 41, 0.12);
  animation: ringSpin 40s linear infinite;
}

@keyframes ringPulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.04); opacity: 1; }
}
@keyframes ringSpin {
  to { transform: rotate(360deg); }
}

.bg-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  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)'/%3E%3C/svg%3E");
  background-size: 200px;
}

.bg-vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, 0.65) 100%);
}

.guide {
  display: none;
}

.page {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  overflow-x: hidden;
}

.shell {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

/* ── Liquid glass (kept, unique edge colors) ───────── */
/* ── Ultra-Premium Liquid Glassmorphism ───────── */
.liquid-glass {
  background: linear-gradient(
    135deg,
    rgba(22, 16, 38, 0.72) 0%,
    rgba(14, 10, 26, 0.82) 50%,
    rgba(24, 15, 38, 0.65) 100%
  );
  /* Reduced blur from 28px to 16px — massive GPU perf gain, same visual */
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: none;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.25),
    inset 0 -1px 1px rgba(0, 0, 0, 0.4),
    0 16px 48px rgba(0, 0, 0, 0.5),
    0 0 30px rgba(124, 92, 255, 0.08);
  position: relative;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.4s ease;
}

/* Mobile: disable backdrop-filter entirely — use solid bg fallback */
@media (max-width: 768px) {
  .liquid-glass {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: rgba(14, 10, 26, 0.92);
  }
}

/* Fixed Static Glass Prism Border Frame */
.liquid-glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.25) 0%,
    rgba(184, 160, 255, 0.2) 50%,
    rgba(232, 74, 138, 0.25) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  transition: opacity 0.4s var(--ease-soft);
}

.liquid-glass:hover {
  transform: translateY(-4px) scale(1.006);
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.35),
    0 24px 60px rgba(0, 0, 0, 0.55),
    0 0 35px rgba(124, 92, 255, 0.12);
}

html[data-theme='light'] .liquid-glass {
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(245, 240, 255, 0.82) 100%
  );
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.95),
    0 16px 44px rgba(80, 40, 120, 0.12);
}

html[data-theme='light'] .liquid-glass::before {
  background: linear-gradient(
    135deg,
    rgba(184, 160, 255, 0.6) 0%,
    rgba(232, 74, 138, 0.4) 50%,
    rgba(255, 217, 120, 0.6) 100%
  );
  opacity: 0.9;
}

/* ── Premium Smooth Icon Micro-Animations ───────────── */
.ico {
  width: 1.15rem;
  height: 1.15rem;
  display: inline-block;
  flex-shrink: 0;
  vertical-align: middle;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), stroke 0.3s ease, filter 0.3s ease;
  transform-origin: center center;
}
.ico.xs { width: 0.95rem; height: 0.95rem; }
.ico.sm { width: 1.05rem; height: 1.05rem; }
.ico.lg { width: 1.6rem; height: 1.6rem; }

/* Interactive Hover Reactions on Icons */
button:hover .ico,
a:hover .ico,
.btn:hover .ico {
  transform: scale(1.15) translateY(-1px);
}

/* Chevron Slide Nudge */
button:hover .ico.chev,
a:hover .ico.chev,
.btn:hover .ico.chev {
  transform: translateX(4px) scale(1.15);
}

/* Smooth 360 Spin on Refresh */
.spin-on-hover {
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}
button:hover .spin-on-hover,
.btn:hover .spin-on-hover {
  transform: rotate(360deg) scale(1.15) !important;
}

/* Plus Icon Hover Scale */
button:hover .ico,
.btn:hover .ico {
  transform: scale(1.12);
}

/* Shield Icon Heartbeat Pulse */
.text-emerald {
  animation: shieldSoftGlow 3s ease-in-out infinite;
}
button:hover .text-emerald,
.btn:hover .text-emerald {
  animation: shieldPulse 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) infinite alternate;
}

@keyframes shieldSoftGlow {
  0%, 100% { filter: drop-shadow(0 0 2px rgba(16, 185, 129, 0.3)); }
  50% { filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.65)); }
}

@keyframes shieldPulse {
  0% { transform: scale(1) rotate(0deg); }
  100% { transform: scale(1.22) rotate(-5deg); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.8)); }
}

/* Copy Pop Effect */
button:active .ico,
.btn:active .ico {
  transform: scale(0.88);
}

/* Trash Wobble Shake */
button.danger:hover .ico,
.btn-danger:hover .ico,
.stack-btn.danger:hover .ico {
  animation: trashWobble 0.45s cubic-bezier(0.36, 0.07, 0.19, 0.97) infinite alternate;
}

@keyframes trashWobble {
  0% { transform: rotate(0deg) scale(1.1); }
  25% { transform: rotate(-12deg) scale(1.15); }
  75% { transform: rotate(12deg) scale(1.15); }
  100% { transform: rotate(0deg) scale(1.1); }
}

/* Brand Icon Float */
.brand:hover .brand-icon .ico {
  transform: translateY(-2px) rotate(-8deg) scale(1.2);
}

.icon-bubble {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  color: var(--icon-color);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 8px 20px rgba(0, 0, 0, 0.12);
  transition: transform 0.4s var(--ease-soft), box-shadow 0.4s var(--ease-soft);
}
.feature:hover .icon-bubble,
.brand:hover .brand-icon {
  transform: translateY(-3px) scale(1.06);
}

.spin-on-hover { transition: transform 0.65s var(--ease-soft); }
button:hover .spin-on-hover { transform: rotate(-180deg); }

/* ── Buttons ───────────────────────────────────────── */
.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  transition:
    transform 0.35s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft),
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    color 0.3s var(--ease-soft),
    filter 0.35s var(--ease-soft);
  white-space: nowrap;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:active:not(:disabled) { transform: scale(0.97); }

.btn-solid {
  border-radius: 999px;
  background: linear-gradient(120deg, #ffd978 0%, #f0b429 40%, #e84a8a 100%);
  color: #1a0f08;
  font-size: 0.875rem;
  padding: 0.78rem 1.3rem;
  box-shadow: 0 10px 30px rgba(232, 74, 138, 0.25);
}
.btn-solid:hover:not(:disabled) {
  box-shadow: 0 14px 36px rgba(240, 180, 41, 0.35);
  filter: brightness(1.05);
}
.btn-solid .chev { transition: transform 0.15s; }
.btn-solid:hover .chev { transform: translateX(3px); }

.btn-emerald {
  border-radius: 999px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border: 1px solid rgba(52, 211, 153, 0.4) !important;
  box-shadow: 0 8px 25px rgba(16, 185, 129, 0.35) !important;
}
.btn-emerald:hover:not(:disabled) {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  box-shadow: 0 12px 32px rgba(16, 185, 129, 0.5) !important;
  transform: translateY(-1px);
}

.user-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4);
  margin-right: 0.2rem;
}

.btn-ghost {
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-size: 0.8rem;
  padding: 0.55rem 0.95rem;
}
.btn-ghost:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-danger {
  border-radius: 999px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  background: rgba(255, 107, 122, 0.1);
  color: #ff9aa4;
  font-size: 0.8rem;
  padding: 0.5rem 0.9rem;
}
.btn-danger:hover:not(:disabled) { background: rgba(255, 107, 122, 0.18); }

.btn-sm { font-size: 0.75rem; padding: 0.42rem 0.75rem; }

/* ── Topbar ────────────────────────────────────────── */
.topbar {
  position: relative;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 4.25rem;
  margin-top: 0.5rem;
  padding: 0 0.35rem;
}


.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  line-height: 1;
}

.brand-icon {
  width: 2.2rem;
  height: 2.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0;
  padding: 0;
  transition: transform 0.25s var(--ease-soft);
}
.brand-icon:hover {
  transform: scale(1.08);
}
.brand-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  vertical-align: middle;
}

.brand-text {
  font-weight: 700;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 0%, #ffd978 55%, #e84a8a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
  vertical-align: middle;
}

.light-theme .brand-text {
  background: linear-gradient(90deg, #0f172a 0%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: none;
  gap: 0.35rem;
  align-items: center;
}
.nav a, .nav-link {
  position: relative;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  transition: color 0.25s var(--ease-soft), background 0.25s var(--ease-soft), transform 0.25s var(--ease-soft);
  text-decoration: none;
}
.nav a:hover, .nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.nav a.active, .nav-link.active {
  color: #fff !important;
  font-weight: 600;
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.22) 0%, rgba(232, 74, 138, 0.25) 100%) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.3),
    0 4px 16px rgba(232, 74, 138, 0.25);
  border: 1px solid rgba(255, 217, 120, 0.4);
}
.nav a.active::after, .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ffd978, #e84a8a);
  box-shadow: 0 0 10px rgba(240, 180, 41, 0.9);
}

.nav-actions {
  position: relative;
  z-index: 10001;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}


.nav-cta { display: none; }

.theme-toggle {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  position: relative;
  transition:
    transform 0.4s var(--ease-soft),
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}
.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: scale(1.05);
}
.theme-toggle.theme-pop {
  animation: themePop 0.4s var(--ease-soft);
}
@keyframes themePop {
  0% { transform: scale(1); }
  40% { transform: scale(0.9) rotate(-12deg); }
  100% { transform: scale(1); }
}

.theme-ico-sun { display: none; }
.theme-ico-moon { display: block; }
html[data-theme='light'] .theme-ico-sun { display: block; }
html[data-theme='light'] .theme-ico-moon { display: none; }
html[data-theme='light'] .theme-toggle {
  background: rgba(255, 255, 255, 0.75);
  box-shadow: 0 4px 14px rgba(80, 40, 120, 0.08);
}

.menu-btn {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.3s var(--ease-soft), transform 0.3s var(--ease-soft);
}
.menu-btn:hover { transform: scale(1.05); }

@media (min-width: 860px) {
  .nav { display: flex; }
  .nav-cta { display: block; }
  .menu-btn { display: none; }
}

/* ── Hero: asymmetric cockpit ──────────────────────── */
.hero {
  padding: 1.5rem 0 2rem;
}

.hero-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 980px) {
  .hero-grid {
    grid-template-columns: 1.05fr 1.15fr;
    gap: 2rem;
    align-items: center;
    min-height: 70vh;
  }
}

.hero-copy {
  padding-top: 0.5rem;
}

.badge-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(94, 233, 168, 0.25);
  background: rgba(94, 233, 168, 0.08);
  color: var(--ok);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge-live .pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(94, 233, 168, 0.6);
  animation: livePulse 1.8s ease-out infinite;
}

@keyframes livePulse {
  0% { box-shadow: 0 0 0 0 rgba(94, 233, 168, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(94, 233, 168, 0); }
  100% { box-shadow: 0 0 0 0 rgba(94, 233, 168, 0); }
}

.hero h1 {
  margin: 1rem 0 0;
  font-size: clamp(2.4rem, 5.5vw, 3.85rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 .line { display: block; }

.hero h1 .prism-word {
  background: linear-gradient(
    110deg,
    #fff 0%,
    #ffd978 22%,
    #e84a8a 48%,
    #b8a0ff 72%,
    #fff 100%
  );
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: prismShift 7s linear infinite;
}

@keyframes prismShift {
  0% { background-position: 0% center; }
  100% { background-position: 200% center; }
}

.hero .lead {
  margin: 1.15rem 0 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
}

.hero-cta .hint {
  font-size: 0.78rem;
  color: var(--faint);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 2rem;
}

.stat {
  min-width: 5.5rem;
}
.stat b {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--gold-soft);
}
.stat span {
  font-size: 0.75rem;
  color: var(--faint);
}

/* Address cockpit */
.address-wrap { width: 100%; }

.address-card {
  border-radius: calc(var(--radius) + 4px);
  padding: 1.25rem 1.25rem 1.15rem;
  text-align: left;
}

.address-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}

.label-with-ico {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.ttl-pill {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(240, 180, 41, 0.12);
  color: var(--gold-soft);
  border: 1px solid rgba(240, 180, 41, 0.22);
}
.ttl-pill.warn {
  background: rgba(240, 180, 41, 0.18);
  color: #ffd978;
}
.ttl-pill.danger {
  background: rgba(255, 107, 122, 0.14);
  color: #ff9aa4;
  border-color: rgba(255, 107, 122, 0.3);
}

.address-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.65rem;
}

.address-display {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  min-height: 3.35rem;
  padding: 0.7rem 1rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  font-family: var(--mono);
  font-size: clamp(0.82rem, 2vw, 1rem);
  font-weight: 500;
  word-break: break-all;
  transition: background 0.35s var(--ease-soft), border-color 0.35s var(--ease-soft);
}
.address-display .at { color: var(--gold); }

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  margin-top: 0.9rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.field label {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
}
.field select,
.field input,
.search-box input {
  height: 2.5rem;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  padding: 0 0.75rem;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.35s var(--ease-soft),
    box-shadow 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft);
}
.field select:focus,
.field input:focus,
.search-box input:focus {
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1);
}

.field select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 0.85rem;
  padding-right: 2.2rem;
  cursor: pointer;
}

html[dir="rtl"] .field select {
  background-position: left 0.75rem center;
  padding-right: 0.75rem;
  padding-left: 2.2rem;
}

.field select option {
  background: #120b22;
  color: #ffffff;
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
}

html[data-theme='light'] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='rgba(0,0,0,0.6)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
}

html[data-theme='light'] .field select option {
  background: #ffffff;
  color: #1a0f08;
}

/* ── Smooth Rounded Custom Select Component ───────────── */
.cselect-wrap {
  position: relative;
  width: 100%;
}

.cselect-btn {
  height: 2.5rem;
  width: 100%;
  border-radius: 0.75rem;
  border: 1px solid var(--line);
  background: var(--input-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.75rem;
  font-size: 0.83rem;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-sizing: border-box;
}

.cselect-btn:hover {
  border-color: rgba(255, 255, 255, 0.25);
}

.cselect-btn:focus,
.cselect-wrap.open .cselect-btn {
  border-color: rgba(240, 180, 41, 0.45);
  box-shadow: 0 0 0 3px rgba(240, 180, 41, 0.1);
  outline: none;
}

.cselect-menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  width: 100%;
  max-height: 220px;
  overflow-y: auto;
  background: rgba(12, 8, 22, 0.96) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--line) !important;
  border-radius: 0.75rem !important;
  padding: 0.25rem !important;
  z-index: 99999 !important;
  display: none !important;
  flex-direction: column !important;
  gap: 0.15rem !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.75) !important;
  box-sizing: border-box !important;
}

.cselect-wrap.open .cselect-menu {
  display: flex !important;
}

.cselect-opt {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  color: var(--ink, #ffffff) !important;
  padding: 0.42rem 0.65rem !important;
  border-radius: 0.45rem !important;
  text-align: left !important;
  font-size: 0.81rem !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}

html[dir="rtl"] .cselect-opt {
  text-align: right !important;
}

.cselect-opt:hover,
.cselect-opt.selected {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gold-soft, #ffd978) !important;
}

html[data-theme='light'] .cselect-menu {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme='light'] .cselect-opt {
  color: #1a0f08 !important;
}

html[data-theme='light'] .cselect-opt:hover,
html[data-theme='light'] .cselect-opt.selected {
  background: rgba(107, 79, 214, 0.08) !important;
  color: #6b4fd6 !important;
}

/* Plan / pool */
.plan-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}
.plan-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
}
.plan-hint { font-size: 0.75rem; color: var(--faint); }

.seg {
  display: inline-flex;
  padding: 0.16rem;
  border-radius: 0.7rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  gap: 0.12rem;
}
.seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--faint);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 0.55rem;
  cursor: pointer;
  transition: 0.15s;
}
.seg-btn:hover:not(:disabled) { color: #fff; }
.seg-btn.active {
  background: linear-gradient(120deg, #ffd978, #e84a8a);
  color: #1a0f08;
}
.seg-btn:disabled { opacity: 0.35; cursor: not-allowed; }

.pool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}
.pool-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.15s;
}
.pool-chip:hover:not(:disabled) { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.pool-chip.active {
  background: rgba(232, 74, 138, 0.14);
  border-color: rgba(232, 74, 138, 0.4);
  color: #ffb3cc;
}
.pool-chip:disabled,
.pool-chip.locked { opacity: 0.4; cursor: not-allowed; }

.multi-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.9rem;
  padding: 0.65rem 0.75rem;
  border-radius: 0.9rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}
.multi-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.multi-list { display: flex; flex-wrap: wrap; gap: 0.35rem; flex: 1; }
.multi-chip {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.72rem;
  font-family: var(--mono);
  padding: 0.3rem 0.55rem;
  border-radius: 0.5rem;
  cursor: pointer;
  max-width: 9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.multi-chip.active {
  border-color: rgba(240, 180, 41, 0.4);
  background: rgba(240, 180, 41, 0.12);
  color: #fff;
}

.stack-btn {
  appearance: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.75rem;
  border-radius: 0.65rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: 0.15s;
}
.stack-btn:hover { background: rgba(255, 255, 255, 0.08); color: #fff; }
.stack-btn.icon {
  width: 2.1rem;
  height: 2.1rem;
  padding: 0;
  justify-content: center;
}
.stack-btn.primary {
  background: linear-gradient(120deg, #ffd978, #e84a8a);
  color: #1a0f08;
  border-color: transparent;
}
.stack-btn.danger {
  border-color: rgba(255, 107, 122, 0.3);
  background: rgba(255, 107, 122, 0.1);
  color: #ff9aa4;
}

.field-actions label { visibility: hidden; }

/* ── Inbox ─────────────────────────────────────────── */
.workspace-wrap {
  width: min(1080px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0.5rem 0 3rem;
}

.inbox-stack {
  border-radius: var(--radius);
  padding: 1rem;
  min-height: 540px;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.inbox-stack-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1rem;
  padding: 0.15rem 0.25rem;
}

.stack-kicker {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--faint);
  font-weight: 500;
}
.stack-sep { opacity: 0.4; }
.stack-dim { color: var(--faint); }
.stack-kicker #msgCount { color: var(--gold-soft); font-weight: 700; }

.stack-addr {
  flex: 1;
  min-width: 0;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stack-tools {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}
.stack-tools .search-box { width: min(14rem, 42vw); }

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(94, 233, 168, 0.15);
  display: inline-block;
}
.status-dot.off {
  background: rgba(255, 255, 255, 0.3);
  box-shadow: none;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}
.search-box .search-ico {
  position: absolute;
  left: 0.65rem;
  color: var(--faint);
  pointer-events: none;
}
.search-box input {
  width: 100%;
  height: 2.2rem;
  padding: 0 0.7rem 0 2.1rem;
  font-size: 0.8rem;
}
.search-box input::placeholder { color: var(--faint); }

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 0.75rem;
  flex: 1;
  min-height: 440px;
}

.panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
}

.inbox-list {
  list-style: none;
  margin: 0;
  padding: 0;
  overflow: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.12) transparent;
}

.inbox-item {
  width: 100%;
  text-align: left;
  cursor: pointer;
  color: inherit;
  appearance: none;
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 6, 18, 0.55);
  transition: 0.18s var(--ease);
}
.inbox-item:hover {
  transform: translateY(-2px);
  border-color: rgba(240, 180, 41, 0.25);
  background: rgba(22, 14, 36, 0.75);
}
.inbox-item.active {
  border-color: rgba(232, 74, 138, 0.4);
  background: linear-gradient(145deg, rgba(232, 74, 138, 0.12), rgba(124, 92, 255, 0.1));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.item-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.3rem;
}
.inbox-item .from,
.msg-header .from {
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.95);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--faint);
  flex-shrink: 0;
}
.item-tag.soft {
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
}
.inbox-item .subject {
  font-size: 0.84rem;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.inbox-item .preview {
  margin-top: 0.2rem;
  font-size: 0.76rem;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.item-foot { margin-top: 0.4rem; }
.inbox-item .time,
.msg-header .time {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.28);
}

.empty {
  flex: 1;
  display: flex;
  padding: 0;
  min-height: 10rem;
}
.empty-card {
  width: 100%;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 6, 18, 0.45);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.45rem;
}
.empty-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.empty-title {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
}
.empty-tag { font-size: 0.72rem; color: var(--faint); }
.empty-card p {
  margin: 0;
  font-size: 0.84rem;
  color: var(--muted);
  max-width: 22rem;
}
.loading-line { color: var(--muted); padding: 1rem; }

.message-view {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  height: 100%;
}
.reader-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: rgba(10, 6, 18, 0.55);
  overflow: hidden;
}
.msg-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
}
.msg-toolbar-spacer { flex: 1; }
.msg-header {
  padding: 1rem 1.1rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.msg-header h3 {
  margin: 0.35rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.msg-from-sub { font-size: 0.75rem; color: var(--faint); }
.msg-body {
  flex: 1;
  overflow: auto;
  padding: 1rem 1.1rem 1.25rem;
}
.msg-body.plain {
  white-space: pre-wrap;
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
}
.msg-body.html-frame { padding: 0; background: rgba(0, 0, 0, 0.25); }
.msg-body iframe {
  width: 100%;
  min-height: 360px;
  height: 100%;
  border: 0;
  background: #0a0712;
  display: block;
}
.mobile-only { display: none; }

/* ── Bento features ────────────────────────────────── */
.section {
  width: 100%;
  padding: 3.5rem 0;
}
.section-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 12px rgba(240, 180, 41, 0.6);
}
.eyebrow .tag {
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.72rem;
}

.features {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto 1rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.85rem;
}
@media (min-width: 800px) {
  .features {
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: auto auto;
  }
  .features .feature:first-child {
    grid-row: span 2;
    min-height: 100%;
  }
}

.feature {
  border-radius: 1.15rem;
  padding: 1.35rem 1.25rem;
  transition: transform 0.25s var(--ease);
}
.feature:hover { transform: translateY(-4px); }
.feature-ico {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.95rem;
  display: grid;
  place-items: center;
  color: var(--icon-color);
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  margin-bottom: 0.85rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 10px 24px rgba(0, 0, 0, 0.12);
  transition: transform 0.45s var(--ease-soft), box-shadow 0.45s var(--ease-soft);
}
.feature:hover .feature-ico {
  transform: translateY(-3px) rotate(-3deg) scale(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    0 14px 28px rgba(124, 92, 255, 0.18);
}
.feature h3 {
  margin: 0 0 0.4rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

/* Workflow */
.triage-grid {
  display: grid;
  gap: 2rem;
  align-items: start;
}
@media (min-width: 860px) {
  .triage-grid { grid-template-columns: 1fr 1.1fr; gap: 3rem; }
}
.triage-copy h2 {
  margin: 1rem 0 0;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.triage-copy p {
  margin: 1.1rem 0 0;
  max-width: 28rem;
  color: var(--muted);
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.25rem;
}
.chip {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}
.triage-card {
  border-radius: 1.25rem;
  padding: 1.15rem;
}
.triage-card-head {
  font-size: 0.75rem;
  color: var(--faint);
  margin-bottom: 0.85rem;
  font-weight: 500;
}
.triage-buckets {
  display: grid;
  gap: 0.65rem;
}
.bucket {
  border-radius: 0.85rem;
  padding: 0.8rem 0.9rem;
}
.bucket-top {
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  font-weight: 600;
}
.bucket-top span:last-child {
  color: var(--faint);
  font-size: 0.72rem;
  font-weight: 500;
}
.bucket ul { margin: 0; padding: 0; list-style: none; }
.bucket li {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.2rem;
}

/* Pricing table */
.pricing-compare { padding-top: 2rem; padding-bottom: 3.5rem; }
.pricing-head { text-align: center; margin-bottom: 1.5rem; }
.pricing-title {
  margin: 0.85rem 0 0.45rem;
  font-size: clamp(1.6rem, 3.5vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.pricing-sub {
  margin: 0 auto;
  max-width: 32rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.compare-wrap {
  border-radius: 1.25rem;
  overflow: auto;
  max-height: 520px;
}
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
.compare-table th,
.compare-table td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.compare-table th {
  background: rgba(0, 0, 0, 0.4);
  font-size: 0.8rem;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}
.compare-table th:nth-child(2),
.compare-table th:nth-child(3),
.compare-table td:nth-child(2),
.compare-table td:nth-child(3) {
  text-align: center;
  width: 7.5rem;
}
.compare-table .group-row td {
  background: rgba(232, 74, 138, 0.08);
  color: #ffb3cc;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.55rem 1.1rem;
}
.price-pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: rgba(240, 180, 41, 0.15);
  color: var(--gold-soft);
  font-size: 0.7rem;
  font-weight: 700;
}
.compare-table .yes { color: var(--ok); font-weight: 700; }
.compare-table .no { color: rgba(255, 255, 255, 0.25); font-weight: 600; }
.pricing-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.4rem;
}
.pricing-note {
  text-align: center;
  margin: 1rem auto 0;
  max-width: 36rem;
  font-size: 0.78rem;
  color: var(--faint);
  line-height: 1.5;
}

body.plan-premium .address-card {
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(240, 180, 41, 0.15) inset,
    0 0 50px rgba(232, 74, 138, 0.1);
}

/* CTA */
.final-cta { padding-bottom: 4rem; }
.cta-card {
  border-radius: 1.5rem;
  padding: 3.5rem 1.75rem;
  text-align: center;
  overflow: hidden;
  position: relative;
}
.cta-glow {
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: 0.55;
  background:
    radial-gradient(500px circle at 30% 0%, rgba(240, 180, 41, 0.2), transparent 55%),
    radial-gradient(500px circle at 70% 0%, rgba(232, 74, 138, 0.18), transparent 55%);
}
.cta-inner { position: relative; z-index: 1; }
.cta-inner h2 {
  margin: 0;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
}
.cta-inner p {
  margin: 1.1rem auto 0;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
}
.cta-actions {
  margin-top: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Footer */
.footer {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 2.5rem;
  color: var(--faint);
  font-size: 0.82rem;
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}
.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer a:hover { color: var(--gold-soft); }

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 1.4rem;
  transform: translateX(-50%) translateY(120%);
  background: linear-gradient(120deg, #ffd978, #e84a8a);
  color: #1a0f08;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: transform 0.28s var(--ease), opacity 0.28s var(--ease);
  z-index: 50;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* Static pages */
.static-page {
  width: min(48rem, calc(100% - 2rem));
  margin: 1.5rem auto 3rem;
  border-radius: 1.25rem;
  padding: 1.75rem 1.5rem;
}
.static-page h1 { margin-top: 0; letter-spacing: -0.02em; }
.static-page h2 { font-size: 1.05rem; margin-top: 1.5rem; }
.static-page p,
.static-page li { color: var(--muted); }
.static-page code,
.static-page pre { font-family: var(--mono); font-size: 0.84rem; }
.static-page pre {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--line);
  color: #e8e0ff;
  padding: 1rem;
  border-radius: 0.85rem;
  overflow: auto;
}
.static-page a { color: var(--gold-soft); }

/* Smooth scroll-reveal animations */
@keyframes animIn {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}
.anim-in {
  animation: animIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
  animation-delay: var(--d, 0s);
  will-change: transform, opacity;
}

/* Reveal: hidden until IntersectionObserver adds .is-visible */
.reveal {
  opacity: 0;
  transform: translate3d(0, 24px, 0);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Stagger reveal: each element after the first gets a small delay via CSS nth-child */
.reveal:nth-child(2).is-visible { transition-delay: 0.08s; }
.reveal:nth-child(3).is-visible { transition-delay: 0.16s; }
.reveal:nth-child(4).is-visible { transition-delay: 0.24s; }
.reveal:nth-child(5).is-visible { transition-delay: 0.32s; }
.reveal:nth-child(6).is-visible { transition-delay: 0.40s; }

/* Fallback: if IntersectionObserver doesn't fire (old browser), show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}

@keyframes msgEnter {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.97);
    filter: blur(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}
.msg-enter {
  animation: msgEnter 0.55s var(--ease-soft) both;
  animation-delay: calc(var(--i, 0) * 0.06s);
}

.inbox-item,
.pool-chip,
.stack-btn,
.multi-chip,
.seg-btn {
  transition:
    transform 0.35s var(--ease-soft),
    background 0.35s var(--ease-soft),
    border-color 0.35s var(--ease-soft),
    color 0.3s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft) !important;
}

html[data-theme='light'] .address-display {
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
}
html[data-theme='light'] .inbox-item {
  background: rgba(255, 255, 255, 0.7);
}
html[data-theme='light'] .inbox-item:hover {
  background: rgba(255, 255, 255, 0.92);
}
html[data-theme='light'] .inbox-item.active {
  background: linear-gradient(145deg, rgba(232, 74, 138, 0.08), rgba(107, 79, 214, 0.1));
}
html[data-theme='light'] .reader-card,
html[data-theme='light'] .empty-card,
html[data-theme='light'] .bucket {
  background: rgba(255, 255, 255, 0.75);
}
html[data-theme='light'] .toast {
  box-shadow: 0 16px 40px rgba(100, 50, 140, 0.2);
}
html[data-theme='light'] .brand-text {
  background: linear-gradient(90deg, #1a1228 0%, #6b4fd6 50%, #d6336c 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme='light'] .hero h1 .prism-word {
  background: linear-gradient(110deg, #1a1228 0%, #6b4fd6 30%, #d6336c 55%, #c98900 80%, #1a1228 100%);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
}
html[data-theme='light'] .btn-ghost {
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink);
}
html[data-theme='light'] .field select option {
  background: #fff;
  color: #1a1228;
}
html[data-theme='light'] .compare-table th {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
}
html[data-theme='light'] .compare-table .group-row td {
  background: rgba(107, 79, 214, 0.08);
  color: #6b4fd6;
}
html[data-theme='light'] .msg-body.plain {
  color: rgba(26, 18, 40, 0.78);
}

/* Responsive */
@media (max-width: 900px) {
  .workspace {
    grid-template-columns: 1fr;
    position: relative;
    min-height: 400px;
  }
  .panel-reader {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 2;
    background: rgba(10, 6, 18, 0.98);
    border-radius: 1rem;
  }
  .workspace.reader-open .panel-list { visibility: hidden; }
  .workspace.reader-open .panel-reader { display: flex; }
  .mobile-only { display: inline-flex; }
  .stack-addr { order: 3; flex-basis: 100%; }
}

@media (max-width: 720px) {
  .address-row { grid-template-columns: 1fr; }
  .controls { grid-template-columns: 1fr; }
  .compare-table th,
  .compare-table td {
    padding: 0.65rem 0.55rem;
    font-size: 0.78rem;
  }
}

@media (max-width: 560px) {
  .inbox-stack {
    border-radius: 1.1rem;
    padding: 0.8rem;
    min-height: 65vh;
  }
  .stat-row { gap: 0.85rem; }
}

/* ── VirusTotal & Language Selector Styles ─────────────── */

.text-emerald { color: #10b981 !important; }
.btn-vt-top {
  border-color: rgba(16, 185, 129, 0.3) !important;
  color: #34d399 !important;
  background: rgba(16, 185, 129, 0.08) !important;
}
.btn-vt-top:hover {
  background: rgba(16, 185, 129, 0.18) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25) !important;
}

/* Mini Theme-matching Language Selector Dropdown */
.lang-selector-wrap {
  position: relative;
  display: inline-block;
  z-index: 10002;
}

.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  cursor: pointer;
  user-select: none;
  pointer-events: auto !important;
}

.lang-dropdown {
  position: absolute !important;
  top: calc(100% + 6px) !important;
  right: 0 !important;
  width: max-content !important;
  min-width: 140px !important;
  background: rgba(14, 10, 26, 0.98) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 0.75rem !important;
  padding: 0.35rem !important;
  display: none !important;
  flex-direction: column !important;
  gap: 0.2rem !important;
  z-index: 999999 !important;
  pointer-events: auto !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.85) !important;
  box-sizing: border-box !important;
}

.lang-dropdown.show {
  display: flex !important;
}

.lang-opt {
  appearance: none !important;
  -webkit-appearance: none !important;
  position: relative !important;
  z-index: 1000000 !important;
  pointer-events: auto !important;
  width: 100% !important;
  background: transparent !important;
  border: none !important;
  color: var(--ink, #ffffff) !important;
  padding: 0.45rem 0.75rem !important;
  border-radius: 0.5rem !important;
  text-align: left !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  transition: background 0.15s ease, color 0.15s ease !important;
  white-space: nowrap !important;
  box-sizing: border-box !important;
}


.lang-opt:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--gold-soft, #ffd978) !important;
}

html[data-theme='light'] .lang-dropdown {
  background: rgba(255, 255, 255, 0.98) !important;
  border-color: rgba(0, 0, 0, 0.12) !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.15) !important;
}

html[data-theme='light'] .lang-opt {
  color: #1a0f08 !important;
}

html[data-theme='light'] .lang-opt:hover {
  background: rgba(107, 79, 214, 0.08) !important;
  color: #6b4fd6 !important;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 2, 10, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  z-index: 9999999 !important;
  padding: 1rem;
}
.modal-backdrop[hidden] { display: none !important; }

/* Stack secondary modals above authModal */
#createKeyModal,
#revealKeyModal,
#revokeKeyModal {
  z-index: 10000005 !important;
}

.modal-card {
  width: min(640px, 100%);
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: linear-gradient(145deg, rgba(20, 14, 34, 0.95), rgba(12, 8, 22, 0.98));
  padding: 1.5rem;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  max-height: 90vh;
  overflow-y: auto;
}
.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}
.modal-title-row { display: flex; align-items: center; gap: 0.5rem; }
.modal-title-row h3 { margin: 0; font-size: 1.25rem; font-weight: 700; }
.btn-close {
  background: transparent;
  border: 0;
  color: var(--faint);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.btn-close:hover { color: #fff; }
.modal-desc { margin: 0 0 1.25rem; color: var(--muted); font-size: 0.88rem; }

/* VT Tabs */
.vt-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.2rem;
  padding-bottom: 0.4rem;
}
.vt-tab {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.4rem 0.8rem;
  border-radius: 0.6rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.vt-tab:hover { color: #fff; background: rgba(255, 255, 255, 0.05); }
.vt-tab.active { background: rgba(16, 185, 129, 0.15); color: #34d399; }

.vt-pane, .vt-panel { display: none !important; }
.vt-pane.active, .vt-panel.active { display: block !important; }

.input-group, .file-group {
  display: flex;
  gap: 0.6rem;
}
.input-text {
  flex: 1;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.65rem 0.9rem;
  color: #fff;
  font-size: 0.88rem;
}
.input-text:focus { border-color: #34d399; outline: none; }
.file-input {
  flex: 1;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--line);
  border-radius: 0.75rem;
  padding: 0.6rem;
  color: var(--muted);
}
.input-label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 0.4rem; }
.hint-sm { font-size: 0.78rem; color: var(--faint); margin: 0.4rem 0 0; }

.vt-status-pill {
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-weight: 600;
}
.vt-status-pill.active { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.vt-status-pill.demo { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }

/* VT Result Card */
.vt-result-container { margin-top: 1.25rem; }
.vt-res-card {
  background: rgba(10, 6, 20, 0.8);
  border: 1px solid var(--line);
  border-radius: 1rem;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.vt-res-card.good { border-color: rgba(16, 185, 129, 0.4); }
.vt-res-card.warn { border-color: rgba(245, 158, 11, 0.4); }
.vt-res-card.bad { border-color: rgba(239, 68, 68, 0.4); }

.vt-res-head { display: flex; justify-content: space-between; align-items: center; }
.vt-pill {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.vt-pill.good { background: rgba(16, 185, 129, 0.2); color: #34d399; }
.vt-pill.warn { background: rgba(245, 158, 11, 0.2); color: #fbbf24; }
.vt-pill.bad { background: rgba(239, 68, 68, 0.2); color: #f87171; }

.vt-res-target { font-family: var(--mono); font-size: 0.85rem; color: #fff; word-break: break-all; }
.vt-res-summary { margin: 0; font-size: 0.84rem; color: var(--muted); }

.vt-engines-bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  overflow: hidden;
}
.vt-bar-segment.harmless { background: #10b981; }
.vt-bar-segment.suspicious { background: #f59e0b; }
.vt-bar-segment.malicious { background: #ef4444; }

.vt-res-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--faint);
}

/* In-message VirusTotal Box */
.vt-security-box {
  margin: 1rem 1.1rem 1.25rem;
  border-radius: 1rem;
  border: 1px solid rgba(16, 185, 129, 0.25);
  background: rgba(10, 20, 25, 0.45);
  padding: 1.1rem;
}
.vt-box-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.vt-title-wrap { display: flex; align-items: center; gap: 0.6rem; }
.vt-title-wrap h4 { margin: 0; font-size: 0.95rem; font-weight: 700; }
.vt-sub { margin: 0; font-size: 0.76rem; color: var(--faint); }
.vt-box-content { margin-top: 1rem; }
.loading-vt { font-size: 0.85rem; color: var(--muted); padding: 0.75rem 0; display: flex; align-items: center; gap: 0.5rem; }

.vt-summary-card {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.85rem;
  padding: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1rem;
}
.vt-summary-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 700;
  font-size: 0.9rem;
}
.badge-clean { color: #34d399; }
.badge-warn { color: #fbbf24; }
.badge-danger { color: #f87171; }

.vt-stats-grid { display: flex; gap: 1rem; }
.vt-stat { display: flex; flex-direction: column; align-items: center; font-size: 0.75rem; color: var(--faint); }
.vt-stat b { font-size: 1rem; color: #fff; }

.vt-sec-title { margin: 0.85rem 0 0.4rem; font-size: 0.82rem; color: var(--muted); font-weight: 600; }
.vt-items-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.vt-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: 0.65rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.vt-item-info { display: flex; flex-direction: column; min-width: 0; }
.vt-target-url { font-family: var(--mono); font-size: 0.8rem; color: #fff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-engine-note { font-size: 0.72rem; color: var(--faint); }
.vt-item-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.vt-empty-note { font-size: 0.8rem; color: var(--faint); font-style: italic; margin: 0.4rem 0; }

/* ── RTL Support for Arabic ────────────────────────── */
html[dir="rtl"] {
  direction: rtl;
  text-align: right;
}
html[dir="rtl"] .brand { margin-left: auto; margin-right: 0; }
html[dir="rtl"] .stack-tools { margin-left: 0; margin-right: auto; }
html[dir="rtl"] .search-box .search-ico { left: auto; right: 0.65rem; }
html[dir="rtl"] .search-box input { padding: 0 2.1rem 0 0.7rem; }
html[dir="rtl"] .lang-dropdown { right: auto; left: 0; }
html[dir="rtl"] .lang-opt { text-align: right; }
html[dir="rtl"] .msg-toolbar-spacer { flex: 1; }
html[dir="rtl"] .inbox-item { text-align: right; }
html[dir="rtl"] .chev { transform: scaleX(-1); }

/* ── OTP Verification Banner ──────────────────────── */
.otp-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0.75rem 1.1rem 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(94, 233, 168, 0.12), rgba(124, 92, 255, 0.08));
  border: 1px solid rgba(94, 233, 168, 0.35);
  box-shadow: 0 4px 18px rgba(94, 233, 168, 0.1);
}
.otp-left {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
}
.otp-code {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  color: var(--ok);
  background: rgba(0, 0, 0, 0.3);
  padding: 0.2rem 0.6rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(94, 233, 168, 0.3);
}

/* ── Attachment Tray ────────────────────────────── */
.attachment-tray {
  margin: 0.75rem 1.1rem 0;
  padding: 0.85rem 1.1rem;
  border-radius: 0.85rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.att-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.5rem;
}
.att-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.att-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
  font-size: 0.8rem;
}
.att-name { font-weight: 500; color: var(--ink); }
.att-size { font-size: 0.72rem; color: var(--faint); }

/* ── Export Dropdown Menu ────────────────────────── */
.export-dropdown-wrap {
  position: relative;
}
.export-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 0.4rem;
  background: rgba(14, 10, 24, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid var(--line);
  border-radius: 0.65rem;
  padding: 0.35rem;
  min-width: 150px;
  z-index: 100;
  box-shadow: var(--shadow);
}
.export-menu[hidden] { display: none !important; }
.export-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.75rem;
  background: transparent;
  border: none;
  border-radius: 0.4rem;
  font-size: 0.82rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease;
}
.export-opt:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ── SPA Page Views & Smooth 60fps View Transitions ── */
.site-view {
  display: none;
  width: 100%;
}
.site-view.active {
  display: block !important;
  animation: viewFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  will-change: transform, opacity;
}

@keyframes viewFadeIn {
  from {
    opacity: 0;
    transform: translate3d(0, 6px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

.nav-link.active {
  color: var(--gold-soft) !important;
  font-weight: 600;
  border-bottom: 2px solid var(--gold);
}

/* ── Home Showcase Preview Card ────────────────── */
.home-showcase-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-top: 1rem;
}
.showcase-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}
.showcase-pill {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--line);
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold-soft);
}
.showcase-features {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 1rem;
}
.sf-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.84rem;
  color: var(--ink);
}

/* ── Glass 3D Hover Perspective ────────────────── */
.liquid-glass {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}
.liquid-glass:hover {
  transform: translateY(-3px) scale(1.002);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

/* ── Global System Announcement Bar ──────────────────── */
.announcement-bar {
  width: 100%;
  background: linear-gradient(90deg, rgba(240, 180, 41, 0.18) 0%, rgba(232, 74, 138, 0.22) 50%, rgba(124, 92, 255, 0.18) 100%);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  padding: 0.45rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.82rem;
  color: #fff;
  z-index: 10002;
  transition: all 0.3s ease;
}
.announcement-bar[hidden] {
  display: none !important;
}
.light-theme .announcement-bar {
  background: linear-gradient(90deg, #1e1b4b 0%, #312e81 50%, #4338ca 100%) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
.light-theme .announcement-text {
  color: #ffffff !important;
}
.light-theme .announcement-badge {
  background: rgba(240, 180, 41, 0.3) !important;
  border-color: #ffd978 !important;
  color: #ffd978 !important;
}
.light-theme .announcement-btn {
  background: rgba(255, 255, 255, 0.2) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  color: #ffffff !important;
}
.light-theme .announcement-close {
  color: rgba(255, 255, 255, 0.7) !important;
}
.light-theme .announcement-close:hover {
  color: #ffffff !important;
}
.announcement-content {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.announcement-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(240, 180, 41, 0.25);
  border: 1px solid rgba(240, 180, 41, 0.5);
  color: #ffd978;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
}
.pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffd978;
  box-shadow: 0 0 8px #ffd978;
  animation: pulseGlow 1.5s infinite;
}
@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
.announcement-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}
.announcement-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}
.announcement-close {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.35rem;
  transition: color 0.2s ease;
}
.announcement-close:hover {
  color: #fff;
}

/* ── Smart Auto-Tagging & Category Filters Bar ──────── */
.category-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.category-filter-bar::-webkit-scrollbar {
  display: none;
}
.cat-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s var(--ease-soft);
}
.cat-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.cat-filter-btn.active {
  background: linear-gradient(135deg, rgba(240, 180, 41, 0.25), rgba(232, 74, 138, 0.25)) !important;
  border-color: rgba(240, 180, 41, 0.5) !important;
  color: #fff !important;
  font-weight: 600;
}

/* Category Badge Pills on Message Item */
.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 0.4rem;
}
.cat-pill.tag-otp { background: rgba(16, 185, 129, 0.18); color: #34d399; border: 1px solid rgba(16, 185, 129, 0.3); }
.cat-pill.tag-threat { background: rgba(239, 68, 68, 0.18); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.3); }
.cat-pill.tag-finance { background: rgba(240, 180, 41, 0.18); color: #ffd978; border: 1px solid rgba(240, 180, 41, 0.3); }
.cat-pill.tag-files { background: rgba(124, 92, 255, 0.18); color: #c084fc; border: 1px solid rgba(124, 92, 255, 0.3); }
.cat-pill.tag-general { background: rgba(255, 255, 255, 0.08); color: var(--muted); border: 1px solid var(--line); }

/* ── Butter-Smooth Tab & View Switching (Zero Layout Shift) ── */
.view-panel {
  opacity: 0;
  transform: translate3d(0, 8px, 0);
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), transform 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}
.view-panel:not([hidden]) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.vt-pane, .auth-panel, .vt-panel {
  opacity: 0;
  transform: translate3d(0, 6px, 0);
  transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1), transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.vt-pane.active, .auth-panel.active, .vt-panel.active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Light Theme Timer Overrides */
.light-theme .timer-widget {
  background: rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 23, 42, 0.15);
}
.light-theme .timer-clock {
  color: #0f172a;
}

/* FAQ Accordion Styles & GPU-Accelerated Smooth Expand */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0 1.25rem;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.faq-item:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(240, 180, 41, 0.35);
}
.faq-item.active {
  background: rgba(14, 10, 26, 0.7);
  border-color: rgba(240, 180, 41, 0.5);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}
.faq-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  user-select: none;
}
.faq-question {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0;
}
.faq-chev {
  width: 1.2rem !important;
  height: 1.2rem !important;
  min-width: 1.2rem !important;
  min-height: 1.2rem !important;
  max-width: 1.2rem !important;
  max-height: 1.2rem !important;
  flex-shrink: 0 !important;
  stroke: var(--gold-soft) !important;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.faq-item.active .faq-chev {
  transform: rotate(180deg) !important;
}
.faq-body-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-body-wrap {
  grid-template-rows: 1fr;
  opacity: 1;
}
.faq-body-inner {
  overflow: hidden;
}
.faq-content {
  padding-bottom: 1.1rem;
  font-size: 0.88rem;
  line-height: 1.6;
  color: var(--muted);
}



