:root {
  --bg: #070709;
  --card: #111115;
  --line: #1E1E24;
  --green: #10B981;
  --green-soft: rgba(16, 185, 129, 0.12);
  --red: #EF4444;
  --amber: #F59E0B;
  --text: #FFFFFF;
  --muted: #94A3B8;
  --soft: #CBD5E1;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, -apple-system, sans-serif; }
button, input, select, textarea { font-family: inherit; }
[hidden] { display: none !important; }

.st-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; max-width: 1400px; margin: 0 auto; padding: 18px; }

/* Sidebar */
.st-sidebar { position: sticky; top: 18px; align-self: start; max-height: calc(100vh - 36px); overflow-y: auto; display: flex; flex-direction: column; gap: 16px; padding: 20px 16px; background: #12131A; border: 1px solid rgba(255,255,255,.05); border-radius: 1rem; box-shadow: 0 24px 60px rgba(0,0,0,.5); scrollbar-width: thin; scrollbar-color: rgba(16,185,129,.4) transparent; }
.st-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; padding-bottom: 14px; border-bottom: 1px solid #1c212b; }
.st-logo { width: 40px; height: 40px; border-radius: 11px; overflow: hidden; border: 1.5px solid rgba(16,185,129,.4); box-shadow: 0 0 18px rgba(16,185,129,.2); }
.st-logo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-brand-text { display: flex; flex-direction: column; }
.st-brand-text strong { font-family: 'Plus Jakarta Sans', sans-serif; color: #fff; font-size: 17px; font-weight: 800; }
.st-brand-text small { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.st-user { display: flex; align-items: center; gap: 10px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.st-avatar { width: 36px; height: 36px; border-radius: 10px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.st-user-meta { display: flex; flex-direction: column; min-width: 0; }
.st-user-meta strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-user-meta span { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-nav { display: flex; flex-direction: column; gap: 6px; }
.st-nav-label { margin: 4px 0 4px 4px; font-size: 10px; font-weight: 800; letter-spacing: .1em; color: #64748B; text-transform: uppercase; }
.st-nav-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 12px; background: transparent; border: 1px solid transparent; border-radius: 10px; color: var(--soft); cursor: pointer; text-align: left; transition: all .18s; position: relative; }
.st-nav-btn:hover { background: rgba(255,255,255,.03); }
.st-nav-btn.is-active { background: var(--green-soft); border-color: rgba(16,185,129,.25); color: #fff; }
.st-nav-btn strong { display: block; font-size: 13px; }
.st-nav-btn small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.st-nav-ico { width: 32px; height: 32px; border-radius: 9px; background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.st-badge { margin-left: auto; background: var(--green); color: var(--bg); font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.st-back { margin-top: auto; display: block; text-align: center; padding: 11px; border-radius: 10px; border: 1px solid var(--line); color: var(--soft); text-decoration: none; font-size: 13px; font-weight: 700; }
.st-back:hover { border-color: var(--green); color: var(--green); }

/* Main */
.st-main { min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.st-view { display: flex; flex-direction: column; gap: 20px; }
.st-panel { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 22px; }
.st-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.st-head-left { display: flex; gap: 14px; align-items: center; }
.st-head-ico { width: 44px; height: 44px; border-radius: 12px; background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.2); display: flex; align-items: center; justify-content: center; font-size: 20px; }
.st-head h1 { margin: 0; font-size: 22px; font-weight: 800; }
.st-kicker { margin: 0 0 4px; font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .08em; }
.st-muted { color: var(--muted); font-size: 13px; }
.st-small { font-size: 12px; }
.st-center { text-align: center; }
.st-big-ico { font-size: 40px; margin-bottom: 8px; }
.st-label { margin: 0 0 10px; font-size: 12px; font-weight: 700; color: var(--soft); }

.st-seg { display: flex; gap: 6px; background: var(--bg); border: 1px solid var(--line); padding: 4px; border-radius: 10px; }
.st-seg button { background: transparent; color: var(--muted); border: none; padding: 8px 14px; border-radius: 8px; font-size: 13px; font-weight: 700; cursor: pointer; }
.st-seg button.is-active { background: var(--green); color: var(--bg); font-weight: 800; }

.st-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.st-card { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; justify-content: space-between; transition: border-color .2s, transform .2s; }
.st-card:hover { border-color: rgba(16,185,129,.35); transform: translateY(-2px); }
.st-card.is-popular { border-color: rgba(16,185,129,.4); box-shadow: 0 4px 20px rgba(16,185,129,.08); }
.st-ribbon { position: absolute; top: -10px; right: 16px; background: var(--green); color: var(--bg); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; }
.st-tag { font-size: 11px; font-weight: 700; color: var(--green); letter-spacing: .05em; text-transform: uppercase; }
.st-chip { background: var(--green-soft); color: var(--green); font-size: 10px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.st-card h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 800; }
.st-card p { margin: 0 0 14px; font-size: 12px; color: var(--muted); line-height: 1.5; }
.st-price { font-size: 24px; font-weight: 900; margin-bottom: 14px; }
.st-feats { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-direction: column; gap: 7px; }
.st-feats li { display: flex; gap: 7px; font-size: 11px; color: var(--soft); line-height: 1.35; }
.st-feats li::before { content: "✓"; color: var(--green); font-weight: 800; }

.st-btn { display: inline-flex; justify-content: center; align-items: center; gap: 8px; background: var(--green); color: var(--bg); border: none; border-radius: 8px; padding: 12px 18px; font-size: 14px; font-weight: 800; cursor: pointer; text-decoration: none; transition: filter .15s; }
.st-btn:hover { filter: brightness(1.1); }
.st-btn:disabled { opacity: .6; cursor: wait; }
.st-btn-full { width: 100%; }
.st-btn-ghost { background: transparent; color: var(--soft); border: 1px solid var(--line); border-radius: 8px; padding: 9px 14px; font-weight: 700; cursor: pointer; }
.st-btn-ghost:hover { border-color: var(--green); color: var(--green); }

.st-input { width: 100%; background: var(--bg); border: 1px solid var(--line); color: #fff; padding: 11px 12px; border-radius: 8px; font-size: 14px; outline: none; margin-top: 6px; }
.st-input:focus { border-color: var(--green); }
.st-select-country { max-width: 320px; margin-top: 0; }
.st-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.st-pill { background: var(--bg); color: var(--soft); border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; cursor: pointer; }
.st-pill.is-active { background: var(--green); color: var(--bg); border-color: var(--green); }
.st-spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--green); border-top-color: transparent; border-radius: 50%; animation: st-spin .8s linear infinite; vertical-align: middle; margin-right: 6px; }
@keyframes st-spin { to { transform: rotate(360deg); } }

/* Pedidos */
.st-orders { display: flex; flex-direction: column; gap: 14px; }
.st-order { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; }
.st-order-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.st-order h3 { margin: 4px 0 2px; font-size: 16px; }
.st-order-meta { font-size: 12px; color: var(--muted); }
.st-order-right { text-align: right; }
.st-order-right strong { display: block; font-size: 18px; margin-bottom: 6px; }
.st-status-pill { display: inline-block; font-size: 11px; font-weight: 800; padding: 3px 10px; border-radius: 999px; }
.st-s-ok { background: var(--green-soft); color: var(--green); }
.st-s-wait { background: rgba(245,158,11,.12); color: var(--amber); }
.st-s-bad { background: rgba(239,68,68,.12); color: var(--red); }
.st-delivery { margin-top: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 14px; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.st-delivery img { width: 150px; height: 150px; background: #fff; padding: 6px; border-radius: 10px; }
.st-kv { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 8px; font-size: 12px; }
.st-kv div { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.st-kv span { color: var(--muted); }
.st-kv code { color: #fff; word-break: break-all; background: var(--card); padding: 4px 8px; border-radius: 6px; font-size: 11px; }
.st-copy { background: var(--green-soft); color: var(--green); border: 1px solid rgba(16,185,129,.3); padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; cursor: pointer; flex-shrink: 0; }
.st-order-actions { margin-top: 12px; display: flex; gap: 10px; }

/* Modal */
.st-modal { position: fixed; inset: 0; background: rgba(0,0,0,.72); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; }
.st-modal-card { position: relative; width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 26px; }
.st-modal-card h2 { margin: 0 0 12px; font-size: 20px; }
.st-modal-card label { display: block; font-size: 12px; font-weight: 700; color: var(--soft); margin-bottom: 12px; }
.st-modal-x { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 8px; border: none; background: var(--line); color: var(--muted); cursor: pointer; }
.st-summary { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; margin-bottom: 16px; }
.st-summary strong { color: var(--green); font-size: 20px; }
.st-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.st-pay { display: flex !important; flex-direction: column; gap: 2px; cursor: pointer; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin: 0 !important; }
.st-pay input { display: none; }
.st-pay span { color: #fff; font-size: 14px; font-weight: 800; }
.st-pay small { color: var(--muted); font-weight: 500; }
.st-pay:has(input:checked) { border-color: var(--green); background: var(--green-soft); }
.st-pay.is-disabled { opacity: .45; pointer-events: none; }
.st-error { color: var(--red); font-size: 13px; font-weight: 600; margin: 0 0 12px; }
.st-pay-box { text-align: center; background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 18px; margin-bottom: 14px; }
.st-pay-box img { width: 200px; height: 200px; background: #fff; padding: 8px; border-radius: 10px; }
.st-pay-amount { font-size: 22px; font-weight: 900; color: var(--green); margin-top: 10px; }
.st-code { font-family: monospace; font-size: 11px; resize: none; color: var(--muted); margin-bottom: 10px; }
.st-status { text-align: center; color: var(--green); font-weight: 700; font-size: 13px; }

.st-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--card); border: 1px solid var(--green); color: #fff; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 600; z-index: 60; box-shadow: 0 10px 30px rgba(0,0,0,.5); }

@media (max-width: 900px) {
  .st-shell { grid-template-columns: 1fr; }
  .st-sidebar { position: static; max-height: none; }
  .st-row, .st-pay-options { grid-template-columns: 1fr; }
}


/* Gift Cards Store Styles */
.st-gift-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}
.st-gift-card:hover {
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(16, 185, 129, 0.1);
}
.st-gift-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: #0b0f19;
  margin-bottom: 14px;
}
.st-gift-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.st-gift-card:hover .st-gift-img {
  transform: scale(1.03);
}
.st-gift-badge-pill {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #0284c7;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.st-gift-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 6px;
}
.st-gift-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.4;
  margin: 0 0 14px;
  min-height: 38px;
}
.st-gift-pricing {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 14px;
}
.st-gift-val-label {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}
.st-gift-val-credit {
  font-size: 0.95rem;
  color: #cbd5e1;
  font-weight: 700;
}
.st-gift-pay-box {
  text-align: right;
}
.st-gift-old-price {
  font-size: 0.8rem;
  color: #64748b;
  text-decoration: line-through;
  margin-right: 4px;
}
.st-gift-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: #10b981;
}

/* Tiers, Provedores e Gates de Proxy */
.st-seg-sm button { padding: 5px 12px; font-size: 11px; }

.st-tier-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.st-tier-diamond {
  background: linear-gradient(135deg, rgba(56,189,248,0.22), rgba(129,140,248,0.26));
  color: #38bdf8;
  border: 1px solid rgba(56,189,248,0.5);
  box-shadow: 0 0 10px rgba(56,189,248,0.18);
}
.st-tier-gold {
  background: rgba(245,158,11,0.16);
  color: #fbbf24;
  border: 1px solid rgba(245,158,11,0.45);
}
.st-tier-silver {
  background: rgba(148,163,184,0.16);
  color: #cbd5e1;
  border: 1px solid rgba(148,163,184,0.38);
}
.st-provider-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.07);
  color: #f1f5f9;
  border: 1px solid rgba(255,255,255,0.14);
  font-size: 10.5px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.02em;
}
.st-gateway-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 11px;
  color: #94a3b8;
  margin-bottom: 10px;
}
.st-gateway-badge code {
  color: #38bdf8;
  font-family: monospace;
  font-size: 11px;
  word-break: break-all;
}

.st-specialty-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.28);
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 6px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
