/* ═══════════════════════════════════════════════════
   Orion Indicator 3.0 — Global Styles
   Dark theme matching screenshot UI
═══════════════════════════════════════════════════ */

/* ── Reset & Base ──────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:           #0a0a0a;
  --bg2:          #111111;
  --bg3:          #1a1a1a;
  --bg4:          #222222;
  --border:       #2a2a2a;
  --red:          #e31414;
  --red-dark:     #b30f0f;
  --red-glow:     rgba(227,20,20,0.35);
  --green:        #22c55e;
  --green-glow:   rgba(34,197,94,0.25);
  --text:         #f0f0f0;
  --text-muted:   #888888;
  --text-dim:     #555555;
  --white:        #ffffff;
  --font:         'Segoe UI', system-ui, -apple-system, sans-serif;
  --radius:       12px;
  --radius-sm:    8px;
  --shadow:       0 4px 24px rgba(0,0,0,0.6);
  --shadow-red:   0 4px 20px rgba(227,20,20,0.3);
}

html { height: 100%; }

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

#app { min-height: 100vh; }

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); border: none; outline: none; }
input, select { font-family: var(--font); outline: none; }

.hidden { display: none !important; }


/* ════════════════════════════════════════════════
   LOGIN PAGE
════════════════════════════════════════════════ */
.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #1a0000 0%, #0a0a0a 60%);
  padding: 20px;
  position: relative;
}

.login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px 32px 36px;
  width: 100%;
  max-width: 380px;
  box-shadow: var(--shadow);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.support-badge {
  position: absolute;
  top: -14px;
  left: 20px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
}
.support-badge:hover { color: var(--text); border-color: var(--red); }

.login-logo-wrap {
  width: 160px;
  margin-bottom: 24px;
}
.login-logo {
  width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--red-glow));
}

.login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.login-subtitle {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
  text-align: center;
  line-height: 1.5;
}

.btn-google {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ac0808;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 50px;
  padding: 13px 28px;
  width: 100%;
  justify-content: center;
  transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.btn-google:hover { background: #c00a0a; transform: translateY(-1px); box-shadow: 0 4px 14px rgba(0,0,0,0.4); }
.btn-google:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.google-icon { width: 20px; height: 20px; flex-shrink: 0; }

.login-error {
  margin-top: 14px;
  font-size: 13px;
  color: #ff6b6b;
  text-align: center;
  background: rgba(255,107,107,0.1);
  border: 1px solid rgba(255,107,107,0.2);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  width: 100%;
}


/* ════════════════════════════════════════════════
   MODALS
════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.88);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.modal-box {
  background: var(--bg2);
  border: 1px solid rgba(227,20,20,0.2);
  border-radius: 24px;
  padding: 36px 28px 32px;
  max-width: 380px;
  width: 100%;
  text-align: center;
  box-shadow: 0 8px 48px rgba(0,0,0,0.75), 0 0 0 1px rgba(227,20,20,0.1);
  position: relative;
  overflow: hidden;
}
/* Subtle top glow line */
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 10%; right: 10%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(227,20,20,0.6), transparent);
}

.modal-logo {
  width: 130px;
  height: auto;
  display: block;
  margin: 0 auto 14px;
  opacity: 0.92;
}

.modal-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(227,20,20,0.1);
  border: 1px solid rgba(227,20,20,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--red);
  box-shadow: 0 0 14px rgba(227,20,20,0.18);
}

/* keep legacy emoji icon for expired/locked modals */
.modal-icon {
  font-size: 42px;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(227,20,20,0.5));
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.modal-body {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 18px;
}
.modal-body strong { color: var(--white); }
.modal-highlight {
  color: #22c55e;
  font-weight: 800;
  font-size: 15px;
}

/* Premium feature list */
.modal-upgrade-box {
  background: rgba(227,20,20,0.06);
  border: 1px solid rgba(227,20,20,0.15);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 18px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-upgrade-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}
.modal-upgrade-row svg { color: #22c55e; flex-shrink: 0; }

.modal-contact-lbl {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  font-weight: 600;
  margin-bottom: 10px;
}

.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 20px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  margin-bottom: 8px;
  border: none;
  cursor: pointer;
  text-decoration: none;
}
.btn-whatsapp:hover { background: #1ebe5d; transform: translateY(-1px); }

.btn-email {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #EA4335;
  border: none;
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  padding: 9px 20px;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  text-decoration: none;
  cursor: pointer;
}
.btn-email:hover {
  background: #c5221f;
  transform: translateY(-1px);
}

.wa-icon { width: 18px; height: 18px; flex-shrink: 0; }


/* ════════════════════════════════════════════════
   INDICATOR PAGE
════════════════════════════════════════════════ */

/* ── Layout wrapper ── */
.ind-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg);
}

/* ── Sidebar hidden always (removed) ── */
.ind-sidebar { display: none; }

/* ── Main content area ── */
.ind-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ── Centered panel ── */
.ind-panel {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
}

/* ── Header (mobile + desktop) ── */
.ind-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px 14px;
  min-height: 110px;
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-left {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 70px;
}
.status-label { font-size: 10px; color: var(--white); font-weight: 600; letter-spacing: 0.3px; }
.status-val {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
}
.status-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-green { background: var(--red); box-shadow: 0 0 6px var(--red); }
.dot-red   { background: var(--red); box-shadow: 0 0 6px var(--red); }

.header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  pointer-events: none;
  top: 45px;
}
.header-logo {
  height: 64px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px var(--red-glow));
}
.header-right { margin-left: auto; }

.btn-power {
  background: transparent;
  border: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  transition: color 0.2s;
  padding: 0;
}
.btn-power svg { width: 22px; height: 22px; }
.btn-power:hover { color: var(--red); }

/* ── Welcome ── */
.ind-welcome {
  text-align: center;
  padding: 5px 0 16px;
}
.welcome-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.welcome-sub {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ── Trial Badge ── */
.trial-badge {
  text-align: center;
  background: transparent;
  border: none;
  border-radius: 0;
  margin-top: 1px;
  margin-bottom: 10px;
  padding: 0;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}
.trial-badge span { font-weight: 600; color: var(--text-muted); }

/* ── Controls Row ── */
.ind-controls {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}

.ctrl-btn {
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  padding: 8px 12px;
  white-space: nowrap;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.ctrl-btn:hover { border-color: var(--red); }

/* Asset pill button */
.ctrl-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  padding: 7px 9px;
  cursor: pointer;
  flex: 1;
  min-width: 0;
  overflow: visible;
  transition: border-color 0.2s;
}
.ctrl-dropdown:hover { border-color: var(--red); }
/* ── Flag double circle — exactly like image ── */
.flag-double {
  position: relative;
  width: 32px;
  height: 28px;
  flex-shrink: 0;
}
.flag-front,
.flag-back {
  position: absolute;
}
.flag-front { top: 0; left: 0; z-index: 2; }
.flag-back  { bottom: 0; right: 0; z-index: 1; }

.flag-circle {
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #0a0a0a;
}
.flag-front .flag-circle { width: 22px; height: 22px; }
.flag-back  .flag-circle { width: 18px; height: 18px; border: 1.5px solid #0a0a0a; }

.flag-single {
  flex-shrink: 0;
}
.flag-single .flag-circle { width: 22px; height: 22px; }

.flag-crypto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #1e1e1e;
  color: #f0c040;
  font-size: 9px;
  font-weight: 700;
  border: 1.5px solid #444;
  flex-shrink: 0;
}

/* Larger versions for indicator asset panel */
.asset-flag-wrap {
  display: inline-flex;
  flex-shrink: 0;
  position: relative;
  width: 30px;
  height: 26px;
}
.asset-flag-wrap .asset-flag-img:first-child {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #0a0a0a;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
}
.asset-flag-wrap .asset-flag-img:last-child {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #0a0a0a;
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 1;
}

/* Dropdown list flags — use flag-double structure */
.asset-item-flag {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

/* Crypto / Commodity icon circle */
.crypto-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
  color: #f0c040;
  font-size: 10px;
  font-weight: 700;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  border: 1.5px solid #444;
  flex-shrink: 0;
}
.asset-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}
.ctrl-arrow { font-size: 10px; color: var(--text-muted); flex-shrink: 0; }

/* TF select */
.ctrl-tf-wrap { position: relative; flex-shrink: 0; }
.ctrl-tf-select {
  background: transparent;
  border: 1px solid #3a3a3a;
  border-radius: 8px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 600;
  padding: 8px 16px 8px 7px;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s;
  width: 52px;
}
.ctrl-tf-select option {
  background: #1a1a1a;
  color: #ffffff;
}
.ctrl-tf-select:hover, .ctrl-tf-select:focus { border-color: var(--red); }
.ctrl-tf-arrows {
  position: absolute; right: 6px; top: 50%;
  transform: translateY(-50%);
  font-size: 10px; color: var(--text-muted); pointer-events: none;
}

/* IA button */
.ctrl-ia {
  background: var(--red);
  border: none;
  border-radius: 8px;
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  padding: 8px 11px;
  display: flex; align-items: center; gap: 4px;
  flex-shrink: 0;
  box-shadow: 0 0 10px var(--red-glow);
  letter-spacing: 0.5px;
  transition: filter 0.2s;
}
.ctrl-ia:hover { filter: brightness(1.15); }

/* ── Stats Grid ── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #2a2a2a;
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 12px;
}
.stat-card {
  background: #141414;
  padding: 13px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.stat-card:nth-child(1) { border-bottom: 1px solid #2a2a2a; border-right: 1px solid #2a2a2a; }
.stat-card:nth-child(2) { border-bottom: 1px solid #2a2a2a; }
.stat-card:nth-child(3) { border-right: 1px solid #2a2a2a; }
.stat-label { font-size: 12px; color: var(--text-muted); }
.stat-val   { font-size: 13px; font-weight: 600; color: var(--text); }

/* ── Gerar Sinal Button ── */
.btn-generate-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 6px;
  overflow: hidden;
}

/* Red loading bar — bright red fills over dark red button */
.btn-generate-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 0%;
  background: #ff2a2a;
  border-radius: 6px;
  pointer-events: none;
  z-index: 1;
}

.btn-generate {
  position: relative;
  z-index: 2;
  background: #e31414;
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.3px;
  border-radius: 6px;
  padding: 12px 24px;
  width: 100%;
  box-shadow: 0 2px 16px rgba(227,20,20,0.35);
  transition: filter 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-generate:hover:not(:disabled) { filter: brightness(1.1); }
.btn-generate:active:not(:disabled) { filter: brightness(0.95); }
.btn-generate:disabled, .btn-disabled {
  opacity: 0.5; cursor: not-allowed; filter: none; box-shadow: none;
}

/* Spinner inside button */
.btn-spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Broker Section ── */
.broker-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.btn-broker-header {
  background: var(--red);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  border-radius: 6px;
  padding: 14px 32px;
  width: 80%;
  box-shadow: 0 2px 14px rgba(227,20,20,0.3);
  transition: filter 0.2s;
}
.btn-broker-header:hover { filter: brightness(1.1); }

.broker-select-wrap {
  background: #ffffff;
  border-radius: 8px;
  padding: 0 12px;
  position: relative;
  width: 80%;
  display: flex;
  align-items: center;
}
.broker-select {
  width: 100%;
  background: transparent;
  color: #111;
  font-size: 15px;
  font-weight: 500;
  padding: 13px 4px;
  appearance: none;
  border: none;
  cursor: pointer;
}
.broker-arrow {
  position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 14px; color: #555; pointer-events: none;
}

/* ── Broker Iframe ── */
.iframe-wrap {
  width: 100%;
  border-top: 2px solid var(--red);
  background: #000;
  display: flex;
  flex-direction: column;
  margin-top: 16px;
}
.iframe-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.iframe-close {
  background: rgba(227,20,20,0.15);
  border: 1px solid rgba(227,20,20,0.3);
  color: #ff6b6b;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}
.iframe-close:hover { background: rgba(227,20,20,0.3); }
.iframe-wrap iframe {
  width: 100%;
  height: 600px;
  border: none;
  display: block;
}

/* Broker blocked fallback */
.broker-blocked {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 32px;
  gap: 16px;
  min-height: 280px;
}
.broker-blocked-icon {
  color: var(--red);
  filter: drop-shadow(0 0 10px var(--red-glow));
}
.broker-blocked-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
}
.broker-blocked-body {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 360px;
}
.btn-broker-external {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  padding: 13px 24px;
  margin-top: 4px;
  transition: filter 0.2s;
  box-shadow: 0 2px 14px rgba(227,20,20,0.35);
}
.btn-broker-external:hover { filter: brightness(1.1); }

/* ── Asset Panel (custom dropdown) ── */
.asset-panel {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: flex-end;  /* slides up from bottom on mobile */
  justify-content: center;
}
.asset-panel-inner {
  background: #141414;
  border: 1px solid #2a2a2a;
  border-radius: 20px 20px 0 0;
  width: 100%;
  max-width: 520px;
  max-height: 75vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0);    opacity: 1; }
}
.asset-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 16px 20px 12px;
  font-size: 15px;
  font-weight: 700;
  color: var(--white);
  border-bottom: 1px solid #2a2a2a;
}

.asset-session-badge {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 3px;
}
.asset-panel-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
}
.asset-panel-close:hover { color: var(--red); }
.asset-search {
  background: #1a1a1a;
  border: none;
  border-bottom: 1px solid #2a2a2a;
  color: var(--text);
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
}
.asset-search:focus { outline: none; background: #1e1e1e; }
.asset-list {
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}
.asset-group-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  padding: 10px 20px 4px;
}
.asset-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 20px;
  cursor: pointer;
  transition: background 0.15s;
}
.asset-item:hover { background: rgba(255,255,255,0.04); }
.asset-item.active { background: rgba(227,20,20,0.08); }
.asset-item-name { font-size: 14px; font-weight: 500; color: var(--text); flex: 1; }
.asset-item-check { color: var(--red); font-weight: 700; font-size: 14px; }

.asset-no-market {
  padding: 32px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

/* ════════════════════════════════════════════════
   DESKTOP OVERRIDES (≥ 900px)
════════════════════════════════════════════════ */
@media (min-width: 900px) {
  /* Panel: slightly wider on desktop */
  .ind-panel {
    max-width: 560px;
    padding: 24px 24px 24px;
  }

  /* Iframe: full width, no radius */
  .iframe-wrap {
    margin-top: 0;
    border-radius: 0;
  }
  .iframe-wrap iframe {
    height: 650px;
  }

  /* Asset panel: center modal on desktop */
  .asset-panel {
    align-items: center;
  }
  .asset-panel-inner {
    border-radius: 16px;
    max-height: 70vh;
    max-width: 480px;
    animation: fadeScale 0.2s ease;
  }
  @keyframes fadeScale {
    from { transform: scale(0.95); opacity: 0; }
    to   { transform: scale(1);    opacity: 1; }
  }

  /* Broker section: slightly narrower */
  .btn-broker-header,
  .broker-select-wrap { width: 60%; }
}


/* ════════════════════════════════════════════════
   ADMIN PANEL
════════════════════════════════════════════════ */

/* Admin Login */
.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(ellipse at top, #0d0005 0%, #0a0a0a 60%);
  padding: 20px;
}
.admin-login-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 36px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.admin-logo {
  width: 140px;
  margin-bottom: 24px;
  filter: drop-shadow(0 0 10px var(--red-glow));
}
.admin-login-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
}
.admin-login-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.admin-key-input {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 15px;
  padding: 13px 16px;
  margin-bottom: 12px;
  transition: border-color 0.2s;
}
.admin-key-input:focus { border-color: var(--red); }
.btn-admin-login {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.4px;
  border: none;
  border-radius: 50px;
  padding: 14px 20px;
  cursor: pointer;
  box-shadow: var(--shadow-red);
  transition: filter 0.2s, transform 0.2s;
  margin-bottom: 10px;
}
.btn-admin-login svg { width: 18px; height: 18px; flex-shrink: 0; }
.btn-admin-login:hover:not(:disabled) { filter: brightness(1.12); transform: translateY(-1px); }
.btn-admin-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.admin-err {
  font-size: 13px;
  color: #ff6b6b;
  text-align: center;
}

/* Admin Dashboard */
.admin-page {
  min-height: 100vh;
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.admin-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 24px;
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.admin-header-logo { height: 36px; filter: drop-shadow(0 0 6px var(--red-glow)); }
.admin-header-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  flex: 1;
}
.admin-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}
.admin-user-count {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 4px 12px;
}
.btn-admin-icon {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s;
}
.btn-admin-icon svg { width: 16px; height: 16px; }
.btn-admin-icon:hover { color: var(--red); border-color: var(--red); }

/* Stats Bar */
.admin-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-bottom: 1px solid var(--border);
}
.admin-stat {
  background: var(--bg2);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.admin-stat-num {
  font-size: 24px;
  font-weight: 700;
  color: var(--red);
}
.admin-stat-lbl {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Search */
.admin-search-wrap {
  padding: 16px 24px 8px;
}
.admin-search {
  width: 100%;
  max-width: 360px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  padding: 10px 16px;
  transition: border-color 0.2s;
}
.admin-search:focus { border-color: var(--red); }

/* Table */
.admin-table-wrap {
  flex: 1;
  overflow-x: auto;
  padding: 8px 24px 24px;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 800px;
}
.admin-table thead tr {
  background: var(--bg3);
  border-bottom: 2px solid var(--border);
}
.admin-table th {
  text-align: left;
  padding: 12px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  font-weight: 600;
}
.admin-table td {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text);
  vertical-align: middle;
}
.admin-table tbody tr {
  border-bottom: 1px solid var(--border);
}
.admin-row:last-child { border-bottom: none; }
.admin-row:last-child td { border-bottom: none; }
.admin-row:hover td { background: rgba(255,255,255,0.02); }
.td-user { display: flex; align-items: center; gap: 9px; }
.admin-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border);
  flex-shrink: 0;
}

/* SVG fallback avatar — themed dark + red glow */
.admin-avatar-wrap {
  position: relative;
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.admin-avatar-svg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid rgba(227, 20, 20, 0.35);
  background: #1a0a0a;
  box-shadow: 0 0 8px rgba(227, 20, 20, 0.2);
  flex-shrink: 0;
  overflow: hidden;
}
.admin-avatar-svg svg {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.td-name  { font-weight: 600; font-size: 13px; line-height: 1.3; }
.td-email { font-size: 11px; color: var(--text-muted); line-height: 1.3; }
.td-center { text-align: center; }
.td-expiry { font-size: 12px; color: var(--text-muted); }

/* Badges */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-monthly  { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-free     { background: rgba(148,163,184,0.12); color: #94a3b8; border: 1px solid rgba(148,163,184,0.25); }
.badge-active   { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-trial    { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.badge-expired  { background: rgba(227,20,20,0.12);  color: #e31414; border: 1px solid rgba(227,20,20,0.25); }
.badge-revoked  { background: rgba(100,100,100,0.12); color: #888;   border: 1px solid rgba(100,100,100,0.25); }
.badge-locked   { background: rgba(227,20,20,0.18);  color: #ff6b6b; border: 1px solid rgba(227,20,20,0.3); }
.badge-premium  {
  background: linear-gradient(135deg, rgba(250,189,0,0.18), rgba(255,140,0,0.12));
  color: #f5c842;
  border: 1px solid rgba(250,189,0,0.45);
  font-weight: 700;
  letter-spacing: 0.7px;
  gap: 3px;
}

/* Action buttons */
.td-actions { display: flex; flex-wrap: wrap; gap: 5px; }
.btn-action {
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  padding: 5px 10px;
  border: 1px solid transparent;
  transition: all 0.15s;
  white-space: nowrap;
}
.btn-monthly     { background: rgba(34,197,94,0.1);   color: #22c55e; border-color: rgba(34,197,94,0.3); }
.btn-monthly:hover { background: rgba(34,197,94,0.2); }
.btn-revoke      { background: rgba(227,20,20,0.1);  color: #ff6b6b; border-color: rgba(227,20,20,0.25); }
.btn-revoke:hover { background: rgba(227,20,20,0.2); }
.btn-lock        { background: rgba(251,191,36,0.1); color: #fbbf24; border-color: rgba(251,191,36,0.25); }
.btn-lock:hover  { background: rgba(251,191,36,0.2); }
.btn-unlock      { background: rgba(34,197,94,0.08); color: #4ade80; border-color: rgba(34,197,94,0.2); }
.btn-unlock:hover { background: rgba(34,197,94,0.18); }
.btn-reset-trial  { background: rgba(139,92,246,0.1); color: #a78bfa; border-color: rgba(139,92,246,0.25); }
.btn-reset-trial:hover { background: rgba(139,92,246,0.2); }
.btn-reset-device { background: rgba(148,163,184,0.08); color: #94a3b8; border-color: rgba(148,163,184,0.2); }
.btn-reset-device:hover { background: rgba(148,163,184,0.15); }
.btn-delete-user       { background: rgba(220,38,38,0.12);  color: #f87171; border-color: rgba(220,38,38,0.4); }
.btn-delete-user:hover { background: rgba(220,38,38,0.25); border-color: rgba(220,38,38,0.65); }
.btn-action:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Admin Tabs ── */
.admin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 2px solid var(--border);
  background: var(--bg2);
  padding: 0 24px;
}
.admin-tab {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 20px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: all 0.2s;
}
.admin-tab:hover { color: var(--text); }
.admin-tab.active { color: var(--white); border-bottom-color: var(--red); }

/* ── Asset Management ── */
.asset-mgmt-wrap { padding: 16px 24px 40px; }

.asset-mgmt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.asset-mgmt-left  { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.asset-mgmt-right { display: flex; gap: 8px; }

.asset-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.asset-search-icon {
  position: absolute;
  left: 10px;
  color: var(--text-dim);
  pointer-events: none;
}
.asset-search-input {
  padding-left: 30px !important;
  max-width: 220px;
}

/* Group tabs */
.asset-group-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0;
}
.asset-group-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 14px 10px;
  cursor: pointer;
  margin-bottom: -1px;
  transition: all 0.15s;
  border-radius: 0;
  white-space: nowrap;
}
.asset-group-tab:hover { color: var(--text); }
.asset-group-tab.active {
  color: var(--white);
  border-bottom-color: var(--red);
  font-weight: 600;
}
.asset-group-count {
  background: var(--bg4);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  padding: 1px 6px;
  min-width: 18px;
  text-align: center;
}
.asset-group-tab.active .asset-group-count {
  background: rgba(227,20,20,0.2);
  color: var(--red);
}

.market-hours-info {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 14px;
  font-size: 12px;
  color: var(--text-muted);
}
.market-hours-info span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.market-hours-info b { color: var(--text); }

.asset-flag-cell {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.asset-row-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.asset-flag-double {
  flex-shrink: 0;
}

/* Group & type badges */
.badge-group-currencies  { background: rgba(59,130,246,0.12); color: #60a5fa; border: 1px solid rgba(59,130,246,0.25); }
.badge-group-crypto      { background: rgba(251,191,36,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.25); }
.badge-group-commodities { background: rgba(234,179,8,0.12);  color: #eab308; border: 1px solid rgba(234,179,8,0.25); }
.badge-group-stocks      { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.25); }

.badge-type-live { background: rgba(34,197,94,0.12);  color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.badge-type-otc  { background: rgba(168,85,247,0.12); color: #c084fc; border: 1px solid rgba(168,85,247,0.25); }

.asset-toggle-btn {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s;
}
.asset-toggle-btn.enabled  { background: rgba(34,197,94,0.12); color: #22c55e; border-color: rgba(34,197,94,0.3); }
.asset-toggle-btn.disabled { background: rgba(227,20,20,0.12); color: #ff6b6b; border-color: rgba(227,20,20,0.3); }
.asset-toggle-btn:hover { filter: brightness(1.2); }

/* ── Asset Modal ── */
.asset-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.asset-modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.asset-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--border);
}
.asset-modal-header h3 { font-size: 18px; font-weight: 700; color: var(--white); }
.asset-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  transition: color 0.2s;
}
.asset-modal-close:hover { color: var(--red); }

.asset-modal-body { padding: 20px 24px; }

.asset-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.asset-form-grid label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}
.req { color: var(--red); }
.asset-input {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 13px;
  padding: 9px 12px;
  transition: border-color 0.2s;
  font-family: var(--font);
  width: 100%;
}
.asset-input:focus { outline: none; border-color: var(--red); }
.field-hint { font-size: 10px; color: var(--text-dim); margin-top: 2px; }

.asset-toggle-label {
  display: flex;
  flex-direction: row !important;
  align-items: center;
  justify-content: space-between;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
}
.asset-toggle-label input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--red);
  cursor: pointer;
}

.asset-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 24px 18px;
  border-top: 1px solid var(--border);
}

/* ── Expiry Date Modal ── */
.expiry-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.expiry-modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.65);
  overflow: hidden;
}
.expiry-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  gap: 8px;
}
.expiry-modal-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.expiry-modal-close:hover { color: var(--red); }
.expiry-modal-body  { padding: 16px 20px 12px; }
.expiry-section-lbl {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin: 0 0 10px;
}
.expiry-plans-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.expiry-plan-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 10px 8px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.expiry-plan-btn:hover {
  background: rgba(227,20,20,0.07);
  border-color: rgba(227,20,20,0.35);
}
.expiry-plan-btn.selected {
  background: rgba(227,20,20,0.13);
  border-color: var(--red);
}
.expiry-plan-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
}
.expiry-plan-btn.selected .expiry-plan-label { color: var(--red); }
.expiry-plan-date {
  font-size: 10px;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.3;
}
.expiry-custom-wrap { margin-top: 4px; }
.expiry-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
}
.expiry-date-input { color-scheme: dark; }
.expiry-modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
}

/* ── Expiry Cell (in table + card) ── */
.expiry-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}
.expiry-date-text {
  font-size: 12px;
  color: var(--text);
}
.expiry-days {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 20px;
  letter-spacing: 0.4px;
}
.expiry-days-ok {
  background: rgba(34,197,94,0.12);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.25);
}
.expiry-days-expired {
  background: rgba(227,20,20,0.12);
  color: #ff6b6b;
  border: 1px solid rgba(227,20,20,0.25);
}
.btn-edit-expiry {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-dim);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  transition: color 0.18s, border-color 0.18s, background 0.18s;
  flex-shrink: 0;
}
.btn-edit-expiry:hover {
  color: var(--red);
  border-color: rgba(227,20,20,0.3);
  background: rgba(227,20,20,0.08);
}

/* Toast */
.admin-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  z-index: 9999;
  animation: toastIn 0.3s ease;
  white-space: nowrap;
}
.toast-success { background: #052e16; color: #22c55e; border: 1px solid rgba(34,197,94,0.3); }
.toast-error   { background: #1c0a0a; color: #ff6b6b; border: 1px solid rgba(255,107,107,0.3); }
@keyframes toastIn {
  from { transform: translateX(-50%) translateY(20px); opacity: 0; }
  to   { transform: translateX(-50%) translateY(0);    opacity: 1; }
}


/* ════════════════════════════════════════════════
   ADMIN — Login page enhancements
════════════════════════════════════════════════ */
.admin-login-icon {
  color: var(--red);
  opacity: 0.15;
  position: absolute;
  top: 24px;
  right: 24px;
  pointer-events: none;
}
.admin-key-wrap {
  position: relative;
  width: 100%;
  margin-bottom: 12px;
}
.admin-key-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
}
.admin-key-wrap .admin-key-input {
  padding-left: 44px;
  margin-bottom: 0;
}
.admin-err {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

/* ── Admin Stats icons ── */
.admin-stat { position: relative; overflow: hidden; }
.admin-stat-icon {
  position: absolute;
  top: 10px;
  right: 12px;
  opacity: 0.12;
}
.admin-stat-icon svg { width: 28px; height: 28px; }
.stat-icon-green svg { stroke: #22c55e; }
.stat-icon-blue  svg { stroke: #60a5fa; }
.stat-icon-amber svg { stroke: #fbbf24; }
.stat-icon-red   svg { stroke: #ff6b6b; }

/* ── Admin search with icon ── */
.admin-search-wrap {
  position: relative;
  padding: 16px 24px 8px;
}
.admin-search-icon {
  position: absolute;
  left: 38px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-dim);
  pointer-events: none;
  display: flex;
  align-items: center;
  margin-top: 4px;
}
.admin-search-wrap .admin-search {
  padding-left: 36px;
}

/* ── Admin empty state ── */
.admin-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 48px 24px;
  color: var(--text-dim);
  text-align: center;
}
.admin-empty-state svg { opacity: 0.3; }
.admin-empty-state p { font-size: 14px; color: var(--text-muted); line-height: 1.6; }

/* ── Admin toast icon ── */
.admin-toast {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── Admin cards (mobile user list) ── */
.admin-cards-mobile { display: none; padding: 8px 16px 24px; }

.admin-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color 0.15s;
}
.admin-card:hover { border-color: #3a3a3a; }

.admin-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
}
.admin-card-info {
  flex: 1;
  min-width: 0;
}
.admin-card-info .td-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-card-info .td-email { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.admin-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.admin-card-meta {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.card-meta-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 14px;
  border-right: 1px solid var(--border);
}
.card-meta-item:last-child { border-right: none; }
.card-meta-lbl { font-size: 10px; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }
.card-meta-val { font-size: 13px; font-weight: 600; color: var(--text); }

.admin-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 14px 12px;
}
.admin-card-actions .btn-action {
  flex: 1;
  min-width: calc(50% - 6px);
  justify-content: center;
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 7px 8px;
  font-size: 12px;
}

/* ── Desktop table / Mobile cards toggle ── */
.admin-table-desktop { display: block; }

/* ── Tab label ── */
.admin-tab {
  display: flex;
  align-items: center;
  gap: 7px;
}

/* ── Btn-action with SVG ── */
.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

/* ════════════════════════════════════════════════
   RESPONSIVE — Mobile
════════════════════════════════════════════════ */
@media (max-width: 600px) {
  /* Login / modal */
  .login-card { padding: 32px 20px 28px; }
  .modal-box  { padding: 32px 20px 28px; }
  .iframe-wrap iframe { height: 480px; }

  /* Admin login card */
  .admin-login-card { padding: 36px 20px 32px; }

  /* Admin header */
  .admin-header { padding: 10px 14px; gap: 10px; }
  .admin-header-title { font-size: 15px; }
  .admin-user-count { display: none; }

  /* Admin tabs */
  .admin-tabs { padding: 0 14px; }
  .admin-tab { padding: 12px 14px; font-size: 13px; }
  .tab-label { display: none; }   /* icon-only tabs on very small screens */

  /* Stats bar — 2 columns on mobile */
  .admin-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .admin-stat { padding: 12px 14px; }
  .admin-stat-num { font-size: 20px; }

  /* Search */
  .admin-search-wrap { padding: 12px 14px 6px; }
  .admin-search-icon { left: 28px; }
  .admin-search { max-width: 100%; }

  /* Hide desktop table, show mobile cards */
  .admin-table-desktop { display: none; }
  .admin-cards-mobile  { display: block; }

  /* Asset management */
  .asset-mgmt-wrap { padding: 12px 14px 32px; }
  .asset-mgmt-toolbar { flex-direction: column; align-items: stretch; gap: 8px; }
  .asset-mgmt-left  { width: 100%; }
  .asset-mgmt-right { width: 100%; justify-content: stretch; gap: 8px; }
  .asset-mgmt-right .btn-action { flex: 1; justify-content: center; padding: 9px 8px; }
  .asset-search-input { max-width: 100% !important; width: 100%; }

  /* Asset group tabs — scrollable row */
  .asset-group-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 0; }
  .asset-group-tab  { white-space: nowrap; padding: 9px 12px; font-size: 12px; }

  /* Asset table scrolls horizontally on mobile */
  .admin-table-wrap { padding: 6px 14px 24px; }

  /* Asset modal full-width on mobile */
  .asset-modal-overlay { padding: 0; align-items: flex-end; }
  .asset-modal-box { border-radius: 20px 20px 0 0; max-height: 92vh; max-width: 100%; }
  .asset-form-grid { grid-template-columns: 1fr; }
  .asset-modal-footer { flex-direction: row; }

  /* Market hours info — stack */
  .market-hours-info { flex-direction: column; gap: 8px; }
}

/* Slightly wider — tablets */
@media (max-width: 860px) and (min-width: 601px) {
  .admin-stats-bar { grid-template-columns: repeat(2, 1fr); }
  .admin-table { min-width: 700px; }
  .admin-tabs { padding: 0 16px; }
  .admin-search-wrap { padding: 12px 16px 6px; }
  .admin-table-wrap { padding: 6px 16px 24px; }
  .admin-header { padding: 12px 16px; }
  .asset-mgmt-wrap { padding: 12px 16px 32px; }
}


/* ════════════════════════════════════════════════
   HISTORY TABLE MODAL
════════════════════════════════════════════════ */
#historyModal .modal-box {
  overflow: hidden;
}
/* Scrollable table body — cap height so it doesn't overflow screen */
#historyModal [style*="display:grid"] {
  max-height: 360px;
  overflow-y: auto;
}
/* Scrollbar styling inside history table */
#historyModal [style*="display:grid"]::-webkit-scrollbar { width: 4px; }
#historyModal [style*="display:grid"]::-webkit-scrollbar-track { background: #111; }
#historyModal [style*="display:grid"]::-webkit-scrollbar-thumb { background: #333; border-radius: 4px; }

/* History table scroll container — ultra-thin scrollbar */
#historyModal div[style*="max-height"] {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}
#historyModal div[style*="max-height"]::-webkit-scrollbar {
  width: 3px;
}
#historyModal div[style*="max-height"]::-webkit-scrollbar-track {
  background: transparent;
}
#historyModal div[style*="max-height"]::-webkit-scrollbar-thumb {
  background: #333;
  border-radius: 4px;
}
#historyModal div[style*="max-height"]::-webkit-scrollbar-thumb:hover {
  background: #555;
}


/* ════════════════════════════════════════════════
   CREATOR CREDIT (Login Page)
════════════════════════════════════════════════ */
.creator-credit {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 100%;
}

.creator-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-dim);
}

.creator-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 0.3px;
}

.creator-socials {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 4px;
}

.creator-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid #2e2e2e;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.creator-social-link:hover {
  background: rgba(255,255,255,0.1);
}

/* Instagram — pink/purple gradient */
.creator-social-link:nth-child(1) {
  color: #e1306c;
  border-color: rgba(225,48,108,0.45);
  background: rgba(225,48,108,0.1);
}
.creator-social-link:nth-child(1) span {
  color: #f0547c;
}
.creator-social-link:nth-child(1):hover { background: rgba(225,48,108,0.18); border-color: rgba(225,48,108,0.65); }

/* YouTube — red */
.creator-social-link:nth-child(2) {
  color: #ff0000;
  border-color: rgba(255,0,0,0.4);
  background: rgba(255,0,0,0.09);
}
.creator-social-link:nth-child(2) span {
  color: #ff3333;
}
.creator-social-link:nth-child(2):hover { background: rgba(255,0,0,0.16); border-color: rgba(255,0,0,0.6); }

/* TikTok — cyan + pink */
.creator-social-link:nth-child(3) {
  color: #ffffff;
  border-color: rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.07);
}
.creator-social-link:nth-child(3) span {
  color: #ffffff;
}
.creator-social-link:nth-child(3):hover { background: rgba(255,255,255,0.13); border-color: rgba(255,255,255,0.4); }

.creator-social-link svg { flex-shrink: 0; }
.creator-social-link:nth-child(1) svg { color: #e1306c; }
.creator-social-link:nth-child(2) svg { color: #ff0000; }
.creator-social-link:nth-child(3) svg { color: #ffffff; }

/* ── Signal text blink animation ── */
@keyframes signalBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.signal-blink {
  animation: signalBlink 0.4s ease-in-out 4;
}

/* ── Plan Badge (Indicator page) ── */
.plan-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border-radius: 20px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.plan-badge-free {
  background: rgba(148,163,184,0.1);
  border: 1px solid rgba(148,163,184,0.3);
  color: #94a3b8;
}

.plan-badge-premium {
  background: linear-gradient(135deg, rgba(250,189,0,0.15), rgba(255,140,0,0.1));
  border: 1px solid rgba(250,189,0,0.45);
  color: #f5c842;
  box-shadow: 0 0 10px rgba(245,200,66,0.15);
}
.plan-badge-premium svg { fill: #f5c842; }


/* ════════════════════════════════════════════════
   TESTIMONIALS — BUTTON + FULL-SCREEN PHONE CAROUSEL
════════════════════════════════════════════════ */

/* ── Button ── */
@keyframes btnPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(180,10,10,0.5), 0 2px 14px rgba(180,10,10,0.35); }
  50%       { box-shadow: 0 0 0 6px rgba(180,10,10,0), 0 2px 20px rgba(180,10,10,0.55); }
}
.btn-testimonials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  padding: 11px 14px;
  background: linear-gradient(135deg, #b40a0a, #8a0606);
  border: 1px solid rgba(220,30,30,0.5);
  border-radius: 50px;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  animation: btnPulse 2s ease-in-out infinite;
  transition: filter 0.2s, transform 0.15s;
}
.btn-testimonials:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}
.btn-testimonials svg { flex-shrink: 0; }

/* ── Full-screen overlay ── */
.testimonials-fullscreen {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  overflow: hidden;
}
.testimonials-fullscreen.hidden { display: none !important; }

/* ── Header ── */
.testimonials-fs-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  flex-shrink: 0;
}
.testimonials-fs-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #f5c842;
}
.testimonials-fs-close {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  color: #ccc;
  cursor: pointer;
  transition: background 0.2s;
}
.testimonials-fs-close:hover { background: rgba(227,20,20,0.3); color: #fff; }

/* ── Carousel wrapper ── */
.testimonials-carousel-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 8px;
  width: 100%;
  min-height: 0;
}

/* ── Nav buttons ── */
.testimonials-nav {
  flex-shrink: 0;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  cursor: pointer;
  transition: background 0.2s;
  z-index: 2;
}
.testimonials-nav:hover { background: rgba(255,255,255,0.18); }

/* ── Phone frame ── */
.phone-frame-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  max-height: 100%;
}

.phone-frame-logo {
  width: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(227,20,20,0.45));
  flex-shrink: 0;
}

.phone-frame {
  position: relative;
  height: min(78vh, 620px);
  aspect-ratio: 9 / 19.5;
  background: #111;
  border-radius: 44px;
  border: 3px solid #333;
  box-shadow:
    0 0 0 1px #111,
    0 0 50px rgba(0,0,0,0.9),
    inset 0 0 0 2px #1e1e1e;
  overflow: hidden;
  flex-shrink: 0;
}

/* Side buttons */
.phone-frame::before {
  content: '';
  position: absolute;
  left: -5px;
  top: 18%;
  width: 3px;
  height: 8%;
  background: #2a2a2a;
  border-radius: 2px 0 0 2px;
  box-shadow: 0 calc(100% + 6px) 0 #2a2a2a, 0 calc(200% + 12px) 0 #2a2a2a;
}
.phone-frame::after {
  content: '';
  position: absolute;
  right: -5px;
  top: 25%;
  width: 3px;
  height: 12%;
  background: #2a2a2a;
  border-radius: 0 2px 2px 0;
}

.phone-screen {
  position: absolute;
  inset: 0;
  border-radius: 42px;
  overflow: hidden;
  background: #000;
}

/* Home bar */
.phone-home-bar {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 35%;
  height: 4px;
  background: rgba(255,255,255,0.2);
  border-radius: 4px;
  z-index: 10;
}

/* ── Slide track ── */
.testimonials-track-wrap {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.testimonials-track {
  display: flex;
  height: 100%;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
  cursor: grab;
}
.testimonials-track:active { cursor: grabbing; }
.testimonials-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
}
.testimonials-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

/* ── Dots ── */
.testimonials-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 0 4px;
  flex-wrap: wrap;
  max-width: 280px;
  flex-shrink: 0;
}
.t-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}
.t-dot.active {
  background: #f5c842;
  transform: scale(1.4);
}

/* Small phones — tighter nav buttons */
@media (max-width: 380px) {
  .testimonials-nav { width: 32px; height: 32px; }
  .testimonials-carousel-wrap { gap: 8px; padding: 0 4px; }
}

/* ── Pagar Acesso Mensal Button — Star Style ── */
@keyframes gradient_301 {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes animStar {
  from { transform: translateY(0); }
  to   { transform: translateY(-135rem); }
}
@keyframes animStarRotate {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0deg); }
}
@keyframes pulse_3011 {
  0%   { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0,0,0,0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(0,0,0,0); }
  100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

.btn-pagar {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 3rem;
  overflow: hidden;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: gradient_301 5s ease infinite;
  border: double 2px transparent;
  background-image: linear-gradient(#1a0000, #1a0000),
    linear-gradient(137.48deg, #ff6b6b 10%, #e31414 40%, #b30f0f 65%, #6b0000 87%);
  background-origin: border-box;
  background-clip: content-box, border-box;
  text-decoration: none;
  margin-bottom: 4px;
}
.btn-pagar:hover { transform: scale(1.05); }
.btn-pagar:active {
  border: double 2px #e31414;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}

.btn-pagar strong {
  z-index: 2;
  font-size: 11.5px;
  letter-spacing: 2px;
  color: #ffffff;
  text-shadow: 0 0 6px white;
  font-family: var(--font);
  white-space: nowrap;
}

.btn-pagar-stars {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}
.btn-pagar:hover .btn-pagar-stars {
  z-index: 1;
  background-color: #1a0000;
}

.btn-pagar-star-field {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}
.btn-pagar-star-field::before {
  content: '';
  position: absolute;
  top: 0; left: -50%;
  width: 170%; height: 500%;
  animation: animStar 60s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}
.btn-pagar-star-field::after {
  content: '';
  position: absolute;
  top: -10rem; left: -100rem;
  width: 100%; height: 100%;
  animation: animStarRotate 90s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

.btn-pagar-glow {
  position: absolute;
  display: flex;
  width: 100%;
}
.btn-pagar-circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: pulse_3011 4s infinite;
  z-index: -1;
}
.btn-pagar-circle:nth-of-type(1) { background: rgba(227,20,20,0.7); }
.btn-pagar-circle:nth-of-type(2) { background: rgba(179,15,15,0.75); }
.btn-pagar:active .btn-pagar-circle { background: #e31414; }

/* ── Modal Separator ── */
.modal-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 10px 0 8px;
  color: #444;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.7px;
}
.modal-separator::before,
.modal-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}

/* ── Contact Row ── */
.modal-contact-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  margin-bottom: 2px;
}
.btn-contact-wa,
.btn-contact-email {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn-contact-wa {
  background: rgba(37,211,102,0.1);
  border: 1px solid rgba(37,211,102,0.35);
  color: #25d366;
}
.btn-contact-wa:hover {
  background: rgba(37,211,102,0.18);
  border-color: rgba(37,211,102,0.6);
  transform: translateY(-1px);
}
.btn-contact-email {
  background: rgba(234,67,53,0.1);
  border: 1px solid rgba(234,67,53,0.35);
  color: #EA4335;
}
.btn-contact-email:hover {
  background: rgba(234,67,53,0.18);
  border-color: rgba(234,67,53,0.6);
  transform: translateY(-1px);
}
.btn-contact-wa svg  { flex-shrink: 0; color: #25d366; }
.btn-contact-email svg { flex-shrink: 0; color: #EA4335; }

/* ── Button Textures (trial popup) ── */
.btn-pagar,
.btn-testimonials,
.btn-contact-wa,
.btn-contact-email,
.btn-whatsapp,
.btn-email {
  position: relative;
  overflow: hidden;
}

.btn-pagar::after,
.btn-testimonials::after,
.btn-contact-wa::after,
.btn-contact-email::after,
.btn-whatsapp::after,
.btn-email::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 160px 160px;
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.45;
}

/* ════════════════════════════════════════════════
   TRIAL MODAL — Screenshot-matched style
════════════════════════════════════════════════ */
.trial-modal-box {
  position: relative;
  background: #111111;
  border: 1px solid #2a2a2a;
  border-radius: 20px;
  padding: 32px 24px 28px;
  max-width: 380px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  box-shadow: 0 8px 48px rgba(0,0,0,0.8);
}

.trial-modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: transparent;
  border: none;
  color: #e31414;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px 6px;
  transition: opacity 0.2s;
}
.trial-modal-close:hover { opacity: 0.7; }

.trial-modal-logo {
  width: 140px;
  object-fit: contain;
  margin-bottom: 16px;
  filter: drop-shadow(0 0 10px rgba(227,20,20,0.3));
}

.trial-modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  margin-bottom: 10px;
  letter-spacing: -0.2px;
}

.trial-modal-body {
  font-size: 13.5px;
  color: #999;
  text-align: center;
  line-height: 1.7;
  margin-bottom: 16px;
}
.trial-modal-body strong { color: #fff; }
.trial-highlight { color: #e31414; font-weight: 800; }

/* Feature list */
.trial-features {
  width: 100%;
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.trial-feature-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #f0f0f0;
}

/* Pay button — dark red space style */
.trial-btn-pay {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 2.5rem;
  overflow: hidden;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: trial-btn-gradient 5s ease infinite;
  border: solid 1.5px transparent;
  background-image: linear-gradient(#1a0404, #1a0404),
    linear-gradient(
      137.48deg,
      #7a0000 10%,
      #e31414 45%,
      #b30f0f 67%,
      #6b0000 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
  text-decoration: none;
  margin-bottom: 10px;
}

.trial-btn-pay strong {
  z-index: 2;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.trial-btn-stars-container {
  position: absolute;
  z-index: -1;
  width: 100%;
  height: 100%;
  overflow: hidden;
  transition: 0.5s;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
}

.trial-btn-stars {
  position: relative;
  background: transparent;
  width: 200rem;
  height: 200rem;
}

.trial-btn-stars::after {
  content: "";
  position: absolute;
  top: -10rem;
  left: -100rem;
  width: 100%;
  height: 100%;
  animation: trial-animStarRotate 90s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
}

.trial-btn-stars::before {
  content: "";
  position: absolute;
  top: 0;
  left: -50%;
  width: 170%;
  height: 500%;
  animation: trial-animStar 60s linear infinite;
  background-image: radial-gradient(#ffffff 1px, transparent 1%);
  background-size: 50px 50px;
  opacity: 0.5;
}

.trial-btn-glow {
  position: absolute;
  display: flex;
  width: 92%;
}

.trial-btn-circle {
  width: 100%;
  height: 30px;
  filter: blur(2rem);
  animation: trial-pulse 4s infinite;
  z-index: -1;
}
.trial-btn-circle:nth-of-type(1) { background: rgba(227, 20, 20, 0.7); }
.trial-btn-circle:nth-of-type(2) { background: rgba(120, 0, 0, 0.75); }

.trial-btn-pay:hover .trial-btn-stars-container {
  z-index: 1;
  background-color: #1a0404;
}
.trial-btn-pay:hover { transform: scale(1.04); }
.trial-btn-pay:active {
  border: solid 1.5px #e31414;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}
.trial-btn-pay:active .trial-btn-circle { background: #e31414; }

@keyframes trial-animStar {
  from { transform: translateY(0); }
  to   { transform: translateY(-135rem); }
}
@keyframes trial-animStarRotate {
  from { transform: rotate(360deg); }
  to   { transform: rotate(0); }
}
@keyframes trial-btn-gradient {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes trial-pulse {
  0%   { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0,0,0,0.7); }
  70%  { transform: scale(1);    box-shadow: 0 0 0 10px rgba(0,0,0,0); }
  100% { transform: scale(0.75); box-shadow: 0 0 0 0 rgba(0,0,0,0); }
}

/* Testimonials button — same space style as pay button */
.trial-btn-testimonials {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  height: 2.5rem;
  overflow: hidden;
  background-size: 300% 300%;
  cursor: pointer;
  backdrop-filter: blur(1rem);
  border-radius: 5rem;
  transition: 0.5s;
  animation: trial-btn-gradient 5s ease infinite;
  border: solid 1.5px transparent;
  background-image: linear-gradient(#1a0404, #1a0404),
    linear-gradient(
      137.48deg,
      #7a0000 10%,
      #e31414 45%,
      #b30f0f 67%,
      #6b0000 87%
    );
  background-origin: border-box;
  background-clip: content-box, border-box;
  margin-bottom: 10px;
}

.trial-btn-testimonials strong {
  z-index: 2;
  font-size: 14px;
  letter-spacing: 1.5px;
  color: #ffffff;
  font-weight: 600;
  white-space: nowrap;
}

.trial-btn-testimonials:hover .trial-btn-stars-container {
  z-index: 1;
  background-color: #1a0404;
}
.trial-btn-testimonials:hover { transform: scale(1.04); }
.trial-btn-testimonials:active {
  border: solid 1.5px #e31414;
  background-origin: border-box;
  background-clip: content-box, border-box;
  animation: none;
}
.trial-btn-testimonials:active .trial-btn-circle { background: #e31414; }

/* Between buttons text */
.trial-between-text {
  text-align: center;
  font-size: 11.5px;
  color: #666;
  margin: 2px 0 8px;
  line-height: 1.5;
}

/* Outline pill buttons */
.trial-btn-outline {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  padding: 11px 16px;
  background: transparent;
  border: 1px solid #2e2e2e;
  border-radius: 50px;
  color: #d0d0d0;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
}
.trial-btn-outline:hover { background: rgba(255,255,255,0.04); border-color: #444; }

/* WhatsApp accent */
.trial-btn-wa { color: #25d366; }
.trial-btn-wa svg { color: #25d366; }
.trial-btn-wa:hover { border-color: rgba(37,211,102,0.4); background: rgba(37,211,102,0.06); }

/* Email accent */
.trial-btn-email { color: #aaa; font-size: 12px; }
.trial-btn-email svg { color: #aaa; flex-shrink: 0; }

/* Separator */
.trial-separator {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 6px 0 12px;
  color: #3a3a3a;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.trial-separator::before,
.trial-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #2a2a2a;
}
