/* VarnaCasino Partner — design tokens & layout */
:root {
  --bg: #15181c;
  --panel: #1b2228;
  --panel-2: #242c33;
  --graphite: #2c343e;
  --red-deep: #750614;
  --red-cta: #98071a;
  --red-band: #96252c;
  --red-light: #b25352;
  --text: #f2f3f3;
  --text-muted: #a19c9c;
  --gold-1: #fff6d4;
  --gold-2: #e8c547;
  --gold-3: #b8942f;
  --gold-4: #7a6220;
  --neon-red: rgba(152, 7, 26, 0.65);
  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: min(1280px, 100% - 2rem);
  --header-h: 72px;
  --touch: 44px;
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: clamp(14px, 0.95rem, 16px);
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

body.is-panel {
  padding-bottom: 0;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--red-cta);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius-sm);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* —— Gold gradient text —— */
.text-gold {
  background: linear-gradient(135deg, var(--gold-1) 0%, var(--gold-2) 35%, var(--gold-3) 70%, var(--gold-4) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(184, 148, 47, 0.15);
  background: rgba(21, 24, 28, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header__inner {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  min-height: var(--touch);
}

.logo-svg {
  height: 36px;
  width: auto;
}

@media (min-width: 768px) {
  .logo-svg {
    height: 40px;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.35rem 0;
  transition: color 0.2s;
}

.nav-desktop a:hover {
  color: var(--text);
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.65rem;
}

@media (min-width: 1024px) {
  .header-actions {
    display: flex;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--touch);
  padding: 0 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn:active {
  transform: scale(0.98);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid rgba(184, 148, 47, 0.35);
}

.btn--ghost:hover {
  border-color: var(--gold-2);
  color: var(--gold-1);
}

.btn--primary {
  background: linear-gradient(145deg, var(--red-cta) 0%, var(--red-deep) 100%);
  color: #fff;
  box-shadow: 0 4px 24px var(--neon-red), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.btn--primary:hover {
  filter: brightness(1.08);
  box-shadow: 0 6px 28px rgba(152, 7, 26, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn--gold-outline {
  background: linear-gradient(var(--panel), var(--panel)) padding-box,
    linear-gradient(135deg, var(--gold-2), var(--gold-4)) border-box;
  border: 2px solid transparent;
  color: var(--gold-1);
}

.btn--gold-outline:hover {
  filter: brightness(1.05);
}

.btn--block-mobile {
  width: 100%;
}

@media (min-width: 480px) {
  .btn--block-mobile {
    width: auto;
  }
}

.nav-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  padding: 0;
  border: 1px solid rgba(184, 148, 47, 0.25);
  border-radius: var(--radius-sm);
  background: var(--panel);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-mobile {
  position: fixed;
  inset: 0;
  top: var(--header-h);
  background: rgba(15, 18, 22, 0.97);
  backdrop-filter: blur(8px);
  padding: 1.5rem;
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 99;
}

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

.nav-mobile a {
  padding: 0.85rem 1rem;
  text-decoration: none;
  color: var(--text);
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  min-height: var(--touch);
  display: flex;
  align-items: center;
}

.nav-mobile a:hover,
.nav-mobile a:focus-visible {
  background: var(--panel-2);
  border-color: rgba(184, 148, 47, 0.2);
}

.nav-mobile__actions {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.nav-mobile__actions .btn {
  width: 100%;
}

/* —— Hero —— */
.hero {
  position: relative;
  padding: 2.5rem 0 3rem;
  overflow: hidden;
}

.hero__bg {
  pointer-events: none;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(152, 7, 26, 0.35), transparent),
    radial-gradient(ellipse 60% 40% at 100% 50%, rgba(184, 148, 47, 0.08), transparent),
    radial-gradient(ellipse 50% 30% at 0% 80%, rgba(117, 6, 20, 0.25), transparent);
}

.hero__bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Ctext x='10' y='45' font-size='28' fill='%23fff'%3E♠%3C/text%3E%3C/svg%3E");
  background-size: 100px 100px;
}

.hero__grid {
  position: relative;
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 3rem;
  }

  .hero__content {
    order: 0;
  }

  .hero__visual {
    order: 0;
  }
}

.hero__eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red-light);
  margin-bottom: 0.75rem;
}

.hero h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.65rem, 5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero__sub {
  margin: 0 0 1rem;
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 500;
}

.hero__desc {
  margin: 0 0 1.5rem;
  color: var(--text-muted);
  max-width: 36rem;
}

.hero__ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

@media (min-width: 480px) {
  .hero__ctas {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* Dashboard mockup */
.mock-dashboard {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(184, 148, 47, 0.28);
  background: linear-gradient(165deg, rgba(36, 44, 51, 0.95) 0%, rgba(27, 34, 40, 0.98) 100%);
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 24px 48px rgba(0, 0, 0, 0.45),
    0 0 60px rgba(152, 7, 26, 0.12);
  padding: 1rem;
  max-width: 100%;
}

.mock-dashboard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.mock-dashboard__dots {
  display: flex;
  gap: 6px;
}

.mock-dashboard__dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--graphite);
}

.mock-dashboard__dots span:first-child {
  background: #ff5f57;
}

.mock-dashboard__dots span:nth-child(2) {
  background: #febc2e;
}

.mock-dashboard__dots span:nth-child(3) {
  background: #28c840;
}

.mock-dashboard__title {
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.mock-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-bottom: 1rem;
}

@media (min-width: 400px) {
  .mock-metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.mock-metric {
  background: var(--graphite);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.mock-metric__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.mock-metric__val {
  font-size: 1rem;
  font-weight: 700;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

.mock-metric__val--gold {
  background: linear-gradient(90deg, var(--gold-1), var(--gold-3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.mock-chart {
  height: 140px;
  border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(44, 52, 62, 0.8) 0%, var(--graphite) 100%);
  border: 1px solid rgba(152, 7, 26, 0.2);
  position: relative;
  overflow: hidden;
}

.mock-chart::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(152, 7, 26, 0.15) 20%,
    rgba(232, 197, 71, 0.2) 50%,
    rgba(152, 7, 26, 0.25) 80%,
    transparent 100%
  );
  clip-path: polygon(0 100%, 0 45%, 12% 60%, 25% 35%, 40% 50%, 55% 22%, 70% 40%, 85% 28%, 100% 38%, 100% 100%);
}

.mock-chart__label {
  position: absolute;
  top: 0.65rem;
  left: 0.75rem;
  font-size: 0.7rem;
  color: var(--text-muted);
}

/* —— Section shell —— */
.section {
  padding: 3rem 0;
}

.section--tight {
  padding-top: 2rem;
}

.section__head {
  width: var(--container);
  margin: 0 auto 2rem;
  text-align: center;
  max-width: 42rem;
}

.section__head h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.5rem, 4vw, 2.1rem);
  font-weight: 700;
}

.section__head p {
  margin: 0;
  color: var(--text-muted);
}

/* —— Cards grid —— */
.cards {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .cards--2 {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (min-width: 768px) {
  .cards--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .cards--4 {
    grid-template-columns: repeat(4, 1fr);
  }

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

.card-glass {
  border-radius: var(--radius);
  padding: 1.5rem;
  background: linear-gradient(145deg, rgba(36, 44, 51, 0.65) 0%, rgba(27, 34, 40, 0.85) 100%);
  border: 1px solid rgba(184, 148, 47, 0.2);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.card-glass h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.card-glass p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(232, 197, 71, 0.2), rgba(122, 98, 32, 0.15));
  border: 1px solid rgba(232, 197, 71, 0.35);
  font-size: 1.35rem;
}

/* Commission */
.commission-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.5rem;
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.commission-card--featured {
  border-color: rgba(152, 7, 26, 0.55);
  box-shadow: 0 0 0 1px rgba(152, 7, 26, 0.2), 0 12px 40px rgba(152, 7, 26, 0.15);
}

.badge-popular {
  position: absolute;
  top: -10px;
  right: 1rem;
  background: linear-gradient(135deg, var(--red-cta), var(--red-deep));
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  box-shadow: 0 4px 16px var(--neon-red);
}

.commission-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.25rem;
}

.commission-card .tagline {
  color: var(--gold-2);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.commission-card .detail {
  color: var(--text-muted);
  font-size: 0.9rem;
  flex: 1;
  margin-bottom: 1.25rem;
}

.commission-card .btn {
  width: 100%;
}

/* Timeline / steps */
.steps {
  width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}

@media (min-width: 900px) {
  .steps {
    flex-direction: row;
    align-items: stretch;
    gap: 1rem;
  }
}

.step {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 0;
  position: relative;
}

@media (min-width: 900px) {
  .step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    background: var(--panel);
    border-radius: var(--radius);
    border: 1px solid rgba(184, 148, 47, 0.12);
  }
}

.step__num {
  flex-shrink: 0;
  width: var(--touch);
  height: var(--touch);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.1rem;
  background: linear-gradient(145deg, var(--gold-2), var(--gold-4));
  color: #15181c;
  box-shadow: 0 0 20px rgba(232, 197, 71, 0.25);
}

@media (min-width: 900px) {
  .step__num {
    margin: 0 auto;
  }
}

.step__line {
  position: absolute;
  left: calc(var(--touch) / 2 - 1px);
  top: calc(var(--touch) + 1.25rem);
  bottom: -1.25rem;
  width: 2px;
  background: linear-gradient(180deg, var(--red-band), rgba(184, 148, 47, 0.3));
  box-shadow: 0 0 8px var(--neon-red);
}

@media (min-width: 900px) {
  .step__line {
    display: none;
  }
}

.step:last-child .step__line {
  display: none;
}

.step h3 {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Stats band */
.stats-band {
  background: linear-gradient(90deg, var(--panel) 0%, var(--graphite) 50%, var(--panel) 100%);
  border-block: 1px solid rgba(152, 7, 26, 0.25);
  padding: 2rem 0;
  position: relative;
  overflow: hidden;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(152, 7, 26, 0.12), transparent 70%);
  pointer-events: none;
}

.stats-band__grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  position: relative;
  z-index: 1;
}

@media (min-width: 768px) {
  .stats-band__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  text-align: center;
}

.stat-item__icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
  filter: drop-shadow(0 0 10px rgba(232, 197, 71, 0.4));
}

.stat-item strong {
  display: block;
  font-size: clamp(1.25rem, 3vw, 1.6rem);
  background: linear-gradient(90deg, #fff, var(--gold-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* FAQ */
.faq {
  width: var(--container);
  margin: 0 auto;
  max-width: 720px;
}

.faq details {
  border-radius: var(--radius-sm);
  background: var(--panel);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.65rem;
  overflow: hidden;
}

.faq summary {
  list-style: none;
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  min-height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

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

.faq summary::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--gold-2);
  font-weight: 400;
  transition: transform 0.2s;
}

.faq details[open] summary::after {
  content: "−";
}

.faq .faq__body {
  padding: 0 1.25rem 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Footer */
.site-footer {
  background: var(--panel);
  border-top: 1px solid rgba(184, 148, 47, 0.15);
  padding: 3rem 0 2rem;
  margin-bottom: env(safe-area-inset-bottom, 0);
}

.footer-grid {
  width: var(--container);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.2fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  max-width: 280px;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-2);
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: block;
  padding: 0.35rem 0;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  min-height: var(--touch);
  display: flex;
  align-items: center;
}

.footer-col a:hover {
  color: var(--text);
}

.social-row {
  display: flex;
  gap: 0.65rem;
  margin-top: 1rem;
}

.social-row a {
  width: var(--touch);
  height: var(--touch);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--graphite);
  border: 1px solid rgba(184, 148, 47, 0.2);
  text-decoration: none;
  font-size: 1.1rem;
}

.footer-bottom {
  width: var(--container);
  margin: 2rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-bottom a {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

/* Sticky mobile CTA */
.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
  background: linear-gradient(180deg, transparent, rgba(15, 18, 22, 0.95) 30%);
  display: none;
}

@media (max-width: 1023px) {
  .sticky-cta {
    display: block;
  }

  body.has-sticky-cta {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }
}

.sticky-cta__inner {
  max-width: 480px;
  margin: 0 auto;
}

.sticky-cta .btn {
  width: 100%;
  box-shadow: 0 -4px 24px rgba(152, 7, 26, 0.35);
}

@media (min-width: 1024px) {
  body.has-sticky-cta {
    padding-bottom: 0;
  }
}

/* —— Panel (demo) layout —— */
.panel-shell {
  display: flex;
  min-height: 100vh;
}

.panel-sidebar {
  display: none;
  width: 240px;
  flex-shrink: 0;
  background: var(--panel);
  border-right: 1px solid rgba(184, 148, 47, 0.12);
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

@media (min-width: 900px) {
  .panel-sidebar {
    display: flex;
    flex-direction: column;
  }
}

.panel-sidebar__logo {
  padding: 0 1.25rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 0.75rem;
}

.panel-nav {
  list-style: none;
  margin: 0;
  padding: 0 0.65rem;
}

.panel-nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  min-height: var(--touch);
}

.panel-nav a:hover,
.panel-nav a[aria-current="page"] {
  background: var(--graphite);
  color: var(--text);
}

.panel-nav a[aria-current="page"] {
  border-left: 3px solid var(--red-cta);
}

.panel-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.panel-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  background: rgba(21, 24, 28, 0.95);
  border-bottom: 1px solid rgba(184, 148, 47, 0.12);
  position: sticky;
  top: 0;
  z-index: 50;
}

.panel-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: var(--touch);
  height: var(--touch);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(184, 148, 47, 0.25);
  background: var(--panel-2);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 900px) {
  .panel-menu-btn {
    display: none;
  }
}

.panel-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

.panel-drawer.is-open {
  pointer-events: auto;
  opacity: 1;
}

.panel-drawer__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.panel-drawer__nav {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: min(280px, 85vw);
  background: var(--panel);
  padding: 1rem;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  overflow-y: auto;
}

.panel-drawer.is-open .panel-drawer__nav {
  transform: translateX(0);
}

.panel-content {
  padding: 1.25rem;
  flex: 1;
}

@media (min-width: 768px) {
  .panel-content {
    padding: 1.5rem 2rem;
  }
}

.panel-demo-banner {
  background: linear-gradient(90deg, rgba(152, 7, 26, 0.25), rgba(184, 148, 47, 0.15));
  border: 1px solid rgba(152, 7, 26, 0.35);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  color: var(--text);
}

.panel-grid-metrics {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

@media (min-width: 640px) {
  .panel-grid-metrics {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1100px) {
  .panel-grid-metrics {
    grid-template-columns: repeat(6, 1fr);
  }
}

.panel-metric-card {
  background: var(--panel-2);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.panel-metric-card .label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.panel-metric-card .value {
  font-size: 1.05rem;
  font-weight: 700;
  margin-top: 0.2rem;
  font-variant-numeric: tabular-nums;
}

/* Panel kayıt listesi — mobilde kart, masaüstünde tablo görünümü (sayfa yatay kaydırması yok) */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.record-card {
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1rem;
  display: grid;
  gap: 0.5rem;
}

.record-card__row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.record-card__row span:first-child {
  color: var(--text-muted);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.record-table {
  display: none;
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

@media (min-width: 768px) {
  .record-list {
    display: none;
  }

  .record-table {
    display: table;
  }
}

.record-table th,
.record-table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.record-table th {
  background: var(--graphite);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

/* —— Partner panel (girişli sayfalar) —— kompakt kabuk */
body.is-panel {
  --aff-touch: 38px;
  --aff-radius: 10px;
  --aff-radius-lg: 14px;
}

.aff-app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.aff-topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(21, 24, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 1px 0 rgba(184, 148, 47, 0.08);
}

.aff-topbar__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.4rem 0.65rem;
  flex-wrap: wrap;
}

.aff-topbar__site {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.25rem 0.45rem;
  border-radius: 8px;
  min-height: var(--aff-touch);
  display: inline-flex;
  align-items: center;
}

.aff-topbar__site:hover {
  color: var(--gold-2);
  background: rgba(255, 255, 255, 0.04);
}

.aff-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}

.aff-topbar__user {
  font-size: 0.78rem;
  color: var(--text-muted);
  max-width: min(42vw, 200px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 480px) {
  .aff-topbar__user {
    max-width: 260px;
    font-size: 0.8125rem;
  }
}

.btn--sm {
  min-height: var(--aff-touch);
  padding: 0 0.75rem;
  font-size: 0.8125rem;
  border-radius: 9px;
}

.aff-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.2rem;
  padding: 0.35rem 0.55rem 0.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  mask-image: linear-gradient(90deg, transparent 0, #000 12px, #000 calc(100% - 12px), transparent 100%);
}

.aff-nav a {
  flex: 0 0 auto;
  padding: 0.32rem 0.6rem;
  border-radius: 999px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 500;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.aff-nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.aff-nav a.is-active {
  color: var(--bg);
  background: linear-gradient(135deg, var(--gold-2), var(--gold-4));
  border-color: rgba(232, 197, 71, 0.35);
  font-weight: 600;
}

.aff-main {
  flex: 1;
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 0.65rem 0.75rem 1.25rem;
}

@media (min-width: 768px) {
  .aff-main {
    padding: 0.85rem 1rem 1.5rem;
  }
}

.aff-main > h1:first-child,
.aff-page-title {
  margin: 0 0 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.aff-main h2,
.aff-subhead {
  margin: 0 0 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.aff-card {
  background: var(--panel-2);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--aff-radius-lg);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.65rem;
}

.aff-card--flush {
  padding: 0.65rem 0.75rem;
}

.aff-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.aff-table th,
.aff-table td {
  padding: 0.45rem 0.4rem;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.aff-table th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.aff-form label {
  display: block;
  margin: 0.45rem 0 0.2rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.aff-form input,
.aff-form textarea,
.aff-form select {
  width: 100%;
  max-width: 36rem;
  padding: 0.45rem 0.55rem;
  border-radius: var(--aff-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--graphite);
  color: var(--text);
  font: inherit;
  min-height: var(--aff-touch);
  font-size: 0.875rem;
}

.aff-row {
  display: grid;
  gap: 0.65rem;
}

@media (min-width: 640px) {
  .aff-row.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .aff-row.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

.msg {
  padding: 0.55rem 0.75rem;
  border-radius: var(--aff-radius);
  margin-bottom: 0.65rem;
  font-size: 0.8125rem;
}

.msg-ok {
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #b8e6bf;
}

.msg-err {
  background: rgba(152, 7, 26, 0.12);
  border: 1px solid rgba(152, 7, 26, 0.35);
  color: #f0b4b4;
}

/* Dashboard / araç çubuğu */
.aff-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.55rem;
  align-items: flex-end;
}

.aff-toolbar label {
  flex: 1 1 140px;
  min-width: 0;
}

.aff-toolbar .btn {
  flex: 0 0 auto;
}

.aff-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.55rem;
}

@media (min-width: 640px) {
  .aff-metric-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.aff-metric {
  padding: 0.55rem 0.65rem;
  border-radius: var(--aff-radius);
  background: rgba(44, 52, 62, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.aff-metric__label {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.aff-metric__value {
  font-size: 1.35rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
  margin-top: 0.15rem;
}

.aff-metric__value--gold {
  font-size: 1.2rem;
  color: var(--gold-2);
}

.aff-kv {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.aff-kv code {
  background: var(--graphite);
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.78rem;
}

/* Giriş / başvuru kutuları */
.aff-auth-wrap {
  min-height: 100vh;
  margin: 0;
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 70% 50% at 50% -10%, rgba(152, 7, 26, 0.22), transparent),
    var(--bg);
}

.aff-auth {
  width: 100%;
  max-width: 380px;
  background: linear-gradient(165deg, rgba(36, 44, 51, 0.92) 0%, rgba(27, 34, 40, 0.98) 100%);
  border: 1px solid rgba(184, 148, 47, 0.18);
  border-radius: var(--aff-radius-lg);
  padding: 1.15rem 1.2rem;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

.aff-auth--wide {
  max-width: 440px;
}

.aff-auth h1 {
  margin: 0 0 0.2rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.aff-auth .aff-auth__lead {
  margin: 0 0 0.85rem;
  color: var(--text-muted);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.aff-auth label {
  display: block;
  margin-top: 0.65rem;
  color: var(--text-muted);
  font-size: 0.78rem;
}

.aff-auth input {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--aff-radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: var(--graphite);
  color: var(--text);
  font: inherit;
  min-height: var(--aff-touch);
  font-size: 0.875rem;
}

.aff-auth .btn-wrap {
  margin-top: 0.85rem;
}

.aff-auth .aff-auth__foot {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.aff-auth .aff-auth__foot a {
  color: var(--gold-2);
}

.aff-auth .err,
.aff-auth .ok {
  padding: 0.5rem 0.65rem;
  border-radius: var(--aff-radius);
  font-size: 0.8125rem;
  margin: 0.65rem 0;
}

.aff-auth .err {
  background: rgba(152, 7, 26, 0.15);
  border: 1px solid rgba(152, 7, 26, 0.35);
  color: #f5c2c2;
}

.aff-auth .ok {
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.3);
  color: #b8e6bf;
}
