/* ============================================================
   MONSTER EVO OFFICIAL WEB TOP UP — EMERALD THEME (Megamon Style)
   Clean · Mobile-first · Emerald Palette · Light Mode
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-2: #f7f9f8;
  --card: #ffffff;
  --card-2: #f6f8f7;
  --text: #131a16;
  --text-soft: #5b6661;
  --text-faint: #8a938e;
  --accent: #0e9f6e;
  --accent-strong: #0a7d56;
  --accent-press: #086b49;
  --accent-wash: #e9f7f1;
  --on-accent: #ffffff;
  --pos: #0e9f6e;
  --neg: #e5484d;
  --warn: #d9920a;
  --border: #e6ebe8;
  --border-strong: #d2dad6;
  --radius: 14px;
  --radius-card: 20px;
  --shadow-card: 0 1px 0 rgba(20,30,25,.03), 0 14px 38px -24px rgba(20,40,30,.40);
  --shadow-accent: 0 12px 26px -12px rgba(14,159,110,.45);
  --grad-emerald: linear-gradient(145deg, #0e9f6e, #0a7d56);
  --font-display: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-body: "Be Vietnam Pro", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --shell: 480px;
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg-2);
  min-height: 100vh;
}

img {
  max-width: 100%;
  height: auto;
  border: 0;
  display: block;
}

a {
  color: var(--accent-strong);
  text-decoration: none;
}

a:hover {
  color: var(--accent-press);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin: 0 0 .5em;
  color: var(--text);
}

/* ============================================================
   SHELL (Megamon Style V5)
   ============================================================ */
.app-v5, #app.app-v5 {
  max-width: var(--shell);
  margin: 0 auto;
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
  box-shadow: 0 0 0 1px var(--border), 0 12px 36px rgba(0,0,0,0.03);
  position: relative;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

/* Top Navigation Bar */
.v5-top {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px 10px;
}

.v5-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
}

.v5-brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.v5-word {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  color: var(--accent-strong);
}

.v5-tools {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.server-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  padding: 5px 9px;
  border-radius: 20px;
  border: 1px solid rgba(14,159,110,0.2);
}

.status-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(14,159,110,0.25);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.v5-support {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-soft);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-2);
  border: 1px solid var(--border);
}

.v5-support:hover {
  color: var(--accent-strong);
}

/* Emerald Wallet Card (Signature Megamon Card) */
.v5-card {
  margin: 6px 16px 0;
  padding: 18px 20px;
  border-radius: var(--radius-card);
  background: var(--grad-emerald);
  color: #fff;
  box-shadow: var(--shadow-accent);
  position: relative;
  overflow: hidden;
}

.v5-card::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: -30px;
  width: 140px;
  height: 140px;
  background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.v5-card-k {
  font: 700 11px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .9;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.verified-pill {
  background: rgba(255,255,255,0.2);
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .02em;
}

.v5-card-num {
  font: 800 28px/1.1 var(--font-display);
  margin-top: 8px;
}

.v5-card-num small {
  font-size: 14px;
  font-weight: 600;
  opacity: .88;
  margin-left: 2px;
}

.v5-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  font: 600 12px/1 var(--font-body);
  opacity: .95;
}

.v5-card-meta strong {
  font-weight: 700;
  color: #fff;
}

/* Sticky Segment Nav */
.v5-seg {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  gap: 5px;
  margin: 14px 16px 0;
  padding: 5px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
}

.v5-seg > a {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 6px;
  border-radius: 10px;
  font: 700 12.5px/1 var(--font-body);
  color: var(--text-soft);
  transition: .15s;
  white-space: nowrap;
  cursor: pointer;
}

.v5-seg > a svg {
  opacity: .7;
  flex: 0 0 auto;
}

.v5-seg > a span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.v5-seg > a.active {
  background: var(--accent-strong);
  color: #fff;
}

.v5-seg > a.active svg {
  opacity: 1;
}

/* ============================================================
   MAIN CONTENT & TABS
   ============================================================ */
#main {
  flex: 1;
}

.menu-tab-content {
  display: none;
}

.menu-tab-content.active {
  display: block;
}

.v5-home {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Banner Slider */
.banner-snap {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 2px;
}

.banner-snap::-webkit-scrollbar {
  display: none;
}

.banner-it {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}

.banner-it img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

/* Test Mode Quick Actions Bar */
.test-action-bar {
  background: var(--accent-wash);
  border: 1px solid rgba(14,159,110,0.25);
  border-radius: var(--radius);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.test-action-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.test-badge {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 11px;
  color: var(--accent-strong);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.test-desc {
  font-size: 12px;
  color: var(--text-soft);
  margin: 0;
}

.test-buttons-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.btn-test-quick {
  background: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  padding: 7px 4px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  color: var(--accent-strong);
  cursor: pointer;
  transition: all .15s;
  text-align: center;
}

.btn-test-quick:hover {
  background: var(--accent-strong);
  color: #fff;
  border-color: var(--accent-strong);
}

.btn-test-quick:active {
  transform: scale(0.96);
}

/* Packages Section */
.v5-sec {
  font: 700 11.5px/1 var(--font-body);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 6px 0 0;
}

.v5-packs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.v5-pk {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 13px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  color: var(--text);
  cursor: pointer;
  transition: all .15s ease;
  user-select: none;
}

.v5-pk:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-accent);
  transform: translateY(-2px);
}

.v5-pk:active {
  transform: translateY(0);
}

.v5-pk-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v5-pk-ic {
  width: 26px;
  height: 26px;
  flex: 0 0 auto;
}

.v5-pk-coin {
  font: 800 17px/1 var(--font-display);
  color: var(--text);
}

.v5-pk-coin i {
  font-style: normal;
  font-size: 11.5px;
  color: var(--text-faint);
  font-weight: 600;
}

.v5-pk-price {
  font: 700 12.5px/1 var(--font-display);
  color: var(--accent-strong);
  margin-top: 2px;
}

.v5-pk-tag {
  position: absolute;
  top: -8px;
  right: -6px;
  font: 800 9.5px/1 var(--font-body);
  color: var(--accent-strong);
  background: var(--accent-wash);
  border: 1px solid rgba(14,159,110,.25);
  padding: 4px 7px;
  border-radius: 9px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.03);
}

/* ============================================================
   ACCOUNT & HISTORY TABS
   ============================================================ */
.tab-pane-inner {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.account-card-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.account-card-group:last-of-type {
  margin-bottom: 18px;
}

.account-card-group .v5-sec {
  margin: 0;
  padding-left: 2px;
}

.card-simple {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 20px 22px;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
}

.info-table tr {
  border-bottom: 1px solid var(--border);
}

.info-table tr:last-child {
  border-bottom: 0;
}

.info-table td {
  padding: 11px 4px;
  font-size: 13.5px;
}

.info-table td.label {
  color: var(--text-soft);
  width: 40%;
}

.info-table td.val {
  color: var(--text);
  font-weight: 600;
  text-align: right;
}

.history-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.history-item:last-child {
  border-bottom: 0;
}

.history-title {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.history-date {
  font-size: 11.5px;
  color: var(--text-faint);
  margin-top: 2px;
}

.history-amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--accent-strong);
  text-align: right;
}

.history-status {
  font-size: 11px;
  color: var(--pos);
  font-weight: 700;
}

/* ============================================================
   MODAL / BOTTOM SHEET (Purchase Confirmation)
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(19, 26, 22, 0.45);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-sheet {
  background: var(--bg);
  width: 100%;
  max-width: var(--shell);
  border-top-left-radius: var(--radius-card);
  border-top-right-radius: var(--radius-card);
  padding: 20px 18px 26px;
  box-shadow: 0 -10px 40px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform .25s cubic-bezier(0.2, 0.9, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-overlay.active .modal-sheet {
  transform: translateY(0);
}

.modal-sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-sheet-head h3 {
  font-size: 16px;
  margin: 0;
}

.modal-close-btn {
  background: var(--card-2);
  border: 1px solid var(--border);
  color: var(--text-soft);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
}

.order-recap {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-recap-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-recap-left img {
  width: 32px;
  height: 32px;
}

.order-recap-coins {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
  color: var(--text);
}

.order-recap-sub {
  font-size: 12px;
  color: var(--text-soft);
}

.order-recap-price {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 18px;
  color: var(--accent-strong);
}

.payment-method-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all .15s ease;
}

.payment-method-item.active,
.payment-method-item.selected {
  border: 1.5px solid var(--accent);
  background: var(--accent-wash);
}

.payment-method-item.disabled {
  border-color: var(--border);
  background: var(--card-2);
  opacity: 0.6;
  cursor: not-allowed;
}

.pm-icon {
  font-size: 20px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-2);
  flex: 0 0 32px;
}

.pm-info {
  flex: 1;
}

.pm-name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text);
}

.pm-desc {
  font-size: 11.5px;
  color: var(--text-soft);
}

.pm-badge {
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--accent-strong);
  color: #fff;
}

.pm-badge.badge-soon {
  background: var(--border-strong);
  color: var(--text-soft);
}

.btn-confirm-topup {
  width: 100%;
  border: 0;
  cursor: pointer;
  background: var(--accent-strong);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14.5px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-accent);
  transition: all .15s ease;
}

.btn-confirm-topup:hover {
  background: var(--accent);
}

.btn-confirm-topup:active {
  transform: scale(0.98);
}

/* ============================================================
   QRIS PAYMENT MODAL SHEET
   ============================================================ */
.qris-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 4px 0 10px;
}

.qris-badge-head {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  color: #c92a2a;
  letter-spacing: .04em;
}

.qris-badge-head span.qris-logo-text {
  font-weight: 900;
  font-size: 13px;
  color: #c92a2a;
}

.qris-card {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  position: relative;
  max-width: 260px;
  width: 100%;
}

.qris-qr-image {
  width: 220px;
  height: 220px;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}

.qris-amount-tag {
  margin-top: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -.02em;
}

.qris-ref-tag {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: monospace;
}

.qris-status-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  font-size: 12.5px;
  font-weight: 700;
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-strong);
  box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.7);
  animation: pulseGreen 1.5s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 159, 110, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(14, 159, 110, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(14, 159, 110, 0); }
}

.qris-guide-box {
  background: var(--card-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--text-soft);
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.qris-guide-box ol {
  margin: 6px 0 0;
  padding-left: 18px;
  line-height: 1.5;
}

.qris-actions-row {
  display: flex;
  gap: 10px;
  width: 100%;
}

.btn-check-qris {
  flex: 1;
  background: var(--accent-strong);
  color: #fff;
  border: 0;
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-check-qris:hover {
  background: var(--accent);
}

.btn-cancel-qris {
  background: var(--card-2);
  color: var(--text-soft);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 13.5px;
  cursor: pointer;
}

.qris-success-view {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  padding: 20px 0;
}

.qris-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #dcfce7;
  color: #16a34a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  animation: scaleInCheck .3s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

@keyframes scaleInCheck {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

.qris-timer-box {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #991b1b;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
}

.timer-digits {
  font-family: monospace;
  font-weight: 800;
  font-size: 13.5px;
  color: #b91c1c;
}

.qris-canvas-wrap {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.qris-canvas-wrap canvas,
.qris-canvas-wrap img {
  width: 220px !important;
  height: 220px !important;
  display: block;
}

.btn-download-qris {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin-top: 10px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  border: 1px solid var(--accent);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .15s ease;
}

.btn-download-qris:hover {
  background: var(--accent);
  color: #ffffff;
}

.qris-expired-view {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: 20px 0;
}

.qris-expired-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #fee2e2;
  color: #dc2626;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
}

/* Clickable Pending History Items */
.history-item.pending-clickable {
  cursor: pointer;
  position: relative;
  transition: all .2s ease;
  border-radius: 10px;
  padding: 10px 8px;
}

.history-item.pending-clickable:hover {
  background: var(--card-2);
  transform: translateY(-1px);
}

.history-badge-pending {
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 3px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.history-item-action {
  font-size: 11px;
  color: var(--accent-strong);
  font-weight: 700;
  margin-top: 4px;
  display: block;
}
.btn-confirm-topup {
  width: 100%;
  background: var(--accent);
  color: #fff;
  border: 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 12px;
  box-shadow: var(--shadow-accent);
  transition: background .15s;
  cursor: pointer;
}

.btn-confirm-topup:hover {
  background: var(--accent-press);
}

.btn-confirm-topup:active {
  transform: scale(0.98);
}

/* ============================================================
   TOAST (Megamon Copied/Alert Toast)
   ============================================================ */
.jaaKgY {
  display: none;
  opacity: 0;
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10000;
  background: var(--accent-strong);
  color: #fff;
  font: 700 13px/1 var(--font-body);
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: 0 14px 32px -8px rgba(14,159,110,.55);
  transition: opacity .2s ease;
  white-space: nowrap;
}

.jaaKgY::before {
  content: "\2713  ";
  font-weight: 800;
}

/* ============================================================
   FOOTER (Megamon Style V5 - Unified & Centered)
   ============================================================ */
.v5-foot {
  padding: 26px 18px 34px;
  border-top: 1px solid var(--border);
  background: var(--bg-2);
  margin-top: auto;
  width: 100%;
  box-sizing: border-box;
}

.v5f-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  width: 100%;
  margin: 0 auto;
}

.v5f-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 10px;
}

.v5f-links a,
.v5f-row a {
  font-family: var(--font-body);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color .15s ease;
  padding: 2px 4px;
}

.v5f-links a:hover,
.v5f-row a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

.v5f-dot {
  color: var(--border-strong);
  font-size: 11px;
  user-select: none;
  opacity: 0.7;
}

.v5-foot .bq,
.v5f-row .bq {
  width: 100%;
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--text-faint);
  text-align: center;
  line-height: 1.6;
}

.v5-foot .bq strong,
.v5f-row .bq strong {
  color: var(--text-soft);
  font-weight: 700;
}

.v5-foot .bq a,
.v5f-row .bq a {
  color: var(--accent-strong);
  text-decoration: none;
}

.v5-foot .bq a:hover,
.v5f-row .bq a:hover {
  text-decoration: underline;
}

/* ============================================================
   AUTH & LOGIN MODAL STYLES
   ============================================================ */
.fun-btn-v3 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  background: var(--accent-strong);
  padding: 11px 18px;
  border-radius: 12px;
  box-shadow: var(--shadow-accent);
  transition: all .15s ease;
  text-decoration: none;
}

.fun-btn-v3:hover {
  background: var(--accent);
  color: #fff;
}

.fun-btn-v3:active {
  transform: scale(0.98);
}

.fun-btn-v3.fluid {
  width: 100%;
}

.fun-btn-v3.sm {
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 9px;
}

.fun-btn-v3.short {
  padding: 6px 14px;
  font-size: 12px;
  border-radius: 8px;
}

.user-chip-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 5px 12px;
  border-radius: 20px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  transition: all .15s;
}

.user-chip-btn:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
  color: var(--accent-strong);
}

.v5-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}

.v5-card-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px -10px rgba(14,159,110,.45);
}

.v5-card-cta .fun-btn-v3 {
  background: #ffffff !important;
  color: var(--accent-strong) !important;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
  transition: all .15s;
}

.v5-card-cta:hover .fun-btn-v3 {
  background: #f0fdf4 !important;
  color: var(--accent-press) !important;
  transform: translateX(2px);
}

.guest-badge-pill {
  font: 700 10.5px/1 var(--font-display);
  padding: 4px 9px;
  border-radius: 99px;
  background: rgba(255,255,255,.2);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
}

.login-action-link {
  font-weight: 800;
  text-decoration: underline;
  color: #fff;
  cursor: pointer;
}

/* Guest Alert Banner */
.guest-alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-left: 4px solid var(--accent);
  border-radius: 12px;
  padding: 12px 14px;
  margin-top: -6px;
  margin-bottom: 6px;
}

.gab-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gab-text strong {
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent-strong);
}

.gab-text span {
  font-size: 11.5px;
  color: var(--text-soft);
  line-height: 1.3;
}

/* Login Modal Inputs & Form */
.login-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.login-field label {
  font: 700 11px/1 var(--font-display);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.login-field .form-control {
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 13.5px;
  color: var(--text);
  background: #fff;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}

.login-field .form-control:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-wash);
}

.btn-toggle-pw {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: 0;
  color: var(--text-faint);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.btn-toggle-pw:hover {
  color: var(--text);
}

.login-error-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  font-size: 12.5px;
  font-weight: 600;
  padding: 9px 12px;
  border-radius: 8px;
  margin-top: 12px;
}

.quick-trainer-box {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

.qtb-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
}

.btn-quick-fill {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 8px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  transition: all .15s;
}

.btn-quick-fill:hover {
  background: var(--accent-wash);
  color: var(--accent-strong);
  border-color: var(--accent);
}

.btn-logout {
  width: 100%;
  background: #fff;
  border: 1px solid #fca5a5;
  color: #dc2626;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: all .15s;
  margin-top: 14px;
}

.btn-logout:hover {
  background: #fef2f2;
  border-color: #ef4444;
}


/* ============================================================
   SIMPLE PAGE HEADER (Legal & Support pages)
   ============================================================ */
#header-3 {
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, .95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
}

#header-3 .box-inner {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  gap: 14px;
  justify-content: flex-start;
  max-width: var(--shell);
  margin: 0 auto;
}

#header-3 h1 {
  margin: 0;
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -.02em;
}

.f-ico-back {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border: 1px solid var(--border-strong);
  border-radius: 99px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  transition: all .15s ease;
  text-decoration: none;
  font-size: 16px;
  font-weight: 800;
}

.f-ico-back:hover {
  border-color: var(--accent);
  color: var(--accent-strong);
  background: var(--accent-wash);
  transform: translateX(-2px);
}

.f-ico-back::before {
  content: "←";
}

/* ============================================================
   LEGAL & SUPPORT PAGES CONTENT
   ============================================================ */
.legal-main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: 24px 20px 48px;
  color: var(--text);
  flex: 1 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.legal-kicker {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--accent-strong);
  margin: 0 0 6px;
}

.legal-main h1 {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 6px;
  color: var(--text);
}

.legal-updated {
  font-size: 12px;
  color: var(--text-faint);
  margin: 0 0 22px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.legal-main article {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legal-main h2 {
  font-size: 17px;
  font-weight: 800;
  margin-top: 22px;
  margin-bottom: 6px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
}

.legal-main p, .legal-main li {
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 0 0 10px;
}

.legal-main ul, .legal-main ol {
  padding-left: 20px;
  margin: 4px 0 14px;
}

.legal-main li {
  margin-bottom: 6px;
}

.legal-main strong {
  color: var(--text);
}

.legal-main a {
  color: var(--accent-strong);
  text-decoration: underline;
}

.legal-main a:hover {
  color: var(--accent-press);
}

.legal-main a.fun-btn-v3,
.legal-main a.support-contact-card {
  text-decoration: none !important;
}

.legal-main a.fun-btn-v3 {
  color: #ffffff !important;
  background: var(--accent-strong) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

.legal-main a.fun-btn-v3:hover {
  background: var(--accent) !important;
  color: #ffffff !important;
}

.legal-main a.support-contact-card {
  color: var(--text) !important;
}

.legal-note {
  background: var(--accent-wash);
  border-left: 3px solid var(--accent);
  padding: 13px 15px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  margin: 14px 0 18px;
}

.legal-note strong {
  color: var(--accent-strong);
}

/* Support Specific Components */
.support-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin: 16px 0 24px;
}

.support-contact-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text);
  transition: all .15s ease;
}

.support-contact-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}

.scc-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-wash);
  color: var(--accent-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex: 0 0 42px;
}

.scc-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.scc-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.scc-desc {
  font-size: 12px;
  color: var(--text-soft);
}

/* FAQ Accordion */
.faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color .15s;
}

.faq-item:hover {
  border-color: var(--border-strong);
}

.faq-question {
  padding: 14px 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  user-select: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 16px 14px;
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.6;
}
