:root {
  --bg0: #080c0b;
  --bg1: #0f1614;
  --card: rgba(18, 28, 26, 0.72);
  --card-border: rgba(255, 255, 255, 0.08);
  --text: #e8f0ed;
  --muted: rgba(232, 240, 237, 0.62);
  --accent: #2dd4bf;
  --accent-dim: rgba(45, 212, 191, 0.15);
  --accent2: #fbbf24;
  --danger: #f87171;
  --radius: 18px;
  --font: 'DM Sans', system-ui, sans-serif;
  --font-display: 'Outfit', var(--font);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --safe-b: env(safe-area-inset-bottom, 0);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

/* Página /vip/ sozinha — não afeta o portal */
body.vip-page-standalone {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
  background: radial-gradient(1200px 800px at 80% -10%, rgba(45, 212, 191, 0.12), transparent),
    radial-gradient(900px 600px at 10% 100%, rgba(251, 191, 36, 0.06), transparent),
    linear-gradient(165deg, var(--bg0), var(--bg1));
  padding-bottom: calc(1.5rem + var(--safe-b));
}

/* Conteúdo da loja embutido no portal (mesmo DOM, sem iframe) */
.vip-shop-root {
  position: relative;
  isolation: isolate;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  color: var(--text);
}

.bg-noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.top {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(14px);
  background: rgba(8, 12, 11, 0.75);
  border-bottom: 1px solid var(--card-border);
}

.top__inner {
  max-width: 560px;
  margin: 0 auto;
  padding: 0.85rem 1.1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.brand__mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), #0d9488);
  box-shadow: 0 6px 20px rgba(45, 212, 191, 0.35);
  flex-shrink: 0;
}

.brand__name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.brand__tag {
  margin: 0.1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.main {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 1rem 1.1rem 2rem;
}

.tabs {
  display: flex;
  gap: 0.35rem;
  overflow-x: auto;
  padding-bottom: 0.6rem;
  margin-bottom: 1rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs__btn {
  flex: 0 0 auto;
  border: 1px solid var(--card-border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font-family: var(--font);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.tabs__btn.is-active {
  color: var(--bg0);
  background: var(--accent);
  border-color: transparent;
}

.panel {
  display: none;
  animation: fadeIn 0.28s ease;
}

.panel.is-visible {
  display: block;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.2rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.card--hero {
  background: linear-gradient(145deg, rgba(45, 212, 191, 0.12), rgba(18, 28, 26, 0.85));
}

.card--click {
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}

.card--click:active {
  transform: scale(0.98);
}

.card--click:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.card h2,
.card h3 {
  font-family: var(--font-display);
  margin: 0 0 0.5rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.card h2 {
  font-size: 1.25rem;
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.hero__title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0 0 0.5rem;
  letter-spacing: -0.03em;
}

.hero__text {
  margin: 0 0 1rem;
  color: var(--muted);
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.chip {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.25);
}

.grid-2 {
  display: grid;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
}

.card__cta {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
}

.muted {
  color: var(--muted);
}

.muted.small {
  font-size: 0.85rem;
}

.blurb {
  font-size: 0.9rem;
  color: var(--muted);
  max-height: 8.5rem;
  overflow-y: auto;
}

.price-line {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent2);
  margin: 0.5rem 0 1rem;
}

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.35rem;
}

.input,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.75rem;
}

.input:focus,
.textarea:focus {
  outline: 2px solid rgba(45, 212, 191, 0.45);
  outline-offset: 1px;
}

.textarea {
  font-size: 0.8rem;
  line-height: 1.35;
  resize: vertical;
  min-height: 88px;
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.row .input {
  flex: 1;
  margin-bottom: 0.75rem;
}

.field-row {
  margin-bottom: 1rem;
}

.switch {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
  user-select: none;
}

.switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.switch__ui {
  width: 48px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.switch__ui::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--text);
  top: 3px;
  left: 4px;
  transition: transform 0.2s;
}

.switch input:checked + .switch__ui {
  background: var(--accent);
}

.switch input:checked + .switch__ui::after {
  transform: translateX(18px);
  background: var(--bg0);
}

.switch__label {
  font-size: 0.92rem;
  color: var(--text);
}

.tiles {
  border: none;
  padding: 0;
  margin: 0 0 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.tile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  border: 1px solid var(--card-border);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  font-family: var(--font);
  color: var(--text);
  text-align: left;
  transition: border-color 0.15s, background 0.15s;
}

.tile:hover {
  border-color: rgba(45, 212, 191, 0.35);
}

.tile.is-selected {
  border-color: var(--accent);
  background: var(--accent-dim);
}

.tile__title {
  font-weight: 600;
}

.tile__price {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent2);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 14px;
  padding: 0.85rem 1.1rem;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s, opacity 0.12s, filter 0.12s;
}

.btn:active:not(:disabled) {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--block {
  width: 100%;
}

.btn--primary {
  background: linear-gradient(135deg, var(--accent), #0d9488);
  color: var(--bg0);
  box-shadow: 0 10px 28px rgba(45, 212, 191, 0.28);
}

.btn--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border: 1px solid var(--card-border);
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(45, 212, 191, 0.35);
}

.btn--sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.82rem;
}

.qr-wrap {
  margin: 1rem 0;
  text-align: center;
}

.qr-wrap img {
  max-width: 220px;
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 1px solid var(--card-border);
}

.sep {
  border: none;
  border-top: 1px solid var(--card-border);
  margin: 1.25rem 0;
}

.file {
  width: 100%;
  margin-bottom: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.msg {
  font-size: 0.9rem;
  margin: 0.5rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: var(--text);
}

.msg.is-error {
  background: rgba(248, 113, 113, 0.12);
  border-color: rgba(248, 113, 113, 0.35);
}

.access-box {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.28);
  border: 1px solid var(--card-border);
  font-size: 0.92rem;
}

.access-box code {
  font-size: 0.85rem;
  word-break: break-all;
  color: var(--accent);
}

.toast {
  position: fixed;
  top: calc(0.9rem + env(safe-area-inset-top, 0));
  left: 50%;
  transform: translateX(-50%);
  max-width: min(420px, calc(100% - 2rem));
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: rgba(18, 28, 26, 0.95);
  border: 1px solid var(--card-border);
  color: var(--text);
  font-size: 0.88rem;
  box-shadow: var(--shadow);
  z-index: 100;
}

.card--details > summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.card--details > summary::-webkit-details-marker {
  display: none;
}

.details__summary::after {
  content: '▾';
  float: right;
  color: var(--muted);
}

.card--details[open] .details__summary::after {
  content: '▴';
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Dentro do portal (iframe ?embed=1 ou painel embutido): sem topo duplicado / sem abas */
body.vip-embed .tabs,
.vip-shop-root.vip-embed .tabs {
  display: none !important;
}

body.vip-embed .vip-back,
.vip-shop-root.vip-embed .vip-back {
  display: none !important;
}

body.vip-embed .top,
.vip-shop-root.vip-embed .top {
  display: none !important;
}

.vip-shop-root.vip-embed .bg-noise {
  display: none;
}

  margin: 0;
  padding: 10px 16px 0;
  font-size: 13px;
}

.vip-back__link {
  color: var(--accent2);
  font-weight: 600;
  text-decoration: none;
}

.vip-back__link:hover {
  text-decoration: underline;
}
