:root{
  --bg-0:#070311;
  --bg-1:#100720;
  --surface:#180b30;
  --surface-2:#211042;
  --line:#321a5c;
  --purple-900:#2d135d;
  --purple-700:#350f96;
  --purple-500:#541eb8;
  --purple-300:#7f45f5;
  --lilac:#a584e8;
  --gold:#e8c97a;
  --text-0:#f5f0ff;
  --text-1:#c1b4e0;
  --text-2:#7f6fa6;
  --radius:14px;
  --font:'General Sans', system-ui, sans-serif;
}

*{box-sizing:border-box; margin:0; padding:0;}
html{
  scroll-behavior:smooth;
  scrollbar-width: thin;
  scrollbar-color: var(--line) var(--bg-0);
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: var(--bg-0);
}
::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 99px;
  border: 2px solid var(--bg-0);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--purple-500);
}

body{
  font-family:var(--font);
  background-color: var(--bg-0);
  color:var(--text-0);
  -webkit-font-smoothing:antialiased;
  min-height:100vh;
  position:relative;
  overflow-x:hidden;
}

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(169, 122, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 122, 255, 0.08) 1px, transparent 1px),
    radial-gradient(1000px 500px at 15% -5%, rgba(123, 63, 237, 0.28), transparent 60%),
    radial-gradient(800px 600px at 100% 20%, rgba(78, 27, 186, 0.18), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(51, 20, 110, 0.2), transparent 60%);
  background-size: 50px 50px, 50px 50px, auto, auto, auto;
  background-repeat: repeat, repeat, no-repeat, no-repeat, no-repeat;
  background-position: 0 0, 0 0, 0 0, 0 0, 0 0;
  will-change: transform;
}

a{color:inherit; text-decoration:none;}
button{font-family:var(--font); cursor:pointer; border:none;}
img{max-width:100%; display:block;}

/* ---------- HEADER ---------- */
header{
  position:sticky; top:0; z-index:50;
  display:flex; align-items:center; justify-content:space-between;
  gap:20px;
  padding:16px 32px;
  background:rgba(7, 3, 17, 0.8);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--line);
}
.menu-btn{
  background:none; color:var(--text-0); font-size:20px;
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border-radius:10px;
}
.menu-btn:hover{background:var(--surface);}
.logo{display:flex; align-items:center; gap:10px; font-weight:700; font-size:18px; letter-spacing:.2px;}
.logo .mark{
  width:30px; height:30px; border-radius:99px;
  background:linear-gradient(135deg,var(--purple-500),var(--purple-900));
  display:flex; align-items:center; justify-content:center;
  font-size:14px; font-weight:800; color:#fff;
  box-shadow:0 0 18px rgba(139,79,240,.6);
}
.search{
  flex:1; max-width:520px;
  display:flex; align-items:center; gap:10px;
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:999px;
  padding:10px 18px;
  color:var(--text-2);
}
.search input{
  background:none; border:none; outline:none; color:var(--text-0);
  font-family:var(--font); font-size:14px; width:100%;
}
.search input::placeholder{color:var(--text-2);}
.head-actions{display:flex; align-items:center; gap:14px;}
.icon-btn{
  width:38px; height:38px; border-radius:10px;
  display:flex; align-items:center; justify-content:center;
  background:var(--surface); color:var(--text-1);
}
.icon-btn:hover{color:var(--purple-300);}
.btn{
  border-radius:10px; padding:10px 18px; font-weight:600; font-size:14px;
  transition:transform .15s ease, box-shadow .15s ease;
}
.btn:hover{transform:translateY(-1px);}
.btn-primary{
  background:linear-gradient(135deg,var(--purple-500),var(--purple-700));
  color:#fff;
  box-shadow:0 6px 20px rgba(91,44,201,.4);
}
.btn-ghost{
  background:var(--surface);
  border:1px solid var(--line);
  color:var(--text-0);
}
.btn-ghost:hover{border-color:var(--purple-500);}

main{position:relative; z-index:1; max-width:1320px; margin:0 auto; padding:0 32px 80px;}

/* ---------- HERO ---------- */
.hero-wrap{padding:36px 0 16px;}
.hero{
  position:relative;
  border-radius:22px;
  overflow:hidden;
  background:linear-gradient(120deg, var(--purple-900) 0%, var(--bg-1) 65%);
  border:1px solid var(--line);
  padding:48px;
  min-height:340px;
  display:flex; align-items:center;
}
.hero::after{
  content:'';
  position:absolute; right:-80px; top:-80px;
  width:420px; height:420px; border-radius:50%;
  background:radial-gradient(circle, rgba(217,198,255,.18), transparent 70%);
}
.hero-content{position:relative; z-index:2; max-width:560px;}
.badge{
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(232,201,122,.12);
  color:var(--gold);
  border:1px solid rgba(232,201,122,.3);
  font-size:12px; font-weight:600; letter-spacing:.4px;
  padding:6px 12px; border-radius:999px;
  margin-bottom:18px;
}
.hero h1{
  font-size:46px; font-weight:800; line-height:1.05;
  letter-spacing:-1px;
  margin-bottom:14px;
}
.hero h1 span{
  background:linear-gradient(90deg,var(--lilac),var(--purple-300));
  -webkit-background-clip:text; background-clip:text; color:transparent;
}
.hero p{color:var(--text-1); font-size:15px; line-height:1.6; margin-bottom:26px; max-width:460px;}
.hero-dots{display:flex; gap:8px; margin-top:28px;}
.hero-dots span{width:6px; height:6px; border-radius:50%; background:var(--line);}
.hero-dots span.active{background:var(--purple-300); width:20px; border-radius:4px;}

.quick-links{display:flex; gap:14px; margin:22px 0 36px; flex-wrap:wrap;}
.quick-links a{
  display:flex; align-items:center; gap:8px;
  padding:12px 20px; border-radius:12px;
  background:var(--surface); border:1px solid var(--line);
  font-weight:600; font-size:14px;
}
.quick-links a:hover{border-color:var(--purple-500); color:var(--purple-300);}

/* ---------- CATEGORY STRIP ---------- */
.cat-strip{
  display:grid; grid-template-columns:repeat(7,1fr); gap:14px; margin-bottom:48px;
}
.cat-card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:16px;
  padding:18px 12px;
  text-align:center;
  transition:border-color .15s ease, transform .15s ease;
}
.cat-card:hover{border-color:var(--purple-500); transform:translateY(-3px);}
.cat-card .emoji{font-size:24px; margin-bottom:10px;}
.cat-card span{font-size:13px; font-weight:600; color:var(--text-1);}

/* ---------- SECTIONS ---------- */
.section{margin-bottom:54px;}
.section-head{
  display:flex; align-items:baseline; gap:12px;
  margin-bottom:20px;
}
.section-head h2{
  font-size:13px; font-weight:700; letter-spacing:2px;
  color:var(--text-1); text-transform:uppercase;
}
.section-head .rule{flex:1; height:1px; background:var(--line);}

.grid{
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:18px;
}

.card{
  background:var(--surface);
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; flex-direction:column;
  transition:border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.card:hover{
  border-color:var(--purple-500);
  transform:translateY(-4px);
  box-shadow:0 14px 30px rgba(91,44,201,.25);
}
.card-thumb{
  position:relative;
  aspect-ratio:16/10;
  background:linear-gradient(135deg,var(--purple-900),var(--bg-1));
  display:flex; align-items:center; justify-content:center;
  font-size:13px; font-weight:700; color:var(--lilac); letter-spacing:.5px;
  text-align:center; padding:10px;
}
.card-thumb .tag{
  position:absolute; top:8px; left:8px;
  background:rgba(0,0,0,.55);
  font-size:10px; font-weight:700; color:var(--gold);
  padding:4px 8px; border-radius:6px; letter-spacing:.4px;
}
.card-body{padding:14px 16px 16px; display:flex; flex-direction:column; gap:8px; flex:1;}
.card-body h3{font-size:14px; font-weight:600;}
.price-row{display:flex; align-items:baseline; gap:8px;}
.price{font-size:17px; font-weight:800; color:var(--text-0);}
.price-old{font-size:12px; color:var(--text-2); text-decoration:line-through;}
.pix-note{font-size:11px; color:var(--text-2);}
.card-actions{margin-top:auto; display:flex; gap:8px;}
.btn-buy{
  flex:1; background:var(--text-0); color:var(--bg-0);
  font-weight:700; font-size:13px; padding:9px; border-radius:9px;
}
.btn-buy:hover{background:var(--purple-300);}
.btn-cart{
  width:38px; border-radius:9px;
  background:linear-gradient(135deg,var(--purple-500),var(--purple-700));
  color:#fff; display:flex; align-items:center; justify-content:center; font-size:14px;
}

/* ---------- FLOATING UI ---------- */
.toast{
  position:fixed; left:24px; bottom:24px; z-index:60;
  background:var(--surface); border:1px solid var(--line);
  border-radius:14px; padding:14px 16px; width:230px;
  box-shadow:0 14px 30px rgba(0,0,0,.4);
  font-size:12px;
  opacity: 0;
  transform: translateY(150px);
  pointer-events: none;
  transition: transform 0.5s ease, opacity 0.5s ease;
}
.toast .dot{width:7px; height:7px; border-radius:50%; background:#4ade80; display:inline-block; margin-right:6px;}
.toast strong{display:block; font-size:13px; margin:4px 0 2px;}
.toast .meta{color:var(--text-2);}
.toast .price{font-size:13px; margin-top:8px; display:flex; justify-content:space-between; align-items:center;}
.toast .pill{background:rgba(74,222,128,.12); color:#4ade80; font-size:10px; padding:3px 8px; border-radius:999px;}

.chat-fab, .top-fab{
  position:fixed; right:24px; z-index:60;
  width:50px; height:50px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:linear-gradient(135deg,var(--purple-500),var(--purple-700));
  color:#fff; font-size:18px;
  box-shadow:0 10px 24px rgba(91,44,201,.5);
}
.chat-fab{bottom:24px;}
.top-fab{bottom:88px; background:var(--surface); border:1px solid var(--line); color:var(--text-1); box-shadow:none;}

footer{
  border-top:1px solid var(--line);
  padding:40px 32px; text-align:center;
  color:var(--text-2); font-size:12px;
  position:relative; z-index:1;
}

/* ---------- CART DRAWER & OVERLAY ---------- */
.cart-overlay, .modal-overlay {
  position: fixed; inset: 0;
  background: rgba(10, 6, 19, 0.7);
  backdrop-filter: blur(8px);
  z-index: 100;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open, .modal-overlay.open {
  opacity: 1; pointer-events: auto;
}

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100%;
  background: var(--surface);
  border-left: 1px solid var(--line);
  z-index: 101;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  display: flex; flex-direction: column;
  box-shadow: -10px 0 30px rgba(0, 0, 0, 0.5);
}
.cart-drawer.open {
  transform: translateX(0);
  visibility: visible;
}
.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
}
.cart-header h3 { font-size: 18px; font-weight: 700; color: var(--text-0); }
.cart-close, .modal-close {
  background: none; border: none; color: var(--text-2);
  font-size: 20px; width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: 0.15s;
}
.cart-close:hover, .modal-close:hover {
  background: var(--surface-2); color: var(--text-0);
}

.cart-items {
  flex: 1; overflow-y: auto; padding: 24px;
  display: flex; flex-direction: column; gap: 16px;
}
.cart-item {
  display: flex; gap: 14px; align-items: center;
  padding-bottom: 16px; border-bottom: 1px solid var(--surface-2);
}
.cart-item-thumb {
  width: 60px; height: 48px; border-radius: 8px;
  background: linear-gradient(135deg,var(--purple-900),var(--bg-1));
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; color: var(--lilac);
  text-align: center; padding: 4px; overflow: hidden;
}
.cart-item-details { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.cart-item-title { font-size: 14px; font-weight: 600; color: var(--text-0); }
.cart-item-price { font-size: 13px; font-weight: 700; color: var(--purple-300); }

.cart-item-quantity { display: flex; align-items: center; gap: 8px; margin-top: 4px; }
.qty-btn {
  width: 24px; height: 24px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line);
  color: var(--text-1); display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: bold;
}
.qty-btn:hover { background: var(--line); color: var(--text-0); }
.qty-val { font-size: 13px; font-weight: 600; width: 16px; text-align: center; }

.cart-item-remove {
  background: none; border: none; color: var(--text-2); font-size: 16px;
  cursor: pointer; padding: 4px; transition: 0.15s;
}
.cart-item-remove:hover { color: #f43f5e; }

.cart-empty {
  text-align: center; color: var(--text-2); padding: 40px 0;
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}

.cart-footer {
  padding: 24px; border-top: 1px solid var(--line);
  background: var(--surface-2);
}
.cart-summary {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 16px; font-size: 15px;
}
.cart-summary strong { font-size: 20px; color: var(--text-0); font-weight: 800; }
.btn-checkout { width: 100%; padding: 14px; font-size: 15px; }

/* ---------- MODALS ---------- */
.modal-overlay {
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-content {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px;
  max-width: 580px; width: 100%;
  position: relative;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
  transform: scale(0.95);
  opacity: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.modal-overlay.open .modal-content {
  transform: scale(1);
  opacity: 1;
}
.modal-close {
  position: absolute; top: 16px; right: 16px;
}

/* Product Modal specific styles */
.product-modal-grid {
  display: grid; grid-template-columns: 200px 1fr; gap: 24px;
}
@media (max-width: 560px) {
  .product-modal-grid { grid-template-columns: 1fr; }
}
.product-modal-thumb {
  border-radius: 12px;
  background: linear-gradient(135deg,var(--purple-900),var(--bg-1));
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 800; color: var(--lilac);
  text-align: center; padding: 16px; aspect-ratio: 1;
  border: 1px solid var(--line);
}
.product-modal-info {
  display: flex; flex-direction: column;
}
.product-description {
  background: var(--bg-0);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 14px;
  font-size: 13px; line-height: 1.5;
  max-height: 160px; overflow-y: auto;
  color: var(--text-1);
}
.product-description h4 { color: var(--text-0); margin-bottom: 4px; }

/* Auth Modal */
.auth-modal { max-width: 400px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 12px; font-weight: 600; color: var(--text-1); }
.form-group input {
  background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; color: var(--text-0);
  font-family: var(--font); font-size: 14px; outline: none;
  width: 100%;
}
.form-group input:focus { border-color: var(--purple-500); }
.auth-divider {
  text-align: center; position: relative; margin: 20px 0;
}
.auth-divider::before {
  content: ''; position: absolute; left: 0; right: 0; top: 50%;
  height: 1px; background: var(--line); z-index: 1;
}
.auth-divider span {
  background: var(--surface); padding: 0 10px;
  position: relative; z-index: 2; font-size: 12px; color: var(--text-2);
}

/* FAQ Modal */
.faq-modal { max-width: 500px; }
.faq-accordion { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.faq-item {
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden;
}
.faq-question {
  padding: 14px; font-weight: 600; font-size: 14px; display: flex;
  justify-content: space-between; align-items: center; cursor: pointer;
  user-select: none;
}
.faq-question span { font-size: 16px; color: var(--purple-300); transition: transform 0.2s; }
.faq-item.active .faq-question span { transform: rotate(45deg); }
.faq-answer {
  padding: 0 14px 14px; font-size: 13px; color: var(--text-1); line-height: 1.5;
  display: none;
}
.faq-item.active .faq-answer { display: block; }

/* Checkout Modal */
.checkout-modal { max-width: 440px; }

/* ---------- HERO CAROUSEL ANIMATIONS ---------- */
.hero {
  transition: background 0.5s ease;
}
.hero-content {
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.hero-content.fade-out {
  opacity: 0;
  transform: translateY(10px);
}

/* ---------- SEARCH / FILTER EFFECTS ---------- */
.card {
  transition: opacity 0.3s ease, transform 0.3s ease, box-shadow 0.15s ease;
}
.card.hidden-filter {
  opacity: 0;
  transform: scale(0.9);
  pointer-events: none;
  position: absolute;
  width: 0; height: 0;
  padding: 0; margin: 0;
  border: none;
  overflow: hidden;
}
.section.hidden-filter {
  display: none;
}

/* Header Cart Badge */
.btn-cart-badge {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--bg-0);
  font-size: 11px; font-weight: 800;
  width: 20px; height: 20px; border-radius: 50%;
  margin-left: 8px;
  box-shadow: 0 0 10px rgba(232,201,122,0.6);
}

/* ---------- USER PROFILE BADGE ---------- */
.user-profile-badge {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 14px 6px 6px;
  font-size: 13px; font-weight: 600; color: var(--text-0);
  cursor: pointer; position: relative;
  transition: border-color 0.15s, background 0.15s;
  user-select: none;
}
.user-profile-badge:hover {
  border-color: var(--purple-500);
  background: var(--line);
}
.user-profile-badge .avatar {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}
.user-profile-badge .logout-btn {
  font-size: 11px; color: var(--text-2); font-weight: 500;
  transition: color 0.15s; margin-left: 4px;
}
.user-profile-badge:hover .logout-btn {
  color: #f43f5e;
}

/* Google Account Selection specific hover */
.google-account-item:hover {
  background: #f7f8f9 !important;
}

/* ---------- MEMBERS AREA STYLES ---------- */
.members-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 24px;
}
@media (max-width: 900px) {
  .members-grid { grid-template-columns: 1fr; }
}

.members-sidebar {
  display: flex; flex-direction: column; gap: 20px;
}

.user-profile-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; display: flex; align-items: center; gap: 14px;
}
.profile-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-500), var(--purple-700));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 800;
  font-family: var(--font);
}
.profile-info h3 { font-size: 15px; font-weight: 700; color: var(--text-0); }
.profile-info p { font-size: 12px; color: var(--text-2); }

.orders-list-container {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  padding: 20px; flex: 1; display: flex; flex-direction: column; gap: 12px;
}
.orders-list-container h4 { font-size: 13px; text-transform: uppercase; color: var(--text-2); letter-spacing: 1px; }
.orders-list {
  display: flex; flex-direction: column; gap: 10px; overflow-y: auto; max-height: 400px;
}

.order-item-card {
  background: var(--bg-0); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px; cursor: pointer; transition: 0.15s; text-align: left;
}
.order-item-card:hover, .order-item-card.active {
  border-color: var(--purple-500); background: var(--surface-2);
}
.order-item-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 6px; }
.order-item-name { font-size: 13px; font-weight: 600; color: var(--text-0); }
.order-item-price { font-size: 12px; font-weight: 700; color: var(--gold); }
.order-item-meta { font-size: 11px; color: var(--text-2); }
.order-item-status {
  display: inline-block; font-size: 10px; background: rgba(74, 222, 128, 0.1);
  color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 4px; padding: 2px 6px; margin-top: 6px;
}

.members-chat-area {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  min-height: 480px; display: flex; flex-direction: column; overflow: hidden;
  position: relative;
}

.chat-placeholder {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  flex: 1; text-align: center; color: var(--text-2); padding: 40px;
}
.chat-placeholder h3 { color: var(--text-0); margin-bottom: 8px; }
.chat-placeholder p { max-width: 320px; font-size: 13px; line-height: 1.5; }

.chat-interface { display: flex; flex-direction: column; flex: 1; height: 100%; }
.chat-header-info {
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  background: var(--surface-2);
}
.chat-header-info h3 { font-size: 16px; font-weight: 700; }
.chat-header-info p { font-size: 12px; color: var(--text-2); }
.chat-price { font-size: 16px; font-weight: 800; color: var(--purple-300); }

.chat-access-info { padding: 12px 20px; border-bottom: 1px solid var(--line); }

.chat-messages {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  max-height: 320px;
}

.chat-bubble {
  display: flex; flex-direction: column; gap: 4px; max-width: 75%;
  padding: 12px 16px; border-radius: 14px; font-size: 13px; line-height: 1.5;
}
.chat-bubble.system {
  align-self: center; background: rgba(232, 201, 122, 0.08);
  border: 1px solid rgba(232, 201, 122, 0.2); color: var(--text-1);
  max-width: 90%; width: 100%; text-align: left;
}
.chat-bubble.client {
  align-self: flex-end; background: var(--purple-700); color: #fff;
  border-bottom-right-radius: 2px;
}
.chat-bubble.support {
  align-self: flex-start; background: var(--surface-2); color: var(--text-0);
  border: 1px solid var(--line); border-bottom-left-radius: 2px;
}

.chat-bubble-time { font-size: 10px; color: var(--text-2); align-self: flex-end; }
.chat-bubble.client .chat-bubble-time { color: rgba(255,255,255,0.7); }

.chat-input-bar {
  padding: 16px 20px; border-top: 1px solid var(--line);
  display: flex; gap: 10px; background: var(--surface-2);
}
.chat-input-bar input {
  flex: 1; background: var(--bg-0); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 14px; color: var(--text-0);
  font-family: var(--font); font-size: 13px; outline: none;
}
.chat-input-bar input:focus { border-color: var(--purple-500); }

/* Dropdown actions */
.user-dropdown div:hover {
  background: var(--line) !important;
  color: var(--purple-300) !important;
}

/* ---------- STOCK DISPLAY ---------- */
.card.out-of-stock {
  opacity: 0.65;
}
.card.out-of-stock .btn-buy {
  background: var(--line) !important;
  color: var(--text-2) !important;
  cursor: not-allowed;
}
.card.out-of-stock .btn-cart {
  background: var(--line) !important;
  color: var(--text-2) !important;
  cursor: not-allowed;
}
.card-thumb .badge-esgotado {
  position: absolute; top: 8px; right: 8px;
  background: #f43f5e; color: #fff;
  font-size: 10px; font-weight: 800; padding: 4px 8px;
  border-radius: 6px; letter-spacing: 0.5px;
  z-index: 10;
}

@media (max-width:1100px){
  .grid{grid-template-columns:repeat(3,1fr);}
  .cat-strip{grid-template-columns:repeat(4,1fr);}
}
@media (max-width:760px){
  header{padding:14px 18px;}
  .search{display:none;}
  main{padding:0 18px 60px;}
  .hero{padding:30px;}
  .hero h1{font-size:32px;}
  .grid{grid-template-columns:repeat(2,1fr);}
  .cat-strip{grid-template-columns:repeat(3,1fr);}
  .toast{display:none;}
}

/* ---------- GENERAL CHAT WIDGET ---------- */
.general-chat-widget {
  position: fixed; right: 24px; bottom: 84px; z-index: 90;
  width: 360px; height: 480px; max-height: calc(100vh - 120px);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 16px; display: flex; flex-direction: column;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
  overflow: hidden;
  transform: translateY(20px); opacity: 0; pointer-events: none;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
}
.general-chat-widget.open {
  transform: translateY(0); opacity: 1; pointer-events: auto;
}
.general-chat-header {
  background: var(--surface-2); border-bottom: 1px solid var(--line);
  padding: 16px 20px; display: flex; align-items: center; justify-content: space-between;
}
.general-chat-title { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.general-chat-status { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; display: inline-block; box-shadow: 0 0 8px #4ade80; }

.general-chat-body {
  flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-0);
}
.general-chat-footer {
  padding: 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; background: var(--surface-2);
}
.general-chat-footer input {
  flex: 1; background: var(--bg-0); border: 1px solid var(--line); border-radius: 8px;
  padding: 8px 12px; color: var(--text-0); font-size: 13px; outline: none;
}
.general-chat-footer input:focus { border-color: var(--purple-500); }

/* ---------- ADMIN AREA STYLES ---------- */
.admin-tabs {
  display: flex; gap: 8px; border-bottom: 1px solid var(--line); padding-bottom: 1px; margin-bottom: 20px;
}
.admin-tab-btn {
  background: none; border: none; color: var(--text-2); padding: 10px 16px; font-weight: 600; font-size: 13px;
  border-bottom: 2px solid transparent; transition: 0.15s;
  cursor: pointer;
}
.admin-tab-btn:hover { color: var(--text-0); }
.admin-tab-btn.active { color: var(--purple-300); border-bottom-color: var(--purple-500); }

.admin-grid {
  display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-top: 24px;
}
@media (max-width: 900px) {
  .admin-grid { grid-template-columns: 1fr; }
}

.stock-table-container {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px;
  overflow-x: auto;
}
.stock-table {
  width: 100%; border-collapse: collapse; text-align: left; font-size: 13px;
}
.stock-table th {
  padding: 12px; border-bottom: 1px solid var(--line); color: var(--text-2); font-weight: 600;
}
.stock-table td {
  padding: 12px; border-bottom: 1px solid var(--surface-2); color: var(--text-0); vertical-align: middle;
}
.stock-input-group {
  display: flex; gap: 8px; max-width: 320px;
}
.stock-input-group input {
  flex: 1; background: var(--bg-0); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; color: var(--text-0); font-size: 12px; outline: none;
}

/* ---------- FOOTER ---------- */
footer {
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  padding: 60px 32px 30px;
  color: var(--text-1);
  font-size: 14px;
  margin-top: 80px;
  border-top: 1px solid rgba(165, 132, 232, 0.15);
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.5);
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  padding-bottom: 40px;
}
@media (max-width: 992px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}
@media (max-width: 576px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
.footer-logo-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 20px;
  color: var(--text-0);
  letter-spacing: 0.5px;
}
.footer-desc {
  color: var(--text-2);
  line-height: 1.6;
  font-size: 13px;
  max-width: 380px;
}
.footer-social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.footer-title {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-0);
  margin-bottom: 20px;
  letter-spacing: 1px;
  position: relative;
}
.footer-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 24px;
  height: 2px;
  background: var(--purple-300);
  border-radius: 2px;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-links a {
  color: var(--text-2);
  transition: all 0.2s ease;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer-links a:hover {
  color: var(--purple-300);
  transform: translateX(4px);
}
.footer-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text-1);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.footer-social-btn:hover {
  background: var(--purple-500);
  border-color: var(--purple-300);
  color: var(--text-0);
  box-shadow: 0 0 15px rgba(123, 63, 237, 0.5);
  transform: translateY(-3px);
}
.footer-payments-security {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-badge-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  max-width: 200px;
}
.footer-badge-item {
  height: 32px;
  background: rgba(24, 11, 48, 0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  transition: border-color 0.2s;
}
.footer-badge-item:hover {
  border-color: var(--purple-300);
}
.footer-badge-item svg {
  max-height: 100%;
  max-width: 100%;
}
.footer-security-seal {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(232, 201, 122, 0.05);
  border: 1px dashed rgba(232, 201, 122, 0.2);
  border-radius: 8px;
  padding: 10px 14px;
  max-width: 220px;
}
.footer-security-seal svg {
  color: var(--gold);
}
.footer-security-text {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.4;
}
.footer-security-text strong {
  color: var(--text-0);
}

/* ---------- BRAND TEXT ANIMATION BANNER ---------- */
.text-animation-banner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 20px 10px;
  background: #000;
  border-top: none;
  position: relative;
  overflow: hidden;
  gap: 8px;
  width: 100%;
}
.animated-text-line {
  margin: 0;
  color: transparent;
  -webkit-text-fill-color: transparent;
  font-size: 110px;
  font-family: var(--font);
  font-weight: 700;
  text-transform: uppercase;
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.85;
  background-size: contain;
  background-repeat: repeat;
  background-position: center;
  animation: moveBg 25s linear infinite;
  line-height: 0.95;
  letter-spacing: -4px;
  text-align: center;
  user-select: none;
}
@media (max-width: 768px) {
  .animated-text-line {
    font-size: 64px;
    letter-spacing: -2px;
  }
}
.animated-text-line.line-1 {
  background-image: url('https://plus.unsplash.com/premium_photo-1661882403999-46081e67c401?w=900&auto=format&fit=crop&q=60');
}
.animated-text-line.line-2 {
  background-image: url('https://plus.unsplash.com/premium_photo-1661963874418-df1110ee39c1?w=900&auto=format&fit=crop&q=60');
}

@keyframes moveBg {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ---------- TERMS MODAL ---------- */
.terms-modal-body {
  max-height: 60vh;
  overflow-y: auto;
  padding-right: 12px;
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-1);
  text-align: left;
}
.terms-modal-body::-webkit-scrollbar {
  width: 6px;
}
.terms-modal-body::-webkit-scrollbar-track {
  background: var(--bg-0);
  border-radius: 10px;
}
.terms-modal-body::-webkit-scrollbar-thumb {
  background: var(--purple-600);
  border-radius: 10px;
}
.terms-modal-body::-webkit-scrollbar-thumb:hover {
  background: var(--purple-500);
}
.terms-modal-body h4 {
  color: var(--text-0);
  margin: 20px 0 8px 0;
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.terms-modal-body p {
  margin-bottom: 12px;
}
.terms-modal-body ul {
  margin-bottom: 16px;
  padding-left: 20px;
}
.terms-modal-body li {
  margin-bottom: 6px;
  list-style-type: disc;
}

.terms-modal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 13px;
}
.terms-modal-body th, .terms-modal-body td {
  border: 1px solid var(--line);
  padding: 10px;
  text-align: left;
}
.terms-modal-body th {
  background: var(--surface-2);
  color: var(--text-0);
  font-weight: 700;
}
