/* ═══════════════════════════════════════════════════════
   TempMail – Temporary Email Service
   Design System & Core Styles
   ═══════════════════════════════════════════════════════ */

/* ── Google Fonts ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Brand Colors */
  --brand-50:  #eff6ff;
  --brand-100: #dbeafe;
  --brand-200: #bfdbfe;
  --brand-300: #93c5fd;
  --brand-400: #60a5fa;
  --brand-500: #3b82f6;
  --brand-600: #2563eb;
  --brand-700: #1d4ed8;
  --brand-800: #1e40af;
  --brand-900: #1e3a8a;

  /* Slate Neutrals */
  --slate-50:  #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;

  /* Semantic */
  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --red-300: #fca5a5;
  --red-400: #f87171;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-50:  #fef2f2;
  --red-200: #fecaca;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,.07), 0 2px 4px -2px rgba(0,0,0,.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,.08), 0 4px 6px -4px rgba(0,0,0,.04);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,.08), 0 8px 10px -6px rgba(0,0,0,.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,.18);

  /* Radii */
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-2xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(.4,0,.2,1);
  --transition-base: 200ms cubic-bezier(.4,0,.2,1);
  --transition-slow: 300ms cubic-bezier(.4,0,.2,1);
}

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

/* ── Base ── */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  height: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--slate-50);
  color: var(--slate-800);
  min-height: 100vh;
  height: 100%;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--brand-200);
  color: var(--brand-900);
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--slate-300); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--slate-400); }

/* ── Typography ── */
h1, h2, h3, h4, h5, h6 {
  line-height: 1.3;
  font-weight: 700;
}

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

/* ── Utility ── */
.container {
  max-width: 1152px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 640px) {
  .container { padding: 0 24px; }
}

@media (min-width: 1024px) {
  .container { padding: 0 32px; }
}

.select-all {
  user-select: all;
  -webkit-user-select: all;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

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

@keyframes ping {
  75%, 100% { transform: scale(2); opacity: 0; }
}

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

@keyframes emailScroll {
  0%, 15%   { transform: translateX(0); }
  85%, 100% { transform: translateX(var(--scroll-dist)); }
}

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

.animate-fadeUp  { animation: fadeUp .3s ease-out; }
.animate-fadeIn  { animation: fadeIn .3s ease-out; }
.animate-pulse   { animation: pulse 2s cubic-bezier(.4,0,.6,1) infinite; }
.animate-ping    { animation: ping 1s cubic-bezier(0,0,.2,1) infinite; }
.animate-spin    { animation: spin 1s linear infinite; }

/* ═══════════════════════════════════════════════════════
   HEADER
   ═══════════════════════════════════════════════════════ */
.header {
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--slate-200);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.header-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(37,99,235,.3);
}

.header-logo-text {
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--brand-900), var(--brand-600));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.5px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--slate-500);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.nav-link:hover {
  color: var(--brand-600);
  background: var(--brand-50);
}

.nav-link i {
  font-size: 12px;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--slate-200);
  margin: 0 4px;
}

.nav-btn-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: white;
  background: var(--brand-600);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
  border: none;
  cursor: pointer;
}

.nav-btn-primary:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
}

@media (max-width: 639px) {
  .nav-link span { display: none; }
  .nav-divider { display: none; }
}

/* ═══════════════════════════════════════════════════════
   MAIN
   ═══════════════════════════════════════════════════════ */
.main-content {
  flex: 1 1 0%;
  padding: 32px 0 48px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  min-height: 0;
}

@media (min-width: 768px) {
  .main-content { padding: 48px 0 64px; }
}

/* ═══════════════════════════════════════════════════════
   HERO SECTION
   ═══════════════════════════════════════════════════════ */
.hero {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.hero-title {
  font-size: 28px;
  color: var(--slate-900);
  letter-spacing: -0.5px;
  margin-bottom: 12px;
}

@media (min-width: 768px) {
  .hero-title { font-size: 36px; }
}

.hero-subtitle {
  color: var(--slate-500);
  font-size: 14px;
  max-width: 540px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .hero-subtitle { font-size: 16px; }
}

/* ═══════════════════════════════════════════════════════
   EMAIL DISPLAY CARD
   ═══════════════════════════════════════════════════════ */
.email-display-card {
  background: white;
  padding: 8px 8px 8px 24px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  transition: box-shadow var(--transition-slow);
}

.email-display-card:hover {
  box-shadow: var(--shadow-xl);
}

@media (min-width: 768px) {
  .email-display-card {
    flex-direction: row;
  }
}

.email-display-wrap {
  flex-grow: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 16px 0;
  overflow: hidden;
}

@media (min-width: 768px) {
  .email-display-wrap {
    justify-content: flex-start;
    padding: 0;
  }
}

.email-display-wrap.scrolling .email-text {
  animation: emailScroll 6s linear infinite alternate;
}

.email-text {
  font-size: 20px;
  font-family: 'Courier New', monospace;
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
}

@media (min-width: 768px) {
  .email-text { font-size: 24px; }
}

.email-text.placeholder {
  color: var(--slate-400);
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 16px;
}

.email-actions {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 8px;
  border-top: 1px solid var(--slate-100);
  padding-top: 12px;
  margin-top: 12px;
}

@media (min-width: 768px) {
  .email-actions {
    width: auto;
    border-top: none;
    border-left: 1px solid var(--slate-100);
    padding-top: 0;
    padding-left: 12px;
    margin-top: 0;
  }
}

/* ═══════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-primary {
  background: var(--brand-600);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 600;
  flex: 1;
}

@media (min-width: 768px) {
  .btn-primary {
    flex: none;
    padding: 12px 24px;
  }
}

.btn-primary:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.btn-primary:active {
  transform: scale(.97);
}

.btn-primary i {
  transition: transform var(--transition-base);
}

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

/* ── Action Grid ── */
.action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 24px;
}

@media (min-width: 768px) {
  .action-grid { grid-template-columns: repeat(4, 1fr); }
}

.action-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base);
}

.action-btn:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
}

.action-btn i {
  font-size: 18px;
  color: var(--brand-500);
  margin-bottom: 8px;
  transition: transform var(--transition-slow);
}

.action-btn span {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-700);
}

.action-btn.btn-random:hover i   { transform: rotate(180deg); }
.action-btn.btn-custom:hover i   { transform: translateY(-4px); }
.action-btn.btn-refresh:hover i  { transform: rotate(180deg); }
.action-btn.btn-delete:hover i   { transform: scale(1.15); }

.action-btn.btn-delete:hover {
  border-color: var(--red-300);
}

.action-btn.btn-delete i { color: var(--red-500); }
.action-btn.btn-delete span { color: var(--red-600); }

/* ═══════════════════════════════════════════════════════
   MODAL
   ═══════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
}

.modal-overlay.active {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.4);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-wrapper {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-content {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-2xl);
  width: 100%;
  max-width: 400px;
  overflow: hidden;
  animation: fadeUp .2s ease-out;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--slate-100);
}

.modal-header h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--slate-900);
}

.modal-header h3 i {
  color: var(--brand-500);
  margin-right: 8px;
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-lg);
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--slate-400);
  transition: all var(--transition-base);
}

.modal-close:hover {
  background: var(--slate-100);
  color: var(--slate-600);
}

.modal-body {
  padding: 20px;
}

.modal-body .form-group {
  margin-bottom: 16px;
}

.modal-body label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.modal-body input,
.modal-body select {
  width: 100%;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  padding: 12px 16px;
  font-size: 14px;
  font-family: 'Courier New', monospace;
  color: var(--slate-700);
  outline: none;
  transition: all var(--transition-base);
  background: white;
}

.modal-body input:focus,
.modal-body select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.modal-body input::placeholder {
  color: var(--slate-300);
}

.form-hint {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 4px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.form-grid label {
  font-size: 10px;
}

.form-grid input,
.form-grid select {
  padding: 8px 12px;
  font-size: 12px;
  border-radius: var(--radius-lg);
  background: var(--slate-50);
  border-color: var(--slate-100);
}

.form-grid input:focus,
.form-grid select:focus {
  background: white;
}

/* Preview */
.email-preview {
  padding: 12px;
  border-radius: var(--radius-xl);
  background: var(--slate-50);
  border: 1px solid var(--slate-100);
  font-size: 12px;
  font-family: 'Courier New', monospace;
  color: var(--brand-600);
  display: none;
  margin-bottom: 16px;
}

.email-preview.visible {
  display: block;
}

.email-preview i {
  margin-right: 4px;
}

.email-preview .preview-label {
  color: var(--slate-400);
}

/* Error */
.email-error {
  padding: 12px;
  border-radius: var(--radius-xl);
  background: var(--red-50);
  border: 1px solid var(--red-200);
  font-size: 12px;
  color: var(--red-600);
  display: none;
  margin-bottom: 16px;
}

.email-error.visible { display: block; }

.modal-submit {
  width: 100%;
  padding: 14px;
  background: var(--brand-600);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.modal-submit:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.modal-submit:disabled {
  opacity: .7;
  cursor: not-allowed;
}

.modal-submit .loading { display: none; }
.modal-submit.is-loading .label { display: none; }
.modal-submit.is-loading .loading { display: inline-flex; align-items: center; gap: 8px; }

/* ═══════════════════════════════════════════════════════
   INBOX / MAILBOX
   ═══════════════════════════════════════════════════════ */
.mailbox {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  min-height: calc(100vh - 200px);
}

.mailbox-header {
  background: var(--slate-50);
  border-bottom: 1px solid var(--slate-200);
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

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

.mailbox-status {
  position: relative;
  display: flex;
  width: 12px;
  height: 12px;
}

.mailbox-status .ping {
  position: absolute;
  display: inline-flex;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: var(--emerald-400);
  opacity: .75;
  animation: ping 1s cubic-bezier(0,0,.2,1) infinite;
}

.mailbox-status .dot {
  position: relative;
  display: inline-flex;
  border-radius: 50%;
  width: 12px;
  height: 12px;
  background: var(--emerald-500);
}

.mailbox-header h2 {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
}

.mail-count-badge {
  background: var(--brand-100);
  color: var(--brand-700);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  display: none;
}

.mail-count-badge.visible { display: inline; }

.mailbox-auto {
  font-size: 13px;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  gap: 6px;
}

.mailbox-auto i {
  font-size: 11px;
  opacity: .5;
}

.mailbox-panels {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mailbox-panels { flex-direction: row; }
}

/* Sidebar */
.mailbox-sidebar {
  width: 100%;
  border-bottom: 1px solid var(--slate-200);
  overflow-y: auto;
  background: white;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .mailbox-sidebar {
    width: 33.333%;
    border-bottom: none;
    border-right: 1px solid var(--slate-200);
  }
}

.mail-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--slate-100);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.mail-item:hover {
  background: var(--slate-50);
}

.mail-item.active {
  background: var(--brand-50);
  border-left: 3px solid var(--brand-500);
}

.mail-item-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.mail-item-icon i {
  color: var(--brand-500);
  font-size: 14px;
}

.mail-item-content {
  flex: 1;
  min-width: 0;
}

.mail-item-from {
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-800);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item-subject {
  font-size: 13px;
  color: var(--slate-500);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.mail-item-time {
  font-size: 11px;
  color: var(--slate-400);
  margin-top: 4px;
}

.mail-item-badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 600;
  margin-left: 6px;
}

.badge-otp {
  background: #fef3c7;
  color: #d97706;
}

.badge-verify {
  background: #d1fae5;
  color: #059669;
}

/* Reader */
.mailbox-reader {
  width: 100%;
  background: white;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

@media (min-width: 768px) {
  .mailbox-reader {
    width: 66.667%;
    display: flex;
  }
}

.mailbox-reader.mobile-active {
  display: flex;
}

.reader-empty {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  text-align: center;
}

.reader-empty-icon {
  width: 64px;
  height: 64px;
  background: var(--slate-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.reader-empty-icon i {
  font-size: 24px;
  color: var(--slate-300);
}

.reader-empty h3 {
  font-size: 16px;
  font-weight: 500;
  color: var(--slate-600);
  margin-bottom: 4px;
}

.reader-empty p {
  font-size: 14px;
  color: var(--slate-400);
}

/* Mail content view */
.reader-content {
  display: none;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
}

.reader-content.visible {
  display: flex;
}

.reader-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--slate-100);
}

.reader-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: var(--slate-500);
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  cursor: pointer;
  font-family: inherit;
  margin-bottom: 12px;
  transition: all var(--transition-base);
}

@media (min-width: 768px) {
  .reader-back { display: none; }
}

.reader-back:hover {
  background: var(--slate-100);
  color: var(--slate-700);
}

.reader-subject {
  font-size: 18px;
  font-weight: 700;
  color: var(--slate-900);
  margin-bottom: 8px;
}

.reader-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  color: var(--slate-500);
  flex-wrap: wrap;
}

.reader-meta strong {
  color: var(--slate-700);
}

/* OTP / Verify highlight */
.reader-highlight {
  margin: 16px 24px 0;
  padding: 14px 18px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: space-between;
}

.reader-highlight.otp {
  background: linear-gradient(135deg, #fef9c3, #fef3c7);
  border: 1px solid #fde68a;
}

.reader-highlight.verify {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  border: 1px solid #6ee7b7;
}

.reader-highlight-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px;
}

.reader-highlight.otp .reader-highlight-label { color: #92400e; }
.reader-highlight.verify .reader-highlight-label { color: #065f46; }

.reader-highlight-value {
  font-size: 20px;
  font-weight: 800;
  font-family: 'Courier New', monospace;
  letter-spacing: 2px;
}

.reader-highlight.otp .reader-highlight-value { color: #d97706; }
.reader-highlight.verify .reader-highlight-value { color: #059669; }

.reader-highlight .copy-btn {
  padding: 6px 12px;
  border-radius: var(--radius-lg);
  border: none;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.reader-highlight.otp .copy-btn {
  background: #fbbf24;
  color: #78350f;
}

.reader-highlight.otp .copy-btn:hover {
  background: #f59e0b;
}

.reader-highlight.verify .copy-btn {
  background: #34d399;
  color: #064e3b;
}

.reader-highlight.verify .copy-btn:hover {
  background: #10b981;
}

.reader-body {
  flex: 1;
  padding: 24px;
  overflow-y: auto;
  font-size: 14px;
  line-height: 1.7;
  color: var(--slate-700);
}

.reader-body p {
  margin-bottom: 12px;
}

/* Empty inbox */
.inbox-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}

.inbox-empty i {
  font-size: 32px;
  color: var(--slate-300);
  margin-bottom: 12px;
}

.inbox-empty h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--slate-500);
  margin-bottom: 4px;
}

.inbox-empty p {
  font-size: 13px;
  color: var(--slate-400);
}

/* ═══════════════════════════════════════════════════════
   TOAST
   ═══════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  z-index: 60;
  background: var(--slate-800);
  color: white;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-xl);
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition-slow), transform var(--transition-slow);
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.toast i {
  color: var(--emerald-400);
}

.toast span {
  font-size: 14px;
  font-weight: 500;
}

/* ═══════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════ */
.footer {
  background: white;
  border-top: 1px solid var(--slate-200);
  margin-top: auto;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

@media (min-width: 768px) {
  .footer-inner { flex-direction: row; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand span:first-child {
  font-size: 18px;
  font-weight: 700;
  background: linear-gradient(135deg, var(--slate-700), var(--slate-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand span:last-child {
  font-size: 14px;
  color: var(--slate-400);
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-links a {
  font-size: 14px;
  color: var(--slate-400);
  transition: color var(--transition-base);
}

.footer-links a:hover {
  color: var(--slate-600);
}

/* ═══════════════════════════════════════════════════════
   CONTACT PAGE
   ═══════════════════════════════════════════════════════ */
.page-section {
  max-width: 640px;
  margin: 0 auto;
  width: 100%;
}

.page-title {
  font-size: 28px;
  color: var(--slate-900);
  text-align: center;
  margin-bottom: 8px;
}

.page-subtitle {
  font-size: 15px;
  color: var(--slate-500);
  text-align: center;
  margin-bottom: 32px;
}

.contact-cards {
  display: grid;
  gap: 16px;
}

.contact-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 16px;
  transition: all var(--transition-base);
}

.contact-card:hover {
  border-color: var(--brand-300);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-lg);
  background: var(--brand-50);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-card-icon i {
  font-size: 18px;
  color: var(--brand-500);
}

.contact-card-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: .5px;
}

.contact-card-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--slate-800);
  margin-top: 2px;
}

/* ═══════════════════════════════════════════════════════
   LOGIN PAGE
   ═══════════════════════════════════════════════════════ */
.auth-card {
  background: white;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--slate-200);
  max-width: 420px;
  margin: 0 auto;
  overflow: hidden;
}

.auth-header {
  padding: 32px 32px 24px;
  text-align: center;
}

.auth-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--brand-600), var(--brand-400));
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(37,99,235,.25);
}

.auth-icon i {
  font-size: 22px;
  color: white;
}

.auth-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--slate-900);
}

.auth-tabs {
  display: flex;
  border-bottom: 1px solid var(--slate-200);
}

.auth-tab {
  flex: 1;
  padding: 14px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--slate-400);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base);
}

.auth-tab.active {
  color: var(--brand-600);
  border-bottom-color: var(--brand-600);
}

.auth-tab:hover:not(.active) {
  color: var(--slate-600);
  background: var(--slate-50);
}

.auth-form {
  padding: 24px 32px 32px;
}

.auth-form .form-group {
  margin-bottom: 16px;
}

.auth-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 6px;
}

.auth-form input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  font-size: 14px;
  font-family: inherit;
  color: var(--slate-700);
  outline: none;
  transition: all var(--transition-base);
}

.auth-form input:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(59,130,246,.15);
}

.auth-form input::placeholder {
  color: var(--slate-300);
}

.auth-submit {
  width: 100%;
  padding: 14px;
  background: var(--brand-600);
  color: white;
  border: none;
  border-radius: var(--radius-xl);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all var(--transition-base);
  margin-top: 8px;
  box-shadow: var(--shadow-sm);
}

.auth-submit:hover {
  background: var(--brand-700);
  box-shadow: var(--shadow-md);
}

.auth-footer {
  padding: 16px 32px;
  text-align: center;
  border-top: 1px solid var(--slate-100);
  background: var(--slate-50);
}

.auth-footer a {
  font-size: 14px;
  color: var(--brand-600);
  font-weight: 500;
  transition: color var(--transition-base);
}

.auth-footer a:hover {
  color: var(--brand-700);
}

/* Error message */
.form-error {
  color: var(--red-500);
  font-size: 13px;
  margin-top: 6px;
  display: none;
}

.form-error.visible { display: block; }

/* ═══════════════════════════════════════════════════════
   LOADING SKELETON
   ═══════════════════════════════════════════════════════ */
.skeleton {
  background: linear-gradient(90deg, var(--slate-100) 25%, var(--slate-200) 50%, var(--slate-100) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius-md);
}

.skeleton-line {
  height: 14px;
  margin-bottom: 8px;
}

.skeleton-line:last-child {
  width: 60%;
}
