/* ==========================================================================
   Clean Store - Estilo Dark Premium & Elegante
   ========================================================================== */

:root {
  --bg-black: #06080d;
  --bg-card: #0c101a;
  --bg-card-hover: #111726;
  --bg-card-translucent: rgba(12, 16, 26, 0.85);
  --bg-input: #101522;
  --bg-input-focus: #141b2d;
  
  --border-subtle: #1a2235;
  --border-highlight: #283552;
  --border-glow: rgba(96, 165, 250, 0.4);

  --accent-primary: #60a5fa;
  --accent-secondary: #93c5fd;
  --accent-hover: #3b82f6;
  --accent-glow: rgba(96, 165, 250, 0.35);

  --text-main: #f1f5f9;
  --text-muted: #8e9bb2;
  --text-dim: #54627a;

  --status-green: #10b981;
  --status-green-glow: rgba(16, 185, 129, 0.4);
  --status-orange: #f59e0b;
  --status-red: #ef4444;

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

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-card: none;
  --shadow-glow: 0 0 25px -5px var(--accent-glow);
}

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

html {
  touch-action: manipulation;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body *::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

body {
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body * {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

input,
textarea,
select,
[contenteditable="true"] {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

.messages-list,
.messages-list *,
.email-body-content,
.email-body-content *,
.email-text-view,
.email-text-view *,
#mailboxTopEmail,
#mailboxAccountEmail {
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

body.dark-theme {
  background-color: var(--bg-black);
  color: var(--text-main);
  font-family: var(--font-sans);
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

body.app-booting .main-content {
  visibility: hidden;
}

.app-boot-screen {
  display: none;
}

body.app-booting .app-boot-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  background: #090b0f;
  display: flex;
}

.boot-skeleton-sidebar {
  width: 280px;
  flex: 0 0 280px;
  min-height: 100vh;
  padding: 18px 16px;
  border-right: 1px solid rgba(71, 85, 105, 0.18);
  display: flex;
  flex-direction: column;
}

.boot-skeleton-main { min-width: 0; flex: 1; }
.boot-skeleton-topbar {
  height: 70px;
  padding: 18px 32px;
  border-bottom: 1px solid rgba(71, 85, 105, 0.16);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.boot-skeleton-content { padding: 50px 15.5%; }
.boot-skeleton-brand { display: flex; align-items: center; gap: 12px; }
.boot-skeleton-brand i { width: 38px; height: 38px; border-radius: 11px; }
.boot-skeleton-brand span { width: 112px; height: 16px; border-radius: 7px; }
.boot-skeleton-brand-top i { width: 24px; height: 24px; border-radius: 7px; }
.boot-skeleton-brand-top span { width: 86px; height: 13px; }
.boot-skeleton-card { height: 91px; margin-top: 26px; border-radius: 11px; }
.boot-skeleton-nav { height: 42px; margin-top: 5px; border-radius: 10px; }
.boot-skeleton-nav:first-of-type { margin-top: 27px; }
.boot-skeleton-storage { height: 98px; margin-top: auto; border-radius: 11px; }
.boot-skeleton-account { width: 136px; height: 32px; border-radius: 11px; }
.boot-skeleton-kicker { width: 116px; height: 8px; border-radius: 4px; }
.boot-skeleton-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; }
.boot-skeleton-title { width: min(280px, 42vw); height: 30px; border-radius: 8px; }
.boot-skeleton-actions { width: 278px; height: 36px; border-radius: 9px; }
.boot-skeleton-status { width: 75px; height: 8px; border-radius: 4px; margin-top: 17px; }
.boot-skeleton-panel { border: 1px solid rgba(71, 85, 105, 0.2); border-radius: 15px; margin-top: 28px; }
.boot-skeleton-address { height: 220px; }
.boot-skeleton-empty { height: 100%; display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 20px; }
.boot-skeleton-empty i { width: 72px; height: 72px; border: 1px solid rgba(96, 165, 250, 0.24); border-radius: 18px; }
.boot-skeleton-empty span { width: 290px; max-width: 65%; height: 17px; border-radius: 6px; }
.boot-skeleton-inbox { height: 158px; display: grid; grid-template-columns: 40% 60%; }
.boot-skeleton-inbox-left { border-right: 1px solid rgba(71, 85, 105, 0.18); }
.boot-skeleton-inbox-right { padding: 28px 20px; display: flex; flex-direction: column; gap: 18px; }
.boot-skeleton-inbox-right i { height: 10px; border-radius: 5px; }

.boot-skeleton-brand i,
.boot-skeleton-brand span,
.boot-skeleton-line,
.boot-skeleton-card,
.boot-skeleton-nav,
.boot-skeleton-storage,
.boot-skeleton-account,
.boot-skeleton-kicker,
.boot-skeleton-title,
.boot-skeleton-actions,
.boot-skeleton-status,
.boot-skeleton-panel,
.boot-skeleton-empty i,
.boot-skeleton-empty span,
.boot-skeleton-inbox-left,
.boot-skeleton-inbox-right i {
  background: linear-gradient(110deg, #11151d 8%, #202735 18%, #11151d 33%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.45s linear infinite;
}

@keyframes skeletonShimmer {
  to { background-position: -220% 0; }
}

@media (max-width: 700px) {
  .boot-skeleton-sidebar { width: 74px; flex-basis: 74px; padding: 18px 10px; }
  .boot-skeleton-brand span,
  .boot-skeleton-line,
  .boot-skeleton-card,
  .boot-skeleton-nav,
  .boot-skeleton-storage { opacity: 0.8; }
  .boot-skeleton-content { padding: 30px 20px; }
  .boot-skeleton-topbar { padding: 18px; }
}

/* Ambient Background Glows */
.ambient-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.glow-top-left {
  width: 550px;
  height: 550px;
  background: radial-gradient(circle, #1d4ed8 0%, #1e3a8a 100%);
  top: -120px;
  left: -120px;
}

.glow-top-right {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #1e3a8a 0%, #172554 100%);
  top: 10%;
  right: -100px;
}

.glow-bottom-center {
  width: 650px;
  height: 650px;
  background: radial-gradient(circle, #172554 0%, transparent 70%);
  bottom: -200px;
  left: 30%;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.app-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 36px;
  background: rgba(6, 8, 13, 0.75);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}

/* O acesso começa diretamente na tela dividida de login. */
.app-header {
  display: none;
}

body.on-login-view .main-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

body.on-login-view {
  background: #080a10;
}

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

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.logo-icon-box {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.2), rgba(96, 165, 250, 0.2));
  border: 1px solid rgba(96, 165, 250, 0.4);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-secondary);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo:hover .logo-icon-box {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.45);
}

.logo-svg {
  width: 22px;
  height: 22px;
}

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

.brand-name {
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(to right, #ffffff, #dbeafe);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.brand-badge {
  font-size: 10px;
  font-weight: 700;
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

/* Servidor no Ar Pill */
.server-status-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

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

@keyframes pulse-dot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.status-text {
  font-size: 12px;
  font-weight: 600;
  color: #34d399;
}

/* Nav Switcher */
.header-nav {
  display: flex;
  background: rgba(18, 24, 38, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 4px;
  gap: 4px;
}

.nav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 16px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab svg {
  width: 15px;
  height: 15px;
}

.nav-tab:hover {
  color: var(--text-main);
  background: rgba(255, 255, 255, 0.04);
}

.nav-tab.active {
  background: var(--accent-primary);
  color: #ffffff;
  box-shadow: 0 0 16px rgba(96, 165, 250, 0.4);
}

/* Header Right Buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-action-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 21, 34, 0.6);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-action-btn svg {
  width: 18px;
  height: 18px;
}

.icon-action-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

/* ==========================================================================
   Main Content Layout
   ========================================================================== */

.main-content {
  position: relative;
  z-index: 10;
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 24px 64px;
}

.view-section {
  display: none;
  animation: fadeIn 0.25s ease-out forwards;
}

.view-section.active {
  display: block;
}

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

/* ==========================================================================
   Email Hub Card (Active Address Area)
   ========================================================================== */

.email-hub-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  margin-bottom: 28px;
}

.email-hub-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-secondary), #60a5fa, transparent);
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  flex-wrap: wrap;
  gap: 12px;
}

.hub-label-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hub-indicator-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-secondary);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-secondary);
}

.hub-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #94a3b8;
  text-transform: uppercase;
}

.hub-meta-group {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sync-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.sync-spinner {
  width: 10px;
  height: 10px;
  border: 2px solid rgba(96, 165, 250, 0.3);
  border-top-color: var(--accent-secondary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

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

.timer-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: #cbd5e1;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.timer-badge svg {
  width: 14px;
  height: 14px;
  color: var(--accent-secondary);
}

.btn-renew {
  background: var(--accent-secondary);
  color: #fff;
  border: none;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-renew:hover {
  background: var(--accent-hover);
}

/* Address Showcase Bar */
.address-showcase {
  display: flex;
  gap: 12px;
  align-items: stretch;
  flex-wrap: wrap;
}

.address-input-wrapper {
  flex: 1 1 360px;
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  padding: 4px 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.address-input-wrapper:focus-within {
  border-color: var(--accent-secondary);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.mail-icon-prefix {
  color: var(--accent-secondary);
  margin-right: 12px;
  display: flex;
  align-items: center;
}

.mail-icon-prefix svg {
  width: 20px;
  height: 20px;
}

.address-input-wrapper input {
  width: 100%;
  background: transparent;
  border: none;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  outline: none;
  text-overflow: ellipsis;
}

.address-actions-grid {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-action {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #141b2d;
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 0 16px;
  height: 48px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.btn-action svg {
  width: 16px;
  height: 16px;
}

.btn-action:hover {
  background: #1c253d;
  border-color: #3b4c73;
  transform: translateY(-1px);
}

.btn-action.primary-glow {
  background: var(--accent-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 20px rgba(96, 165, 250, 0.35);
}

.btn-action.primary-glow:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 25px rgba(96, 165, 250, 0.55);
}

/* Simulation and Testing Chips */
.simulation-bar {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.sim-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}

.sim-badge {
  font-size: 10px;
  font-weight: 800;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 2px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.sim-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sim-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(18, 25, 41, 0.8);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.sim-chip:hover {
  background: #1e2842;
  border-color: var(--accent-secondary);
  color: #ffffff;
  transform: scale(1.03);
}

.chip-icon {
  font-size: 13px;
}

/* ==========================================================================
   Inbox Messages Container
   ========================================================================== */

.inbox-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.inbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 28px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  gap: 16px;
}

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

.inbox-title-group h2 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.count-pill {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.inbox-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-md);
  width: 280px;
  transition: border-color 0.2s ease;
}

.search-box:focus-within {
  border-color: var(--border-highlight);
}

.search-box svg {
  width: 14px;
  height: 14px;
  color: var(--text-dim);
}

.search-box input {
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--font-sans);
  font-size: 13px;
  color: #ffffff;
  width: 100%;
}

.btn-refresh {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-refresh svg {
  width: 15px;
  height: 15px;
}

.btn-refresh:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
  border-color: var(--border-highlight);
}

/* Messages List */
.messages-container {
  min-height: 380px;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 24px;
  text-align: center;
}

/* Radar Sweep Animation */
.radar-box {
  width: 120px;
  height: 120px;
  position: relative;
  border-radius: 50%;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(96, 165, 250, 0.15);
}

.circle-1 { width: 40px; height: 40px; }
.circle-2 { width: 80px; height: 80px; }
.circle-3 { width: 120px; height: 120px; }

.radar-sweep {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(96, 165, 250, 0.4) 0deg, transparent 60deg, transparent 360deg);
  animation: radar-rotate 3s linear infinite;
}

@keyframes radar-rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-center-icon {
  position: relative;
  z-index: 2;
  color: var(--accent-secondary);
}

.radar-center-icon svg {
  width: 28px;
  height: 28px;
}

.empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
}

.empty-state p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 520px;
  line-height: 1.6;
  margin-bottom: 28px;
}

.user-highlight-email {
  color: #bfdbfe;
  font-family: var(--font-mono);
  font-weight: 600;
}

.security-pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.sec-pill {
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-full);
}

/* Item de E-mail na Lista */
.messages-list {
  display: flex;
  flex-direction: column;
}

.mail-item {
  display: flex;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  gap: 16px;
  position: relative;
}

.mail-item:last-child {
  border-bottom: none;
}

.mail-item:hover {
  background: var(--bg-card-hover);
}

.mail-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: #64748b;
}

.mail-item.unread {
  background: rgba(34, 197, 94, 0.035);
}

.mail-item.unread::before {
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
}

.sender-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 16px;
  color: #ffffff;
  flex-shrink: 0;
  background: linear-gradient(135deg, #3b82f6, #2563eb);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.mail-sender-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.sender-name {
  font-size: 15px;
  font-weight: 700;
  color: #ffffff;
}

.mail-date {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
}

.mail-subject {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mail-item.unread .mail-subject {
  color: #ffffff;
}

.mail-preview {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.otp-snippet-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #dbeafe;
  padding: 2px 8px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  margin-right: 8px;
}

.mail-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.mail-item:hover .mail-actions {
  opacity: 1;
}

.btn-item-delete {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-item-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.btn-item-action:hover,
.btn-item-action.is-active {
  color: var(--accent-secondary);
  background: rgba(96, 165, 250, 0.1);
}

.btn-item-action.is-active {
  color: #facc15;
}

.btn-item-delete:hover {
  color: var(--status-red);
  background: rgba(239, 68, 68, 0.1);
}

/* ==========================================================================
   VIEW 2: ENTRAR NA CAIXA (RÉPLICA DA IMAGEM DE REFERÊNCIA)
   ========================================================================== */

.split-login-container {
  display: flex;
  min-height: 100vh;
  align-items: stretch;
  justify-content: stretch;
  gap: 0;
  padding: 0;
}

/* Lado Esquerdo: Nitradas / Clean Store Branding */
.login-branding-col {
  flex: 0 0 61%;
  max-width: none;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  padding: 64px;
  background:
    linear-gradient(90deg, rgba(2, 4, 8, 0.12) 0%, rgba(2, 4, 8, 0.04) 62%, rgba(2, 4, 8, 0.18) 100%),
    url('/assets/login-anime-desktop-v2.jpg') center center / cover no-repeat,
    #050608;
}

.brand-pill-box {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: default;
}

.login-brand-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.login-api-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 11px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  border-radius: 9px;
  background: rgba(96, 165, 250, 0.07);
  color: #bfdbfe;
  font: 600 11px var(--font-sans);
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.login-api-link svg { width: 15px; height: 15px; }
.login-api-link:hover { border-color: #93c5fd; background: rgba(96, 165, 250, 0.16); color: #ffffff; }

.pill-mail-icon {
  width: 38px;
  height: 38px;
  background: rgba(96, 165, 250, 0.12);
  border: 1px solid rgba(96, 165, 250, 0.3);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.pill-mail-icon svg {
  width: 20px;
  height: 20px;
}

.pill-brand-text {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.login-headline-group {
  margin: auto 0;
  transform: translateY(8px);
}

.login-hero-title {
  font-size: 66px;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
  transition: opacity 0.45s ease-in-out, transform 0.45s ease-in-out;
}

.platforms-preview {
  width: min(100%, 720px);
  margin-top: 28px;
}

.platforms-title {
  margin: 0 0 11px;
  color: rgba(226, 232, 240, 0.68);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.platforms-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.platform-card {
  min-height: 86px;
  padding: 12px 9px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 10px;
  background: rgba(10, 16, 28, 0.78);
  -webkit-backdrop-filter: blur(16px) saturate(130%);
  backdrop-filter: blur(16px) saturate(130%);
  color: rgba(148, 163, 184, 0.46);
  font: 700 13px var(--font-sans);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 10px 24px rgba(0, 0, 0, 0.2);
}

.platform-card svg {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.platform-card small {
  font-size: 10px;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.42);
}

.platform-card-active {
  border-color: rgba(52, 211, 153, 0.62);
  background: rgba(0, 64, 52, 0.78);
  color: #34d399;
  cursor: pointer;
}

.platform-card-active small {
  color: rgba(110, 231, 183, 0.72);
}

.platform-card-active > svg {
  width: 34px !important;
  height: 34px !important;
  fill: transparent !important;
  background: url('/assets/android-logo.png') center / 66px 43px no-repeat;
}

.platform-card-active > svg > * { display: none; }

.platform-card-active:hover {
  border-color: rgba(52, 211, 153, 0.72);
  background: rgba(0, 82, 66, 0.84);
}

.platform-card:disabled {
  cursor: not-allowed;
}

.platform-card:disabled span { color: rgba(148, 163, 184, 0.58); }
.platform-card:disabled small { color: rgba(148, 163, 184, 0.42); }

.platform-icon-windows { fill: #0078d4 !important; }
.platform-icon-macos { fill: #d8dee9 !important; }
.platform-icon-linux {
  width: 42px !important;
  height: 42px !important;
  fill: transparent !important;
  background: url('/assets/tux-linux.png') center / contain no-repeat;
}

.platform-icon-linux > * { display: none; }

@media (max-width: 640px) {
  .platforms-preview {
    width: 100%;
    margin-top: 15px;
  }

  .platforms-title {
    margin-bottom: 8px;
    font-size: 11px;
  }

  .platforms-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .platform-card {
    min-height: 58px;
    padding: 7px 3px;
    gap: 2px;
    border-radius: 8px;
    font-size: 10px;
  }

  .platform-card svg {
    width: 17px;
    height: 17px;
  }

  .platform-icon-linux {
    width: 30px !important;
    height: 30px !important;
  }

  .platform-card-active > svg {
    width: 26px !important;
    height: 26px !important;
    background-size: 50px 33px;
  }

  .platform-card small {
    font-size: 8px;
  }
}

.login-hero-title.is-changing {
  opacity: 0;
  transform: translateY(6px);
}

.login-hero-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 440px;
}

.login-server-status {
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-status-label {
  font-size: 13px;
  font-weight: 600;
  color: #34d399;
}

/* Lado Direito: Login Card (Fiel ao print) */
.login-form-col {
  flex: 0 0 39%;
  max-width: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 90px;
  border-left: 1px solid #20242d;
  background: #000000;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}

.login-card::before {
  display: none;
}

.login-card-header {
  margin-bottom: 28px;
}

.card-title {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.card-subtitle {
  font-size: 14px;
  color: var(--text-muted);
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.form-error {
  display: block;
  min-height: 0;
  margin-top: 0;
  color: #f87171;
  font-size: 12px;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-3px);
  transition: opacity 0.18s ease, transform 0.18s ease, min-height 0.18s ease, margin-top 0.18s ease;
}

.form-error.visible {
  min-height: 16px;
  margin-top: 7px;
  opacity: 1;
  transform: translateY(0);
}

.form-group input.has-error {
  border-color: #ef4444;
}

.form-group label {
  position: absolute;
  z-index: 1;
  top: 14px;
  left: 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #94a3b8;
  text-transform: uppercase;
  pointer-events: none;
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-with-icon input,
.form-group input,
.form-group select {
  width: 100%;
  height: 69px;
  background: #17191d;
  border: 1px solid #2b2d32;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 14px;
  padding: 31px 16px 9px;
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
}

.input-with-icon input:focus,
.form-group input:focus,
.form-group select:focus {
  border-color: var(--accent-secondary);
  background: #191b20;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15);
}

.btn-toggle-pwd {
  position: absolute;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-toggle-pwd svg {
  width: 18px;
  height: 18px;
}

.btn-login-submit {
  width: 100%;
  background: #60a5fa;
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-login-submit:hover {
  background: #3b82f6;
  box-shadow: none;
  transform: translateY(-1px);
}

.active-email-access-link {
  display: block;
  width: 100%;
  margin: 17px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #93c5fd;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
  transition: color 180ms ease, opacity 180ms ease;
}

.active-email-access-link:hover {
  color: #bfdbfe;
  text-decoration: underline;
}

.active-email-access-link:focus-visible {
  outline: 2px solid #93c5fd;
  outline-offset: 5px;
  border-radius: 4px;
}

.login-terms-consent {
  margin-top: 18px;
}

.terms-checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.45;
  cursor: pointer;
  user-select: none;
}

.terms-checkbox-label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.terms-checkbox-box {
  flex: 0 0 17px;
  width: 17px;
  height: 17px;
  margin-top: 1px;
  border: 1px solid #475569;
  border-radius: 5px;
  background: rgba(15, 20, 34, 0.7);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.terms-checkbox-label input:checked + .terms-checkbox-box {
  border-color: #60a5fa;
  background: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.terms-checkbox-label input:checked + .terms-checkbox-box::after {
  content: '✓';
  display: block;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 15px;
  text-align: center;
}

.terms-checkbox-label input:focus-visible + .terms-checkbox-box {
  outline: 2px solid #93c5fd;
  outline-offset: 3px;
}

.terms-checkbox-copy {
  padding-top: 1px;
}

.terms-inline-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: #bfdbfe;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}

.terms-inline-link:hover {
  color: #dbeafe;
}

.login-terms-consent .form-error {
  margin-left: 27px;
}

.login-card-footer {
  margin-top: 30px;
  padding-top: 0;
  border-top: none;
  text-align: center;
}

.login-card-footer .create-quick-link {
  display: none;
}

.create-quick-link {
  font-size: 13px;
  color: var(--text-muted);
}

.link-btn {
  background: transparent;
  border: none;
  color: #93c5fd;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  margin-left: 4px;
}

.link-btn:hover {
  color: #bfdbfe;
}

.terms-modal-dialog {
  max-width: 600px;
  background: linear-gradient(145deg, #111827 0%, #0d1220 100%);
  border-color: rgba(147, 197, 253, 0.28);
}

.terms-modal-header { padding: 22px 24px; background: rgba(96, 165, 250, 0.07); }
.terms-heading-wrap { display: flex; align-items: center; gap: 13px; }
.terms-heading-icon { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 11px; color: #bfdbfe; background: rgba(96, 165, 250, 0.14); }
.terms-heading-icon svg { width: 20px; height: 20px; }
.terms-heading-wrap h3 { margin-bottom: 4px; }
.terms-heading-wrap p { color: var(--text-muted); font-size: 12px; }
.terms-modal-body { max-height: 62vh; }
.terms-intro-card { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 22px; padding: 13px 14px; border: 1px solid rgba(16, 185, 129, 0.22); border-radius: 12px; background: rgba(16, 185, 129, 0.06); }
.terms-status-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.12); }
.terms-intro-card div { display: grid; gap: 3px; }
.terms-intro-card strong { color: #d1fae5; font-size: 13px; }
.terms-intro-card span:last-child { color: #94a3b8; font-size: 12px; line-height: 1.45; }
.terms-section { padding: 0 0 17px; margin-bottom: 17px; border-bottom: 1px solid rgba(51, 65, 85, 0.58); }
.terms-section:last-of-type { margin-bottom: 0; }
.terms-section h4 { margin-bottom: 7px; color: #e2e8f0; font-size: 13px; font-weight: 700; }
.terms-section p, .terms-updated { color: #94a3b8; font-size: 12px; line-height: 1.65; }
.terms-updated { margin-top: 22px; color: #cbd5e1; }
.terms-modal-footer { justify-content: flex-end; }

/* ==========================================================================
   Modals & Popups
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fadeIn 0.2s ease;
}

.modal-dialog {
  background: #0f1422;
  border: 1px solid #202b42;
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 520px;
  box-shadow: none;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: modalScale 0.2s ease-out;
}

.modal-large {
  max-width: 820px;
  height: min(760px, 88vh);
  max-height: 800px;
  background: #0c111d;
  border-color: rgba(147, 197, 253, 0.25);
  box-shadow: none;
}

@keyframes modalScale {
  from { transform: scale(0.96); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid #1a2236;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: #ffffff;
}

.btn-icon-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: color 0.2s ease;
}

.btn-icon-close:hover {
  color: #ffffff;
}

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

.modal-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.modal-footer {
  padding: 16px 24px;
  background: #0a0f1a;
  border-top: 1px solid #1a2236;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.modal-footer.justify-center {
  justify-content: center;
}

.btn-modal-action {
  padding: 10px 18px;
  background: #171f33;
  color: var(--text-main);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-modal-action:hover {
  background: #202b45;
}

.btn-modal-action.primary-glow {
  background: var(--accent-primary);
  border-color: transparent;
  color: #ffffff;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.4);
}

.btn-modal-action.danger {
  background: rgba(239, 68, 68, 0.15);
  border-color: rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.btn-modal-action.danger:hover {
  background: rgba(239, 68, 68, 0.25);
}

/* Leitor de E-mails Modal Específico */
.modal-header-info {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

#emailModal .modal-header {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.13), rgba(15, 20, 34, 0.96) 54%);
}

#emailModal .modal-header-actions .btn-icon-close {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.55);
}

#emailModal .modal-header-actions .btn-icon-close:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(239, 68, 68, 0.12);
}

#emailModal #deleteEmailBtn {
  min-width: 0;
  padding: 8px 12px;
  gap: 7px;
  font-size: 12px;
}

#emailModal #deleteEmailBtn svg {
  width: 17px;
  height: 17px;
}

#emailModal .modal-body {
  padding: 0;
  background: #0c111d;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

#emailModal .modal-tabs {
  display: none;
}

.sender-avatar-large {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #60a5fa);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.modal-title-wrap {
  min-width: 0;
}

.modal-title-wrap h3 {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.modal-recipient-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  font: inherit;
  margin-top: 5px;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}

.modal-recipient-trigger strong { color: #cbd5e1; font-weight: 600; }

.modal-recipient-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal-recipient-trigger svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: #94a3b8;
  transition: transform 160ms ease;
}

.modal-recipient-trigger[aria-expanded="true"] svg {
  transform: rotate(180deg);
}

.modal-message-details {
  position: absolute;
  top: auto;
  left: auto;
  z-index: 4;
  width: min(360px, calc(100% - 112px));
  padding: 10px 14px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 12px;
  background: #161d2c;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.message-detail-row {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 12px;
  padding: 5px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 11px;
}

.message-detail-row:last-child { border-bottom: 0; }
.message-detail-row span { color: #94a3b8; text-align: right; }
.message-detail-row strong { color: #e2e8f0; overflow-wrap: anywhere; font-weight: 600; }

.modal-sender-line {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  flex-wrap: wrap;
}

.sender-name-tag {
  font-weight: 700;
  color: #cbd5e1;
}

.sender-address-tag {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 12px;
}

.modal-date-tag {
  color: var(--text-dim);
  font-size: 12px;
}

/* OTP Banner no Modal */
.otp-smart-banner {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.15), rgba(96, 165, 250, 0.15));
  border-bottom: 1px solid rgba(96, 165, 250, 0.3);
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.otp-banner-icon {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  color: #facc15;
  flex: 0 0 30px;
}

.otp-banner-icon svg {
  width: 25px;
  height: 25px;
}

.otp-banner-content {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.otp-banner-title {
  font-size: 12px;
  font-weight: 700;
  color: #bfdbfe;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.otp-banner-code {
  font-size: 24px;
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 4px;
  color: #ffffff;
  text-shadow: 0 0 12px rgba(96, 165, 250, 0.5);
}

.btn-copy-otp {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-primary);
  color: #ffffff;
  border: none;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: none;
}

.btn-copy-otp svg {
  width: 16px;
  height: 16px;
}

.btn-copy-otp:hover {
  background: var(--accent-hover);
  box-shadow: none;
}

.modal-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 8px;
}

.modal-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.modal-tab.active {
  background: rgba(96, 165, 250, 0.16);
  color: #ffffff;
  box-shadow: inset 0 -2px 0 #93c5fd;
}

.email-body-content {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0;
  flex: 1;
  min-height: 240px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.email-frame {
  width: 100%;
  height: 100%;
  display: block;
  border: none;
  background: #f4f6fb;
}

.email-text-view {
  width: 100%;
  height: 100%;
  padding: 24px;
  background: #f4f6fb;
  color: #172033;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
  overflow-y: auto;
}

.meta-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #34d399;
}

.meta-tag svg {
  width: 14px;
  height: 14px;
}

/* Credenciais Box */
.credential-field {
  margin-bottom: 16px;
}

.cred-label {
  font-size: 11px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 6px;
}

.cred-val-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #111624;
  border: 1px solid #1f293d;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-family: var(--font-mono);
  font-size: 14px;
  color: #ffffff;
}

.btn-cred-copy {
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.3);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-cred-copy:hover {
  background: var(--accent-primary);
  color: #fff;
}

.cred-alert-box {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(96, 165, 250, 0.08);
  border: 1px solid rgba(96, 165, 250, 0.2);
  padding: 14px;
  border-radius: var(--radius-md);
  font-size: 12px;
  color: #cbd5e1;
  line-height: 1.5;
  margin-top: 20px;
}

.cred-alert-box svg {
  width: 18px;
  height: 18px;
  color: var(--accent-secondary);
  flex-shrink: 0;
  margin-top: 1px;
}

/* QR Code Display */
.qr-code-display {
  width: 200px;
  height: 200px;
  margin: 16px auto;
  background: #ffffff;
  padding: 12px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.qr-code-display svg {
  width: 100%;
  height: 100%;
}

.qr-address-pill {
  font-family: var(--font-mono);
  font-size: 13px;
  color: #dbeafe;
  background: rgba(96, 165, 250, 0.1);
  border: 1px solid rgba(96, 165, 250, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  display: inline-block;
  margin-top: 8px;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  right: auto;
  z-index: 9999;
  width: min(calc(100% - 48px), 440px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  pointer-events: none;
  transform: translateX(-50%);
}

.toast {
  min-width: 0;
  width: fit-content;
  max-width: 100%;
  background: #000000;
  border: 1px solid #2a344b;
  color: #ffffff;
  padding: 13px 16px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 11px;
  box-shadow: none;
  pointer-events: auto;
  animation: slideToast 0.25s ease-out forwards;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.toast.is-hiding {
  opacity: 0;
  transform: translateY(0);
}

.toast-icon {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.toast-icon svg {
  width: 17px;
  height: 17px;
}

.toast-message {
  line-height: 1.35;
}

@media (max-width: 640px) {
  .toast-container {
    bottom: 16px;
    width: min(calc(100% - 32px), 270px);
  }

  .toast {
    max-width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    gap: 8px;
    font-size: 11px;
    line-height: 1.25;
  }

  .toast-icon {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }

  .toast-icon svg {
    width: 14px;
    height: 14px;
  }
}

.toast.success {
  border-left: 3px solid var(--status-green);
}

.toast.success .toast-icon {
  color: #34d399;
  background: rgba(16, 185, 129, 0.14);
}

.toast.info {
  border-left: 3px solid var(--accent-secondary);
}

.toast.info .toast-icon {
  color: #bfdbfe;
  background: rgba(96, 165, 250, 0.14);
}

.toast.error {
  border-color: rgba(248, 113, 113, 0.34);
  border-left: 3px solid #ff4d5e;
  background: #000000;
}

.toast.error .toast-icon {
  color: #ff6b78;
  background: rgba(239, 68, 68, 0.16);
}

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

/* Helpers */
.hide {
  display: none !important;
}

.text-center {
  text-align: center;
}

/* ==========================================================================
   Responsive Adaptations
   ========================================================================== */

@media (max-width: 960px) {
  .split-login-container {
    flex-direction: column;
    height: auto;
    gap: 36px;
  }

  .login-branding-col {
    height: auto;
    text-align: center;
    align-items: center;
  }

  .login-hero-title {
    font-size: 42px;
  }

  .app-header {
    padding: 16px 20px;
  }
}

@media (max-width: 640px) {
  .header-left .server-status-pill {
    display: none;
  }

  .header-nav span {
    display: none;
  }

  .address-actions-grid {
    width: 100%;
  }

  .btn-action {
    flex: 1;
    justify-content: center;
    padding: 0 10px;
  }

  .search-box {
    width: 100%;
  }
}

/* ==========================================================================\n+   MAILBOX INTERNA - VISUAL DA CAIXA AUTENTICADA\n+   ========================================================================== */

body:not(.on-login-view) .main-content {
  max-width: none;
  margin: 0;
  padding: 0;
}

.mailbox-shell {
  min-height: 100vh;
  display: flex;
  background: #090b0f;
  color: #f1f5f9;
}

.mailbox-sidebar {
  width: 280px;
  flex: 0 0 280px;
  min-height: 100vh;
  padding: 18px 16px 22px;
  display: flex;
  flex-direction: column;
  border-right: 1px solid #22252c;
  background: #000000;
}

.mailbox-brand,
.mailbox-topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
}

.mailbox-brand {
  position: relative;
}

.mailbox-close-button {
  width: 28px;
  height: 28px;
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: #7f8aa3;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.mailbox-close-button:hover {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(248, 113, 113, 0.08);
}

.mailbox-close-button svg {
  width: 17px;
  height: 17px;
}

.mailbox-reopen-button {
  position: fixed;
  top: 19px;
  left: 14px;
  z-index: 20;
  width: 34px;
  height: 34px;
  display: none !important;
  align-items: center;
  justify-content: center;
  border: 1px solid #343a4a;
  border-radius: 9px;
  background: #171b2a;
  color: #bfdbfe;
  cursor: pointer;
  box-shadow: none;
}

.mailbox-reopen-button:hover {
  color: #ffffff;
  background: #242a45;
}

.mailbox-reopen-button svg {
  width: 18px;
  height: 18px;
}

.mailbox-brand-mark {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  color: #ffffff;
  background: linear-gradient(145deg, #60a5fa, #1d4ed8);
  font-weight: 900;
  box-shadow: none;
}

.mailbox-brand-mark svg {
  width: 18px;
  height: 18px;
  display: block;
}

.mailbox-account-card {
  margin-top: 28px;
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 1px solid #292d36;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
}

.mailbox-account-card-heading {
  display: flex;
  align-items: center;
  gap: 7px;
}

.mailbox-account-icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #93c5fd;
}

.mailbox-account-icon svg {
  width: 16px;
  height: 16px;
}

.mailbox-account-label,
.mailbox-page-kicker {
  color: #77829a;
  font-size: 9px;
  letter-spacing: 0.16em;
  font-weight: 700;
}

.mailbox-account-card strong {
  width: 100%;
  max-width: none;
  color: #e7eaf1;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: 12px;
}

.mailbox-online,
.mailbox-status {
  color: #35d399;
  font-size: 10px;
}

.mailbox-online i,
.mailbox-status i {
  width: 7px;
  height: 7px;
  display: inline-block;
  border-radius: 50%;
  background: #35d399;
  margin-right: 4px;
}

.mailbox-nav {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.mailbox-nav-item {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8a93a6;
  font: 500 12px var(--font-sans);
  text-align: left;
}

.mailbox-nav-label {
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
  font-size: clamp(9px, 1.05vw, 12px);
  letter-spacing: 0.02em;
  text-align: left !important;
}

.mailbox-nav-item span {
  width: 17px;
  color: #7c86a0;
  text-align: center;
}

.mailbox-nav-item span svg {
  width: 17px;
  height: 17px;
  display: block;
}

.mailbox-nav-item b {
  margin-left: auto;
  min-width: 21px;
  padding: 3px 6px;
  border-radius: 999px;
  background: #eef0f4;
  color: #111318;
  font-size: 10px;
  text-align: center;
}

.mailbox-nav-item.active {
  color: #8a93a6;
  background: rgba(255, 255, 255, 0.09);
}

.mailbox-nav-item.active > span:first-child {
  color: #7c86a0;
}

.mailbox-nav-feature {
  color: #667085;
  cursor: not-allowed;
  opacity: 0.72;
}

.mailbox-nav-feature > span:first-child {
  color: #68738b;
}

.mailbox-nav-feature b {
  min-width: 0;
  padding: 3px 6px;
  background: rgba(148, 163, 184, 0.12);
  color: #7f8aa3;
  font-size: 8px;
  letter-spacing: 0.04em;
}

.mailbox-storage {
  margin-top: auto;
  padding: 16px;
  border: 1px solid #292d36;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}

.mailbox-storage span,
.mailbox-storage small {
  display: block;
  color: #77829a;
  font-size: 9px;
}

.mailbox-storage strong {
  display: block;
  margin: 8px 0 9px;
  color: #dce1eb;
  font-size: 11px;
}

.storage-track {
  height: 5px;
  overflow: hidden;
  border-radius: 999px;
  background: #30343c;
}

.storage-track i {
  display: block;
  width: 0;
  height: 100%;
  background: #34d399;
  border-radius: inherit;
  transition: width 0.35s ease, background-color 0.35s ease;
}

.mailbox-main {
  min-width: 0;
  flex: 1;
}

.mailbox-shell.sidebar-collapsed .mailbox-sidebar {
  width: 0;
  min-width: 0;
  flex-basis: 0;
  padding: 0;
  overflow: hidden;
  border-right: 0;
  opacity: 0;
  pointer-events: none;
  transition: width 0.25s ease, flex-basis 0.25s ease, padding 0.25s ease, opacity 0.18s ease;
}

.mailbox-shell.sidebar-collapsed .mailbox-reopen-button {
  display: inline-flex !important;
}

.mailbox-shell.sidebar-collapsed .mailbox-brand {
  width: 54px;
  flex-direction: column;
  justify-content: center;
  gap: 13px;
}

.mailbox-shell.sidebar-collapsed .mailbox-brand > span:not(.mailbox-brand-mark),
.mailbox-shell.sidebar-collapsed .mailbox-account-label,
.mailbox-shell.sidebar-collapsed .mailbox-account-card strong,
.mailbox-shell.sidebar-collapsed .mailbox-online span,
.mailbox-shell.sidebar-collapsed .mailbox-nav-label,
.mailbox-shell.sidebar-collapsed .mailbox-nav-item b,
.mailbox-shell.sidebar-collapsed .mailbox-storage {
  display: none;
}

.mailbox-shell.sidebar-collapsed .mailbox-close-button {
  position: static;
  margin: 0;
  width: 26px;
  height: 26px;
  border-color: #343a4a;
  background: #171b2a;
}

.mailbox-shell.sidebar-collapsed .mailbox-account-card {
  display: none;
}

.mailbox-shell.sidebar-collapsed .mailbox-account-card-heading {
  justify-content: center;
}

.mailbox-shell.sidebar-collapsed .mailbox-online {
  position: absolute;
  margin-top: 46px;
  font-size: 0;
}

.mailbox-shell.sidebar-collapsed .mailbox-nav {
  margin-top: 22px;
}

.mailbox-shell.sidebar-collapsed .mailbox-nav-item {
  width: 52px;
  justify-content: center;
  padding: 0;
}

.mailbox-shell .mailbox-sidebar {
  transition: width 0.25s ease, flex-basis 0.25s ease, padding 0.25s ease;
}

.mailbox-topbar {
  height: 68px;
  padding: 0 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #252830;
  background: rgba(9, 11, 15, 0.9);
}

.mailbox-topbar-brand .mailbox-brand-mark {
  width: 24px;
  height: 24px;
  border-radius: 7px;
  font-size: 12px;
}

.mailbox-topbar-brand .mailbox-brand-mark svg {
  width: 14px;
  height: 14px;
}

.mailbox-topbar-account {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #8b94a8;
  font: 11px var(--font-mono);
}

#mailboxTopEmail,
#mailboxAccountEmail {
  cursor: pointer;
}

#mailboxTopEmail:hover,
#mailboxAccountEmail:hover {
  color: #ffffff;
}

.mailbox-topbar-account button {
  padding-left: 18px;
  border: 0;
  border-left: 1px solid #2a2d34;
  background: transparent;
  color: #ffffff;
  font: 600 11px var(--font-sans);
  cursor: pointer;
  transition: color 0.2s ease;
}

.mailbox-topbar-account button:hover {
  color: #f87171;
}

.mailbox-page-content {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  padding: 46px 36px 70px;
}

.mailbox-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 11px;
}

.mailbox-page-heading h1 {
  margin: 0;
  color: #f4f5f8;
  font-size: 29px;
  font-weight: 500;
  letter-spacing: -0.04em;
}

.mailbox-page-heading h1 span {
  min-width: 24px;
  display: inline-flex;
  justify-content: center;
  margin-left: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #f0f1f4;
  color: #15171b;
  font-size: 12px;
  vertical-align: middle;
}

.mailbox-page-actions {
  display: flex;
  gap: 9px;
}

.mailbox-icon-button,
.mailbox-refresh-button,
.mailbox-activate-button {
  height: 36px;
  border: 1px solid #343943;
  border-radius: 8px;
  background: transparent;
  color: #aeb6c5;
  font: 11px var(--font-sans);
}

.mailbox-generate-button {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  border: 1px solid rgba(147, 197, 253, 0.42);
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.08);
  color: #bfdbfe;
  font: 11px var(--font-sans);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mailbox-generate-button svg {
  width: 14px;
  height: 14px;
}

.mailbox-generate-button:hover {
  color: #dbeafe;
  border-color: rgba(147, 197, 253, 0.72);
  background: rgba(96, 165, 250, 0.16);
}

.mailbox-icon-button {
  width: 36px;
  font-size: 18px;
}

.mailbox-refresh-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  cursor: pointer;
}

.mailbox-activate-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 13px;
  color: #fbbf24;
  border-color: rgba(251, 191, 36, 0.38);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.mailbox-activate-button svg {
  width: 14px;
  height: 14px;
}

.mailbox-activate-button:hover {
  color: #fcd34d;
  border-color: rgba(251, 191, 36, 0.65);
  background: rgba(251, 191, 36, 0.08);
}

.mailbox-activate-button.is-active {
  color: #34d399;
  border-color: rgba(52, 211, 153, 0.42);
  background: rgba(52, 211, 153, 0.07);
}

.mailbox-activate-button.is-active:hover {
  border-color: rgba(52, 211, 153, 0.7);
  background: rgba(52, 211, 153, 0.12);
}

.mailbox-online.is-inactive,
.mailbox-status.is-inactive {
  color: #fbbf24;
}

.mailbox-online.is-inactive i,
.mailbox-status.is-inactive i {
  background: #fbbf24;
}

.mailbox-status.is-full {
  color: #f87171;
}

.mailbox-status.is-full i {
  background: #ef4444;
}

.mailbox-refresh-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.mailbox-refresh-button.is-refreshing,
.sms-test-button.is-refreshing {
  color: #bfdbfe;
  border-color: rgba(147, 197, 253, 0.55);
  cursor: wait;
}

.mailbox-refresh-button.is-refreshing .mailbox-refresh-icon,
.sms-test-button.is-refreshing .mailbox-refresh-icon {
  transform-box: fill-box;
  transform-origin: center;
  animation: mailbox-refresh-spin 0.75s linear infinite;
}

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

.mailbox-status {
  margin-top: 17px;
}

.mailbox-shell .email-hub-card {
  display: none;
}

.mailbox-shell .inbox-section {
  margin-top: 22px;
  overflow: hidden;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.mailbox-shell .inbox-header {
  display: none;
}

.mailbox-shell .messages-container {
  min-height: 220px;
}

.mailbox-shell .empty-state {
  min-height: 220px;
  padding: 34px 30px;
  border: 1px solid #282c34;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.065), rgba(255, 255, 255, 0.025));
  text-align: left;
  align-items: center;
  justify-content: center;
}

.mailbox-shell .empty-state .radar-box {
  display: flex;
  width: 72px;
  height: 72px;
  margin: 0 0 18px;
  border-radius: 20px;
  background: rgba(96, 165, 250, 0.14);
  border: 1px solid rgba(147, 197, 253, 0.28);
}

.mailbox-shell .empty-state .radar-sweep,
.mailbox-shell .empty-state .radar-circle {
  display: none;
}

.mailbox-shell .empty-state .radar-center-icon svg {
  width: 40px;
  height: 40px;
}

.mailbox-shell .empty-state h3 {
  display: block;
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.48);
  text-align: center;
}

.mailbox-shell .empty-state p {
  display: none;
}

.mailbox-shell .empty-state .security-pills {
  display: none;
}

.mailbox-shell .messages-list {
  gap: 10px;
}

.mailbox-shell .mail-item {
  min-height: 82px;
  padding: 18px 20px;
  border: 1px solid #282c34;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.055);
}

.mailbox-shell .mail-item:last-child {
  border-bottom: 1px solid #282c34;
}

@media (max-width: 760px) {
  .mailbox-sidebar {
    width: 280px;
    flex-basis: 280px;
  }

  .mailbox-topbar {
    padding: 0 22px;
  }

  .mailbox-topbar-account span {
    display: none;
  }

  .mailbox-page-content {
    padding: 34px 20px 50px;
  }
}

/* Android/telefones: ajustes isolados para telas pequenas.
   O layout de desktop acima de 640px permanece intacto. */
@media (max-width: 640px) {
  html,
  body {
    min-width: 0;
    overflow-x: hidden;
  }

  /* No celular, as duas etapas da tela de login usam o mesmo fundo.
     Isso remove a faixa roxa/divisão entre branding e formulário. */
  .split-login-container {
    background:
      linear-gradient(180deg, rgba(5, 7, 12, 0.08) 0%, rgba(5, 7, 12, 0.18) 48%, #080a10 78%, #080a10 100%),
      url('/assets/login-anime-mobile-v2.jpg') top center / 100% auto no-repeat,
      #050608;
  }

  .login-branding-col {
    background: transparent;
  }

  .login-form-col {
    background: #000000;
  }

  .split-login-container {
    min-height: 100svh;
  }

  .login-branding-col {
    flex: 0 0 auto;
    min-height: 31svh;
    height: auto;
    padding: 24px 24px 16px;
  }

  .login-headline-group {
    margin: clamp(28px, 5svh, 58px) 0 0;
    transform: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .login-hero-title {
    order: 1;
    width: 100%;
    max-width: none;
    margin-bottom: 10px;
    font-size: clamp(28px, 9vw, 48px);
    line-height: 1.04;
    letter-spacing: -0.05em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: clip;
  }

  .login-hero-sub {
    max-width: 31rem;
    font-size: 14px;
  }

  .platforms-preview {
    order: 2;
    display: block;
    width: 100%;
    margin: 15px 0 0;
    position: relative;
    z-index: 1;
  }

  .login-form-col {
    flex: 1 1 auto;
    min-height: 60svh;
    padding: 20px 24px 42px;
    border-top: 0;
    border-left: 0;
  }

  .login-card {
    max-width: none;
  }

  .login-card-header {
    margin-bottom: 22px;
  }

  .card-title {
    font-size: 26px;
  }

  .login-form {
    gap: 16px;
  }

  .input-with-icon input,
  .form-group input,
  .form-group select {
    height: 62px;
    padding: 29px 14px 8px;
  }

  .form-group label {
    top: 12px;
    left: 16px;
    font-size: 10px;
  }

  .btn-login-submit {
    min-height: 50px;
    margin-top: 4px;
  }

  /* Caixa autenticada: sidebar compacto por padrão no telefone. */
  .mailbox-sidebar {
    width: 58px;
    flex: 0 0 58px;
    padding: 12px 5px 16px;
  }

  .mailbox-brand {
    width: 48px;
    flex-direction: column;
    justify-content: center;
    gap: 13px;
  }

  .mailbox-brand-mark {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 14px;
  }

  .mailbox-brand-mark svg {
    width: 17px;
    height: 17px;
  }

  .mailbox-brand > span:not(.mailbox-brand-mark),
  .mailbox-account-label,
  .mailbox-account-card strong,
  .mailbox-online span,
  .mailbox-nav-label,
  .mailbox-nav-item b,
  .mailbox-storage {
    display: none;
  }

  .mailbox-close-button {
    width: 24px;
    height: 24px;
    margin: 0;
    border-color: #343a4a;
    background: #171b2a;
  }

  .mailbox-account-card {
    display: none;
  }

  .mailbox-account-card-heading {
    justify-content: center;
  }

  .mailbox-online {
    position: absolute;
    margin-top: 36px;
    font-size: 0;
  }

  .mailbox-nav {
    margin-top: 22px;
    gap: 4px;
  }

  .mailbox-nav-item {
    width: 44px;
    min-height: 40px;
    justify-content: center;
    padding: 0;
  }

  .mailbox-nav-item span {
    width: 16px;
  }

  .mailbox-nav-item span svg {
    width: 15px;
    height: 15px;
  }

  .mailbox-topbar {
    height: 60px;
    padding: 0 14px;
  }

  .mailbox-topbar-brand strong {
    font-size: 14px;
  }

  .mailbox-topbar-account {
    gap: 0;
  }

  .mailbox-topbar-account span {
    display: none;
  }

  .mailbox-topbar-account button {
    padding-left: 12px;
    font-size: 10px;
  }

  .mailbox-page-content {
    padding: 26px 14px 42px;
  }

  .mailbox-page-heading {
    align-items: flex-start;
    gap: 10px;
    flex-wrap: wrap;
  }

  .mailbox-page-heading h1 {
    flex: 0 0 100%;
    min-width: 100%;
    white-space: nowrap;
    font-size: 20px;
    letter-spacing: -0.045em;
  }

  .mailbox-page-heading h1 span {
    min-width: 21px;
    margin-left: 4px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .mailbox-page-actions {
    width: 100%;
    flex-shrink: 0;
    gap: 5px;
    justify-content: flex-start;
  }

  .mailbox-refresh-button {
    width: auto;
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mailbox-activate-button {
    width: auto;
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mailbox-generate-button {
    width: auto;
    height: 34px;
    padding: 0 10px;
    font-size: 11px;
  }

  .mailbox-refresh-button .mailbox-refresh-icon {
    width: 17px;
    height: 17px;
  }

  .mailbox-shell .mail-item {
    min-height: 88px;
    padding: 14px 10px;
    gap: 10px;
    align-items: center;
    border-radius: 14px;
    overflow: hidden;
  }

  .mailbox-shell .messages-container {
    min-height: 248px;
  }

  .mailbox-shell .empty-state {
    min-height: 248px;
    padding: 24px 20px;
    border-radius: 14px;
  }

  .mailbox-shell .empty-state .radar-box {
    width: 72px;
    height: 72px;
    margin-bottom: 16px;
  }

  .mailbox-shell .empty-state h3 {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
  }

  .mailbox-shell .empty-state p {
    font-size: 13px;
    line-height: 1.55;
  }

  .mailbox-shell .sender-avatar {
    width: 38px;
    height: 38px;
    font-size: 14px;
  }

  .mailbox-shell .sender-name {
    max-width: 62%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
  }

  .mailbox-shell .mail-date {
    flex: 0 0 auto;
    font-size: 9px;
  }

  .mailbox-shell .mail-subject {
    margin-top: 5px;
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mailbox-shell .mail-preview {
    margin-top: 5px;
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mailbox-shell .mail-actions {
    opacity: 1;
  }

  .mailbox-shell .btn-item-delete {
    padding: 8px 4px;
  }

  .mailbox-shell .mail-actions {
    flex: 0 0 auto;
    gap: 0;
  }
}

/* Sidebar aberta no celular: restaura o mesmo conteúdo visível do desktop. */
@media (max-width: 640px) {
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    width: 286px;
    flex-basis: 286px;
    min-height: 100svh;
    padding: 18px 16px 22px;
    z-index: 30;
    overflow-y: auto;
    box-shadow: 16px 0 34px rgba(0, 0, 0, 0.3);
    background: #000000;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-brand {
    width: 100%;
    min-height: 32px;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-brand > span:not(.mailbox-brand-mark),
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-account-label,
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-account-card strong,
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-online span,
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-label,
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-item b,
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-storage {
    display: initial;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-account-card {
    display: block;
  }

  /* Endereços com o domínio completo precisam caber no card no celular. */
  .mailbox-shell:not(.sidebar-collapsed) .mailbox-account-card strong {
    display: block;
    width: 100%;
    max-width: none;
    overflow: visible;
    text-overflow: clip;
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: normal;
    line-height: 1.35;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-brand-mark {
    width: 32px;
    height: 32px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-close-button {
    width: 28px;
    height: 28px;
    margin-left: 0;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav {
    margin-top: 22px;
    gap: 5px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-item {
    width: 100%;
    min-height: 42px;
    justify-content: flex-start;
    padding: 0 12px;
    font-size: 12px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-label {
    font-size: 12px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-item span {
    width: 17px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-item span svg {
    width: 17px;
    height: 17px;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-nav-item b {
    display: block;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-online {
    position: static;
    margin-top: 0;
    font-size: 10px;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 1;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-online i {
    flex: 0 0 7px;
    margin-right: 0;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-storage {
    display: block;
  }

  .mailbox-shell:not(.sidebar-collapsed) .mailbox-reopen-button {
    display: none;
  }
}

@media (max-width: 640px) {
  #emailModal.modal-overlay {
    padding: 10px;
    align-items: center;
  }

  #emailModal .modal-large {
    width: 100%;
    height: min(720px, calc(100svh - 20px));
    border-radius: 18px;
  }

  #emailModal .modal-header {
    padding: 16px;
  }

  #emailModal .modal-header-info {
    gap: 11px;
  }

  #emailModal .sender-avatar-large {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  #emailModal .modal-title-wrap h3 {
    font-size: 15px;
  }

  #emailModal .modal-recipient-trigger {
    font-size: 10px;
  }

  #emailModal .modal-message-details {
    top: auto;
    left: auto;
    width: calc(100% - 84px);
    padding: 9px 11px;
  }

  #emailModal .message-detail-row {
    grid-template-columns: 66px minmax(0, 1fr);
    gap: 8px;
    font-size: 11px;
  }

  #emailModal .modal-sender-line {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2px;
    font-size: 11px;
  }

  #emailModal .sender-address-tag,
  #emailModal .modal-date-tag {
    font-size: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #emailModal .modal-body {
    padding: 0;
  }

  #emailModal .modal-tabs {
    margin-bottom: 10px;
  }

  #emailModal .email-body-content {
    min-height: 180px;
  }

  #emailModal .modal-footer {
    padding: 12px;
    gap: 8px;
  }

  #emailModal .modal-footer-left {
    margin-right: auto;
  }

  #emailModal .btn-modal-action {
    padding: 9px 12px;
    font-size: 12px;
  }

  #emailModal .meta-tag {
    font-size: 10px;
  }

  /* No celular, as plataformas ficam depois de todo o painel e do rodapé da API. */
  .split-login-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .login-branding-col {
    display: contents;
  }

  .login-brand-top {
    order: 1;
    padding: 24px 24px 0;
  }

  .login-headline-group {
    display: contents;
  }

  .login-hero-title {
    order: 2;
    width: auto;
    align-self: stretch;
    box-sizing: border-box;
    margin: clamp(28px, 5svh, 58px) 24px 10px;
    min-height: 1.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .login-form-col {
    order: 3;
    min-height: 0;
    flex: 0 0 auto;
    padding-bottom: 0;
  }

  .platforms-preview {
    order: 4;
    padding: 0 16px 20px;
    margin: 10px 0 0;
    width: min(100%, 294px);
    box-sizing: border-box;
    align-self: center;
  }

  .platforms-title {
    margin-bottom: 7px;
    text-align: center;
    font-size: 10px;
    letter-spacing: -0.02em;
    white-space: nowrap;
  }

  .platforms-grid {
    gap: 5px;
  }

  .platform-card {
    min-height: 76px;
    height: 76px;
    max-height: none;
    padding: 8px 4px;
    overflow: visible;
  }

  .platform-card > span,
  .platform-card > small {
    white-space: nowrap;
  }

  .platform-card-active > svg,
  .platform-icon-linux {
    flex: 0 0 auto;
  }

  .terms-modal-dialog {
    max-height: calc(100svh - 28px);
  }

  .terms-modal-header {
    padding: 17px 18px;
  }

  .terms-modal-body {
    padding: 18px;
    max-height: calc(100svh - 190px);
  }

  .terms-modal-footer {
    padding: 12px 18px;
  }

  .terms-modal-footer .btn-modal-action {
    flex: 1;
  }
}

/* Telas internas de informação e documentação da API */
.info-view {
  min-height: calc(100vh - 140px);
}

.info-page-shell,
.api-docs-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}

.info-page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.info-page-kicker,
.info-eyebrow,
.api-sidebar-label {
  color: #93c5fd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.info-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(147, 197, 253, 0.22);
  border-radius: 9px;
  background: rgba(15, 20, 34, 0.58);
  color: #cbd5e1;
  font: 600 12px var(--font-sans);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.info-back-btn:hover { border-color: #93c5fd; color: #ffffff; background: rgba(96, 165, 250, 0.12); }
.info-back-btn span { font-size: 17px; line-height: 12px; }

.info-page-hero {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.info-page-hero > div:last-child { flex: 1; }
.info-hero-icon { display: grid; flex: 0 0 54px; width: 54px; height: 54px; place-items: center; border: 1px solid rgba(147, 197, 253, 0.3); border-radius: 16px; color: #bfdbfe; background: rgba(96, 165, 250, 0.13); }
.info-hero-icon svg { width: 26px; height: 26px; }
.info-page-hero h1 { margin: 8px 0 10px; color: #f8fafc; font-size: clamp(28px, 4vw, 42px); letter-spacing: -0.04em; }
.info-page-hero p { color: #94a3b8; font-size: 14px; line-height: 1.7; }

.terms-page-grid { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 20px; align-items: start; }
.info-content-card, .info-side-card { border: 1px solid rgba(71, 85, 105, 0.46); border-radius: 16px; background: rgba(12, 16, 26, 0.72); }
.terms-main-card { padding: 26px; }
.terms-page-section { display: grid; grid-template-columns: 38px 1fr; gap: 15px; padding: 0 0 22px; margin: 0 0 22px; border-bottom: 1px solid rgba(51, 65, 85, 0.5); }
.terms-page-section:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.terms-number { color: #93c5fd; font: 700 12px var(--font-mono); }
.terms-page-section h2 { margin-bottom: 7px; color: #f1f5f9; font-size: 15px; }
.terms-page-section p, .info-side-card p { color: #94a3b8; font-size: 13px; line-height: 1.7; }
.info-side-card { position: sticky; top: 24px; padding: 22px; }
.info-side-icon { display: grid; width: 34px; height: 34px; margin-bottom: 17px; place-items: center; border-radius: 10px; color: #6ee7b7; background: rgba(16, 185, 129, 0.12); font-weight: 800; }
.info-side-card h2 { margin-bottom: 8px; color: #f1f5f9; font-size: 16px; }
.btn-info-primary { margin-top: 18px; padding: 11px 15px; border: 1px solid rgba(147, 197, 253, 0.45); border-radius: 9px; background: #60a5fa; color: #ffffff; font: 700 12px var(--font-sans); cursor: pointer; box-shadow: 0 8px 24px rgba(96, 165, 250, 0.16); transition: background 180ms ease, transform 180ms ease; }
.btn-info-primary:hover { background: #3b82f6; transform: translateY(-1px); }

.api-hero { display: block; max-width: 100%; padding: 16px 0 24px; border: 0; border-radius: 0; background: transparent; text-align: center; }
.api-hero > div:first-child { max-width: 1040px; margin: 0 auto; }
.api-hero h1 { max-width: 100%; margin: 10px auto 12px; color: #f8fafc; font-size: clamp(24px, 3.3vw, 38px); line-height: 1.12; letter-spacing: -0.045em; }
.api-hero p { max-width: 760px; margin: 0 auto; color: #94a3b8; font-size: 14px; line-height: 1.7; }
.api-hero-actions { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 22px; }
.api-status-chip { display: inline-flex; align-items: center; gap: 7px; color: #94a3b8; font-size: 11px; }
.api-status-chip i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.1); }
.api-generate-key-btn { margin: 0; padding: 11px 17px; border: 1px solid rgba(147, 197, 253, 0.5); border-radius: 9px; background: #60a5fa; color: #ffffff; font: 700 12px var(--font-sans); cursor: pointer; box-shadow: none; transition: background 180ms ease, border-color 180ms ease, transform 180ms ease; }
.api-generate-key-btn:hover { border-color: #34d399; background: #10b981; transform: translateY(-1px); }
.api-hero-visual { display: none; }
.api-hero-visual span { color: #6ee7b7; font-size: 10px; font-weight: 700; }
.api-hero-visual strong { color: #e2e8f0; font-size: 12px; }
.api-hero-visual small { grid-column: 2; margin-top: -4px; color: #64748b; font-size: 10px; }
.api-layout { display: block; margin-top: 34px; }
.api-content { min-width: 0; }
.api-doc-section { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 16px; padding: 0 0 34px; margin-bottom: 34px; border-bottom: 1px solid rgba(51, 65, 85, 0.5); scroll-margin-top: 26px; }
.api-section-index { color: #93c5fd; font: 700 12px var(--font-mono); }
.api-doc-section h2 { margin-bottom: 8px; color: #f1f5f9; font-size: 20px; }
.api-doc-section p { color: #94a3b8; font-size: 13px; line-height: 1.7; }
.api-doc-section code, .api-endpoint-row code { color: #bfdbfe; font-family: var(--font-mono); font-size: 11px; }
.api-flow-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 19px; }
.api-flow-steps div { display: grid; gap: 4px; padding: 13px; border: 1px solid rgba(71, 85, 105, 0.45); border-radius: 11px; background: rgba(15, 23, 42, 0.58); }
.api-flow-steps b { color: #93c5fd; font: 700 11px var(--font-mono); }
.api-flow-steps span { color: #e2e8f0; font-size: 12px; font-weight: 700; }
.api-flow-steps small { color: #64748b; font: 10px var(--font-mono); }
.api-code-card { overflow: hidden; margin-top: 17px; border: 1px solid rgba(71, 85, 105, 0.55); border-radius: 12px; background: #080c15; }
.api-code-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 13px; border-bottom: 1px solid rgba(71, 85, 105, 0.4); color: #94a3b8; font: 10px var(--font-mono); }
.api-copy-btn { padding: 5px 9px; border: 1px solid rgba(147, 197, 253, 0.32); border-radius: 6px; background: rgba(96, 165, 250, 0.08); color: #bfdbfe; font: 600 10px var(--font-sans); cursor: pointer; }
.api-copy-btn:hover { border-color: #34d399; background: #10b981; color: #ffffff; }
.api-code-card pre { overflow-x: auto; margin: 0; padding: 16px; color: #cbd5e1; font: 11px/1.75 var(--font-mono); white-space: pre; }
.api-code-card code { color: #d7e0ee; }
.api-code-card .code-keyword { color: #ff7ab2; }
.api-code-card .code-variable { color: #f8f8f2; }
.api-code-card .code-property { color: #8be9fd; }
.api-code-card .code-function { color: #f1fa8c; }
.api-code-card .code-string { color: #a8e6a3; }
.api-code-card .code-number { color: #93c5fd; }
.api-code-card .code-operator { color: #60a5fa; }
.api-code-card .code-regex { color: #ffb86c; }
.api-code-card .code-command { color: #8be9fd; }
.api-code-card .code-flag { color: #60a5fa; }
.api-code-card .code-comment { color: #6272a4; }
.api-endpoint-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 9px; padding: 11px 13px; border: 1px solid rgba(71, 85, 105, 0.42); border-radius: 9px; background: rgba(15, 23, 42, 0.46); }
.api-endpoint-row span { color: #64748b; font-size: 11px; }
.api-endpoint-row.danger-row code { color: #fda4af; }
.api-callout { display: grid; gap: 5px; margin-top: 18px; padding: 14px; border-left: 3px solid #f59e0b; border-radius: 8px; background: rgba(245, 158, 11, 0.07); }
.api-callout strong { color: #fcd34d; font-size: 12px; }
.api-callout span { color: #a8a29e; font-size: 12px; line-height: 1.6; }

.api-key-overlay { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(3, 6, 14, 0.78); backdrop-filter: blur(14px); }
.api-key-dialog { position: relative; width: min(100%, 500px); padding: 30px; border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 18px; background: linear-gradient(145deg, #111827, #0c1220); animation: modalScale 180ms ease-out; }
.api-key-close { position: absolute; top: 14px; right: 15px; width: 30px; height: 30px; border: 1px solid rgba(148, 163, 184, 0.2); border-radius: 8px; background: transparent; color: #94a3b8; font-size: 22px; line-height: 20px; cursor: pointer; }
.api-key-close:hover { color: #ffffff; border-color: #93c5fd; }
.api-key-icon { display: grid; width: 44px; height: 44px; margin-bottom: 18px; place-items: center; border: 1px solid rgba(147, 197, 253, 0.35); border-radius: 12px; color: #bfdbfe; background: rgba(96, 165, 250, 0.13); }
.api-key-icon svg { width: 23px; height: 23px; }
.api-key-dialog h2 { margin: 9px 0 9px; color: #f8fafc; font-size: 23px; }
.api-key-description { color: #94a3b8; font-size: 13px; line-height: 1.65; }
.api-key-warning { display: flex; align-items: flex-start; gap: 11px; margin-top: 20px; padding: 14px; border: 1px solid rgba(245, 158, 11, 0.32); border-radius: 11px; background: rgba(245, 158, 11, 0.07); }
.api-key-warning-icon { display: grid; flex: 0 0 21px; width: 21px; height: 21px; place-items: center; border-radius: 50%; color: #0f172a; background: #fbbf24; font-size: 13px; font-weight: 800; }
.api-key-warning strong { color: #fde68a; font-size: 12px; }
.api-key-warning p { margin-top: 5px; color: #c4b5a0; font-size: 11px; line-height: 1.55; }
.api-key-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 23px; }
.api-key-primary, .api-key-secondary { padding: 10px 15px; border-radius: 8px; font: 700 12px var(--font-sans); cursor: pointer; }
.api-key-primary { border: 1px solid #60a5fa; background: #60a5fa; color: #ffffff; box-shadow: none; }
.api-key-primary:hover { border-color: #34d399; background: #10b981; }
.api-key-primary:disabled { cursor: wait; opacity: 0.7; }
.api-key-secondary { border: 1px solid rgba(148, 163, 184, 0.25); background: transparent; color: #cbd5e1; }
.api-key-secondary:hover { border-color: #93c5fd; color: #ffffff; }
.api-key-result { margin-top: 20px; padding: 14px; border: 1px solid rgba(52, 211, 153, 0.3); border-radius: 11px; background: rgba(16, 185, 129, 0.06); }
.api-key-result-label { display: block; margin-bottom: 8px; color: #6ee7b7; font-size: 10px; font-weight: 800; letter-spacing: 0.15em; }
.api-key-value-row { display: flex; align-items: center; gap: 8px; }
.api-key-value-row code { min-width: 0; flex: 1; overflow-x: auto; color: #f8fafc; font: 600 12px var(--font-mono); white-space: nowrap; }
.api-key-value-row button { flex: 0 0 auto; padding: 6px 9px; border: 1px solid rgba(52, 211, 153, 0.34); border-radius: 6px; background: rgba(16, 185, 129, 0.1); color: #6ee7b7; font: 600 10px var(--font-sans); cursor: pointer; }
.api-key-value-row .api-key-icon-btn { display: grid; width: 29px; height: 27px; padding: 0; place-items: center; border-color: rgba(148, 163, 184, 0.28); background: rgba(148, 163, 184, 0.08); color: #94a3b8; }
.api-key-value-row .api-key-icon-btn:hover { border-color: #93c5fd; color: #dbeafe; }
.api-key-icon-btn svg { width: 15px; height: 15px; }
.api-key-result p { margin-top: 9px; color: #94a3b8; font-size: 11px; }

@media (max-width: 760px) {
  .info-page-topbar { margin-bottom: 22px; }
  .info-page-kicker { display: none; }
  .info-page-hero { display: block; text-align: left; }
  .info-hero-icon { margin-bottom: 14px; }
  .terms-page-grid, .api-hero, .api-layout { grid-template-columns: 1fr; }
  .info-side-card { position: static; }
  .api-hero { padding: 16px 0 18px; }
  .api-hero-visual { display: none; }
  .api-flow-steps { grid-template-columns: 1fr; }
  .api-doc-section { grid-template-columns: 28px minmax(0, 1fr); gap: 9px; }
  .api-endpoint-row { align-items: flex-start; flex-direction: column; gap: 5px; }
}

/* Evita qualquer corte horizontal no guia quando aberto em Android. */
.api-docs-shell,
.api-content,
.api-doc-section,
.api-doc-section > div,
.api-hero,
.api-code-card {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 640px) {
  .info-view { width: 100%; overflow-x: hidden; }
  .api-docs-shell { width: 100%; padding: 0 24px; overflow-x: hidden; }
  .api-hero h1 { max-width: 100%; font-size: clamp(25px, 7.8vw, 34px); overflow-wrap: anywhere; word-break: normal; }
  .api-hero p, .api-doc-section p { max-width: 100%; overflow-wrap: anywhere; }
  .api-layout { gap: 22px; }
  .api-code-card pre { width: 100%; max-width: 100%; padding: 13px; font-size: 10px; -webkit-overflow-scrolling: touch; }
  .api-code-head { min-width: 0; }
  .api-code-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .api-flow-steps, .api-endpoint-row { max-width: 100%; }
  .api-key-overlay { padding: 14px; }
  .api-key-dialog { padding: 24px 19px; }
  .api-key-actions { flex-direction: column-reverse; }
  .api-key-primary, .api-key-secondary { width: 100%; }
}

.mailbox-nav-feature {
  color: #a7b3c7;
  cursor: pointer;
  opacity: 1;
}

.mailbox-nav-feature > span:first-child {
  color: #93c5fd;
}

.mailbox-nav-feature b {
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.mailbox-nav-feature.active {
  color: #e8f3ff;
  background: rgba(96, 165, 250, 0.1);
}

.mailbox-nav-feature.active > span:first-child {
  color: #bfdbfe;
}

.mailbox-status.sms-demo-status {
  color: #93c5fd;
}

.mailbox-status.sms-demo-status i {
  background: #60a5fa;
}

/* SMS Virtual: cartões de região e painéis inspirados na referência SMS Rápido. */
.sms-dashboard-view {
  position: relative;
  margin-top: 22px;
  animation: fadeIn 0.25s ease-out;
}

.sms-page-skeleton {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: flex;
  flex-direction: column;
  padding: 46px 36px 70px;
  background: #000000;
  pointer-events: auto;
}

.mailbox-page-content.is-sms-loading > :not(.sms-page-skeleton) {
  visibility: hidden;
}

.mailbox-page-content.is-sms-loading > .sms-page-skeleton {
  visibility: visible;
}

.sms-skeleton-kicker,
.sms-skeleton-title,
.sms-skeleton-actions,
.sms-skeleton-status,
.sms-skeleton-notice,
.sms-skeleton-country,
.sms-skeleton-card i,
.sms-empty-loading-icon,
.sms-empty-loading-line {
  background: linear-gradient(110deg, #151b25 8%, #3a4a60 18%, #151b25 33%);
  background-size: 220% 100%;
  animation: skeletonShimmer 1.45s linear infinite;
}

.sms-skeleton-kicker {
  width: 132px;
  height: 8px;
  border-radius: 4px;
}

.sms-skeleton-heading-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 20px;
}

.sms-skeleton-title {
  width: min(250px, 45%);
  height: 29px;
  border-radius: 8px;
}

.sms-skeleton-actions {
  width: 148px;
  height: 36px;
  border-radius: 9px;
}

.sms-skeleton-status {
  width: 78px;
  height: 8px;
  margin-top: 17px;
  border-radius: 4px;
}

.sms-skeleton-notice {
  height: 64px;
  margin-top: 22px;
  border: 1px solid rgba(71, 85, 105, 0.2);
  border-radius: 12px;
  background-color: #11151d;
}

.sms-skeleton-panel {
  border: 1px solid rgba(71, 85, 105, 0.22);
  border-radius: 15px;
  background-color: #11151d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 24px rgba(0, 0, 0, 0.22);
}

.sms-skeleton-country {
  height: 150px;
  margin-top: 15px;
}

.sms-skeleton-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
  margin-top: 14px;
}

.sms-skeleton-card {
  display: flex;
  min-height: 292px;
  flex-direction: column;
  gap: 13px;
  padding: 21px;
}

.sms-skeleton-card i {
  display: block;
  width: 78%;
  height: 10px;
  border-radius: 5px;
}

.sms-skeleton-card i:first-child {
  width: 42%;
  height: 18px;
  margin-bottom: 6px;
}

.sms-skeleton-card i:nth-child(3) {
  width: 92%;
  margin-top: 18px;
}

.sms-skeleton-card i:last-child {
  width: 56%;
}

.sms-empty-state.is-loading {
  border-style: solid;
  border-color: #2b374a;
  background: #11151d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 10px 22px rgba(0, 0, 0, 0.2);
}

.sms-empty-state.is-loading .sms-empty-content {
  display: none;
}

.sms-empty-loading {
  display: flex;
  width: min(290px, 100%);
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.sms-empty-loading-icon {
  width: 42px;
  height: 42px;
  margin-bottom: 3px;
  border-radius: 13px;
}

.sms-empty-loading-line {
  display: block;
  height: 10px;
  border-radius: 5px;
}

.sms-empty-loading-line-wide {
  width: 68%;
}

.sms-empty-loading-line-short {
  width: 48%;
}

.sms-page-header {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
  padding: 19px 20px;
  overflow: hidden;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 18px;
  background: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 14px 34px rgba(0, 0, 0, 0.14);
}

.sms-page-header::after {
  position: absolute;
  right: 7%;
  bottom: -34px;
  color: rgba(147, 197, 253, 0.07);
  content: '✉';
  font-size: 132px;
  line-height: 1;
  pointer-events: none;
  transform: rotate(-12deg);
}

.sms-page-header > div,
.sms-page-header > .sms-demo-chip {
  position: relative;
  z-index: 1;
}

.sms-page-header > .sms-demo-chip {
  transform: translateY(-12px);
}

@media (min-width: 561px) {
  .sms-page-header > .sms-demo-chip {
    align-self: flex-start;
    top: -8px;
    transform: none;
  }
}

.sms-kicker {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #8bbcf5;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.sms-kicker i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 11px rgba(96, 165, 250, 0.8);
}

.sms-page-header h2 {
  margin-top: 10px;
  color: #f3f7fc;
  font-size: clamp(22px, 2.6vw, 29px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}

.sms-page-header p {
  margin-top: 8px;
  color: #9aa8bd;
  font-size: 13px;
  line-height: 1.6;
}

.sms-demo-chip {
  display: inline-flex;
  min-height: 30px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 999px;
  background: rgba(96, 165, 250, 0.08);
  color: #a9c8ef;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
  box-shadow: 0 0 18px rgba(96, 165, 250, 0.08);
}

.sms-demo-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #60a5fa;
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.55);
}

.sms-demo-chip.is-online {
  border-color: rgba(52, 211, 153, 0.32);
  background: rgba(16, 185, 129, 0.1);
  color: #86efac;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.1);
}

.sms-demo-chip.is-online i {
  background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.62), 0 0 11px rgba(52, 211, 153, 0.85);
  animation: sms-status-pulse 1.55s ease-in-out infinite;
}

.sms-demo-chip.is-loading {
  border-color: rgba(251, 191, 36, 0.32);
  background: rgba(245, 158, 11, 0.08);
  color: #fcd34d;
}

.sms-demo-chip.is-loading i {
  background: #fbbf24;
  box-shadow: 0 0 10px rgba(251, 191, 36, 0.6);
  animation: sms-status-pulse 1.1s ease-in-out infinite;
}

.sms-demo-chip.is-offline {
  border-color: rgba(248, 113, 113, 0.32);
  background: rgba(248, 113, 113, 0.08);
  color: #fca5a5;
}

.sms-demo-chip.is-offline i {
  background: #f87171;
  box-shadow: 0 0 10px rgba(248, 113, 113, 0.55);
}

@keyframes sms-status-pulse {
  0%, 100% {
    opacity: 0.72;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.12);
    box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.08), 0 0 13px rgba(52, 211, 153, 0.9);
  }
}

.sms-demo-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 15px;
  padding: 13px 15px;
  border: 1px solid rgba(96, 165, 250, 0.2);
  border-radius: 12px;
  background: #000000;
}

.sms-notice-icon {
  display: grid;
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  place-items: center;
  border-radius: 8px;
  background: rgba(96, 165, 250, 0.12);
  color: #93c5fd;
}

.sms-notice-icon svg {
  width: 16px;
  height: 16px;
}

.sms-demo-notice strong {
  display: block;
  color: #dbeafe;
  font-size: 12px;
}

.sms-demo-notice p {
  margin-top: 3px;
  color: #93a2b8;
  font-size: 11px;
  line-height: 1.55;
}

.sms-panel {
  min-width: 0;
  padding: 19px;
  border: 1px solid #202b42;
  border-radius: 17px;
  background: #000000;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025), 0 12px 30px rgba(0, 0, 0, 0.12);
}

.sms-country-panel {
  position: relative;
  z-index: 2;
  margin-bottom: 14px;
}

.sms-country-panel-heading,
.sms-inbox-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.sms-panel-heading {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 11px;
}

.sms-panel-icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border: 1px solid rgba(147, 197, 253, 0.2);
  border-radius: 11px;
  background: rgba(96, 165, 250, 0.1);
  color: #93c5fd;
}

.sms-panel-icon svg {
  width: 19px;
  height: 19px;
}

.sms-panel-eyebrow {
  display: block;
  color: #8492a8;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sms-panel-heading h3 {
  margin-top: 3px;
  color: #eef4fc;
  font-size: 16px;
  font-weight: 650;
}

.sms-country-picker {
  position: relative;
  z-index: 5;
  width: min(100%, 330px);
  margin-left: auto;
}

.sms-country-trigger {
  display: flex;
  width: 100%;
  min-height: 64px;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border: 1px solid #2a3549;
  border-radius: 11px;
  background: #000000;
  color: #dce7f5;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sms-country-trigger:hover,
.sms-country-picker.open .sms-country-trigger {
  border-color: rgba(96, 165, 250, 0.72);
  background: #000000;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.sms-country-trigger:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.sms-country-trigger-flag {
  display: grid;
  width: 42px;
  height: 28px;
  flex: 0 0 42px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 18px;
  line-height: 1;
}

.sms-country-trigger-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sms-country-trigger-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 2px;
}

.sms-country-trigger-copy small {
  color: #8492a8;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sms-country-trigger-copy strong {
  overflow: hidden;
  color: #eef4fc;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-country-trigger-copy span {
  overflow: hidden;
  color: #8492a8;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-country-trigger-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #8fa6c6;
  transition: transform 160ms ease;
}

.sms-country-picker.open .sms-country-trigger-chevron {
  transform: rotate(180deg);
}

.sms-country-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(390px, calc(100vw - 40px));
  padding: 10px;
  border: 1px solid #2a3a55;
  border-radius: 12px;
  background: #0b1220;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.42), 0 0 0 1px rgba(96, 165, 250, 0.06);
}

.sms-country-menu[hidden] {
  display: none;
}

.sms-country-search {
  display: flex;
  width: 100%;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  border: 1px solid #2a3549;
  border-radius: 9px;
  background: #0c1220;
  color: #8492a8;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.sms-country-search:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.sms-country-search > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.sms-country-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e2e8f0;
  font: 12px var(--font-sans);
}

.sms-country-search input::placeholder {
  color: #78879d;
}

.sms-country-search input::-webkit-search-cancel-button {
  display: none;
}

.sms-country-search button {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa8bd;
  cursor: pointer;
}

.sms-country-search button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sms-country-search button svg {
  width: 13px;
  height: 13px;
}

.sms-country-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
  margin-top: 10px;
  max-height: 330px;
  overflow-y: auto;
  padding: 1px 4px 1px 1px;
  scrollbar-color: #34445e transparent;
  scrollbar-width: thin;
}

.sms-country-count {
  display: block;
  margin-top: 3px;
  color: #8492a8;
  font-size: 10px;
}

.sms-catalog-placeholder {
  grid-column: 1 / -1;
  padding: 22px 14px;
  border: 1px dashed rgba(125, 146, 174, 0.25);
  border-radius: 10px;
  color: #91a0b6;
  font-size: 12px;
  text-align: center;
}

.sms-country-option {
  display: flex;
  min-width: 0;
  min-height: 57px;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid #26344a;
  border-radius: 9px;
  background: rgba(9, 15, 25, 0.55);
  color: #dce7f5;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sms-country-option:hover {
  border-color: rgba(147, 197, 253, 0.45);
  background: rgba(96, 165, 250, 0.07);
}

.sms-country-option:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 2px;
}

.sms-country-option.selected {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.19), rgba(15, 23, 42, 0.78));
  box-shadow: inset 0 0 0 1px rgba(96, 165, 250, 0.12);
}

.sms-country-flag {
  display: grid;
  width: 36px;
  height: 24px;
  flex: 0 0 36px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.055);
  font-size: 17px;
  line-height: 1;
}

.sms-country-flag img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sms-country-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 4px;
}

.sms-country-copy strong {
  overflow: hidden;
  color: #e7effa;
  font-size: 12px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-country-copy small {
  color: #8492a8;
  font-size: 10px;
}

.sms-country-select-mark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid #4b5b73;
  border-radius: 50%;
}

.sms-country-select-mark i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: transparent;
}

.sms-country-option.selected .sms-country-select-mark {
  border-color: #60a5fa;
}

.sms-country-option.selected .sms-country-select-mark i {
  background: #60a5fa;
  box-shadow: 0 0 8px rgba(96, 165, 250, 0.6);
}

.sms-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 14px;
}

.sms-number-panel {
  display: flex;
  flex-direction: column;
}

.sms-panel-description {
  margin-top: 14px;
  color: #8f9db2;
  font-size: 12px;
  line-height: 1.55;
}

.sms-primary-button,
.sms-test-button {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: #60a5fa;
  color: #081423;
  font: 700 11px var(--font-sans);
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease, border-color 160ms ease;
}

.sms-primary-button {
  width: 100%;
  margin-top: 13px;
}

.sms-primary-button svg,
.sms-test-button svg {
  width: 16px;
  height: 16px;
}

.sms-primary-button:hover,
.sms-test-button:not(:disabled):hover {
  transform: translateY(-1px);
  background: #93c5fd;
}

.sms-primary-button:disabled {
  border-color: #28364b;
  background: #1a2434;
  color: #718199;
  cursor: not-allowed;
  transform: none;
}

.sms-service-picker,
.sms-access-key-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 15px;
  color: #aab8ca;
  font-size: 10px;
  font-weight: 650;
}

.sms-service-picker {
  position: relative;
  z-index: 10;
}

.sms-service-trigger {
  display: flex;
  width: 100%;
  min-height: 58px;
  align-items: center;
  gap: 10px;
  padding: 8px 11px;
  border: 1px solid #2a3549;
  border-radius: 11px;
  outline: 0;
  background: #000000;
  color: #e2e8f0;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.sms-service-trigger:hover:not(:disabled),
.sms-service-picker.open .sms-service-trigger {
  border-color: rgba(96, 165, 250, 0.72);
  background: #000000;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.1);
}

.sms-service-trigger:focus-visible {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.14);
}

.sms-service-trigger:disabled {
  color: #718199;
  cursor: not-allowed;
  opacity: 0.82;
}

.sms-service-trigger-icon,
.sms-service-option-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(147, 197, 253, 0.2);
  background: linear-gradient(145deg, #1b3556, #101a2c);
  color: #b9d7fa;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.sms-service-trigger-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.sms-service-option-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.sms-service-trigger-icon img,
.sms-service-option-icon img {
  display: block;
  width: 100%;
  height: 100%;
  padding: 5px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.94);
}

.sms-service-trigger-copy,
.sms-service-option-copy {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  gap: 3px;
}

.sms-service-trigger-copy strong,
.sms-service-option-copy strong {
  overflow: hidden;
  color: #e7effa;
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-service-trigger-copy small,
.sms-service-option-copy small {
  overflow: hidden;
  color: #8492a8;
  font-size: 9px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-service-trigger-chevron {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  color: #8fa6c6;
  transition: transform 160ms ease;
}

.sms-service-picker.open .sms-service-trigger-chevron {
  transform: rotate(180deg);
}

.sms-service-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  padding: 9px;
  border: 1px solid #2a3a55;
  border-radius: 13px;
  background: #0b1220;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(96, 165, 250, 0.06);
}

.sms-service-menu[hidden] {
  display: none;
}

.sms-service-search {
  display: flex;
  min-height: 37px;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #2a3549;
  border-radius: 9px;
  background: #0c1220;
  color: #8492a8;
}

.sms-service-search:focus-within {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.sms-service-search > svg {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.sms-service-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #e2e8f0;
  font: 11px var(--font-sans);
}

.sms-service-search input::placeholder {
  color: #78879d;
}

.sms-service-search input::-webkit-search-cancel-button {
  display: none;
}

.sms-service-search button {
  display: grid;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa8bd;
  cursor: pointer;
}

.sms-service-search button:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}

.sms-service-search button svg {
  width: 13px;
  height: 13px;
}

.sms-service-options {
  display: grid;
  max-height: 300px;
  gap: 5px;
  margin-top: 8px;
  overflow-y: auto;
  padding: 1px 3px 1px 1px;
  scrollbar-color: #34445e transparent;
  scrollbar-width: thin;
}

.sms-service-option {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 1px solid #26344a;
  border-radius: 9px;
  background: rgba(9, 15, 25, 0.62);
  color: #dce7f5;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.sms-service-option:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: rgba(147, 197, 253, 0.5);
  background: rgba(96, 165, 250, 0.09);
}

.sms-service-option:focus-visible {
  outline: 2px solid #60a5fa;
  outline-offset: 1px;
}

.sms-service-option.selected {
  border-color: rgba(96, 165, 250, 0.72);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(15, 23, 42, 0.82));
}

.sms-service-option:disabled {
  cursor: not-allowed;
  opacity: 0.46;
}

.sms-service-option-price {
  flex: 0 0 auto;
  color: #bfdbfe;
  font: 700 10px var(--font-mono);
}

.sms-service-option-mark {
  display: grid;
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  place-items: center;
  border: 1px solid #4b5b73;
  border-radius: 50%;
  color: transparent;
}

.sms-service-option-mark svg {
  width: 11px;
  height: 11px;
}

.sms-service-option.selected .sms-service-option-mark {
  border-color: #60a5fa;
  background: #60a5fa;
  color: #081423;
}

.sms-service-placeholder {
  padding: 19px 12px;
  border: 1px dashed rgba(125, 146, 174, 0.25);
  border-radius: 9px;
  color: #91a0b6;
  font-size: 11px;
  text-align: center;
}

.sms-product-native-select {
  display: none !important;
}

.sms-service-picker select,
.sms-access-key-field input {
  width: 100%;
  min-height: 39px;
  padding: 0 11px;
  border: 1px solid #2a3549;
  border-radius: 9px;
  outline: 0;
  background: #0c1220;
  color: #e2e8f0;
  font: 12px var(--font-sans);
}

.sms-service-picker select:focus,
.sms-access-key-field input:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.12);
}

.sms-service-picker select:disabled {
  color: #718199;
}

.sms-product-summary {
  min-height: 16px;
  margin-top: 8px;
  color: #8f9db2;
  font-size: 10px;
  line-height: 1.5;
}

.sms-access-key-field small {
  color: #78879d;
  font-size: 9px;
  font-weight: 400;
  line-height: 1.5;
}

.sms-number-result {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(96, 165, 250, 0.28);
  border-radius: 11px;
  background: #000000;
  box-shadow: none;
}

.sms-number-caption {
  color: #8f9db2;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.sms-number-result strong {
  margin-top: 7px;
  color: #e7f2ff;
  font: 700 19px var(--font-mono);
  letter-spacing: -0.04em;
}

.sms-number-region {
  margin-top: 4px;
  color: #93a2b8;
  font-size: 10px;
}

.sms-copy-number-button,
.sms-copy-code-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 11px;
  padding: 0 10px;
  border: 1px solid rgba(147, 197, 253, 0.25);
  border-radius: 7px;
  background: rgba(96, 165, 250, 0.08);
  color: #bfdbfe;
  font: 600 9px var(--font-sans);
  cursor: pointer;
}

.sms-copy-number-button svg {
  width: 13px;
  height: 13px;
}

.sms-copy-number-button:hover,
.sms-copy-code-button:hover {
  border-color: rgba(147, 197, 253, 0.55);
  background: rgba(96, 165, 250, 0.15);
}

.sms-number-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 11px;
}

.sms-number-actions .sms-copy-number-button,
.sms-number-actions .sms-cancel-order-button {
  margin-top: 0;
}

.sms-cancel-order-button {
  min-height: 30px;
  margin-top: 8px;
  padding: 0 10px;
  border: 1px solid rgba(248, 113, 113, 0.28);
  border-radius: 7px;
  background: rgba(248, 113, 113, 0.06);
  color: #fca5a5;
  font: 600 9px var(--font-sans);
  cursor: pointer;
}

.sms-cancel-order-button:hover:not(:disabled) {
  border-color: rgba(248, 113, 113, 0.55);
  background: rgba(248, 113, 113, 0.12);
}

.sms-cancel-order-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.sms-number-footnote {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 16px;
  color: #78879d;
  font-size: 9px;
  line-height: 1.4;
}

.sms-number-footnote svg {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  color: #7ba8dc;
}

.sms-inbox-panel {
  display: flex;
  min-height: 330px;
  flex-direction: column;
}

.sms-inbox-icon {
  color: #bfdbfe;
}

.sms-clear-button {
  padding: 6px 9px;
  border: 1px solid #2a3549;
  border-radius: 7px;
  background: transparent;
  color: #9caac0;
  font: 600 9px var(--font-sans);
  cursor: pointer;
}

.sms-clear-button:hover {
  border-color: rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.sms-message-list {
  position: relative;
  min-height: 174px;
  flex: 1;
  margin-top: 15px;
  overflow-y: auto;
}

.sms-empty-state {
  display: flex;
  min-height: 174px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px;
  border: 1px dashed rgba(125, 146, 174, 0.25);
  border-radius: 11px;
  background: #000000;
  text-align: center;
}

.sms-empty-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 2px;
  place-items: center;
  border-radius: 13px;
  background: rgba(96, 165, 250, 0.08);
  color: #82a9d8;
}

.sms-empty-icon svg {
  width: 22px;
  height: 22px;
}

.sms-empty-state strong {
  color: #dce7f5;
  font-size: 12px;
}

.sms-empty-state > span:last-child {
  max-width: 250px;
  color: #8190a6;
  font-size: 10px;
  line-height: 1.5;
}

.sms-message-card {
  position: relative;
  margin-bottom: 9px;
  padding: 13px;
  border: 1px solid #26344a;
  border-left: 3px solid rgba(96, 165, 250, 0.68);
  border-radius: 11px;
  background: rgba(9, 15, 25, 0.72);
  animation: fadeIn 0.2s ease-out;
}

.sms-message-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sms-message-sender {
  min-width: 0;
  overflow: hidden;
  color: #dce9f8;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sms-message-time {
  flex: 0 0 auto;
  color: #78879d;
  font-size: 9px;
}

.sms-message-body {
  margin-top: 9px;
  color: #aab8ca;
  font-size: 11px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.sms-inline-code {
  padding: 2px 5px;
  border: 1px solid rgba(96, 165, 250, 0.22);
  border-radius: 5px;
  background: rgba(96, 165, 250, 0.12);
  color: #bfdbfe;
  font: 700 11px var(--font-mono);
  letter-spacing: 0.08em;
}

.sms-copy-code-button {
  min-height: 26px;
  margin-top: 9px;
  font-size: 9px;
}

.sms-demo-tag {
  position: absolute;
  right: 12px;
  bottom: 15px;
  color: #6f8097;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.sms-test-button {
  width: 100%;
  margin-top: 12px;
}

.sms-test-button:disabled {
  border-color: #283447;
  background: #202a39;
  color: #738198;
  cursor: not-allowed;
}

.sms-test-hint {
  display: block;
  margin-top: 8px;
  color: #7f8da3;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 820px) {
  .sms-page-skeleton {
    padding: 34px 20px 50px;
  }

  .sms-country-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sms-dashboard-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sms-skeleton-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .sms-inbox-panel {
    min-height: 300px;
  }
}

@media (max-width: 560px) {
  .sms-page-skeleton {
    padding: 26px 14px 42px;
  }

  .sms-skeleton-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .sms-skeleton-title {
    width: 68%;
  }

  .sms-skeleton-actions {
    width: 118px;
  }

  .sms-dashboard-view {
    margin-top: 18px;
  }

  .sms-page-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .sms-page-header h2 {
    font-size: 22px;
  }

  .sms-country-panel-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .sms-country-picker {
    width: 100%;
  }

  .sms-country-menu {
    width: 100%;
  }

  .sms-panel {
    padding: 16px;
  }
}

/* Fundo preto somente nas telas internas; a tela de login mantém seu visual próprio. */
body:not(.on-login-view) {
  background: #000000;
}

body:not(.on-login-view) .ambient-glow,
body:not(.on-login-view) .main-content,
body:not(.on-login-view) .mailbox-shell,
body:not(.on-login-view) .mailbox-sidebar,
body:not(.on-login-view) .mailbox-main,
body:not(.on-login-view) .mailbox-topbar,
body:not(.on-login-view) .mailbox-page-content {
  background: #000000;
}

body:not(.on-login-view) .ambient-glow {
  display: none;
}
