/* Ultra-Polished Mobile-First Design System */
:root {
  --primary: #6366f1;
  --primary-gradient: linear-gradient(135deg, #4f46e5 0%, #7c3aed 50%, #9333ea 100%);
  --primary-hover: linear-gradient(135deg, #4338ca 0%, #6d28d9 50%, #7e22ce 100%);
  --primary-glow: rgba(99, 102, 241, 0.28);
  
  --accent-cyan: #06b6d4;
  --accent-emerald: #10b981;
  --accent-emerald-subtle: #ecfdf5;
  --accent-emerald-border: #a7f3d0;
  
  --bg-page: #f8fafc;
  --card-bg: #ffffff;
  --card-border: #e2e8f0;
  --card-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
  --card-shadow-hover: 0 16px 36px -6px rgba(99, 102, 241, 0.14);

  --text-title: #0f172a;
  --text-body: #334155;
  --text-muted: #64748b;
  --text-faint: #94a3b8;

  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --radius-sm: 8px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
  position: relative;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-page);
  color: var(--text-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  padding-bottom: env(safe-area-inset-bottom);
}

/* Ambient Background Lights */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}
.blob-purple {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, #c084fc, #818cf8);
}
.blob-blue {
  width: 280px;
  height: 280px;
  bottom: 8%;
  left: -80px;
  background: radial-gradient(circle, #38bdf8, #818cf8);
}

/* Fullscreen Confetti Canvas */
.confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 999;
}

/* Top Navigation (Full-Width Sticky Glassmorphic Navbar) */
.top-nav {
  width: 100%;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
}
.nav-content {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  padding: 11px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
}
.brand-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.brand-badge-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--primary-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  box-shadow: 0 4px 14px var(--primary-glow);
  flex-shrink: 0;
}
.brand-badge-icon svg {
  width: 20px;
  height: 20px;
}
.brand-titles {
  display: flex;
  flex-direction: column;
  min-width: 0;
  justify-content: center;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 6px;
  line-height: 1.2;
}
.brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.4px;
  color: var(--text-title);
}
.pro-tag {
  font-size: 9px;
  font-weight: 800;
  background: var(--primary-gradient);
  color: #ffffff;
  padding: 1.5px 5px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  display: inline-block;
}
.brand-subtitle {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  letter-spacing: -0.1px;
}
.domain-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: #6366f1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.online-status {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  height: 28px;
  padding: 0 10px;
  border-radius: 9999px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
  flex-shrink: 0;
}
.status-radar {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-emerald);
  position: relative;
}
.status-radar::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.4);
  animation: radarWave 2s infinite;
}
@keyframes radarWave {
  0% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(2); opacity: 0; }
}
.status-text {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-emerald);
}

/* App Container */
.app-layout {
  width: 100%;
  max-width: 600px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Hero Heading */
.hero-block {
  text-align: center;
  padding: 16px 0 16px;
  width: 100%;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--card-border);
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
  margin-bottom: 10px;
  max-width: 100%;
}
.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}
.hero-heading {
  font-size: clamp(1.6rem, 5vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.8px;
  color: var(--text-title);
  margin-bottom: 6px;
  line-height: 1.25;
  word-break: break-word;
}
.gradient-text {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-lead {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Hero Email Card */
.email-hero-card {
  margin-bottom: 20px;
  width: 100%;
}
.card-glass {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 18px;
  box-shadow: var(--card-shadow);
  transition: all 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

/* Card Header: Address Label & Expiry Selector */
.card-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.card-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
  white-space: nowrap;
}
.timer-badge-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.selector-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  text-transform: uppercase;
  white-space: nowrap;
}
.select-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100px;
}
.styled-select {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  background: #f1f5f9;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 6px 22px 6px 8px;
  font-family: var(--font-main);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  outline: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.15s;
}
.styled-select:focus {
  border-color: #818cf8;
  background: #ffffff;
}
.select-chevron {
  position: absolute;
  right: 6px;
  width: 12px;
  height: 12px;
  color: var(--text-muted);
  pointer-events: none;
}

/* Address Box */
.address-box-wrapper {
  background: #f8fafc;
  border: 2px solid #e0e7ff;
  border-radius: var(--radius-lg);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  user-select: none;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
}
.address-box-wrapper:hover {
  border-color: #818cf8;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.12);
}
.address-box-wrapper:active {
  transform: scale(0.99);
}
.address-box-wrapper.copied {
  border-color: #10b981;
  background: #ecfdf5;
}
.address-box-wrapper.copied .tap-hint {
  background: #10b981;
  color: #ffffff;
  border-color: #10b981;
}
.address-icon {
  width: 20px;
  height: 20px;
  color: #6366f1;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.address-icon svg {
  width: 100%;
  height: 100%;
}
.email-input-field {
  flex: 1;
  min-width: 0;
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-mono);
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  letter-spacing: -0.3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tap-hint {
  font-size: 0.7rem;
  font-weight: 700;
  color: #6366f1;
  background: #ffffff;
  border: 1px solid #c7d2fe;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
  transition: all 0.2s;
  flex-shrink: 0;
}

/* Big Hero Copy Button */
.btn-hero-copy {
  width: 100%;
  margin-top: 12px;
  height: 48px;
  background: var(--primary-gradient);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-lg);
  font-family: var(--font-main);
  font-size: 0.98rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 20px var(--primary-glow);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}
.btn-hero-copy:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--primary-glow);
}
.btn-hero-copy:active {
  transform: scale(0.98);
}
.copy-icon {
  width: 18px;
  height: 18px;
}

/* Sub-Actions Grid (4 Columns) */
.sub-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  margin-top: 10px;
  width: 100%;
  box-sizing: border-box;
}
@media (max-width: 440px) {
  .sub-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
}
.btn-sub-action {
  height: 40px;
  background: #ffffff;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-md);
  color: var(--text-title);
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  padding: 0 4px;
}
.btn-sub-action:hover {
  border-color: #cbd5e1;
  background: #f8fafc;
  transform: translateY(-1px);
}
.btn-sub-action:active {
  transform: scale(0.96);
}
.btn-sub-action svg {
  width: 15px;
  height: 15px;
  color: #6366f1;
  flex-shrink: 0;
}

.spin-smooth {
  animation: spinAction 0.6s linear infinite;
}
@keyframes spinAction {
  100% { transform: rotate(360deg); }
}

/* Inbox Section */
.inbox-card-section {
  margin-bottom: 24px;
  width: 100%;
}
.inbox-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  width: 100%;
  box-sizing: border-box;
}
.inbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--card-border);
  background: #ffffff;
}
.inbox-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}
.inbox-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text-title);
}
.badge-count-pill {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: #6366f1;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  padding: 2px 8px;
  border-radius: 9999px;
}
.inbox-hint {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 600;
}

/* Empty State */
.empty-inbox-box {
  padding: 40px 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-animation-ring {
  position: relative;
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.mail-avatar-center {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #eef2ff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}
.mail-avatar-center svg {
  width: 24px;
  height: 24px;
}
.pulse-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(99, 102, 241, 0.25);
  animation: orbitExpand 2.8s infinite;
}
.orbit-2 {
  animation-delay: 1.4s;
}
@keyframes orbitExpand {
  0% { transform: scale(0.7); opacity: 0.9; }
  100% { transform: scale(1.6); opacity: 0; }
}
.empty-headline {
  font-size: 1rem;
  font-weight: 800;
  color: var(--text-title);
  margin-bottom: 6px;
}
.empty-message {
  font-size: 0.84rem;
  color: var(--text-muted);
  max-width: 320px;
  line-height: 1.5;
  margin-bottom: 16px;
}
.waiting-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
}
.indicator-bar {
  width: 3px;
  height: 14px;
  background: #6366f1;
  border-radius: 2px;
  animation: barEqualizer 1.2s infinite ease-in-out;
}
.indicator-bar:nth-child(1) { animation-delay: 0s; }
.indicator-bar:nth-child(2) { animation-delay: 0.2s; }
.indicator-bar:nth-child(3) { animation-delay: 0.4s; }
.indicator-bar:nth-child(4) { animation-delay: 0.6s; }
@keyframes barEqualizer {
  0%, 100% { height: 5px; opacity: 0.35; }
  50% { height: 16px; opacity: 1; }
}
.indicator-text {
  font-size: 0.75rem;
  font-weight: 600;
  color: #6366f1;
  margin-left: 6px;
}

/* Messages Stream */
.messages-stream {
  display: flex;
  flex-direction: column;
}
.mail-row-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: all 0.15s ease;
  animation: fadeInRow 0.2s ease-out;
}
@keyframes fadeInRow {
  0% { opacity: 0; transform: translateY(-4px); }
  100% { opacity: 1; transform: translateY(0); }
}
.mail-row-item:last-child {
  border-bottom: none;
}
.mail-row-item:hover, .mail-row-item:active {
  background-color: #f8fafc;
}
.sender-avatar-pill {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: #ffffff;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.mail-row-center {
  flex: 1;
  min-width: 0;
}
.mail-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}
.row-sender-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-date-badge {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-faint);
  flex-shrink: 0;
  margin-left: 6px;
}
.row-subject-line {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}
.row-preview-snippet {
  font-size: 0.78rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.row-badges-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}
.row-otp-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-emerald-subtle);
  color: var(--accent-emerald);
  border: 1px solid var(--accent-emerald-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 6px;
}
.row-att-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  color: var(--text-secondary);
  border: 1px solid var(--card-border);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 6px;
}

/* Feature Badges with SVGs */
.features-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-bottom: 28px;
  width: 100%;
}
@media (min-width: 500px) {
  .features-row {
    grid-template-columns: 1fr 1fr 1fr;
  }
}
.feature-chip {
  background: #ffffff;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.chip-svg-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chip-svg-icon svg {
  width: 18px;
  height: 18px;
}
.icon-bolt {
  background: #eef2ff;
  color: #6366f1;
}
.icon-lock {
  background: #ecfdf5;
  color: #10b981;
}
.icon-shield {
  background: #fdf2f8;
  color: #ec4899;
}
.chip-text {
  display: flex;
  flex-direction: column;
}
.chip-text strong {
  font-size: 0.85rem;
  color: var(--text-title);
  line-height: 1.2;
}
.chip-text span {
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Bottom Sheet */
.sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: flex-end;
  justify-content: center;
}
.sheet-overlay.open {
  display: flex;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.5);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.sheet-container {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 600px;
  height: 92vh;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  z-index: 201;
  animation: slideUpSheet 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 640px) {
  .sheet-overlay {
    align-items: center;
    padding: 20px;
  }
  .sheet-container {
    height: 85vh;
    border-radius: 24px;
  }
}
@keyframes slideUpSheet {
  0% { transform: translateY(100%); }
  100% { transform: translateY(0); }
}

.sheet-handle {
  width: 44px;
  height: 5px;
  background: #cbd5e1;
  border-radius: 3px;
  margin: 10px auto 4px;
}
.sheet-header {
  padding: 8px 16px 12px;
  border-bottom: 1px solid var(--card-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sheet-back-btn {
  background: none;
  border: none;
  color: #6366f1;
  font-family: var(--font-main);
  font-size: 0.92rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  padding: 6px 0;
}
.sheet-back-btn svg {
  width: 18px;
  height: 18px;
}
.sheet-title-wrapper {
  flex: 1;
  min-width: 0;
  text-align: center;
}
.sheet-subject {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sheet-del-btn {
  background: #fee2e2;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.sheet-del-btn svg {
  width: 16px;
  height: 16px;
}

.sheet-meta {
  padding: 12px 18px;
  background: #f8fafc;
  border-bottom: 1px solid var(--card-border);
}
.meta-sender-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.sender-avatar-large {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-gradient);
  color: #fff;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.sender-details {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.sender-name-text {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--text-title);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.recipient-addr-text {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.meta-date-text {
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 600;
  flex-shrink: 0;
}

/* Power Tools Strip */
.sheet-tools-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--card-border);
  background: #ffffff;
  overflow-x: auto;
}
.tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  background: #ffffff;
  font-family: var(--font-main);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-title);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
}
.tool-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.tool-btn svg {
  width: 14px;
  height: 14px;
  color: #6366f1;
}

/* OTP Banner */
.otp-highlight-box {
  margin: 12px 18px 0;
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 1.5px solid #a7f3d0;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.otp-tag-title {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.7rem;
  font-weight: 800;
  color: #047857;
}
.otp-value-large {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: #065f46;
  letter-spacing: 2px;
}
.btn-copy-otp {
  background: #059669;
  color: #ffffff;
  border: none;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(5, 150, 105, 0.3);
}

/* Attachments Panel */
.attachments-drawer-card {
  margin: 12px 18px 0;
  background: #f8fafc;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px 14px;
}
.att-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-title);
  margin-bottom: 8px;
}
.att-chips-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.att-download-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 600;
  color: #6366f1;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.15s;
}
.att-download-pill:hover {
  background: #eef2ff;
  border-color: #818cf8;
}

.sheet-tabs {
  display: flex;
  gap: 8px;
  padding: 8px 18px 0;
  border-bottom: 1px solid var(--card-border);
}
.sheet-tab {
  background: none;
  border: none;
  font-family: var(--font-main);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-muted);
  padding: 8px 12px;
  border-bottom: 2.5px solid transparent;
  cursor: pointer;
}
.sheet-tab.active {
  color: #6366f1;
  border-bottom-color: #6366f1;
}

.sheet-body-content {
  flex: 1;
  padding: 14px 18px;
  overflow-y: auto;
}
.mail-iframe {
  width: 100%;
  height: 100%;
  border: none;
  background: #ffffff;
}
.mail-plain-text {
  font-family: var(--font-main);
  font-size: 0.88rem;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-body);
  line-height: 1.6;
}

/* Modals (Forward & QR) */
.dialog-card, .qr-dialog-box {
  position: relative;
  background: #ffffff;
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 360px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.3);
  z-index: 201;
  padding: 20px;
  box-sizing: border-box;
}
.dialog-header, .qr-dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.dialog-header h3, .qr-dialog-header h3 {
  font-size: 1.05rem;
  font-weight: 800;
}
.close-x {
  background: #f1f5f9;
  border: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
}
.close-x:hover {
  background: #e2e8f0;
}

.input-caption {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.styled-modal-input {
  width: 100%;
  border: 1.5px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: var(--font-main);
  font-size: 0.9rem;
  outline: none;
  box-sizing: border-box;
}
.styled-modal-input:focus {
  border-color: #6366f1;
}
.input-sub {
  font-size: 0.75rem;
  color: var(--text-faint);
  margin-top: 6px;
}
.dialog-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 18px;
}
.btn-cancel {
  background: #f1f5f9;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.82rem;
  cursor: pointer;
}
.btn-primary-action {
  background: var(--primary-gradient);
  color: #fff;
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.82rem;
  cursor: pointer;
}

/* Premium Modern Footer */
.app-footer {
  margin-top: auto;
  padding: 30px 0 24px;
  width: 100%;
}
.footer-card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.025);
  text-align: center;
}
.footer-creator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-body);
}
.footer-creator strong {
  font-weight: 700;
  color: var(--text-title);
  letter-spacing: -0.2px;
}
.heart-pulse-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ef4444;
  animation: heartPulse 1.8s ease-in-out infinite;
}
.heart-icon {
  width: 17px;
  height: 17px;
  filter: drop-shadow(0 2px 5px rgba(239, 68, 68, 0.35));
}
@keyframes heartPulse {
  0%, 100% {
    transform: scale(1);
  }
  14% {
    transform: scale(1.22);
  }
  28% {
    transform: scale(1);
  }
  42% {
    transform: scale(1.15);
  }
  70% {
    transform: scale(1);
  }
}
.instagram-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  padding: 7px 16px;
  border-radius: 9999px;
  color: #1e293b;
  text-decoration: none;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.instagram-pill:hover {
  border-color: #ec4899;
  background: linear-gradient(135deg, #ffffff 0%, #fff1f2 100%);
  color: #be185d;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(236, 72, 153, 0.22);
}
.instagram-pill:active {
  transform: scale(0.97);
}
.insta-icon {
  width: 16px;
  height: 16px;
  color: #e1306c;
  transition: transform 0.2s ease;
}
.instagram-pill:hover .insta-icon {
  transform: rotate(-8deg) scale(1.1);
}
.insta-handle {
  letter-spacing: -0.2px;
}
.external-arrow {
  width: 12px;
  height: 12px;
  opacity: 0.45;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.instagram-pill:hover .external-arrow {
  opacity: 1;
  transform: translate(1px, -1px);
}
.footer-subtext {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.72rem;
  color: var(--text-faint);
  font-weight: 500;
}
.subtext-dot {
  opacity: 0.5;
}

/* Toast Bubble */
.toast-bubble {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: #0f172a;
  color: #ffffff;
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.25);
  opacity: 0;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 300;
  white-space: nowrap;
}
.toast-bubble.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast-bubble svg {
  color: #10b981;
}

/* Trust Perks Row (0 Ads, 100% Free) */
.trust-perks-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: -10px auto 18px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: 9999px;
  width: fit-content;
  max-width: 100%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02);
}
.trust-perk-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--text-body);
}
.trust-perk-icon {
  width: 13px;
  height: 13px;
  color: #10b981;
  flex-shrink: 0;
}
.trust-perk-divider {
  color: #cbd5e1;
  font-size: 0.75rem;
}
.badge-free-highlight {
  font-weight: 700;
  color: #10b981;
}

/* ========================================================
   RESPONSIVE DESIGN FOR MOBILE & SMALL PHONES (<= 480px)
   ======================================================== */
@media (max-width: 480px) {
  /* Layout & Padding */
  .app-layout {
    padding: 0 12px;
  }
  .nav-content {
    padding: 8px 12px;
  }
  .brand-badge-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
  }
  .brand-badge-icon svg {
    width: 17px;
    height: 17px;
  }
  .brand-name {
    font-size: 1.02rem;
  }
  .pro-tag {
    font-size: 8px;
    padding: 1px 4px;
  }
  .brand-subtitle {
    font-size: 0.64rem;
  }
  .online-status {
    height: 24px;
    padding: 0 8px;
    gap: 4px;
  }
  .status-text {
    font-size: 0.68rem;
  }

  /* Hero Block - Sleek & Compact */
  .hero-block {
    padding: 8px 0 10px;
  }
  .hero-chip {
    padding: 3px 9px;
    font-size: 0.68rem;
    margin-bottom: 6px;
  }
  .hero-heading {
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
    line-height: 1.25;
  }
  .hero-lead {
    font-size: 0.76rem;
    line-height: 1.35;
    max-width: 310px;
  }

  /* Main Card */
  .card-glass {
    padding: 12px 10px;
    border-radius: 16px;
  }
  .card-header-row {
    margin-bottom: 8px;
    gap: 6px;
  }
  .card-label {
    font-size: 0.66rem;
    letter-spacing: 0.02em;
  }
  .selector-label {
    font-size: 0.62rem;
  }
  .select-wrapper {
    width: 84px;
  }
  .styled-select {
    padding: 3px 18px 3px 6px;
    font-size: 0.68rem;
    height: 25px;
  }

  /* Address Box */
  .address-box-wrapper {
    padding: 6px 8px;
    gap: 6px;
    border-radius: 10px;
  }
  .address-icon {
    width: 16px;
    height: 16px;
  }
  .address-icon svg {
    width: 15px;
    height: 15px;
  }
  .email-input-field {
    font-size: 0.78rem;
    font-weight: 600;
  }
  .tap-hint {
    font-size: 0.6rem;
    padding: 2px 5px;
    border-radius: 5px;
  }

  /* Big Primary Copy Button */
  .btn-hero-copy {
    height: 40px;
    font-size: 0.8rem;
    margin-top: 8px;
    border-radius: 10px;
  }
  .copy-icon {
    width: 15px;
    height: 15px;
  }

  /* Sub Actions Grid */
  .sub-actions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    margin-top: 8px;
  }
  .btn-sub-action {
    height: 35px;
    font-size: 0.75rem;
    border-radius: 9px;
  }
  .btn-sub-action svg {
    width: 14px;
    height: 14px;
  }

  /* Trust Perks Row */
  .trust-perks-row {
    padding: 4px 10px;
    gap: 8px;
    margin: -6px auto 12px;
  }
  .trust-perk-item {
    font-size: 0.66rem;
    gap: 4px;
  }
  .trust-perk-icon {
    width: 12px;
    height: 12px;
  }

  /* Inbox Card */
  .inbox-card-section {
    margin-bottom: 16px;
  }
  .inbox-card {
    border-radius: 16px;
  }
  .inbox-bar {
    padding: 9px 12px;
  }
  .inbox-title {
    font-size: 0.9rem;
  }
  .badge-count-pill {
    font-size: 0.66rem;
    padding: 1px 5px;
  }
  .inbox-hint {
    font-size: 0.62rem;
  }

  /* Empty State */
  .empty-inbox-box {
    padding: 24px 10px;
  }
  .empty-animation-ring {
    width: 52px;
    height: 52px;
    margin-bottom: 8px;
  }
  .mail-avatar-center {
    width: 38px;
    height: 38px;
  }
  .mail-avatar-center svg {
    width: 18px;
    height: 18px;
  }
  .empty-headline {
    font-size: 0.9rem;
    margin-bottom: 3px;
  }
  .empty-message {
    font-size: 0.74rem;
    max-width: 270px;
  }
  .waiting-indicator {
    padding: 3px 8px;
    font-size: 0.65rem;
    margin-top: 10px;
  }

  /* Feature Badges Row */
  .features-row {
    gap: 6px;
    margin-bottom: 16px;
  }
  .feature-chip {
    padding: 8px 10px;
    border-radius: 10px;
  }
  .chip-svg-icon {
    width: 28px;
    height: 28px;
  }
  .chip-svg-icon svg {
    width: 15px;
    height: 15px;
  }
  .chip-text strong {
    font-size: 0.76rem;
  }
  .chip-text span {
    font-size: 0.64rem;
  }

  /* Footer */
  .app-footer {
    padding: 14px 0 18px;
  }
  .footer-card {
    padding: 12px 10px;
    border-radius: 14px;
    gap: 8px;
  }
  .footer-creator {
    font-size: 0.78rem;
  }
  .heart-icon {
    width: 14px;
    height: 14px;
  }
  .instagram-pill {
    padding: 5px 12px;
    font-size: 0.74rem;
  }
  .insta-icon {
    width: 14px;
    height: 14px;
  }
  .footer-subtext {
    font-size: 0.64rem;
    gap: 5px;
  }
}

/* Extra small devices (<= 360px) */
@media (max-width: 360px) {
  .hero-heading {
    font-size: 1.18rem;
  }
  .email-input-field {
    font-size: 0.74rem;
  }
  .tap-hint {
    display: none;
  }
  .select-wrapper {
    width: 76px;
  }
  .styled-select {
    font-size: 0.64rem;
  }
}
