/* ─── Bairro 13 — Premium Dark UI ─────────────────────────────────────── */

:root {
  --bg:           #000000;
  --bg2:          #080808;
  --bg3:          #101010;
  --bg4:          #161616;
  --surface:      rgba(255,255,255,0.03);
  --surface2:     rgba(255,255,255,0.06);
  --border:       rgba(255,255,255,0.07);
  --border2:      rgba(255,255,255,0.14);
  --accent:       #d9d7d7;
  --accent2:      #a8a6a6;
  --green:        #10b981;
  --green-glow:   rgba(16,185,129,0.25);
  --red:          #ef4444;
  --indigo:       #6366f1;
  --text:         #e8e6e6;
  --text2:        #7a7878;
  --text3:        #3d3b3b;
  --radius:       12px;
  --radius-sm:    8px;
  --radius-lg:    18px;
  --radius-xl:    24px;
  --shadow:       0 4px 24px rgba(0,0,0,0.5);
  --shadow-lg:    0 12px 48px rgba(0,0,0,0.7);
  --transition:   all 0.18s cubic-bezier(0.4,0,0.2,1);
}

*,*::before,*::after { box-sizing:border-box; margin:0; padding:0; }
html { scroll-behavior:smooth; }
body {
  font-family:'Poppins',system-ui,sans-serif;
  background:var(--bg);
  color:var(--text);
  min-height:100vh;
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
}
a { color:inherit; text-decoration:none; }
img { display:block; max-width:100%; }
button { cursor:pointer; font-family:inherit; }
input,select,textarea { font-family:inherit; }

/* ─── Ambient background ─────────────────────────────────────────────────── */
.bg-glow {
  position:fixed; inset:0; z-index:0; pointer-events:none; overflow:hidden;
}
.bg-glow::before {
  content:'';
  position:absolute;
  width:900px; height:900px;
  top:-300px; left:-200px;
  background:radial-gradient(circle, rgba(99,102,241,0.06) 0%, transparent 65%);
  animation:drift1 20s ease-in-out infinite alternate;
}
.bg-glow::after {
  content:'';
  position:absolute;
  width:700px; height:700px;
  bottom:-200px; right:-100px;
  background:radial-gradient(circle, rgba(217,215,215,0.04) 0%, transparent 65%);
  animation:drift2 25s ease-in-out infinite alternate;
}
@keyframes drift1 { from{transform:translate(0,0) scale(1)} to{transform:translate(60px,80px) scale(1.08)} }
@keyframes drift2 { from{transform:translate(0,0) scale(1)} to{transform:translate(-50px,-60px) scale(1.12)} }

/* ─── Layout ──────────────────────────────────────────────────────────────── */
.container    { max-width:1200px; margin:0 auto; padding:0 24px; position:relative; z-index:1; }
.container-sm { max-width:640px;  margin:0 auto; padding:0 24px; position:relative; z-index:1; }

/* ─── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position:relative; z-index:100;
  background:rgba(0,0,0,0.75);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border-bottom:1px solid var(--border);
}
.navbar-inner { display:flex; align-items:center; gap:32px; height:72px; }
.navbar-logo {
  font-size:19px; font-weight:900; letter-spacing:-0.5px;
  white-space:nowrap;
  display:flex; align-items:center; gap:0;
  text-decoration:none;
  color:var(--text);
}
.navbar-logo:visited,
.navbar-logo:hover,
.navbar-logo:active { color:var(--text); }
.navbar-logo-gradient {
  color:#ffffff;
  background:linear-gradient(90deg,#ffffff,#a8a8a8);
  -webkit-background-clip:text;
  -webkit-text-fill-color:transparent;
  background-clip:text;
  display:inline-block;
  font-weight:900;
  letter-spacing:0.8px;
  font-size:24px;
  padding:4px 0;
}
.navbar-links { display:flex; gap:4px; flex:1; }
.navbar-links a {
  padding:8px 16px; border-radius:var(--radius-sm);
  font-size:14px; font-weight:500; color:var(--text2);
  transition:var(--transition);
}
.navbar-links a:hover,.navbar-links a.active { color:var(--text); background:var(--surface2); }
.navbar-right { display:flex; align-items:center; gap:10px; margin-left:auto; }
.navbar-points {
  display:flex; align-items:center; gap:5px;
  background:rgba(16,185,129,0.08);
  border:1px solid rgba(16,185,129,0.2);
  border-radius:999px; padding:4px 12px;
  font-size:12px; font-weight:600; color:var(--green);
}
.navbar-avatar { width:30px; height:30px; border-radius:50%; object-fit:cover; border:2px solid var(--border2); }
.navbar-user {
  display:flex; align-items:center; gap:8px;
  padding:3px 10px 3px 3px;
  border-radius:999px; border:1px solid var(--border);
  background:var(--surface); transition:var(--transition);
  font-size:13px; font-weight:500;
}
.navbar-user:hover { border-color:var(--border2); }

/* ─── User dropdown ───────────────────────────────────────────────────────── */
.user-menu { position:relative; }
.user-menu-trigger {
  display:flex; align-items:center; gap:8px;
  padding:3px 10px 3px 3px;
  border-radius:999px; border:1px solid var(--border);
  background:var(--surface); transition:var(--transition);
  font-size:13px; font-weight:500; color:var(--text);
  cursor:pointer;
}
.user-menu-trigger:hover { border-color:var(--border2); background:var(--surface2); }
.user-menu-trigger .caret { width:14px; height:14px; opacity:0.6; transition:transform 0.18s ease; }
.user-menu.open .user-menu-trigger .caret { transform:rotate(180deg); }
.user-menu-dropdown {
  position:absolute; top:calc(100% + 8px); right:0;
  min-width:220px;
  background:rgba(12,12,12,0.96);
  backdrop-filter:blur(24px) saturate(1.4);
  -webkit-backdrop-filter:blur(24px) saturate(1.4);
  border:1px solid var(--border2);
  border-radius:var(--radius);
  box-shadow:var(--shadow-lg);
  padding:6px;
  opacity:0; transform:translateY(-6px) scale(0.98);
  pointer-events:none;
  transition:opacity 0.15s ease, transform 0.15s ease;
  z-index:200;
}
.user-menu.open .user-menu-dropdown {
  opacity:1; transform:translateY(0) scale(1); pointer-events:auto;
}
.user-menu-header {
  display:flex; align-items:center; gap:10px;
  padding:10px 12px; border-bottom:1px solid var(--border);
  margin-bottom:6px;
}
.user-menu-header img { width:38px; height:38px; border-radius:50%; border:1px solid var(--border2); }
.user-menu-header .uname { font-size:13px; font-weight:700; color:var(--text); line-height:1.2; }
.user-menu-header .upts { font-size:11px; color:var(--green); font-weight:600; margin-top:2px; }
.user-menu-item {
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:500; color:var(--text2);
  transition:var(--transition); cursor:pointer;
}
.user-menu-item svg { width:15px; height:15px; flex-shrink:0; }
.user-menu-item:hover { background:var(--surface2); color:var(--text); }
.user-menu-item.danger:hover { background:rgba(239,68,68,0.08); color:#f87171; }
.user-menu-sep { height:1px; background:var(--border); margin:6px 0; }

/* ─── Hero ────────────────────────────────────────────────────────────────── */
.hero { padding:110px 0 56px; text-align:center; }
.hero-eyebrow {
  display:inline-flex; align-items:center; gap:6px;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.15);
  backdrop-filter:blur(10px); -webkit-backdrop-filter:blur(10px);
  border-radius:999px; padding:6px 16px;
  font-size:12px; font-weight:700; color:var(--text);
  letter-spacing:0.08em; text-transform:uppercase; margin-bottom:20px;
}
.hero-eyebrow svg { width:10px; height:10px; }
.hero-title {
  font-size:clamp(34px,5.5vw,62px);
  font-weight:900; line-height:1.05;
  letter-spacing:-2px; margin-bottom:16px;
  color:var(--text);
}
.hero-title .gradient {
  background:linear-gradient(135deg,#ffffff 0%,#c7c5c5 50%,#6b7280 100%);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
}
.hero-sub {
  font-size:16px; color:var(--text2);
  max-width:440px; margin:0 auto 32px;
  font-weight:400; line-height:1.6;
}
.hero-features {
  display:grid; grid-template-columns:repeat(4,1fr);
  gap:20px; margin:0 auto;
}
.feature-item {
  display:flex; flex-direction:column; align-items:center; gap:8px;
  padding:16px; background:rgba(255,255,255,0.03); border-radius:12px;
  border:1px solid rgba(255,255,255,0.08); text-align:center;
}
.feature-item svg { width:24px; height:24px; color:#22c55e; }
.feature-item span { font-size:12px; font-weight:700; color:var(--text); letter-spacing:0.05em; }

/* ─── Category Section ────────────────────────────────────────────────────── */
.category-section {
  text-align:center; margin:60px 0 40px;
  padding:40px 0; border-bottom:1px solid var(--border);
}
.category-section h2 {
  font-size:32px; font-weight:800; color:var(--text);
  margin-bottom:8px;
}
.category-section p {
  font-size:16px; color:var(--text2); margin:0;
}

/* ─── Section ─────────────────────────────────────────────────────────────── */
.section-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:24px; }
.section-title { font-size:20px; font-weight:700; letter-spacing:-0.4px; }

/* ─── Category Tabs ───────────────────────────────────────────────────────── */
.tabs {
  display:flex; justify-content:center; gap:4px;
  background:var(--bg3); border:1px solid var(--border);
  border-radius:var(--radius); padding:4px; margin:0 auto 32px; width:fit-content;
}
.tab {
  display:inline-flex; align-items:center; gap:6px;
  padding:8px 16px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:500; color:var(--text2);
  background:none; border:none; cursor:pointer; transition:var(--transition);
}
.tab svg { width:14px; height:14px; opacity:.7; }
.tab.active { background:var(--bg4); color:var(--text); box-shadow:var(--shadow); }
.tab.active svg { opacity:1; }
.tab:hover:not(.active) { color:var(--text); background:var(--surface); }

/* ─── Product Grid ────────────────────────────────────────────────────────── */
.products-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(260px,1fr));
  gap:20px; margin-bottom:60px;
  transition:opacity 0.15s ease;
}
.products-grid.fading { opacity:0; }
.product-card.hidden { display:none; }
.product-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-xl); overflow:hidden;
  display:flex; flex-direction:column;
  transition:transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position:relative;
}
.product-card:hover {
  transform:translateY(-3px);
  border-color:var(--border2);
  box-shadow:0 16px 40px rgba(0,0,0,0.5);
}
.product-image { width:100%; height:200px; object-fit:cover; display:block; }
.product-placeholder {
  width:100%; height:200px;
  display:flex; align-items:center; justify-content:center;
  position:relative; overflow:hidden;
}
.product-img-wrap { position:relative; flex-shrink:0; }
.product-out-overlay {
  position:absolute; inset:0; background:rgba(0,0,0,.55);
  display:flex; align-items:center; justify-content:center;
}
.product-out-overlay span {
  background:rgba(0,0,0,.7); border:1.5px solid rgba(255,255,255,.2);
  border-radius:8px; padding:5px 12px; font-size:12px; font-weight:700;
  color:#fff; display:flex; align-items:center; gap:5px;
}
.product-placeholder svg { color:rgba(255,255,255,0.7); position:relative; z-index:1; }
.product-placeholder::before {
  content:'';
  position:absolute; inset:0;
  background:radial-gradient(circle at 30% 40%, rgba(255,255,255,0.06) 0%, transparent 60%);
}
.product-badges {
  position:absolute; bottom:12px; right:12px;
  display:flex; flex-direction:column; gap:6px;
  z-index:10;
}
.badge {
  padding:5px 10px; border-radius:6px;
  font-size:11px; font-weight:700; letter-spacing:0.05em;
  background:rgba(255,255,255,0.1); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.2);
  white-space:nowrap; display:flex; align-items:center; gap:5px;
}
.badge svg { width:13px; height:13px; }
.badge-new { color:#86efac; }
.badge-bestseller { color:#fecaca; }
.product-stock-badge {
  position:absolute; top:10px; right:10px;
  padding:5px 11px; border-radius:8px;
  font-size:13px; font-weight:700;
  text-transform:none;
  display:flex; align-items:center; gap:4px;
  background:rgba(255,255,255,0.15); backdrop-filter:blur(8px); -webkit-backdrop-filter:blur(8px);
  border:1px solid rgba(255,255,255,0.3);
  color:#fff;
  z-index:10;
}
.product-stock-badge svg { width:10px; height:10px; flex-shrink:0; }
.product-body { padding:14px 16px; flex:1; display:flex; flex-direction:column; gap:6px; position:relative; }
.product-category { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.09em; white-space:nowrap; }
.product-name { font-size:16px; font-weight:700; color:var(--text); line-height:1.35; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; max-width:100%; }
.product-rating {
  display:flex; align-items:center; gap:6px;
  font-size:12px; color:var(--text3);
}
.product-rating .stars { color:#fbbf24; font-size:13px; }
.product-rating .rating-value { color:var(--text); font-weight:700; }
.product-rating .sales { opacity:0.7; }
.product-desc { font-size:11px; color:var(--text3); flex:1; line-height:1.4; display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.product-delivery {
  display:flex; align-items:center; gap:6px;
  font-size:11px; color:var(--text3);
  padding:8px 10px; background:rgba(255,255,255,0.03); border-radius:6px;
}
.product-delivery svg { width:14px; height:14px; }
.product-footer {
  display:flex; flex-direction:column; gap:10px;
  padding:12px 14px; border-top:1px solid var(--border);
}
.product-footer-price-row {
  display:flex; align-items:center; justify-content:space-between; gap:8px;
}
.product-price { font-size:20px; font-weight:800; }
.product-price .currency { font-size:12px; font-weight:500; color:var(--text2); vertical-align:super; margin-right:1px; }
.product-pix-badge {
  font-size:10px; color:#4ade80; white-space:nowrap;
  background:rgba(74,222,128,.08); border:1px solid rgba(74,222,128,.2);
  border-radius:6px; padding:3px 7px;
}
.btn-block { width:100%; }
.product-trust {
  display:flex; align-items:center; justify-content:center;
  gap:10px; padding-top:8px; border-top:1px solid var(--border);
}
.product-trust-item {
  display:flex; align-items:center; gap:4px;
  font-size:10px; color:var(--text3); white-space:nowrap;
}

/* ─── Buttons ─────────────────────────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; justify-content:center; gap:7px;
  padding:9px 18px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:600; border:none;
  transition:var(--transition); cursor:pointer; white-space:nowrap;
}
.btn-primary {
  background:linear-gradient(135deg,#e2e0e0,#b5b3b3);
  color:#000; box-shadow:0 2px 12px rgba(217,215,215,0.15);
}
.btn-primary:hover { transform:translateY(-1px); filter:brightness(1.06); box-shadow:0 4px 20px rgba(217,215,215,0.25); }
.btn-primary:active { transform:translateY(0); }

.btn-green { background:linear-gradient(135deg,#10b981,#059669); color:#fff; box-shadow:0 2px 12px var(--green-glow); }
.btn-green:hover { filter:brightness(1.08); transform:translateY(-1px); }

.btn-outline {
  background:transparent; border:1px solid var(--border2); color:var(--text);
}
.btn-outline:hover { background:var(--surface2); border-color:rgba(255,255,255,0.22); }

.btn-danger { background:linear-gradient(135deg,#ef4444,#dc2626); color:#fff; }
.btn-danger:hover { filter:brightness(1.08); }

.btn-discord {
  background:linear-gradient(135deg,#5865f2,#4752c4); color:#fff;
  box-shadow:0 2px 12px rgba(88,101,242,0.35);
}
.btn-discord:hover { filter:brightness(1.08); transform:translateY(-1px); }

.btn-sm  { padding:6px 13px; font-size:12px; }
.btn-lg  { padding:13px 26px; font-size:15px; border-radius:var(--radius); }
.btn-block { width:100%; }
.btn:disabled { opacity:0.45; cursor:not-allowed; transform:none !important; filter:none !important; }

/* ─── Cards ───────────────────────────────────────────────────────────────── */
.card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px;
}
.card-glass {
  background:rgba(10,10,10,0.7);
  backdrop-filter:blur(24px); -webkit-backdrop-filter:blur(24px);
  border:1px solid var(--border); border-radius:var(--radius-lg); padding:24px;
}

/* ─── Forms ───────────────────────────────────────────────────────────────── */
.form-group { display:flex; flex-direction:column; gap:7px; }
.form-label { font-size:12px; font-weight:600; color:var(--text2); letter-spacing:0.02em; }
.form-input {
  background:var(--bg3); border:1px solid var(--border2);
  border-radius:var(--radius-sm); padding:10px 13px;
  font-size:13px; color:var(--text); transition:var(--transition);
  outline:none; width:100%;
}
@supports (padding: max(0px)) {
  @media (max-width: 768px) {
    .form-input { font-size: 16px; }
  }
}
.form-input:focus { border-color:rgba(255,255,255,0.3); box-shadow:0 0 0 3px rgba(255,255,255,0.04); }
.form-input::placeholder { color:var(--text3); }
.form-select {
  appearance:none;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat:no-repeat; background-position:right 10px center; background-size:15px; padding-right:36px;
}
.form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.form-hint { font-size:11px; color:var(--text3); }

/* ─── Coupon ──────────────────────────────────────────────────────────────── */
.coupon-row { display:flex; gap:8px; }
.coupon-row .form-input { flex:1; }
.coupon-feedback {
  font-size:12px; padding:8px 12px;
  border-radius:var(--radius-sm); margin-top:8px; display:none;
}
.coupon-feedback.success { background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.25); color:var(--green); display:block; }
.coupon-feedback.error   { background:rgba(239,68,68,0.08); border:1px solid rgba(239,68,68,0.25); color:var(--red); display:block; }

/* ─── Order Summary ───────────────────────────────────────────────────────── */
.order-summary { background:var(--bg3); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; }
.order-summary-product { display:flex; gap:14px; padding:16px; align-items:center; }
.order-summary-img { width:60px; height:60px; border-radius:10px; object-fit:cover; background:var(--bg2); flex-shrink:0; }
.order-summary-info { flex:1; }
.order-summary-name { font-weight:700; font-size:14px; margin-bottom:2px; }
.order-summary-cat { font-size:11px; color:var(--text3); }
.order-lines { border-top:1px solid var(--border); }
.order-line {
  display:flex; justify-content:space-between; align-items:center;
  padding:11px 16px; font-size:13px; color:var(--text2);
  border-bottom:1px solid var(--border);
}
.order-line:last-child { border-bottom:none; }
.order-line.total { font-weight:700; font-size:15px; color:var(--text); background:rgba(255,255,255,0.02); }
.order-line.discount { color:var(--green); }

/* ─── PIX ─────────────────────────────────────────────────────────────────── */
.pix-container { text-align:center; padding:36px 24px; }
.pix-status-badge {
  display:inline-flex; align-items:center; gap:7px;
  padding:5px 14px; border-radius:999px;
  font-size:12px; font-weight:600; margin-bottom:24px;
}
.pix-status-badge.pending { background:rgba(245,158,11,0.08); border:1px solid rgba(245,158,11,0.25); color:#f59e0b; }
.pix-status-badge.paid    { background:rgba(16,185,129,0.08); border:1px solid rgba(16,185,129,0.25); color:var(--green); }
.pix-status-badge .dot { width:7px; height:7px; border-radius:50%; background:currentColor; }
.pix-status-badge.pending .dot { animation:pulse-dot 1.4s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:0.4;transform:scale(0.6)} }

.pix-qr {
  width:196px; height:196px; border-radius:var(--radius);
  border:2px solid rgba(16,185,129,0.25);
  margin:0 auto 20px; padding:8px; background:#fff;
}
.pix-qr img { width:100%; height:100%; object-fit:contain; border-radius:6px; }
.pix-copy-group { display:flex; gap:8px; max-width:460px; margin:0 auto 14px; }
.pix-copy-input {
  flex:1; background:var(--bg3); border:1px solid var(--border2);
  border-radius:var(--radius-sm); padding:9px 11px;
  font-size:11px; color:var(--text2); overflow:hidden; text-overflow:ellipsis; cursor:pointer;
}
.pix-expires { font-size:12px; color:var(--text3); }
.pix-expires span { color:#f59e0b; font-weight:600; }
.pix-paid-icon {
  width:72px; height:72px;
  background:rgba(16,185,129,0.08); border:2px solid rgba(16,185,129,0.3);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px;
}
.pix-paid-icon svg { width:32px; height:32px; color:var(--green); }

/* ─── Points Store ────────────────────────────────────────────────────────── */
.points-hero {
  background:linear-gradient(135deg,rgba(16,185,129,0.06) 0%,rgba(5,150,105,0.02) 100%);
  border:1px solid rgba(16,185,129,0.15);
  border-radius:var(--radius-xl); padding:36px; text-align:center; margin-bottom:36px;
}
.points-balance {
  font-size:54px; font-weight:900;
  background:linear-gradient(135deg,#10b981,#34d399);
  -webkit-background-clip:text; -webkit-text-fill-color:transparent; background-clip:text;
  letter-spacing:-2px; line-height:1; margin-bottom:6px;
}
.points-label { font-size:14px; color:var(--text2); font-weight:500; }
.exchange-grid { display:grid; grid-template-columns:1fr 1fr; gap:16px; margin-bottom:36px; }
.exchange-card {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:24px; transition:var(--transition);
}
.exchange-card:hover { border-color:var(--border2); }
.exchange-icon {
  width:44px; height:44px; border-radius:12px;
  display:flex; align-items:center; justify-content:center;
  margin-bottom:14px;
}
.exchange-icon svg { width:22px; height:22px; }
.exchange-icon-pix { background:rgba(16,185,129,0.1); color:var(--green); }
.exchange-icon-ug  { background:rgba(99,102,241,0.1); color:#818cf8; }
.exchange-title { font-size:16px; font-weight:700; margin-bottom:4px; }
.exchange-rate { font-size:12px; color:var(--text3); margin-bottom:18px; }
.exchange-rate strong { color:var(--green); }

/* ─── History Table ───────────────────────────────────────────────────────── */
.history-table { width:100%; border-collapse:collapse; }
.history-table th {
  font-size:10px; text-transform:uppercase; letter-spacing:0.08em;
  color:var(--text3); font-weight:600; padding:10px 16px;
  text-align:left; border-bottom:1px solid var(--border);
}
.history-table td {
  padding:12px 16px; font-size:13px;
  border-bottom:1px solid var(--border); color:var(--text2);
}
.history-table tr:last-child td { border-bottom:none; }
.history-table .amount-pos { color:var(--green); font-weight:600; }
.history-table .amount-neg { color:var(--red); font-weight:600; }

/* ─── Type badge (history) ────────────────────────────────────────────────── */
.type-badge {
  display:inline-flex; align-items:center; gap:5px;
  padding:3px 9px; border-radius:999px;
  font-size:11px; font-weight:600;
}
.type-badge svg { width:12px; height:12px; }
.type-invite     { background:rgba(99,102,241,0.1); color:#818cf8; }
.type-withdrawal { background:rgba(16,185,129,0.1); color:var(--green); }
.type-ug         { background:rgba(168,85,247,0.1);  color:#a855f7; }
.type-admin      { background:rgba(245,158,11,0.1);  color:#f59e0b; }

/* ─── Badges ──────────────────────────────────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center;
  padding:2px 9px; border-radius:999px;
  font-size:10px; font-weight:700;
  text-transform:uppercase; letter-spacing:0.05em;
}
.badge-pending  { background:rgba(245,158,11,0.1);  color:#f59e0b; border:1px solid rgba(245,158,11,0.25); }
.badge-paid     { background:rgba(16,185,129,0.1);  color:var(--green); border:1px solid rgba(16,185,129,0.25); }
.badge-rejected { background:rgba(239,68,68,0.1);   color:var(--red); border:1px solid rgba(239,68,68,0.25); }
.badge-approved { background:rgba(99,102,241,0.1);  color:#818cf8; border:1px solid rgba(99,102,241,0.25); }

/* ─── Alerts ──────────────────────────────────────────────────────────────── */
.alert {
  padding:12px 16px; border-radius:var(--radius-sm);
  font-size:13px; display:flex; align-items:flex-start; gap:10px; margin-bottom:18px;
}
.alert-success { background:rgba(16,185,129,0.06); border:1px solid rgba(16,185,129,0.2); color:#34d399; }
.alert-error   { background:rgba(239,68,68,0.06);  border:1px solid rgba(239,68,68,0.2);  color:#f87171; }
.alert-warning { background:rgba(245,158,11,0.06); border:1px solid rgba(245,158,11,0.2); color:#fbbf24; }
.alert-info    { background:rgba(99,102,241,0.06); border:1px solid rgba(99,102,241,0.2); color:#818cf8; }

/* ─── Admin ───────────────────────────────────────────────────────────────── */
.admin-layout { display:flex; gap:24px; padding-top:28px; }
.admin-sidebar { width:210px; flex-shrink:0; }
.admin-content { flex:1; min-width:0; }
.admin-nav {
  background:var(--bg2); border:1px solid var(--border);
  border-radius:var(--radius-lg); padding:10px; position:sticky; top:80px;
}
.admin-nav-item {
  display:flex; align-items:center; gap:10px;
  padding:9px 12px; border-radius:var(--radius-sm);
  font-size:13px; font-weight:500; color:var(--text2); transition:var(--transition);
}
.admin-nav-item svg { width:15px; height:15px; flex-shrink:0; }
.admin-nav-item:hover,.admin-nav-item.active { background:var(--surface2); color:var(--text); }

/* ─── Stats cards ─────────────────────────────────────────────────────────── */
.stat-card { background:var(--bg2); border:1px solid var(--border); border-radius:var(--radius-lg); padding:20px; }
.stat-icon {
  width:36px; height:36px; border-radius:10px;
  display:flex; align-items:center; justify-content:center; margin-bottom:12px;
}
.stat-icon svg { width:18px; height:18px; }
.stat-icon-green  { background:rgba(16,185,129,0.1); color:var(--green); }
.stat-icon-indigo { background:rgba(99,102,241,0.1); color:#818cf8; }
.stat-icon-amber  { background:rgba(245,158,11,0.1); color:#f59e0b; }
.stat-icon-red    { background:rgba(239,68,68,0.1);  color:var(--red); }
.stat-value { font-size:24px; font-weight:800; color:var(--text); letter-spacing:-0.5px; }
.stat-label { font-size:11px; color:var(--text3); font-weight:500; margin-top:2px; }

/* ─── Data Table ──────────────────────────────────────────────────────────── */
.data-table { width:100%; border-collapse:collapse; }
.data-table th {
  padding:11px 16px; text-align:left;
  font-size:10px; font-weight:700; text-transform:uppercase;
  letter-spacing:0.07em; color:var(--text3); border-bottom:1px solid var(--border);
}
.data-table td {
  padding:13px 16px; font-size:13px; color:var(--text2); border-bottom:1px solid var(--border);
}
.data-table tr:hover td { background:rgba(255,255,255,0.015); }
.data-table tr:last-child td { border-bottom:none; }

@media(max-width:640px) {
  .data-table { font-size:11px; }
  .data-table th, .data-table td { padding:8px 6px; font-size:11px; }
  .data-table th { font-size:8px; }
  .data-table td:last-child { display:flex; flex-direction:column; gap:4px; padding:6px; }
  .data-table td:last-child form { width:100%; margin:0; }
  .data-table td:last-child .btn { width:100%; padding:6px 8px; font-size:11px; }

  .usuarios-grid { display:flex; flex-direction:column; gap:12px; }
  .usuario-card {
    background:var(--bg2); border:1px solid var(--border);
    border-radius:var(--radius-lg); padding:12px;
    display:flex; gap:12px; align-items:flex-start;
  }
  .usuario-card img { width:40px; height:40px; border-radius:50%; border:1px solid var(--border2); object-fit:cover; flex-shrink:0; }
  .usuario-card-info { flex:1; min-width:0; }
  .usuario-card-name { font-weight:700; font-size:13px; color:var(--text); margin-bottom:2px; }
  .usuario-card-role { font-size:10px; margin-bottom:4px; }
  .usuario-card-email { font-size:10px; color:var(--text3); word-break:break-all; }
  .usuario-card-actions { display:flex; gap:6px; margin-top:8px; }
  .usuario-card-actions .btn { flex:1; padding:5px 8px; font-size:10px; min-width:0; }

  .data-table-container { display:none; }
  .usuarios-grid-container { display:block; }
}

@media(min-width:641px) {
  .usuarios-grid-container { display:none; }
}

/* ─── Loading spinner ─────────────────────────────────────────────────────── */
.spinner {
  width:18px; height:18px;
  border:2px solid rgba(255,255,255,0.12); border-top-color:#fff;
  border-radius:50%; animation:spin 0.65s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }

/* ─── Empty state ─────────────────────────────────────────────────────────── */
.empty { text-align:center; padding:56px 20px; color:var(--text3); }
.empty-icon {
  width:56px; height:56px; border-radius:16px;
  background:var(--bg3); border:1px solid var(--border);
  display:flex; align-items:center; justify-content:center;
  margin:0 auto 16px;
}
.empty-icon svg { width:24px; height:24px; color:var(--text3); }
.empty h3 { font-size:16px; font-weight:600; color:var(--text2); margin-bottom:6px; }
.empty p { font-size:13px; }

/* ─── Footer ──────────────────────────────────────────────────────────────── */
.footer {
  border-top:1px solid var(--border); padding:28px 0; text-align:center;
  color:var(--text3); font-size:12px; margin-top:80px;
}
.footer a { color:var(--text2); transition:var(--transition); }
.footer a:hover { color:var(--text); }

/* ─── Utilities ───────────────────────────────────────────────────────────── */
.mt-4 { margin-top:16px; } .mt-6 { margin-top:24px; } .mt-8 { margin-top:32px; }
.mb-4 { margin-bottom:16px; } .mb-6 { margin-bottom:24px; }
.flex { display:flex; } .flex-col { flex-direction:column; }
.items-center { align-items:center; } .justify-between { justify-content:space-between; }
.text-center { text-align:center; } .text-sm { font-size:13px; } .text-xs { font-size:11px; }
.text-muted { color:var(--text3); } .text-green { color:var(--green); } .text-red { color:var(--red); }
.font-bold { font-weight:700; } .w-full { width:100%; }
.divider { border:none; border-top:1px solid var(--border); margin:24px 0; }
.gap-2 { gap:8px; } .gap-3 { gap:12px; } .gap-4 { gap:16px; }

/* ─── Product Modal ───────────────────────────────────────────────────────── */
.modal {
  position:fixed; inset:0; z-index:1000;
  display:flex; align-items:center; justify-content:center;
  padding:20px; opacity:0; pointer-events:none;
  transition:opacity 0.3s ease;
}
.modal.active { opacity:1; pointer-events:auto; }
.modal-backdrop {
  position:absolute; inset:0;
  background:rgba(0,0,0,0.6); backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}
.modal-content {
  position:relative; z-index:10;
  background:var(--bg); border:1px solid var(--border);
  border-radius:var(--radius-xl); max-width:700px; width:100%;
  max-height:85vh; overflow-y:auto;
  box-shadow:0 20px 60px rgba(0,0,0,0.8);
  animation:slideUp 0.3s cubic-bezier(0.4,0,0.2,1);
}
@keyframes slideUp {
  from { transform:translateY(20px); opacity:0; }
  to { transform:translateY(0); opacity:1; }
}
.modal-close {
  position:absolute; top:16px; right:16px;
  width:36px; height:36px;
  padding:0; display:flex; align-items:center; justify-content:center;
  background:rgba(255,255,255,0.08); border:1px solid rgba(255,255,255,0.1);
  border-radius:8px; cursor:pointer; color:var(--text);
  transition:all 0.2s ease; z-index:11;
}
.modal-close:hover {
  background:rgba(255,255,255,0.15);
  border-color:rgba(255,255,255,0.2);
}
.modal-close svg { width:18px; height:18px; }
.modal-body {
  display:grid; grid-template-columns:1fr 1fr; gap:28px;
  padding:28px;
}
.modal-image {
  width:100%; aspect-ratio:1;
  background:var(--bg2); border-radius:var(--radius);
  border:1px solid var(--border);
}
.modal-info { display:flex; flex-direction:column; gap:16px; }
.modal-category { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.1em; opacity:0.7; }
.modal-info h2 { font-size:26px; font-weight:800; color:var(--text); line-height:1.2; }
.modal-rating {
  display:flex; align-items:center; gap:8px;
  font-size:14px; color:var(--text3);
}
.modal-rating .stars {
  display:inline-flex; align-items:center;
  color:#fbbf24; font-size:16px;
  width:16px; height:16px;
}
.modal-description { font-size:14px; color:var(--text3); line-height:1.7; padding:16px; background:rgba(255,255,255,0.03); border-radius:8px; border-left:2px solid rgba(255,255,255,0.1); }
.modal-footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding-top:16px; border-top:1px solid var(--border); }
.modal-price { font-size:24px; font-weight:800; }
.modal-price .currency { font-size:14px; font-weight:500; color:var(--text2); vertical-align:super; margin-right:2px; }
.modal-footer .btn { flex:1; }

@media (max-width:680px) {
  .modal-body { grid-template-columns:1fr; gap:16px; padding:20px; }
  .modal-image { aspect-ratio:4/3; }
  .modal-info h2 { font-size:20px; }
  .modal-footer { flex-direction:column; align-items:stretch; }
  .modal-footer .btn { width:100%; }
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media(max-width:768px) {
  .navbar-inner { height:72px; gap:16px; }
  .navbar-logo { font-size:22px; }
  .navbar-logo-gradient { font-size:28px; letter-spacing:0.8px; padding:4px 2px; }
  .hero-title { font-size:clamp(40px,9vw,56px); letter-spacing:-1.5px; }
  .hero-sub { font-size:16px; }
  .navbar-links { display:none; }
  .navbar-right { gap:8px; }
  .btn-sm { padding:6px 12px; font-size:12px; }
  .products-grid { grid-template-columns:1fr 1fr; }
  .exchange-grid { grid-template-columns:1fr; }
  .form-row { grid-template-columns:1fr; }
  .admin-layout { flex-direction:column; }
  .admin-sidebar { width:100%; }
  .admin-nav { position:static; }
  .hero { padding:48px 0 36px; }
  .tabs { width:100%; overflow-x:auto; justify-content:flex-start; scrollbar-width:none; -ms-overflow-style:none; -webkit-overflow-scrolling:touch; }
  .tabs::-webkit-scrollbar { display:none; }
  .tab { flex-shrink:0; padding:7px 12px; font-size:12px; }
  .user-menu-trigger .uname-text { display:none; }
}
@media(max-width:480px) {
  .navbar-inner { height:76px; gap:12px; padding:0 12px; }
  .navbar-logo { font-size:20px; }
  .navbar-logo-gradient { font-size:26px; letter-spacing:0.8px; padding:6px 2px; font-weight:900; }
  .hero-title { font-size:44px; letter-spacing:-1px; }
  .hero-sub { font-size:15px; }
  .hero-eyebrow { font-size:12px; padding:6px 16px; }
  .hero-features { grid-template-columns:repeat(2,1fr); }
  .products-grid { grid-template-columns:1fr 1fr; gap:10px; }
  .product-image { height:140px; }
  .product-placeholder { height:140px; }
  .product-stock-badge { padding:2px 5px; border-radius:4px; font-size:9px; gap:3px; }
  .product-body { padding:10px 12px; }
  .product-footer { padding:10px 12px; }
  .product-name { font-size:13px; }
  .product-price { font-size:17px; }
  .container { padding:0 16px; }
}
