/* ============================================================
   WoW WTF Sync — Global Stylesheet
   Theme: Dark fantasy / World of Warcraft inspired
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --bg-deep:      #080c14;
  --bg-dark:      #0d1320;
  --bg-card:      #111927;
  --bg-card-hover:#162133;
  --border:       #1e2d45;
  --border-light: #2a3f5e;

  --gold:         #c9a227;
  --gold-light:   #e8c547;
  --gold-dark:    #9a7a1a;
  --gold-glow:    rgba(201, 162, 39, 0.25);

  --purple:       #6b3fa0;
  --purple-light: #9b6dcc;
  --purple-glow:  rgba(107, 63, 160, 0.3);

  --blue:         #1e5fa3;
  --blue-light:   #4a9de0;
  --blue-glow:    rgba(74, 157, 224, 0.2);

  --red:          #c0392b;
  --green:        #27ae60;

  --text-primary: #e8dcc8;
  --text-secondary: #8fa3be;
  --text-muted:   #4a6080;

  --nav-height:   68px;
  --radius:       8px;
  --radius-lg:    14px;
  --transition:   0.22s ease;

  --font-body:    'Segoe UI', system-ui, sans-serif;
  --font-heading: 'Georgia', 'Times New Roman', serif;
}

/* ── Reset & Base ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background:  var(--bg-deep);
  color:       var(--text-primary);
  line-height: 1.65;
  min-height:  100vh;
}

a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-light); }

img { max-width: 100%; display: block; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  line-height: 1.2;
  color: var(--gold-light);
  letter-spacing: 0.02em;
}

p { color: var(--text-secondary); }

ul { list-style: none; }

/* ── Layout Utilities ───────────────────────────────────────── */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-pad { padding: 90px 0; }
.section-pad-sm { padding: 60px 0; }

.text-center { text-align: center; }
.text-gold   { color: var(--gold); }
.text-muted  { color: var(--text-muted); }

.flex        { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-1       { gap: 8px; }
.gap-2       { gap: 16px; }
.gap-3       { gap: 24px; }
.gap-4       { gap: 32px; }

/* ── Navigation ─────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(8, 12, 20, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.35rem;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.nav__logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__links a {
  padding: 6px 14px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-secondary);
  transition: color var(--transition), background var(--transition);
}

.nav__links a:hover,
.nav__links a.active {
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.08);
}

.nav__cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0a;
  box-shadow: 0 2px 12px var(--gold-glow);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  box-shadow: 0 4px 20px var(--gold-glow);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-light);
  color: var(--text-primary);
}
.btn-secondary:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  background: rgba(201, 162, 39, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--gold-light); }

.btn-danger {
  background: rgba(192, 57, 43, 0.15);
  border: 1px solid rgba(192, 57, 43, 0.4);
  color: #e74c3c;
}
.btn-danger:hover { background: rgba(192, 57, 43, 0.25); }

.btn-lg { padding: 14px 30px; font-size: 1rem; border-radius: var(--radius-lg); }
.btn-sm { padding: 7px 14px; font-size: 0.82rem; }
.btn-full { width: 100%; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.card:hover {
  border-color: var(--border-light);
  box-shadow: 0 4px 24px rgba(0,0,0,0.3);
}

.card-glow:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 4px 24px var(--gold-glow);
}

/* ── Section Header ─────────────────────────────────────────── */
.section-header {
  text-align: center;
  margin-bottom: 56px;
}
.section-header h2 {
  font-size: 2.2rem;
  margin-bottom: 14px;
}
.section-header p {
  font-size: 1.05rem;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Divider ─────────────────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(to right, transparent, var(--border-light), transparent);
  margin: 60px 0;
}

/* ── Horizontal rule with label ─────────────────────────────── */
.hr-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.hr-label::before,
.hr-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Forms ───────────────────────────────────────────────────── */
.form-group {
  margin-bottom: 20px;
}

.form-label {
  display: block;
  margin-bottom: 7px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  letter-spacing: 0.03em;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 11px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: var(--font-body);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px var(--gold-glow);
}

.form-input::placeholder,
.form-textarea::placeholder { color: var(--text-muted); }

.form-textarea {
  resize: vertical;
  min-height: 130px;
}

.form-hint {
  margin-top: 5px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.form-error {
  margin-top: 5px;
  font-size: 0.82rem;
  color: #e74c3c;
}

/* ── Alert Banners ───────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: none;
  margin-bottom: 20px;
}
.alert.show { display: block; }
.alert-success { background: rgba(39,174,96,0.12); border: 1px solid rgba(39,174,96,0.35); color: #2ecc71; }
.alert-error   { background: rgba(192,57,43,0.12);  border: 1px solid rgba(192,57,43,0.35);  color: #e74c3c; }
.alert-info    { background: rgba(74,157,224,0.12); border: 1px solid rgba(74,157,224,0.35); color: #4a9de0; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-active   { background: rgba(39,174,96,0.15);  color: #2ecc71;  border: 1px solid rgba(39,174,96,0.3); }
.badge-inactive { background: rgba(100,100,120,0.15); color: #6a7a8e; border: 1px solid rgba(100,100,120,0.2); }
.badge-gold     { background: rgba(201,162,39,0.15);  color: var(--gold); border: 1px solid rgba(201,162,39,0.3); }

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 110px 0 90px;
  text-align: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(107,63,160,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80%  80%, rgba(30,95,163,0.12) 0%, transparent 60%);
  z-index: 0;
}

.hero__content {
  position: relative;
  z-index: 1;
  max-width: 780px;
  margin: 0 auto;
}

.hero__eyebrow {
  display: inline-block;
  padding: 5px 16px;
  border: 1px solid var(--gold-dark);
  border-radius: 50px;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  background: rgba(201, 162, 39, 0.07);
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(201,162,39,0.2);
}

.hero h1 span {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__sub {
  font-size: 1.15rem;
  max-width: 600px;
  margin: 0 auto 36px;
  color: var(--text-secondary);
}

.hero__actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.hero__scroll {
  margin-top: 64px;
  color: var(--text-muted);
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ── Feature Grid ────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: all var(--transition);
}
.feature-card:hover {
  border-color: var(--gold-dark);
  box-shadow: 0 6px 28px var(--gold-glow);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(201,162,39,0.15), rgba(201,162,39,0.05));
  border: 1px solid rgba(201,162,39,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 18px;
}

.feature-card h3 { font-size: 1.1rem; margin-bottom: 10px; color: var(--gold-light); }
.feature-card p  { font-size: 0.9rem; line-height: 1.7; }

/* ── How It Works ────────────────────────────────────────────── */
.how-it-works { background: var(--bg-dark); }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 32px;
  counter-reset: step;
}

.step {
  text-align: center;
  position: relative;
  counter-increment: step;
}

.step__num {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0a;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--font-heading);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  box-shadow: 0 4px 16px var(--gold-glow);
}

.step h3 { font-size: 1rem; margin-bottom: 10px; }
.step p  { font-size: 0.88rem; }

/* ── Addons List ─────────────────────────────────────────────── */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.addon-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-primary);
  transition: all var(--transition);
}
.addon-chip:hover {
  border-color: var(--gold-dark);
  color: var(--gold-light);
}
.addon-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(39,174,96,0.6);
}

/* ── Pricing ─────────────────────────────────────────────────── */
.pricing-card {
  max-width: 420px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--gold-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  position: relative;
  box-shadow: 0 8px 40px var(--gold-glow);
}

.pricing-card__badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0a0a0a;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: 50px;
}

.pricing-card__price {
  margin: 20px 0;
}
.pricing-card__price .amount {
  font-size: 3.5rem;
  font-family: var(--font-heading);
  color: var(--gold-light);
  line-height: 1;
}
.pricing-card__price .period {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.pricing-features {
  text-align: left;
  margin: 28px 0;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--border);
  color: var(--text-secondary);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features li::before {
  content: '✦';
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 1px;
}

/* ── Auth Pages ──────────────────────────────────────────────── */
.auth-page {
  min-height: calc(100vh - var(--nav-height));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(107,63,160,0.12) 0%, transparent 65%);
}

.auth-box {
  width: 100%;
  max-width: 440px;
}

.auth-box h1 {
  font-size: 1.9rem;
  margin-bottom: 8px;
}

.auth-box .subtitle {
  font-size: 0.95rem;
  margin-bottom: 36px;
  color: var(--text-muted);
}

/* ── Dashboard ───────────────────────────────────────────────── */
.dashboard-layout {
  max-width: 900px;
  margin: 60px auto;
  padding: 0 24px;
}

.dashboard-header {
  margin-bottom: 40px;
}
.dashboard-header h1 { font-size: 2rem; margin-bottom: 6px; }

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

@media (max-width: 640px) {
  .dashboard-grid { grid-template-columns: 1fr; }
}

.dash-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.dash-card h3 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 12px;
}

/* ── Machine Slots ───────────────────────────────────────────── */
.machine-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.machine-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition);
}

.machine-row:hover { border-color: var(--border-light); }

.machine-row__icon {
  font-size: 1.2rem;
  flex-shrink: 0;
}

.machine-row__info {
  flex: 1;
  min-width: 0;
}

.machine-row__id {
  font-family: 'Courier New', monospace;
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.machine-row__meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.machine-slot-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.machine-slot-empty__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1px dashed var(--text-muted);
  flex-shrink: 0;
}

/* ── License Key display ─────────────────────────────────────── */
.license-key-display {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  background: var(--bg-deep);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 12px 14px;
  letter-spacing: 0.08em;
  color: var(--gold);
  word-break: break-all;
  cursor: pointer;
  transition: background var(--transition);
}
.license-key-display:hover { background: rgba(201,162,39,0.04); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--bg-dark);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
  margin-top: auto;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 40px;
}

@media (max-width: 680px) {
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
}

.footer__brand h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}
.footer__brand h3 img {
  display: inline;
  vertical-align: middle;
}
.footer__brand p {
  font-size: 0.88rem;
  line-height: 1.7;
}

.footer h4 {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.footer__links li + li { margin-top: 8px; }
.footer__links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}
.footer__links a:hover { color: var(--gold-light); }

.footer__support {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 40px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer__support a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.footer__support a:hover { color: var(--gold-light); }

.footer__bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ── TOS / Contact page ──────────────────────────────────────── */
.content-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 24px;
}

.content-page h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.content-page .lead {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.prose h2 {
  font-size: 1.35rem;
  color: var(--gold);
  margin: 36px 0 14px;
}
.prose h3 {
  font-size: 1.05rem;
  color: var(--gold-light);
  margin: 24px 0 8px;
}
.prose p {
  margin-bottom: 16px;
  line-height: 1.75;
  font-size: 0.95rem;
}
.prose ul {
  list-style: disc;
  padding-left: 22px;
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.prose ul li { margin-bottom: 6px; }
.prose a { text-decoration: underline; text-underline-offset: 2px; }

/* ── Spinner ─────────────────────────────────────────────────── */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav__links { display: none; }
  .hero { padding: 70px 0 60px; }
  .section-pad { padding: 60px 0; }
  .section-header h2 { font-size: 1.7rem; }
}

/* ── Scrollbar ───────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-light); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dark); }
