/*
Theme Name: DiamondVault
Theme URI: https://diamond-swift-drop.lovable.app
Author: DiamondVault
Author URI: https://diamond-swift-drop.lovable.app
Description: A premium, dark-themed gaming WordPress theme for selling Mobile Legends diamond top-ups. Mobile-first, conversion-focused design with neon blue, purple, and gold accents.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diamondvault
Tags: dark, gaming, ecommerce, one-column, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, responsive
*/

/* ---------- Design Tokens ---------- */
:root {
  --background: #14121f;
  --foreground: #f5f3fb;
  --card: #1d1a2e;
  --card-2: #25213a;
  --muted: #2a2640;
  --muted-foreground: #a39cc2;
  --border: rgba(120, 100, 200, 0.25);
  --primary: #8b5cf6;
  --primary-foreground: #ffffff;
  --neon-blue: #3b9eff;
  --neon-purple: #a855f7;
  --gold: #f5c451;
  --radius: 14px;
  --shadow-purple: 0 10px 40px -10px rgba(168, 85, 247, 0.55);
  --shadow-blue: 0 10px 40px -10px rgba(59, 158, 255, 0.55);
  --gradient-neon: linear-gradient(135deg, #a855f7 0%, #3b9eff 100%);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--background);
  color: var(--foreground);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.55;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', system-ui, sans-serif;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

a { color: var(--neon-blue); text-decoration: none; }
a:hover { color: var(--gold); }

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(20, 18, 31, 0.75);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--foreground);
}
.logo-mark {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 10px;
  background: var(--gradient-neon);
  box-shadow: var(--shadow-purple);
  color: #fff;
  font-weight: 800;
}
.text-gradient {
  background: linear-gradient(110deg, var(--neon-blue), var(--neon-purple) 55%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.nav-list {
  display: flex; gap: 24px;
  list-style: none; margin: 0; padding: 0;
}
.nav-list a {
  color: var(--muted-foreground);
  font-size: .9rem;
}
.nav-list a:hover { color: var(--foreground); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-weight: 600;
  font-size: .92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, opacity .2s ease, box-shadow .2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--gradient-neon);
  color: #fff;
  box-shadow: var(--shadow-purple);
}
.btn-primary:hover { transform: translateY(-1px); opacity: .95; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--foreground);
  border-color: var(--border);
}
.btn-block { width: 100%; padding: 14px 18px; font-size: 1rem; }

.menu-toggle {
  display: none;
  background: transparent; border: 1px solid var(--border);
  color: #fff; padding: 8px 10px; border-radius: 8px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 80px 0 60px;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(168, 85, 247, .28), transparent 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(59, 158, 255, .22), transparent 70%);
  text-align: center;
  overflow: hidden;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 700;
  line-height: 1.1;
}
.hero p.lead {
  color: var(--muted-foreground);
  max-width: 640px; margin: 18px auto 28px;
  font-size: 1.05rem;
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust-badges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 56px;
}
.trust-badge {
  border: 1px solid var(--border);
  background: rgba(29, 26, 46, 0.6);
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  font-size: .85rem;
  color: var(--muted-foreground);
}
.trust-badge strong { display: block; color: var(--foreground); margin-bottom: 4px; }

/* ---------- Sections ---------- */
.section { padding: 64px 0; }
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  text-align: center;
  margin-bottom: 8px;
}
.section .sub {
  text-align: center; color: var(--muted-foreground);
  max-width: 600px; margin: 0 auto 36px;
}

/* ---------- Amount Selector ---------- */
.amount-card {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(29, 26, 46, 0.7);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 28px;
  box-shadow: var(--shadow-purple);
}
.diamonds-display {
  text-align: center;
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
}
.diamonds-display .label {
  display: block;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted-foreground);
  margin-top: 6px;
  font-weight: 500;
}
.amount-input-wrap { position: relative; margin-top: 24px; }
.amount-input-wrap .currency {
  position: absolute; left: 14px; top: 50%;
  transform: translateY(-50%);
  color: var(--gold); font-weight: 700;
  font-family: 'Space Grotesk', sans-serif; font-size: 1.1rem;
}
.amount-input {
  width: 100%;
  height: 52px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  padding: 0 16px 0 32px;
  font-size: 1.1rem; font-weight: 600;
  outline: none;
}
.amount-input:focus { border-color: var(--neon-purple); }

.range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: linear-gradient(to right, var(--neon-purple), var(--neon-blue));
  border-radius: 999px;
  margin-top: 22px;
  outline: none;
}
.range::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--neon-purple);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(168, 85, 247, .5);
}
.range::-moz-range-thumb {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--neon-purple);
  cursor: pointer;
}
.range-scale {
  display: flex; justify-content: space-between;
  font-size: .72rem; color: var(--muted-foreground);
  margin-top: 8px;
}
.quick-amounts {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 22px;
}
.quick-amounts button {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(20,18,31,.6);
  color: var(--foreground);
  font-weight: 600; font-size: .85rem;
  cursor: pointer; transition: all .15s ease;
}
.quick-amounts button:hover { border-color: var(--neon-blue); }
.quick-amounts button.active {
  background: var(--gradient-neon);
  border-color: transparent;
  color: #fff;
}

/* ---------- How It Works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.step {
  background: rgba(29,26,46,.6);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.step .num {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--gradient-neon);
  color: #fff; font-weight: 700;
  margin-bottom: 12px;
}

/* ---------- FAQ ---------- */
.faq { max-width: 720px; margin: 0 auto; }
.faq details {
  background: rgba(29,26,46,.6);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  padding: 16px 20px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq details[open] { box-shadow: var(--shadow-blue); }
.faq p { color: var(--muted-foreground); margin: 10px 0 0; }

/* ---------- Forms / Checkout ---------- */
.checkout-wrap {
  max-width: 880px;
  margin: 0 auto;
  display: grid;
  gap: 24px;
}
.form-card {
  background: rgba(29,26,46,.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.form-card h3 {
  font-size: 1.1rem;
  margin-bottom: 18px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 14px;
}
.form-row.single { grid-template-columns: 1fr; }
.form-field label {
  display: block;
  font-size: .82rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--muted-foreground);
  letter-spacing: .02em;
}
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--muted);
  color: var(--foreground);
  font: inherit;
  outline: none;
  transition: border-color .15s ease;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus { border-color: var(--neon-purple); }
.form-field textarea { min-height: 90px; resize: vertical; }

.checkbox-row {
  display: flex; align-items: center; gap: 10px;
  margin: 8px 0;
  font-size: .92rem;
  color: var(--muted-foreground);
}
.checkbox-row input { width: 18px; height: 18px; accent-color: var(--neon-purple); }

.hidden { display: none !important; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 80px;
  border-top: 1px solid var(--border);
  background: rgba(20,18,31,.6);
  padding: 40px 0 20px;
  color: var(--muted-foreground);
  font-size: .9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 30px;
}
.footer-grid h4 { color: var(--foreground); margin-bottom: 10px; font-size: 1rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-bottom {
  margin-top: 30px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: .78rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .nav-list { display: none; }
  .menu-toggle { display: inline-block; }
  .nav-list.open {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--background); padding: 18px 20px;
    border-bottom: 1px solid var(--border);
  }
  .trust-badges { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .header-cta { display: none; }
}
