/* Reaper Softwares — Static Docs Site Overhaul */

:root {
  --bg: #030303;
  --bg-elevated: #07070c;
  --bg-card: rgba(14, 14, 22, 0.65);
  --border: rgba(255, 255, 255, 0.05);
  --border-hover: rgba(220, 38, 38, 0.3);
  --border-active: rgba(220, 38, 38, 0.5);
  --text: #f8fafc;
  --text-muted: #8b949e;
  --accent: #dc2626; /* Deep gaming red */
  --accent-glow: rgba(220, 38, 38, 0.2);
  --accent-gradient: linear-gradient(135deg, #dc2626 0%, #991b1b 100%);
  --success: #10b981;
  --success-glow: rgba(16, 185, 129, 0.2);
  --warning: #f59e0b;
  --font-display: "Bebas Neue", sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --radius: 12px;
  --header-h: 52px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Background Grids & Glows */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  z-index: 0;
}

.bg-glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(140px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.65;
}

.bg-glow-1 {
  width: 600px;
  height: 600px;
  top: -250px;
  right: -100px;
  background: radial-gradient(circle, rgba(220, 38, 38, 0.15) 0%, transparent 70%);
}

.bg-glow-2 {
  width: 500px;
  height: 500px;
  bottom: -200px;
  left: -150px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, transparent 70%);
}

.container {
  width: min(1200px, 92vw);
  margin: 0 auto;
}

/* Header navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 3, 3, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: background 0.3s ease;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.logo-mark {
  flex-shrink: 0;
  display: block;
  line-height: 0;
}

.logo-img {
  display: block;
  height: 30px;
  width: auto;
  pointer-events: none;
  user-select: none;
}

.logo-text {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
}

.logo-accent {
  color: var(--accent);
  margin-left: 0.1em;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.4);
}

.nav {
  display: flex;
  gap: 0.2rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 0.2rem;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  font-weight: 500;
  font-size: 0.82rem;
  transition: color 0.2s ease, background 0.2s ease;
}

.nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: #fff;
  background: rgba(244, 63, 94, 0.15);
  border: 1px solid rgba(244, 63, 94, 0.2);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.3);
}

.auth-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: var(--success);
  background: rgba(16, 185, 129, 0.08);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.05);
}

.auth-dot {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
  animation: pulse 2s infinite;
}

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

/* Main content */
.main {
  flex: 1;
  position: relative;
  z-index: 1;
  padding-bottom: 4rem;
}

/* Hero Section */
.hero {
  padding: 6rem 0 4rem;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-family: monospace;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 0.35rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.2);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  line-height: 0.95;
  letter-spacing: 0.01em;
  margin-bottom: 1.25rem;
  color: #fff;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

.hero-accent {
  background: linear-gradient(135deg, #ff5e84 0%, #be123c 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.hero-sub {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 580px;
  margin: 0 auto 2.25rem;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.5rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  font-family: inherit;
}

.btn:hover {
  transform: translateY(-2px);
}

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

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(244, 63, 94, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #ff5277 0%, #be123c 100%);
  box-shadow: 0 6px 24px rgba(244, 63, 94, 0.35);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(244, 63, 94, 0.4);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
}

.btn-discord {
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff;
  box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-discord:hover {
  background: linear-gradient(135deg, #6672f5 0%, #4752c4 100%);
  box-shadow: 0 6px 24px rgba(88, 101, 242, 0.3);
}

.btn-block {
  width: 100%;
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.8rem;
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-alt {
  background: radial-gradient(circle at center, rgba(14, 14, 22, 0.3) 0%, transparent 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display);
  font-size: 2.25rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
  color: #fff;
}

.section-cta {
  margin-top: 2rem;
}

.section-cta a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.section-cta a:hover {
  color: #ff5277;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.3);
}

/* Homepage Bento Grid */
.products-showcase {
  padding-top: 2rem;
}

.products-showcase .section-title {
  margin-bottom: 0.25rem;
}

.products-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}

.products-sub {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 480px;
}

.products-count {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 0.35rem 0.75rem;
  background: rgba(255, 255, 255, 0.01);
  border: 1px solid var(--border);
  border-radius: 6px;
  white-space: nowrap;
}

.products-bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.product-tile {
  grid-column: span 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  position: relative;
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease, background 0.25s ease;
}

.product-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.06) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
  pointer-events: none;
}

.product-tile:hover {
  border-color: rgba(244, 63, 94, 0.35);
  background: rgba(18, 18, 29, 0.75);
  transform: translateY(-4px);
  box-shadow: 
    0 12px 30px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(244, 63, 94, 0.03);
}

.product-tile:hover::before {
  opacity: 1;
}

.product-tile--featured {
  grid-column: span 2;
  background: linear-gradient(145deg, rgba(30, 15, 18, 0.5) 0%, rgba(14, 14, 22, 0.7) 60%);
  border-color: rgba(244, 63, 94, 0.15);
}

.product-tile--featured .product-tile-name {
  font-size: 1.4rem;
}

.product-tile--featured .product-tag {
  font-size: 0.78rem;
  padding: 0.3rem 0.6rem;
}

.product-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.product-tag {
  font-family: monospace;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent);
  background: rgba(244, 63, 94, 0.08);
  border: 1px solid rgba(244, 63, 94, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}

.product-tag--muted {
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--border);
}

.product-status {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.status-live {
  width: 6px;
  height: 6px;
  background: var(--success);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--success);
}

.product-tile-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  position: relative;
  z-index: 1;
}

.product-tile-meta {
  font-size: 0.8rem;
  color: var(--text-muted);
  position: relative;
  z-index: 1;
  flex: 1;
}

.product-tile-action {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 0.75rem;
  position: relative;
  z-index: 1;
  transition: color 0.2s ease, transform 0.2s ease;
}

.product-tile-action::after {
  content: " →";
  opacity: 0;
  transform: translateX(-4px);
  display: inline-block;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-tile:hover .product-tile-action {
  color: var(--accent);
}

.product-tile:hover .product-tile-action::after {
  opacity: 1;
  transform: translateX(0);
}

/* Checklist Grid */
.checklist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.check-item {
  display: flex;
  gap: 0.85rem;
  padding: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.check-item:hover {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.01);
}

.check-item.check-required {
  border-color: rgba(244, 63, 94, 0.2);
  background: rgba(244, 63, 94, 0.02);
}

.check-item.check-required:hover {
  border-color: rgba(244, 63, 94, 0.3);
}

.check-icon {
  color: var(--success);
  font-weight: 700;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.4);
}

.check-item.check-required .check-icon {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(244, 63, 94, 0.4);
}

.check-item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.9rem;
  color: #fff;
}

.check-item p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Docs Layout */
.docs-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2.5rem;
  padding: 2.5rem 0;
  align-items: start;
}

.docs-sidebar {
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.docs-sidebar h3 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  padding-left: 0.5rem;
}

.docs-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.docs-nav-link {
  display: block;
  padding: 0.45rem 0.75rem;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  border-radius: 6px;
  border-left: 2px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.docs-nav-link:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
}

.docs-nav-link.active {
  color: var(--accent);
  border-left-color: var(--accent);
  background: rgba(244, 63, 94, 0.08);
  font-weight: 500;
  text-shadow: 0 0 10px rgba(244, 63, 94, 0.15);
}

.docs-nav-sublink {
  padding-left: 1.25rem;
  font-size: 0.8rem;
}

.docs-nav-group {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin: 0.75rem 0 0.35rem;
  padding-left: 0.75rem;
}

.docs-content h1 {
  font-family: var(--font-display);
  font-size: 2.5rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.docs-lead {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 2rem;
  max-width: 640px;
}

.docs-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 2rem;
  transition: border-color 0.2s ease;
}

.docs-card:hover {
  border-color: rgba(255, 255, 255, 0.08);
}

.docs-card h2 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.docs-card p {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1rem;
}

.badge {
  font-size: 0.65rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-required {
  background: rgba(244, 63, 94, 0.15);
  color: #ffa5b5;
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.mt-lg {
  margin-top: 2rem;
}

/* Prose Documentation Styling */
.prose h2 {
  font-size: 1.4rem;
  margin: 2.5rem 0 1rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: #fff;
  letter-spacing: 0.01em;
}

.doc-section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 1rem;
}

.prose h3 {
  font-size: 1.05rem;
  margin: 1.5rem 0 0.75rem;
  color: #fff;
}

.prose h4 {
  font-size: 0.95rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--text-muted);
}

.prose p {
  margin-bottom: 0.95rem;
  color: #cdd9e5;
  font-size: 0.92rem;
}

.prose ul, .prose ol {
  margin: 0.75rem 0 1.25rem 1.25rem;
  color: #cdd9e5;
  font-size: 0.92rem;
}

.prose li {
  margin-bottom: 0.45rem;
}

.prose a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease;
}

.prose a:hover {
  color: #ff5277;
}

.prose code, .prose kbd {
  font-family: "Consolas", "Courier New", monospace;
  font-size: 0.82em;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.15rem 0.35rem;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fff;
}

.prose kbd {
  font-size: 0.78em;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.8);
}

.callout {
  padding: 1.15rem;
  border-radius: var(--radius);
  margin: 1.5rem 0;
  font-size: 0.88rem;
  border-left: 3px solid;
}

.callout-important {
  background: rgba(244, 63, 94, 0.06);
  border-color: var(--accent);
  color: #ffb8c5;
}

.callout-warning {
  background: rgba(245, 158, 11, 0.05);
  border-color: var(--warning);
  color: #fce38a;
}

.callout a {
  color: inherit;
  text-decoration: underline;
}

.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 0.4rem;
}

.status-dot.green { background: var(--success); box-shadow: 0 0 6px var(--success); }
.status-dot.red { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.status-dot.orange { background: var(--warning); box-shadow: 0 0 6px var(--warning); }

ul.checklist {
  list-style: none;
  margin-left: 0;
}

ul.checklist li::before {
  content: "☐ ";
  color: var(--text-muted);
  margin-right: 0.2rem;
}

.product-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.5rem;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  margin-bottom: 2rem;
}

.product-header-icon {
  font-size: 2rem;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.product-header h1 {
  margin-bottom: 0.2rem;
  font-size: 2rem;
  color: #fff;
}

.product-header p {
  color: var(--text-muted);
  font-size: 0.88rem;
  margin: 0;
}

.docs-footer-cta {
  margin-top: 3.5rem;
  padding: 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.docs-footer-cta p {
  margin-bottom: 1.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Two-Column Page Grid */
.download-section {
  padding: 5rem 0 4rem;
}

.download-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 3.5rem;
  align-items: start;
}

.download-section h1 {
  font-family: var(--font-display);
  font-size: 2.75rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.75rem;
  color: #fff;
}

.download-steps {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.step {
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
  padding: 0.75rem;
  border-radius: 8px;
  transition: background 0.2s ease;
}

.step:hover {
  background: rgba(255, 255, 255, 0.01);
}

.step-num {
  width: 32px;
  height: 32px;
  background: rgba(244, 63, 94, 0.1);
  color: var(--accent);
  border: 1px solid rgba(244, 63, 94, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.05);
}

.step strong {
  display: block;
  margin-bottom: 0.2rem;
  color: #fff;
  font-size: 0.92rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.step a {
  color: var(--accent);
  text-decoration: none;
}

.step a:hover {
  text-decoration: underline;
}

/* Sidebar Panels & Forms */
.download-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.download-panel h2 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 1.1rem;
  color: #fff;
  letter-spacing: 0.01em;
}

.key-form label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.45rem;
}

.key-form input {
  width: 100%;
  padding: 0.75rem 1rem;
  background: rgba(3, 3, 3, 0.4);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  margin-bottom: 1.1rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.key-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15);
  background: rgba(3, 3, 3, 0.6);
}

.form-error {
  color: #ff9fb0;
  font-size: 0.8rem;
  margin-top: 0.85rem;
  padding: 0.75rem;
  background: rgba(244, 63, 94, 0.08);
  border-radius: 8px;
  border: 1px solid rgba(244, 63, 94, 0.15);
}

.download-success {
  text-align: center;
  margin-bottom: 1.5rem;
}

.success-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--success);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.1);
}

.download-loading {
  text-align: center;
  padding: 2rem 0;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid rgba(255, 255, 255, 0.05);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1.1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Key Management Page */
.km-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.km-status-card {
  margin-bottom: 1.5rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.km-status-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.85rem;
}

.km-meta {
  display: grid;
  gap: 0.75rem;
}

.km-meta div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.88rem;
}

.km-meta dt {
  color: var(--text-muted);
}

.km-meta dd {
  font-weight: 600;
  text-align: right;
  color: #fff;
}

.km-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-bottom: 0.85rem;
}

.km-action-msg {
  font-size: 0.82rem;
  margin-bottom: 0.85rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid transparent;
}

.km-action-msg--ok {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
}

/* Support Page */
.support-note {
  margin-top: 1.5rem;
  font-size: 0.85rem;
}

.support-discord-card {
  text-align: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.support-discord-icon {
  display: inline-flex;
  color: #5865f2;
  margin-bottom: 0.85rem;
}

.support-discord-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.support-discord-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.5;
}

.support-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.support-links a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.01);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.support-links a:hover {
  color: #fff;
  border-color: var(--accent);
  background: rgba(244, 63, 94, 0.02);
}

/* Partners & Resellers Page Specific layouts */
.partner-panel-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.partner-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.partner-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #0056ff, #00d2ff);
}

.partner-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 210, 255, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 210, 255, 0.15);
}

.partner-card-header {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.partner-logo {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 2px solid rgba(0, 210, 255, 0.3);
  background: var(--bg);
  object-fit: cover;
}

.partner-title {
  font-family: var(--font-body);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #fff;
}

.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.35rem;
}

.partner-badge {
  display: inline-block;
  font-size: 0.7rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  white-space: nowrap;
}

.partner-badge--admin {
  color: #ff8888;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.25);
}

.partner-badge--partner {
  color: #66e0ff;
  background: rgba(0, 210, 255, 0.1);
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.partner-badge--exclusive {
  color: #c084fc;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
}

.partner-card-body {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.partner-card-body p {
  margin-bottom: 0.75rem;
}

.partner-card-body p:last-child {
  margin-bottom: 0;
}

.partner-card-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.5rem;
}

/* Resellers Page Styles */
.resellers-container {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: sticky;
  top: calc(var(--header-h) + 1.5rem);
}

.reseller-card {
  background: rgba(22, 22, 31, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.reseller-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #ff4b4b);
  opacity: 0.85;
}

.reseller-card:hover {
  transform: translateY(-4px);
  border-color: rgba(220, 38, 38, 0.35);
  box-shadow: 
    0 12px 36px rgba(0, 0, 0, 0.5), 
    0 0 0 1px rgba(220, 38, 38, 0.15),
    0 0 20px rgba(220, 38, 38, 0.05);
}

.reseller-header {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.reseller-logo {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid rgba(220, 38, 38, 0.25);
  background: var(--bg);
  object-fit: cover;
  transition: transform 0.3s ease;
}

.reseller-card:hover .reseller-logo {
  transform: scale(1.05);
}

.reseller-info {
  flex: 1;
}

.reseller-name {
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.01em;
  color: #fff;
}

.reseller-region {
  font-size: 0.78rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-top: 0.2rem;
}

.reseller-region-flag {
  font-size: 1rem;
  line-height: 1;
}

.reseller-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.reseller-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.reseller-badge--verified {
  color: #4ade80;
  background: rgba(74, 222, 128, 0.08);
  border: 1px solid rgba(74, 222, 128, 0.18);
}

.reseller-badge--payment {
  color: #a1a1aa;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.reseller-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.reseller-actions {
  margin-top: 1.25rem;
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0;
  margin-top: auto;
  background: rgba(3, 3, 3, 0.5);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-note {
  font-family: monospace;
  letter-spacing: 0.02em;
}

.footer-note a {
  color: var(--text-muted);
  text-decoration: none;
}

.footer-note a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* Responsive design */
@media (max-width: 900px) {
  .products-bento {
    grid-template-columns: 1fr 1fr;
  }
  .product-tile--featured {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .docs-layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .docs-sidebar {
    position: static;
  }
  .download-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .download-panel {
    position: static;
  }
  .resellers-container {
    position: static;
  }
  .nav-link {
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
  }
  .logo-img {
    height: 28px;
  }
  .logo-text {
    font-size: 1.15rem;
  }
  .auth-badge {
    display: none;
  }
}

@media (max-width: 520px) {
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  .products-bento {
    grid-template-columns: 1fr;
  }
  .product-tile--featured {
    grid-column: span 1;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .btn {
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
