/*
Theme Name: DiamondVault
Theme URI: https://diamond-swift-drop.lovable.app
Author: Desiree Collective Sp. z O.O.
Author URI: https://diamond-swift-drop.lovable.app
Description: DiamondVault is a premium, dark-themed gaming WordPress theme for Mobile Legends diamond top-up stores. Features a custom amount selector, full KYC checkout, GDPR cookie consent and complete legal pages — optimized for conversion, speed and trust.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: diamondvault
Tags: dark, one-column, custom-colors, custom-menu, custom-logo, featured-images, threaded-comments, translation-ready, e-commerce
*/
/* ===== Design Tokens ===== */
:root {
  --bg: #0d0b1e;
  --bg-2: #15122b;
  --card: #1b1736;
  --card-2: #221c44;
  --border: rgba(160, 130, 255, 0.18);
  --text: #f3f1ff;
  --muted: #a6a1c8;
  --neon-blue: #38bdf8;
  --neon-purple: #a855f7;
  --neon-purple-2: #7c3aed;
  --gold: #fbbf24;
  --danger: #ef4444;
  --success: #22c55e;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow-glow: 0 10px 40px -10px rgba(168, 85, 247, 0.55);
  --gradient-neon: linear-gradient(135deg, #a855f7 0%, #38bdf8 100%);
  --gradient-gold: linear-gradient(135deg, #fbbf24 0%, #f59e0b 100%);
  --font-display: "Space Grotesk", system-ui, -apple-system, Segoe UI, sans-serif;
  --font-sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}
/* ===== Reset / Base ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(60% 50% at 50% 0%, rgba(168,85,247,.25), transparent 70%),
    radial-gradient(40% 40% at 80% 30%, rgba(56,189,248,.18), transparent 70%);
  background-attachment: fixed;
}
h1, h2, h3, h4, h5 { font-family: var(--font-display); letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.1; }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1em; color: var(--text); }
a { color: var(--neon-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--neon-purple); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.text-gradient {
  background: var(--gradient-neon);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.muted { color: var(--muted); }
.section { padding: 64px 0; }
@media (min-width: 768px) { .section { padding: 96px 0; } }
/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; cursor: pointer; transition: all .2s;
  text-decoration: none;
}
.btn-primary { background: var(--gradient-neon); color: #fff; box-shadow: var(--shadow-glow); }
.btn-primary:hover { opacity: .94; transform: translateY(-1px); color: #fff; }
.btn-outline { background: rgba(255,255,255,.04); color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--neon-blue); color: var(--text); }
.btn-block { 
  width: 100%; 
  display: flex;
  padding: .75rem 1.25rem;
  height: 48px;
}

.btn-block svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ===== Main Nav – WordPress menu structure ===== */
.main-nav {
  display: none;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

@media (min-width: 900px) {
  .main-nav { display: flex; }
}

.main-nav .menu-item {
  margin: 0;
  padding: 0;
  list-style: none;
}

.main-nav .menu-item a {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .2s;
  white-space: nowrap;
}

.main-nav .menu-item a:hover,
.main-nav .current-menu-item > a,
.main-nav .current_page_item > a {
  color: var(--text);
}

.main-nav .menu-item a[href*="checkout"] {
  color: var(--neon-blue);
  font-weight: 600;
}

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(13, 11, 30, 0.72);
  border-bottom: 1px solid var(--border);
}
.site-header .inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--text); }
.brand-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: var(--gradient-neon); display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-glow);
}
.brand-mark svg { width: 18px; height: 18px; }
.main-nav { display: none; gap: 1.5rem; }
.main-nav a { color: var(--muted); font-size: .9rem; font-weight: 500; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--text); }
@media (min-width: 900px) {
  .main-nav { display: flex; }
}
.menu-toggle {
  background: transparent; border: 1px solid var(--border); color: var(--text);
  padding: .5rem .7rem; border-radius: 8px; cursor: pointer;
}
@media (min-width: 900px) { .menu-toggle { display: none; } }
.mobile-nav { display: none; padding: 1rem 0; border-top: 1px solid var(--border); }
.mobile-nav.open { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .25rem; }
.mobile-nav a { display: block; padding: .65rem .75rem; border-radius: 8px; color: var(--muted); }
.mobile-nav a:hover { background: rgba(255,255,255,.04); color: var(--text); }
/* ===== Hero ===== */
.hero { position: relative; padding: 80px 0 40px; text-align: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .35rem .8rem; border: 1px solid var(--border);
  background: rgba(255,255,255,.04); border-radius: 999px;
  font-size: .78rem; color: var(--muted);
}
.hero p.lead { max-width: 640px; margin: 1.25rem auto 2rem; color: var(--muted); font-size: 1.05rem; }
.hero .ctas { display: flex; gap: .75rem; flex-wrap: wrap; justify-content: center; }
.trust-row { margin-top: 3rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 768px) { .trust-row { grid-template-columns: repeat(4, 1fr); } }
.trust-card {
  display: flex; align-items: center; gap: .75rem; text-align: left;
  padding: .85rem 1rem; border: 1px solid var(--border);
  background: rgba(27, 23, 54, 0.6); border-radius: var(--radius);
}
.trust-icon {
  width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px;
  background: var(--gradient-neon); display: grid; place-items: center; color: #fff;
}
.trust-icon svg { width: 18px; height: 18px; }
.trust-card .lab { font-weight: 600; font-size: .9rem; }
.trust-card .sub { font-size: .75rem; color: var(--muted); }
/* ===== Amount Selector ===== */
.amount-wrap {
  max-width: 640px; margin: 0 auto; padding: 28px;
  border: 1px solid var(--border); border-radius: 20px;
  background: rgba(27, 23, 54, 0.7); box-shadow: var(--shadow-glow);
}
.amount-readout { text-align: center; margin-bottom: 1.5rem; }
.gem-badge {
  width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 18px;
  background: rgba(56,189,248,.15); display: grid; place-items: center;
  border: 1px solid rgba(56,189,248,.3); color: var(--neon-blue);
}
.gem-badge svg { width: 28px; height: 28px; }
.diamonds-big { font-family: var(--font-display); font-size: clamp(2rem, 6vw, 3rem); font-weight: 700; }
.diamonds-big .lab { font-size: .85rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .1em; margin-left: .35rem; }
.amount-label { display: block; text-transform: uppercase; letter-spacing: .1em; font-size: .72rem; color: var(--muted); margin-bottom: .5rem; }
.amount-input-row { position: relative; }
.amount-input-row .cur {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  font-family: var(--font-display); font-weight: 700; color: var(--gold); font-size: 1.1rem;
}
.amount-input-row input[type="number"], .amount-input-row input[type="text"] {
  width: 100%; height: 48px; padding: 0 14px 0 32px; font-size: 1.1rem; font-weight: 600;
  background: var(--card); border: 1px solid var(--border); color: var(--text);
  border-radius: var(--radius-sm); font-family: var(--font-display);
}
.amount-range { width: 100%; margin-top: 1.25rem; }
input[type="range"] {
  -webkit-appearance: none; width: 100%; height: 6px; border-radius: 999px;
  background: linear-gradient(90deg, var(--neon-purple), var(--neon-blue));
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--neon-purple); cursor: pointer;
  box-shadow: 0 0 10px rgba(168,85,247,.6);
}
input[type="range"]::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  background: #fff; border: 2px solid var(--neon-purple); cursor: pointer;
}
.range-marks { display: flex; justify-content: space-between; font-size: .7rem; color: var(--muted); margin-top: .35rem; }
.quick-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.chip {
  padding: .4rem .9rem; border-radius: 999px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03); color: var(--text); font-weight: 600;
  font-size: .85rem; cursor: pointer; transition: all .2s;
}
.chip:hover { border-color: var(--neon-blue); }
.chip.active { background: var(--gradient-neon); border-color: transparent; color: #fff; }
/* ===== Cards / Grids ===== */
.card {
  background: rgba(27, 23, 54, 0.65); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
}
.grid-3 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }
/* ===== How it works ===== */
.step-card { position: relative; overflow: hidden; }
.step-card .num {
  position: absolute; right: -10px; top: -20px;
  font-family: var(--font-display); font-weight: 700; font-size: 5rem;
  color: rgba(168,85,247,.15); pointer-events: none;
}
.step-icon {
  width: 44px; height: 44px; border-radius: 12px; background: var(--gradient-neon);
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-glow);
  margin-bottom: 1rem;
}
/* ===== FAQ ===== */
.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: .6rem; background: rgba(27,23,54,.6); }
.faq-item summary { padding: 1rem 1.2rem; cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: '+'; font-size: 1.25rem; color: var(--muted); transition: transform .2s; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item .answer { padding: 0 1.2rem 1.1rem; color: var(--muted); }
/* ===== Checkout ===== */
.checkout-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .checkout-grid { grid-template-columns: 1.5fr 1fr; } }
.field-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .field-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .8rem; font-weight: 600; color: var(--muted); margin-bottom: .35rem; text-transform: uppercase; letter-spacing: .08em; }
.field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=number], .field select, .field textarea {
  width: 100%; padding: .75rem .9rem; background: var(--card); border: 1px solid var(--border);
  color: var(--text); border-radius: var(--radius-sm); font-family: inherit; font-size: .95rem;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--neon-blue); box-shadow: 0 0 0 3px rgba(56,189,248,.18); }
.field textarea { min-height: 90px; resize: vertical; }
.check-row { display: flex; align-items: flex-start; gap: .55rem; margin: .25rem 0; }
.check-row input[type=checkbox] { margin-top: 3px; accent-color: var(--neon-purple); }
.check-row label { text-transform: none; letter-spacing: 0; color: var(--text); font-size: .9rem; font-weight: 500; margin: 0; }
.section-title {
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  margin: 1.5rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid var(--border);
}
.summary { position: sticky; top: 90px; }
.summary .row { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px dashed var(--border); }
.summary .row:last-child { border-bottom: none; }
.summary .total { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; }
.trust-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .5rem;
  margin-top: 1rem;
}

.trust-badges span {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  padding: .55rem .75rem;
  border-radius: 999px;
  background: rgba(34, 197, 94, .1);
  border: 1px solid rgba(34, 197, 94, .3);
  color: #86efac;
  font-size: .78rem;
  font-weight: 600;
  white-space: nowrap;
}
.trust-badges span svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.payment-methods { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
@media (min-width: 480px) { .payment-methods { grid-template-columns: repeat(4, 1fr); } }
.pay-opt {
  display: flex; align-items: center; justify-content: center;
  padding: .9rem .5rem; border: 1px solid var(--border); border-radius: var(--radius-sm);
  cursor: pointer; background: var(--card); font-weight: 600; font-size: .85rem;
  transition: all .2s;
}
.pay-opt input { display: none; }
.pay-opt.selected { border-color: var(--neon-blue); background: rgba(56,189,248,.08); box-shadow: 0 0 0 2px rgba(56,189,248,.2); }
/* ===== Pages (legal etc) ===== */
.page-content { max-width: 820px; margin: 0 auto; }
.page-content h2 { margin-top: 2rem; }
.page-content ul { padding-left: 1.2rem; color: var(--text); }
.page-content li { margin-bottom: .5rem; }
/* ===== Footer ===== */
.site-footer { margin-top: 6rem; background: rgba(13,11,30,.6); border-top: 1px solid var(--border); }
.footer-grid { display: grid; gap: 2rem; padding: 3rem 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: .95rem; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: .5rem; }
.footer-grid a { color: var(--muted); font-size: .9rem; }
.footer-grid a:hover { color: var(--text); }
.legal-bar {
  border-top: 1px solid var(--border); padding: 1.5rem 0; font-size: .8rem; color: var(--muted);
}
.legal-bar p { margin: .25rem 0; }
/* ===== Cookie Banner ===== */
.cookie-banner {
  position: fixed; bottom: 16px; left: 16px; right: 16px; max-width: 520px;
  background: rgba(27,23,54,.95); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.1rem; backdrop-filter: blur(12px);
  z-index: 100; box-shadow: 0 20px 60px rgba(0,0,0,.5);
  display: none;
}
.cookie-banner.show { display: block; }
.cookie-banner p { font-size: .85rem; margin: 0 0 .8rem; color: var(--muted); }
.cookie-banner .row { display: flex; gap: .5rem; flex-wrap: wrap; }
.cookie-banner .btn { padding: .55rem 1rem; font-size: .85rem; }
/* ===== Forms feedback ===== */
.notice { padding: .9rem 1rem; border-radius: var(--radius-sm); margin-bottom: 1rem; font-size: .9rem; }
.notice.success { background: rgba(34,197,94,.1); border: 1px solid rgba(34,197,94,.3); color: #86efac; }
.notice.error { background: rgba(239,68,68,.1); border: 1px solid rgba(239,68,68,.3); color: #fca5a5; }
/* ===== Misc ===== */
.center { text-align: center; }
.mt-2 { margin-top: .5rem; } .mt-4 { margin-top: 1rem; } .mt-6 { margin-top: 1.5rem; } .mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: .5rem; } .mb-4 { margin-bottom: 1rem; }
.hidden { display: none !important; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; padding: .5rem 1rem; background: var(--card); border-radius: 8px; z-index: 1000; }