/* ============================================================
   OTP Batch Checker - Warm & Bold Design System
   Design: Warm paper palette + Bold serif headlines + Punchy layout
   ============================================================ */

:root {
  /* Warm Paper Palette */
  --base: #F6F1E8;
  --surface: #FBF7EF;
  --surface-white: #FFFFFF;
  --border: #E2D9C8;
  --border-subtle: #EDE6D9;

  /* Amber/Caramel Accent */
  --accent: #C8853F;
  --accent-hover: #A86B2C;
  --accent-subtle: #F0E3D0;

  /* Dark warm charcoal for contrast */
  --charcoal: #2A2723;
  --charcoal-hover: #1F1D1A;

  /* Semantic colors with warmth */
  --success: #52A174;
  --success-hover: #3E8159;
  --success-subtle: rgba(82, 161, 116, 0.12);

  --error: #C85A3F;
  --error-hover: #A8472C;
  --error-subtle: rgba(200, 90, 63, 0.12);

  /* Text */
  --text: #1F2421;
  --text-secondary: #6B6B64;
  --text-tertiary: #8A8A80;

  /* Radius - More rounded for warmth */
  --radius: 16px;
  --radius-sm: 10px;
  --radius-lg: 20px;
  --radius-xl: 24px;

  /* Animations */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 250ms;
  --duration-slow: 400ms;
}

/* ============================================================
   Reset & Base
   ============================================================ */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--base);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--surface-white);
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--accent);
  font-weight: 600;
  border: 1px solid var(--border);
}

/* ============================================================
   Sticky Nav - Backdrop blur effect
   ============================================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 241, 232, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 2px solid var(--border);
}

.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 44px;
  height: 44px;
  background: var(--accent);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 12px rgba(200, 133, 63, 0.3);
}

.logo-text {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--success-subtle);
  border: 1px solid var(--success);
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  animation: pulse 2s ease-in-out infinite;
}

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

/* ============================================================
   Page Wrapper
   ============================================================ */

.page-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* ============================================================
   Hero Section - 2 Column Layout
   ============================================================ */

.hero {
  margin-bottom: 60px;
}

.hero-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-left {
  padding-right: 20px;
}

.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 24px;
}

.eyebrow-pill svg {
  color: var(--accent);
}

.hero-title {
  font-family: 'DM Serif Display', serif;
  font-size: 52px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 20px;
}

.hero-title em {
  color: var(--accent);
  font-style: italic;
}

.hero-description {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-weight: 400;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 28px;
  background: var(--surface-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 4px 16px rgba(31, 36, 33, 0.06);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'JetBrains Mono', monospace;
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 2px;
  height: 40px;
  background: var(--border);
}

/* Hero Right - Faux Browser Window */
.hero-right {
  position: relative;
}

.browser-window {
  background: var(--surface-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(31, 36, 33, 0.12);
  transform: perspective(1000px) rotateY(-5deg);
  transition: transform var(--duration-slow) var(--ease-out);
}

.browser-window:hover {
  transform: perspective(1000px) rotateY(0deg);
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 2px solid var(--border);
}

.browser-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ED6A5E; }
.dot-yellow { background: #F4BF4F; }
.dot-green { background: #61C554; }

.browser-url {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-tertiary);
  padding: 4px 12px;
  background: var(--base);
  border-radius: 6px;
}

.browser-content {
  padding: 24px;
  background: var(--base);
  min-height: 240px;
}

.preview-card {
  background: var(--surface-white);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 8px rgba(31, 36, 33, 0.06);
}

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.preview-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  flex-shrink: 0;
}

.preview-meta {
  flex: 1;
}

.preview-from {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
}

.preview-time {
  font-size: 12px;
  color: var(--text-tertiary);
}

.preview-subject {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.preview-otp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.15em;
  margin-bottom: 12px;
  padding: 12px 16px;
  background: var(--accent-subtle);
  border-radius: 8px;
  text-align: center;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.preview-status.success {
  background: var(--success-subtle);
  color: var(--success);
}

/* Floating Chip */
.floating-chip {
  position: absolute;
  bottom: -20px;
  right: 40px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--charcoal);
  color: white;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(42, 39, 35, 0.3);
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floating-chip svg {
  color: var(--success);
}

/* ============================================================
   Workspace - Main Content Area
   ============================================================ */

.workspace {
  margin-top: 60px;
}

.workspace-grid {
  display: grid;
  grid-template-columns: 520px 1fr;
  gap: 24px;
  align-items: start;
}

.workspace-col {
  min-width: 0;
}

/* Card Component - Warm shadows */
.card {
  background: var(--surface-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(31, 36, 33, 0.08);
  display: flex;
  flex-direction: column;
}

.card-header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.card-body {
  padding: 24px;
  flex: 1;
  min-height: 0;
}

.card-body-results {
  overflow-y: auto;
  max-height: 600px;
}

.card-footer {
  padding: 20px 24px;
  border-top: 2px solid var(--border);
  background: var(--surface);
}

/* ============================================================
   Email Input
   ============================================================ */

.email-input {
  width: 100%;
  min-height: 360px;
  padding: 20px;
  background: var(--base);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 14px;
  line-height: 1.8;
  resize: vertical;
  transition: all var(--duration) var(--ease-out);
  margin-bottom: 16px;
}

.email-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-subtle);
}

.email-input::placeholder {
  color: var(--text-tertiary);
}

.input-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  padding: 14px 18px;
  background: var(--accent-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.input-hint svg {
  flex-shrink: 0;
  color: var(--accent);
}

/* ============================================================
   Buttons - Bold with lift effect
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 24px;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
  user-select: none;
  letter-spacing: -0.01em;
  position: relative;
}

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

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-sm {
  padding: 10px 18px;
  font-size: 13px;
  gap: 6px;
}

.btn-primary {
  background: var(--charcoal);
  color: white;
  box-shadow: 0 4px 16px rgba(42, 39, 35, 0.25);
}

.btn-primary:hover {
  background: var(--charcoal-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(42, 39, 35, 0.35);
}

.btn-secondary {
  background: var(--success);
  color: white;
  box-shadow: 0 4px 16px rgba(82, 161, 116, 0.25);
}

.btn-secondary:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(82, 161, 116, 0.35);
}

.btn-amber {
  background: var(--accent);
  color: white;
  box-shadow: 0 4px 16px rgba(200, 133, 63, 0.25);
}

.btn-amber:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(200, 133, 63, 0.35);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

/* ============================================================
   Filter Chips
   ============================================================ */

.filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.chip:hover {
  background: var(--surface-white);
  border-color: var(--accent);
}

.chip.active {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
  box-shadow: 0 2px 8px rgba(200, 133, 63, 0.3);
}

.chip:active {
  transform: scale(0.95);
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.chip-dot.success {
  background: var(--success);
}

.chip-dot.error {
  background: var(--error);
}

/* ============================================================
   Empty State
   ============================================================ */

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 400px;
  padding: 40px;
  text-align: center;
}

.empty-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 24px;
  color: var(--text-tertiary);
  opacity: 0.4;
}

.empty-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.empty-text {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 360px;
  line-height: 1.6;
}

/* ============================================================
   Results Table
   ============================================================ */

.results-container {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius);
  border: 2px solid var(--border);
  background: var(--surface-white);
}

.results-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.results-table thead {
  background: var(--surface);
  border-bottom: 2px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.results-table thead th {
  padding: 14px 16px;
  text-align: left;
  font-weight: 700;
  color: var(--text);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.results-table thead th.col-stt {
  width: 60px;
  text-align: center;
}

.results-table thead th.col-email {
  width: 35%;
  min-width: 200px;
}

.results-table thead th.col-otp {
  width: 25%;
  min-width: 150px;
}

.results-table thead th.col-emails {
  width: 80px;
  text-align: center;
}

.results-table thead th.col-actions {
  width: 180px;
  text-align: right;
}

.results-table tbody tr {
  border-bottom: 1px solid var(--border-subtle);
  transition: all 0.2s var(--ease-out);
  opacity: 0;
  animation: rowFadeIn 0.4s ease-out forwards;
}

@keyframes rowFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.results-table tbody tr:hover {
  background: var(--surface);
}

.results-table tbody tr.row-loading {
  background: linear-gradient(90deg, var(--surface) 0%, var(--accent-subtle) 50%, var(--surface) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.5s ease-in-out infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

.results-table tbody tr.row-error {
  background: var(--error-subtle);
}

.results-table tbody tr.row-success {
  background: transparent;
}

.results-table tbody td {
  padding: 14px 16px;
  vertical-align: middle;
}

.results-table .cell-stt {
  text-align: center;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-tertiary);
  font-size: 13px;
}

.results-table .cell-email {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
}

.results-table .cell-otp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.1em;
}

.results-table .cell-otp.empty {
  color: var(--text-tertiary);
  font-size: 16px;
  font-weight: 400;
}

.results-table .cell-error {
  color: var(--error);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.results-table .cell-error .icon-error {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--error);
  flex-shrink: 0;
}

.results-table .cell-emails {
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-tertiary);
}

.results-table .cell-actions {
  text-align: right;
  white-space: nowrap;
}

.results-table .cell-actions .btn-group {
  display: inline-flex;
  gap: 8px;
}

.results-table .btn-table-sm {
  padding: 6px 12px;
  font-size: 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 600;
  white-space: nowrap;
}

.results-table .btn-table-sm:hover {
  background: var(--accent-subtle);
  color: var(--accent);
  border-color: var(--accent);
  transform: translateY(-1px);
}

.results-table .btn-table-sm:active {
  transform: scale(0.97);
}

.results-table .btn-table-sm.btn-copy {
  color: var(--accent);
  border-color: var(--accent);
  background: var(--accent-subtle);
}

.results-table .btn-table-sm.btn-copy:hover {
  background: var(--accent);
  color: white;
}

.results-table .btn-table-sm.copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.results-table .loading-spinner-inline {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.results-table .loading-spinner-inline .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ============================================================
   Footer Actions
   ============================================================ */

.footer-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ============================================================
   Modal - Warm backdrop, smooth entrance
   ============================================================ */

.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 32px;
}

.modal.open {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 36, 33, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
}

.modal.open .modal-backdrop {
  opacity: 1;
}

.modal-content {
  position: relative;
  width: 100%;
  max-width: 700px;
  max-height: 85vh;
  background: var(--surface-white);
  border: 2px solid var(--border);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(31, 36, 33, 0.25);
  opacity: 0;
  transform: scale(0.95) translateY(20px);
  transition: all var(--duration-slow) var(--ease-out);
}

.modal-content.modal-large {
  max-width: 1000px;
}

.modal.open .modal-content {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.modal-header {
  padding: 24px 28px;
  border-bottom: 2px solid var(--border);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.modal-header h3 {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  font-weight: 700;
  flex: 1;
  color: var(--text);
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.btn-back:hover {
  background: var(--surface);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-back:active {
  transform: scale(0.97);
}

.modal-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 2px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.modal-close:hover {
  background: var(--error-subtle);
  border-color: var(--error);
  color: var(--error);
}

.modal-close:active {
  transform: scale(0.95);
}

.modal-body {
  padding: 28px;
  overflow-y: auto;
  flex: 1;
}

/* Message table in modal */
.message-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.message-table thead {
  background: var(--surface);
  position: sticky;
  top: 0;
  z-index: 1;
}

.message-table th {
  padding: 12px 14px;
  text-align: left;
  font-weight: 700;
  font-size: 12px;
  color: var(--text);
  border-bottom: 2px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.message-table td {
  padding: 14px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}

.message-table tbody tr:hover {
  background: var(--surface);
}

.message-subject {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-date {
  color: var(--text-secondary);
  font-size: 13px;
  white-space: nowrap;
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.btn-view:hover {
  background: var(--accent-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

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

.code-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.code-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
}

.copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  background: var(--accent-subtle);
  border: 1px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  cursor: pointer;
  transition: all var(--duration) var(--ease-out);
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  transform: translateY(-1px);
}

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

.copy-btn svg {
  display: block;
}

.table-responsive {
  overflow-x: auto;
  margin: -16px -28px;
  padding: 16px 28px;
}

.email-content-frame iframe {
  display: block;
}

/* ============================================================
   Email Detail Modal Styles (Warm & Bold)
   ============================================================ */

.emailfake-modal-header {
  padding: 24px 28px 20px;
}

.emailfake-meta-row {
  display: flex;
  gap: 40px;
  margin-bottom: 20px;
}

.emailfake-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.emailfake-meta-icon {
  color: var(--accent);
  font-size: 18px;
  margin-top: 2px;
  flex-shrink: 0;
}

.emailfake-meta-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-tertiary);
  font-weight: 700;
  margin-bottom: 6px;
}

.emailfake-meta-value {
  font-size: 15px;
  color: var(--text);
  font-weight: 600;
  word-break: break-all;
  line-height: 1.5;
}

.emailfake-subject-row {
  font-size: 18px;
  color: var(--text);
  font-weight: 700;
  line-height: 1.5;
  padding: 16px 20px;
  background: var(--surface);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--accent);
}

.emailfake-modal-code {
  margin: 24px 28px;
  background: linear-gradient(135deg, #D1FAE5 0%, #A7F3D0 100%);
  border: 2px solid var(--success);
  border-radius: var(--radius);
  padding: 24px;
}

.emailfake-code-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--success-hover);
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

.emailfake-code-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

.emailfake-otp {
  font-size: 36px;
  font-weight: 800;
  color: var(--success-hover);
  letter-spacing: 0.18em;
  font-family: 'JetBrains Mono', monospace;
  user-select: all;
}

.emailfake-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: var(--success);
  color: white;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 18px;
  transition: all var(--duration) var(--ease-out);
  box-shadow: 0 4px 12px rgba(82, 161, 116, 0.25);
  min-width: 48px;
  min-height: 48px;
}

.emailfake-copy-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  flex-shrink: 0;
}

.emailfake-copy-btn:hover {
  background: var(--success-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(82, 161, 116, 0.35);
}

.emailfake-copy-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(82, 161, 116, 0.25);
}

.emailfake-modal-divider {
  height: 2px;
  background: var(--border);
  margin: 0 28px 20px;
}

.emailfake-modal-body {
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text);
}

.emailfake-html-wrapper {
  text-align: center;
  overflow-x: auto;
  width: 100%;
}

.emailfake-html-body {
  display: inline-block;
  width: auto;
  max-width: 100%;
  text-align: left;
  word-wrap: break-word;
  overflow-x: auto;
  padding: 16px;
}

.emailfake-html-body table {
  border-collapse: collapse;
  margin: 0 auto !important;
}

.emailfake-html-body img {
  max-width: 100% !important;
  height: auto;
}

.emailfake-html-body td,
.emailfake-html-body th {
  word-wrap: break-word;
  border-color: var(--border);
}

/* ============================================================
   Toast Notifications
   ============================================================ */

.toast-container {
  position: fixed;
  top: 32px;
  right: 32px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 420px;
  pointer-events: none;
}

/* ============================================================
   Loading Spinner
   ============================================================ */

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* ============================================================
   Responsive Design
   ============================================================ */

@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .browser-window {
    transform: none;
  }

  .floating-chip {
    position: static;
    margin-top: 20px;
  }

  .workspace-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-wrapper {
    padding: 24px 16px 60px;
  }

  .hero-title {
    font-size: 36px;
  }

  .hero-description {
    font-size: 16px;
  }

  .stat-number {
    font-size: 24px;
  }

  .results-table {
    font-size: 12px;
  }

  .results-table thead th {
    padding: 10px 12px;
    font-size: 11px;
  }

  .results-table tbody td {
    padding: 10px 12px;
  }

  .results-table .cell-otp {
    font-size: 16px;
  }
}

/* ============================================================
   Reduced Motion
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   Animations for fallback toast
   ============================================================ */

@keyframes slideInFromTop {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideOutToTop {
  from {
    opacity: 1;
    transform: translateY(0);
  }
  to {
    opacity: 0;
    transform: translateY(-20px);
  }
}
