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

/* ─── Variables ─────────────────────────────────────────── */
:root {
  --bg:        #080909;
  --bg2:       #0d0f0f;
  --surface:   #111414;
  --surface2:  #161a1a;
  --border:    rgba(255,255,255,0.06);
  --border-hi: rgba(255,255,255,0.12);
  --accent:    #a78bfa;        /* soft violet */
  --accent2:   #7c3aed;        /* deeper violet */
  --accent-glow: rgba(167,139,250,0.18);
  --green:     #34d399;        /* status active */
  --red:       #f87171;        /* status error */
  --text:      #c9d1d9;
  --text-muted:#6e7681;
  --mono:      'JetBrains Mono', monospace;
  --radius:    8px;
  --radius-lg: 12px;
}

/* ─── Reset ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* ─── Custom Cursor ─────────────────────────────────────── */
*, a, button { cursor: none !important; }

#cursor {
  position: fixed;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-50%, -50%);
  transition: width 0.15s, height 0.15s, background 0.15s;
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent-glow);
}
#cursor-ring {
  position: fixed;
  width: 28px; height: 28px;
  border: 1px solid rgba(167,139,250,0.5);
  border-radius: 50%;
  pointer-events: none;
  z-index: 99998;
  transform: translate(-50%, -50%);
  transition: transform 0.08s linear, width 0.2s, height 0.2s, border-color 0.2s;
}
body:has(a:hover) #cursor,
body:has(button:hover) #cursor { width: 12px; height: 12px; background: #fff; }
body:has(a:hover) #cursor-ring,
body:has(button:hover) #cursor-ring { width: 40px; height: 40px; border-color: var(--accent); }

/* ─── Body / Background ─────────────────────────────────── */
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: hidden;
  line-height: 1.6;
}

/* Subtle scanline overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.03) 2px,
    rgba(0,0,0,0.03) 4px
  );
  pointer-events: none;
  z-index: 9990;
}

/* ─── Views ─────────────────────────────────────────────── */
.view { width: 100%; }

/* ─── Auth Container ────────────────────────────────────── */
.auth-container {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  max-width: 420px;
  width: 100%;
  margin: auto;
  animation: fadeUp 0.5s cubic-bezier(0.16,1,0.3,1) both;
  position: relative;
  overflow: hidden;
}

/* top accent line */
.auth-container::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.auth-container h2 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.4rem;
  text-align: center;
}

/* Blinking cursor after title */
.auth-container h2::after {
  content: '_';
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }

.auth-container > p.subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

/* ─── Input Groups ──────────────────────────────────────── */
.input-group {
  margin-bottom: 1.1rem;
  text-align: left;
}

.input-group label {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.input-group input[type="text"],
.input-group input[type="password"],
.info-card .input-group input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.82rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}

.input-group input:focus,
.info-card .input-group input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ─── Auth Submit Button ────────────────────────────────── */
.auth-container button[type="submit"] {
  width: 100%;
  margin-top: 1.5rem;
  padding: 0.8rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.auth-container button[type="submit"]::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  z-index: 0;
}
.auth-container button[type="submit"]:hover::before { transform: translateX(0); }
.auth-container button[type="submit"]:hover { color: #000; box-shadow: 0 0 20px var(--accent-glow); }
.auth-container button[type="submit"] span,
.auth-container button[type="submit"] { position: relative; z-index: 1; }

.auth-container > p {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
  text-align: center;
  letter-spacing: 0.04em;
}
.auth-container > p a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
.auth-container > p a:hover { color: #fff; }

/* Remember me */
.remember-group { margin-bottom: 0.25rem; }
.checkbox-label {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.72rem;
  letter-spacing: 0.06em; user-select: none;
}
.checkbox-label input[type="checkbox"] {
  width: 13px; height: 13px;
  accent-color: var(--accent);
}

/* ─── Panel Layout ──────────────────────────────────────── */
#view_panel {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.customer-panel-container {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

/* ─── Top Bar ───────────────────────────────────────────── */
.top-bar {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: fit-content;
  max-width: calc(100vw - 2rem);
  background: rgba(13,15,15,0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-hi);
  border-radius: 10px;
  padding: 0.6rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
  z-index: 1000;
  box-shadow: 0 4px 32px rgba(0,0,0,0.5), 0 0 0 1px rgba(167,139,250,0.04);
  animation: fadeDown 0.4s cubic-bezier(0.16,1,0.3,1) both;
}

@keyframes fadeDown {
  from { opacity:0; transform: translateX(-50%) translateY(-12px); }
  to   { opacity:1; transform: translateX(-50%) translateY(0); }
}

.top-bar h3 {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  white-space: nowrap;
  position: relative;
}
.top-bar h3::after {
  content: '_';
  color: var(--accent);
  animation: blink 1s step-end infinite;
}

.top-bar nav ul {
  list-style: none;
  display: flex;
  gap: 0.25rem;
}

.top-bar nav ul li a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  white-space: nowrap;
}

.top-bar nav ul li a i { font-size: 0.7rem; }

.top-bar nav ul li a:hover {
  color: var(--text);
  background: rgba(255,255,255,0.04);
  border-color: var(--border-hi);
}

.top-bar nav ul li a.active {
  color: var(--accent);
  border-color: rgba(167,139,250,0.25);
  background: rgba(167,139,250,0.06);
}

/* ─── Main Content ──────────────────────────────────────── */
.main-content {
  flex: 1;
  padding: 90px 2rem 2rem;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

/* ─── Tabs ──────────────────────────────────────────────── */
.customer-panel-tab {
  display: none;
  animation: fadeUp 0.35s cubic-bezier(0.16,1,0.3,1) both;
}
.customer-panel-tab.active { display: block; }

@keyframes fadeUp {
  from { opacity:0; transform: translateY(16px); }
  to   { opacity:1; transform: translateY(0); }
}

.customer-panel-tab h1 {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.customer-panel-tab h1::before {
  content: '//';
  color: var(--accent);
  font-weight: 400;
}

/* ─── Grid ──────────────────────────────────────────────── */
.account-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

/* ─── Cards ─────────────────────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  position: relative;
  overflow: hidden;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.info-card:hover {
  border-color: var(--border-hi);
  box-shadow: 0 0 0 1px rgba(167,139,250,0.06), 0 8px 32px rgba(0,0,0,0.3);
}
.info-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.info-card:hover::before { opacity: 1; }

.info-card h2 {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.info-card h2::before { content: '>'; color: var(--accent); }

/* ─── Detail Items ──────────────────────────────────────── */
.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
}
.detail-item:last-of-type { border-bottom: none; }

.detail-item i {
  color: var(--accent);
  font-size: 0.72rem;
  width: 14px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}
.detail-item p { margin: 0; color: var(--text-muted); }
.detail-item span { color: var(--text); font-weight: 500; }

/* ─── Status ────────────────────────────────────────────── */
.status-active  { color: var(--green) !important; }
.status-expired { color: var(--red)   !important; }
.status-message { margin-top: 0.6rem; font-size: 0.72rem; min-height: 1em; letter-spacing: 0.04em; }
.msg-success    { color: var(--green); }
.msg-error      { color: var(--red); }

/* ─── HWID ──────────────────────────────────────────────── */
.hwid-description {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 1.25rem;
}
.hwid-status {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.25rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}
.hwid-value {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--accent);
  word-break: break-all;
  letter-spacing: 0.04em;
}

/* ─── Buttons ───────────────────────────────────────────── */
.action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.1rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.action-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 0;
}
.action-button:hover::before { transform: translateX(0); }
.action-button:hover { color: #000; box-shadow: 0 0 16px var(--accent-glow); }
.action-button > * { position: relative; z-index: 1; }
.action-button i { font-size: 0.7rem; position: relative; z-index: 1; }
.action-button:disabled { opacity: 0.4; pointer-events: none; }

/* Danger variant */
.action-button[style*="background:#c0392b"],
.action-button[style*="background: #c0392b"] {
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: transparent !important;
}
.action-button[style*="background:#c0392b"]::before,
.action-button[style*="background: #c0392b"]::before {
  background: var(--red) !important;
}
.action-button[style*="background:#c0392b"]:hover,
.action-button[style*="background: #c0392b"]:hover { color: #fff !important; }

/* ─── Download ──────────────────────────────────────────── */
.download-intro {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.7;
}
.download-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}
.download-item-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}
.download-item-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(167,139,250,0.3), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.download-item-card:hover { border-color: var(--border-hi); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0,0,0,0.4); }
.download-item-card:hover::before { opacity: 1; }

.download-icon {
  font-size: 1.5rem;
  color: var(--accent);
}
.download-details h2 {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.25rem;
}
.download-details p {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.download-details span { color: var(--accent); }

.download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1rem;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
  margin-top: auto;
  position: relative;
  overflow: hidden;
}
.download-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform: translateX(-100%);
  transition: transform 0.22s ease;
  z-index: 0;
}
.download-button:hover::before { transform: translateX(0); }
.download-button:hover { color: #000; box-shadow: 0 0 16px var(--accent-glow); }
.download-button > *, .download-button i { position: relative; z-index: 1; }

/* ─── Subscriptions ─────────────────────────────────────── */
.sub-item {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.sub-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  letter-spacing: 0.04em;
}
.sub-name i { color: var(--accent); font-size: 0.72rem; }
.sub-expiry, .sub-level { font-size: 0.7rem; color: var(--text-muted); }

/* ─── Trusted Devices ───────────────────────────────────── */
.device-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 0.9rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.device-item:hover { border-color: var(--border-hi); }
.device-info { display: flex; align-items: center; gap: 0.75rem; }
.device-info > i { color: var(--accent); font-size: 0.9rem; }
.device-info > div { display: flex; flex-direction: column; gap: 0.1rem; }
.device-label { font-size: 0.78rem; font-weight: 600; color: var(--text); }
.device-ip { font-size: 0.68rem; color: var(--accent); letter-spacing: 0.06em; }
.device-date { font-size: 0.65rem; color: var(--text-muted); }

.remove-device-btn {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.25);
  color: var(--red);
  border-radius: 6px;
  padding: 0.35rem 0.55rem;
  font-size: 0.68rem;
  transition: background 0.2s, border-color 0.2s;
}
.remove-device-btn:hover { background: rgba(248,113,113,0.1); border-color: var(--red); }

/* ─── Discord ───────────────────────────────────────────── */
.discord-profile { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.discord-avatar { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--border-hi); }
.discord-tag { display: block; font-size: 0.85rem; font-weight: 600; color: #fff; letter-spacing: 0.04em; }
.discord-linked-badge { font-size: 0.68rem; color: var(--green); display: flex; align-items: center; gap: 0.3rem; margin-top: 0.2rem; letter-spacing: 0.06em; }
.discord-steps { list-style: none; margin: 1rem 0 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.discord-steps li { display: flex; align-items: center; gap: 0.6rem; color: var(--text-muted); font-size: 0.75rem; }
.discord-steps li i { color: var(--accent); width: 14px; text-align: center; font-size: 0.7rem; }

/* ─── Toast ─────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--surface2);
  color: var(--text);
  padding: 0.75rem 1.1rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-hi);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  z-index: 9999;
  max-width: 300px;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast-success { border-left: 2px solid var(--green); }
.toast-error   { border-left: 2px solid var(--red); }
.toast-info    { border-left: 2px solid var(--accent); }

/* ─── Misc ──────────────────────────────────────────────── */
.muted-text { color: var(--text-muted); font-size: 0.75rem; }

.info-card .input-group { margin-bottom: 0.85rem; }
.info-card .input-group label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--text-muted);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ─── Blurred sensitive values ──────────────────────────── */
.blurred {
  filter: blur(5px);
  transition: filter 0.3s ease;
  user-select: none;
}
.blurred:hover {
  filter: blur(0);
  user-select: text;
}

/* ─── Mobile / Responsive ───────────────────────────────── */

/* Hide custom cursor on touch devices */
@media (hover: none) and (pointer: coarse) {
  *, a, button { cursor: auto !important; }
  #cursor, #cursor-ring { display: none !important; }
}

/* Hamburger button — hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 0;
  flex-shrink: 0;
  z-index: 1001;
}
.nav-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s, background 0.2s;
}
.nav-hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--accent); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--accent); }

@media (max-width: 768px) {
  /* Auth pages — full width with padding */
  body {
    align-items: flex-start;
    padding: 1.5rem 1rem;
  }

  .auth-container {
    padding: 2rem 1.25rem;
    border-radius: var(--radius);
    max-width: 100%;
  }

  /* Top bar — full width pill at top */
  .top-bar {
    top: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-top: none;
    padding: 0.75rem 1rem;
    gap: 0;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  @keyframes fadeDown {
    from { opacity:0; transform: translateY(-12px); }
    to   { opacity:1; transform: translateY(0); }
  }

  /* Show hamburger */
  .nav-hamburger { display: flex; }

  /* Nav collapses under the bar */
  #top_nav {
    display: none;
    width: 100%;
    padding-top: 0.5rem;
    padding-bottom: 0.25rem;
    border-top: 1px solid var(--border);
    margin-top: 0.5rem;
  }
  #top_nav.open { display: block; }

  .top-bar nav ul {
    flex-direction: column;
    gap: 0.15rem;
  }

  .top-bar nav ul li a {
    padding: 0.6rem 0.5rem;
    font-size: 0.72rem;
    border-radius: 6px;
  }

  /* Push content below full-width bar */
  .main-content {
    padding: 70px 1rem 5rem;
  }

  /* Stack cards vertically */
  .account-section-grid {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  /* Cards — tighter padding */
  .info-card {
    padding: 1.1rem;
  }

  .download-item-card {
    padding: 1.1rem;
  }

  /* Buttons full width on mobile */
  .action-button,
  .download-button {
    width: 100%;
    margin-top: 0.75rem;
  }

  /* Discord button row stacks */
  #discord_linked_card > div[style*="display:flex"] {
    flex-direction: column;
  }

  /* Toast — full width at bottom */
  .toast {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: 100%;
  }

  /* Blurred — tap to reveal on mobile */
  .blurred:hover { filter: blur(5px); }
  .blurred:active { filter: blur(0); }
}

@media (max-width: 400px) {
  .auth-container h2 { font-size: 1.2rem; }
  .top-bar h3 { font-size: 0.8rem; }
  .info-card { padding: 0.9rem; }
}

/* ─── Config Cloud ──────────────────────────────────────── */
.config-path {
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  word-break: break-all;
}
.config-path, code {
  font-family: var(--mono);
}
code {
  color: var(--accent);
  font-size: 0.72rem;
  background: rgba(167,139,250,0.08);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.config-drop-zone {
  border: 1px dashed var(--border-hi);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  margin-top: 0.75rem;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.config-drop-zone.drag-over { border-color: var(--accent); background: var(--accent-glow); }
.config-drop-zone i { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.4rem; display: block; }
.config-drop-zone p { font-size: 0.73rem; color: var(--text-muted); }
.config-drop-label { color: var(--accent); cursor: pointer; }
.config-drop-label:hover { text-decoration: underline; }
.config-drop-filename { display: block; margin-top: 0.4rem; font-size: 0.7rem; color: var(--green); letter-spacing: 0.04em; }

.config-search-row { margin-bottom: 0.25rem; }
.config-search-row input {
  width: 100%;
  max-width: 280px;
  padding: 0.6rem 0.85rem;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  color: #fff;
  font-family: var(--mono);
  font-size: 0.78rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.config-search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.config-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s;
}
.config-card:hover { border-color: var(--border-hi); }
.config-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
}
.config-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
}
.config-username {
  font-size: 0.68rem;
  color: var(--text-muted);
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.config-card-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}
.config-card-meta .meta-likes,
.meta-likes {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.config-card-meta .meta-likes i,
.meta-likes i { color: var(--red); font-size: 0.65rem; }
.config-card-meta .meta-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-muted);
}
.config-card-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.config-dl-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--text-muted);
  font-family: var(--mono);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}
.config-dl-link:hover { border-color: var(--accent); color: var(--accent); background: rgba(167,139,250,0.06); }

.config-stars {
  display: inline-flex;
  gap: 0.15rem;
  align-items: center;
}
.config-star-btn {
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 0.72rem;
  line-height: 1;
  padding: 0.25rem 0.3rem;
  transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.1s;
  font-family: var(--mono);
}
.config-star-btn:hover,
.config-star-btn.active {
  color: var(--accent);
  border-color: var(--accent);
  background: rgba(167,139,250,0.1);
}
.config-star-btn:hover { transform: scale(1.15); }

/* ─── Store Tab ─────────────────────────────────────────── */
.store-gamepass-info {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.store-gamepass-icon {
  font-size: 2rem;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.1rem;
}
.store-gamepass-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.store-gamepass-price {
  font-size: 0.7rem;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 0.5rem;
}
.store-roblox-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.68rem;
  color: var(--accent);
  text-decoration: none;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(167,139,250,0.3);
  transition: color 0.2s, border-color 0.2s;
}
.store-roblox-link:hover { color: #fff; border-color: #fff; }

.store-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.25rem;
}
.store-steps li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.73rem;
  color: var(--text-muted);
}
.store-steps li i { color: var(--accent); width: 14px; text-align: center; font-size: 0.7rem; }
.store-steps li strong { color: var(--text); font-weight: 600; }

.store-claimed-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}

.store-key-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--bg2);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
}
.store-key-value {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  word-break: break-all;
}
.store-copy-btn {
  background: transparent;
  border: 1px solid var(--border-hi);
  border-radius: 6px;
  color: var(--text-muted);
  padding: 0.3rem 0.5rem;
  font-size: 0.7rem;
  flex-shrink: 0;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.store-copy-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }

/* ─── Post-Purchase Modal ───────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.2s ease both;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }

.modal-box {
  background: var(--surface);
  border: 1px solid var(--border-hi);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  max-width: 440px;
  width: 100%;
  position: relative;
  animation: fadeUp 0.3s cubic-bezier(0.16,1,0.3,1) both;
  overflow: hidden;
}
.modal-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
}

.modal-header {
  font-size: 0.85rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.modal-body p { line-height: 1.7; }

/* ── Copyright bar ─────────────────────────────────────── */
#copyright-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-muted);
  padding: 0.35rem 1rem;
  background: rgba(10, 10, 14, 0.85);
  backdrop-filter: blur(6px);
  border-top: 1px solid var(--border);
  letter-spacing: 0.06em;
  z-index: 9999;
  pointer-events: none;
}
