/* ==========================================================================
   GuildHubPVP — "Obsidian Elite" Design System
   Dark-first, token-driven CSS. No framework dependency.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens
   -------------------------------------------------------------------------- */
:root {
  /* Surfaces (light) */
  --bg: #f5f6fa;
  --bg-elevated: #ffffff;
  --surface: #ffffff;
  --surface-2: #eef0f6;
  --border: #e2e4ec;
  --border-strong: #cdd2dd;

  /* Text (light) */
  --text: #12131c;
  --text-muted: #5b6272;
  --text-faint: #8b93a3;

  /* Brand */
  --primary-solid: #6366f1;
  --primary-hover: #4f46e5;
  --primary-soft: rgba(99, 102, 241, 0.12);
  --primary-contrast: #ffffff;
  --secondary: #0f9d76;
  --secondary-soft: rgba(15, 157, 118, 0.12);
  --tertiary: #d97a3f;
  --tertiary-soft: rgba(217, 122, 63, 0.14);

  /* Status */
  --success: #16a34a;
  --success-soft: rgba(22, 163, 74, 0.12);
  --danger: #e11d48;
  --danger-soft: rgba(225, 29, 72, 0.1);
  --warning: #d97706;
  --warning-soft: rgba(217, 119, 6, 0.12);

  /* Geometry */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.07);
  --shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 50px rgba(15, 23, 42, 0.14);

  /* Layout */
  --font-sans: "Outfit", "Segoe UI", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --header-h: 76px;
  --sidebar-w: 268px;
  --container-max: 1440px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Dark theme — copied from Obsidian Elite */
.dark {
  --bg: #0b0f19;
  --bg-elevated: #0e1320;
  --surface: #111827;
  --surface-2: #161d2c;
  --border: #1f2937;
  --border-strong: #2a3446;

  --text: #f3f5f9;
  --text-muted: #9aa4b8;
  --text-faint: #6b7486;

  --primary-solid: #6366f1;
  --primary-hover: #818cf8;
  --primary-soft: rgba(99, 102, 241, 0.18);
  --primary-contrast: #ffffff;
  --secondary: #4edea3;
  --secondary-soft: rgba(78, 222, 163, 0.14);
  --tertiary: #ffb783;
  --tertiary-soft: rgba(255, 183, 131, 0.16);

  --success: #4edea3;
  --success-soft: rgba(78, 222, 163, 0.14);
  --danger: #fb7185;
  --danger-soft: rgba(251, 113, 133, 0.14);
  --warning: #ffb783;
  --warning-soft: rgba(255, 183, 131, 0.16);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.35);
  --shadow: 0 16px 36px rgba(0, 0, 0, 0.42);
  --shadow-lg: 0 32px 64px rgba(0, 0, 0, 0.55);
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease);
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.5em;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

p {
  margin: 0 0 1em;
  color: var(--text-muted);
}

ul, ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font-family: inherit;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 24px 0;
}

::selection {
  background: var(--primary-soft);
  color: var(--text);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--border-strong);
  border-radius: var(--radius-pill);
}

:focus-visible {
  outline: 2px solid var(--primary-solid);
  outline-offset: 2px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* --------------------------------------------------------------------------
   3. Layout Shell
   -------------------------------------------------------------------------- */
.container-shell {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

.section {
  padding-block: 64px;
}

.section-sm {
  padding-block: 32px;
}

.main-content {
  min-height: calc(100vh - var(--header-h));
}

/* --------------------------------------------------------------------------
   4. Typography helpers
   -------------------------------------------------------------------------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary-solid);
}

.gradient-text {
  background: linear-gradient(120deg, var(--primary-solid), var(--secondary) 60%, var(--tertiary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

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

.text-faint {
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s var(--ease), background-color 0.2s var(--ease),
    border-color 0.2s var(--ease), color 0.2s var(--ease), box-shadow 0.2s var(--ease);
  background: var(--surface-2);
  color: var(--text);
}

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

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

.btn-solid {
  background: var(--primary-solid);
  color: var(--primary-contrast);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}

.btn-solid:hover {
  background: var(--primary-hover);
}

.btn-secondary {
  background: var(--secondary-soft);
  color: var(--secondary);
  border-color: transparent;
}

.btn-secondary:hover {
  background: var(--secondary);
  color: #06251c;
}

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

.btn-ghost:hover {
  border-color: var(--primary-solid);
  color: var(--primary-solid);
}

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: #ffffff;
}

.btn-success {
  background: var(--success-soft);
  color: var(--success);
}

.btn-success:hover {
  background: var(--success);
  color: #06251c;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.82rem;
}

.btn-block {
  width: 100%;
}

.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* --------------------------------------------------------------------------
   6. Cards
   -------------------------------------------------------------------------- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

.card-hover:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 0;
}

.glass-card {
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
}

/* --------------------------------------------------------------------------
   7. Badges
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
}

.badge-warning {
  background: var(--warning-soft);
  color: var(--warning);
}

.badge-muted {
  background: var(--surface-2);
  color: var(--text-faint);
  border-color: var(--border);
}

.badge-violet {
  background: var(--primary-soft);
  color: var(--primary-solid);
}

.badge-emerald {
  background: var(--secondary-soft);
  color: var(--secondary);
}

.badge-amber {
  background: var(--tertiary-soft);
  color: var(--tertiary);
}

/* --------------------------------------------------------------------------
   8. Forms
   -------------------------------------------------------------------------- */
.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input,
.textarea,
select.input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.input::placeholder,
.textarea::placeholder {
  color: var(--text-faint);
}

.input:focus,
.textarea:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.textarea {
  min-height: 140px;
  resize: vertical;
}

.field-hint {
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 6px;
}

.field-error {
  font-size: 0.78rem;
  color: var(--danger);
  margin-top: 6px;
}

.form-group {
  margin-bottom: 20px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   9. Grid utilities
   -------------------------------------------------------------------------- */
.grid {
  display: grid;
  gap: 24px;
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.marketplace-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

/* --------------------------------------------------------------------------
   10. Stat cards
   -------------------------------------------------------------------------- */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary-solid);
  font-size: 1rem;
}

.stat-card-value {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-card-delta {
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-card-delta.up {
  color: var(--success);
}

.stat-card-delta.down {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   11. Header / Navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.01em;
}

.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--primary-contrast);
  background: linear-gradient(135deg, var(--primary-solid), var(--secondary));
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav-link {
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.site-nav-link:hover {
  color: var(--text);
  background: var(--surface-2);
}

.site-nav-link.is-active {
  color: var(--primary-solid);
  background: var(--primary-soft);
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle,
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.theme-toggle:hover,
.nav-toggle:hover {
  border-color: var(--primary-solid);
  color: var(--primary-solid);
}

.theme-toggle .icon-moon {
  display: none;
}
.dark .theme-toggle .icon-sun {
  display: none;
}
.dark .theme-toggle .icon-moon {
  display: block;
}

.nav-toggle {
  display: none;
}

.sidebar-toggle {
  display: none;
}

.sidebar-backdrop {
  display: none;
}

.sidebar-backdrop.is-visible {
  display: block;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 40;
  border: 0;
  padding: 0;
  cursor: pointer;
}

/* Partners */
.partners {
  border-top: 1px solid var(--border);
  padding: 48px 0 24px;
  background: var(--bg-elevated);
}

.partners-head {
  text-align: center;
  margin-bottom: 28px;
}

.partners-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-top: 8px;
}

.partners-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: 720px;
  margin: 0 auto;
}

.partner-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 22px;
  border-radius: var(--radius-lg, 16px);
  border: 1px solid var(--border);
  background: var(--surface);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.partner-card:hover {
  border-color: var(--primary-solid);
  transform: translateY(-2px);
}

.partner-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.partner-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

.partner-link {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--primary-solid);
}

/* Ad slots (homepage) */
.ad-rail {
  padding: 16px 0 8px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.ad-rail-inner {
  display: grid;
  grid-template-columns: 160px 1fr 160px;
  gap: 16px;
  align-items: stretch;
}

.ad-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  text-decoration: none;
  color: var(--text-muted);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-md, 14px);
  background: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(99, 102, 241, 0.04) 8px,
    rgba(99, 102, 241, 0.04) 16px
  );
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.ad-slot:hover {
  border-color: var(--primary-solid);
  color: var(--text);
  background-color: var(--primary-soft);
}

.ad-slot-side {
  min-height: 180px;
  padding: 16px 10px;
}

.ad-slot-center {
  min-height: 90px;
  padding: 18px 20px;
}

.ad-slot-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.ad-slot-cta {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary-solid);
}

.ad-slot-size {
  font-size: 0.72rem;
  color: var(--text-faint);
}

@media (max-width: 900px) {
  .ad-rail-inner {
    grid-template-columns: 1fr;
  }
  .ad-slot-side {
    min-height: 88px;
  }
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 16px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav .site-nav-link {
  width: 100%;
  padding: 12px 14px;
}

.mobile-nav-divider {
  border-top: 1px solid var(--border);
  margin: 8px 0;
}

/* --------------------------------------------------------------------------
   12. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 48px;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 32px;
}

.footer-col-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-faint);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
  transition: color 0.2s var(--ease);
}

.footer-links a:hover {
  color: var(--primary-solid);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 0.84rem;
  color: var(--text-faint);
}

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

.footer-bottom a:hover {
  color: var(--primary-solid);
}

.legal-notice {
  margin: 8px 0 24px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}

.legal-notice p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.legal-notice a {
  color: var(--primary-solid);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* --------------------------------------------------------------------------
   13. Sidebar (dashboard shell)
   -------------------------------------------------------------------------- */
.dashboard-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg-elevated);
  border-right: 1px solid var(--border);
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 24px;
}

.sidebar-brand-name {
  font-weight: 700;
  font-size: 1.05rem;
}

.sidebar-brand-meta {
  font-size: 0.76rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-2);
  margin-bottom: 18px;
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  background: linear-gradient(135deg, var(--primary-solid), var(--tertiary));
  color: #fff;
  flex-shrink: 0;
}

.sidebar-user-name {
  font-size: 0.88rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-package {
  font-size: 0.74rem;
  color: var(--primary-solid);
  font-weight: 600;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  width: 100%;
}

.sidebar .nav-link.active {
  background: var(--primary-soft);
  color: var(--text);
  font-weight: 600;
  box-shadow: inset 3px 0 0 var(--primary-solid);
}

.sidebar-footer {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   14. Tables
   -------------------------------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.table {
  width: 100%;
  border-collapse: collapse;
  background: var(--surface);
  font-size: 0.9rem;
}

.table th,
.table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.table th {
  color: var(--text-faint);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  background: var(--surface-2);
}

.table tbody tr:last-child td {
  border-bottom: none;
}

.table tbody tr:hover {
  background: var(--surface-2);
}

/* --------------------------------------------------------------------------
   15. Flash messages
   -------------------------------------------------------------------------- */
.flash {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 20px;
  border: 1px solid transparent;
}

.flash-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 30%, transparent);
}

.flash-error {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 30%, transparent);
}

/* --------------------------------------------------------------------------
   16. Decorative — grid-noise, hero, cover
   -------------------------------------------------------------------------- */
.grid-noise {
  position: relative;
  isolation: isolate;
}

.grid-noise::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--border) 60%, transparent) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, black 40%, transparent 100%);
  opacity: 0.5;
}

.hero {
  position: relative;
  padding-block: 88px 64px;
  overflow: hidden;
}

.hero-visual {
  min-height: min(78vh, 720px);
  display: flex;
  align-items: center;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  opacity: 0.28;
  pointer-events: none;
}

.hero-backdrop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.85) contrast(1.05);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(11, 15, 25, 0.92) 0%, rgba(11, 15, 25, 0.72) 55%, rgba(11, 15, 25, 0.55) 100%),
    linear-gradient(180deg, rgba(11, 15, 25, 0.35) 0%, rgba(11, 15, 25, 0.9) 100%);
}

.hero-visual .hero-inner {
  position: relative;
  z-index: 1;
}

.brand-hero {
  font-size: clamp(1.6rem, 3.2vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 0 0 12px;
  color: var(--text);
}

.hero-role-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 18px;
  font-size: 0.92rem;
}

.hero-role-links a {
  color: var(--text-muted);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-role-links a:hover {
  color: var(--primary-hover);
}

.hero-glow {
  position: absolute;
  top: -140px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(closest-side, var(--primary-soft), transparent);
  z-index: -1;
  pointer-events: none;
}

.hero-title {
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  max-width: 780px;
}

.hero-lead {
  font-size: 1.05rem;
  max-width: 620px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .hero-backdrop {
    grid-template-columns: 1fr;
  }
  .hero-backdrop img:nth-child(n + 2) {
    display: none;
  }
}

.cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--surface-2);
}

.cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 15, 0.75) 100%);
}

.cover-caption {
  position: absolute;
  left: 16px;
  bottom: 14px;
  right: 16px;
  z-index: 1;
  color: #fff;
  font-weight: 600;
  font-size: 0.94rem;
}

/* --------------------------------------------------------------------------
   17. Accordion (FAQ)
   -------------------------------------------------------------------------- */
.accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.accordion-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accordion-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
  cursor: pointer;
  text-align: left;
}

.accordion-trigger .accordion-icon {
  flex-shrink: 0;
  transition: transform 0.25s var(--ease);
  color: var(--text-faint);
}

.accordion-item.is-open .accordion-trigger .accordion-icon {
  transform: rotate(45deg);
  color: var(--primary-solid);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s var(--ease);
}

.accordion-item.is-open .accordion-panel {
  max-height: 480px;
}

.accordion-panel-inner {
  padding: 0 20px 20px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* --------------------------------------------------------------------------
   18. Misc utility
   -------------------------------------------------------------------------- */
.flex {
  display: flex;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.gap-lg { gap: 24px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 32px; }
.mb-sm { margin-bottom: 8px; }
.mb-md { margin-bottom: 16px; }
.mb-lg { margin-bottom: 32px; }
.divider {
  height: 1px;
  background: var(--border);
  margin-block: 24px;
}
.empty-state {
  text-align: center;
  padding: 56px 24px;
  color: var(--text-faint);
}

/* --------------------------------------------------------------------------
   19. Responsive breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1080px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

@media (max-width: 900px) {
  .dashboard-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    width: var(--sidebar-w);
    transform: translateX(-100%);
    transition: transform 0.25s var(--ease);
    z-index: 50;
    box-shadow: var(--shadow-lg);
  }
  .sidebar.is-open {
    transform: translateX(0);
  }
  .sidebar-toggle {
    display: inline-flex !important;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .form-row {
    grid-template-columns: 1fr;
  }
  .partners-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .container-shell {
    padding-inline: 18px;
  }
}

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
  }
  .stat-card-value {
    font-size: 1.5rem;
  }
  .hero-title {
    font-size: 1.9rem;
  }
}

/* --------------------------------------------------------------------------
   20. Page component compatibility layer
   (extra classes used across marketing / auth pages, mapped onto the
   same design tokens so every page stays visually consistent)
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: 24px;
  width: 100%;
}

.lead {
  font-size: 1.05rem;
  color: var(--text-muted);
  max-width: 620px;
}

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

.btn-primary {
  background: var(--primary-solid);
  color: var(--primary-contrast);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  background: var(--primary-hover);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--primary-solid);
  color: var(--primary-solid);
}

.btn-lg {
  padding: 15px 28px;
  font-size: 1rem;
}

.badge-outline {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text-muted);
}

.badge-hot {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--danger);
  color: #fff;
  border: none;
  z-index: 1;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 18px;
  border: 1px solid transparent;
}
.alert-success {
  background: var(--success-soft);
  color: var(--success);
}
.alert-error {
  background: var(--danger-soft);
  color: var(--danger);
}

.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
}

.field input,
.field select,
.field textarea {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text);
  font-family: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.field textarea {
  resize: vertical;
  min-height: 110px;
}

/* Section headers & bands */
.page-head {
  padding-block: 72px 40px;
}

.section-head {
  max-width: 640px;
  margin-bottom: 36px;
}

.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  max-width: none;
  margin-bottom: 36px;
}

.section-muted {
  background: var(--surface-2);
}

.cta-band {
  text-align: center;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 56px 32px;
  margin-inline: 24px;
}

.cta-inner {
  max-width: 620px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.cta-inner .hero-actions {
  justify-content: center;
}

/* Hero page variants */
.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.stat-value {
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat-label {
  font-size: 0.82rem;
  color: var(--text-faint);
}

/* How-it-works blocks */
.how-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 30px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-solid);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Listing cards (bounties / guild offers) */
.bounty-card,
.guild-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0;
  overflow: hidden;
}

.bounty-card .card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--surface-2);
}

.bounty-card .card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bounty-card .card-body,
.guild-card {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.bounty-card .card-body {
  padding: 22px;
}

.card-hot {
  border-color: var(--danger);
  box-shadow: 0 0 0 1px var(--danger);
}

.card-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
}

.reward {
  font-weight: 700;
  color: var(--secondary);
  font-size: 0.9rem;
}

.meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.82rem;
  color: var(--text-faint);
}

.result-count {
  color: var(--text-faint);
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.filter-bar {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(160px, 0.7fr) auto;
  align-items: end;
  gap: 16px;
  margin-top: 28px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  width: 100%;
  box-sizing: border-box;
}

.filter-bar .field {
  min-width: 0;
  width: 100%;
}

.filter-bar .field input,
.filter-bar .field select {
  width: 100%;
  box-sizing: border-box;
}

.filter-bar .btn {
  justify-self: start;
  white-space: nowrap;
}

.guild-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.guild-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.rating {
  color: var(--tertiary);
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: auto;
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.detail-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.86rem;
  color: var(--text-faint);
}

.detail-list li strong {
  color: var(--text);
  font-weight: 600;
}

/* Auth pages */
.auth-section {
  padding-block: 72px;
  display: flex;
  justify-content: center;
}

.auth-container {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  text-align: center;
}

.auth-card-wide {
  max-width: 520px;
}

.auth-card .form {
  text-align: left;
  margin-top: 24px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0 8px;
  color: var(--text-faint);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border, rgba(255,255,255,0.12));
}

.google-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  width: 100%;
}

.btn-google-shell {
  position: relative;
  width: 100%;
  border-radius: var(--radius);
  overflow: hidden;
}

.btn-google {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  pointer-events: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}

.btn-google-shell:hover .btn-google {
  border-color: var(--primary-solid);
  background: var(--primary-soft);
}

.btn-google-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}

.google-btn-overlay {
  position: absolute;
  inset: 0;
  opacity: 0.011;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  cursor: pointer;
}

.google-btn-overlay > div,
.google-btn-overlay iframe {
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  border-radius: var(--radius) !important;
}

.auth-google-hint {
  font-size: 0.82rem;
  margin: 0;
}

.auth-google-error {
  color: var(--danger);
  font-size: 0.82rem;
}

.password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-field .input,
.password-field input {
  width: 100%;
  padding-right: 46px;
}

.password-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  color: var(--text-faint);
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.password-toggle:hover {
  color: var(--text);
  background: var(--primary-soft);
}

.password-toggle[aria-pressed="true"] {
  color: var(--primary-solid);
}

.hidden {
  display: none !important;
}

.auth-hint {
  font-size: 0.82rem;
  color: var(--text-faint);
  background: var(--surface-2);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-top: 18px;
}

.auth-switch {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-top: 18px;
}

.auth-switch a {
  color: var(--primary-solid);
  font-weight: 600;
}

.role-choice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.role-option {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 14px;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
}

.role-option:has(input:checked) {
  border-color: var(--primary-solid);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.role-desc {
  font-size: 0.78rem;
  color: var(--text-faint);
  text-align: left;
}

/* Coming soon banner */
.coming-soon-hero {
  text-align: center;
}

.coming-soon-badge {
  margin-bottom: 16px;
}

.coming-soon-banner {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, var(--primary-solid), var(--tertiary));
  color: #fff;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

/* Native <details> FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  padding: 0;
}

.faq-item > summary.faq-question {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.faq-item > summary.faq-question::-webkit-details-marker {
  display: none;
}

.faq-item > summary.faq-question::after {
  content: "+";
  color: var(--text-faint);
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease);
}

.faq-item[open] > summary.faq-question::after {
  transform: rotate(45deg);
  color: var(--primary-solid);
}

.faq-answer {
  padding: 0 22px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0;
}

@media (max-width: 900px) {
  .section-head-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .filter-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .role-choice {
    grid-template-columns: 1fr;
  }
  .cta-band {
    margin-inline: 0;
    padding: 40px 24px;
  }
  .hero-stats {
    gap: 20px;
  }
}

.bounty-card-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}
.bounty-card-trigger:focus-visible {
  outline: 2px solid var(--primary-solid);
  outline-offset: 2px;
  border-radius: inherit;
}
.bounty-card .card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

/* Cookie consent — default visible; JS hides after accept */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 9999;
  max-width: 720px;
  margin-inline: auto;
}

.cookie-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
}

.cookie-banner-text {
  flex: 1 1 260px;
  min-width: 0;
}

.cookie-banner-text strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.95rem;
}

.cookie-banner-text p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: var(--text-muted);
}

.cookie-banner-text a {
  color: var(--primary-solid);
  font-weight: 600;
}

.cookie-banner-actions {
  flex: 0 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.offer-manage-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.offer-manage-card {
  padding: 18px;
}

.offer-manage-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.pay-modal {
  border: 0;
  padding: 0;
  background: transparent;
  color: var(--text);
  max-width: 560px;
  width: calc(100% - 32px);
}

.pay-modal::backdrop {
  background: rgba(5, 8, 16, 0.72);
}

.pay-modal-card {
  background: var(--surface-2, var(--surface));
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
}

.pay-modal-title {
  margin: 0;
  color: var(--text) !important;
  font-size: 1.15rem;
  font-weight: 700;
}

.pay-modal-lead {
  margin: 0 0 12px;
  color: var(--text-muted, #b8c0d4);
}

.pay-modal-card .label,
.pay-modal-card .detail-list span,
.pay-modal-card .muted {
  color: var(--text-muted, #b8c0d4);
}

.pay-modal-card .detail-list strong {
  color: var(--text);
}

/* Message toasts (top-right) */
.gh-toast-host {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 12000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

.gh-toast {
  pointer-events: auto;
  background: var(--surface-2, #151b2c);
  color: var(--text, #f2f5ff);
  border: 1px solid var(--border-strong, #2c3650);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  animation: gh-toast-in 0.28s ease;
}

.gh-toast strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.gh-toast span {
  display: block;
  font-size: 0.82rem;
  color: var(--text-muted, #b8c0d4);
}

@keyframes gh-toast-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.pay-modal-alert {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.88rem;
  font-weight: 600;
}
.pay-modal-alert.is-error {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.45);
  color: #fecaca;
}
.pay-modal-alert.is-ok {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.gh-confirm-modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: 420px;
  width: calc(100% - 32px);
}
.gh-confirm-modal::backdrop {
  background: rgba(4, 8, 18, 0.72);
  backdrop-filter: blur(4px);
}
.gh-confirm-card {
  background: var(--surface-2, #141a2b);
  color: var(--text, #f3f6ff);
  border: 1px solid var(--border-strong, #2d3750);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
}
.gh-confirm-title {
  margin: 0 0 8px;
  font-size: 1.15rem;
  font-weight: 750;
  color: var(--text, #fff);
}
.gh-confirm-text {
  margin: 0 0 18px;
  color: var(--text-muted, #b7c0d6);
  line-height: 1.45;
  font-size: 0.95rem;
}
.gh-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.bounty-card.pkg-elite,
.card.pkg-elite {
  border-color: rgba(250, 204, 21, 0.55);
  box-shadow: 0 0 0 1px rgba(250, 204, 21, 0.12);
}
.bounty-card.pkg-pro,
.card.pkg-pro {
  border-color: rgba(168, 85, 247, 0.55);
  box-shadow: 0 0 0 1px rgba(168, 85, 247, 0.12);
}
.bounty-card.pkg-starter,
.card.pkg-starter {
  border-color: rgba(56, 189, 248, 0.45);
}
.badge-pkg-elite { background: rgba(250, 204, 21, 0.18); color: #fde68a; border: 1px solid rgba(250, 204, 21, 0.35); }
.badge-pkg-pro { background: rgba(168, 85, 247, 0.18); color: #e9d5ff; border: 1px solid rgba(168, 85, 247, 0.35); }
.badge-pkg-starter { background: rgba(56, 189, 248, 0.16); color: #bae6fd; border: 1px solid rgba(56, 189, 248, 0.35); }

.launch-countdown {
  color: var(--primary, #a78bfa);
  font-weight: 650;
}
