/* =========================================================
   PDV – Painel Web (Template Profissional + Acessível)
   ========================================================= */

/* ===== Reset / Base ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
  font-family: "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  background: #ececec;
  color: #111827;
  line-height: 1.35;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
a { color: inherit; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

/* ===== Tokens (padronização) ===== */
:root{
  --bg: #f3f4f6;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;

  --brand-950: #2a093d;
  --brand-900: #3b0f54;
  --brand-800: #4a1769;
  --brand-700: #6a1b9a;
  --brand-600: #8e24aa;
  --brand-200: #e9d5ff;

  --ok-700: #15803d;
  --ok-600: #16a34a;
  --ok-500: #22c55e;

  --warn-600: #d97706;
  --warn-500: #f59e0b;

  --danger-600: #dc2626;
  --danger-500: #ef4444;

  --border: #e5e7eb;
  --border-2: #d1d5db;

  --shadow-sm: 0 4px 12px rgba(0,0,0,.08);
  --shadow-md: 0 10px 26px rgba(0,0,0,.12);

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;

  --pad-1: 8px;
  --pad-2: 12px;
  --pad-3: 14px;
  --pad-4: 18px;
}

/* ===== Acessibilidade ===== */
.skip-link{
  position: absolute;
  left: 12px;
  top: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: #111827;
  color: #fff;
  z-index: 999;
  transform: translateY(-200%);
  transition: transform .15s ease;
}
.skip-link:focus{ transform: translateY(0); }

:focus-visible{
  outline: 3px solid rgba(124,42,168,.35);
  outline-offset: 2px;
  border-radius: 10px;
}

/* Scrollbar (Chrome/Edge) */
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb{ background: rgba(17,24,39,.18); border-radius: 999px; }
*::-webkit-scrollbar-track{ background: transparent; }

/* ===== Helpers ===== */
.hint { min-height: 18px; font-size: 12px; color: var(--muted); }
.page-sub { margin-top: 6px; font-size: 12px; color: var(--muted); }

/* Badge */
.badge{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(34,197,94,.18);
  color: #064e3b;
  font-weight: 900;
  font-size: 12px;
}

/* ===== Inputs / Fields ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 12px; font-weight: 900; color: #374151; }

/* Unificação do padrão para input/select/textarea */
.input, .payment-select, .filters input[type="date"], textarea.input{
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border-2);
  border-radius: 12px;
  outline: none;
  background: #fff;
  color: var(--text);
}
textarea.input{
  resize: vertical;
  min-height: 88px;
  line-height: 1.35;
}
.input:focus,
.payment-select:focus,
.filters input[type="date"]:focus,
textarea.input:focus{
  border-color: #7c2aa8;
  box-shadow: 0 0 0 3px rgba(124,42,168,.15);
}

/* ===== Buttons ===== */
.btn-primary{
  padding: 10px 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 900;
  letter-spacing: .02em;
  background: linear-gradient(to right, var(--ok-500), var(--ok-600));
  color: #052e16;
  box-shadow: 0 10px 20px rgba(34,197,94,.18);
  transition: transform .06s ease, box-shadow .12s ease, filter .12s ease;
}
.btn-primary:hover{ box-shadow: 0 14px 26px rgba(34,197,94,.22); filter: saturate(1.06); }
.btn-primary:active{ transform: translateY(1px); }
.btn-primary.small{ padding: 8px 12px; font-size: 12px; }
.btn-primary.full{ width: 100%; }

.btn-outline{
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  transition: background .12s ease, transform .06s ease, border-color .12s ease;
}
.btn-outline:hover{ background: #fafafa; border-color: rgba(124,42,168,.35); }
.btn-outline:active{ transform: translateY(1px); }
.btn-outline.small{ padding: 8px 12px; font-size: 12px; }
.btn-outline.full{ width: 100%; }

.btn-ghost{
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.60);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  transition: background .12s ease, transform .06s ease, border-color .12s ease;
}
.btn-ghost:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.75); }
.btn-ghost:active{ transform: translateY(1px); }

.btn-ghost.small{
  border-color: var(--border-2);
  color: var(--text);
  background: #fff;
}
.btn-ghost.small:hover{ background: #fafafa; }

.icon-btn{
  width: 36px; height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-size: 18px;
  font-weight: 900;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.icon-btn:hover{ background: #fafafa; border-color: rgba(124,42,168,.25); }
.icon-btn:active{ transform: translateY(1px); }

/* ===== Chips / Tags (novo – usado em tabelas e status) ===== */
.chip{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  border: 1px solid rgba(17,24,39,.10);
  background: rgba(255,255,255,.75);
  color: #111827;
  white-space: nowrap;
}
.chip-dot{
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(17,24,39,.35);
}
.chip.ok{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color: #065f46;
}
.chip.ok .chip-dot{ background: var(--ok-500); }
.chip.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #7f1d1d;
}
.chip.danger .chip-dot{ background: var(--danger-500); }
.chip.warn{
  border-color: rgba(245,158,11,.35);
  background: rgba(245,158,11,.12);
  color: #78350f;
}
.chip.warn .chip-dot{ background: var(--warn-500); }

/* ===== Login ===== */
.login-box{
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(900px 340px at 18% 0%, rgba(142,36,170,.18), transparent 60%),
    radial-gradient(900px 340px at 82% 0%, rgba(34,197,94,.16), transparent 60%),
    var(--bg);
}
.login-card{
  width: min(440px, 96vw);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(17,24,39,.06);
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-mark{
  width: 44px; height: 44px;
  border-radius: 14px;
  background: linear-gradient(180deg, var(--brand-600), var(--brand-800));
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(106,27,154,.18);
}
.login-card h2{ font-size: 18px; font-weight: 900; }
.login-sub{ font-size: 12px; color: var(--muted); margin-top: 2px; }

.form{ display: flex; flex-direction: column; gap: 12px; }
.login-foot{ margin-top: 4px; }

/* ===== App full screen ===== */
.app{
  height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

/* ===== Top bar ===== */
.top-bar{
  background: linear-gradient(90deg, var(--brand-700), var(--brand-600));
  color: #fff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(58, 13, 90, .18);
  position: relative;
}
.top-bar::after{
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255,255,255,.12), rgba(255,255,255,.28), rgba(255,255,255,.12));
  opacity: .9;
}
.app-title{ font-size: 16px; font-weight: 900; }
.subtitle{ font-size: 12px; opacity: .92; }

.top-right{ display: flex; align-items: center; gap: 10px; }
.status-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: var(--ok-500);
  box-shadow: 0 0 0 4px rgba(34,197,94,.18);
}
.status-text{ font-size: 12px; opacity: .95; }

/* ===== Shell (sidebar + content) ===== */
.shell{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 250px 1fr;
}

/* ===== Sidebar ===== */
.sidebar{
  background: linear-gradient(180deg, var(--brand-800), var(--brand-900));
  color: #fff;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  position: relative;
  overflow: hidden;
}
.sidebar::before{
  content: "";
  position: absolute;
  inset: -120px -140px auto auto;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle at 30% 30%, rgba(34,197,94,.25), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
}
.sidebar::after{
  content: "";
  position: absolute;
  inset: auto -160px -160px auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle at 40% 40%, rgba(233,213,255,.22), transparent 60%);
  pointer-events: none;
}

.sidebar-title{ font-size: 12px; font-weight: 900; opacity: .95; margin-bottom: 6px; }
.nav{ display: flex; flex-direction: column; gap: 10px; position: relative; z-index: 1; }

.nav-item{
  width: 100%;
  text-align: left;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.06);
  color: #fff;
  padding: 10px 12px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform .06s ease, background .12s ease, border-color .12s ease;
}
.nav-item:hover{ background: rgba(255,255,255,.10); border-color: rgba(255,255,255,.26); }
.nav-item:active{ transform: translateY(1px); }

.nav-dot{
  width: 10px; height: 10px; border-radius: 999px;
  background: rgba(255,255,255,.65);
}
.nav-item.active{
  background: #fff;
  color: var(--brand-900);
  border-color: rgba(255,255,255,.55);
}
.nav-item.active .nav-dot{ background: var(--ok-500); }

.sidebar-foot{
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.15);
  position: relative;
  z-index: 1;
}
.mini{ display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.mini-label{ font-size: 11px; opacity: .90; font-weight: 900; }
.mini-value{ font-size: 12px; font-weight: 900; }

/* ===== Content ===== */
.content{
  min-height: 0;
  overflow: hidden;
}

/* ===== Pages ===== */
.tab-page{ display: none; height: 100%; }
.tab-page.active{ display: flex; flex-direction: column; height: 100%; min-height: 0; }

/* ===== Page / Header / Panel ===== */
.page{ flex: 1; min-height: 0; overflow: auto; padding: var(--pad-3); }
.page-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.page-actions{ display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

.panel{
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  min-height: 0;
  border: 1px solid rgba(17,24,39,.06);
}

/* ======= NOVOS: Painéis "soft" e títulos internos (Configurações) ======= */
.panel-soft{
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.85));
  border: 1px solid rgba(17,24,39,.08);
  box-shadow: none;
}
.panel-title{
  font-size: 13px;
  font-weight: 900;
  color: #111827;
  margin-bottom: 10px;
}

/* ===== Category Bar ===== */
.category-bar{
  display: flex;
  gap: 8px;
  overflow-x: auto;
  background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
  padding: 10px 12px;
  border-radius: 14px;
  box-shadow: 0 10px 22px rgba(58, 13, 90, .10);
}
.category{
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.75);
  color: #1f2937;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .06s ease, background .12s ease;
}
.category:hover{ background: #fff; }
.category:active{ transform: translateY(1px); }
.category.active{ background: #fff; color: var(--brand-800); }

/* ===== Sales layout ===== */
.layout{
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 12px;
  padding: 12px;
}

.products-section{ min-height: 0; overflow: auto; background: transparent; }
.section-head{
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}
.section-title{ font-size: 14px; font-weight: 900; color: #111827; }

.product-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

/* Product card */
.product-card{
  background: var(--card);
  border-radius: var(--r-md);
  padding: 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  border: 1px solid rgba(17,24,39,.06);
  transition: transform .10s ease, box-shadow .12s ease;
}
.product-card:hover{ transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-image{
  width: 100%;
  height: 128px;
  border-radius: 12px;
  object-fit: cover;
  background: var(--border);
  margin-bottom: 8px;
}
.product-name{ font-size: 13px; font-weight: 900; margin-bottom: 2px; }
.product-price{ font-size: 15px; font-weight: 900; color: var(--ok-600); }
.product-stock{ font-size: 12px; color: var(--muted); margin-top: 2px; }

/* Cart */
.cart-section{
  min-height: 0;
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid rgba(17,24,39,.06);
}
.cart-section h2, .cart-section h3{ font-size: 16px; font-weight: 900; }

.cart-items{
  flex: 1;
  min-height: 0;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-right: 4px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-top: 10px;
  padding-bottom: 10px;
}
.cart-item{ display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; }
.cart-item-info{ display: flex; flex-direction: column; }
.cart-item-name{ font-weight: 900; }
.cart-item-details{ font-size: 12px; color: var(--muted); }

.cart-item-actions{ display: flex; align-items: center; gap: 8px; }
.qty-btn{
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  cursor: pointer;
  font-weight: 900;
  transition: background .12s ease, border-color .12s ease;
}
.qty-btn:hover{ background: #fafafa; border-color: rgba(124,42,168,.25); }
.qty-value{ min-width: 20px; text-align: center; font-weight: 900; }
.remove-btn{
  width: 32px; height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(239,68,68,.25);
  background: rgba(239,68,68,.08);
  color: var(--danger-500);
  cursor: pointer;
  font-weight: 900;
  transition: background .12s ease, transform .06s ease;
}
.remove-btn:hover{ background: rgba(239,68,68,.12); }
.remove-btn:active{ transform: translateY(1px); }

.cart-summary{ display: flex; flex-direction: column; gap: 10px; }
.summary-row{ display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.summary-total{ font-size: 18px; font-weight: 900; }
.payment-select{ padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border-2); }

.cart-actions{ display: flex; flex-direction: column; gap: 10px; }

/* ===== Reports ===== */
.reports{ flex: 1; min-height: 0; padding: var(--pad-3); overflow: auto; }
.reports-header{
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.filters{ display: flex; gap: 10px; flex-wrap: wrap; align-items: end; }
.filters label{
  font-size: 12px;
  font-weight: 900;
  color: #374151;
  display: flex;
  gap: 6px;
  align-items: center;
}

.cards{
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.card{
  background: var(--card);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-sm);
  padding: 12px;
  border: 1px solid rgba(17,24,39,.06);
}
.card-title{ font-size: 12px; color: var(--muted); font-weight: 900; }
.card-value{ font-size: 18px; font-weight: 900; margin-top: 6px; }

.two-cols{
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 12px;
  min-height: 0;
}
.list{ display: flex; flex-direction: column; gap: 8px; }
.list-row{ display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.list-row strong{ font-weight: 900; }
.list-empty{ font-size: 12px; color: var(--muted); padding: 6px 0; }

.table-wrap{
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
}
.table{ width: 100%; border-collapse: collapse; }
.table th, .table td{ padding: 10px; border-bottom: 1px solid #eee; font-size: 12px; }
.table th{ text-align: left; background: #fafafa; font-weight: 900; }

/* ===== Ações em tabela (novo – usado para Produtos/Usuários) ===== */
.table-actions{
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.action-btn{
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.14);
  background: #fff;
  color: #111827;
  cursor: pointer;
  font-weight: 900;
  font-size: 12px;
  transition: background .12s ease, transform .06s ease, border-color .12s ease;
}
.action-btn:hover{ background: #fafafa; border-color: rgba(124,42,168,.28); }
.action-btn:active{ transform: translateY(1px); }
.action-btn.primary{
  border-color: rgba(34,197,94,.35);
  background: rgba(34,197,94,.10);
  color: #065f46;
}
.action-btn.primary:hover{ background: rgba(34,197,94,.14); }
.action-btn.danger{
  border-color: rgba(239,68,68,.35);
  background: rgba(239,68,68,.10);
  color: #7f1d1d;
}
.action-btn.danger:hover{ background: rgba(239,68,68,.14); }

/* ===== Modal ===== */
.modal{
  position: fixed;
  inset: 0;
  background: rgba(17,24,39,.55);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  z-index: 50;
}
.modal-card{
  width: min(720px, 96vw);
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: 0 20px 50px rgba(0,0,0,.25);
  padding: 14px;
  border: 1px solid rgba(17,24,39,.08);
}
.modal-head{
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.modal-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.modal-actions{
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 12px;
}

/* =========================================================
   NOVOS: Users tab (tabela + modal + destaque visual)
   ========================================================= */
#tab-users .panel{
  background:
    radial-gradient(900px 320px at 10% 0%, rgba(142,36,170,.10), transparent 60%),
    radial-gradient(900px 320px at 90% 0%, rgba(34,197,94,.08), transparent 60%),
    var(--card);
}

#tab-users .table th{
  background: linear-gradient(180deg, rgba(250,250,250,1), rgba(245,245,245,1));
}

#tab-users .page-sub{
  max-width: 820px;
}

#tab-users .table td{
  vertical-align: middle;
}

/* =========================================================
   NOVOS: Settings (Merchant Settings) - Switch/Toggle e Layout
   ========================================================= */

.settings-form{
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* mantém compatível com seus grids; usado também dentro de Configurações */
.settings-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.settings-row{
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
}

/* Toggle acessível */
.toggle{
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(17,24,39,.08);
  background: rgba(255,255,255,.75);
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}
.toggle:hover{
  background: rgba(255,255,255,.92);
}
.toggle:active{
  transform: translateY(1px);
}

/* escondemos o checkbox visualmente, mantendo acessível */
.toggle input{
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* UI do switch */
.toggle-ui{
  width: 44px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid rgba(17,24,39,.15);
  background: rgba(17,24,39,.08);
  position: relative;
  flex: 0 0 auto;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.toggle-ui::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: #fff;
  box-shadow: 0 6px 14px rgba(0,0,0,.14);
  transition: left .15s ease;
}

/* texto do toggle */
.toggle-text{
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.toggle-text strong{
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}
.toggle-text .hint{
  min-height: auto;
}

/* Estado checked (o input vem antes do .toggle-ui) */
.toggle input:checked + .toggle-ui{
  background: rgba(34,197,94,.25);
  border-color: rgba(34,197,94,.40);
  box-shadow: 0 0 0 3px rgba(34,197,94,.18);
}
.toggle input:checked + .toggle-ui::after{
  left: 21px;
}

/* Foco por teclado */
.toggle input:focus-visible + .toggle-ui{
  box-shadow: 0 0 0 3px rgba(124,42,168,.18);
  border-color: rgba(124,42,168,.35);
}

/* Para cards dentro de Configurações ficarem equilibrados */
#tab-settings .card .hint{
  margin-top: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .shell{ grid-template-columns: 1fr; }
  .layout{ grid-template-columns: 1fr; }
  .two-cols{ grid-template-columns: 1fr; }
  .cards{ grid-template-columns: 1fr; }
  .modal-grid{ grid-template-columns: 1fr; }

  /* settings grid no mobile */
  .settings-grid{ grid-template-columns: 1fr; }
}
/* =========================================================
   AUTH TABS (Entrar / Criar Conta)
   ========================================================= */

.auth-tabs{
  display: flex;
  gap: 6px;
  margin-top: 6px;
  margin-bottom: 6px;
}

.auth-tab{
  flex: 1;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: #f9fafb;
  color: var(--text);
  cursor: pointer;
  font-weight: 900;
  font-size: 13px;
  transition: background .12s ease, border-color .12s ease, transform .06s ease;
}

.auth-tab:hover{
  background: #f3f4f6;
}

.auth-tab:active{
  transform: translateY(1px);
}

.auth-tab.active{
  background: linear-gradient(90deg, var(--brand-600), var(--brand-700));
  color: #fff;
  border-color: rgba(124,42,168,.45);
  box-shadow: 0 8px 18px rgba(124,42,168,.22);
}

/* Painéis de autenticação */
.auth-pane{
  display: none;
}

.auth-pane.active{
  display: block;
}
/* ========================================================= */ 