/* ── Mantaso Rewards – Main Stylesheet ──────────────────────────────────────── */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Rajdhani:wght@600;700&display=swap');

/* ══════════════════════════════════════════════════════════════════════════════
   DESIGN TOKENS
══════════════════════════════════════════════════════════════════════════════ */
:root {
  /* Backgrounds — deep premium purple, not black */
  --bg:        #120d1e;
  --bg-2:      #171124;
  --bg-card:   #1c162b;
  --bg-card-2: #231b35;

  /* Orange — primary accent */
  --orange:    #ff9a1f;
  --orange-2:  #ffaa2b;

  /* Purple — secondary accent */
  --purple:    #7c3cff;
  --purple-2:  #a855f7;

  /* Alias kept so existing var(--gold) refs in HTML still work */
  --gold:      #ff9a1f;
  --gold-light:#ffaa2b;

  /* Gradients */
  --grad:         linear-gradient(135deg, #ffaa2b 0%, #ff8a00 100%);
  --grad-purple:  linear-gradient(135deg, #7c3cff 0%, #a855f7 100%);
  --grad-subtle:  linear-gradient(135deg, rgba(255,138,0,.06) 0%, rgba(255,106,0,.06) 100%);

  /* Text */
  --text:       #f0eeff;
  --text-muted: #9e97b8;
  --text-dim:   #4a4468;

  /* Borders — warm orange tint on purple */
  --border:       rgba(255,170,40,.15);
  --border-hover: rgba(255,170,40,.35);

  /* Glows — soft orange, not neon */
  --glow:        0 8px 24px rgba(255,153,34,.18);
  --glow-strong: 0 12px 32px rgba(255,153,34,.24);
  --shadow:      0 8px 32px rgba(0,0,0,.55);

  /* Layout */
  --radius:    14px;
  --radius-sm:  8px;
  --nav-h:     68px;
}

/* ══════════════════════════════════════════════════════════════════════════════
   RESET
══════════════════════════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
  /* Subtle purple gradient — barely noticeable, no blobs */
  background: linear-gradient(180deg, #181126 0%, #120d1e 45%, #0f0a18 100%);
  background-attachment: fixed;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; font-family: inherit; }
input, select, textarea { font-family: inherit; }

/* ── Scrollbar ──────────────────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(255,138,0,.2); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,138,0,.4); }

/* ── Gradient text ──────────────────────────────────────────────────────────── */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.gradient-text-purple {
  background: var(--grad-purple);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══════════════════════════════════════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  transition: all .2s ease;
  border: none;
  outline: none;
  white-space: nowrap;
  cursor: pointer;
}

/* Primary — orange, reduced glow */
.btn-primary {
  background: var(--grad);
  color: #fff;
  box-shadow: 0 2px 10px rgba(255,138,0,.18);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(255,138,0,.30);
}

/* Secondary — purple */
.btn-secondary {
  background: var(--grad-purple);
  color: #fff;
  box-shadow: 0 2px 10px rgba(124,60,255,.16);
}
.btn-secondary:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(124,60,255,.28);
}

/* Outline */
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 1.5px solid rgba(255,138,0,.40);
}
.btn-outline:hover {
  background: rgba(255,138,0,.08);
  border-color: rgba(255,138,0,.60);
}

/* Ghost */
.btn-ghost {
  background: rgba(255,255,255,.04);
  color: var(--text-muted);
  border: 1px solid rgba(255,255,255,.08);
}
.btn-ghost:hover {
  background: rgba(255,255,255,.07);
  border-color: rgba(255,255,255,.14);
  color: var(--text);
}

.btn-sm  { padding: 8px 18px;  font-size: .78rem; }
.btn-lg  { padding: 14px 36px; font-size: .95rem; }

/* ── Card base ──────────────────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.card:hover {
  border-color: var(--border-hover);
  box-shadow: var(--glow);
}

/* ══════════════════════════════════════════════════════════════════════════════
   NAVBAR
══════════════════════════════════════════════════════════════════════════════ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-h);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 36px;
  background: rgba(16,11,26,.94);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.05);
}

.navbar-brand {
  justify-self: start;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-img-wrap {
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,138,0,.35);
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.brand-img-wrap img { width: 100%; height: 100%; object-fit: cover; }
.brand-fallback { font-size: 1rem; }
.brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.navbar-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 4px;
}
.navbar-links a {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: .84rem;
  color: var(--text-muted);
  transition: all .18s;
  white-space: nowrap;
  letter-spacing: .01em;
}
.navbar-links a:hover  { color: var(--text); background: rgba(255,255,255,.05); }
.navbar-links a.active { color: var(--orange); background: rgba(255,138,0,.08); }

/* Social icon buttons — navbar right */
.navbar-right {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-left: 16px;
}
.social-btn {
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255,138,0,.22);
  background: rgba(29,22,41,.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 220ms cubic-bezier(.34,1.56,.64,1), border-color 220ms, box-shadow 220ms;
}
.social-btn:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(255,138,0,.65);
  box-shadow: 0 0 14px rgba(255,138,0,.25);
}
.social-btn .social-logo-img {
  width: 20px; height: 20px;
  object-fit: contain;
  display: block;
}

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  justify-self: end;
}
.hamburger span { display: block; width: 21px; height: 2px; background: var(--text-muted); border-radius: 2px; transition: all .28s; }

@media (max-width: 768px) {
  .navbar { padding: 0 18px; grid-template-columns: auto 1fr auto; }
  .hamburger { display: flex; grid-column: 3; }
  .navbar-links {
    display: none;
    position: fixed;
    top: var(--nav-h); left: 0; right: 0;
    background: #140f20;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 10px 14px;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    z-index: 999;
  }
  .navbar-links.open { display: flex; }
  .navbar-right {
    display: none;
    position: fixed;
    top: calc(var(--nav-h) + 170px); left: 0; right: 0;
    background: #140f20;
    border-bottom: 1px solid rgba(255,255,255,.06);
    padding: 12px 14px;
    flex-direction: row;
    gap: 8px;
    z-index: 999;
    justify-self: unset;
  }
  .navbar-right.open { display: flex; }
}

/* ══════════════════════════════════════════════════════════════════════════════
   HERO — clean, no background effects
══════════════════════════════════════════════════════════════════════════════ */
.hero {
  padding: calc(var(--nav-h) + 60px) 24px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Very subtle top glow — nothing dramatic */
.hero-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,138,0,.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-brand-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 20px;
}
.hero-brand-avatar {
  width: 64px; height: 64px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255,138,0,.35);
  flex-shrink: 0;
  background: var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-brand-avatar img { width: 100%; height: 100%; object-fit: cover; }
.hero-avatar-fallback { font-size: 1.8rem; }

.hero-brand-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}

.hero-subtitle {
  font-size: .92rem;
  color: var(--text-muted);
  max-width: 380px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ══════════════════════════════════════════════════════════════════════════════
   SITE CARDS SECTION
══════════════════════════════════════════════════════════════════════════════ */
.cards-section {
  padding: 40px 24px 64px;
  max-width: 1060px;
  margin: 0 auto;
}

.play-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

/* ── Card ─────────────────────────────────────────────────────────────────── */
.play-card {
  width: 314px;
  flex: 0 0 314px;
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.play-card:hover {
  transform: translateY(-6px) scale(1.02);
  border-color: rgba(255,170,40,.35);
  box-shadow: 0 20px 50px rgba(0,0,0,.45), 0 0 30px rgba(255,155,30,.10);
}

/* Thin orange top accent on hover */
.play-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: var(--grad);
  z-index: 2;
  opacity: 0;
  transition: opacity .22s ease;
}
.play-card:hover::before { opacity: 1; }

/* Banner image area */
.play-card-banner {
  width: 100%;
  height: 210px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
  border-radius: var(--radius) var(--radius) 0 0;
}
.play-card-banner img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 28px;
  display: block;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  transform: translateZ(0);
  transition: transform .22s ease;
}
.play-card:hover .play-card-banner img { transform: translateZ(0) scale(1.05); }

/* Placeholder when no banner */
.play-card-banner-ph {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.play-card-banner-ph-icon { font-size: 2.4rem; opacity: .18; }
.play-card-banner-ph-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* Card body — perks */
.play-card-body {
  flex: 1;
  padding: 16px 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.play-card-perks { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.play-card-perks li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .83rem;
  color: var(--text-muted);
  line-height: 1.4;
}
.play-card-perks li i { color: var(--orange); font-size: .65rem; flex-shrink: 0; width: 12px; }

/* Card footer */
.play-card-foot { padding: 0 20px 20px; margin-top: auto; }
.play-card-foot .btn { width: 100%; padding: 11px 20px; }

/* ── Responsive cards ───────────────────────────────────────────────────────── */
@media (max-width: 700px) {
  .play-card { width: 100%; flex: 0 0 100%; max-width: 360px; }
  .cards-section { padding: 24px 16px 48px; }
}
@media (min-width: 701px) and (max-width: 1000px) {
  .play-card { width: calc(50% - 10px); flex: 0 0 calc(50% - 10px); }
}

/* ══════════════════════════════════════════════════════════════════════════════
   SOCIAL SECTION — blends into page, separated by thin border only
══════════════════════════════════════════════════════════════════════════════ */
.social-section {
  padding: 60px 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  text-align: center;
}
.social-section-title {
  font-family: 'Rajdhani', sans-serif;
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.social-section-sub { color: var(--text-muted); font-size: .88rem; margin-bottom: 32px; }

.social-links-row { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

.social-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-weight: 600;
  font-size: .88rem;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  text-decoration: none;
  color: var(--text-muted);
}
.social-card .social-logo-img {
  width: 22px; height: 22px;
  object-fit: contain;
  flex-shrink: 0;
}
.social-card span { font-weight: 600; font-size: .88rem; }
.social-card:hover {
  color: var(--text);
  border-color: rgba(255,138,0,.45);
  box-shadow: 0 0 16px rgba(255,138,0,.15);
  transform: translateY(-2px);
}

.footer-social-btn .social-logo-img {
  width: 16px; height: 16px;
  object-fit: contain;
  display: block;
}
.footer-social-btn i { font-size: .85rem; color: var(--text-muted); }
.footer-social-btn:hover i { color: var(--orange); }

.social-btn i { font-size: .9rem; color: var(--text-muted); }
.social-btn:hover i { color: var(--orange); }

/* ══════════════════════════════════════════════════════════════════════════════
   FOOTER — blends into page, thin border separator
══════════════════════════════════════════════════════════════════════════════ */
.site-footer {
  border-top: 1px solid rgba(255,255,255,.05);
  padding: 56px 40px 0;
}
.footer-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2.2fr 1fr 1.4fr 1.2fr;
  gap: 48px;
  padding-bottom: 48px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  text-decoration: none;
}
.footer-brand-img {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(255,138,0,.30);
  background: var(--bg-card-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.footer-brand-img img { width: 100%; height: 100%; object-fit: cover; }
.footer-brand-name {
  font-family: 'Rajdhani', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  background: var(--grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.footer-brand-desc { font-size: .81rem; color: var(--text-muted); line-height: 1.6; max-width: 240px; margin-bottom: 16px; }

.footer-socials { display: flex; gap: 8px; }
.footer-social-btn {
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid rgba(255,138,0,.20);
  background: rgba(29,22,41,.7);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 220ms cubic-bezier(.34,1.56,.64,1), border-color 220ms, box-shadow 220ms;
}
.footer-social-btn:hover {
  transform: scale(1.08) translateY(-2px);
  border-color: rgba(255,138,0,.55);
  box-shadow: 0 0 10px rgba(255,138,0,.20);
}

.footer-col-title {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 9px;
  transition: color .18s;
}
.footer-col a:hover { color: var(--text); }
.footer-col-text { font-size: .81rem; color: var(--text-muted); line-height: 1.55; margin-bottom: 12px; }

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 50px;
  font-size: .7rem;
  font-weight: 600;
  color: var(--text-dim);
  margin-right: 6px;
}

.footer-contact-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .83rem;
  color: var(--text-muted);
  margin-bottom: 8px;
  transition: color .18s;
}
.footer-contact-link i { color: var(--text-dim); width: 14px; }
.footer-contact-link:hover { color: var(--text); }

.footer-bottom {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px 0 24px;
  border-top: 1px solid rgba(255,255,255,.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: .77rem;
  color: var(--text-dim);
}
.footer-bottom strong { color: var(--text-muted); font-weight: 600; }
.footer-bottom-right { color: var(--text-dim); }

@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } .site-footer { padding: 44px 24px 0; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 24px; } .footer-bottom { flex-direction: column; text-align: center; } }

/* ══════════════════════════════════════════════════════════════════════════════
   SHARED UTILITIES
══════════════════════════════════════════════════════════════════════════════ */
.divider { height: 1px; background: rgba(255,255,255,.05); }

.spinner {
  width: 32px; height: 32px;
  border: 2px solid rgba(255,138,0,.12);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  margin: 48px auto;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.fade-in { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* Toasts */
.toast-container { position: fixed; bottom: 22px; right: 22px; z-index: 9999; display: flex; flex-direction: column; gap: 9px; }
.toast {
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  font-size: .85rem;
  font-weight: 600;
  color: var(--text);
  box-shadow: 0 8px 24px rgba(0,0,0,.5);
  animation: slideUp .25s ease;
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 220px;
}
.toast.success { border-color: rgba(34,197,94,.35); }
.toast.error   { border-color: rgba(239,68,68,.35); }
.toast.success i { color: #22c55e; }
.toast.error   i { color: #ef4444; }
@keyframes slideUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Empty state */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); width: 100%; }
.empty-state i { font-size: 2.4rem; margin-bottom: 14px; opacity: .25; color: var(--orange); display: block; }
.empty-state h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text); }

/* Badges */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 50px; font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.badge-active   { background: rgba(34,197,94,.10); color: #22c55e; border: 1px solid rgba(34,197,94,.22); }
.badge-inactive { background: rgba(239,68,68,.08); color: #ef4444; border: 1px solid rgba(239,68,68,.18); }

/* Misc */
.section { padding: 60px 40px; max-width: 1200px; margin: 0 auto; }
@media (max-width: 768px) { .section { padding: 44px 18px; } }
.section-label { display: inline-block; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); margin-bottom: 10px; opacity: .7; }

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
