/* ==========================================================================
   REI DA PRATA • JÓIAS EM PRATA 925 LEGÍTIMA
   High-End Luxury Dark & Silver Design System
   ========================================================================== */

:root {
  /* Dark Onyx & Obsidian Theme */
  --bg-primary: #090a0d;
  --bg-secondary: #101218;
  --bg-surface: #171a22;
  --bg-card: #1c202b;
  --bg-hover: #242938;

  /* Silver Metallic Palette */
  --silver-100: #ffffff;
  --silver-200: #f1f5f9;
  --silver-300: #e2e8f0;
  --silver-400: #cbd5e1;
  --silver-500: #94a3b8;
  --silver-600: #64748b;
  --silver-dark: #334155;

  /* Radiant Foil & Luxury Accents */
  --silver-foil: linear-gradient(135deg, #ffffff 0%, #cbd5e1 45%, #94a3b8 70%, #f8fafc 100%);
  --silver-gradient: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 100%);
  --gold-gradient: linear-gradient(135deg, #fbbf24 0%, #d4af37 50%, #b45309 100%);
  --silver-border: rgba(255, 255, 255, 0.12);
  --silver-border-glow: rgba(255, 255, 255, 0.28);
  --silver-glow: 0 0 25px rgba(255, 255, 255, 0.08);

  /* Accents */
  --gold-crown: #d4af37;
  --gold-glow: rgba(212, 175, 55, 0.25);
  --cyan-ice: #38bdf8;
  --emerald-pix: #10b981;
  --emerald-dark: #059669;
  --whatsapp-green: #25D366;
  --whatsapp-hover: #1ebd5a;

  /* Typography Colors */
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  /* Fonts */
  --font-serif: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Layout & Radii */
  --container-max: 1200px;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base Resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  line-height: 1.6;
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(255, 255, 255, 0.03) 0%, transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(56, 189, 248, 0.025) 0%, transparent 45%);
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  outline: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ==========================================================================
   ANNOUNCEMENT BAR & NAVBAR
   ========================================================================== */
.announcement-bar {
  background: linear-gradient(90deg, #11141b 0%, #1e2433 50%, #11141b 100%);
  border-bottom: 1px solid var(--silver-border);
  padding: 8px 16px;
  font-size: 0.8rem;
  color: var(--silver-300);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  text-align: center;
  font-weight: 500;
}

.announcement-bar span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.announcement-bar .badge-pix {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-pix);
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 900;
  background: rgba(9, 10, 13, 0.92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--silver-border);
  transition: var(--transition);
}

.navbar.scrolled {
  background: rgba(9, 10, 13, 0.98);
  border-bottom-color: var(--silver-border-glow);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}

.brand-logo img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--silver-border);
  object-fit: cover;
}

.brand-text h1 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--silver-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1;
}

.brand-text span {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  color: var(--silver-400);
  text-transform: uppercase;
  font-family: var(--font-mono);
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--silver-400);
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-link:hover {
  color: var(--silver-100);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-silver,
.admin-form-footer button[type="submit"],
.admin-pin-modal button[type="submit"] {
  background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #e2e8f0 100%) !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 1px solid #ffffff !important;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3), 0 0 8px rgba(255, 255, 255, 0.15) !important;
  opacity: 1 !important;
  letter-spacing: 0.3px;
}

.btn-silver:hover,
.admin-form-footer button[type="submit"]:hover,
.admin-pin-modal button[type="submit"]:hover {
  background: #ffffff !important;
  color: #000000 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(255, 255, 255, 0.5), 0 0 12px rgba(255, 255, 255, 0.25) !important;
}

.btn-outline-silver {
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-100);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 600;
}

.btn-outline-silver:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: #ffffff;
  color: #ffffff;
}

.btn-whatsapp {
  background: var(--whatsapp-green);
  color: #ffffff;
}

.btn-whatsapp:hover {
  background: var(--whatsapp-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
}

.btn-cart {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  color: var(--silver-200);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
}

.btn-cart:hover {
  border-color: var(--silver-400);
  background: var(--bg-card);
}

.cart-badge-count {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--silver-100);
  color: #000;
  font-size: 0.7rem;
  font-weight: 800;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px 0;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.hero-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--silver-border);
  color: var(--silver-300);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.hero-title {
  font-family: var(--font-serif);
  font-size: 3.2rem;
  line-height: 1.15;
  margin-bottom: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.hero-title span {
  background: var(--silver-foil);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.05rem;
  color: var(--silver-400);
  line-height: 1.65;
  margin-bottom: 32px;
  max-width: 580px;
}

.hero-cta-group {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-trust-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-top: 24px;
  border-top: 1px solid var(--silver-border);
}

.trust-item h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--silver-100);
  font-family: var(--font-mono);
}

.trust-item p {
  font-size: 0.75rem;
  color: var(--silver-500);
  line-height: 1.3;
}

/* Hero Showcase Card */
.hero-card-box {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  position: relative;
  transition: var(--transition);
}

.hero-card-box:hover {
  border-color: var(--silver-border-glow);
  transform: translateY(-4px);
}

.hero-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  overflow: hidden;
}

.hero-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.hero-card-box:hover .hero-card-img-wrap img {
  transform: scale(1.05);
}

.hero-floating-tag {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(9, 10, 13, 0.85);
  border: 1px solid var(--silver-border);
  backdrop-filter: blur(8px);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--gold-crown);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hero-card-body {
  padding: 24px;
}

.hero-card-specs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.spec-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 6px;
  color: var(--silver-400);
  font-family: var(--font-mono);
}

/* ==========================================================================
   CATALOG & FILTERS
   ========================================================================== */
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 40px auto;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--silver-400);
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--silver-100);
  margin-bottom: 12px;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--silver-500);
}

.catalog-controls {
  margin-bottom: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.search-input-box {
  position: relative;
  max-width: 550px;
  margin: 0 auto;
  width: 100%;
}

.search-input-box i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--silver-500);
  font-size: 0.9rem;
}

.search-input-box input {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-full);
  padding: 12px 20px 12px 44px;
  color: var(--silver-200);
  font-size: 0.9rem;
  transition: var(--transition);
}

.search-input-box input:focus {
  border-color: var(--silver-300);
  background: var(--bg-card);
  box-shadow: var(--silver-glow);
}

.filter-tabs-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.tab-btn {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  color: var(--silver-400);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tab-btn:hover {
  background: var(--bg-hover);
  color: var(--silver-200);
  border-color: var(--silver-400);
}

.tab-btn.active {
  background: var(--silver-100);
  color: #0c0d12;
  border-color: var(--silver-100);
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   CATEGORY SHOWCASE HUB (PÁGINA INICIAL DO CATÁLOGO)
   ========================================================================== */
.category-hub-container {
  margin-bottom: 30px;
}

.category-hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 36px;
}

.category-hub-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 220px;
  background: #0d0f14;
  border: 1px solid var(--silver-border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.category-hub-card:hover {
  border-color: var(--silver-border-glow);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

.category-hub-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  filter: brightness(0.65) contrast(1.1);
}

.category-hub-card:hover .category-hub-bg {
  transform: scale(1.08);
  filter: brightness(0.75) contrast(1.15);
}

.category-hub-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(9, 10, 13, 0.95) 15%, rgba(9, 10, 13, 0.4) 60%, rgba(9, 10, 13, 0.1) 100%);
}

.category-hub-content {
  position: relative;
  z-index: 2;
}

.category-hub-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(212, 175, 55, 0.18);
  color: var(--gold-crown);
  border: 1px solid rgba(212, 175, 55, 0.4);
  font-size: 0.72rem;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}

.category-hub-title {
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.category-hub-desc {
  font-size: 0.82rem;
  color: var(--silver-400);
  margin-bottom: 12px;
  line-height: 1.35;
}

.category-hub-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--silver-100);
  transition: gap 0.2s ease;
}

.category-hub-card:hover .category-hub-cta {
  color: var(--gold-crown);
  gap: 12px;
}

/* Category Active Navigation Banner */
.category-active-banner {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border-glow);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.category-banner-info h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--silver-100);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.category-banner-info p {
  font-size: 0.82rem;
  color: var(--silver-400);
  margin: 2px 0 0;
}

/* ==========================================================================
   PRODUCTS GRID & LUXURY CARDS
   ========================================================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 22px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  border-color: var(--silver-border-glow);
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
}

.product-img-box {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #0d0f14;
  overflow: hidden;
  cursor: pointer;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-img-box img {
  transform: scale(1.07);
}

.product-badge-overlay {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(9, 10, 13, 0.88);
  border: 1px solid var(--silver-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--silver-200);
  backdrop-filter: blur(6px);
  z-index: 2;
}

.product-badge-overlay.gold {
  color: var(--gold-crown);
  border-color: rgba(212, 175, 55, 0.4);
}

.product-badge-overlay.cyan {
  color: var(--cyan-ice);
  border-color: rgba(56, 189, 248, 0.4);
}

.product-badge-overlay.emerald {
  color: var(--emerald-pix);
  border-color: rgba(16, 185, 129, 0.4);
}

.product-badge-overlay.ruby {
  color: #f43f5e;
  border-color: rgba(244, 63, 94, 0.45);
  background: rgba(244, 63, 94, 0.14);
}

.product-badge-overlay.purple {
  color: #c084fc;
  border-color: rgba(192, 132, 252, 0.45);
  background: rgba(192, 132, 252, 0.14);
}

.product-badge-overlay.amber {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
  background: rgba(245, 158, 11, 0.14);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-category-sub {
  font-size: 0.7rem;
  color: var(--silver-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.product-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--silver-100);
  margin-bottom: 6px;
  line-height: 1.3;
}

.product-specs-grid {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.spec-pill {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.72rem;
  color: var(--silver-300);
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.product-price-box {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--silver-border);
  margin-bottom: 12px;
}

.price-pix { display: none !important; }

.price-main {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  font-family: var(--font-sans);
  line-height: 1.2;
}

.price-installments {
  font-size: 0.72rem;
  color: var(--silver-500);
}

.product-size-select {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  color: var(--silver-200);
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 0.78rem;
  margin-bottom: 10px;
  cursor: pointer;
}

.product-actions-row {
  display: flex;
  gap: 8px;
}

.product-actions-row .btn {
  padding: 8px 10px;
  font-size: 0.82rem;
}

/* Category Expand Button Area */
.category-expand-btn-area {
  margin-top: 20px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px dashed var(--silver-border);
}

.btn-expand-category {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--silver-border-glow);
  color: var(--silver-100);
  padding: 10px 24px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: var(--transition);
}

.btn-expand-category:hover {
  background: var(--silver-100);
  color: #0c0d12;
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Global Load More Button */
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.btn-load-more {
  background: var(--silver-100);
  color: #0c0d12;
  border: none;
  padding: 14px 36px;
  border-radius: var(--radius-full);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(255, 255, 255, 0.2);
  transition: var(--transition);
}

.btn-load-more:hover {
  background: #ffffff;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(255, 255, 255, 0.35);
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 80px;
  left: 24px;
  width: 46px;
  height: 46px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  border: 1px solid var(--silver-border-glow);
  color: var(--silver-100);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  cursor: pointer;
  z-index: 90;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: var(--transition);
  opacity: 0;
  pointer-events: none;
  transform: translateY(20px);
}

.scroll-top-btn.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: var(--silver-100);
  color: #000000;
  transform: translateY(-3px);
}

/* ==========================================================================
   RING SIZE FINDER (MEDIDOR DE ANEL COMPLETO & CALIBRADO)
   ========================================================================== */
.ring-finder-card {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 36px 30px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.ring-finder-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 25px;
  border-bottom: 1px solid var(--silver-border);
  padding-bottom: 15px;
  overflow-x: auto;
  scrollbar-width: none;
}
.ring-finder-tabs::-webkit-scrollbar { display: none; }

.ring-finder-tab-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  color: var(--silver-300);
  font-size: 0.86rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: all 0.25s ease;
}

.ring-finder-tab-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-100);
  border-color: var(--silver-400);
}

.ring-finder-tab-btn.active {
  background: linear-gradient(135deg, rgba(226, 232, 240, 0.2) 0%, rgba(226, 232, 240, 0.05) 100%);
  color: #ffffff;
  border-color: var(--silver-200);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.12);
}

.ring-finder-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: center;
}

/* Stepper & Slider Controls */
.ring-stepper-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  margin-bottom: 12px;
}

.ring-step-btn {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  color: var(--silver-100);
  font-size: 1.2rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.ring-step-btn:hover {
  background: var(--silver-border);
  color: #fff;
  transform: scale(1.05);
}
.ring-step-btn:active {
  transform: scale(0.95);
}

.ring-slider-control {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 10px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  outline: none;
  cursor: pointer;
  margin: 0;
  border: 1px solid var(--silver-border);
  touch-action: pan-y;
}

.ring-slider-control::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  cursor: pointer;
  border: 3px solid var(--gold-crown, #d4af37);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8), 0 2px 6px rgba(0,0,0,0.5);
  transition: transform 0.1s ease;
}

.ring-slider-control::-webkit-slider-thumb:hover,
.ring-slider-control::-webkit-slider-thumb:active {
  transform: scale(1.18);
}

.ring-slider-control::-moz-range-thumb {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 100%);
  cursor: pointer;
  border: 3px solid var(--gold-crown, #d4af37);
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.8), 0 2px 6px rgba(0,0,0,0.5);
}


/* Quick Size Chips */
.ring-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
  max-height: 90px;
  overflow-y: auto;
  padding: 2px;
}
.ring-chip-btn {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  color: var(--silver-400);
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  cursor: pointer;
  transition: all 0.15s;
}
.ring-chip-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--silver-200);
}
.ring-chip-btn.active {
  background: var(--silver-border-glow);
  color: var(--silver-100);
  border-color: var(--silver-200);
  font-weight: 800;
  box-shadow: 0 0 10px rgba(255,255,255,0.15);
}

/* Ring Profile Category Filter Buttons */
.ring-profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}

.ring-profile-btn {
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  color: var(--silver-300);
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.ring-profile-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: var(--silver-300);
}

.ring-profile-btn.active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.2) 0%, rgba(212, 175, 55, 0.05) 100%);
  color: var(--gold-crown, #d4af37);
  border-color: var(--gold-crown, #d4af37);
  font-weight: 800;
  box-shadow: 0 0 12px rgba(212, 175, 55, 0.25);
}

.ring-profile-indicator {
  font-size: 0.72rem;
  color: var(--silver-300);
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid var(--silver-border);
  display: inline-block;
  margin-top: 4px;
  font-weight: 600;
}


/* Visual Display Area */
/* Visual Display Area */
.ring-visual-display-area {
  text-align: center;
  background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, var(--bg-secondary) 100%);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 380px;
  position: relative;
  overflow: hidden;
}

/* Selected Ring Preview Top Card */
.ring-selected-preview-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--silver-border);
  border-radius: 10px;
  padding: 12px 18px;
  width: 100%;
  margin-bottom: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.ring-aro-display-top {
  font-size: 2.2rem;
  font-weight: 800;
  font-family: var(--font-serif);
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 0 15px rgba(255, 255, 255, 0.35);
}

.ring-mm-badge {
  font-size: 0.88rem;
  color: var(--gold-crown, #d4af37);
  font-family: var(--font-mono);
  font-weight: 700;
  background: rgba(212, 175, 55, 0.12);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* Circle Stage & Pure Ring Gauge */
.ring-circle-stage {
  width: 100%;
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  margin: 10px 0;
}

.ring-interactive-circle {
  border: 3.5px solid #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 70%, transparent 100%);
  box-shadow: 0 0 28px rgba(255, 255, 255, 0.35), inset 0 0 16px rgba(255, 255, 255, 0.15);
  transition: width 0.12s ease-out, height 0.12s ease-out;
  box-sizing: border-box;
  position: relative;
}

/* Delicate Crosshair in center to help align physical ring */
.ring-circle-crosshair {
  width: 12px;
  height: 12px;
  position: relative;
  pointer-events: none;
}
.ring-circle-crosshair::before,
.ring-circle-crosshair::after {
  content: '';
  position: absolute;
  background: rgba(255, 255, 255, 0.45);
}
.ring-circle-crosshair::before {
  top: 5px;
  left: 0;
  width: 12px;
  height: 2px;
}
.ring-circle-crosshair::after {
  top: 0;
  left: 5px;
  width: 2px;
  height: 12px;
}

/* Metric Cards */
.ring-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.ring-metric-card {
  background: var(--bg-card);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--silver-border);
}

.ring-metric-label {
  font-size: 0.7rem;
  color: var(--silver-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
}

.ring-metric-val {
  font-size: 0.92rem;
  color: var(--silver-100);
  font-family: var(--font-mono);
  font-weight: 700;
  display: block;
  margin-top: 2px;
}

/* Action Buttons Group */
.ring-actions-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 16px;
  width: 100%;
}

/* Tab 2: Strip / Fita */
.ring-strip-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}
.ring-step-box {
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  border-radius: 8px;
  padding: 16px 12px;
  text-align: center;
}
.ring-step-icon {
  font-size: 1.6rem;
  color: var(--gold-crown);
  margin-bottom: 8px;
}

/* Tab 3: Table */
.ring-table-wrap {
  max-height: 380px;
  overflow-y: auto;
  border: 1px solid var(--silver-border);
  border-radius: 8px;
  background: var(--bg-secondary);
}
.ring-table-custom {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
  text-align: left;
}
.ring-table-custom th {
  background: var(--bg-card);
  padding: 12px 14px;
  color: var(--silver-200);
  font-weight: 700;
  border-bottom: 1px solid var(--silver-border);
  position: sticky;
  top: 0;
  z-index: 2;
}
.ring-table-custom td {
  padding: 10px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--silver-200);
}
.ring-table-custom tr:hover {
  background: rgba(255, 255, 255, 0.04);
}
.ring-table-custom tr.highlighted {
  background: rgba(212, 175, 55, 0.15);
  font-weight: 700;
}

/* Calibration Bar & Guide */
.ring-calib-ref-bar {
  height: 24px;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  border-radius: 4px;
  margin: 15px auto;
  border: 2px solid #ffffff;
  box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
  transition: width 0.1s ease;
}

.section-highlight-pulse {
  animation: sectionPulseGlow 1.5s ease-out;
}
@keyframes sectionPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(212, 175, 55, 0.8); border-color: var(--gold-crown); }
  50% { box-shadow: 0 0 40px 8px rgba(212, 175, 55, 0.6); border-color: #ffffff; }
  100% { box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); border-color: var(--silver-border); }
}



/* Custom Jewelry Quote Card */
.custom-jewelry-card {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
}

.custom-jewelry-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}

/* ==========================================================================
   POSTER GENERATOR (HTML2CANVAS)
   ========================================================================== */
.studio-box {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.studio-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: start;
}

.poster-canvas-wrapper {
  background: #000;
  padding: 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--silver-border);
  display: flex;
  justify-content: center;
}

.poster-canvas-card {
  width: 320px;
  min-height: 480px;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  position: relative;
  overflow: hidden;
  color: #fff;
}

/* Poster Themes */
.theme-obsidian {
  background: linear-gradient(145deg, #0f1117 0%, #050608 100%);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.theme-silver-glow {
  background: linear-gradient(145deg, #1e2433 0%, #0d1017 100%);
  border: 1px solid #94a3b8;
}

.theme-gold-royal {
  background: linear-gradient(145deg, #1a1710 0%, #0c0b08 100%);
  border: 1px solid #d4af37;
}

.theme-ice-diamond {
  background: linear-gradient(145deg, #0c1a24 0%, #050b10 100%);
  border: 1px solid #38bdf8;
}

.theme-emerald-vip {
  background: linear-gradient(145deg, #06241b 0%, #03120d 100%);
  border: 1px solid #10b981;
}

.poster-card-img-frame {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin: 12px 0;
}

.poster-card-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   CART DRAWER
   ========================================================================== */
.cart-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 10000001 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: var(--transition);
}

.cart-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: -450px;
  width: 100%;
  max-width: 440px;
  height: 100%;
  background: var(--bg-surface);
  border-left: 1px solid var(--silver-border);
  z-index: 10000003 !important;
  display: flex;
  flex-direction: column;
  transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.8);
}

.cart-drawer.active {
  right: 0;
}

.cart-drawer-header {
  padding: 20px;
  border-bottom: 1px solid var(--silver-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
}

.cart-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.cart-item-row {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  align-items: center;
  position: relative;
}

.cart-item-row img,
.cart-item-img {
  width: 68px !important;
  height: 68px !important;
  min-width: 68px !important;
  max-width: 68px !important;
  min-height: 68px !important;
  max-height: 68px !important;
  border-radius: 8px;
  object-fit: cover;
  background: #0d0f14;
  border: 1px solid var(--silver-border);
  flex-shrink: 0;
  display: block;
}

.cart-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cart-item-info h5 {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--silver-100);
  margin: 0;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 0.76rem;
  color: var(--silver-400);
  margin: 1px 0;
}

.cart-item-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--emerald-pix);
}

.qty-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--silver-border);
  padding: 3px 8px;
  border-radius: 6px;
  width: fit-content;
  margin-top: 4px;
}

.qty-btn {
  background: none;
  border: none;
  color: var(--silver-200);
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: var(--transition);
}

.qty-btn:hover {
  color: #ffffff;
}

.remove-btn {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 6px;
  border-radius: 4px;
  transition: var(--transition);
  margin-left: auto;
  align-self: center;
  flex-shrink: 0;
}

.remove-btn:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
}

.cart-drawer-footer {
  padding: 18px 20px;
  border-top: 1px solid var(--silver-border);
  background: var(--bg-card);
}

/* ==========================================================================
   TOAST NOTIFICATION
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--bg-surface);
  border: 1px solid var(--silver-300);
  color: var(--silver-100);
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  animation: toastIn 0.3s ease;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.app-footer {
  background: #050608;
  border-top: 1px solid var(--silver-border);
  padding: 60px 0 30px 0;
  margin-top: 80px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 40px;
}

/* Filter Pills (Gender & Fast Filters) */
.filter-pill {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  color: var(--silver-400);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-pill:hover {
  background: var(--bg-hover);
  color: var(--silver-200);
}

.filter-pill.active {
  background: var(--emerald-pix);
  color: #032e1d;
  border-color: var(--emerald-pix);
}

.zoom-hint-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(9, 10, 13, 0.75);
  border: 1px solid var(--silver-border);
  color: var(--silver-200);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.product-img-box:hover .zoom-hint-tag {
  opacity: 1;
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-content {
  background: var(--bg-surface);
  border: 1px solid var(--silver-border-glow);
  border-radius: var(--radius-lg);
  max-width: 600px;
  width: 100%;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.7);
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes zoomInLight {
  from { transform: scale(0.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(9, 10, 13, 0.85);
  border: 1px solid var(--silver-border);
  color: var(--silver-100);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.lightbox-close:hover {
  background: var(--silver-100);
  color: #000;
}

.lightbox-content img {
  width: 100%;
  max-height: 480px;
  object-fit: contain;
  background: #000000;
  display: block;
}

.lightbox-info {
  padding: 18px 24px;
  background: var(--bg-card);
  border-top: 1px solid var(--silver-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.lightbox-info h4 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--silver-100);
  margin: 0;
}

/* Button ADM in Navbar (Icon-Only Crown) */
.btn-nav-admin {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.22) 0%, rgba(212, 175, 55, 0.08) 100%);
  border: 1px solid rgba(212, 175, 55, 0.55);
  color: var(--gold-crown);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(212, 175, 55, 0.15);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  -webkit-tap-highlight-color: transparent;
}

.btn-nav-admin:hover,
.btn-nav-admin:active {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.35) 0%, rgba(212, 175, 55, 0.15) 100%);
  border-color: rgba(212, 175, 55, 0.9);
  box-shadow: 0 4px 16px rgba(212, 175, 55, 0.35);
  transform: translateY(-1px);
}

/* ==========================================================================
   ADMIN PANEL & LOGIN MODAL STYLES (REI DA PRATA)
   ========================================================================== */
.admin-pin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: linear-gradient(180deg, #131724 0%, #090b10 100%);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 20px;
  padding: 28px 24px;
  width: 92%;
  max-width: 410px;
  max-height: 90vh;
  max-height: 90dvh;
  overflow-y: auto;
  z-index: 2147483647;
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.95), 0 0 30px rgba(212, 175, 55, 0.15);
  text-align: center;
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
  display: none;
}

.modal-close-btn-top {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver-300);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.modal-close-btn-top:hover,
.modal-close-btn-top:active {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.4);
}

.login-crown-badge {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.25) 0%, rgba(212, 175, 55, 0.03) 70%);
  border: 1px solid rgba(212, 175, 55, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px auto;
  color: var(--gold-crown);
  font-size: 1.6rem;
  box-shadow: 0 0 20px rgba(212, 175, 55, 0.2);
}

.login-modal-header h3 {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  color: var(--silver-100);
  margin: 0 0 4px 0;
  letter-spacing: 0.02em;
}

.login-modal-header p {
  font-size: 0.78rem;
  color: var(--silver-400);
  margin: 0 0 16px 0;
}

/* Quick User Selector Chips */
.login-quick-users-container {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 18px;
  text-align: left;
}

.quick-user-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--silver-400);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-quick-users-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.quick-user-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 10px;
  color: var(--silver-200);
  font-size: 0.73rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  transition: all 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.quick-user-chip:hover,
.quick-user-chip:active {
  background: rgba(212, 175, 55, 0.18);
  border-color: rgba(212, 175, 55, 0.5);
  color: var(--gold-crown);
  transform: translateY(-1px);
}

.quick-user-chip .chip-avatar {
  font-size: 0.85rem;
}

/* Input icon wrap & lux input */
.form-group-login {
  margin-bottom: 14px;
  text-align: left;
}

.form-group-login label {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--silver-300);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.input-leading-icon {
  position: absolute;
  left: 14px;
  color: var(--silver-500);
  font-size: 0.95rem;
  pointer-events: none;
}

.admin-input-lux {
  width: 100%;
  background: rgba(10, 12, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #fff;
  font-size: 0.95rem;
  padding: 12px 42px 12px 38px;
  transition: all 0.2s ease;
  font-family: inherit;
  box-sizing: border-box;
}

.admin-input-lux:focus {
  outline: none;
  border-color: var(--gold-crown);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.25);
  background: rgba(15, 18, 26, 0.95);
}

.btn-toggle-password {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--silver-400);
  padding: 8px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-toggle-password:hover,
.btn-toggle-password:active {
  color: var(--gold-crown);
}

.login-error-box {
  font-size: 0.8rem;
  color: #ef4444;
  margin-bottom: 14px;
  text-align: center;
  padding: 8px 12px;
  background: rgba(239, 68, 68, 0.12);
  border-radius: 8px;
  border: 1px solid rgba(239, 68, 68, 0.25);
  line-height: 1.4;
}

.login-actions-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.btn-login-submit {
  width: 100%;
  padding: 13px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #090a0f;
  background: linear-gradient(135deg, #e8c85c 0%, #d4af37 50%, #aa8620 100%);
  border: none;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.35);
  transition: all 0.2s ease;
  letter-spacing: 0.02em;
}

.btn-login-submit:hover,
.btn-login-submit:active {
  filter: brightness(1.1);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.btn-login-cancel {
  width: 100%;
  padding: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--silver-400);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-login-cancel:hover,
.btn-login-cancel:active {
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver-200);
}

.login-modal-footer {
  margin-top: 14px;
  font-size: 0.68rem;
  color: var(--silver-500);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* Mobile Luxury Floating Bottom Navigation Bar */
.mobile-bottom-nav {
  display: none;
}

.admin-backdrop,
#adminBackdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000002 !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  display: none;
}

.admin-backdrop.active,
#adminBackdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

.admin-dashboard-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 96%;
  max-width: 1320px;
  height: 92vh;
  background: #090a0f;
  border: 1px solid var(--silver-border-glow);
  border-radius: var(--radius-lg);
  z-index: 2147483647;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-dashboard-modal.active,
body.admin-authenticated .admin-dashboard-modal {
  display: flex !important;
}

.admin-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #0d0f17;
  border: 1px solid var(--silver-border-glow);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  z-index: 10000010;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.95);
  animation: zoomInLight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
  background: #11131c;
  border-bottom: 1px solid var(--silver-border);
}

.admin-header-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-header-title h3 {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--silver-100);
  margin: 0;
}

.admin-nav-bar {
  display: flex;
  gap: 8px;
  padding: 10px 24px;
  background: #0b0d14;
  border-bottom: 1px solid var(--silver-border);
  overflow-x: auto;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid transparent;
  color: var(--silver-400);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.04);
  color: var(--silver-100);
}

.admin-nav-item.active {
  background: rgba(212, 175, 55, 0.12);
  border-color: rgba(212, 175, 55, 0.4);
  color: var(--gold-crown);
}

.admin-tab-content-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
}

.admin-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.admin-input {
  background: #141722;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  color: #ffffff;
  padding: 10px 14px;
  font-size: 0.86rem;
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.admin-input:focus {
  border-color: var(--cyan-ice);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.2);
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  background: #11141e;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.84rem;
}

.admin-table th {
  padding: 12px 16px;
  background: #171b28;
  color: var(--silver-300);
  font-weight: 700;
  border-bottom: 1px solid var(--silver-border);
  white-space: nowrap;
}

.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--silver-300);
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.admin-table-thumb {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--silver-border);
  cursor: pointer;
  display: block;
}

.admin-btn-action {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--silver-border);
  color: var(--silver-200);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.82rem;
}

.admin-btn-action:hover {
  background: var(--silver-100);
  color: #000;
}

.admin-btn-action.delete:hover {
  background: #ef4444;
  border-color: #ef4444;
  color: #fff;
}

.stock-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
  font-family: var(--font-mono);
}

.stock-ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--emerald-pix);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.stock-low {
  background: rgba(245, 158, 11, 0.15);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.stock-out {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.admin-metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.metric-card {
  background: #11141e;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.metric-title {
  font-size: 0.82rem;
  color: var(--silver-400);
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-value {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  font-family: var(--font-mono);
  margin-bottom: 4px;
}

.metric-sub {
  font-size: 0.75rem;
  color: var(--silver-500);
}

.admin-charts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.admin-chart-card {
  background: #11141e;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 20px;
}

.admin-chart-card h5 {
  font-size: 0.95rem;
  color: var(--silver-200);
  font-family: var(--font-serif);
  margin: 0 0 16px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-canvas-box {
  height: 240px;
  position: relative;
  width: 100%;
}

.admin-backup-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.backup-card {
  background: #11141e;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Modal Cadastro / Edição de Jóia */
.admin-form-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 760px;
  max-height: 90vh;
  background: #0c0e16;
  border: 1px solid var(--silver-border-glow);
  border-radius: var(--radius-lg);
  z-index: 2700;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.95);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: zoomInLight 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-form-modal form {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.admin-form-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}

.admin-form-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
  padding: 14px 24px;
  background: #111420;
  border-top: 1px solid var(--silver-border);
  flex-shrink: 0;
}

.admin-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.admin-form-group label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--silver-300);
}

/* ==========================================================================
   RESPONSIVIDADE PREMIUM MOBILE-FIRST (SMARTPHONES, IPHONES & TABLETS)
   ========================================================================== */
@media (max-width: 992px) {
  .hero-grid,
  .ring-finder-grid,
  .studio-grid,
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .nav-menu {
    display: none;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-trust-bar {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
}

@media (max-width: 768px) {
  /* Container e Espaçamentos Gerais */
  .container {
    padding: 0 14px;
  }

  /* Barra de Anúncios */
  .announcement-bar {
    font-size: 0.72rem;
    padding: 6px 10px;
    gap: 8px;
    line-height: 1.3;
  }

  /* Cabeçalho / Navbar Otimizado para Mobile e Telas Estreitas (Moto G6) */
  .nav-container {
    height: 56px;
    padding: 0 8px;
  }
  .brand-logo {
    gap: 6px;
  }
  .brand-logo img {
    width: 30px;
    height: 30px;
    border-radius: 6px;
  }
  .brand-text h1 {
    font-size: 1rem;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
  }
  .brand-text span {
    font-size: 0.58rem;
    white-space: nowrap;
  }
  .nav-actions {
    gap: 5px;
    align-items: center;
  }
  .btn-nav-admin {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0.9rem;
    border-radius: 8px;
  }
  .btn-cart {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }
  .nav-actions .btn-whatsapp {
    width: 32px;
    height: 32px;
    padding: 0;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
  }

  /* Hero Section */
  .hero-section {
    padding: 24px 0 30px 0;
  }
  .hero-title {
    font-size: 1.9rem;
    line-height: 1.22;
  }
  .hero-desc {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 20px;
  }
  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 10px;
  }
  .hero-cta-group .btn {
    width: 100%;
    padding: 13px 18px;
    font-size: 0.88rem;
    justify-content: center;
  }
  .hero-showcase-card {
    padding: 16px;
    border-radius: var(--radius-md);
  }
  .hero-floating-badge {
    position: static;
    margin-top: 10px;
    width: 100%;
    justify-content: center;
  }

  /* Carrossel de Categorias Deslizável (Swipe Horizontal no Celular) */
  .filter-tabs-row {
    justify-content: flex-start !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 4px 4px 12px 4px !important;
    margin: 0 -14px 14px -14px !important;
    padding-left: 14px !important;
    padding-right: 14px !important;
  }
  .filter-tabs-row::-webkit-scrollbar {
    display: none !important;
  }
  .tab-btn {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
    font-size: 0.78rem !important;
    padding: 8px 14px !important;
    border-radius: 20px !important;
  }

  /* Barra de Busca e Filtros */
  .search-input-box {
    margin-bottom: 12px;
  }
  .search-input-box input {
    font-size: 0.85rem;
    padding: 12px 14px 12px 38px;
    border-radius: 24px;
  }

  /* Grid do Hub de Categorias */
  .category-hub-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)) !important;
    gap: 10px !important;
    margin-bottom: 24px !important;
  }
  .category-hub-card {
    height: 140px !important;
    padding: 14px !important;
    border-radius: var(--radius-md) !important;
  }
  .category-hub-card h3 {
    font-size: 0.92rem !important;
  }
  .category-hub-card p {
    display: none !important;
  }
  .category-hub-badge {
    font-size: 0.62rem !important;
    padding: 2px 6px !important;
  }

  /* GRADE DE PRODUTOS: 2 COLUNAS MODERNA NO CELULAR */
  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }
  .product-card {
    border-radius: var(--radius-sm) !important;
    box-shadow: 0 4px 14px rgba(0,0,0,0.3) !important;
  }
  .product-img-box {
    aspect-ratio: 1 / 1 !important;
  }
  .product-badge-overlay {
    font-size: 0.6rem !important;
    padding: 2px 6px !important;
    top: 6px !important;
    left: 6px !important;
  }
  .product-body {
    padding: 10px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
  }
  .product-category-sub {
    font-size: 0.62rem !important;
    margin-bottom: 2px !important;
  }
  .product-title {
    font-size: 0.82rem !important;
    line-height: 1.25 !important;
    font-weight: 700 !important;
    min-height: 2.4em !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    margin-bottom: 4px !important;
  }
  .product-specs-grid {
    display: none !important;
  }
  .product-price-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
    margin-bottom: 8px !important;
  }
  .price-main {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
  }
  .price-wholesale-tag {
    font-size: 0.72rem !important;
    padding: 2px 5px !important;
  }
  .installment-pill {
    font-size: 0.64rem !important;
    padding: 2px 4px !important;
    width: 100% !important;
    text-align: center !important;
    box-sizing: border-box !important;
  }
  .product-actions-row {
    display: flex !important;
    flex-direction: column !important;
    gap: 5px !important;
    margin-top: auto !important;
  }
  .product-actions-row .btn {
    width: 100% !important;
    padding: 8px 4px !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    justify-content: center !important;
    border-radius: 6px !important;
  }

  /* Medidor de Anéis Responsivo */
  #medidor {
    padding: 20px 0 !important;
  }
  .ring-finder-card {
    padding: 20px 14px !important;
    border-radius: var(--radius-md) !important;
  }
  .ring-finder-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  .ring-visual-display-area {
    min-height: 300px !important;
    padding: 20px 12px !important;
  }
  .ring-strip-steps {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .ring-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }
  .ring-aro-display {
    font-size: 2rem !important;
  }

  /* Simulador de Jóias Sob Medida */
  #sob-medida {
    padding: 20px 0 !important;
  }
  .custom-jewelry-card {
    padding: 20px 14px !important;
    border-radius: var(--radius-md) !important;
  }
  .custom-jewelry-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }
  #sob-medida h2 {
    font-size: 1.6rem !important;
  }
  #customQuoteResultPrice {
    font-size: 1.8rem !important;
  }
  .product-size-select {
    font-size: 16px !important;
    padding: 10px 12px !important;
  }

  /* Sacola / Cart Drawer */
  .cart-drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
  .cart-item-row {
    gap: 10px !important;
    padding: 10px 0 !important;
  }
  .cart-item-img {
    width: 55px !important;
    height: 55px !important;
  }

  /* Barra de Navegação Inferior Mobile Flutuante */
  body {
    padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    height: 60px !important;
    background: #090a0f !important;
    border-top: 1px solid #1c2030 !important;
    box-shadow: 0 -6px 25px rgba(0, 0, 0, 0.9) !important;
    z-index: 2147483640 !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 0 4px calc(env(safe-area-inset-bottom, 0px) + 2px) 4px !important;
    box-sizing: border-box !important;
    visibility: visible !important;
    opacity: 1 !important;
    transform: translateZ(0) !important;
    -webkit-transform: translateZ(0) !important;
    will-change: transform !important;
    backface-visibility: hidden !important;
    -webkit-backface-visibility: hidden !important;
  }

  body.admin-open .mobile-bottom-nav {
    display: none !important;
  }

  .bottom-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    color: var(--silver-400);
    font-size: 0.64rem;
    font-weight: 600;
    text-decoration: none;
    padding: 4px 2px;
    gap: 2px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .bottom-nav-item i {
    font-size: 1.1rem;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .bottom-nav-item:active {
    transform: scale(0.92);
  }

  .bottom-nav-item:hover,
  .bottom-nav-item:focus {
    color: var(--silver-100);
  }

  /* Highlighted Crown ADM Central Button */
  .bottom-nav-admin {
    color: var(--gold-crown) !important;
    position: relative;
    top: -6px;
  }

  .bottom-admin-badge {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f3d46a 0%, #d4af37 50%, #997e20 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-size: 1.15rem;
    box-shadow: 0 3px 12px rgba(212, 175, 55, 0.4), inset 0 1px 2px rgba(255, 255, 255, 0.6);
    border: 2px solid #090b10;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
  }

  .bottom-nav-admin:active .bottom-admin-badge {
    transform: scale(0.92);
  }

  .bottom-nav-admin span {
    font-weight: 800;
    color: var(--gold-crown);
    font-size: 0.62rem;
    letter-spacing: 0.01em;
    margin-top: 1px;
  }

  .bottom-nav-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .cart-badge-count-mobile {
    position: absolute;
    top: -5px;
    right: -9px;
    background: var(--gold-crown);
    color: #090a0f;
    font-size: 0.6rem;
    font-weight: 800;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
  }

  /* Modal de Login Otimizado para Teclados Android (Moto G6) */
  .admin-pin-modal {
    position: fixed !important;
    top: 24px !important;
    bottom: auto !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 92% !important;
    max-width: 380px !important;
    max-height: 85vh !important;
    padding: 22px 18px !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.95) !important;
    background: #0d0f17 !important;
    border: 1px solid rgba(212, 175, 55, 0.4) !important;
    overflow-y: auto !important;
  }

  /* Painel Administrativo em Telas Pequenas */
  .admin-dashboard-modal {
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    max-height: 100vh !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
    top: 0 !important;
    left: 0 !important;
    transform: none !important;
    display: none !important;
    flex-direction: column !important;
    border: none !important;
    padding-top: env(safe-area-inset-top, 0px) !important;
  }

  body.admin-authenticated .admin-dashboard-modal,
  .admin-dashboard-modal.active {
    display: flex !important;
  }

  .hide-mobile {
    display: none !important;
  }

  .navbar .btn-nav-admin {
    display: inline-flex !important;
  }

  .navbar .btn-whatsapp {
    padding: 0 !important;
    width: 38px !important;
    height: 38px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  .navbar .btn-whatsapp i {
    font-size: 1.15rem !important;
    margin: 0 !important;
  }

  .navbar .nav-actions {
    gap: 8px !important;
  }

  .admin-header {
    padding: 8px 10px !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    background: #090a0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .admin-header-row-1 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
  }

  .admin-header-row-2 {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    gap: 6px !important;
    flex-wrap: wrap !important;
  }

  .admin-header-title {
    gap: 6px !important;
  }

  .admin-header-title h3 {
    font-size: 0.95rem !important;
  }

  .admin-header-title img {
    width: 26px !important;
    height: 26px !important;
  }

  /* Horizontal swipeable tab bar for mobile admin */
  .admin-nav-bar {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    padding: 8px 10px !important;
    gap: 6px !important;
    background: #090a0f !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .admin-nav-bar::-webkit-scrollbar {
    display: none !important;
  }

  .admin-nav-item {
    flex-shrink: 0 !important;
    padding: 8px 14px !important;
    font-size: 0.76rem !important;
    border-radius: 8px !important;
  }

  .admin-tab-content-area {
    padding: 14px 12px 60px 12px !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .admin-metrics-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  .metric-card {
    padding: 10px 8px !important;
  }

  .metric-value {
    font-size: 1.25rem !important;
  }

  .admin-table-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    border-radius: var(--radius-sm) !important;
  }

  /* Modais Administrativos */
  #wholesaleTableModal,
  #adminBulkPricingModal,
  #adminUserFormModal,
  #adminProductFormModal,
  #adminCRMEditModal,
  #adminPullOrderModal,
  #adminOrderEditModal {
    width: 95vw !important;
    max-width: 95vw !important;
    max-height: 92vh !important;
    padding: 12px !important;
    border-radius: var(--radius-md) !important;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.65rem !important;
  }
  .products-grid {
    grid-template-columns: 1fr !important;
  }
  .product-actions-row {
    flex-direction: column !important;
  }
  .brand-text h1 {
    font-size: 1rem !important;
  }
}

/* ==========================================================================
   USUÁRIOS, PERMISSÕES, AUDITORIA & PDV (NOVOS MÓDULOS)
   ========================================================================== */

/* Badges de Função e Status */
.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.role-badge-adm { background: rgba(212, 175, 55, 0.15); color: var(--gold-crown); border: 1px solid rgba(212, 175, 55, 0.3); }
.role-badge-gerente { background: rgba(56, 189, 248, 0.15); color: var(--cyan-ice); border: 1px solid rgba(56, 189, 248, 0.3); }
.role-badge-pdv { background: rgba(16, 185, 129, 0.15); color: var(--emerald-pix); border: 1px solid rgba(16, 185, 129, 0.3); }
.role-badge-estoque { background: rgba(168, 85, 247, 0.15); color: #c084fc; border: 1px solid rgba(168, 85, 247, 0.3); }

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 600;
}
.status-active { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.status-inactive { background: rgba(239, 68, 68, 0.12); color: #f87171; }

/* Grid de Permissões no Cadastro de Usuário */
.permissions-container {
  background: #090a0f;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 6px;
}
.permissions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}
.permission-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.78rem;
  color: var(--silver-300);
  cursor: pointer;
  transition: var(--transition);
}
.permission-item:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--silver-border);
}
.permission-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: var(--gold-crown);
}

/* Auditoria & Logs */
.audit-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 0.7rem;
  font-weight: 700;
  font-family: var(--font-mono);
}
.audit-info { background: rgba(56, 189, 248, 0.15); color: #38bdf8; border: 1px solid rgba(56, 189, 248, 0.3); }
.audit-success { background: rgba(16, 185, 129, 0.15); color: #10b981; border: 1px solid rgba(16, 185, 129, 0.3); }
.audit-warning { background: rgba(245, 158, 11, 0.15); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.3); }
.audit-danger { background: rgba(239, 68, 68, 0.15); color: #ef4444; border: 1px solid rgba(239, 68, 68, 0.3); }

/* Ponto de Venda (PDV) */
.pdv-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
}
@media (max-width: 900px) {
  .pdv-layout {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .pdv-catalog-box,
  .pdv-cart-box {
    height: auto !important;
    max-height: 540px !important;
    padding: 12px !important;
  }
  .pdv-products-scroll {
    max-height: 360px !important;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)) !important;
    gap: 8px !important;
  }
  .pdv-item-img {
    height: 80px !important;
  }
}
.pdv-catalog-box {
  background: #11141e;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 600px;
}
.pdv-products-scroll {
  flex: 1;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  padding-right: 4px;
}
.pdv-item-card {
  background: #171b26;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 10px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: var(--transition);
}
.pdv-item-card:hover {
  border-color: var(--gold-crown);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.pdv-item-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 8px;
}
.pdv-cart-box {
  background: #11141e;
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  height: 600px;
}
.pdv-cart-list {
  flex: 1;
  overflow-y: auto;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  background: #0a0c12;
  padding: 10px;
  margin: 10px 0;
}
.pdv-cart-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.8rem;
}
.pdv-cart-row:last-child {
  border-bottom: none;
}
.pdv-total-card {
  background: rgba(212, 175, 55, 0.08);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--radius-md);
  padding: 14px;
  margin-top: 8px;
}

/* ==========================================================================
   FIREBASE REALTIME DB SYNC BADGE & CLOUD INDICATOR
   ========================================================================== */
.firebase-db-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-family: var(--font-sans);
  font-weight: 700;
  transition: all 0.3s ease;
  user-select: none;
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.firebase-db-status-badge.db-status-connected {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.firebase-db-status-badge.db-status-syncing {
  border-color: rgba(245, 158, 11, 0.4);
  color: #fbbf24;
  background: rgba(245, 158, 11, 0.1);
}

.firebase-db-status-badge.db-status-offline {
  border-color: rgba(16, 185, 129, 0.4);
  color: #34d399;
  background: rgba(16, 185, 129, 0.1);
}

.db-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px currentColor;
  animation: dbPulseAnim 2s infinite ease-in-out;
}

@keyframes dbPulseAnim {
  0%, 100% { transform: scale(0.9); opacity: 0.8; }
  50% { transform: scale(1.25); opacity: 1; }
}

.db-status-text {
  display: flex;
  align-items: center;
  gap: 5px;
}

.db-sync-btn {
  background: transparent;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease;
  opacity: 0.8;
}

.db-sync-btn:hover {
  opacity: 1;
  transform: rotate(30deg);
}

/* ==========================================================================
   RELATÓRIO GERAL CONSOLIDADO & ESTILOS DE IMPRESSÃO / PDF
   ========================================================================== */
.report-dossier-card {
  background: var(--bg-secondary);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 24px;
}

.report-dossier-card h5 {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--silver-100);
  margin-bottom: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 8px;
}

.report-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.report-summary-box {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--silver-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
}

.report-summary-box .title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--silver-400);
  margin-bottom: 4px;
}

.report-summary-box .value {
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--silver-100);
}

.report-summary-box .sub {
  font-size: 0.72rem;
  color: var(--silver-500);
  margin-top: 2px;
}

@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 10pt;
  }

  .announcement-bar,
  .main-navbar,
  .cart-drawer,
  .cart-backdrop,
  .floating-contact,
  .admin-nav-bar,
  .admin-header,
  .admin-panel-footer,
  .btn,
  button,
  .admin-table-filters,
  #adminBackdrop,
  .admin-metrics-grid {
    display: none !important;
  }

  .admin-dashboard-modal {
    position: static !important;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: #ffffff !important;
    color: #000000 !important;
    padding: 0 !important;
  }

  .admin-panel-body,
  .admin-panel-section,
  .report-dossier-card {
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #cccccc !important;
    box-shadow: none !important;
    margin-bottom: 20px !important;
    page-break-inside: avoid;
  }

  .no-print,
  .report-filters-bar,
  .report-actions-bar {
    display: none !important;
  }

  .admin-table-container {
    max-height: none !important;
    overflow: visible !important;
  }

  .admin-table {
    border-collapse: collapse !important;
    width: 100% !important;
  }

  .admin-table th,
  .admin-table td {
    border: 1px solid #dddddd !important;
    color: #000000 !important;
    padding: 6px 8px !important;
    font-size: 8.5pt !important;
  }

  .admin-table th {
    background: #f0f0f0 !important;
    color: #000000 !important;
    font-weight: bold !important;
  }

  /* Impressão de Etiquetas de Jóias */
  #adminJewelryTagsModal {
    display: block !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
    max-width: 100% !important;
    border: none !important;
    background: #fff !important;
    padding: 0 !important;
    box-shadow: none !important;
  }

  .jewelry-tags-sheet {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    background: #fff !important;
    padding: 0 !important;
  }

  .jewelry-tag-item {
    page-break-inside: avoid !important;
    border: 1px solid #000 !important;
  }
}

/* ==========================================================================
   REVIEW CARDS & SOCIAL PROOF STYLES
   ========================================================================== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.review-card {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.review-card:hover {
  transform: translateY(-4px);
  border-color: rgba(212, 175, 55, 0.4);
}

.zoom-hint-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: var(--silver-200);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.product-card:hover .zoom-hint-tag {
  opacity: 1;
  color: var(--gold-crown);
}




.admin-backdrop.active,
#adminBackdrop.active {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  display: block !important;
}

.admin-pin-modal.active,
#adminPinModal.active {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2147483647 !important;
}

.admin-dashboard-modal.active,
#adminDashboardModal.active,
body.admin-authenticated .admin-dashboard-modal {
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 2147483647 !important;
}


/* Ultra-High Priority Mobile ADM Modal Display Override */
@media (max-width: 768px) {
  .admin-dashboard-modal.active,
  #adminDashboardModal.active,
  body.admin-authenticated #adminDashboardModal {
    display: flex !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    height: 100dvh !important;
    z-index: 2147483647 !important;
    background: #0d0f17 !important;
    overflow-y: auto !important;
    visibility: visible !important;
    opacity: 1 !important;
  }
}


/* Sticky Header & Nav Bar for Admin Dashboard (Prevents cutoff and blank bottom gaps) */
.admin-dashboard-modal {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  min-height: 100vh !important;
  background: #0d0f17 !important;
  box-sizing: border-box !important;
  overflow-y: auto !important;
}

.admin-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 1000 !important;
  background: #090b10 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.3) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8) !important;
}

.admin-nav-bar {
  position: sticky !important;
  top: 60px !important;
  z-index: 999 !important;
  background: #0d0f17 !important;
  border-bottom: 1px solid #1c2030 !important;
  padding: 6px 12px !important;
}

.admin-tab-content-area {
  flex: 1 !important;
  width: 100% !important;
  min-height: calc(100vh - 120px) !important;
  background: #0d0f17 !important;
  padding: 16px !important;
  box-sizing: border-box !important;
}

.admin-pdv-grid,
.admin-pdv-wrap {
  min-height: auto !important;
  max-height: none !important;
}


/* Unified Admin Sticky Header & Nav Container (Prevents overlapping and hidden tab buttons) */
.admin-top-sticky-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background: #090b10 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.95) !important;
}

.admin-header {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  background: transparent !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 10px 16px !important;
}

.admin-nav-bar {
  position: relative !important;
  top: auto !important;
  z-index: auto !important;
  display: flex !important;
  gap: 8px !important;
  padding: 8px 16px !important;
  background: #0d0f17 !important;
  border-bottom: none !important;
  overflow-x: auto !important;
  white-space: nowrap !important;
  align-items: center !important;
}

.admin-nav-item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 8px 14px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border-radius: 8px !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}


/* Ultra-Clean Full-Width Edge-to-Edge Admin Page (Removes floating modal box margins) */
body.admin-page,
.admin-standalone-wrapper {
  width: 100% !important;
  min-height: 100vh !important;
  background: #0d0f17 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.admin-page .admin-dashboard-modal.active,
.admin-standalone-wrapper .admin-dashboard-modal.active,
body.admin-authenticated #adminDashboardModal,
#adminDashboardModal.active {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  min-height: 100vh !important;
  border-radius: 0 !important;
  border: none !important;
  box-shadow: none !important;
  margin: 0 !important;
  background: #0d0f17 !important;
  display: flex !important;
  flex-direction: column !important;
}

.admin-top-sticky-container {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  width: 100% !important;
  background: #090b10 !important;
  border-bottom: 1px solid rgba(212, 175, 55, 0.4) !important;
  box-shadow: 0 6px 25px rgba(0, 0, 0, 0.95) !important;
}

.admin-tab-content-area {
  flex: 1 !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px 24px !important;
  box-sizing: border-box !important;
}


/* Fix Chrome Autofill White Background to Dark Theme */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #090b10 inset !important;
    -webkit-text-fill-color: #ffffff !important;
    border-color: rgba(212, 175, 55, 0.6) !important;
    caret-color: #ffffff !important;
    transition: background-color 5000s ease-in-out 0s;
}


/* Clean Fixed Admin Dashboard Modal */
.admin-dashboard-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100vh !important;
  background: #0d0f17 !important;
  z-index: 999990 !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.98) !important;
  display: none;
  flex-direction: column !important;
  overflow-y: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  border-radius: 0 !important;
}

.admin-dashboard-modal.active,
body.admin-authenticated .admin-dashboard-modal {
  display: flex !important;
}


/* Full Width 100% Clean Responsive Admin Dashboard Layout */
body.admin-page .admin-dashboard-modal,
.admin-standalone-wrapper .admin-dashboard-modal,
.admin-dashboard-modal {
  position: relative !important;
  top: 0 !important;
  left: 0 !important;
  transform: none !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: 100vh !important;
  background: #0d0f17 !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

.admin-tab-content-area {
  width: 100% !important;
  max-width: 100% !important;
  padding: 20px !important;
  box-sizing: border-box !important;
}

.admin-table-wrap {
  width: 100% !important;
  overflow-x: auto !important;
  border-radius: 12px !important;
}

/* Toast Notification Component (Homologation Upgrade) */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast-item {
  pointer-events: auto;
  min-width: 280px;
  max-width: 380px;
  background: #161a26;
  border: 1px solid var(--gold-crown, #d4af37);
  border-radius: 10px;
  padding: 14px 18px;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  animation: toastIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-item.toast-success {
  border-color: #10b981;
}

.toast-item.toast-info {
  border-color: #3b82f6;
}

.toast-item.toast-out {
  animation: toastOut 0.3s ease-in forwards;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(20px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes toastOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(10px) scale(0.9); }
}

/* ==========================================================================
   REVENDA PERMISSION GUARD (SOMENTE AS 4 ABAS DA IMAGEM)
   ========================================================================== */
body.role-revenda #adminTabBtn-pdv,
body.role-revenda #adminTabBtn-puxar,
body.role-revenda #adminTabBtn-pedidos,
body.role-revenda #adminTabBtn-crm,
body.role-revenda #adminTabBtn-estoque,
body.role-revenda #adminTabBtn-fluxo,
body.role-revenda #adminTabBtn-relatorios,
body.role-revenda #adminTabBtn-usuarios,
body.role-revenda #adminTabBtn-auditoria,
body.role-revenda #adminTabBtn-backup,
body.role-revenda #adminTabBtn-versoes,
body.role-revenda #adminTabBtn-hero {
  display: none !important;
}

body.role-revenda #adminTabBtn-cartazes,
body.role-revenda #adminTabBtn-produtos,
body.role-revenda #adminTabBtn-precos,
body.role-revenda #adminTabBtn-categorias {
  display: inline-flex !important;
}

/* REMOCAO TOTAL DE DESCONTOS E ATACADO PARA O CLIENTE */
.price-pix,
.detail-pix-tag,
.badge-pix,
#heroCardPix,
.item-pix-price {
  display: none !important;
}

/* ==========================================================================
   TEMA CLARO LUXO • PLATINUM & SILVER LIGHT (REI DA PRATA)
   ========================================================================== */
[data-theme="light"] {
  --bg-primary: #f8fafc;
  --bg-secondary: #f1f5f9;
  --bg-surface: #ffffff;
  --bg-card: #ffffff;
  --bg-hover: #e2e8f0;

  --silver-100: #0f172a;
  --silver-200: #1e293b;
  --silver-300: #334155;
  --silver-400: #475569;
  --silver-500: #64748b;
  --silver-600: #94a3b8;
  --silver-dark: #cbd5e1;

  --silver-border: rgba(15, 23, 42, 0.12);
  --silver-border-glow: rgba(15, 23, 42, 0.28);
  --silver-glow: 0 4px 20px rgba(0, 0, 0, 0.06);

  --text-main: #0f172a;
  --text-muted: #475569;
  --text-dim: #64748b;
}

[data-theme="light"] body {
  background-color: var(--bg-primary);
  color: var(--text-main);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .nav-link {
  color: #334155;
}

[data-theme="light"] .nav-link:hover {
  color: #0f172a;
}

[data-theme="light"] .brand-text h1 {
  color: #0f172a;
}

[data-theme="light"] .brand-text span {
  color: #64748b;
}

[data-theme="light"] .product-card,
[data-theme="light"] .hero-card-box,
[data-theme="light"] .trust-item,
[data-theme="light"] .ring-finder-card,
[data-theme="light"] .cart-drawer {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .hero-card-box strong,
[data-theme="light"] .hero-trust-bar h4 {
  color: #0f172a !important;
}

[data-theme="light"] .filter-btn {
  background: #ffffff;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.14);
}

[data-theme="light"] .filter-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .filter-btn.active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}

[data-theme="light"] .spec-pill {
  background: #f1f5f9;
  color: #334155;
  border-color: rgba(15, 23, 42, 0.1);
}

[data-theme="light"] .btn-cart {
  background: #f1f5f9;
  border-color: rgba(15, 23, 42, 0.15);
  color: #0f172a;
}

[data-theme="light"] .btn-outline-silver {
  background: #ffffff;
  color: #0f172a;
  border-color: rgba(15, 23, 42, 0.2);
}

[data-theme="light"] .btn-outline-silver:hover {
  background: #f1f5f9;
  border-color: #0f172a;
}

[data-theme="light"] .btn-theme-toggle {
  background: #ffffff;
  color: #d97706;
  border-color: rgba(217, 119, 6, 0.35);
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.15);
}

.btn-theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--silver-border);
  color: var(--gold-crown);
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.95rem;
}

.btn-theme-toggle:hover {
  border-color: var(--gold-crown);
  transform: scale(1.08) rotate(15deg);
  box-shadow: 0 0 15px rgba(212, 175, 55, 0.3);
}

/* ==========================================================================
   SEÇÃO AUDIOVISUAL • REELS & JOIAS EM MOVIMENTO
   ========================================================================== */
.audiovisual-section {
  padding: 65px 0;
  background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 50%, var(--bg-primary) 100%);
  position: relative;
  overflow: hidden;
}

.audiovisual-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

@media (max-width: 860px) {
  .audiovisual-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 16px;
    gap: 16px;
    -webkit-overflow-scrolling: touch;
  }
  .reel-card {
    flex: 0 0 250px;
    scroll-snap-align: start;
  }
}

.reel-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--silver-border);
  aspect-ratio: 9 / 15;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  cursor: pointer;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.reel-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: var(--silver-border-glow);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 25px rgba(255, 255, 255, 0.1);
}

.reel-media-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
  z-index: 1;
}

.reel-card:hover .reel-media-bg {
  transform: scale(1.08);
}

.reel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(0,0,0,0.2) 0%, rgba(0,0,0,0.05) 35%, rgba(0,0,0,0.85) 75%, rgba(0,0,0,0.96) 100%);
  z-index: 2;
  transition: opacity 0.3s ease;
}

.reel-top-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 3;
}

.reel-badge-tag {
  background: rgba(9, 10, 13, 0.85);
  backdrop-filter: blur(8px);
  border: 1px solid var(--silver-border);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--silver-200);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.reel-badge-tag.highlight {
  background: rgba(16, 185, 129, 0.2);
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--emerald-pix);
}

.reel-play-btn {
  position: absolute;
  top: 42%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.2);
  border: 1.5px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  z-index: 3;
  transition: transform 0.3s ease, background 0.3s ease;
  box-shadow: 0 0 25px rgba(255, 255, 255, 0.3);
}

.reel-card:hover .reel-play-btn {
  transform: translate(-50%, -50%) scale(1.18);
  background: rgba(255, 255, 255, 0.35);
}

.reel-info-box {
  position: relative;
  z-index: 3;
  padding: 16px;
  color: #fff;
}

.reel-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  margin-bottom: 4px;
  color: #fff;
  text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.reel-desc {
  font-size: 0.76rem;
  color: var(--silver-300);
  line-height: 1.35;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reel-action-row {
  display: flex;
  gap: 8px;
}

.btn-reel-buy {
  flex: 1;
  background: var(--silver-foil);
  color: #0f172a;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: var(--transition);
}

.btn-reel-buy:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(255,255,255,0.3);
}

.btn-reel-wsp {
  background: #25D366;
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

/* Modal Player Audiovisual */
.audiovisual-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(14px);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  padding: 16px;
}

.audiovisual-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.audiovisual-modal-content {
  background: #090a0d;
  border: 1px solid var(--silver-border);
  border-radius: 20px;
  width: 100%;
  max-width: 420px;
  max-height: 90vh;
  overflow: hidden;
  position: relative;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  display: flex;
  flex-direction: column;
}

.reel-player-screen {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 14;
  background: #000;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.reel-player-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.reel-player-screen.animating .reel-player-img {
  animation: reelPulse 4s infinite alternate ease-in-out;
}

@keyframes reelPulse {
  0% { transform: scale(1); filter: brightness(1); }
  50% { transform: scale(1.05); filter: brightness(1.12) contrast(1.05); }
  100% { transform: scale(1.02); filter: brightness(1.04); }
}

.reel-player-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #fff;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: transform 0.2s;
}

.reel-player-close:hover {
  transform: scale(1.1);
  background: rgba(0,0,0,0.85);
}

.reel-player-footer {
  padding: 16px 20px;
  background: #11141d;
  border-top: 1px solid var(--silver-border);
}
