:root {
  --bg: #ffffff;
  --bg2: #f8fafc;
  --card: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --line: #e2e8f0;
  --brand: #1d4ed8;
  --brand-dark: #1e40af;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --hero-bg: #07101f;
  --hero-bg2: #0f172a;
  --soft: #eff6ff;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.04);
  --shadow: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.06);

  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  --fs-limit: 36px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

.skip-link {
  position: absolute;
  top: -48px;
  left: 8px;
  z-index: 200;
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 10px 10px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  transition: top .15s;
}

.skip-link:focus { top: 0; }

.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px;
  height: 1px;
  opacity: 0;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

/* ── HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 5vw;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  color: var(--text);
  text-decoration: none;
  font-size: 18px;
  letter-spacing: -.03em;
  flex-shrink: 0;
}

.brand-logo {
  height: 32px;
  width: auto;
  display: block;
}

.site-nav {
  display: flex;
  gap: 4px;
  align-items: center;
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.02);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.04), 0 1px 0 rgba(255, 255, 255, 0.8);
  padding: 5px 6px;
  border-radius: 100px;
  margin: 0 auto;
}

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 100px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  position: relative;
}

.site-nav a.active,
.site-nav a:hover {
  color: var(--brand);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: scale(1.02);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.lang-switch {
  display: flex;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.lang-switch a {
  padding: 5px 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  transition: background .15s, color .15s;
}

.lang-switch a.active {
  background: var(--brand);
  color: #fff;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  padding: 9px 18px;
  font-weight: 700;
  font-size: 14px;
  line-height: 1.45;
  cursor: pointer;
  transition: background .18s var(--ease-out), transform .12s var(--ease-out), box-shadow .18s var(--ease-out);
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
}

.button:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(29,78,216,.3);
}

.button:active {
  background: var(--brand-dark);
  transform: translateY(0) scale(.98);
  box-shadow: 0 1px 2px rgba(15,23,42,.12);
  transition-duration: .06s;
}

.button.secondary {
  background: #fff;
  color: var(--brand);
  border: 1.5px solid var(--line);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: #93c5fd;
  background: var(--soft);
  box-shadow: none;
}

.button.secondary:active { border-color: var(--brand); background: #dbeafe; }

.button.wide { width: 100%; }

.button.disabled,
.button[aria-disabled="true"] {
  background: var(--bg2);
  color: var(--muted);
  box-shadow: none;
  cursor: not-allowed;
  pointer-events: none;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 18px;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

/* ── HERO ── */
.hero {
  background: var(--hero-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 60% 0%, rgba(29,78,216,.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 80%, rgba(245,158,11,.15) 0%, transparent 50%);
  padding: 100px 5vw 80px;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.02) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.hero-content .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  border-radius: 99px;
  color: #93c5fd;
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .02em;
  margin-bottom: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 36px;
}

.hero-actions .button { font-size: 15px; padding: 12px 24px; }

.hero-actions .button.secondary {
  background: rgba(255,255,255,.08);
  color: #e2e8f0;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow: none;
}

.hero-actions .button.secondary:hover {
  background: rgba(255,255,255,.15);
  border-color: rgba(255,255,255,.3);
}

/* ── SECTIONS ── */
.section-head {
  padding: 72px 5vw 24px;
  max-width: 800px;
  margin: 0 auto;
}

.page-hero {
  max-width: none;
  width: 100%;
  padding: 24px 5vw 8px;
  background: var(--hero-bg);
  background-image:
    radial-gradient(ellipse 80% 60% at 65% 0%, rgba(29, 78, 216, 0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 0% 85%, rgba(245, 158, 11, 0.14) 0%, transparent 50%);
  position: relative;
  overflow: hidden;
  margin: 0 auto;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 60px 60px;
}

.section-head h2 {
  font-size: clamp(24px, 3vw, var(--fs-limit));
  font-weight: 900;
  letter-spacing: -.03em;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.1;
}

.page-hero h1 {
  font-size: clamp(0.925rem, 2.5vw, 1.5rem);
  font-weight: 900;
  letter-spacing: -.03em;
  color: #fff !important;
  margin-bottom: 10px;
  line-height: 1.1;
  position: relative;
  z-index: 1;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.page-hero p {
  color: rgba(255,255,255,0.7) !important;
  font-size: 15px;
  line-height: 1.5;
  max-width: 900px;
  position: relative;
  z-index: 1;
}

.page-hero.small h1 { font-size: clamp(0.925rem, 2.5vw, 1.5rem); }

/* ── BADGE ── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  background: var(--soft);
  border-radius: 99px;
  color: var(--brand);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* ── DETAIL / CART SHARED BASE ── */
.detail-main,
.order-box,
.content-page,
.cart-page {
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 24px;
  padding: 36px;
  box-shadow: var(--shadow-sm);
}

/* ── PAGES / CART ── */
.content-page,
.cart-page {
  max-width: 860px;
  margin: 56px auto;
}

.content-page h1,
.cart-page h1 {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: -.03em;
  margin-bottom: 20px;
}

/* ── FLASH ── */
.flash {
  margin: 16px 5vw;
  padding: 14px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
}

.flash.success { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.flash.error   { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

/* ── FOOTER ── */
.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  padding: 40px 5vw;
  border-top: 1px solid var(--line);
  background: var(--hero-bg2);
  margin-top: 40px;
}

.site-footer p {
  color: #94a3b8;
  font-size: 13px;
  margin-top: 6px;
}

.site-footer strong {
  color: #e2e8f0;
  font-size: 15px;
}

.footer-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.footer-links a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.footer-links a:hover {
  color: #e2e8f0;
  background: rgba(255,255,255,.06);
}

/* ── MOBILE ── */
@media (max-width: 980px) {
  .site-header { flex-wrap: wrap; height: auto; padding: 12px 5vw; }
  .menu-toggle { display: block; }
  .site-nav {
    display: none;
    order: 5;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 8px 0 4px;
    gap: 2px;
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 10px 12px; font-size: 15px; }
  .header-actions { width: auto; margin-left: 12px; }
}

@media (max-width: 640px) {
  .site-footer { flex-direction: column; }
  .content-page,
  .cart-page { margin: 24px 5vw; padding: 24px 20px; max-width: none; }
}

@media (max-width: 420px) {
  .header-actions { gap: 6px; }
}

/* ── NAV DROPDOWN ──────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
  white-space: nowrap;
  border-radius: 100px;
}
.nav-dropdown:hover .nav-dropdown-btn,
.nav-dropdown-btn:hover,
.nav-dropdown.active .nav-dropdown-btn {
  color: var(--brand);
  background: var(--bg);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
  transform: scale(1.02);
}

.nav-chevron {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  transition: transform .2s;
}

.nav-dropdown-btn[aria-expanded="true"] .nav-chevron,
.nav-dropdown:hover .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12), 0 2px 8px rgba(0,0,0,.06);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 200;
}

.nav-dropdown-menu.open { display: flex; }

.nav-dropdown:hover .nav-dropdown-menu { display: flex; }

/* Bridge the gap between button and dropdown menu to prevent losing hover state */
.nav-dropdown::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 20px;
  z-index: 199;
  display: none;
}

.nav-dropdown:hover::after { display: block; }

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: background .12s;
  font-weight: 400;
}

.nav-dropdown-menu a:hover { background: var(--bg2); }

.ndm-icon {
  font-size: 18px;
  color: var(--brand);
  line-height: 1;
  flex-shrink: 0;
  opacity: .7;
}

.ndm-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.ndm-text strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.ndm-text small {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}

@media (max-width: 840px) {
  .nav-dropdown-btn { font-size: 15px; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    box-shadow: none;
    border: none;
    background: var(--bg2);
    border-radius: 12px;
    margin-top: 4px;
  }
}

/* .srv-hero sadece padding override — bg/::before/renk .page-hero'dan miras */
.srv-hero { padding: 76px 5vw 64px; }
.srv-hero-actions { margin-top: 28px; position: relative; z-index: 1; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
  .button:hover { transform: none; }
}

/* ── MEMBER BUTTON (header) ── */
.member-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 12px 5px 9px;
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.member-btn:hover { border-color: var(--brand); background: var(--soft); }
button.member-btn, button.dash-action-btn { cursor: pointer; }

/* ── AUTH PAGES ── */
.auth-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 48px 5vw 80px;
}
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 36px;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow);
}
.auth-card.wide { max-width: 520px; }
.auth-logo { display: flex; justify-content: center; margin-bottom: 24px; }
.auth-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.02em;
  text-align: center;
  margin-bottom: 28px;
}
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.auth-input {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  transition: border-color .15s;
  outline: none;
}
.auth-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(29,78,216,.08); }
.auth-divider { border: none; border-top: 1px solid var(--line); margin: 4px 0; }
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.auth-switch a { color: var(--brand); text-decoration: none; font-weight: 600; }
.auth-member-since { font-size: 13px; color: var(--muted); margin-top: 4px; }

/* ── DASHBOARD ── */
.dashboard-wrap {
  max-width: 860px;
  margin: 0 auto;
  padding: 32px 5vw 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.dash-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.dash-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 8px 16px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  font-family: var(--font);
}
.dash-action-btn:hover { border-color: var(--brand); background: var(--soft); }
.dash-action-btn.logout:hover { border-color: #e03131; background: #fff5f5; }
.dash-section-title {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.01em;
  margin-bottom: 14px;
}
.dash-table-wrap { overflow-x: auto; border-radius: 10px; border: 1px solid var(--line); }
.dash-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.dash-table th {
  background: var(--bg2);
  padding: 10px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.dash-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}
.dash-table tr:last-child td { border-bottom: none; }
.order-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 99px;
  background: var(--bg2);
  color: var(--muted);
  border: 1px solid var(--line);
}
.status-new      { background: #eff6ff; color: var(--brand); border-color: #bfdbfe; }
.status-confirmed{ background: #f0fdf4; color: #16a34a; border-color: #bbf7d0; }
.status-invoiced { background: #fefce8; color: #a16207; border-color: #fef08a; }
.status-done     { background: #f0fdf4; color: #15803d; border-color: #86efac; }
.status-cancelled{ background: #fff1f2; color: #e03131; border-color: #fecaca; }
.dash-empty { color: var(--muted); font-size: 14px; }
.dash-downloads { display: flex; flex-direction: column; gap: 12px; }
.dash-dl-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
}
.dash-dl-info { display: flex; flex-direction: column; gap: 3px; }
.dash-dl-info strong { font-size: 15px; }
.dash-dl-info span { font-size: 13px; color: var(--muted); }
.dash-dl-info small { font-size: 11.5px; color: var(--muted); }
.coming-soon-badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg2);
  border: 1px solid var(--line);
  padding: 4px 10px;
  border-radius: 99px;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .auth-card { padding: 28px 20px; }
  .auth-title { font-size: 18px; }
  .dash-dl-item { flex-direction: column; align-items: flex-start; }
  .member-btn span { display: none; }
}
