/* ==========================================
   DESIGN SYSTEM & CSS VARIABLES
   ========================================== */
:root {
  --primary-color: #ef4444;
  --primary-glow: rgba(239, 68, 68, 0.35);
  --secondary-color: #991b1b;
  --bg-color: #020617;
  --card-bg: #0f172a;
  --card-hover-bg: #1a2540;
  --text-color: #f8fafc;
  --text-muted: #94a3b8;
  --border-color: #1e293b;
  --success-color: #10b981;
  --warning-color: #f59e0b;
  --danger-color: #ef4444;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --max-width: 1400px;
  --header-height: 60px;
}

/* ==========================================
   RESET & BASE
   ========================================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }

/* Hacker Bar Top */
.hacker-bar {
  width: 100%;
  height: 24px;
  background: #000;
  color: #ff3333;
  font-family: monospace;
  font-size: 13px;
  line-height: 24px;
  overflow: hidden;
  white-space: nowrap;
  text-shadow: 0 0 5px #ff3333;
  border-bottom: 1px solid rgba(255, 51, 51, 0.3);
  position: relative;
  z-index: 200;
  text-align: center;
  letter-spacing: 2px;
}
.money-rain {
  position: absolute;
  color: #ff3333;
  font-weight: bold;
  font-size: 16px;
  text-shadow: 0 0 5px #ff3333;
  animation: rainDown 1s linear forwards;
  pointer-events: none;
  z-index: 9999;
}
@keyframes rainDown {
  0% { transform: translateY(-10px); opacity: 1; }
  100% { transform: translateY(40px); opacity: 0; }
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-color); }
::-webkit-scrollbar-thumb { background: var(--border-color); border-radius: var(--radius-sm); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-color); }

/* ==========================================
   UTILITY
   ========================================== */
.hidden { display: none !important; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  padding: 9px 18px; border-radius: var(--radius-md); font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: all var(--transition-fast);
  font-size: 0.9rem;
}
.btn-primary {
  background-color: var(--primary-color); color: #fff;
  box-shadow: 0 4px 14px var(--primary-glow);
}
.btn-primary:hover { background-color: var(--secondary-color); transform: translateY(-2px); box-shadow: 0 6px 20px var(--primary-glow); }
.btn-primary:active { transform: translateY(0); }
.btn-primary:disabled { background-color: var(--border-color); color: var(--text-muted); cursor: not-allowed; box-shadow: none; transform: none; }

.btn-secondary { background-color: var(--card-bg); border-color: var(--border-color); }
.btn-secondary:hover { background-color: var(--border-color); transform: translateY(-1px); }

.btn-lg { padding: 12px 24px; font-size: 1rem; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-block { display: flex; width: 100%; }

.btn-text-danger { background: none; border: none; color: var(--danger-color); font-weight: 500; cursor: pointer; padding: 4px 8px; border-radius: var(--radius-sm); transition: background var(--transition-fast); }
.btn-text-danger:hover { background: rgba(239,68,68,0.1); }

.btn-close { background: none; border: none; font-size: 1.6rem; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 50%; transition: all var(--transition-fast); }
.btn-close:hover { color: var(--text-color); background: rgba(255,255,255,0.1); }

.btn-icon-action { background: none; border: none; color: var(--danger-color); cursor: pointer; padding: 2px 6px; font-size: 0.9rem; }

.product-badge { background: rgba(239,68,68,0.15); color: var(--primary-color); padding: 3px 10px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; }
.stock-status-in { color: var(--success-color); font-weight: 600; }
.stock-status-out { color: var(--danger-color); font-weight: 600; }

/* ==========================================
   NAVBAR
   ========================================== */
.navbar {
  height: var(--header-height);
  background: rgba(15,23,42,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  position: sticky; top: 0; z-index: 100;
}
.navbar-container {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--max-width); height: 100%; margin: 0 auto; padding: 0 20px;
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; }
.brand-logo-img {
  height: 38px; width: 38px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--primary-color);
  box-shadow: 0 0 8px var(--primary-glow);
  transition: box-shadow var(--transition-fast);
}
.brand-logo-img:hover { box-shadow: 0 0 16px var(--primary-glow); }

.nav-search-bar { position: relative; width: 360px; max-width: 40%; }
.nav-search-bar input { width: 100%; padding: 8px 14px 8px 38px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 50px; font-size: 0.88rem; transition: all var(--transition-fast); }
.nav-search-bar input:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px var(--primary-glow); outline: none; }
.nav-search-bar .search-icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; }

.nav-actions { display: flex; gap: 10px; align-items: center; }
.user-nav-profile { display: flex; align-items: center; gap: 7px; font-size: 0.85rem; margin-right: 4px; }
#user-nav-name { font-weight: 600; max-width: 90px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.nav-btn span { display: inline; }
.cart-badge-btn { position: relative; }
.cart-count-badge {
  background: var(--danger-color); color: white; font-size: 0.7rem; font-weight: 700;
  width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  animation: cartPulse 0.3s ease-out;
}
@keyframes cartPulse { 0%{transform:scale(1)} 50%{transform:scale(1.3)} 100%{transform:scale(1)} }

@media (max-width: 768px) {
  .navbar-container { flex-wrap: wrap; height: auto; padding: 12px 20px; gap: 10px; }
  .nav-search-bar { width: 100%; max-width: 100%; order: 3; }
  .nav-btn span { display: none; }
}

/* ==========================================
   STOREFRONT
   ========================================== */
.main-content { min-height: calc(100vh - var(--header-height)); }
.view-section { padding: 0 0 60px; max-width: var(--max-width); margin: 0 auto; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from{opacity:0;transform:translateY(10px)} to{opacity:1;transform:translateY(0)} }

/* Hero Banner */
.hero-banner {
  margin: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(15,23,42,0.95) 0%, rgba(2,6,23,0.98) 100%);
  border: 1px solid var(--border-color);
  padding: 40px 50px;
  display: flex; justify-content: space-between; align-items: center;
  position: relative; overflow: hidden; gap: 24px;
}
.hero-content { max-width: 560px; z-index: 2; flex-shrink: 0; }
.hero-content h1 {
  font-size: 3.2rem; font-weight: 900; margin-bottom: 16px; line-height: 1.1;
  color: #fff;
  text-shadow: 
    0 1px 0 #ccc, 0 2px 0 #c9c9c9, 0 3px 0 #bbb, 0 4px 0 #b9b9b9, 
    0 5px 0 #aaa, 0 6px 1px rgba(0,0,0,.1), 0 0 5px rgba(0,0,0,.1), 
    0 1px 3px rgba(0,0,0,.3), 0 3px 5px rgba(0,0,0,.2), 0 5px 10px rgba(0,0,0,.25);
  animation: textGlow3D 3s infinite alternate ease-in-out;
}

@keyframes textGlow3D {
  0% { filter: drop-shadow(0 0 10px var(--primary-color)); transform: scale(1); }
  100% { filter: drop-shadow(0 0 25px var(--secondary-color)); transform: scale(1.02); }
}

/* Community Buttons */
.community-buttons-row { display: flex; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.community-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 18px; border-radius: 50px; font-weight: 700; font-size: 0.9rem;
  transition: all 0.25s ease; border: 2px solid transparent; cursor: pointer;
  text-decoration: none;
}
.discord-btn {
  background: rgba(88,101,242,0.12); color: #7289DA; border-color: #5865F2;
}
.discord-btn:hover {
  background: #5865F2; color: #fff; transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(88,101,242,0.4);
}
.discord-btn i { font-size: 1.1rem; }
.telegram-btn {
  background: rgba(34,158,217,0.12); color: #29B6D8; border-color: #229ED9;
}
.telegram-btn:hover {
  background: #229ED9; color: #fff; transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(34,158,217,0.4);
}
.telegram-btn i { font-size: 1.1rem; }

/* Rules Notice */
.rules-notice-box {
  background: rgba(239,68,68,0.06); border: 1px solid rgba(239,68,68,0.25);
  border-left: 4px solid var(--danger-color);
  border-radius: var(--radius-md); padding: 16px 18px;
}
.rules-notice-title {
  font-weight: 800; font-size: 0.95rem; color: var(--danger-color);
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.rules-notice-text { font-size: 0.82rem; color: var(--text-muted); line-height: 1.6; }
.rules-notice-text p { margin-bottom: 6px; }
.rules-notice-text ul { margin-left: 16px; margin-bottom: 6px; }
.rules-notice-text li { margin-bottom: 2px; }
.rules-notice-text strong { color: var(--text-color); }

/* Hero animated logos */
.hero-logo-area {
  display: flex; gap: 16px; align-items: center; z-index: 2;
  flex-shrink: 0;
}
.hero-logo-3d-container {
  width: 280px; 
  height: 280px;
  perspective: 1000px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-anim-logo-3d { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: 50%;
  border: 2px solid var(--primary-color);
  animation: hero3dInOutFlow 6s infinite alternate ease-in-out; 
}

@keyframes hero3dInOutFlow {
  0% {
    transform: scale(0.85) translateX(-20px) rotateY(-15deg);
    box-shadow: -15px 0 40px var(--primary-color);
  }
  100% {
    transform: scale(1.1) translateX(20px) rotateY(15deg);
    box-shadow: 15px 0 40px var(--secondary-color);
  }
}

.hero-overlay-graphic {
  position: absolute; right: -60px; bottom: -60px; width: 350px; height: 350px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
  opacity: 0.08; filter: blur(40px); z-index: 1;
}

@media (max-width: 900px) {
  .hero-banner { flex-direction: column-reverse; text-align: center; padding: 28px; margin: 12px; }
  .hero-logo-area { display: flex; justify-content: center; margin-bottom: 20px; }
  .hero-content h1 { font-size: 2.2rem; }
  .community-buttons-row { justify-content: center; }
  .hero-logo-3d-container { width: 220px; height: 220px; }
}

/* Catalog */
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 20px; padding: 0 20px; }
@media (max-width: 992px) { .catalog-layout { grid-template-columns: 1fr; } }

.catalog-filters { position: sticky; top: 76px; height: fit-content; }
.filter-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; }
.filter-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--border-color); }
.filter-group { margin-bottom: 18px; }
.filter-group label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; letter-spacing: 0.5px; }
.category-list { display: flex; flex-direction: column; gap: 6px; }
.category-btn { background: none; border: none; text-align: left; padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.9rem; transition: all var(--transition-fast); width: 100%; }
.category-btn:hover { background: rgba(255,255,255,0.04); }
.category-btn.active { background: var(--primary-color); color: white; font-weight: 600; }
.price-slider-container input[type=range] { width: 100%; accent-color: var(--primary-color); }
.price-range-labels { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }

.catalog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.catalog-header span { color: var(--text-muted); font-size: 0.9rem; }
.sort-selector { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; }
.form-select { background: var(--card-bg); border: 1px solid var(--border-color); padding: 7px 14px; border-radius: var(--radius-sm); outline: none; font-size: 0.88rem; cursor: pointer; }
.form-select:focus { border-color: var(--primary-color); }

/* Product Grid */
.products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.product-card {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md);
  overflow: hidden; transition: all var(--transition-normal); display: flex; flex-direction: column; position: relative; cursor: pointer;
}
.product-card:hover { transform: translateY(-6px); box-shadow: 0 12px 30px rgba(0,0,0,0.4), 0 0 1px var(--primary-color); border-color: rgba(239,68,68,0.3); }
.product-card.out-of-stock { opacity: 0.7; }
.out-of-stock-overlay { position: absolute; top: 10px; right: 10px; background: var(--danger-color); color: white; padding: 3px 8px; border-radius: var(--radius-sm); font-size: 0.7rem; font-weight: 700; z-index: 3; }
.card-image-container { height: 180px; overflow: hidden; background: rgba(255,255,255,0.02); display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--border-color); }
.card-image-container img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--transition-normal); }
.product-card:hover .card-image-container img { transform: scale(1.05); }
.card-body { padding: 16px; display: flex; flex-direction: column; flex-grow: 1; }
.card-body .category { font-size: 0.72rem; text-transform: uppercase; color: var(--primary-color); font-weight: 700; margin-bottom: 5px; }
.card-body h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.6rem; }
.card-body p { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; height: 2.3rem; }
.card-footer-price-row { margin-top: auto; display: flex; justify-content: space-between; align-items: center; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.04); }
.card-price { font-size: 1.2rem; font-weight: 800; }
.card-stock-warning { font-size: 0.72rem; color: var(--warning-color); margin-top: 3px; }

/* ==========================================
   MODALS
   ========================================== */
.modal-overlay {
  position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(2,6,23,0.82); backdrop-filter: blur(8px);
  z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 16px;
}
.modal-overlay.hidden { display: none !important; }
.modal-content {
  background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-lg);
  width: 100%; max-width: 800px; position: relative; max-height: 92vh; overflow-y: auto;
  box-shadow: 0 25px 50px rgba(0,0,0,0.6); animation: modalScale 0.3s cubic-bezier(0.16,1,0.3,1);
}
@keyframes modalScale { from{transform:scale(0.95);opacity:0} to{transform:scale(1);opacity:1} }
.modal-close-btn { position: absolute; top: 14px; right: 14px; z-index: 10; }

/* Product Detail */
.product-detail-layout { display: grid; grid-template-columns: 1.1fr 1.2fr; gap: 24px; padding: 32px; }
@media (max-width: 640px) { .product-detail-layout { grid-template-columns: 1fr; padding: 20px; } }
.detail-image-wrapper { background: rgba(255,255,255,0.02); border-radius: var(--radius-md); border: 1px solid var(--border-color); display: flex; align-items: center; justify-content: center; overflow: hidden; height: 280px; }
.detail-image-wrapper img { width: 100%; height: 100%; object-fit: cover; }
.detail-info-wrapper { display: flex; flex-direction: column; gap: 12px; }
.detail-info-wrapper h2 { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.product-price { font-size: 1.8rem; font-weight: 800; }
.detail-stock-status { font-size: 0.87rem; color: var(--text-muted); }
.product-description { font-size: 0.9rem; color: var(--text-muted); line-height: 1.6; }
.detail-actions { display: flex; gap: 12px; margin-top: 6px; }
.quantity-selector { display: flex; align-items: center; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow: hidden; }
.quantity-selector button { background: none; border: none; width: 36px; height: 36px; cursor: pointer; transition: background var(--transition-fast); }
.quantity-selector button:hover { background: rgba(255,255,255,0.05); }
.quantity-selector input { width: 46px; text-align: center; border: none; background: none; font-weight: 700; font-size: 1rem; -moz-appearance: textfield; }
.quantity-selector input::-webkit-outer-spin-button, .quantity-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.detail-delivery-note { display: flex; gap: 10px; padding: 10px 14px; background: rgba(16,185,129,0.08); border-left: 4px solid var(--success-color); border-radius: var(--radius-sm); font-size: 0.82rem; color: #a7f3d0; align-items: center; }
.detail-delivery-note i { color: var(--success-color); }

/* Cart Drawer */
.drawer-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(2,6,23,0.7); backdrop-filter: blur(4px); z-index: 950; }
.drawer-overlay.hidden { display: none !important; }
.drawer-content { position: fixed; top: 0; right: 0; width: 430px; max-width: 100%; height: 100%; background: var(--card-bg); border-left: 1px solid var(--border-color); box-shadow: -10px 0 30px rgba(0,0,0,0.3); display: flex; flex-direction: column; z-index: 951; }
.drawer-header { padding: 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.drawer-header h3 { font-size: 1.1rem; font-weight: 700; }
.drawer-body { padding: 20px; overflow-y: auto; flex-grow: 1; display: flex; flex-direction: column; gap: 14px; }
.empty-cart-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; color: var(--text-muted); gap: 14px; margin: auto; }
.empty-cart-msg i { font-size: 2.5rem; }
.cart-item { display: flex; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); }
.cart-item-image { width: 60px; height: 60px; border-radius: var(--radius-sm); overflow: hidden; background: var(--bg-color); border: 1px solid var(--border-color); flex-shrink: 0; }
.cart-item-image img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-details { flex-grow: 1; }
.cart-item-details h5 { font-size: 0.88rem; font-weight: 600; margin-bottom: 3px; line-height: 1.2; }
.cart-item-details .price { font-size: 0.95rem; font-weight: 700; }
.cart-item-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
.cart-item-qty { display: flex; align-items: center; background: var(--bg-color); border-radius: var(--radius-sm); border: 1px solid var(--border-color); overflow: hidden; }
.cart-item-qty button { background: none; border: none; width: 24px; height: 24px; cursor: pointer; font-size: 0.75rem; }
.cart-item-qty button:hover { background: rgba(255,255,255,0.05); }
.cart-item-qty span { width: 28px; text-align: center; font-size: 0.82rem; font-weight: 600; }
.drawer-footer { padding: 20px; border-top: 1px solid var(--border-color); }
.cart-totals { display: flex; justify-content: space-between; font-size: 1rem; font-weight: 700; margin-bottom: 16px; }
#cart-total-price { color: var(--primary-color); font-size: 1.2rem; }

/* Checkout Modal */
.checkout-modal-content { max-width: 600px; }
.checkout-layout { padding: 26px; }
.checkout-steps { display: flex; justify-content: space-between; border-bottom: 1px solid var(--border-color); padding-bottom: 14px; margin-bottom: 20px; }
.checkout-steps .step { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.checkout-steps .step.active { color: var(--primary-color); }
.checkout-steps .step.completed { color: var(--success-color); }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--text-muted); }
.form-control { width: 100%; padding: 10px 14px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); font-size: 0.9rem; transition: all var(--transition-fast); }
.form-control:focus { border-color: var(--primary-color); outline: none; box-shadow: 0 0 0 3px var(--primary-glow); }
.form-text { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 480px) { .form-row { grid-template-columns: 1fr; gap: 0; } }
.checkout-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--border-color); }
.checkout-step-content h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; }

.payment-tabs-selectors { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-bottom: 18px; }
.pay-method-tab { background: var(--bg-color); border: 1px solid var(--border-color); padding: 12px 8px; border-radius: var(--radius-md); cursor: pointer; font-weight: 600; font-size: 0.82rem; text-align: center; transition: all var(--transition-fast); display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-method-tab i { font-size: 1.1rem; }
.pay-method-tab:hover { border-color: var(--text-muted); }
.pay-method-tab.active { border-color: var(--primary-color); background: rgba(239,68,68,0.08); color: var(--primary-color); }
.payment-method-body { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 20px; animation: fadeIn var(--transition-fast); }
.pix-info-box, .boleto-info-box { display: flex; gap: 14px; align-items: center; }
.pix-info-box .pix-icon { font-size: 2rem; color: #32bcad; }
.boleto-info-box .boleto-icon { font-size: 2rem; color: var(--warning-color); }
.pix-info-box h5, .boleto-info-box h5 { font-size: 0.95rem; margin-bottom: 3px; }
.pix-info-box p, .boleto-info-box p { font-size: 0.82rem; color: var(--text-muted); }

/* 3D Card */
.card-display-container { perspective: 1000px; width: 100%; display: flex; justify-content: center; margin-bottom: 20px; }
.credit-card-preview { width: 300px; height: 180px; border-radius: 15px; position: relative; transform-style: preserve-3d; transition: transform 0.6s cubic-bezier(0.175,0.885,0.32,1.275); box-shadow: 0 15px 30px rgba(0,0,0,0.3); cursor: pointer; }
.credit-card-preview.flipped { transform: rotateY(180deg); }
.card-front, .card-back { width: 100%; height: 100%; border-radius: 15px; position: absolute; backface-visibility: hidden; padding: 18px; display: flex; flex-direction: column; justify-content: space-between; color: white; }
.card-front { background: linear-gradient(135deg, #991b1b 0%, #450a0a 100%); z-index: 2; }
.card-chip { width: 36px; height: 26px; background: linear-gradient(135deg, #e2e8f0 0%, #94a3b8 100%); border-radius: 4px; }
.card-logo-icon { position: absolute; top: 18px; right: 18px; font-size: 1.6rem; opacity: 0.8; }
.card-number-display { font-size: 1.1rem; font-family: monospace; letter-spacing: 2px; margin-top: 20px; }
.card-holder-display { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 1px; }
.card-expiry-display { font-size: 0.8rem; font-family: monospace; text-align: right; }
.card-back { background: linear-gradient(135deg, #450a0a 0%, #020617 100%); transform: rotateY(180deg); padding: 0; justify-content: flex-start; }
.card-magnetic-strip { width: 100%; height: 36px; background: #000; margin-top: 18px; }
.card-cvv-display { width: 80%; height: 28px; background: #f8fafc; color: #000; margin: 18px auto 0; text-align: right; padding-right: 10px; line-height: 28px; font-weight: 700; font-family: monospace; border-radius: 4px; }

/* Processing */
.processing-checkout-wrapper { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 20px; text-align: center; }
.loader-spinner { width: 44px; height: 44px; border: 4px solid var(--border-color); border-top-color: var(--primary-color); border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 20px; }
@keyframes spin { to{transform:rotate(360deg)} }
#pix-payment-screen { width: 100%; display: flex; flex-direction: column; align-items: center; margin-top: 16px; animation: fadeIn var(--transition-normal); }
.qr-code-box { background: #fff; padding: 14px; border-radius: var(--radius-md); margin-bottom: 16px; }
.qr-code-box img { width: 160px; height: 160px; }
.pix-copia-cola { width: 100%; text-align: left; margin-bottom: 16px; }
.pix-copia-cola label { font-size: 0.82rem; font-weight: 600; margin-bottom: 5px; display: block; }
.copy-input-group { display: flex; gap: 8px; }
.copy-input-group input { flex-grow: 1; }
.pix-timer-alert { font-size: 0.88rem; color: var(--warning-color); display: flex; align-items: center; gap: 5px; }
.mt-4 { margin-top: 1.2rem; }
.btn-success { background: var(--success-color); color: white; box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-success:hover { background: #059669; transform: translateY(-2px); }

/* Success Modal */
.success-modal-content { max-width: 580px; }
.success-header { padding: 32px 32px 16px; text-align: center; }
.success-icon-badge { font-size: 3.5rem; color: var(--success-color); margin-bottom: 12px; animation: scaleBounce 0.5s cubic-bezier(0.175,0.885,0.32,1.275); }
@keyframes scaleBounce { 0%{transform:scale(0.3);opacity:0} 70%{transform:scale(1.1)} 100%{transform:scale(1);opacity:1} }
.success-header h2 { font-size: 1.5rem; font-weight: 800; margin-bottom: 6px; }
.success-header p { color: var(--text-muted); font-size: 0.9rem; }
.success-body { padding: 0 32px 32px; }
.order-summary-box { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px 18px; margin-bottom: 18px; }
.order-summary-box h4 { font-size: 0.8rem; text-transform: uppercase; color: var(--text-muted); margin-bottom: 10px; border-bottom: 1px solid var(--border-color); padding-bottom: 5px; }
.summary-details { display: grid; gap: 6px; font-size: 0.88rem; }
.delivery-result-box { background: rgba(239,68,68,0.06); border: 2px dashed var(--primary-color); border-radius: var(--radius-md); padding: 20px; }
.delivery-result-box h3 { font-size: 1.05rem; color: var(--primary-color); display: flex; align-items: center; gap: 7px; margin-bottom: 5px; }
.delivery-helper-text { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; }
.delivery-item-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 12px; margin-bottom: 8px; }
.delivery-item-card:last-child { margin-bottom: 0; }
.delivery-item-title { font-weight: 700; font-size: 0.87rem; margin-bottom: 7px; }
.delivery-code-box { display: flex; gap: 7px; }
.delivery-code-box input { flex-grow: 1; background: var(--bg-color); border: 1px solid var(--border-color); padding: 7px 11px; font-family: monospace; font-size: 0.87rem; border-radius: var(--radius-sm); }
.success-footer { padding: 0 32px 32px; }

/* Product Form Modal */
.product-form-modal-content { max-width: 680px; padding: 28px; }
.product-form-modal-content h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 20px; }
.delivery-form-section { background: rgba(239,68,68,0.04); border: 1px solid rgba(239,68,68,0.2); border-radius: var(--radius-md); padding: 14px; }
.delivery-form-section label { color: var(--primary-color) !important; }
.keys-textarea { font-family: monospace; font-size: 0.88rem; resize: vertical; }
#form-keys-count { color: var(--primary-color); font-weight: 700; }

/* Admin Login Modal */
.admin-login-content { max-width: 400px; padding: 32px; }
.admin-login-header { text-align: center; margin-bottom: 22px; }
.admin-lock-icon { font-size: 2.8rem; color: var(--primary-color); margin-bottom: 10px; }
.admin-login-header h3 { font-size: 1.2rem; font-weight: 800; margin-bottom: 4px; }
.admin-login-header p { font-size: 0.82rem; color: var(--text-muted); }
.login-error-msg { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: var(--danger-color); padding: 10px 14px; border-radius: var(--radius-sm); font-size: 0.82rem; margin-bottom: 14px; }

/* Auth overlay */
.auth-modal-content { max-width: 440px; padding: 32px; border-radius: var(--radius-lg) !important; }
.rules-text-container { background: rgba(0,0,0,0.2); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; font-size: 0.82rem; max-height: 260px; overflow-y: auto; text-align: left; line-height: 1.6; margin-bottom: 18px; }
.logo-dripping-container { width: 100%; display: flex; justify-content: center; overflow: hidden; padding: 8px 0; margin-bottom: 4px; }
.logo-dripping-img { height: 80px; width: 160px; object-fit: cover; border-radius: var(--radius-sm); box-shadow: 0 0 20px var(--primary-glow); animation: logoSlideDrip 5s ease-in-out infinite; border: 1px solid var(--border-color); }
@keyframes logoSlideDrip {
  0%   { transform: translateX(-20px) scaleX(1.05); filter: drop-shadow(0 0 8px var(--primary-color)); }
  50%  { transform: translateX(20px) scaleX(1.1);  filter: drop-shadow(0 0 16px var(--secondary-color)); }
  100% { transform: translateX(-20px) scaleX(1.05); filter: drop-shadow(0 0 8px var(--primary-color)); }
}
.social-badges-row { display: flex; justify-content: center; gap: 12px; margin-top: 8px; margin-bottom: 10px; }
.social-badge-link { display: inline-flex; align-items: center; gap: 5px; padding: 5px 11px; border-radius: 50px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; transition: all var(--transition-fast); border: 1px solid transparent; }
.telegram-badge { background: rgba(34,158,217,0.12); border-color: #229ED9; color: #229ED9; }
.telegram-badge:hover { background: #229ED9; color: #fff; box-shadow: 0 0 10px rgba(34,158,217,0.4); }
.discord-badge { background: rgba(88,101,242,0.12); border-color: #5865F2; color: #5865F2; }
.discord-badge:hover { background: #5865F2; color: #fff; box-shadow: 0 0 10px rgba(88,101,242,0.4); }

/* ==========================================
   ADMIN LAYOUT
   ========================================== */
.admin-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-height)); }
@media (max-width: 850px) { .admin-layout { grid-template-columns: 1fr; } }

.admin-sidebar { background: var(--card-bg); border-right: 1px solid var(--border-color); padding: 18px 0; display: flex; flex-direction: column; }
.admin-user-profile { display: flex; align-items: center; gap: 10px; padding: 0 18px 16px; border-bottom: 1px solid var(--border-color); margin-bottom: 14px; }
.admin-logo-avatar { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; border: 2px solid var(--primary-color); box-shadow: 0 0 8px var(--primary-glow); flex-shrink: 0; }
.admin-sidebar-logo { width: 100%; height: 100%; object-fit: cover; }
.admin-user-profile .info h4 { font-size: 0.88rem; font-weight: 700; }
.admin-user-profile .info span { font-size: 0.72rem; color: var(--success-color); font-weight: 600; }

.admin-nav { display: flex; flex-direction: column; gap: 3px; padding: 0 10px; }
.admin-nav-btn { background: none; border: none; text-align: left; padding: 9px 13px; border-radius: var(--radius-md); font-weight: 600; font-size: 0.87rem; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--text-muted); transition: all var(--transition-fast); }
.admin-nav-btn:hover { background: rgba(255,255,255,0.03); color: var(--text-color); }
.admin-nav-btn.active { background: var(--primary-glow); color: var(--primary-color); }
.admin-nav-btn.exit-btn { margin-top: 16px; border: 1px dashed rgba(239,68,68,0.2); }
.admin-nav-btn.exit-btn:hover { background: rgba(239,68,68,0.1); color: var(--danger-color); border-color: var(--danger-color); }

.admin-main { padding: 28px; background: rgba(2,6,23,0.4); overflow-y: auto; }
@media (max-width: 640px) { .admin-main { padding: 16px; } }

.admin-header-title { margin-bottom: 20px; position: relative; }
.admin-header-title h2 { font-size: 1.4rem; font-weight: 800; margin-bottom: 3px; }
.admin-header-title p { color: var(--text-muted); font-size: 0.87rem; }
.btn-add-icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .btn-add-icon { position: static; transform: none; margin-top: 12px; } }

/* Stats Cards — compact */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 16px; display: flex; gap: 12px; align-items: center; transition: transform var(--transition-fast); }
.stat-card:hover { transform: translateY(-2px); }
.stat-icon { width: 42px; height: 42px; border-radius: var(--radius-md); background: rgba(255,255,255,0.04); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; color: var(--text-muted); flex-shrink: 0; }
.visitor-card .stat-icon { background: rgba(239,68,68,0.12); color: var(--primary-color); }
.revenue-card .stat-icon { background: rgba(16,185,129,0.12); color: var(--success-color); }
.stat-info { display: flex; flex-direction: column; }
.stat-label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; color: var(--text-muted); letter-spacing: 0.4px; }
.stat-info h3 { font-size: 1.4rem; font-weight: 800; margin: 2px 0; }
.stat-trend { font-size: 0.72rem; color: var(--text-muted); }
.stat-trend.trend-up { color: var(--success-color); font-weight: 600; display: flex; align-items: center; gap: 3px; }
.pulse-icon { font-size: 0.55rem; animation: beaconPulse 1.5s infinite; }
@keyframes beaconPulse { 0%{opacity:0.2} 50%{opacity:1} 100%{opacity:0.2} }

/* Dashboard Row */
.dashboard-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 1024px) { .dashboard-row { grid-template-columns: 1fr; } }
.dashboard-panel { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 18px; }
.dashboard-panel h3 { font-size: 0.95rem; font-weight: 700; margin-bottom: 14px; border-bottom: 1px solid rgba(255,255,255,0.04); padding-bottom: 10px; }

/* Chart */
.chart-container { height: 200px; width: 100%; }
.svg-chart-wrapper { width: 100%; height: 100%; display: flex; align-items: flex-end; justify-content: space-between; padding-top: 16px; }
.chart-bar-col { display: flex; flex-direction: column; align-items: center; flex-grow: 1; height: 100%; justify-content: flex-end; }
.chart-bar { width: 34px; background: linear-gradient(to top, var(--primary-color) 0%, var(--secondary-color) 100%); border-radius: 4px 4px 0 0; position: relative; transition: height 0.5s ease-out; cursor: pointer; }
.chart-bar:hover { filter: brightness(1.2); }
.chart-bar-tooltip { position: absolute; top: -28px; left: 50%; transform: translateX(-50%); background: #000; color: #fff; font-size: 0.7rem; padding: 3px 7px; border-radius: 4px; opacity: 0; pointer-events: none; transition: opacity var(--transition-fast); white-space: nowrap; }
.chart-bar:hover .chart-bar-tooltip { opacity: 1; }
.chart-bar-label { font-size: 0.7rem; color: var(--text-muted); margin-top: 8px; }

/* Live Logs */
.live-log-list { display: flex; flex-direction: column; gap: 8px; max-height: 200px; overflow-y: auto; }
.live-log-item { padding: 8px 12px; background: rgba(255,255,255,0.02); border-left: 3px solid var(--primary-color); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 0.8rem; display: flex; justify-content: space-between; align-items: center; animation: slideIn 0.3s ease-out; gap: 8px; }
@keyframes slideIn { from{transform:translateX(15px);opacity:0} to{transform:translateX(0);opacity:1} }
.live-log-time { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

/* Full Logs Container */
.logs-container { background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 14px; max-height: 380px; overflow-y: auto; font-family: monospace; font-size: 0.8rem; display: flex; flex-direction: column; gap: 6px; }
.log-entry { padding: 6px 10px; border-radius: var(--radius-sm); border-left: 3px solid var(--border-color); display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.log-entry.log-payment { border-color: var(--success-color); background: rgba(16,185,129,0.05); }
.log-entry.log-ban { border-color: var(--danger-color); background: rgba(239,68,68,0.05); }
.log-entry.log-register { border-color: var(--primary-color); background: rgba(239,68,68,0.05); }
.log-entry.log-login { border-color: var(--warning-color); background: rgba(245,158,11,0.05); }
.log-entry-text { flex-grow: 1; }
.log-entry-time { color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }

/* Tables */
.table-container { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; text-align: left; }
.admin-table th, .admin-table td { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-size: 0.85rem; }
.admin-table th { background: rgba(0,0,0,0.1); color: var(--text-muted); font-weight: 700; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.4px; }
.admin-table tbody tr:hover { background: var(--card-hover-bg); }
.table-product-img { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg-color); }

.admin-badge-status { padding: 3px 7px; border-radius: 4px; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; }
.status-paid { background: rgba(16,185,129,0.12); color: var(--success-color); }
.status-pending { background: rgba(245,158,11,0.12); color: var(--warning-color); }
.status-cancelled { background: rgba(239,68,68,0.12); color: var(--danger-color); }

.action-buttons-flex { display: flex; gap: 6px; flex-wrap: wrap; }
.btn-action { width: 28px; height: 28px; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; cursor: pointer; border: 1px solid transparent; background: rgba(255,255,255,0.04); transition: all var(--transition-fast); color: var(--text-muted); font-size: 0.8rem; }
.btn-action:hover { color: white; }
.btn-action.edit-btn:hover { background: var(--primary-color); }
.btn-action.delete-btn:hover { background: var(--danger-color); }
.btn-action.restock-btn:hover { background: var(--success-color); }

/* Orders filter bar */
.orders-filter-bar { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.order-filter-btn { background: var(--card-bg); border: 1px solid var(--border-color); padding: 6px 14px; border-radius: var(--radius-sm); cursor: pointer; font-size: 0.82rem; font-weight: 600; transition: all var(--transition-fast); }
.order-filter-btn:hover { border-color: var(--text-muted); }
.order-filter-btn.active { background: var(--primary-color); border-color: var(--primary-color); color: white; }

/* Top products / payment stats */
.top-products-list, .payment-methods-stats { display: flex; flex-direction: column; gap: 10px; }
.top-product-item, .payment-method-item { display: flex; align-items: center; justify-content: space-between; padding: 10px 14px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); font-size: 0.87rem; }
.top-product-bar { height: 4px; background: var(--primary-color); border-radius: 2px; margin-top: 4px; transition: width 0.5s ease-out; }
.top-product-info { flex-grow: 1; margin-right: 12px; }
.payment-method-icon { font-size: 1.2rem; margin-right: 10px; }

/* Support Chat Admin */
.admin-chat-layout { display: grid; grid-template-columns: 260px 1fr; gap: 0; background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); height: 460px; overflow: hidden; }
.admin-chat-users-list { border-right: 1px solid var(--border-color); overflow-y: auto; display: flex; flex-direction: column; }
.chat-list-header { padding: 12px 16px; border-bottom: 1px solid var(--border-color); font-weight: 700; font-size: 0.82rem; text-transform: uppercase; color: var(--text-muted); }
.empty-chat-notice { padding: 16px; text-align: center; color: var(--text-muted); font-size: 0.82rem; }
.admin-chat-window { display: flex; flex-direction: column; height: 100%; }
.admin-chat-win-header { padding: 12px 16px; border-bottom: 1px solid var(--border-color); display: flex; align-items: center; justify-content: space-between; }
.admin-chat-win-header h4 { font-weight: 700; font-size: 0.95rem; }
.admin-chat-win-header span { font-size: 0.75rem; color: var(--text-muted); }
.admin-chat-log-body { flex-grow: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: rgba(0,0,0,0.15); }
.chat-empty-state { margin: auto; text-align: center; color: var(--text-muted); font-size: 0.87rem; }
.chat-empty-state i { font-size: 2rem; color: var(--border-color); margin-bottom: 8px; display: block; }
.admin-chat-reply-form { padding: 12px 16px; border-top: 1px solid var(--border-color); display: flex; gap: 10px; }

.admin-chat-users-list .chat-user-item { padding: 12px 14px; border-bottom: 1px solid rgba(255,255,255,0.03); cursor: pointer; transition: all var(--transition-fast); display: flex; flex-direction: column; gap: 3px; }
.admin-chat-users-list .chat-user-item:hover { background: rgba(255,255,255,0.02); }
.admin-chat-users-list .chat-user-item.active { background: rgba(239,68,68,0.07); border-left: 3px solid var(--primary-color); }
.chat-user-item-name { font-weight: 600; font-size: 0.82rem; }
.chat-user-item-meta { font-size: 0.72rem; color: var(--text-muted); display: flex; justify-content: space-between; }
.unread-badge { background: var(--danger-color); color: #fff; border-radius: 50px; padding: 1px 5px; font-size: 0.62rem; font-weight: 700; }

/* Customizer */
.customizer-form-card { background: var(--card-bg); border: 1px solid var(--border-color); border-radius: var(--radius-md); padding: 22px; }
.form-section-title { font-size: 0.82rem; font-weight: 700; text-transform: uppercase; color: var(--primary-color); margin-bottom: 16px; border-bottom: 1px solid var(--border-color); padding-bottom: 6px; letter-spacing: 0.5px; }
.color-pickers-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 22px; }
.color-picker-item { display: flex; flex-direction: column; gap: 7px; }
.color-input-wrapper { display: flex; gap: 7px; }
.color-input-wrapper input[type=color] { width: 42px; height: 42px; border: 1px solid var(--border-color); border-radius: var(--radius-md); cursor: pointer; background: none; }
.color-hex { text-transform: uppercase; }
.form-actions-bar { display: flex; justify-content: flex-end; gap: 10px; padding-top: 16px; border-top: 1px solid var(--border-color); }

/* Gateways */
.gateway-option-card { border: 1px solid var(--border-color); background: rgba(2,6,23,0.2); border-radius: var(--radius-md); margin-bottom: 18px; overflow: hidden; }
.gateway-header { padding: 14px 20px; border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.gateway-title { display: flex; align-items: center; gap: 14px; }
.gateway-title i { font-size: 1.8rem; }
.pix-icon-color { color: #32bcad; }
.stripe-icon-color { color: #635bff; }
.gateway-title h4 { font-size: 0.95rem; font-weight: 700; }
.gateway-title span { font-size: 0.78rem; color: var(--text-muted); }
.gateway-body { padding: 18px 20px; }
.switch { position: relative; display: inline-block; width: 46px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top:0; left:0; right:0; bottom:0; background: var(--border-color); transition: .4s; }
.slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 4px; bottom: 4px; background: white; transition: .4s; }
input:checked + .slider { background: var(--primary-color); }
input:checked + .slider:before { transform: translateX(22px); }
.slider.round { border-radius: 34px; }
.slider.round:before { border-radius: 50%; }
.checkbox-container { display: flex; align-items: center; position: relative; padding-left: 26px; cursor: pointer; font-size: 0.82rem; color: var(--text-muted); user-select: none; }
.checkbox-container input { position: absolute; opacity: 0; cursor: pointer; height: 0; width: 0; }
.checkmark { position: absolute; top: 0; left: 0; height: 16px; width: 16px; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: 3px; }
.checkbox-container input:checked ~ .checkmark { background: var(--primary-color); border-color: var(--primary-color); }
.checkmark:after { content: ""; position: absolute; display: none; }
.checkbox-container input:checked ~ .checkmark:after { display: block; }
.checkbox-container .checkmark:after { left: 5px; top: 2px; width: 4px; height: 7px; border: solid white; border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* ==========================================
   TOAST NOTIFICATIONS
   ========================================== */
.toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 1100; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { background: var(--card-bg); border: 1px solid var(--border-color); color: var(--text-color); padding: 13px 16px; border-radius: var(--radius-md); box-shadow: 0 10px 25px rgba(0,0,0,0.3); display: flex; align-items: center; gap: 10px; min-width: 260px; max-width: 360px; pointer-events: auto; animation: toastSlideIn 0.3s cubic-bezier(0.16,1,0.3,1), toastFadeOut 0.3s 2.7s forwards; }
@keyframes toastSlideIn { from{transform:translateX(100%);opacity:0} to{transform:translateX(0);opacity:1} }
@keyframes toastFadeOut { from{opacity:1;transform:scale(1)} to{opacity:0;transform:scale(0.9)} }
.toast-icon { font-size: 1.1rem; }
.toast-success { border-left: 4px solid var(--success-color); }
.toast-success .toast-icon { color: var(--success-color); }
.toast-error { border-left: 4px solid var(--danger-color); }
.toast-error .toast-icon { color: var(--danger-color); }
.toast-info { border-left: 4px solid var(--primary-color); }
.toast-info .toast-icon { color: var(--primary-color); }
.toast-content { flex-grow: 1; }
.toast-title { font-weight: 700; font-size: 0.87rem; }
.toast-message { font-size: 0.78rem; color: var(--text-muted); margin-top: 2px; }

/* ==========================================
   SUPPORT CHAT WIDGET
   ========================================== */
.support-chat-bubble { position: fixed; bottom: 20px; right: 20px; width: 54px; height: 54px; border-radius: 50%; background: var(--primary-color); color: #fff; box-shadow: 0 4px 16px var(--primary-glow); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; cursor: pointer; z-index: 950; transition: transform var(--transition-fast), background var(--transition-fast); }
.support-chat-bubble:hover { transform: scale(1.1) rotate(5deg); background: var(--secondary-color); }
.support-chat-pulse { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--primary-color); animation: chatRingPulse 2s infinite; pointer-events: none; }
@keyframes chatRingPulse { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.4);opacity:0} }
.support-chat-window { position: fixed; bottom: 84px; right: 20px; width: 330px; height: 420px; border-radius: var(--radius-md); background: var(--card-bg); border: 1px solid var(--border-color); box-shadow: 0 10px 30px rgba(0,0,0,0.4); display: flex; flex-direction: column; overflow: hidden; z-index: 951; animation: chatSlideUp 0.3s cubic-bezier(0.16,1,0.3,1); }
@keyframes chatSlideUp { from{transform:translateY(20px);opacity:0} to{transform:translateY(0);opacity:1} }
.chat-header { padding: 12px 16px; background: rgba(0,0,0,0.2); border-bottom: 1px solid var(--border-color); display: flex; justify-content: space-between; align-items: center; }
.chat-title { display: flex; align-items: center; gap: 8px; }
.chat-status-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success-color); animation: beaconPulse 1.5s infinite; }
.chat-title h4 { font-size: 0.87rem; font-weight: 700; }
.chat-title span { font-size: 0.72rem; color: var(--text-muted); }
.chat-body { flex-grow: 1; padding: 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; background: rgba(2,6,23,0.2); }
.chat-message { max-width: 82%; padding: 8px 12px; border-radius: var(--radius-md); font-size: 0.82rem; line-height: 1.4; word-break: break-word; }
.chat-message.customer-msg { align-self: flex-end; background: var(--primary-color); color: #fff; border-bottom-right-radius: 2px; }
.chat-message.admin-msg { align-self: flex-start; background: rgba(255,255,255,0.05); border: 1px solid var(--border-color); border-bottom-left-radius: 2px; }
.chat-message.system-msg { align-self: center; max-width: 100%; background: none; color: var(--text-muted); font-style: italic; font-size: 0.72rem; text-align: center; }
.chat-footer { padding: 10px; border-top: 1px solid var(--border-color); display: flex; gap: 7px; background: var(--card-bg); }
.chat-footer input { flex-grow: 1; background: var(--bg-color); border: 1px solid var(--border-color); border-radius: var(--radius-sm); padding: 7px 11px; font-size: 0.82rem; outline: none; }
.chat-footer input:focus { border-color: var(--primary-color); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 640px) {
  .hero-banner { padding: 22px; margin: 10px; }
  .hero-content h1 { font-size: 1.8rem; }
  .catalog-layout { padding: 0 12px; }
  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .drawer-content { width: 100%; }
  .admin-chat-layout { grid-template-columns: 1fr; height: auto; }
  .admin-chat-users-list { max-height: 180px; }
  .form-row { grid-template-columns: 1fr; }
  .dashboard-row { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
  .admin-main { padding: 14px; }
}

/* ==========================================
   CUSTOMER DASHBOARD & EXPANDED FEATURES
   ========================================== */

/* Circular Avatar for Nav */
.user-nav-avatar-circle {
  box-shadow: 0 0 6px var(--primary-glow);
  transition: all var(--transition-fast);
}
.user-nav-avatar-circle:hover {
  transform: scale(1.05);
  box-shadow: 0 0 12px var(--primary-glow);
}

/* Avatar Upload Hover Overlay */
.avatar-edit-container label:hover {
  background: rgba(239, 68, 68, 0.8) !important;
}

/* Customer Tab panels */
.customer-tab-content {
  animation: fadeIn 0.4s ease-out;
}

/* Preset buttons for Add Balance */
.btn-amount-preset {
  font-size: 0.8rem !important;
  font-weight: 700 !important;
  padding: 8px !important;
  border-radius: var(--radius-sm) !important;
}
.btn-amount-preset.active {
  background: var(--primary-color) !important;
  border-color: var(--primary-color) !important;
  color: white !important;
}

/* SVG Line & Bar Charts styling */
.svg-chart-wrapper {
  display: flex;
  align-items: flex-end;
  height: 150px;
  gap: 10px;
  padding-top: 15px;
  border-bottom: 2px solid var(--border-color);
  width: 100%;
}
.chart-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}
.chart-bar {
  width: 100%;
  background: linear-gradient(to top, var(--secondary-color), var(--primary-color));
  border-radius: 4px 4px 0 0;
  position: relative;
  transition: height 0.5s ease-out;
  cursor: pointer;
}
.chart-bar:hover {
  filter: brightness(1.2);
  box-shadow: 0 0 10px var(--primary-glow);
}
.chart-bar-tooltip {
  position: absolute;
  top: -28px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}
.chart-bar:hover .chart-bar-tooltip {
  opacity: 1;
  transform: translateX(-50%) scale(1);
}
.chart-bar-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* SVG Line Chart styling (Alternate presentation) */
.chart-svg-line {
  stroke: var(--primary-color);
  stroke-width: 3;
  fill: none;
  stroke-linecap: round;
  filter: drop-shadow(0 4px 6px var(--primary-glow));
}
.chart-svg-area {
  fill: url(#chart-gradient);
  opacity: 0.2;
}

/* Checkout Split Warn Badge styling */
#checkout-wallet-insufficient-warning {
  border-left-width: 4px;
}

/* Responsive sidebar adjustments for tablet/mobile */
@media (max-width: 768px) {
  #customer-dashboard-view .admin-layout,
  #admin-view .admin-layout {
    display: flex;
    flex-direction: column;
  }
  #customer-dashboard-view .admin-sidebar,
  #admin-view .admin-sidebar {
    width: 100%;
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 16px;
  }
  #customer-dashboard-view .admin-nav,
  #admin-view .admin-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    gap: 8px;
    padding-bottom: 8px;
  }
  #customer-dashboard-view .admin-nav::-webkit-scrollbar,
  #admin-view .admin-nav::-webkit-scrollbar {
    height: 4px;
  }
  #customer-dashboard-view .admin-nav-btn,
  #admin-view .admin-nav-btn {
    white-space: nowrap;
    padding: 8px 12px;
  }
  #customer-dashboard-view .admin-user-profile,
  #admin-view .admin-user-profile {
    display: none; /* hide avatar in header profile on small displays to save vertical space */
  }
  .customizer-form-card {
    grid-template-columns: 1fr !important;
  }
  .customizer-form-card > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 20px !important;
    margin-bottom: 10px;
  }
}

/* ==========================================
   MOBILE BOTTOM NAV — Customer Dashboard
   ========================================== */

/* Bottom nav is hidden by default on desktop */
.customer-bottom-nav {
  display: none;
}

/* Padding at bottom of admin-main to avoid content hidden behind bottom nav */
@media (max-width: 768px) {
  /* Show bottom nav on mobile */
  .customer-bottom-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1100;
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 6px 0 env(safe-area-inset-bottom, 6px);
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    backdrop-filter: blur(10px);
  }

  /* Make sure sidebar hides on mobile */
  #customer-dashboard-view .admin-sidebar {
    display: none !important;
  }

  /* Add extra bottom padding so content not hidden behind nav */
  #customer-dashboard-view .admin-main {
    padding-bottom: 90px;
  }

  /* Buttons inside bottom nav */
  .cbn-btn {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    padding: 6px 14px;
    border-radius: var(--radius-md);
    font-size: 0.62rem;
    font-weight: 700;
    color: var(--text-muted);
    transition: all var(--transition-fast);
    flex: 1;
    max-width: 80px;
  }
  .cbn-btn i {
    font-size: 1.2rem;
    margin-bottom: 2px;
  }
  .cbn-btn span {
    font-size: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
  }
  .cbn-btn.active {
    color: var(--primary-color);
    background: var(--primary-glow);
  }
  .cbn-btn:hover {
    color: var(--text-color);
    background: rgba(255,255,255,0.04);
  }

  /* Admin layout on mobile takes full width */
  #customer-dashboard-view .admin-layout {
    display: block !important;
  }

  /* Stat cards smaller on mobile */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  /* Tables horizontal scroll on mobile */
  .table-container {
    overflow-x: auto;
  }

  /* Success modal padding on mobile */
  .success-modal-content {
    max-height: 90vh;
    overflow-y: auto;
    margin: 10px;
    border-radius: var(--radius-md);
  }

  /* Checkout modal on mobile */
  .checkout-modal-content {
    max-height: 95vh;
    overflow-y: auto;
    margin: 4px;
  }
}

/* Star rating hover effect */
.success-star {
  transition: color var(--transition-fast), transform var(--transition-fast);
}
.success-star:hover,
.success-star.selected {
  color: var(--warning-color) !important;
  transform: scale(1.2);
}

/* Invite code badge pulse on hover */
#invite-code-badge:hover {
  opacity: 0.85;
  transform: scale(1.03);
  transition: all var(--transition-fast);
}

/* Invited users list item */
.invited-user-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-color);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  margin-bottom: 8px;
  font-size: 0.85rem;
}
.invited-user-item .invited-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(239,68,68,0.15);
  border: 1px solid rgba(239,68,68,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1rem;
  flex-shrink: 0;
}
.invited-user-item .invited-info {
  flex: 1;
}
.invited-user-item .invited-name {
  font-weight: 700;
  color: var(--text-color);
}
.invited-user-item .invited-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.invited-user-item .invited-bonus {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--success-color);
}

/* ==========================================
   SYSTEM NOTICES BANNER (RESTORED)
   ========================================== */
.system-notices-banner {
  background: linear-gradient(90deg, #0f172a 0%, #1e1b4b 50%, #0f172a 100%);
  border-bottom: 1px solid var(--primary-color);
  padding: 10px 20px;
  position: relative;
  z-index: 90;
}
.notices-container {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notice-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--border-color);
}
.notice-item.notice-warning { border-color: rgba(245,158,11,0.5); background: rgba(245,158,11,0.08); color: #fef08a; }
.notice-item.notice-info { border-color: rgba(59,130,246,0.5); background: rgba(59,130,246,0.08); color: #bfdbfe; }
.notice-item.notice-promo { border-color: rgba(16,185,129,0.5); background: rgba(16,185,129,0.08); color: #a7f3d0; }
.notice-item.notice-danger { border-color: rgba(239,68,68,0.5); background: rgba(239,68,68,0.08); color: #fca5a5; }

.notice-badge {
  font-weight: 800;
  font-size: 0.72rem;
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  flex-shrink: 0;
}
.notice-warning .notice-badge { background: var(--warning-color); color: #000; }
.notice-info .notice-badge { background: #3b82f6; color: #fff; }
.notice-promo .notice-badge { background: var(--success-color); color: #000; }
.notice-danger .notice-badge { background: var(--danger-color); color: #fff; }

.notice-title { font-weight: 700; margin-right: 6px; }
.notice-text { flex: 1; }

/* Out of Stock Card Overlay */
.product-card.out-of-stock {
  opacity: 0.75;
}
.product-card.out-of-stock .product-card-image::after {
  content: 'SEM ESTOQUE';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(239, 68, 68, 0.9);
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  letter-spacing: 1px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
}

/* Turnstile Widget Box */
.cf-turnstile-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 65px;
}


