/* ================================================================
   KARMA UPGRADES — style.css  (global base)
================================================================ */

:root {
  --green:      #1DB954;
  --green-h:    #22d460;
  --green-dim:  rgba(29,185,84,.10);
  --green-glow: rgba(29,185,84,.22);
  --bg:         #000000;
  --bg1:        #080808;
  --bg2:        #0a0a0a;
  --bg3:        #111111;
  --bg4:        #161616;
  --bg5:        #1e1e1e;
  --line:       #1a1a1a;
  --line2:      #2a2a2a;
  --text:       #e4e4e7;
  --muted:      #52525b;
  --dim:        #3f3f46;

  /* legacy aliases — upgrade / renew / info pages */
  --color-primary:      #1DB954;
  --color-primary-dark: #22d460;
  --color-surface:      #0a0a0a;
  --color-neutral-50:   #000000;
  --color-neutral-100:  #0a0a0a;
  --color-neutral-200:  #111111;
  --color-neutral-300:  #1e1e1e;
  --color-neutral-400:  #3f3f46;
  --color-neutral-500:  #52525b;
  --color-neutral-600:  #71717a;
  --color-neutral-700:  #a1a1aa;
  --color-neutral-800:  #d4d4d8;
  --color-neutral-900:  #ffffff;
  --color-success:      #10b981;
  --color-warning:      #f59e0b;
  --color-error:        #ef4444;
  --color-info:         #3b82f6;
  --shadow-sm:  0 1px 2px rgba(0,0,0,.5);
  --shadow-md:  0 4px 14px rgba(0,0,0,.6);
  --shadow-lg:  0 10px 32px rgba(0,0,0,.7);
  --shadow-xl:  0 20px 52px rgba(0,0,0,.8);
}

/* ── reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: #000; color: #a1a1aa; overflow-x: hidden; line-height: 1.65;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.text-gradient {
  background: linear-gradient(135deg, #1DB954 0%, #4ade80 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

/* ── buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 22px; font-family: inherit; font-size: 14.5px; font-weight: 600;
  border-radius: 8px; border: none; cursor: pointer; text-decoration: none;
  transition: all .15s; white-space: nowrap; line-height: 1;
}
.btn i { width: 15px; height: 15px; flex-shrink: 0; }
.btn-primary { background: var(--green); color: #000; }
.btn-primary:hover { background: var(--green-h); transform: translateY(-1px); box-shadow: 0 6px 18px var(--green-glow); }
.btn-secondary { background: transparent; color: var(--muted); border: 1px solid var(--line2); }
.btn-secondary:hover { background: var(--bg2); color: var(--text); border-color: #444; }
.btn-lg { padding: 13px 26px; font-size: 15px; }

/* ── announcement bar ────────────────────────────────────── */
#announcementBar { background: linear-gradient(90deg, #0088cc 0%, #00aacc 100%); padding: .45rem 0; text-align: center; }

/* ── navbar ──────────────────────────────────────────────── */
.navbar {
  position: sticky; top: 0; z-index: 1000; height: 56px;
  background: rgba(0,0,0,.92); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
}
.navbar-container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 9px;
  font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 700; color: #fff;
}
.navbar-brand img { height: 24px; width: auto; }
.navbar-nav { display: flex; align-items: center; gap: 1px; list-style: none; }
.nav-link {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  color: var(--muted); font-size: 13.5px; font-weight: 500;
  border-radius: 7px; transition: all .15s;
}
.nav-link:hover { color: #fff; background: rgba(255,255,255,.04); }
.nav-link.active { color: var(--green); }
.nav-link i { width: 13px; height: 13px; }
.dropdown { position: relative; }
.dropdown-toggle {
  display: flex; align-items: center; gap: 6px; padding: 6px 12px;
  color: var(--muted); background: none; border: none; font-family: inherit;
  font-size: 13.5px; font-weight: 500; border-radius: 7px; cursor: pointer; transition: all .15s;
}
.dropdown-toggle:hover { color: #fff; background: rgba(255,255,255,.04); }
.dropdown-toggle i { width: 13px; height: 13px; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: var(--bg4); border: 1px solid var(--line2); border-radius: 10px; padding: 5px;
  min-width: 196px; display: none; z-index: 200; box-shadow: 0 16px 40px rgba(0,0,0,.8);
}
.dropdown:hover .dropdown-menu { display: block; }
.dropdown-header {
  font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--dim); padding: 5px 9px; display: block;
}
.dropdown-item {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  color: var(--muted); font-size: 13.5px; border-radius: 7px; transition: all .15s;
}
.dropdown-item:hover { background: var(--bg5); color: #fff; }
.dropdown-item i { width: 13px; height: 13px; }
.dropdown-divider { height: 1px; background: var(--line); margin: 5px 0; }
.mobile-menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 34px; height: 34px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer; color: var(--muted);
}
@media (max-width: 768px) { .navbar-nav { display: none; } .mobile-menu-toggle { display: flex; } }

/* ── mobile nav ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.7); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.mobile-nav.active { opacity: 1; visibility: visible; }
.mobile-nav-content {
  position: absolute; top: 0; right: 0; bottom: 0; width: 264px;
  background: var(--bg1); border-left: 1px solid var(--line);
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%); transition: transform .2s;
}
.mobile-nav.active .mobile-nav-content { transform: translateX(0); }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px; border-bottom: 1px solid var(--line);
}
.mobile-nav-brand { display: flex; align-items: center; gap: 9px; }
.mobile-nav-title { font-size: 15px; font-weight: 700; color: #fff; }
.mobile-nav-close {
  width: 30px; height: 30px; background: rgba(255,255,255,.04);
  border: 1px solid var(--line); border-radius: 7px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; color: var(--muted);
}
.mobile-nav-links { list-style: none; padding: 10px; flex: 1; }
.mobile-nav-links li { margin-bottom: 2px; }
.mobile-nav-links a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px;
  color: var(--muted); border-radius: 7px; font-size: 14px; font-weight: 500; transition: all .15s;
}
.mobile-nav-links a:hover, .mobile-nav-links a.active { background: rgba(255,255,255,.04); color: var(--green); }
.mobile-nav-links i { width: 15px; height: 15px; }
.nav-section-title {
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--dim); padding: 12px 12px 4px; display: block;
}
.mobile-nav-cta { padding: 14px 20px; border-top: 1px solid var(--line); }
.mobile-nav-cta .btn { width: 100%; justify-content: center; }

/* ── footer ──────────────────────────────────────────────── */
footer {
  background: #000 !important; border-top: 1px solid var(--line) !important;
  padding: 4rem 0 2rem; color: var(--muted) !important;
}
footer a { color: var(--muted) !important; transition: color .15s; }
footer a:hover { color: var(--green) !important; }

/* ── cards (other pages) ─────────────────────────────────── */
.card, .section-card {
  background: var(--bg2) !important; border: 1px solid var(--line) !important;
  border-radius: 12px; padding: 2rem; transition: border-color .15s, transform .18s;
}
.card:hover { border-color: var(--line2) !important; transform: translateY(-2px); }
.card-feature { text-align: center; }

/* ── package selection ───────────────────────────────────── */
.package-item, .package-option {
  cursor: pointer; transition: all .15s; border: 2px solid transparent;
  background: var(--bg2); border-radius: 9px;
}
.package-item:hover, .package-option:hover { border-color: var(--green); transform: translateY(-1px); }
.package-item.package-selected, .package-option.selected {
  border-color: var(--green) !important; background: var(--green-dim) !important;
  box-shadow: 0 0 0 3px var(--green-glow) !important;
}
.package-item.package-selected h3 { color: var(--green) !important; }

/* ── forms ───────────────────────────────────────────────── */
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="url"], textarea, select {
  background: var(--bg2) !important; border: 1px solid var(--line2) !important;
  color: #fff !important; padding: 12px 14px !important;
  border-radius: 8px !important; font-size: 14.5px !important; width: 100%;
  transition: border-color .15s, box-shadow .15s;
}
input::placeholder, textarea::placeholder { color: var(--dim) !important; }
input:focus, textarea:focus, select:focus {
  outline: none !important; border-color: var(--green) !important;
  box-shadow: 0 0 0 3px var(--green-dim) !important;
}
.package-card input, #configSection .form-input,
#configSection .form-select, #configSection textarea, #keysToImport {
  background: #fff !important; color: #111827 !important; border: 1px solid #d1d5db !important;
}
#keysToImport { font-family: monospace !important; font-size: 13px !important; }
.color-input-group input[type="text"] { color: #111827 !important; }
.form-label { color: #374151 !important; font-weight: 600 !important; }
.form-hint  { color: #6b7280 !important; }

/* ── legacy faq (other pages) ────────────────────────────── */
.faq-question { display: flex; align-items: center; justify-content: space-between; font-weight: 600; color: #fff; gap: 1rem; }
.faq-icon { transition: transform .18s; color: var(--green); flex-shrink: 0; }
.faq-item.active .faq-icon { transform: rotate(180deg); }
.faq-answer { display: none; color: var(--muted); line-height: 1.8; }
.faq-item.active .faq-answer { display: block; }

/* ── keyframes ───────────────────────────────────────────── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin   { to { transform: rotate(360deg); } }
.animate-fade-in  { animation: fadeIn .5s ease both; }