:root {
  --bg: #f6f3ee;
  --panel: #ffffff;
  --panel-alt: #f2eee9;
  --primary: #0d3b46;
  --primary-dark: #072f39;
  --accent: #c79b63;
  --accent-strong: #a6753b;
  --text: #1f2b2d;
  --muted: #5d676a;
  --success: #1f8a5d;
  --danger: #c64545;
  --shadow: 0 20px 60px rgba(11, 32, 38, 0.12);
  --radius: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  background: var(--primary);
  color: #fff;
  padding: 10px 0;
  font-size: 0.8rem;
}

.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.topbar .contact {
  display: flex;
  gap: 15px;
  align-items: center;
  flex-wrap: wrap;
}

.topbar .contact span {
  opacity: 0.9;
}

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(13, 59, 70, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 86px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--primary);
}

.logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), #164f5d);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  color: var(--text);
  font-weight: 500;
}

.nav a {
  color: var(--text);
  transition: color 0.2s ease;
}

.nav a:hover { color: var(--primary); }

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
}

.search-wrap {
  position: relative;
  width: min(300px, 42vw);
}

.search-wrap input {
  width: 100%;
  border: 1px solid rgba(13, 59, 70, 0.15);
  background: var(--panel-alt);
  border-radius: 999px;
  padding: 12px 18px 12px 42px;
  outline: none;
}

.search-wrap .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
}

.icon-button {
  border: 0;
  background: var(--primary);
  color: #fff;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  position: relative;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -4px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--primary-dark);
  font-size: 0.7rem;
  font-weight: 700;
}

.primary-btn,
.secondary-btn,
.ghost-btn,
.admin-btn {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  box-shadow: 0 15px 35px rgba(13, 59, 70, 0.25);
}

.secondary-btn {
  background: var(--accent);
  color: var(--primary-dark);
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(13, 59, 70, 0.25);
  color: var(--primary-dark);
}

.primary-btn:hover,
.secondary-btn:hover,
.ghost-btn:hover,
.admin-btn:hover { transform: translateY(-1px); }

.hero {
  padding: 56px 0 30px;
  background: radial-gradient(circle at top left, rgba(199,155,99,0.16), transparent 30%), linear-gradient(180deg, rgba(13,59,70,0.03), rgba(13,59,70,0));
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 36px;
}

.kicker {
  display: inline-block;
  background: rgba(13,59,70,0.08);
  border: 1px solid rgba(13,59,70,0.08);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--primary);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
}

.hero h1 {
  margin: 14px 0 16px;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
  color: var(--primary-dark);
}

.hero p {
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.hero-stat {
  padding: 18px 14px;
  background: rgba(255,255,255,0.62);
  border: 1px solid rgba(13,59,70,0.07);
  border-radius: 18px;
}

.hero-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--primary-dark);
  margin-bottom: 4px;
}

.hero-card {
  background: linear-gradient(135deg, #fff, #f4efe8);
  border-radius: 30px;
  border: 1px solid rgba(13,59,70,0.08);
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.featured-product {
  position: relative;
  padding: 24px;
}

.featured-image {
  height: 420px;
  border-radius: 22px;
  background: linear-gradient(135deg, #d8d7d1, #f5eee4 35%, #b0b5b7 100%);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.featured-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-badge {
  position: absolute;
  top: 38px;
  left: 38px;
  background: var(--accent);
  color: var(--primary-dark);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
}

.featured-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
}

.featured-info h3 {
  margin: 0;
  font-size: 1.35rem;
  color: var(--primary-dark);
}

.price-tag {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary);
}

.section {
  padding: 34px 0 18px;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 16px;
  margin-bottom: 22px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.9rem, 2vw, 2.6rem);
  color: var(--primary-dark);
}

.subtle {
  color: var(--muted);
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.category-card {
  background: var(--panel);
  border: 1px solid rgba(13,59,70,0.08);
  border-radius: 24px;
  padding: 28px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(12,18,20,0.03);
}

.category-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(13,59,70,0.1), rgba(199,155,99,0.18));
  font-size: 1.8rem;
}

.category-card h3 {
  margin: 0;
  font-size: 1.1rem;
}

.catalog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin: 24px 0 22px;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-pill {
  background: #fff;
  border: 1px solid rgba(13,59,70,0.08);
  border-radius: 999px;
  padding: 10px 16px;
  color: var(--muted);
  font-weight: 600;
}

.filter-pill.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--panel);
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(13,59,70,0.08);
  box-shadow: 0 12px 36px rgba(13,59,70,0.04);
}

.product-media {
  position: relative;
  height: 260px;
  background: linear-gradient(135deg, #f4ece2, #e4edf0);
}

.product-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-badge {
  position: absolute;
  left: 14px;
  top: 14px;
  background: var(--primary);
  color: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.68rem;
  font-weight: 700;
}

.product-body {
  padding: 16px 16px 18px;
}

.product-brand {
  display: block;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: 8px;
}

.product-name {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--primary-dark);
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.price {
  font-size: 1.26rem;
  font-weight: 700;
  color: var(--primary);
}

.old-price {
  color: var(--muted);
  text-decoration: line-through;
  font-size: 0.9rem;
}

.rating {
  color: #efb957;
  font-size: 0.9rem;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.product-actions button {
  flex: 1;
  padding: 10px 12px;
  border-radius: 12px;
  border: 0;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-light {
  background: #f2f3f5;
  color: var(--primary-dark);
}

.featured-strip,
.commitment {
  background: #fff;
  border: 1px solid rgba(13,59,70,0.08);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 10px 30px rgba(13,59,70,0.04);
}

.reason-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.reason {
  background: var(--panel-alt);
  border-radius: 18px;
  padding: 20px 18px;
}

.reason .icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(13,59,70,0.08);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
  font-size: 1.3rem;
}

.reason h3 {
  margin: 0 0 8px;
  color: var(--primary-dark);
  font-size: 1.05rem;
}

.reason p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.testimonials {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.testimonial {
  background: #fff;
  border: 1px solid rgba(13,59,70,0.08);
  border-radius: 22px;
  padding: 22px;
}

.stars {
  color: #f8b74b;
  font-size: 1rem;
}

.testimonial p {
  color: var(--muted);
  line-height: 1.7;
}

.customer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.avatar {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #3a6f7d);
  color: white;
  font-weight: 700;
}

.newsletter {
  background: linear-gradient(135deg, var(--primary), #143d49);
  color: white;
  border-radius: 28px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.newsletter h3 {
  margin: 0;
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

.newsletter p { margin: 8px 0 0; opacity: 0.85; }

.newsletter-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: min(540px, 100%);
}

.newsletter-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(255,255,255,0.09);
  color: #fff;
  padding: 15px 18px;
  outline: none;
}

.newsletter-form input::placeholder { color: rgba(255,255,255,0.82); }

.newsletter-form button {
  background: var(--accent);
  color: var(--primary-dark);
  border: 0;
  padding: 15px 20px;
  border-radius: 999px;
  font-weight: 700;
}

.footer {
  background: #f3f0eb;
  margin-top: 42px;
  padding: 44px 0 18px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 28px;
}

.footer h4 {
  margin: 0 0 18px;
  color: var(--primary-dark);
}

.footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  color: var(--muted);
}

.footer .brand-copy {
  line-height: 1.8;
  color: var(--muted);
  margin-top: 16px;
}

.footer-bottom {
  border-top: 1px solid rgba(13,59,70,0.08);
  margin-top: 26px;
  padding-top: 18px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -100%;
  width: min(440px, 100%);
  height: 100vh;
  background: #fff;
  z-index: 100;
  box-shadow: -20px 0 50px rgba(8, 19, 24, 0.18);
  transition: right 0.28s ease;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open { right: 0; }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(13,59,70,0.08);
}

.cart-header h3 { margin: 0; color: var(--primary-dark); }

.close-btn {
  background: transparent;
  border: 0;
  font-size: 1.6rem;
  color: var(--primary-dark);
}

.cart-items {
  flex: 1;
  overflow: auto;
  padding: 16px 18px;
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--panel-alt);
  border-radius: 16px;
}

.cart-item img {
  width: 90px;
  height: 90px;
  object-fit: cover;
  border-radius: 14px;
}

.cart-item h4 {
  margin: 0 0 6px;
  font-size: 0.96rem;
}

.cart-item p {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.qty-button {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(13,59,70,0.12);
  background: #fff;
}

.cart-summary {
  padding: 18px 18px 22px;
  border-top: 1px solid rgba(13,59,70,0.08);
  background: #fff;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted);
}

.summary-row.total {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 12px;
}

.cart-drawer form {
  display: grid;
  gap: 12px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.field-wrap input,
.field-wrap select,
.field-wrap textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(13,59,70,0.12);
  background: #f9f8f6;
  outline: none;
}

.empty-state {
  padding: 30px 14px;
  text-align: center;
  color: var(--muted);
  border: 1px dashed rgba(13,59,70,0.2);
  border-radius: 18px;
  background: rgba(13,59,70,0.02);
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 24, 30, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
  z-index: 90;
}

.overlay.visible {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 980px) {
  .nav { display: none; }
  .hero-grid, .product-grid, .category-grid, .footer-grid, .testimonials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .newsletter { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 640px) {
  .topbar .container, .header-inner, .catalog-toolbar, .section-head, .footer-bottom { flex-direction: column; align-items: flex-start; }
  .search-wrap { width: 100%; }
  .hero-grid, .product-grid, .category-grid, .reason-grid, .testimonials, .field-grid, .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 34px; }
  .hero-stat { grid-column: span 1; }
}

.admin-page {
  padding: 28px 0 60px;
}

.admin-shell {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
}

.panel {
  background: #fff;
  border: 1px solid rgba(13,59,70,0.08);
  border-radius: 24px;
  box-shadow: 0 12px 36px rgba(13,59,70,0.04);
  padding: 22px;
}

.panel h3 {
  margin: 0 0 18px;
  color: var(--primary-dark);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.metric-card {
  background: var(--panel-alt);
  border-radius: 18px;
  padding: 18px;
}

.metric-card .label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1.7rem;
  color: var(--primary-dark);
}

.dash-chart-bars {
  display: flex;
  align-items: stretch;
  gap: 12px;
  height: 190px;
  padding-top: 6px;
}

.dash-chart-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-width: 0;
}

.dash-chart-bar-wrap {
  height: 160px;
  display: flex;
  align-items: flex-end;
}

.dash-chart-bar {
  width: 100%;
  max-width: 46px;
  margin: 0 auto;
  background: linear-gradient(180deg, #d8dbe0, #959da9);
  border-radius: 8px 8px 0 0;
  min-height: 2px;
}

.dash-chart-col.today .dash-chart-bar {
  background: linear-gradient(180deg, #ffffff, #b6bec8);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.25);
}

.dash-chart-label {
  text-align: center;
  font-size: 0.72rem;
  color: #d6dae2;
  margin-top: 6px;
  letter-spacing: 0.03em;
}

.table-wrap {
  overflow: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 620px;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  text-align: left;
  border-bottom: 1px solid rgba(13,59,70,0.08);
  font-size: 0.92rem;
}

.data-table th {
  color: var(--muted);
  font-weight: 600;
}

.status {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 0.72rem;
  font-weight: 700;
}

.status.paid {
  background: rgba(31,138,93,0.12);
  color: var(--success);
}

.status.pending {
  background: rgba(199,155,99,0.16);
  color: var(--accent-strong);
}

.admin-form {
  display: grid;
  gap: 12px;
}

.admin-form .two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.admin-btn {
  background: var(--primary);
  color: #fff;
  width: 100%;
  margin-top: 10px;
}

.inline-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.inline-btn {
  border: 0;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 600;
  background: rgba(13,59,70,0.08);
  color: var(--primary-dark);
}

.inline-btn.danger {
  background: rgba(198,69,69,0.08);
  color: var(--danger);
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  background: var(--primary-dark);
  color: #fff;
  padding: 12px 18px;
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: all 0.25s ease;
  z-index: 200;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.hidden { display: none !important; }

/* ---------- Carrinho (carrinho.html) ---------- */
.cart-layout {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 24px;
  align-items: start;
}

.cart-lista {
  display: grid;
  gap: 14px;
}

.cart-item-card {
  display: grid;
  grid-template-columns: 84px 1fr auto auto auto;
  gap: 14px;
  align-items: center;
  padding: 12px;
  background: var(--panel-alt);
  border-radius: 16px;
}

.cart-item-card img {
  width: 84px;
  height: 84px;
  object-fit: cover;
  border-radius: 12px;
  background: #e9e4da;
}

.ci-info {
  display: grid;
  gap: 2px;
}

.ci-brand {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 600;
}

.ci-name {
  font-size: 0.95rem;
  font-weight: 600;
  color: #d6dae2;
  line-height: 1.35;
}

.ci-price {
  color: #d6dae2;
  font-size: 0.82rem;
}

.ci-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ci-qty .qty-button {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid rgba(13, 59, 70, 0.15);
  background: #fff;
  font-weight: 700;
}

.ci-sub {
  font-weight: 700;
  color: var(--primary);
  min-width: 70px;
  text-align: right;
}

.ci-remove {
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 1.3rem;
  line-height: 1;
}

.order-box {
  background: var(--panel-alt);
  border-radius: 16px;
  padding: 16px;
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.ob-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.ob-line span { color: var(--muted); font-size: 0.9rem; }
.ob-line strong { text-align: right; }

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.order-actions .primary-btn,
.order-actions .secondary-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

@media (max-width: 980px) {
  .cart-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .cart-item-card { grid-template-columns: 70px 1fr auto; }
  .cart-item-card img { width: 70px; height: 70px; }
  .ci-sub { grid-column: 2 / 3; text-align: left; }
  .ci-remove { grid-area: auto; }
}

/* ---------- Login do painel ---------- */
.login-screen {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(7, 47, 57, 0.96);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.login-screen.hidden { display: none; }
.login-card {
  width: min(380px, 100%);
  background: var(--panel);
  border-radius: var(--radius);
  padding: 34px 28px;
  text-align: center;
  box-shadow: var(--shadow);
}
.login-card h2 { margin: 0 0 4px; font-size: 1.25rem; color: var(--primary); }
.login-card input {
  width: 100%;
  margin: 18px 0 10px;
  padding: 12px 14px;
  border: 1px solid #ddd;
  border-radius: 12px;
  text-align: center;
  letter-spacing: 2px;
}
.login-err {
  color: var(--danger);
  font-size: 0.85rem;
  margin: 8px 0 0;
}
.logo-mark {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.subtle { color: var(--muted); margin: 4px 0; }
.primary-btn {
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
}
.primary-btn:hover { background: var(--primary-dark); }

/* ---------- Abas do painel ---------- */
.tabbar {
  display: flex;
  gap: 8px;
  margin: 22px 0 0;
}
.tab {
  border: 1px solid #d8d2c8;
  background: #fff;
  color: var(--muted);
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9rem;
}
.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}
.admin-panel-hidden { display: none; }

/* ---------- Tema escuro do painel (só admin.html) ---------- */
.admin-body {
  --bg: #0b0b0e;
  --panel: #17171c;
  --panel-alt: #202028;
  --primary: #000000;
  --primary-dark: #000000;
  --accent: #d6dbe1;
  --accent-strong: #9fa8b1;
  --text: #eef0f3;
  --muted: #9aa2ab;
  --success: #3dbf8a;
  --danger: #ef6b6b;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}

.admin-body .topbar {
  background: linear-gradient(90deg, #000, #131318);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.admin-body .topbar .ghost-btn {
  border-color: rgba(255, 255, 255, 0.22);
  color: #eceef1;
}
.admin-body .logo-mark {
  background: linear-gradient(135deg, #101016, #1d1d25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #e8ebef;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
}

.admin-body .panel {
  background: linear-gradient(180deg, #1a1a21, #141419);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
}
.admin-body .panel h3 { color: #d6dae2; }

.enc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: #1e1e26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  margin-bottom: 8px;
  color: #d6dae2;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-body .metric-card {
  background: linear-gradient(135deg, #212129, #191921);
  border: 1px solid rgba(255, 255, 255, 0.09);
}
.admin-body .metric-card strong { color: #d6dae2; }
.admin-body .metric-card .label { color: var(--muted); }

.admin-body .data-table th,
.admin-body .data-table td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.admin-body .data-table th { color: var(--muted); }

.admin-body .field-wrap input,
.admin-body .field-wrap select,
.admin-body .field-wrap textarea {
  background: #23232c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.admin-body .field-wrap input::placeholder,
.admin-body .field-wrap textarea::placeholder { color: #7f858d; }

.admin-body .admin-btn,
.admin-body .primary-btn {
  background: linear-gradient(135deg, #dfe3e8, #aeb6c0);
  color: #101216;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.admin-body .inline-btn {
  background: rgba(255, 255, 255, 0.08);
  color: #d4d9de;
}
.admin-body .inline-btn.danger {
  background: rgba(239, 107, 107, 0.14);
  color: #ff9b9b;
}
.admin-body .inline-btn:hover { filter: brightness(1.15); }

.admin-body .tab {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #c9cdd2;
}
.admin-body .tab:hover { border-color: rgba(255, 255, 255, 0.45); }
.admin-body .tab.active {
  background: linear-gradient(135deg, #dfe3e8, #aeb6c0);
  border-color: transparent;
  color: #101216;
}

.admin-body .empty-state {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.02);
}

.admin-body .login-screen {
  background: radial-gradient(circle at 50% 20%, #22222b, #000 72%);
}
.admin-body .login-card {
  background: #141419;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.65);
}
.admin-body .login-card h2 { color: #fff; }
.admin-body .login-card input {
  background: #23232c;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

.admin-body .toast {
  background: linear-gradient(135deg, #dfe3e8, #aeb6c0);
  color: #101216;
  font-weight: 600;
}
