/*
 * ═══════════════════════════════════════════════════════════════
 *  OUTLOOK READER — HIRAEL CREATIVE STUDIO DESIGN SYSTEM
 *  Editorial luxury dark aesthetic: Jet Black, Warm Cream & Gold
 *  Instrument Serif + Inter + JetBrains Mono
 * ═══════════════════════════════════════════════════════════════
 */

:root {
  /* Hirael Design System Palette */
  --cs-bg:           #070707;
  --cs-bg-deep:      #000000;
  --cs-surface:      #101010;
  --cs-card:         #141414;
  --cs-elevated:     #1b1b1b;
  --cs-input:        #0c0c0c;

  /* Typography & Accent Tones */
  --cs-cream:        #e1e0cc;
  --cs-ink:          #dedbc8;
  --cs-muted:        #8b8a80;
  --cs-subtle:       #4c4c47;
  --cs-gold:         #c4a278;

  /* Health & Status Indicators */
  --cs-live:         #20e7b7;
  --cs-live-bg:      rgba(32, 231, 183, 0.12);
  --cs-die:          #ff5a6a;
  --cs-die-bg:       rgba(255, 90, 106, 0.12);
  --cs-unknown:      #ffb454;
  --cs-unknown-bg:   rgba(255, 180, 84, 0.12);

  /* Borders & Glows */
  --cs-border:       rgba(222, 219, 200, 0.12);
  --cs-border-glow:  rgba(222, 219, 200, 0.28);
  --cs-shadow-card:  0 24px 64px rgba(0, 0, 0, 0.7);

  /* Fonts */
  --font-serif:      'Instrument Serif', Georgia, serif;
  --font-sans:       'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:       'JetBrains Mono', 'Cascadia Code', monospace;

  /* Radii */
  --radius-sm:       8px;
  --radius-md:       14px;
  --radius-lg:       24px;
  --radius-pill:     9999px;

  /* Transitions */
  --ease-studio:     cubic-bezier(0.16, 1, 0.3, 1);
  --transition:      all 0.25s var(--ease-studio);
}

/* ─── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 15px;
  scroll-behavior: smooth;
  background-color: var(--cs-bg);
  color: var(--cs-ink);
}

body {
  font-family: var(--font-sans);
  background-color: var(--cs-bg);
  color: var(--cs-ink);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* ─── Hirael Ambient Background & Film Grain ───────────────── */
.ambient-glow {
  position: fixed;
  inset: -20%;
  pointer-events: none;
  z-index: 0;
  background: 
    radial-gradient(45% 45% at 28% 25%, rgba(222, 219, 200, 0.10), transparent 70%),
    radial-gradient(42% 42% at 75% 55%, rgba(196, 162, 120, 0.14), transparent 72%),
    radial-gradient(70% 55% at 50% 110%, rgba(36, 30, 22, 0.85), transparent 72%),
    #070707;
  filter: blur(40px);
}

.film-grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.38;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,%3Csvg%20xmlns%3D'http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg'%20width%3D'160'%20height%3D'160'%3E%3Cfilter%20id%3D'n'%3E%3CfeTurbulence%20type%3D'fractalNoise'%20baseFrequency%3D'0.85'%20numOctaves%3D'3'%20stitchTiles%3D'stitch'%2F%3E%3CfeColorMatrix%20values%3D'0%200%200%200%201%200%200%200%200%201%200%200%200%200%201%200%200%200%200.55%200'%2F%3E%3C%2Ffilter%3E%3Crect%20width%3D'100%25'%20height%3D'100%25'%20filter%3D'url(%23n)'%2F%3E%3C%2Fsvg%3E");
  background-size: 160px 160px;
}

/* ─── Floating Capsule Navigation ──────────────────────────── */
.header-container {
  position: fixed;
  top: 1.5rem;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  z-index: 100;
  padding: 0 1rem;
}

.capsule-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(12, 12, 12, 0.85);
  border: 1px solid var(--cs-border);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 0.45rem 0.75rem 0.45rem 1.25rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.6);
  max-width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 3px;
  user-select: none;
}

.brand-text {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--cs-cream);
}

.brand-serif {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--cs-cream);
  margin-left: 1px;
}

.brand-dot {
  color: var(--cs-gold);
  font-size: 1rem;
  line-height: 0;
}

.nav-divider {
  width: 1px;
  height: 18px;
  background: var(--cs-border);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  overflow-x: auto;
  scrollbar-width: none;
}
.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
  background: transparent;
  border: none;
  color: var(--cs-muted);
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link:hover {
  color: var(--cs-cream);
  background: rgba(222, 219, 200, 0.05);
}

.nav-link.active {
  color: #000;
  background: var(--cs-ink);
  font-weight: 600;
}

.nav-sub {
  font-size: 0.65rem;
  color: var(--cs-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
}
.nav-link.active .nav-sub {
  color: #554800;
}

/* ─── Main Wrapper ─────────────────────────────────────────── */
.main-wrapper {
  position: relative;
  z-index: 10;
  max-width: 1080px;
  width: 100%;
  margin: 0 auto;
  padding: 7.5rem 1.5rem 5rem;
}

/* ─── Hero Section ─────────────────────────────────────────── */
.hero-section {
  text-align: center;
  margin-bottom: 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  background: rgba(222, 219, 200, 0.06);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cs-cream);
  margin-bottom: 1.5rem;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cs-gold);
  box-shadow: 0 0 8px var(--cs-gold);
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--cs-cream);
  max-width: 800px;
  margin-bottom: 1.25rem;
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  color: var(--cs-cream);
}

.hero-subtitle {
  color: var(--cs-muted);
  font-size: 1rem;
  max-width: 580px;
  line-height: 1.6;
}

/* ─── Bento Card (Hirael Signature Container) ──────────────── */
.bento-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--cs-shadow-card);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--cs-border-glow);
}

.card-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-tag {
  display: flex;
  align-items: center;
  gap: 10px;
}

.tag-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cs-gold);
  background: rgba(196, 162, 120, 0.12);
  padding: 2px 8px;
  border-radius: 4px;
}

.tag-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--cs-cream);
  letter-spacing: -0.01em;
}

.card-instruction {
  color: var(--cs-muted);
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.card-instruction code {
  font-family: var(--font-mono);
  background: rgba(222, 219, 200, 0.08);
  color: var(--cs-cream);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.82rem;
}

/* ─── Mode Switch Group (Pill Buttons) ─────────────────────── */
.mode-switch-group {
  display: flex;
  background: var(--cs-bg-deep);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 2px;
}

.mode-pill {
  font-size: 0.75rem;
  font-weight: 500;
  padding: 4px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  user-select: none;
  color: var(--cs-muted);
  transition: var(--transition);
}

.mode-pill input {
  display: none;
}

.mode-pill.active {
  background: var(--cs-elevated);
  color: var(--cs-cream);
  border: 1px solid rgba(222, 219, 200, 0.18);
}

/* ─── Textarea & Input Styling ─────────────────────────────── */
.textarea-wrapper {
  position: relative;
  width: 100%;
}

.editor-textarea {
  width: 100%;
  min-height: 200px;
  max-height: 480px;
  background: var(--cs-input);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cs-cream);
  line-height: 1.7;
  resize: vertical;
  outline: none;
  transition: var(--transition);
}

.editor-textarea:focus {
  border-color: var(--cs-gold);
  box-shadow: 0 0 0 2px rgba(196, 162, 120, 0.15);
}

.editor-textarea::placeholder {
  color: var(--cs-subtle);
  font-style: italic;
}

/* ─── Card Bottom Controls ─────────────────────────────────── */
.card-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
}

.stats-and-timer {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.stat-chip {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(222, 219, 200, 0.06);
  border: 1px solid var(--cs-border);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  color: var(--cs-muted);
}

/* ─── Auto Refresh Toggle & Controls ───────────────────────── */
.auto-refresh-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.switch-toggle {
  position: relative;
  display: inline-block;
  width: 34px;
  height: 18px;
  cursor: pointer;
}

.switch-toggle input { opacity: 0; width: 0; height: 0; }

.switch-slider {
  position: absolute;
  inset: 0;
  background: rgba(222, 219, 200, 0.1);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-pill);
  transition: var(--transition);
}

.switch-slider::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
  background: var(--cs-muted);
  border-radius: 50%;
  transition: var(--transition);
}

.switch-toggle input:checked + .switch-slider {
  background: var(--cs-live-bg);
  border-color: var(--cs-live);
}

.switch-toggle input:checked + .switch-slider::before {
  transform: translateX(16px);
  background: var(--cs-live);
  box-shadow: 0 0 8px var(--cs-live);
}

.refresh-label {
  font-size: 0.75rem;
  color: var(--cs-muted);
}

.refresh-select {
  background: var(--cs-input);
  border: 1px solid var(--cs-border);
  color: var(--cs-cream);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: 6px;
  outline: none;
  cursor: pointer;
}

.countdown-badge {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cs-live);
  font-weight: 600;
  animation: pulse 1s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* ─── Hirael Pill Buttons ──────────────────────────────────── */
.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.55rem 0.45rem 1.4rem;
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  outline: none;
  text-decoration: none;
}

.primary-btn {
  background: var(--cs-ink);
  color: #000;
}

.primary-btn:hover {
  background: #fff;
  gap: 0.85rem;
  transform: translateY(-1px);
}

.btn-circle-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #000;
  color: var(--cs-cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s var(--ease-studio);
}

.primary-btn:hover .btn-circle-icon {
  transform: scale(1.1);
}

.pill-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.outline-mini-btn {
  background: transparent;
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
  font-family: var(--font-sans);
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.outline-mini-btn:hover {
  color: var(--cs-cream);
  border-color: var(--cs-cream);
}

.pill-mini-btn {
  background: var(--cs-ink);
  color: #000;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: var(--transition);
}

.pill-mini-btn:hover {
  background: #fff;
}

.soft-badge {
  font-size: 0.72rem;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(222, 219, 200, 0.06);
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
}

/* ─── Status Banner ────────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--cs-elevated);
  border: 1px solid var(--cs-border);
  padding: 0.85rem 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.status-indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cs-gold);
}

.status-banner.success .status-indicator-dot { background: var(--cs-live); box-shadow: 0 0 8px var(--cs-live); }
.status-banner.error .status-indicator-dot { background: var(--cs-die); box-shadow: 0 0 8px var(--cs-die); }
.status-banner.loading .status-indicator-dot { background: var(--cs-gold); animation: pulse 0.8s infinite; }

/* ─── Inbox Results List ───────────────────────────────────── */
.results-grid {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.account-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
}

.account-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(0, 0, 0, 0.35);
  border-bottom: 1px solid var(--cs-border);
}

.account-email-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: var(--cs-cream);
}

.account-status-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.account-status-tag.ok {
  background: var(--cs-live-bg);
  color: var(--cs-live);
  border: 1px solid rgba(32, 231, 183, 0.3);
}

.account-status-tag.fail {
  background: var(--cs-die-bg);
  color: var(--cs-die);
  border: 1px solid rgba(255, 90, 106, 0.3);
}

.account-error-msg {
  padding: 1.25rem;
  color: var(--cs-die);
  font-size: 0.84rem;
  background: rgba(255, 90, 106, 0.04);
}

/* ─── Inbox Table ──────────────────────────────────────────── */
.inbox-table-responsive {
  width: 100%;
  overflow-x: auto;
}

.inbox-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.inbox-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--cs-muted);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--cs-border);
}

.inbox-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(222, 219, 200, 0.05);
  vertical-align: middle;
  color: var(--cs-ink);
}

.inbox-table tr:hover td {
  background: rgba(222, 219, 200, 0.02);
}

.cell-time {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--cs-muted);
  white-space: nowrap;
}

.cell-content strong {
  color: var(--cs-cream);
  font-weight: 500;
}

.preview-link {
  color: var(--cs-gold);
  text-decoration: none;
  font-size: 0.75rem;
  margin-left: 6px;
  font-weight: 600;
}
.preview-link:hover {
  text-decoration: underline;
}

/* ─── OTP Code Cell ────────────────────────────────────────── */
.otp-badge-cell {
  display: flex;
  align-items: center;
  gap: 6px;
}

.otp-code {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 700;
  background: rgba(196, 162, 120, 0.15);
  border: 1px solid rgba(196, 162, 120, 0.35);
  color: var(--cs-cream);
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.08em;
}

.copy-otp-btn {
  background: rgba(222, 219, 200, 0.08);
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
  font-size: 0.7rem;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: var(--transition);
}

.copy-otp-btn:hover {
  color: var(--cs-cream);
  border-color: var(--cs-cream);
}

.copy-otp-btn.copied {
  background: var(--cs-live-bg);
  border-color: var(--cs-live);
  color: var(--cs-live);
}

/* ─── Check Mail 3 Columns ─────────────────────────────────── */
.check-columns-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.column-card {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.column-card.live-card { border-top: 2px solid var(--cs-live); }
.column-card.die-card { border-top: 2px solid var(--cs-die); }
.column-card.unknown-card { border-top: 2px solid var(--cs-unknown); }

.col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--cs-border);
}

.col-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot-live { background: var(--cs-live); box-shadow: 0 0 8px var(--cs-live); }
.dot-die { background: var(--cs-die); box-shadow: 0 0 8px var(--cs-die); }
.dot-unknown { background: var(--cs-unknown); box-shadow: 0 0 8px var(--cs-unknown); }

.col-title {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--cs-cream);
}

.col-count {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: rgba(222, 219, 200, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--cs-muted);
}

.col-textarea {
  width: 100%;
  height: 280px;
  background: transparent;
  border: none;
  outline: none;
  padding: 1rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--cs-ink);
  line-height: 1.6;
  resize: none;
}

/* ─── Studio Dropzone (Auto Format) ────────────────────────── */
.studio-dropzone {
  position: relative;
  border: 1px dashed rgba(222, 219, 200, 0.25);
  border-radius: var(--radius-md);
  background: rgba(0, 0, 0, 0.2);
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.studio-dropzone:hover, .studio-dropzone.dragover {
  border-color: var(--cs-gold);
  background: rgba(196, 162, 120, 0.04);
}

.dropzone-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.dropzone-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: none;
}

.dropzone-icon-box {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(222, 219, 200, 0.05);
  border: 1px solid var(--cs-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--cs-gold);
  margin-bottom: 0.5rem;
}

.dropzone-visual h3 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--cs-cream);
}

.dropzone-visual p {
  font-size: 0.82rem;
  color: var(--cs-muted);
}

.stat-metrics {
  display: flex;
  gap: 1.5rem;
}

.metric-item {
  display: flex;
  flex-direction: column;
}

.metric-val {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cs-cream);
}

.metric-lbl {
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  color: var(--cs-muted);
}

/* ─── Get Token & API Styles ───────────────────────────────── */
.max-w-card {
  max-width: 680px;
  margin: 0 auto;
}

.input-inline-wrap {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.studio-input {
  flex: 1;
  min-width: 220px;
  background: var(--cs-input);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-pill);
  padding: 0.65rem 1.25rem;
  font-family: var(--font-sans);
  font-size: 0.88rem;
  color: var(--cs-cream);
  outline: none;
}
.studio-input:focus {
  border-color: var(--cs-gold);
}

.error-notice {
  color: var(--cs-die);
  font-size: 0.84rem;
  margin-top: 0.75rem;
}

.api-block {
  background: var(--cs-bg-deep);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.api-method-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--cs-border);
  background: rgba(222, 219, 200, 0.02);
}

.badge-post {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  background: rgba(32, 231, 183, 0.15);
  color: var(--cs-live);
}

.api-path {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cs-cream);
}

.api-desc-sub {
  color: var(--cs-muted);
  font-size: 0.8rem;
}

.code-preview {
  padding: 1.25rem;
  overflow-x: auto;
}

.code-preview pre {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cs-ink);
  line-height: 1.6;
}

/* ─── About Section ────────────────────────────────────────── */
.about-center {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.about-serif-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.2rem;
  font-weight: 400;
  color: var(--cs-cream);
  margin-bottom: 1rem;
}

.about-desc {
  color: var(--cs-muted);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.about-features-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
  text-align: left;
}

.feat-row {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(222, 219, 200, 0.02);
  border: 1px solid var(--cs-border);
}

.feat-num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cs-gold);
}

.feat-info strong {
  font-size: 0.92rem;
  color: var(--cs-cream);
}

.feat-info p {
  font-size: 0.82rem;
  color: var(--cs-muted);
  margin-top: 2px;
}

/* ─── Email Modal (Screening Room Style) ───────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.modal-dialog {
  background: var(--cs-surface);
  border: 1px solid var(--cs-border);
  border-radius: var(--radius-lg);
  max-width: 760px;
  width: 100%;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.9);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--cs-border);
  gap: 1rem;
}

.modal-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--cs-gold);
}

.modal-subject {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--cs-cream);
  margin-top: 2px;
}

.modal-close-btn {
  background: transparent;
  border: 1px solid var(--cs-border);
  color: var(--cs-muted);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  flex-shrink: 0;
}
.modal-close-btn:hover {
  color: var(--cs-cream);
  border-color: var(--cs-cream);
}

.modal-meta-row {
  display: flex;
  justify-content: space-between;
  padding: 0.75rem 1.75rem;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--cs-border);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.meta-label { color: var(--cs-muted); margin-right: 4px; }
.meta-val { color: var(--cs-cream); font-family: var(--font-mono); }

.modal-body {
  padding: 1.75rem;
  overflow-y: auto;
  flex: 1;
}

/* ─── Toast Notifications ──────────────────────────────────── */
.toast-stack {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  background: var(--cs-elevated);
  border: 1px solid var(--cs-border);
  color: var(--cs-cream);
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  animation: toastIn 0.3s var(--ease-studio), toastOut 0.3s var(--ease-studio) 2.2s forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(12px); }
}

/* ─── Utilities ────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ─── Responsive Adjustments ───────────────────────────────── */
@media (max-width: 860px) {
  .check-columns-grid {
    grid-template-columns: 1fr;
  }
  .card-top-bar, .card-bottom-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .action-wrap, .pill-btn {
    width: 100%;
    justify-content: center;
  }
}
