/* ═══════════════════════════════════════════════
   VAANIGUARD — Bento Dashboard
   Light theme, coral accent, generous radius
   Inspired by modern dashboard UI patterns
   ═══════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
  /* Surface & Background */
  --bg: #07080c;
  --bg-elevated: #0f1118;
  --bg-card: rgba(15, 17, 24, 0.72);
  --bg-card-hover: rgba(22, 25, 36, 0.85);
  --bg-input: #0a0c11;
  --bg-dark: #050508;
  --bg-white: #11131a;

  /* Sophisticated Cyber Defense Palette */
  --primary: #f43f5e;
  --primary-hover: #fb7185;
  --primary-deep: #be123c;
  --primary-glow: rgba(244, 63, 94, 0.28);
  --primary-subtle: rgba(244, 63, 94, 0.08);

  --coral: #f43f5e;
  --coral-light: rgba(244, 63, 94, 0.12);
  --red: #f43f5e;
  --red-light: rgba(244, 63, 94, 0.14);
  --green: #10b981;
  --green-light: rgba(16, 185, 129, 0.14);
  --orange: #f59e0b;
  --orange-light: rgba(245, 158, 11, 0.14);
  --blue: #38bdf8;
  --blue-light: rgba(56, 189, 248, 0.14);
  --cyan: #06b6d4;

  /* Borders & Specular Glass Highlights */
  --border: rgba(255, 255, 255, 0.08);
  --border-subtle: rgba(255, 255, 255, 0.04);
  --border-highlight: rgba(255, 255, 255, 0.14);
  --border-glow: rgba(244, 63, 94, 0.4);

  /* Typography */
  --text: #f8fafc;
  --text-secondary: #94a3b8;
  --text-dim: #64748b;
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --font: var(--font-sans);

  /* Geometry & Shaders */
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 25px rgba(244, 63, 94, 0.18);
  --grid-color: rgba(255, 255, 255, 0.035);
}

/* ═══ Aceternity-Style Dot Distortion Shader Backdrop ═══ */
.shader-background-container {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  background-color: var(--bg);
  overflow: hidden;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

#dotDistortionCanvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  display: block;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 85%);
}

.shader-vignette-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 12%, rgba(239, 68, 68, 0.08) 0%, transparent 65%),
              radial-gradient(ellipse at center, transparent 30%, var(--bg) 95%);
  pointer-events: none;
}

.btn-icon {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.btn-icon:hover {
  background: rgba(120,120,120,0.1);
  color: var(--text);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
.hidden { display: none !important; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

::selection { background: rgba(255,99,71,0.2); }

/* ═══ App Shell ═══ */
.app-shell {
  display: flex;
  min-height: 100vh;
}

/* ═══ Sidebar ═══ */
.sidebar {
  width: 64px;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 20px 0;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.sidebar-logo {
  margin-bottom: 8px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--text-dim);
  text-decoration: none;
  transition: all 0.15s;
}

.nav-item:hover {
  background: rgba(255,255,255,0.08);
  color: #ffffff;
}

.nav-item.active {
  background: #dc2626;
  color: #ffffff;
  box-shadow: 0 0 12px rgba(220, 38, 38, 0.4);
}

.nav-item i { width: 20px; height: 20px; }

.sidebar-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ═══ Main Content ═══ */
.main-content {
  flex: 1;
  padding: 24px 32px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ═══ Top Bar ═══ */
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  min-height: 48px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-title-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.topbar-left h1 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  background: linear-gradient(180deg, #ffffff 0%, #cbd5e1 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pulse-beacon-mini {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary);
  animation: pulseBeaconMini 2s infinite ease-in-out;
}

@keyframes pulseBeaconMini {
  0%, 100% { transform: scale(1); opacity: 0.85; box-shadow: 0 0 0 0 rgba(244, 63, 94, 0.5); }
  50% { transform: scale(1.25); opacity: 1; box-shadow: 0 0 0 7px rgba(244, 63, 94, 0); }
}

.topbar-center {
  display: flex;
  justify-content: center;
  align-items: center;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* ═══ Fan-Out Action Deck ═══ */
.button-box {
  position: relative;
  width: 10.5rem;
  height: 3.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.button-box .button {
  width: 2.6rem;
  height: 2.6rem;
  position: absolute;
  left: 50%;
  top: 50%;
  cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), 
              opacity 0.25s ease, 
              box-shadow 0.25s ease,
              border-color 0.25s ease;
  opacity: 0.92;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
  user-select: none;
}

[data-theme="dark"] .button-box .button {
  border: 1.5px solid rgba(255, 255, 255, 0.16);
}

.button-box .button .icon {
  width: 20px;
  height: 20px;
  opacity: 0.92;
  transition: all 0.25s ease;
  pointer-events: none;
}

/* Button 1 (Left / Quick Sample) */
.button-box .button:nth-child(4) {
  transform: translate(-50%, -50%) rotate(24deg) scale(0.94);
  z-index: 25;
  background: linear-gradient(135deg, #f43f5e 0%, #be123c 100%);
}

/* Button 2 (Right / 1930 Helpline) */
.button-box .button:nth-child(5) {
  transform: translate(-50%, -50%) rotate(-24deg) scale(0.94);
  z-index: 30;
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

/* Button 3 (Center / Threat Radar) */
.button-box .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(0deg) scale(1);
  z-index: 35;
  background: linear-gradient(135deg, #e11d48 0%, #881337 100%);
}
.button-box .button:nth-child(6) .icon {
  animation: radarWheel 4.5s linear infinite;
}

/* Invisible Touch Zones */
.button-box .touch {
  position: relative;
  z-index: 50;
  height: 100%;
  flex: 1;
  cursor: pointer;
}

/* Hover on whole box expands fan */
.button-box:hover .button:nth-child(4) {
  transform: translate(-155%, -50%) rotate(-12deg) scale(1.02);
  opacity: 0.95;
}
.button-box:hover .button:nth-child(5) {
  transform: translate(55%, -50%) rotate(12deg) scale(1.02);
  opacity: 0.95;
}
.button-box:hover .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(0deg) scale(1.08);
  opacity: 1;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.45);
}

/* Direct Hover on Left Zone */
.button-box .touch.left:hover ~ .button:nth-child(4) {
  opacity: 1;
  transform: translate(-160%, -50%) rotate(0deg) scale(1.15);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.6);
  z-index: 45;
}
.button-box .touch.left:active ~ .button:nth-child(4) {
  transform: translate(-160%, -50%) rotate(0deg) scale(0.96);
}

/* Direct Hover on Right Zone */
.button-box .touch.right:hover ~ .button:nth-child(5) {
  opacity: 1;
  transform: translate(60%, -50%) rotate(0deg) scale(1.15);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.6);
  z-index: 45;
}
.button-box .touch.right:active ~ .button:nth-child(5) {
  transform: translate(60%, -50%) rotate(0deg) scale(0.96);
}

/* Direct Hover on Middle Zone */
.button-box .touch.middle:hover ~ .button:nth-child(6) {
  opacity: 1;
  transform: translate(-50%, -50%) rotate(0deg) scale(1.18);
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.65);
  z-index: 45;
}
.button-box .touch.middle:hover ~ .button:nth-child(6) .icon {
  animation: radarWheel 2s linear infinite;
}
.button-box .touch.middle:active ~ .button:nth-child(6) {
  transform: translate(-50%, -50%) rotate(0deg) scale(0.96);
}

@keyframes radarWheel {
  to {
    transform: rotate(360deg);
  }
}

.status-pill {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fda4af;
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.25);
  padding: 6px 14px;
  border-radius: 99px;
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 8px #f43f5e;
}

/* ═════════════════════════════════════════════════
   Uiverse 3D Glass Morph Card Architecture
   ═════════════════════════════════════════════════ */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  flex: 1;
}

.uiverse-parent {
  perspective: 1200px;
  width: 100%;
  display: flex;
}

.card-presets-parent {
  grid-column: 1;
}

.card-input-parent {
  grid-column: 2;
}

.card-verdict-parent {
  grid-column: 1 / span 2;
}

.uiverse-card {
  width: 100%;
  height: 100%;
  min-height: 220px;
  position: relative;
  border-radius: 20px;
  background: radial-gradient(1000px 500px at 0% 0%, rgba(244, 63, 94, 0.06) 0%, rgba(18, 20, 29, 0.85) 60%, rgba(10, 12, 18, 0.95) 100%);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform-style: preserve-3d;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.75), 0 0 0 1px rgba(255, 255, 255, 0.07), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: 52px;
}

.uiverse-card .glass {
  transform-style: preserve-3d;
  position: absolute;
  inset: 1px;
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0.005) 100%);
  transform: translate3d(0px, 0px, 15px);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  border-right: 1px solid rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  transition: all 0.4s ease-in-out;
  pointer-events: none;
}

.uiverse-card .content {
  padding: 24px 24px 14px 24px;
  position: relative;
  z-index: 10;
  flex: 1;
}

.uiverse-card .content .title {
  display: block;
  font-family: var(--font-display);
  color: #f8fafc;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.03em;
  margin-bottom: 5px;
  max-width: 100%;
}

.uiverse-card .content .text {
  display: block;
  color: #d1d5db;
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 10px;
  max-width: calc(100% - 100px);
}


/* Card 3D Hover Expansion — only on non-interactive cards */
.uiverse-parent:hover .uiverse-card {
  transform: translateY(-2px);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.85), 0 0 20px rgba(239, 68, 68, 0.15);
}

.uiverse-parent:hover .uiverse-card .bottom .social-buttons-container .social-button {
  transform: translate3d(0, 0, 50px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}


/* Bottom 3D Action Bar */
.uiverse-card .bottom {
  padding: 8px 20px;
  transform-style: preserve-3d;
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transform: translate3d(0, 0, 30px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.uiverse-card .bottom .view-more {
  display: flex;
  align-items: center;
  gap: 4px;
  justify-content: flex-end;
  transition: all 0.2s ease-in-out;
  cursor: pointer;
}

.uiverse-card .bottom .view-more:hover {
  transform: translate3d(0, 0, 10px);
}

.uiverse-card .bottom .view-more .view-more-button {
  background: none;
  border: none;
  color: #ff4d4f;
  font-weight: 800;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
}

.uiverse-card .bottom .view-more .svg-arrow {
  width: 14px;
  height: 14px;
  color: #ff4d4f;
  stroke-width: 2.5px;
}

.uiverse-card .bottom .social-buttons-container {
  display: flex;
  gap: 10px;
  transform-style: preserve-3d;
}

.uiverse-card .bottom .social-buttons-container .social-button {
  width: 32px;
  height: 32px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: grid;
  place-content: center;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
  user-select: none;
}

.uiverse-card .bottom .social-buttons-container .social-button .social-icon {
  width: 15px;
  height: 15px;
  color: #ff7875;
  transition: color 0.25s ease;
}

.uiverse-card .bottom .social-buttons-container .social-button:hover {
  background: #ff4d4f;
  border-color: #ff4d4f;
  box-shadow: 0 0 16px rgba(255, 77, 79, 0.6);
}

.uiverse-card .bottom .social-buttons-container .social-button:hover .social-icon {
  color: #ffffff;
}

.uiverse-card .bottom .social-buttons-container .social-button:active {
  transform: scale(0.9);
}

/* ════ Color Variations (Red / Crimson / Scarlet Palette) ════ */

/* ════ Color Variations (Sophisticated Cyber Defense Palette) ════ */

/* Amber Theme (Presets Card) */
.card-presets-3d {
  background: radial-gradient(800px circle at 0% 0%, rgba(245, 158, 11, 0.08) 0%, rgba(18, 20, 29, 0.85) 60%, rgba(10, 12, 18, 0.96) 100%);
}
.card-presets-3d .content .title {
  color: #fbbf24;
  text-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.card-presets-3d .bottom .view-more .view-more-button,
.card-presets-3d .bottom .view-more .svg-arrow {
  color: #fbbf24;
}

/* Rose-Crimson Theme (Input Card) */
.card-input-3d {
  background: radial-gradient(800px circle at 100% 0%, rgba(244, 63, 94, 0.08) 0%, rgba(18, 20, 29, 0.85) 60%, rgba(10, 12, 18, 0.96) 100%);
}
.card-input-3d .content .title {
  color: #fb7185;
  text-shadow: 0 0 20px rgba(244, 63, 94, 0.3);
}

/* Deep Ruby Theme (Verdict Card) */
.card-verdict-3d {
  background: radial-gradient(1200px circle at 50% 0%, rgba(225, 29, 72, 0.08) 0%, rgba(18, 20, 29, 0.85) 60%, rgba(10, 12, 18, 0.96) 100%);
}
.card-verdict-3d .content .title {
  color: #fda4af;
  text-shadow: 0 0 20px rgba(225, 29, 72, 0.3);
}

.card-verdict-3d .bottom .view-more .view-more-button,
.card-verdict-3d .bottom .view-more .svg-arrow {
  color: #fda4af;
}

.btn-copy-dossier-3d {
  padding: 0.7em 1.4em;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  background-color: var(--primary);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.35);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.25s ease;
}
.btn-copy-dossier-3d:hover {
  background-color: var(--primary-hover);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.5);
  transform: translateY(-1px);
}

.card-action-btns {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
}

.mt-4 {
  margin-top: 14px;
}

.text-red {
  color: #f43f5e !important;
}

.text-green {
  color: #10b981 !important;
}

.text-amber {
  color: #f59e0b !important;
}

.text-cyan {
  color: #06b6d4 !important;
}

.upload-zone {
  border: 1.5px dashed rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 18px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  background: rgba(10, 12, 18, 0.7);
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--primary);
  background: rgba(244, 63, 94, 0.05);
  box-shadow: 0 0 16px rgba(244, 63, 94, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.2);
}
.upload-content { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.upload-icon { width: 24px; height: 24px; color: #94a3b8; transition: color 0.2s ease; }
.upload-zone:hover .upload-icon { color: var(--primary); }
.upload-content p { font-family: var(--font-sans); color: #e2e8f0; font-size: 0.84rem; font-weight: 600; }
.upload-content p span { color: var(--primary); font-weight: 700; }
.upload-hint { font-family: var(--font-mono); font-size: 0.72rem !important; color: #64748b !important; font-weight: 500; }

.upload-preview { position: relative; display: flex; justify-content: center; height: 100px; }
.upload-preview img { max-height: 100%; border-radius: 8px; border: 1px solid var(--border); }
.btn-remove-image {
  position: absolute; top: -6px; right: -6px;
  background: var(--red); color: #ffffff; border: none;
  width: 22px; height: 22px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.btn-remove-image i { width: 12px; height: 12px; }

/* Divider */
.divider {
  display: flex; align-items: center; color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; margin: 14px 0;
}
.divider::before, .divider::after { content: ''; flex: 1; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.divider span { padding: 0 12px; }

/* Textarea */
.textarea-wrapper { position: relative; flex: 1; display: flex; flex-direction: column; }

textarea {
  width: 100%; flex: 1;
  background: rgba(10, 12, 18, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  line-height: 1.6;
  resize: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
}
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15), inset 0 2px 4px rgba(0, 0, 0, 0.3);
}
textarea::placeholder { color: #64748b; }

.char-count {
  position: absolute; bottom: 10px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.72rem; color: #94a3b8; font-weight: 500;
}

/* ═════════════════════════════════════════════════
   Requested Kinetic Skew-Slash Button Schema (.btn)
   ═════════════════════════════════════════════════ */
.btn {
  padding: 0.95em 2em;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-family: var(--font-display);
  font-size: 14px;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 12px;
  background-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  user-select: none;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.btn:before {
  content: "";
  position: absolute;
  width: 100px;
  height: 120%;
  background-color: var(--primary-deep);
  top: 50%;
  transform: skewX(30deg) translate(-150%, -50%);
  transition: all 0.5s;
  pointer-events: none;
  z-index: 1;
}

.btn:hover {
  background-color: var(--primary-hover);
  color: #ffffff;
  box-shadow: 0 0 24px rgba(244, 63, 94, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.btn:hover::before {
  transform: skewX(30deg) translate(150%, -50%);
  transition-delay: 0.1s;
}

.btn:active {
  transform: scale(0.96);
}

.btn .btn-text {
  position: relative;
  z-index: 2;
  font-weight: 700;
}

/* Variant: Primary Scan Button */
.btn-scan-main {
  flex: 1;
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 50%, #be123c 100%);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 8px 20px rgba(244, 63, 94, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-scan-main:before {
  background-color: #881337;
}
.btn-scan-main:hover {
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 50%, #e11d48 100%);
  box-shadow: 0 0 28px rgba(244, 63, 94, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Variant: Secondary Clear Button */
.btn-clear-main {
  background: linear-gradient(135deg, #1c1f2b 0%, #12141c 100%);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  padding: 0.95em 1.6em;
}
.btn-clear-main:before {
  background-color: #334155;
}
.btn-clear-main:hover {
  background: linear-gradient(135deg, #334155 0%, #1e293b 100%);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ═════════════════════════════════════════════════
   High-Contrast Quick Test Preset Badges
   ═════════════════════════════════════════════════ */
.card-presets {
  justify-content: center;
  background: #111217;
  border: 1px solid #282a38;
}

.presets-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn-preset {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 100px;
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  user-select: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
}

/* Scam Presets */
.btn-preset.scam {
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}
.btn-preset.scam:hover {
  background: rgba(244, 63, 94, 0.25);
  border-color: #f43f5e;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.4);
  transform: translateY(-2px);
}

/* Safe Presets */
.btn-preset.safe {
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}
.btn-preset.safe:hover {
  background: rgba(16, 185, 129, 0.25);
  border-color: #10b981;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.4);
  transform: translateY(-2px);
}

.btn-preset:active {
  transform: scale(0.94);
}

/* Action Container */
.card-action {
  flex-direction: row;
  align-items: stretch;
  gap: 12px;
  padding: 16px 24px;
}

/* ═══ Verdict Card ═══ */
.card-verdict {
  grid-column: 1 / -1;
  min-height: 200px;
}

/* Empty */
.empty-state {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  height: 100%; text-align: center; gap: 10px;
  padding: 30px 20px;
}
.empty-icon { width: 44px; height: 44px; color: var(--text-dim); opacity: 0.35; }
.empty-state h3 { font-family: var(--font-display); color: var(--text-secondary); font-weight: 600; font-size: 1.05rem; letter-spacing: -0.01em; }
.empty-state p { font-family: var(--font-sans); color: var(--text-dim); font-size: 0.86rem; }

/* Loading */
.loading-state {
  display: flex; flex-direction: column; justify-content: center;
  height: 100%; gap: 20px; position: relative; overflow: hidden;
  padding: 24px;
}

.sweep-bar {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2.5px; background: linear-gradient(90deg, transparent 0%, var(--primary) 50%, transparent 100%);
  border-radius: 1px;
  animation: sweep 1.5s ease-in-out infinite;
}

@keyframes sweep {
  0% { left: -30%; right: 100%; }
  50% { left: 0%; right: 0%; }
  100% { left: 100%; right: -30%; }
}

.pipeline-steps { display: flex; flex-direction: column; gap: 12px; padding: 14px 0; }

.step {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--font-mono);
  font-size: 0.82rem; color: var(--text-dim); opacity: 0.45;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.step.active { color: var(--primary); opacity: 1; font-weight: 600; }
.step.done { color: var(--green); opacity: 1; }
.step span {
  width: 22px; height: 22px; display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.06); border-radius: 6px; font-size: 0.68rem; font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.step.active span { background: var(--coral-light); color: var(--primary); border-color: var(--primary); box-shadow: 0 0 10px rgba(244, 63, 94, 0.3); }
.step.done span { background: var(--green-light); color: var(--green); border-color: var(--green); }

/* Results */
.results-content {
  display: flex; flex-direction: column; gap: 16px;
  animation: fadeIn 0.3s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Verdict Banner */
.verdict-banner {
  display: flex; justify-content: space-between; align-items: center;
  padding: 22px 26px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
}

.verdict-banner.safe {
  background: radial-gradient(800px circle at left, rgba(16, 185, 129, 0.12) 0%, rgba(10, 15, 12, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.3);
}
.verdict-banner.safe h2 { color: var(--green); text-shadow: 0 0 20px rgba(16, 185, 129, 0.35); }
.verdict-banner.safe .risk-bar-fill { background: var(--green); box-shadow: 0 0 10px rgba(16, 185, 129, 0.5); }

.verdict-banner.suspicious {
  background: radial-gradient(800px circle at left, rgba(245, 158, 11, 0.12) 0%, rgba(18, 14, 10, 0.8) 100%);
  border-color: rgba(245, 158, 11, 0.3);
}
.verdict-banner.suspicious h2 { color: var(--orange); text-shadow: 0 0 20px rgba(245, 158, 11, 0.35); }
.verdict-banner.suspicious .risk-bar-fill { background: var(--orange); box-shadow: 0 0 10px rgba(245, 158, 11, 0.5); }

.verdict-banner.scam {
  background: radial-gradient(800px circle at left, rgba(244, 63, 94, 0.14) 0%, rgba(18, 10, 12, 0.8) 100%);
  border-color: rgba(244, 63, 94, 0.35);
}
.verdict-banner.scam h2 { color: var(--primary); text-shadow: 0 0 20px rgba(244, 63, 94, 0.4); }
.verdict-banner.scam .risk-bar-fill { background: var(--primary); box-shadow: 0 0 10px rgba(244, 63, 94, 0.5); }

.verdict-info h2 {
  font-family: var(--font-display);
  font-size: 2.8rem; font-weight: 800;
  letter-spacing: -0.03em; line-height: 1;
}
.verdict-info p {
  font-family: var(--font-sans);
  color: var(--text-secondary);
  font-size: 0.92rem;
  margin-top: 6px;
}

.risk-score { text-align: right; width: 110px; }
.risk-label { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: var(--text-dim); letter-spacing: 0.08em; text-transform: uppercase; }
.risk-value { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; line-height: 1.1; margin-bottom: 6px; }
.risk-bar-container { height: 5px; background: rgba(255, 255, 255, 0.08); border-radius: 99px; overflow: hidden; }
.risk-bar-fill { height: 100%; width: 0%; transition: width 0.8s cubic-bezier(0.16,1,0.3,1); border-radius: 99px; }

/* Result Cards */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.result-card {
  background: rgba(10, 12, 18, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex; flex-direction: column;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.result-card.full-width { grid-column: 1 / -1; }

.card-header {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 8px;
}
.card-header i { width: 15px; height: 15px; color: var(--text-dim); }
.card-header h3 { font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; color: var(--text-secondary); letter-spacing: 0.02em; }

.card-body { padding: 16px; font-family: var(--font-sans); font-size: 0.88rem; color: var(--text-secondary); line-height: 1.6; }
.mono-text { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.7; }

/* Threats */
.threat-highlight {
  background: rgba(244, 63, 94, 0.12); color: var(--primary);
  border-bottom: 1.5px solid var(--primary); border-radius: 3px;
  padding: 0 4px; cursor: help; font-weight: 600;
}
.threat-highlight:hover { background: rgba(244, 63, 94, 0.22); }

/* Entities */
.entity-group { margin-bottom: 10px; }
.entity-group:last-child { margin-bottom: 0; }
.entity-label { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; color: var(--text-dim); margin-bottom: 6px; letter-spacing: 0.06em; text-transform: uppercase; }
.entity-item {
  background: rgba(255, 255, 255, 0.05); padding: 4px 10px; border-radius: 6px;
  font-family: var(--font-mono); font-size: 0.78rem;
  display: inline-block; margin: 0 4px 4px 0;
  border: 1px solid var(--border); color: var(--text);
}
.no-entities { color: var(--text-dim); font-size: 0.85rem; }

/* Spans */
.span-item { margin-bottom: 10px; padding-bottom: 10px; border-bottom: 1px solid var(--border); }
.span-item:last-child { margin-bottom: 0; padding-bottom: 0; border-bottom: none; }
.span-text { font-family: var(--font-mono); font-weight: 600; color: var(--primary); background: rgba(244, 63, 94, 0.08); padding: 3px 8px; border-radius: 4px; font-size: 0.82rem; border: 1px solid rgba(244, 63, 94, 0.2); }
.span-reason { display: block; font-family: var(--font-sans); font-size: 0.85rem; color: var(--text-secondary); margin-top: 6px; }

/* Dossier */
.dossier-card { border-color: rgba(244, 63, 94, 0.2) !important; background: rgba(244, 63, 94, 0.04) !important; }
.dossier-header { justify-content: flex-start; }
.dossier-header h3 { flex: 1; }
.dossier-header i:first-child { color: var(--primary); }

.btn-copy-dossier {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(244, 63, 94, 0.3); color: var(--primary);
  border-radius: 8px; padding: 6px 12px;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s;
}
.btn-copy-dossier i { width: 13px; height: 13px; }
.btn-copy-dossier:hover { background: rgba(244, 63, 94, 0.15); }
.btn-copy-dossier.copied { border-color: rgba(16, 185, 129, 0.4); color: var(--green); background: rgba(16, 185, 129, 0.1); }

.dossier-text {
  font-family: var(--font-mono); font-size: 0.74rem; line-height: 1.55;
  color: var(--text); background: rgba(5, 7, 10, 0.9); border: 1px solid var(--border);
  border-radius: 8px; padding: 14px; white-space: pre-wrap; word-break: break-all;
  margin-bottom: 10px; max-height: 260px; overflow-y: auto;
}

.dossier-hint {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--font-sans); font-size: 0.82rem; color: var(--text-secondary);
  padding: 8px 12px; background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--border); border-radius: 8px;
}
.dossier-hint i { width: 14px; height: 14px; color: var(--green); flex-shrink: 0; }
.dossier-hint a { color: var(--blue); text-decoration: none; }

/* ═══ National Threat Radar Section ═══ */
.carousel-heading {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-subheading {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-filter-group {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(15, 17, 24, 0.85);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--border);
  backdrop-filter: blur(10px);
}

.carousel-filter-btn {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.carousel-filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.carousel-filter-btn.active {
  background: rgba(244, 63, 94, 0.18);
  border-color: rgba(244, 63, 94, 0.4);
  color: #ffffff;
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.2);
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-nav-btn:hover {
  background: var(--coral-light);
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
  transform: translateY(-1px);
}

.carousel-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.skewed-card {
  width: 350px;
  flex-shrink: 0;
  background: rgba(15, 18, 26, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  transform-style: preserve-3d;
  user-select: none;
}

.skewed-card:hover {
  border-color: rgba(244, 63, 94, 0.4);
  box-shadow: 0 24px 48px -10px rgba(0, 0, 0, 0.9), 0 0 24px rgba(244, 63, 94, 0.15);
}

.mac-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  background: rgba(255, 255, 255, 0.02);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
}
.dossier-hint a:hover { text-decoration: underline; }

/* ═══ 3D CASCADING CAROUSEL — MACOS CARDS & COVERFLOW ═══ */
.skewed-carousel-section {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.skewed-carousel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 6px;
}

.carousel-title-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pulse-beacon {
  position: relative;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--coral);
  box-shadow: 0 0 12px var(--coral);
}
.pulse-beacon::after {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(255, 99, 71, 0.45);
  animation: beaconPulse 1.8s infinite cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes beaconPulse {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.4); opacity: 0; }
}

.carousel-heading {
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.carousel-subheading {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-dim);
  font-family: ui-monospace, monospace;
}

.carousel-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.carousel-filter-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-input);
  padding: 4px;
  border-radius: 99px;
  border: 1px solid var(--border);
}

[data-theme="dark"] .carousel-filter-group {
  background: rgba(255,255,255,0.03);
  border-color: rgba(255,255,255,0.08);
}

.carousel-filter-btn {
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 14px;
  border-radius: 100px;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
  user-select: none;
}

.carousel-filter-btn:hover {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  transform: translateY(-1px);
}

.carousel-filter-btn.active {
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.22), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.carousel-filter-btn:active {
  transform: scale(0.93);
}

.carousel-nav-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.45s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-nav-btn:hover {
  border-radius: 10px;
  background: var(--coral-light);
  color: var(--coral);
  border-color: var(--coral);
  box-shadow: 0 0 14px rgba(255, 99, 71, 0.4);
  transform: translateY(-1px);
}

.carousel-nav-btn:active {
  transform: scale(0.92);
}

.carousel-nav-btn i {
  width: 15px;
  height: 15px;
}

.carousel-live-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: ui-monospace, monospace;
}

.carousel-live-tag i {
  color: var(--green);
  width: 14px;
  height: 14px;
}

/* 3D Viewport with generous top/bottom padding to prevent clipping */
.skewed-viewport {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 44px 10px 54px 10px;
  perspective: 1100px;
  perspective-origin: 50% 50%;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  cursor: grab;
}

.skewed-viewport:active {
  cursor: grabbing;
}

.skewed-track {
  display: flex;
  gap: 24px;
  width: max-content;
  transform-style: preserve-3d;
  will-change: transform;
}

/* ═══ macOS Style Card ═══ */
.skewed-card {
  width: 350px;
  flex-shrink: 0;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.05), 0 1px 3px rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.3s, border-color 0.3s;
  position: relative;
  overflow: hidden;
  transform-origin: center center;
  transform-style: preserve-3d;
  user-select: none;
}

[data-theme="dark"] .skewed-card {
  background: #141417;
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 12px 36px rgba(0,0,0,0.7);
}

.skewed-card:hover {
  box-shadow: 0 18px 46px rgba(0,0,0,0.14), 0 0 0 1px rgba(255, 99, 71, 0.35);
}

[data-theme="dark"] .skewed-card:hover {
  border-color: rgba(255,255,255,0.22);
  box-shadow: 0 22px 54px rgba(0,0,0,0.9), 0 0 28px rgba(255, 99, 71, 0.12);
}

/* macOS Window Bar */
.mac-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 15px;
  background: rgba(0,0,0,0.02);
  border-bottom: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, monospace;
}

[data-theme="dark"] .mac-header-bar {
  background: rgba(255,255,255,0.025);
  border-bottom-color: rgba(255,255,255,0.06);
}

.mac-traffic-lights {
  display: flex;
  align-items: center;
  gap: 6.5px;
}

.mac-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.mac-dot.red {
  background: #ff5f56;
  border: 1px solid #e0443e;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}
.mac-dot.yellow {
  background: #ffbd2e;
  border: 1px solid #dea123;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}
.mac-dot.green {
  background: #27c93f;
  border: 1px solid #1aab29;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.4);
}

.mac-window-id {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--text-dim);
  letter-spacing: 0.06em;
}

.mac-status-chip {
  font-size: 0.6rem;
  font-weight: 800;
  color: var(--coral);
  background: var(--coral-light);
  padding: 2.5px 8px;
  border-radius: 6px;
  letter-spacing: 0.05em;
}

/* Card Content Inner */
.card-inner-content {
  padding: 16px 18px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.card-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 5.5px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}

.badge-tag i {
  width: 12px;
  height: 12px;
}

.badge-red { background: var(--red-light); color: var(--red); }
.badge-green { background: var(--green-light); color: var(--green); }
.badge-orange { background: var(--bg-warn); color: var(--orange); }
.badge-blue { background: rgba(0, 122, 255, 0.12); color: var(--blue); }
.badge-purple { background: rgba(168, 85, 247, 0.12); color: #a855f7; }
.badge-cyan { background: rgba(6, 182, 212, 0.12); color: #06b6d4; }

.card-region {
  font-size: 0.65rem;
  font-family: ui-monospace, monospace;
  color: var(--text-dim);
  font-weight: 600;
}

.card-heading {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin: 0;
}

.card-quote-box {
  background: rgba(0,0,0,0.03);
  border-left: 3px solid var(--coral);
  padding: 8px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
  font-style: italic;
}

[data-theme="dark"] .card-quote-box {
  background: rgba(255,255,255,0.03);
}

.card-shield-tip {
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 0.77rem;
  color: var(--text-secondary);
  line-height: 1.42;
}

[data-theme="dark"] .card-shield-tip {
  background: #0d0d10;
  border-color: rgba(255,255,255,0.06);
}

.card-shield-tip strong {
  color: var(--text);
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 0.76rem;
}

[data-theme="dark"] .card-footer-row {
  border-top-color: rgba(255,255,255,0.06);
}

.card-action-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--coral);
  text-decoration: none;
  font-weight: 700;
  transition: gap 0.15s;
}

.card-action-link:hover {
  text-decoration: underline;
  gap: 7px;
}

.card-action-link i {
  width: 12px;
  height: 12px;
}

.card-status-verified {
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Tablet (≤1024px)
   ═══════════════════════════════════════════════ */
@media (max-width: 1024px) {
  .main-content {
    padding: 20px;
  }

  .bento-grid {
    gap: 16px;
  }

  .uiverse-card .content {
    padding: 20px 18px 12px 18px;
  }

  .uiverse-card .content .text {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Mobile (≤768px)
   ═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* ─── Hide sidebar, full-width layout ─── */
  .sidebar {
    display: none;
  }

  .main-content {
    padding: 16px 12px;
    gap: 16px;
  }

  /* ─── Topbar compact ─── */
  .topbar {
    flex-wrap: wrap;
    gap: 10px;
  }

  .brand-title {
    font-size: 1.1rem !important;
  }

  .brand-subtitle {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: center;
  }

  /* ─── Bento grid → single column stack ─── */
  .bento-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .card-presets-parent,
  .card-input-parent,
  .card-verdict-parent {
    grid-column: 1;
  }

  /* ─── Cards shrink gracefully ─── */
  .uiverse-card {
    min-height: auto;
    padding-bottom: 40px;
    border-radius: 16px;
  }

  .uiverse-card .content {
    padding: 16px 14px 10px 14px;
  }

  .uiverse-card .content .title {
    font-size: 0.9rem;
  }

  .uiverse-card .content .text {
    font-size: 0.78rem;
    max-width: 100%;
  }

  /* Disable 3D on mobile for performance + touch */
  .uiverse-parent {
    perspective: none;
  }

  .uiverse-card {
    transform-style: flat;
  }

  .uiverse-card .glass {
    display: none;
  }

  .uiverse-parent:hover .uiverse-card {
    transform: none;
  }

  /* ─── Concentric lens decorations: hide on mobile ─── */
  .logo {
    display: none;
  }

  /* ─── Preset pills: scroll horizontally ─── */
  .presets-grid {
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .presets-grid::-webkit-scrollbar {
    display: none;
  }

  .btn-preset {
    flex-shrink: 0;
    font-size: 0.78rem;
    padding: 8px 14px;
  }

  /* ─── Buttons: full width, touch-friendly ─── */
  .card-action-btns {
    flex-direction: column;
    gap: 10px;
  }

  .card-action-btns .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  /* ─── Upload zone ─── */
  .upload-zone {
    min-height: 100px;
  }

  /* ─── Textarea ─── */
  .textarea-wrapper textarea {
    font-size: 0.85rem;
    rows: 3;
  }

  /* ─── Verdict banner ─── */
  .verdict-banner {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    padding: 16px;
  }

  .verdict-info h2 {
    font-size: 1.8rem;
  }

  .risk-score {
    text-align: center;
    width: 100%;
  }

  .risk-value {
    font-size: 1.5rem;
  }

  /* ─── Results grid → single column ─── */
  .results-grid {
    grid-template-columns: 1fr;
  }

  /* ─── Dossier ─── */
  .dossier-text {
    font-size: 0.75rem;
    max-height: 200px;
  }

  .dossier-header {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* ─── Bottom 3D action bar ─── */
  .uiverse-card .bottom {
    position: relative;
    bottom: auto;
    left: auto;
    right: auto;
    padding: 10px 14px;
    transform: none;
  }

  /* ─── Kinetic button schema: tone down for mobile ─── */
  .btn::before {
    display: none;
  }

  /* ─── Status pill ─── */
  .status-pill {
    font-size: 0.65rem;
    padding: 5px 10px;
  }

  /* ─── Command deck / button-box: simplify ─── */
  .button-box {
    transform: scale(0.75);
  }

  /* ─── I4C Threat Dossier cards ─── */
  .skewed-viewport {
    padding: 16px 0 20px 0;
  }

  .skewed-card {
    width: 260px;
  }

  .carousel-filter-group {
    overflow-x: auto;
    max-width: 100%;
    flex-wrap: nowrap;
    scrollbar-width: none;
  }

  .carousel-filter-group::-webkit-scrollbar {
    display: none;
  }

  /* ─── Highlighted spans (threat markers) ─── */
  .threat-highlight {
    font-size: 0.8rem;
  }

  /* ─── Pipeline steps ─── */
  .pipeline-steps {
    flex-direction: column;
    gap: 8px;
  }

  .step {
    font-size: 0.75rem;
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE — Small phone (≤400px)
   ═══════════════════════════════════════════════ */
@media (max-width: 400px) {
  .main-content {
    padding: 10px 8px;
  }

  .uiverse-card .content {
    padding: 12px 10px 8px 10px;
  }

  .brand-title {
    font-size: 0.95rem !important;
  }

  .verdict-info h2 {
    font-size: 1.5rem;
  }

  .btn-preset {
    font-size: 0.72rem;
    padding: 7px 12px;
  }

  .skewed-card {
    width: 220px;
  }
}

