/* ================================================================
   FF DIAMOND HUB — style.css
   Theme: Premium Metallic Dark + Neon Cyan Gaming
   Created by Hasith
================================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:          #0d0f12;
  --bg-card:     #13161b;
  --bg-card-2:   #181c22;
  --border:      #252a33;
  --border-glow: #00e5ff33;

  --cyan:        #00e5ff;
  --cyan-dim:    #00b8cc;
  --cyan-glow:   #00e5ff22;
  --orange:      #ff6b00;

  --text:        #e8edf5;
  --text-muted:  #7a8699;
  --text-dim:    #4a5568;

  --font-display: 'Rajdhani', sans-serif;
  --font-body:    'Inter', sans-serif;

  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.2s ease;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── UTILITY ─────────────────────────────────────────────── */
.container {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 18px;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon svg {
  width: 32px;
  height: 32px;
}

.brand-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.5px;
}

.brand-accent { color: var(--cyan); }

.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-badge {
  font-size: 12px;
  color: var(--text-muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 3px 10px;
  border-radius: 20px;
}

.btn-admin {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-admin:hover {
  border-color: var(--cyan);
  color: var(--cyan);
}

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 80px 18px 60px;
  text-align: center;
  overflow: hidden;
}

/* Subtle grid background */
.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.18;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan);
  background: var(--cyan-glow);
  border: 1px solid var(--border-glow);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(38px, 8vw, 62px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1px;
  margin-bottom: 18px;
  color: var(--text);
}

.glow-text {
  color: var(--cyan);
  text-shadow: 0 0 30px #00e5ff55;
}

.hero-sub {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 420px;
  margin: 0 auto 40px;
  line-height: 1.65;
}

/* Steps */
.steps-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 200px;
  max-width: 240px;
  text-align: left;
}

.step-num {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
  opacity: 0.6;
  line-height: 1;
  flex-shrink: 0;
}

.step-text {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
}

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

.step-arrow {
  font-size: 22px;
  color: var(--text-dim);
}

@media (max-width: 480px) {
  .step-arrow { display: none; }
  .steps-row { gap: 10px; }
  .step-card { min-width: 100%; max-width: 100%; }
}

/* ── ORDER SECTION ───────────────────────────────────────── */
.order-section {
  padding: 20px 0 60px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

.section-sub {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.order-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 24px;
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-group { margin-bottom: 26px; }

.form-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.form-input {
  width: 100%;
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: var(--transition);
}

.form-input::placeholder { color: var(--text-dim); }

.form-input:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px var(--cyan-glow);
}

.form-input.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px #ff444422;
}

.input-hint {
  display: block;
  font-size: 12px;
  color: var(--text-dim);
  margin-top: 6px;
}

.input-hint.error-msg { color: #ff6666; }

/* ── PACKAGE GRID ────────────────────────────────────────── */
.package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.pkg-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.pkg-card:hover {
  border-color: var(--cyan-dim);
  transform: translateY(-1px);
}

.pkg-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-glow);
  box-shadow: 0 0 0 1px var(--cyan), 0 4px 20px #00e5ff18;
}

.pkg-card.selected::after {
  content: '✓';
  position: absolute;
  top: 6px;
  right: 8px;
  font-size: 11px;
  color: var(--cyan);
  font-weight: 700;
}

.pkg-icon {
  font-size: 22px;
  display: block;
  margin-bottom: 6px;
}

.pkg-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  display: block;
  margin-bottom: 4px;
  line-height: 1.2;
}

.pkg-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--cyan);
}

.pkg-savings {
  display: block;
  font-size: 10.5px;
  color: #4ade80;
  margin-top: 3px;
}

/* Membership card special style */
.pkg-card.membership {
  border-color: #ff6b0033;
  background: linear-gradient(135deg, #ff6b0008, #13161b);
}

.pkg-card.membership .pkg-price { color: var(--orange); }
.pkg-card.membership.selected {
  border-color: var(--orange);
  box-shadow: 0 0 0 1px var(--orange), 0 4px 20px #ff6b0018;
}
.pkg-card.membership.selected::after { color: var(--orange); }

/* ── PRICE DISPLAY ───────────────────────────────────────── */
.price-display {
  background: linear-gradient(135deg, #0a1a20, #0d1520);
  border: 1px solid var(--border-glow);
  border-radius: var(--radius);
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 26px;
  min-height: 68px;
}

.price-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.price-package-name {
  font-size: 14px;
  color: var(--text-muted);
}

.price-right {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.price-currency {
  font-size: 13px;
  color: var(--text-dim);
  font-weight: 600;
}

.price-amount {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  color: var(--cyan);
  text-shadow: 0 0 20px #00e5ff44;
  transition: var(--transition);
  min-width: 60px;
  text-align: right;
}

/* ── PAYMENT CARDS ───────────────────────────────────────── */
.payment-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-card {
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  transition: var(--transition);
}

.payment-card:hover { border-color: #444; }

.payment-card.selected {
  border-color: var(--cyan);
  background: var(--cyan-glow);
}

.payment-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-icon { background: #0a2030; color: var(--cyan); }
.cash-icon { background: #1a1a0a; color: #fbbf24; }

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

.payment-info strong {
  font-size: 14px;
  color: var(--text);
}

.payment-info span {
  font-size: 12px;
  color: var(--text-muted);
}

.payment-check {
  font-size: 13px;
  color: var(--cyan);
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--cyan-glow);
  border: 1px solid var(--border-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--transition);
}

.payment-card.selected .payment-check { opacity: 1; }

.cash-note {
  display: none;
  align-items: flex-start;
  gap: 8px;
  background: #1a1400;
  border: 1px solid #fbbf2444;
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-top: 10px;
  font-size: 13px;
  color: #fbbf24cc;
  line-height: 1.5;
}

.cash-note.show { display: flex; }
.cash-note svg { flex-shrink: 0; margin-top: 2px; }
.cash-note strong { color: #fbbf24; }

/* ── CONFIRM BUTTON ──────────────────────────────────────── */
.btn-confirm {
  width: 100%;
  background: linear-gradient(135deg, #00c8e0, #007a99);
  border: none;
  border-radius: var(--radius);
  color: #001a20;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 15px 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  margin-top: 4px;
}

.btn-confirm::before {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: 0.5s;
}

.btn-confirm:hover::before { left: 150%; }

.btn-confirm:hover {
  background: linear-gradient(135deg, #00ddf8, #009ab8);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px #00e5ff30;
}

.btn-confirm:active { transform: translateY(0); }

.btn-confirm-arrow {
  font-size: 20px;
  transition: transform var(--transition);
}

.btn-confirm:hover .btn-confirm-arrow { transform: translateX(4px); }

/* ── WHY US SECTION ──────────────────────────────────────── */
.why-section {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

@media (min-width: 600px) {
  .why-grid { grid-template-columns: repeat(4, 1fr); }
}

.why-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
}

.why-icon { font-size: 26px; }

.why-item strong {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.why-item span {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  padding: 28px 0;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.footer-tagline {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 1px;
  margin-left: 10px;
}

.footer-copy {
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-divider { opacity: 0.3; }

.created-by strong { color: var(--cyan); }

/* ── ADMIN MODAL ─────────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
  padding: 18px;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 380px;
  transform: translateY(20px);
  transition: transform 0.25s;
}

.modal-overlay.open .modal-box { transform: translateY(0); }

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px 0;
}

.modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  color: var(--text);
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 18px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: var(--transition);
}

.modal-close:hover { color: var(--text); background: var(--bg-card-2); }

.modal-body { padding: 20px 22px 22px; }

.modal-note {
  font-size: 12px;
  color: var(--text-dim);
  text-align: center;
  margin-top: 14px;
}

/* ── TOAST ───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--bg-card-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  padding: 12px 22px;
  border-radius: 30px;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
  white-space: nowrap;
  max-width: calc(100vw - 36px);
  text-align: center;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.success { border-color: #00e5ff66; color: var(--cyan); }
.toast.error   { border-color: #ff444466; color: #ff8888; }
.toast.pending { border-color: #fbbf2466; color: #fbbf24; }

/* ── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
