/* Gerado a partir de static/styles.css -- so' as regras que a landing
   page usa (camadas de fundo .auth-* e tags .platform-tag-*), pra ela
   nao baixar os 444 KB do CSS do app inteiro antes de renderizar.
   NAO editar a mao: regenerar com scripts/extrai_css_landing.py. */
:root {
  
  --bg: #f4f7fa;
  --bg-alt: #f8fafc;
  --surface: #ffffff;
  --surface-solid: #ffffff;
  --border: #e3e8ee;
  --border-strong: #cfd8dc;

  --brand: #2196f3;
  --brand-dark: #1976d2;
  --brand-soft: #e3f2fd;
  --brand-glow: rgba(33, 150, 243, 0.25);

  
  --neutral: #7e858e;
  --neutral-dark: #6c757d;
  --neutral-soft: #eceff1;

  
  --danger: #f44336;
  --danger-dark: #d32f2f;

  --ink: #263238;
  
  --dark: #263238;
  --dark-alt: #2f3e46;
  --dark-soft: #455a64;
  
  --sidebar-bg-alt: #183859;
  --sidebar-bg: #0f253e;

  --text: #37474f;
  --text-muted: #78909c;
  --text-faint: #b0bec5;

  --success-bg: #e8f5e9;
  --success-text: #2e7d32;
  --error-bg: #fdecea;
  --error-text: #c62828;
  --info-bg: #e0f7fa;
  --info-text: #00838f;
  --warning-bg: #fff3e0;
  --warning-text: #ef6c00;

  --radius-lg: 12px;
  --radius-md: 8px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(33, 37, 41, 0.06);
  --shadow-md: 0 4px 16px rgba(33, 37, 41, 0.07);
  --shadow-lg: 0 12px 32px rgba(33, 37, 41, 0.16);

  
  --ease-out: cubic-bezier(0.22, 0.9, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.4, 0.44, 1);
  --dur-fast: 0.14s;
  --dur-base: 0.22s;
  --dur-slow: 0.38s;

  
  --field-h: 2.35rem;
}
:root[data-theme="dark"] {
  --bg: #121820;
  --bg-alt: #1a222c;
  --surface: #1e2733;
  --surface-solid: #1e2733;
  --border: #2c3947;
  --border-strong: #3a4a5a;

  --brand: #42a5f5;
  --brand-dark: #64b5f6;
  --brand-soft: rgba(66, 165, 245, 0.16);
  --brand-glow: rgba(66, 165, 245, 0.35);

  --neutral: #9aa5b1;
  --neutral-dark: #b0bec5;
  --neutral-soft: rgba(158, 167, 178, 0.16);

  --danger: #ef5350;
  --danger-dark: #ff8a80;

  --ink: #eceff1;
  --dark: #0d1117;
  --dark-alt: #161d24;
  --dark-soft: #26333f;
  
  --sidebar-bg-alt: #11243b;
  --sidebar-bg: #091525;

  --text: #e3e8ee;
  --text-muted: #94a3b3;
  --text-faint: #64758a;

  --success-bg: rgba(76, 175, 80, 0.16);
  --success-text: #81c784;
  --error-bg: rgba(244, 67, 54, 0.16);
  --error-text: #ef9a9a;
  --info-bg: rgba(0, 172, 193, 0.16);
  --info-text: #4dd0e1;
  --warning-bg: rgba(255, 152, 0, 0.16);
  --warning-text: #ffb74d;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.55);
}
* {
  box-sizing: border-box;
}
html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: "Plus Jakarta Sans", "Inter", "Segoe UI", sans-serif;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 0.35rem;
}
h2 { font-size: 1.4rem; font-weight: 700; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4 { font-size: 0.95rem; font-weight: 700; }
p { color: var(--text-muted); margin: 0 0 0.6rem; }
a {
  color: var(--brand);
  text-decoration: none;
  font-weight: 600;
}
a:hover { color: var(--brand-dark); }
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.25rem 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button-link {
  border: 1px solid var(--brand);
  border-radius: var(--radius-sm);
  
  height: var(--field-h);
  padding: 0 1.2rem;
  background: var(--brand);
  color: white;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: var(--shadow-sm);
  transition: background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}
:root[data-theme="dark"] .topbar {
  background: rgba(18, 24, 32, 0.86);
}
.notif-meta .platform-tag { font-size: 0.6rem; }
label {
  display: grid;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
  
  align-content: start;
}
input,
textarea,
select {
  width: 100%;
  padding: 0.78rem 0.9rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  background: var(--bg-alt);
  color: var(--text);
  font-weight: 500;
  transition: border-color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    background var(--dur-fast) var(--ease-out);
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--brand);
  background: var(--surface-solid);
  box-shadow: 0 0 0 3px var(--brand-glow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
thead th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  padding: 0.9rem 1.2rem;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
td,
tbody th {
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--text);
  text-align: left;
  font-weight: 600;
}
tbody th { font-weight: 700; white-space: nowrap; }
tbody td { font-weight: 500; }
tbody tr:last-child td { border-bottom: none; }
tbody tr {
  transition: background var(--dur-fast) var(--ease-out);
}
:root[data-theme="dark"] .badge-order-pending { background: rgba(255, 152, 0, 0.18); color: #ffb74d; }
:root[data-theme="dark"] .badge-order-paid { background: rgba(149, 117, 205, 0.18); color: #b39ddb; }
:root[data-theme="dark"] .badge-order-ready { background: rgba(33, 150, 243, 0.18); color: #64b5f6; }
:root[data-theme="dark"] .badge-order-collect { background: rgba(92, 107, 192, 0.20); color: #9fa8da; }
:root[data-theme="dark"] .badge-order-shipped { background: rgba(0, 172, 193, 0.18); color: #4dd0e1; }
:root[data-theme="dark"] .badge-order-delivered { background: rgba(0, 150, 136, 0.20); color: #4db6ac; }
:root[data-theme="dark"] .badge-order-done { background: rgba(76, 175, 80, 0.18); color: #81c784; }
:root[data-theme="dark"] .badge-order-alert { background: rgba(255, 87, 34, 0.20); color: #ff8a65; }
:root[data-theme="dark"] .badge-order-cancelling { background: rgba(233, 30, 99, 0.20); color: #f06292; }
:root[data-theme="dark"] .badge-order-cancelled { background: rgba(244, 67, 54, 0.18); color: #e57373; }
.platform-tag,
.card .platform-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.14rem 0.45rem;
  border-radius: 5px;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.4;
  white-space: nowrap;
  text-transform: uppercase;
}
.platform-tag.platform-tag-full { padding: 0.2rem 0.6rem; font-size: 0.68rem; font-weight: 700; }
.platform-tag.platform-tag-mlb { background: #FFE600; color: #2b2200; }
.platform-tag.platform-tag-shpp { background: #EE4D2D; color: #ffffff; }
.platform-tag.platform-tag-tktk { background: #010101; color: #25F4EE; box-shadow: inset 0 0 0 1px #FE2C55; }
.platform-tag.platform-tag-amzn { background: #232F3E; color: #FF9900; }
.platform-tag.platform-tag-lint { background: #6D3AC7; color: #ffffff; }
.platform-tag.platform-tag-ebay { background: #ffffff; color: #0064D2; box-shadow: inset 0 0 0 1px #E53238; }
pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 1.1rem 1.25rem;
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-muted);
  max-height: 360px;
  overflow-y: auto;
}
.auth-shell {
  position: relative;
  width: 100%;
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse 120% 70% at 50% -10%, #182536 0%, #0b111c 55%, #05070c 100%);
}
@media (max-height: 820px) {
.auth-shell {
    overflow-y: auto;
  }
}
.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.auth-aurora {
  position: absolute;
  inset: -35%;
  background: conic-gradient(
    from 0deg,
    rgba(33, 150, 243, 0.14),
    rgba(0, 172, 193, 0.11),
    rgba(124, 77, 255, 0.11),
    rgba(33, 150, 243, 0.14)
  );
  filter: blur(90px);
  animation: auth-aurora-spin 70s linear infinite;
  will-change: transform;
}
@media (prefers-reduced-motion: reduce) {
.auth-aurora {
    animation: none;
  }
}
.auth-bg-grid {
  position: absolute;
  inset: -10%;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 0%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 32%, #000 0%, transparent 78%);
}
.auth-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  will-change: transform, opacity;
}
.auth-glow-1 {
  width: 640px;
  height: 640px;
  left: -14%;
  top: -16%;
  background: radial-gradient(circle, rgba(33, 150, 243, 0.55), transparent 70%);
  animation: auth-glow-drift-1 22s ease-in-out infinite;
}
.auth-glow-2 {
  width: 560px;
  height: 560px;
  right: -12%;
  top: 6%;
  background: radial-gradient(circle, rgba(0, 172, 193, 0.42), transparent 70%);
  animation: auth-glow-drift-2 27s ease-in-out infinite;
}
.auth-glow-3 {
  width: 520px;
  height: 520px;
  left: 28%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.32), transparent 70%);
  animation: auth-glow-drift-3 31s ease-in-out infinite;
}
.auth-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
@media (max-width: 980px) {
.auth-shell {
    overflow-y: auto;
  }
}
.venda-pedido-sub .platform-tag {
  padding: 0.08rem 0.3rem;
  font-size: 0.58rem;
  border-radius: 4px;
}
@media (max-width: 780px) {
.auth-shell {
    min-height: 100vh;
    min-height: 100dvh; 
  }
}
.dashboard-platform-card .platform-tag {
  align-self: flex-start;
  
  margin-bottom: 0.6rem;
}
@keyframes auth-aurora-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes auth-glow-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(60px, 45px) scale(1.12); opacity: 0.72; }
}
@keyframes auth-glow-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.42; }
  50% { transform: translate(-55px, 55px) scale(1.08); opacity: 0.62; }
}
@keyframes auth-glow-drift-3 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.32; }
  50% { transform: translate(35px, -35px) scale(1.15); opacity: 0.52; }
}
