/* Nova teması — tasarım sistemi (açık / koyu)
 * <html data-theme="light|dark">; seçim localStorage 'pulse-theme', yoksa cihaz ayarı.
 * Renk dili: kömür siyahı zemin + asit yeşili (lime) + nane; vurgu için mercan. Başlıklar Space Grotesk, rakamlar JetBrains Mono. */

:root{
  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Space Grotesk', 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;
  --radius: 12px; --radius-sm: 8px;
  --ease: cubic-bezier(.2,.8,.2,1);

  /* koyu (varsayılan) */
  --bg: #101215; --surface: #16191d; --surface-2: #1c2025;
  --card: #181b20; --card-2: #20242a; --card-3: #2b3038;
  --fg: 242 244 239; --shade: 0 0 0;
  --text: #f2f4ef; --text-2: rgb(242 244 239 / .72); --text-3: rgb(242 244 239 / .54); --muted: rgb(242 244 239 / .6);
  --line: rgb(255 255 255 / .08); --line-2: rgb(255 255 255 / .14);
  --lime: #c6f432; --lime-rgb: 198 244 50;
  --mint: #34e3a0; --mint-rgb: 52 227 160;
  --coral: #ff6b3d; --coral-rgb: 255 107 61;
  --brand: #c6f432; --brand-2: #34e3a0; --brand-rgb: 198 244 50; --brand2-rgb: 52 227 160;
  --accent: #d6ff5e; --on-brand: #0a0b0c; --ink: #0a0b0c;
  --ok: #34e3a0; --ok-rgb: 52 227 160;
  --bad: #ff6262; --bad-rgb: 255 98 98;
  --warn: #ffb020; --warn-rgb: 255 176 32;
  --info: #5ac8fa; --info-2: #8adcff; --info-rgb: 90 200 250;
  --pink: #ff8ad8; --pink-rgb: 255 138 216;
  --shadow: 0 1px 0 rgb(255 255 255 / .04) inset, 0 20px 40px -20px rgb(0 0 0 / .8);
  --grid-dot: rgb(255 255 255 / .07);
  color-scheme: dark;
}

/* açık: sıcak kâğıt zemin, koyu zeytin yeşili metin vurgusu */
:root[data-theme="light"]{
  --bg: #f4f3ee; --surface: #ffffff; --surface-2: #fafaf6;
  --card: #ffffff; --card-2: #f3f2ec; --card-3: #e8e6de;
  --fg: 18 20 16; --shade: 18 20 16;
  --text: #121410; --text-2: #4a4f45; --text-3: #676c61; --muted: #5d6258;
  --line: rgb(18 20 16 / .1); --line-2: rgb(18 20 16 / .18);
  --lime: #bdf031; --lime-rgb: 189 240 49;
  --mint: #23c98b; --mint-rgb: 35 201 139;
  --coral: #f2551f; --coral-rgb: 242 85 31;
  --brand: #3f7d0b; --brand-2: #0d8a5c; --brand-rgb: 63 125 11; --brand2-rgb: 13 138 92;
  --accent: #3f7d0b; --on-brand: #ffffff;
  --ok: #0d8a5c; --ok-rgb: 13 138 92;
  --bad: #d92d2d; --bad-rgb: 217 45 45;
  --warn: #b25e00; --warn-rgb: 214 120 0;
  --info: #0b72b9; --info-2: #0a85a8; --info-rgb: 11 114 185;
  --pink: #c22a8f; --pink-rgb: 194 42 143;
  --shadow: 0 1px 2px rgb(18 20 16 / .05), 0 14px 30px -18px rgb(18 20 16 / .25);
  --grid-dot: rgb(18 20 16 / .07);
  color-scheme: light;
}

/* ── temel ── */
html{ -webkit-text-size-adjust: 100%; }
body{ font-family: var(--font) !important; background-color: var(--bg) !important; color: var(--text) !important;
      background-image: radial-gradient(var(--grid-dot) 1px, transparent 1px) !important; background-size: 22px 22px !important; background-attachment: fixed !important;
      transition: background-color .25s var(--ease), color .25s var(--ease); }
h1, h2, h3, h4, .card-title, .page-title{ font-family: var(--font-display); letter-spacing: -.02em; }
::selection{ background: var(--lime); color: var(--ink); }
a{ color: inherit; }
*{ scrollbar-width: thin; scrollbar-color: rgb(var(--fg) / .2) transparent; }
input, select, textarea, button{ font-family: inherit; }
.mono, code, pre, kbd{ font-family: var(--font-mono) !important; }

/* form alanları */
input.form-control, select.form-control, textarea.form-control, .form-control, .form-select{
  background: var(--surface-2) !important; color: var(--text) !important; border: 1px solid var(--line-2) !important;
  border-radius: var(--radius-sm) !important; transition: border-color .15s, box-shadow .15s, background .15s;
}
:root:not([data-theme="light"]) :is(input.form-control, select.form-control, textarea.form-control, .form-control, .form-select, .custom-select-selected){ background: #121519 !important; }
.form-control:hover{ border-color: rgb(var(--fg) / .28) !important; }
.form-control:focus, .form-select:focus, input:focus, select:focus, textarea:focus{
  outline: none; border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgb(var(--brand-rgb) / .22) !important;
}
.form-control::placeholder, input::placeholder, textarea::placeholder{ color: rgb(var(--fg) / .4) !important; }
select option, select optgroup{ background: var(--surface); color: var(--text); }
.form-label{ font-weight: 700 !important; font-size: .82rem !important; color: var(--text-2) !important; }

/* butonlar */
.btn{ display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: var(--radius-sm); border: 1px solid transparent;
      font-weight: 700; font-size: .9rem; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), box-shadow .15s, background .15s; }
.btn:hover{ transform: translateY(-1px); }
.btn:disabled, .btn.disabled{ opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary{ background: var(--lime) !important; color: var(--ink) !important; border-color: transparent !important; }
.btn-primary:hover{ box-shadow: 0 10px 26px -10px rgb(var(--lime-rgb) / .9) !important; }
.btn-success{ background: var(--mint) !important; color: var(--ink) !important; }
.btn-danger{ background: var(--bad) !important; color: #fff !important; }
.btn-default, .btn-secondary, .btn-light, .btn-outline{ background: var(--card-2) !important; color: var(--text) !important; border-color: var(--line-2) !important; }

/* uyarılar */
.alert{ padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid var(--line); border-left-width: 3px; background: var(--card-2); color: var(--text); }
.alert-success{ background: rgb(var(--ok-rgb) / .08); border-color: rgb(var(--ok-rgb) / .3); border-left-color: var(--ok); color: var(--ok); }
.alert-danger{ background: rgb(var(--bad-rgb) / .08); border-color: rgb(var(--bad-rgb) / .3); border-left-color: var(--bad); color: var(--bad); }
.alert-warning{ background: rgb(var(--warn-rgb) / .08); border-color: rgb(var(--warn-rgb) / .3); border-left-color: var(--warn); color: var(--warn); }
.alert-info{ background: rgb(var(--info-rgb) / .08); border-color: rgb(var(--info-rgb) / .3); border-left-color: var(--info); color: var(--info); }
code, pre{ background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; }

/* kartlar ve tablolar (üye sayfaları) */
.card, .stat-card{ border-radius: var(--radius) !important; border: 1px solid var(--line) !important; background: var(--card) !important; box-shadow: var(--shadow); backdrop-filter: none !important; }
.card-header{ padding: 16px 20px !important; border-bottom: 1px solid var(--line) !important; }
.card-title{ font-size: 1rem !important; font-weight: 700 !important; display: flex; align-items: center; }
.card-body{ padding: 20px !important; }
.stat-card:hover{ transform: translateY(-2px); border-color: rgb(var(--brand-rgb) / .4) !important; }
table{ color: var(--text); }
.card table th, .table-container th, table th{ font-size: .68rem !important; text-transform: uppercase; letter-spacing: .09em; font-weight: 800 !important; color: var(--text-3) !important;
  background: var(--card-2) !important; border-bottom: 1px solid var(--line) !important; font-family: var(--font-display); }
.card table td, .table-container td{ border-bottom: 1px solid var(--line) !important; }
.card table tbody tr:hover, .table-container tbody tr:hover{ background: rgb(var(--brand-rgb) / .05) !important; }
.badge, .status-badge{ border-radius: 6px !important; font-weight: 800 !important; font-size: .72rem !important; letter-spacing: .03em; text-transform: uppercase; }

/* tema düğmesi */
.theme-toggle{ display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
               background: var(--card-2); color: var(--text); border: 1px solid var(--line); transition: transform .3s var(--ease), background .15s; }
.theme-toggle:hover{ transform: rotate(-20deg); background: var(--card-3); }
.theme-toggle .fa-sun{ display: none; } .theme-toggle .fa-moon{ display: inline-block; }
:root[data-theme="light"] .theme-toggle .fa-sun{ display: inline-block; } :root[data-theme="light"] .theme-toggle .fa-moon{ display: none; }

/* ════════ üye paneli kabuğu: üst menü + mobil alt sekme çubuğu ════════ */
.nv-top{ position: sticky; top: 0; z-index: 100; border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(1.5) blur(16px); -webkit-backdrop-filter: saturate(1.5) blur(16px); }
:root:not([data-theme="light"]) .nv-top{ background: rgb(16 18 21 / .82); }
:root[data-theme="light"] .nv-top{ background: rgb(244 243 238 / .85); }
.nv-top-in{ max-width: 1320px; margin: 0 auto; height: 66px; padding: 0 20px; display: flex; align-items: center; gap: 22px; }
.nv-logo{ display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; white-space: nowrap; }
.nv-logo img{ height: 32px; }
.nv-logo-mark{ width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: .9rem;
  box-shadow: 0 0 0 4px rgb(var(--lime-rgb) / .15); }
.nv-nav{ display: flex; align-items: center; gap: 2px; }
.nv-link{ position: relative; display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 9px; color: var(--text-2); text-decoration: none;
  font-weight: 600; font-size: .9rem; transition: color .15s, background .15s; white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit; }
.nv-link:hover{ color: var(--text); background: var(--card-2); }
.nv-link[aria-current="page"]{ color: var(--text); }
.nv-link[aria-current="page"]::after{ content: ""; position: absolute; left: 12px; right: 12px; bottom: -14px; height: 2px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 12px rgb(var(--lime-rgb) / .8); }
.nv-badge{ min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--coral); color: #fff; font-size: .68rem; font-weight: 800; display: inline-grid; place-items: center; }
.nv-more{ position: relative; }
.nv-drop{ position: absolute; top: calc(100% + 12px); left: 50%; margin-left: -260px; width: 520px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line-2);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / .5); display: grid; grid-template-columns: 1fr 1fr; gap: 2px; opacity: 0; visibility: hidden; transform: translateY(-6px); transition: .18s var(--ease); }
.nv-more.open .nv-drop, .nv-user.open .nv-drop{ opacity: 1; visibility: visible; transform: none; }
.nv-drop a{ display: flex; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.nv-drop a:hover, .nv-drop a[aria-current="page"]{ background: var(--card-2); }
.nv-drop a i{ width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--card-2); color: var(--brand); border: 1px solid var(--line); flex: 0 0 auto; }
.nv-drop a small{ display: block; color: var(--text-3); font-weight: 500; font-size: .76rem; margin-top: 1px; }
.nv-right{ margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nv-bal{ display: inline-flex; align-items: center; height: 40px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line-2); text-decoration: none; }
.nv-bal span{ padding: 0 12px; font-family: var(--font-mono); font-weight: 700; font-size: .9rem; color: var(--text); display: inline-flex; align-items: center; gap: 8px; height: 100%; background: var(--card-2); white-space: nowrap; }
.nv-bal span i{ color: var(--ok); font-size: .8rem; }
.nv-bal b{ width: 38px; height: 100%; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: .85rem; transition: filter .15s; }
.nv-bal:hover b{ filter: brightness(1.08); }
.nv-icon{ position: relative; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; background: var(--card-2); color: var(--text); border: 1px solid var(--line);
  text-decoration: none; cursor: pointer; transition: background .15s; }
.nv-icon:hover{ background: var(--card-3); }
.nv-icon .nv-badge{ position: absolute; top: -6px; right: -6px; }
.nv-user{ position: relative; }
.nv-avatar{ width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; cursor: pointer; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: linear-gradient(135deg, var(--lime), var(--mint)); color: var(--ink); }
.nv-user .nv-drop{ left: auto; right: 0; width: 250px; grid-template-columns: 1fr; }
.nv-user-head{ padding: 10px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.nv-user-head b{ display: block; font-family: var(--font-display); }
.nv-user-head span{ font-size: .8rem; color: var(--text-3); }
.nv-wrap{ max-width: 1320px; margin: 0 auto; padding: 26px 20px 60px; }
.nv-pagehead{ display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.nv-pagehead h1{ margin: 0; font-size: clamp(1.35rem, 2.4vw, 1.8rem); font-weight: 700; letter-spacing: -.035em; display: flex; align-items: center; gap: 12px; color: var(--text); }
.nv-pagehead h1::before{ content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--lime); box-shadow: 0 0 14px rgb(var(--lime-rgb) / .9); }
.nv-crumb{ font-size: .78rem; color: var(--text-3); font-family: var(--font-mono); }
.nv-crumb a{ color: var(--text-2); text-decoration: none; }

/* mobil alt çubuk + menü sayfası */
.nv-tabbar, .nv-sheet{ display: none; }
@media (max-width: 1080px){
  .nv-nav{ display: none; }
  .nv-top-in{ height: 60px; gap: 10px; padding: 0 14px; }
  .nv-hide-m{ display: none !important; }
  .nv-wrap{ padding: 18px 14px 110px; }
  .nv-tabbar{ position: fixed; z-index: 120; left: 10px; right: 10px; bottom: 10px; height: 64px; display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
    border-radius: 18px; border: 1px solid var(--line-2); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 20px 40px -10px rgb(0 0 0 / .5); }
  :root:not([data-theme="light"]) .nv-tabbar{ background: rgb(24 27 32 / .92); }
  :root[data-theme="light"] .nv-tabbar{ background: rgb(255 255 255 / .92); }
  .nv-tab{ display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--text-3); text-decoration: none; font-size: .66rem; font-weight: 700; background: none; border: 0; font-family: inherit; cursor: pointer; }
  .nv-tab i{ font-size: 1.05rem; }
  .nv-tab[aria-current="page"]{ color: var(--text); }
  .nv-tab[aria-current="page"] i{ color: var(--brand); }
  .nv-tab.fab{ margin-top: -26px; }
  .nv-tab.fab i{ width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: var(--lime); color: var(--ink); font-size: 1.25rem;
    box-shadow: 0 10px 24px -6px rgb(var(--lime-rgb) / .8), 0 0 0 5px var(--bg); }
  .nv-tab.fab[aria-current="page"] i{ color: var(--ink); }
  .nv-sheet{ position: fixed; inset: 0; z-index: 130; display: flex; flex-direction: column; justify-content: flex-end; background: rgb(var(--shade) / .5); opacity: 0; visibility: hidden; transition: .2s; }
  .nv-sheet.open{ opacity: 1; visibility: visible; }
  .nv-sheet-box{ max-height: 86vh; overflow: auto; padding: 14px 16px 26px; border-radius: 22px 22px 0 0; background: var(--surface); border-top: 1px solid var(--line-2); transform: translateY(30px); transition: transform .25s var(--ease); }
  .nv-sheet.open .nv-sheet-box{ transform: none; }
  .nv-sheet-grip{ width: 44px; height: 5px; border-radius: 3px; background: var(--card-3); margin: 0 auto 14px; }
  .nv-sheet-grid{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .nv-sheet-grid a{ display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--card-2); border: 1px solid var(--line);
    color: var(--text); text-decoration: none; font-size: .76rem; font-weight: 700; text-align: center; }
  .nv-sheet-grid a i{ font-size: 1.1rem; color: var(--brand); }
  .nv-sheet-grid a[aria-current="page"]{ border-color: var(--brand); }
  .nv-sheet h5{ margin: 16px 2px 8px; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--text-3); font-family: var(--font-display); }
}
@media (max-width: 480px){ .nv-bal span{ padding: 0 9px; font-size: .82rem; } .nv-logo-text{ display: none; } }

/* mobilde geniş tablolar kendi içinde kaysın */
@media (max-width: 760px){ .nv-wrap table{ display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; } }

/* hareket azaltma */
@media (prefers-reduced-motion: reduce){ *, *::before, *::after{ transition: none !important; animation: none !important; } }

@media (max-width: 1080px){ .nv-wa{ bottom: 90px !important; right: 16px !important; width: 48px !important; height: 48px !important; } }
@media (max-width: 420px){ .nv-hide-xs{ display: none !important; } }

/* kart başlığında öğeler bitişik durmasın */
.card-title{ gap: 6px 10px; flex-wrap: wrap; }

/* kart içi metin aralıkları ve devre dışı düğmeler okunur kalsın */
.card-body > p:not(:last-child){ margin-bottom: 14px; }
.card-body p{ line-height: 1.6; }
.btn:disabled, .btn.disabled, .btn[disabled]{ opacity: 1 !important; background: var(--card-2) !important; color: var(--text-3) !important; border: 1px dashed var(--line-2) !important; box-shadow: none !important; cursor: not-allowed; transform: none !important; }

/* gizli açılır menüler sayfayı yana taşırmasın */
html, body{ overflow-x: clip; }
/* sipariş formundaki "Maks" rozeti sabit mor renkle geliyor; açık temada koyulaştır */
:root[data-theme="light"] span[style*="color:#c084fc"]{ color: #7e22ce !important; }
/* mobil menü açıkken WhatsApp düğmesi menünün üstüne binmesin */
body:has(.nv-sheet.open) .nv-wa{ opacity: 0; visibility: hidden; }
