/* =============================================
   BROKENBOOST — Main Stylesheet
   ============================================= */

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

:root {
  --gold: #C8A94A;
  --gold-light: #E8C96A;
  --gold-dark: #8B6F2A;
  --bg-dark: #0A0A0F;
  --bg-card: #0F0F1A;
  --bg-card2: #13131F;
  --bg-surface: #1A1A2E;
  --border: rgba(200,169,74,0.2);
  --border-bright: rgba(200,169,74,0.5);
  --text: #E8E8F0;
  --text-muted: #888899;
  --red: #E24B4A;
  --green: #3B9B5E;
  --blue: #378ADD;
  --purple: #7F77DD;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Rajdhani', sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(200,169,74,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(127,119,221,0.06) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* ===== HEADER ===== */
header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

.logo {
  font-family: 'Cinzel', serif;
  font-size: 22px; font-weight: 700;
  color: var(--gold); letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 30px rgba(200,169,74,0.4);
}
.logo span { color: var(--text); }

nav { display: flex; align-items: center; gap: 8px; }

/* ===== BUTTONS ===== */
.btn { cursor: pointer; font-family: 'Rajdhani', sans-serif; border-radius: 6px; transition: all 0.2s; display: inline-flex; align-items: center; gap: 6px; }

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0A0A0F; border: none;
  font-size: 14px; font-weight: 700;
  padding: 8px 20px; letter-spacing: 1px; text-transform: uppercase;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-1px); }

.btn-outline {
  background: none; border: 1px solid var(--border-bright);
  color: var(--gold); font-size: 14px; font-weight: 600;
  padding: 8px 20px;
}
.btn-outline:hover { background: rgba(200,169,74,0.1); }

.btn-nav {
  background: none; border: 1px solid transparent;
  color: var(--text-muted); font-size: 15px; font-weight: 500;
  padding: 6px 16px; letter-spacing: 0.5px;
}
.btn-nav:hover { color: var(--gold); border-color: var(--border); }
.btn-nav.active { color: var(--gold); border-color: var(--border-bright); background: rgba(200,169,74,0.08); }

.btn-danger {
  background: rgba(226,75,74,0.15); border: 1px solid rgba(226,75,74,0.4);
  color: #ff6b6a; font-size: 13px; font-weight: 600; padding: 6px 14px;
}
.btn-danger:hover { background: rgba(226,75,74,0.25); }

.btn-success {
  background: rgba(59,155,94,0.15); border: 1px solid rgba(59,155,94,0.4);
  color: #4ec97a; font-size: 13px; font-weight: 600; padding: 6px 14px;
}

.btn-sm { padding: 5px 12px; font-size: 12px; }
.btn-full { width: 100%; justify-content: center; }

/* ===== VIEWS ===== */
.view { display: none; position: relative; z-index: 1; }
.view.active { display: block; }

/* ===== HERO ===== */
.hero { text-align: center; padding: 100px 2rem 80px; max-width: 900px; margin: 0 auto; }

.hero-tag {
  display: inline-block;
  background: rgba(200,169,74,0.1); border: 1px solid var(--border);
  color: var(--gold); font-size: 12px; font-weight: 600;
  letter-spacing: 3px; text-transform: uppercase;
  padding: 6px 18px; border-radius: 100px; margin-bottom: 28px;
}

.hero h1 {
  font-family: 'Cinzel', serif;
  font-size: clamp(36px, 6vw, 72px); font-weight: 700;
  line-height: 1.1; margin-bottom: 24px;
}
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 40px rgba(200,169,74,0.3); }

.hero p { font-size: 18px; font-weight: 300; color: var(--text-muted); max-width: 600px; margin: 0 auto 40px; line-height: 1.7; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== STATS ===== */
.stats-bar {
  display: flex; justify-content: center;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  background: var(--bg-card); padding: 24px 2rem; flex-wrap: wrap;
}
.stat { text-align: center; padding: 0 40px; border-right: 1px solid var(--border); }
.stat:last-child { border-right: none; }
.stat-num { font-family: 'Cinzel', serif; font-size: 28px; font-weight: 600; color: var(--gold); }
.stat-label { font-size: 12px; font-weight: 500; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; margin-top: 4px; }

/* ===== SECTION ===== */
.section { max-width: 1200px; margin: 0 auto; padding: 60px 2rem; }
.section-title { font-family: 'Cinzel', serif; font-size: 28px; font-weight: 600; color: var(--gold); margin-bottom: 8px; }
.section-sub { color: var(--text-muted); font-size: 15px; margin-bottom: 36px; }

/* ===== SERVICE CARDS ===== */
.services-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
  transition: all 0.3s; cursor: pointer; position: relative;
}
.service-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: 0 12px 40px rgba(200,169,74,0.1); }

.service-img-bg {
  width: 100%; height: 160px;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px; position: relative; overflow: hidden;
}
.service-img-bg::before { content: ''; position: absolute; inset: 0; }
.service-img-bg.raid::before { background: linear-gradient(135deg,#1a0a2e,#2d1a5e); }
.service-img-bg.mythic::before { background: linear-gradient(135deg,#0a1a2e,#1a3a5e); }
.service-img-bg.pvp::before { background: linear-gradient(135deg,#2e0a0a,#5e1a1a); }
.service-img-bg.gear::before { background: linear-gradient(135deg,#0a2e1a,#1a5e3a); }
.service-img-bg.leveling::before { background: linear-gradient(135deg,#2e1a0a,#5e3a1a); }
.service-img-bg.custom::before { background: linear-gradient(135deg,#1a1a2e,#2e2e5e); }

.service-icon { position: relative; z-index: 1; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.5)); }

.service-badge {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 100px;
}
.badge-hot { background: rgba(226,75,74,0.9); color: #fff; }
.badge-new { background: rgba(55,138,221,0.9); color: #fff; }
.badge-sale { background: rgba(200,169,74,0.9); color: #0a0a0f; }

.service-body { padding: 20px; }
.service-name { font-family: 'Cinzel', serif; font-size: 17px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.service-desc { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.service-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.service-price { font-family: 'Cinzel', serif; font-size: 20px; font-weight: 600; color: var(--gold); }
.service-price small { font-size: 12px; font-family: 'Rajdhani', sans-serif; color: var(--text-muted); }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  z-index: 200; display: none;
  align-items: center; justify-content: center;
  padding: 20px; backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--bg-card); border: 1px solid var(--border-bright);
  border-radius: 16px; width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.25s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header {
  padding: 24px 28px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
.modal-title { font-family: 'Cinzel', serif; font-size: 18px; font-weight: 600; color: var(--gold); }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 22px; cursor: pointer; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-body { padding: 24px 28px; }

/* ===== FORMS ===== */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 8px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--bg-surface); border: 1px solid var(--border);
  border-radius: 8px; padding: 10px 14px;
  color: var(--text); font-family: 'Rajdhani', sans-serif; font-size: 15px;
  transition: border-color 0.2s; outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--gold-dark); }
.form-select option { background: var(--bg-card); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { font-size: 12px; color: #ff6b6a; margin-top: 4px; }

/* ===== PAYMENT OPTIONS ===== */
.payment-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 10px; margin-bottom: 20px; }
.payment-option {
  border: 1px solid var(--border); border-radius: 8px;
  padding: 12px 14px; cursor: pointer; transition: all 0.2s;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; font-weight: 500; color: var(--text-muted);
  background: var(--bg-surface);
}
.payment-option:hover { border-color: var(--border-bright); color: var(--text); }
.payment-option.selected { border-color: var(--gold); background: rgba(200,169,74,0.08); color: var(--gold); }
.payment-icon { font-size: 20px; }

/* ===== ORDER SUMMARY ===== */
.order-summary { background: var(--bg-surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; margin-bottom: 20px; }
.order-row { display: flex; justify-content: space-between; font-size: 14px; color: var(--text-muted); padding: 5px 0; }
.order-row.total { border-top: 1px solid var(--border); margin-top: 8px; padding-top: 12px; font-size: 17px; font-weight: 600; color: var(--gold); }

/* ===== STEPS ===== */
.steps { display: flex; align-items: center; justify-content: center; margin-bottom: 28px; }
.step { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-muted); }
.step.active { color: var(--gold); }
.step.done { color: #4ec97a; }
.step-num { width: 28px; height: 28px; border-radius: 50%; border: 2px solid currentColor; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.step.done .step-num { background: #4ec97a; border-color: #4ec97a; color: #0a0a0f; }
.step.active .step-num { background: rgba(200,169,74,0.15); }
.step-line { width: 40px; height: 2px; background: var(--border); margin: 0 4px; }
.step-line.done { background: #4ec97a; }

/* ===== ADMIN ===== */
.admin-header { background: var(--bg-card); border-bottom: 1px solid var(--border); padding: 20px 2rem; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.admin-title { font-family: 'Cinzel', serif; font-size: 20px; color: var(--gold); }
.admin-grid { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 128px); }
.admin-sidebar { background: var(--bg-card2); border-right: 1px solid var(--border); padding: 24px 0; }
.sidebar-item { display: flex; align-items: center; gap: 12px; padding: 12px 24px; font-size: 15px; font-weight: 500; color: var(--text-muted); cursor: pointer; transition: all 0.2s; border-left: 3px solid transparent; }
.sidebar-item:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.sidebar-item.active { color: var(--gold); border-left-color: var(--gold); background: rgba(200,169,74,0.06); }
.admin-main { padding: 32px; overflow-y: auto; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr)); gap: 16px; margin-bottom: 32px; }
.admin-stat-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 18px 20px; }
.admin-stat-label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.admin-stat-value { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 600; color: var(--gold); }
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }

/* ===== TABLE ===== */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; margin-bottom: 24px; overflow-x: auto; }
.table-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.table-title { font-family: 'Cinzel', serif; font-size: 15px; color: var(--text); }
table { width: 100%; border-collapse: collapse; min-width: 500px; }
th { text-align: left; padding: 12px 16px; font-size: 11px; font-weight: 700; color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase; border-bottom: 1px solid var(--border); background: var(--bg-card2); }
td { padding: 14px 16px; font-size: 14px; color: var(--text); border-bottom: 1px solid rgba(200,169,74,0.06); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(255,255,255,0.02); }

/* ===== BADGES ===== */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 3px 10px; border-radius: 100px; }
.badge-green { background: rgba(59,155,94,0.15); color: #4ec97a; }
.badge-red { background: rgba(226,75,74,0.15); color: #ff6b6a; }
.badge-gold { background: rgba(200,169,74,0.15); color: var(--gold); }
.badge-blue { background: rgba(55,138,221,0.15); color: #6ab2f5; }
.badge-gray { background: rgba(136,136,153,0.15); color: var(--text-muted); }

/* ===== AUTH ===== */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; position: relative; z-index: 1; }
.auth-card { background: var(--bg-card); border: 1px solid var(--border-bright); border-radius: 16px; padding: 40px; width: 100%; max-width: 420px; }
.auth-logo { font-family: 'Cinzel', serif; font-size: 26px; font-weight: 700; color: var(--gold); text-align: center; margin-bottom: 8px; letter-spacing: 2px; }
.auth-sub { text-align: center; color: var(--text-muted); font-size: 14px; margin-bottom: 32px; }
.auth-tabs { display: flex; background: var(--bg-surface); border-radius: 8px; padding: 4px; margin-bottom: 24px; gap: 4px; }
.auth-tab { flex: 1; background: none; border: none; padding: 8px; font-family: 'Rajdhani', sans-serif; font-size: 14px; font-weight: 600; color: var(--text-muted); border-radius: 6px; cursor: pointer; transition: all 0.2s; }
.auth-tab.active { background: var(--bg-card); color: var(--gold); box-shadow: 0 1px 4px rgba(0,0,0,0.3); }

/* ===== TOGGLE ===== */
.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track { position: absolute; inset: 0; background: var(--bg-surface); border: 1px solid var(--border); border-radius: 12px; cursor: pointer; transition: all 0.2s; }
.toggle input:checked + .toggle-track { background: rgba(200,169,74,0.3); border-color: var(--gold); }
.toggle-track::after { content: ''; position: absolute; width: 16px; height: 16px; background: var(--text-muted); border-radius: 50%; top: 3px; left: 3px; transition: all 0.2s; }
.toggle input:checked + .toggle-track::after { background: var(--gold); transform: translateX(20px); }

/* ===== USER BAR ===== */
.user-bar { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; }
.user-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(200,169,74,0.2); border: 2px solid var(--gold-dark); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; color: var(--gold); }
.user-role { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); }

/* ===== TOAST ===== */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 999; display: flex; flex-direction: column; gap: 10px; }
.toast { background: var(--bg-card); border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; font-size: 14px; font-weight: 500; display: flex; align-items: center; gap: 10px; animation: toastIn 0.3s ease; max-width: 320px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); }
.toast.success { border-color: rgba(59,155,94,0.5); color: #4ec97a; }
.toast.error { border-color: rgba(226,75,74,0.5); color: #ff6b6a; }
.toast.info { border-color: var(--border-bright); color: var(--gold); }
@keyframes toastIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ===== DIVIDER ===== */
.divider { display: flex; align-items: center; gap: 12px; color: var(--text-muted); font-size: 12px; font-weight: 500; letter-spacing: 1px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

/* ===== LOADING ===== */
.spinner { width: 32px; height: 32px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin: 40px auto; }
@keyframes spin { to { transform: rotate(360deg); } }

.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; gap: 16px; color: var(--text-muted); font-size: 14px; }

/* ===== ALERT ===== */
.alert { border-radius: 8px; padding: 14px; font-size: 14px; line-height: 1.6; margin-bottom: 16px; }
.alert-success { background: rgba(59,155,94,0.08); border: 1px solid rgba(59,155,94,0.3); color: #4ec97a; }
.alert-error { background: rgba(226,75,74,0.08); border: 1px solid rgba(226,75,74,0.3); color: #ff6b6a; }
.alert-info { background: rgba(200,169,74,0.08); border: 1px solid rgba(200,169,74,0.3); color: var(--gold); }

/* ===== UTILS ===== */
.text-gold { color: var(--gold); }
.text-muted { color: var(--text-muted); }
.text-green { color: #4ec97a; }
.text-red { color: #ff6b6a; }
.hidden { display: none !important; }
.w-full { width: 100%; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-8 { gap: 8px; }
.gap-12 { gap: 12px; }

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .admin-grid { grid-template-columns: 1fr; }
  .admin-sidebar { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .payment-grid { grid-template-columns: 1fr 1fr; }
  .stat { padding: 12px 20px; }
  .stats-bar { gap: 0; }
  header { padding: 0 1rem; }
  .hero { padding: 60px 1rem 50px; }
  .section { padding: 40px 1rem; }
}
