/* ===========================
   TEAM57 — Main Stylesheet
   Multi-page version
   =========================== */

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

:root {
  /* Brand */
  --logo-team: #fefefe;
  --logo-57: #a42a2a;
  --accent: #a42a2a;
  --accent-hover: #bf3333;
  --accent-light: rgba(164,42,42,0.08);
  --accent-border: rgba(164,42,42,0.25);

  /* Background */
  --bg: #ffffff;
  --bg2: #f5f5f5;
  --card: #fafafa;

  /* Text */
  --text: #111111;
  --muted: #777777;

  /* Border */
  --border: rgba(0,0,0,0.08);
  --border2: rgba(0,0,0,0.15);

  /* Spacing */
  --section-pad: 100px 5%;
  --nav-height: 64px;
}

html { scroll-behavior: smooth; scrollbar-gutter: stable; }

/* Buton / input geçişleri */
.btn-primary, .btn-secondary, .btn-nav { transition: background 0.2s, border-color 0.2s, transform 0.2s, color 0.2s; }
input, textarea, select { transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s; }

/* Tema geçiş animasyonu — sadece toggle anında aktif */
html.theme-transitioning *:not(svg):not(img):not(.badge-progress-fill) {
  transition: background-color 0.3s ease, border-color 0.3s ease,
              color 0.3s ease, box-shadow 0.3s ease !important;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.page-content { flex: 1; }

/* Page entrance animation */
.page-content {
  animation: pageIn 0.5s ease both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── TYPOGRAPHY ─────────────────── */
h1, h2, h3, .stat-val, .plan-price, .feature-num, .nav-logo, .section-title, .plan-name, .product-name {
  font-family: 'League Spartan', sans-serif;
}

/* ── NAV ────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5%; height: var(--nav-height);
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  border-bottom: 0.5px solid var(--border);
}

.nav-logo {
  font-size: 22px; font-weight: 800; letter-spacing: -0.5px;
  text-decoration: none; display: flex; align-items: center;
}
.nav-logo img { background: #111; border-radius: 6px; padding: 3px; }
[data-theme="dark"] .nav-logo img { background: none; padding: 0; border-radius: 0; }
.logo-team { color: #111111; }
.logo-57   { color: #a42a2a; }

.nav-links { display: flex; gap: 36px; align-items: center; }
.nav-links a {
  font-size: 14px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
  position: relative;
  padding-bottom: 2px;
}
.nav-links a:hover { color: var(--text); }

/* Active nav link indicator */
.nav-links a.active {
  color: var(--text);
  font-weight: 500;
}
.nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0; right: 0;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}

.btn-nav {
  background: #111111; color: #fefefe !important;
  height: 32px; padding: 0 16px; border-radius: 7px;
  font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background 0.2s;
  display: inline-flex; align-items: center; justify-content: center;
}
.btn-nav:hover { background: #333; }

/* Auth flash önleyici — btn-nav auth çözülene kadar gizli */
a.btn-nav { opacity: 0; transition: opacity 0.15s; }
.auth-resolved a.btn-nav { opacity: 1; }

/* ── Nav greeting (giriş sonrası) ── */
.nav-greeting {
  display: flex; flex-direction: column; align-items: flex-end;
  text-decoration: none; line-height: 1.3; cursor: default;
  min-width: 100px;
}
a.btn-nav { min-width: 100px; }
.nav-greeting-sub  { font-size: 11px; color: var(--muted); font-weight: 400; }
.nav-greeting-name { font-size: 14px; color: var(--text);  font-weight: 600; }

/* ── NAV DROPDOWN ───────────────── */
.nav-dropdown { position: relative; visibility: hidden; }

.nav-dropdown-btn {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: none; border: none; cursor: pointer; padding: 0;
  color: var(--text); transition: background 0.2s;
}
.nav-dropdown-btn:hover { background: var(--bg2); }

/* ── NOTIFICATION BELL ──────────── */
.nav-notif { position: relative; display: flex; align-items: center; }
#navNotif { visibility: hidden; }
.nav-notif-btn {
  position: relative; background: none; border: none; cursor: pointer;
  color: var(--text); padding: 6px; display: flex; align-items: center;
  border-radius: 50%; transition: background 0.2s; width: 36px; height: 36px;
  justify-content: center;
}
.nav-notif-btn:hover { background: var(--bg2); }
.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: #a42a2a; color: #fff;
  font-size: 9px; font-weight: 700;
  min-width: 15px; height: 15px; border-radius: 8px; padding: 0 3px;
  display: none; align-items: center; justify-content: center;
  font-family: 'DM Sans', sans-serif; line-height: 1;
  border: 1.5px solid var(--bg);
}
.notif-panel {
  display: none; position: fixed; top: var(--nav-height); right: 0;
  width: 320px; background: var(--card);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.13); z-index: 200; overflow: hidden;
}
.notif-panel.open { display: block; }
.notif-panel-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px 12px; border-bottom: 1px solid var(--border);
}
.notif-panel-title { font-size: 14px; font-weight: 700; color: var(--text); }
.notif-read-all {
  font-size: 11px; color: var(--accent); background: none; border: none;
  cursor: pointer; font-family: inherit; padding: 0; display: none;
}
.notif-read-all:hover { text-decoration: underline; }
.notif-list { max-height: 340px; overflow-y: auto; }
.notif-item {
  padding: 12px 16px; cursor: default;
  transition: background 0.15s; border-bottom: 1px solid var(--border2);
}
.notif-item:last-child { border-bottom: none; }
.notif-item.unread { background: rgba(164,42,42,0.04); cursor: pointer; box-shadow: inset 3px 0 0 var(--accent); }
.notif-item.unread:hover { background: rgba(164,42,42,0.08); }
.notif-item-title { font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.notif-item-msg { font-size: 12px; color: var(--muted); line-height: 1.5; }
.notif-item-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
.notif-empty {
  display: none; padding: 36px 16px; text-align: center;
  font-size: 13px; color: var(--muted);
}
.notif-panel-footer {
  border-top: 1px solid var(--border); padding: 10px 16px; text-align: center;
}
.notif-see-all {
  font-size: 12px; color: var(--accent); font-weight: 600;
  text-decoration: none; display: block;
}
.notif-see-all:hover { text-decoration: underline; }
.notif-item.clickable { cursor: pointer; }
[data-theme="dark"] .nav-notif-btn { color: var(--text); }

.nav-dropdown-menu {
  display: none;
  position: fixed; top: var(--nav-height); right: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; min-width: 180px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.10);
  overflow: hidden; z-index: 200;
  animation: dropIn 0.18s ease;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.nav-dropdown.open .nav-dropdown-menu { display: block; }

.nav-dropdown-menu a {
  display: block; padding: 11px 16px;
  font-size: 14px; color: var(--text) !important;
  text-decoration: none; transition: background 0.15s;
}
.nav-dropdown-menu a:hover { background: var(--bg2); }

.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

.dropdown-logout { color: var(--accent) !important; }
.dropdown-logout:hover { background: var(--accent-light) !important; }

/* ── HAMBURGER (Mobile) ────────── */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  z-index: 110;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 22px; height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── BUTTONS ────────────────────── */
.btn-primary {
  background: var(--accent); color: #fefefe;
  padding: 14px 32px; border-radius: 10px;
  font-size: 15px; font-weight: 500;
  text-decoration: none; border: none; cursor: pointer;
  transition: all 0.2s; display: inline-block;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); }

.btn-secondary {
  background: transparent; color: var(--text);
  padding: 14px 32px; border-radius: 10px;
  font-size: 15px; text-decoration: none;
  border: 1px solid var(--border2); cursor: pointer;
  transition: all 0.2s; display: inline-block;
}
.btn-secondary:hover { border-color: #999; transform: translateY(-1px); }

/* ── HERO ───────────────────────── */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 5% 80px;
  position: relative; overflow: hidden;
}

.hero-glow {
  position: absolute; width: 700px; height: 500px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(164,42,42,0.06) 0%, transparent 65%);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
  pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--accent-light); border: 0.5px solid var(--accent-border);
  color: var(--accent); font-size: 12px; font-weight: 500;
  padding: 5px 14px; border-radius: 100px; margin-bottom: 28px; letter-spacing: 0.4px;
}
.badge::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
}

h1 {
  font-size: clamp(40px, 7vw, 76px); font-weight: 800;
  line-height: 1.05; letter-spacing: -2px;
  color: var(--text); max-width: 820px; margin-bottom: 24px;
}
h1 .highlight { color: var(--accent); }

.rush-text {
  display: inline-block;
  position: relative;
  transform-origin: right center;
  animation: rushAway 7s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
/* wind lines trailing behind on exit (left side) */
.rush-text::after {
  content: '';
  position: absolute;
  top: 10%;
  right: 100%;
  width: 0;
  height: 80%;
  background: repeating-linear-gradient(
    to bottom,
    transparent      0px,
    transparent      5px,
    rgba(164,42,42,0.45) 5px,
    rgba(164,42,42,0.45) 7px
  );
  opacity: 0;
  animation: windExit 7s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
/* wind lines trailing behind on return (right side) */
.rush-text::before {
  content: '';
  position: absolute;
  top: 10%;
  left: 100%;
  width: 0;
  height: 80%;
  background: repeating-linear-gradient(
    to bottom,
    transparent      0px,
    transparent      5px,
    rgba(164,42,42,0.45) 5px,
    rgba(164,42,42,0.45) 7px
  );
  opacity: 0;
  animation: windReturn 7s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
.isinizi-text {
  display: inline-block;
  animation: isiniziPush 7s cubic-bezier(0.4, 0, 0.2, 1) 1 forwards;
}
@keyframes rushAway {
  0%, 14%  { transform: translateX(0) scaleX(1);      filter: blur(0); opacity: 1; }
  22%      { transform: translateX(-22px) scaleX(1);  filter: blur(0); opacity: 1; }
  37%      { transform: translateX(110vw) scaleX(1);  filter: blur(5px); opacity: 0; }
  38%      { transform: translateX(-110vw) scaleX(1); filter: blur(5px); opacity: 0; }
  49%      { transform: translateX(-8px) scaleX(1);   filter: blur(0); opacity: 1; }
  55%      { transform: translateX(0) scaleX(0.88); }
  63%, 100%{ transform: translateX(0) scaleX(1); }
}
@keyframes isiniziPush {
  0%, 19%  { transform: translateX(0); }
  24%      { transform: translateX(-6px); }
  33%      { transform: translateX(0); }
  48%      { transform: translateX(0); }
  53%      { transform: translateX(-5px); }
  62%, 100%{ transform: translateX(0); }
}
@keyframes windExit {
  0%, 16% { width: 0;     opacity: 0; }
  26%     { width: 70px;  opacity: 0.9; }
  34%     { width: 180px; opacity: 0.4; }
  39%     { width: 240px; opacity: 0; }
  100%    { width: 0;     opacity: 0; }
}
@keyframes windReturn {
  0%, 37% { width: 0;     opacity: 0; }
  44%     { width: 140px; opacity: 0.8; }
  50%     { width: 50px;  opacity: 0.3; }
  54%     { width: 0;     opacity: 0; }
  100%    { width: 0;     opacity: 0; }
}

.hero-sub {
  font-size: 18px; font-weight: 300; color: var(--muted);
  max-width: 560px; margin-bottom: 44px; line-height: 1.8;
}

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-bottom: 80px; }

.hero-stats {
  display: flex; gap: 60px; justify-content: center;
  padding-top: 44px; border-top: 0.5px solid var(--border);
  width: 100%; max-width: 600px;
}
.stat-val { font-size: 30px; font-weight: 700; color: var(--text); }
.stat-lbl { font-size: 13px; color: var(--muted); margin-top: 2px; }

/* ── SECTIONS ───────────────────── */
section { padding: var(--section-pad); }

.section-label {
  font-size: 12px; font-weight: 500; letter-spacing: 2px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.section-title {
  font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  letter-spacing: -1px; color: var(--text); margin-bottom: 16px;
}
.section-sub { font-size: 17px; color: var(--muted); font-weight: 300; max-width: 520px; }

/* ── PAGE HEADER (for inner pages) ── */
.page-header {
  padding: calc(var(--nav-height) + 60px) 5% 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-header .hero-glow {
  width: 500px; height: 350px;
}
.page-header h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-bottom: 28px;
}
.page-header .hero-sub {
  margin-bottom: 0;
}

/* ── PRODUCTS ───────────────────── */
.products { background: var(--bg2); }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px; margin-top: 56px;
}

.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.25s; cursor: pointer;
  position: relative; overflow: hidden;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.product-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0; transition: opacity 0.3s;
}
.product-card:hover { border-color: var(--accent-border); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(164,42,42,0.08); }
.product-card:hover::before { opacity: 1; }

.product-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 20px;
}
.product-name { font-size: 18px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.product-desc { font-size: 14px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }
.product-tag {
  display: inline-block; font-size: 11px; font-weight: 500;
  padding: 3px 10px; border-radius: 100px;
  background: var(--accent-light); color: var(--accent);
  border: 0.5px solid var(--accent-border); margin-right: 6px; margin-bottom: 4px;
}

/* ── FEATURES ───────────────────── */
.features-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center; margin-top: 60px;
}
.feature-list { display: flex; flex-direction: column; gap: 16px; }

.feature-item {
  display: flex; gap: 16px; padding: 20px;
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--card); transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.feature-item:hover { border-color: var(--accent-border); box-shadow: 0 4px 16px rgba(164,42,42,0.07); }

.feature-num { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex-shrink: 0; margin-top: 7px; align-self: flex-start; font-size: 0; }
.feature-title { font-size: 15px; font-weight: 500; color: var(--text); margin-bottom: 4px; }
.feature-desc { font-size: 13px; color: var(--muted); line-height: 1.6; }

.features-visual {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.visual-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot.red { background: #ff5f57; } .dot.yellow { background: #febc2e; } .dot.green { background: #28c840; }
.visual-title { font-size: 13px; color: var(--muted); margin-left: 6px; }

.metric-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--border);
}
.metric-row:last-child { border-bottom: none; }
.metric-name { font-size: 13px; color: var(--muted); }
.metric-val { font-size: 16px; font-weight: 600; color: var(--text); display: flex; align-items: center; gap: 6px; }
.metric-badge { font-size: 11px; font-weight: 500; padding: 2px 8px; border-radius: 100px; background: rgba(52,211,153,0.12); color: #16a34a; }
.metric-badge.warn { background: rgba(251,191,36,0.12); color: #b45309; }

/* ── PRICING ────────────────────── */
.pricing { background: var(--bg2); }

.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px; margin: 56px auto 0; max-width: 960px;
}

.pricing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 32px; transition: all 0.25s;
  position: relative; box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.pricing-card.featured { border-color: var(--accent-border); box-shadow: 0 4px 24px rgba(164,42,42,0.10); }

.popular-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fefefe;
  font-size: 11px; font-weight: 600;
  padding: 4px 14px; border-radius: 100px; white-space: nowrap;
}

.plan-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.plan-desc { font-size: 13px; color: var(--muted); margin-bottom: 24px; }
.plan-price { font-size: 42px; font-weight: 800; color: var(--text); letter-spacing: -1.5px; margin-bottom: 4px; }
.plan-price span { font-size: 18px; color: var(--muted); font-weight: 400; }
.plan-period { font-size: 13px; color: var(--muted); margin-bottom: 28px; }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { font-size: 14px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.plan-features li::before { content: '✓'; color: var(--accent); font-weight: 700; font-size: 12px; }
.plan-features li.off { opacity: 0.35; }
.plan-features li.off::before { content: '—'; color: var(--muted); }

.btn-plan { width: 100%; padding: 12px; border-radius: 10px; font-size: 14px; font-weight: 500; cursor: pointer; transition: all 0.2s; text-align: center; display: block; text-decoration: none; }
.btn-plan-primary { background: var(--accent); color: #fefefe; border: none; }
.btn-plan-primary:hover { background: var(--accent-hover); }
.btn-plan-outline { background: transparent; color: var(--text); border: 1px solid var(--border2); }
.btn-plan-outline:hover { border-color: #999; }

/* ── CTA ────────────────────────── */
.cta-section { text-align: center; padding: var(--section-pad); background: var(--bg); }
.cta-box {
  background: #111111; border-radius: 24px; padding: 72px 5%;
  position: relative; overflow: hidden; max-width: 800px; margin: 0 auto;
}
.cta-glow {
  position: absolute; width: 500px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(164,42,42,0.25) 0%, transparent 70%);
  top: 50%; left: 50%; transform: translate(-50%, -50%); pointer-events: none;
}
.cta-box h2 { font-size: clamp(26px, 4vw, 42px); font-weight: 700; letter-spacing: -1px; margin-bottom: 16px; position: relative; color: #fefefe; }
.cta-box p { font-size: 17px; color: #888; margin-bottom: 36px; font-weight: 300; position: relative; }
.cta-box .hero-cta { margin-bottom: 0; position: relative; }
.cta-box .btn-secondary { color: #fefefe; border-color: rgba(255,255,255,0.2); }
.cta-box .btn-secondary:hover { border-color: rgba(255,255,255,0.5); }

/* ── CONTACT FORM ──────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-top: 60px;
  align-items: start;
}
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Custom Select ── */
.c-select { position: relative; }
.c-select-btn {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
  text-align: left;
}
.c-select-btn:hover,
.c-select.open .c-select-btn { border-color: var(--accent); }
.c-select.open .c-select-btn { border-radius: 10px 10px 0 0; }
.c-select-list {
  display: none;
  position: absolute;
  top: 100%;
  left: 0; right: 0;
  background: var(--bg);
  border: 1px solid var(--accent);
  border-top: none;
  border-radius: 0 0 10px 10px;
  list-style: none;
  z-index: 100;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.c-select.open .c-select-list { display: block; }
.c-select-item {
  padding: 11px 14px;
  font-size: 14px;
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s;
}
.c-select-item:hover { background: var(--accent-light); }
.c-select-item.selected { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: 0.2px;
}
.form-group input,
.form-group textarea,
.form-group select {
  padding: 12px 16px;
  border: 1px solid var(--border2);
  border-radius: 10px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}
.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.contact-info-card {
  display: flex;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  transition: all 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.03);
}
.contact-info-card:hover {
  border-color: var(--accent-border);
  box-shadow: 0 4px 16px rgba(164,42,42,0.07);
}
.contact-info-icon {
  width: 44px; height: 44px; border-radius: 10px;
  background: var(--accent-light); border: 1px solid var(--accent-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-info-title {
  font-family: 'League Spartan', sans-serif;
  font-size: 15px; font-weight: 600; color: var(--text); margin-bottom: 4px;
}
.contact-info-text {
  font-size: 13px; color: var(--muted); line-height: 1.6;
}

/* ── AUTH PAGE ───────────────────── */
.auth-layout {
  display: flex; min-height: 100vh;
  align-items: center; justify-content: center;
  background: var(--bg2); padding: 40px 20px;
}
.auth-center-wrap {
  width: 100%; max-width: 460px;
  display: flex; flex-direction: column; gap: 14px;
}
.auth-back {
  font-size: 13px; color: var(--muted);
  text-decoration: none; display: inline-flex;
  align-items: center; gap: 6px; transition: color 0.2s;
  align-self: flex-start;
}
.auth-back:hover { color: var(--text); }
.auth-panel {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 44px 48px;
  box-shadow: 0 4px 28px rgba(0,0,0,0.07);
}
.auth-panel-inner { width: 100%; }
.auth-logo {
  display: inline-flex; margin-bottom: 28px;
  font-size: 20px; font-weight: 800; text-decoration: none; letter-spacing: -0.5px;
}

.auth-heading {
  font-family: 'League Spartan', sans-serif;
  font-size: 26px; font-weight: 700; letter-spacing: -0.5px;
  color: var(--text); margin-bottom: 6px;
}
.auth-sub { font-size: 14px; color: var(--muted); margin-bottom: 28px; }

.auth-tabs {
  display: flex; gap: 4px;
  background: var(--bg2); border-radius: 10px;
  padding: 4px; margin-bottom: 24px;
}
.auth-tab {
  flex: 1; padding: 9px; border: none; border-radius: 7px;
  font-size: 14px; font-weight: 500; font-family: 'DM Sans', sans-serif;
  cursor: pointer; background: transparent; color: var(--muted);
  transition: all 0.2s;
}
.auth-tab.active {
  background: var(--bg); color: var(--text);
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}

.auth-pane { display: none; }
.auth-pane.active { display: block; }

.auth-error {
  background: rgba(220,38,38,0.07);
  border: 1px solid rgba(220,38,38,0.2);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #dc2626;
  margin-bottom: 16px; display: none; line-height: 1.5;
}
.auth-success {
  background: rgba(22,163,74,0.07);
  border: 1px solid rgba(22,163,74,0.2);
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; color: #16a34a;
  margin-bottom: 16px; display: none;
}

.btn-google {
  width: 100%; padding: 12px 16px;
  border: 1px solid var(--border2); border-radius: 10px;
  background: var(--bg); font-size: 14px; font-weight: 500;
  font-family: 'DM Sans', sans-serif; color: var(--text);
  cursor: pointer; display: flex; align-items: center;
  justify-content: center; gap: 10px;
  transition: all 0.2s; margin-bottom: 4px;
}
.btn-google:hover { background: var(--bg2); border-color: #bbb; }

.auth-divider {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 0; color: var(--muted); font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.auth-forgot { text-align: right; margin-top: -8px; margin-bottom: 18px; }
.auth-forgot a {
  font-size: 12px; color: var(--muted);
  text-decoration: none; transition: color 0.2s;
}
.auth-forgot a:hover { color: var(--accent); }

.auth-btn { width: 100%; text-align: center; padding: 13px 32px; }
.auth-btn:disabled { opacity: 0.65; cursor: not-allowed; transform: none; }

.password-rules {
  display: none; flex-direction: column; gap: 5px; margin-top: 8px;
}
.password-rules.visible { display: flex; }

.auth-pane form { display: flex; flex-direction: column; gap: 16px; }
.rule {
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 7px; transition: color 0.2s;
}
.rule::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: #d1d5db; flex-shrink: 0; transition: background 0.2s;
}
.rule.met { color: #16a34a; }
.rule.met::before { background: #16a34a; }

.field-error {
  font-size: 13px; color: #dc2626; margin-top: 5px;
}
.field-ok {
  font-size: 12px; color: #16a34a; margin-top: 5px;
}

.auth-checkbox-row {
  display: flex; align-items: flex-start; gap: 10px;
  margin-top: 20px; margin-bottom: 16px;
}
.auth-checkbox-row input[type="checkbox"] {
  width: 16px; height: 16px; margin-top: 3px; flex-shrink: 0;
  accent-color: var(--accent); cursor: pointer; border-radius: 3px;
}
.auth-checkbox-row label {
  font-size: 13px; color: var(--muted); line-height: 1.6; cursor: pointer;
}
.auth-checkbox-row label a {
  color: var(--accent); text-decoration: none;
}
.auth-checkbox-row label a:hover { text-decoration: underline; }

.auth-config-notice {
  background: rgba(251,191,36,0.1); border: 1px solid rgba(251,191,36,0.3);
  border-radius: 10px; padding: 14px 16px; margin-bottom: 20px;
  font-size: 13px; color: #92400e; line-height: 1.6;
}
.auth-config-notice strong { display: block; margin-bottom: 4px; color: #78350f; }
.auth-config-notice code {
  background: rgba(0,0,0,0.07); padding: 1px 6px;
  border-radius: 4px; font-family: monospace; font-size: 12px;
}

@media (max-width: 520px) {
  .auth-panel { padding: 36px 24px; }
  .auth-layout { padding: 24px 16px; }
}

/* ── PROFILE ─────────────────────── */
.profile-section {
  padding: calc(var(--nav-height) + 32px) 5% 60px;
}
.profile-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.profile-left  { display: flex; flex-direction: column; gap: 0; }
.profile-page-title { margin-bottom: 16px; }
.profile-right { }
.profile-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px;
  text-align: center; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

/* ── Rozet sistemi ── */
.badge-grid {
  display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px;
}
.badge-card {
  display: flex; align-items: center; gap: 16px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  transition: transform 0.15s, box-shadow 0.15s;
}
.badge-card:not(.locked):hover {
  transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}
.badge-card.locked {
  opacity: 0.45; filter: grayscale(0.6);
}
.badge-icon { font-size: 32px; flex-shrink: 0; width: 40px; text-align: center; }
.badge-name { font-size: 15px; font-weight: 700; color: var(--text); }
.badge-desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.badge-reward {
  margin-left: auto; font-size: 12px; font-weight: 600;
  color: var(--accent); background: var(--accent-light);
  padding: 4px 10px; border-radius: 20px; white-space: nowrap;
}
.badge-progress-wrap {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 20px;
}
.badge-progress-bar {
  height: 8px; background: var(--bg2); border-radius: 99px; overflow: hidden;
}
.badge-progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 99px; transition: width 0.6s ease;
  width: 0%;
}

/* ── Ayarlar layout ── */
.settings-layout { max-width: 66%; }
.settings-left  { }

/* ── Ürünlerim ── */
.products-summary {
  display: flex; align-items: center; gap: 0;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 20px 28px;
  margin-bottom: 32px; width: fit-content;
}
.products-stat { text-align: center; padding: 0 28px; }
.products-stat:first-child { padding-left: 0; }
.products-stat:last-child  { padding-right: 0; }
.products-stat-val   { font-size: 22px; font-weight: 700; color: var(--text); font-family: 'League Spartan', sans-serif; }
.products-stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }
.products-stat-divider { width: 1px; height: 40px; background: var(--border); flex-shrink: 0; }

.products-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 10px;
  transition: box-shadow 0.2s, transform 0.2s;
}
.product-card:hover { box-shadow: 0 6px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.product-locked { opacity: 0.6; }
.product-locked:hover { transform: none; box-shadow: 0 2px 12px rgba(0,0,0,0.04); }

.product-card-top { display: flex; align-items: center; justify-content: space-between; }
.product-icon { font-size: 28px; }
.product-status {
  font-size: 11px; font-weight: 600; padding: 4px 10px;
  border-radius: 20px; letter-spacing: 0.3px;
}
.status-active { background: rgba(34,197,94,0.12); color: #16a34a; }
.status-locked { background: var(--bg2); color: var(--muted); }

.product-card-name { font-size: 16px; font-weight: 700; color: var(--text); }
.product-card-desc { font-size: 13px; color: var(--muted); line-height: 1.5; flex: 1; }

.product-license-row { margin-top: 8px; }
.product-license-label { font-size: 11px; color: var(--muted); margin-bottom: 6px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.product-license-wrap { display: flex; align-items: center; gap: 8px; background: var(--bg2); border-radius: 8px; padding: 8px 12px; }
.product-license-key { font-family: monospace; font-size: 12px; color: var(--text); flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.product-license-copy {
  background: none; border: none; cursor: pointer; color: var(--muted);
  display: flex; align-items: center; flex-shrink: 0; padding: 2px;
  transition: color 0.15s;
}
.product-license-copy:hover { color: var(--accent); }

.product-upgrade-note {
  margin-top: 8px; font-size: 12px;
}
.product-upgrade-note a {
  color: var(--accent); text-decoration: none; font-weight: 500;
}
.product-upgrade-note a:hover { text-decoration: underline; }

/* ── Services Visual ── */
.services-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  min-height: 280px;
}
.gooey-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 200px;
}
.gooey-span {
  position: absolute;
  display: inline-block;
  text-align: center;
  font-size: clamp(44px, 6vw, 78px);
  font-weight: 800;
  font-family: 'League Spartan', sans-serif;
  color: var(--text);
  user-select: none;
  white-space: nowrap;
}

/* ── Dark mode ── */
[data-theme="dark"] {
  --bg: #0d0d0d;
  --bg2: #161616;
  --card: #1a1a1a;
  --text: #f0f0f0;
  --muted: #909090;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.13);
}

[data-theme="dark"] nav {
  background: rgba(13,13,13,0.88);
  border-bottom-color: rgba(255,255,255,0.06);
}
[data-theme="dark"] .logo-team { color: #fefefe; }

/* Btn-nav: dark modda açık renkli */
[data-theme="dark"] .btn-nav {
  background: #efefef;
  color: #111 !important;
}
[data-theme="dark"] .btn-nav:hover { background: #fff; }

/* Kartlar */
[data-theme="dark"] .value-card,
[data-theme="dark"] .about-stats-box,
[data-theme="dark"] .profile-card,
[data-theme="dark"] .badge-card,
[data-theme="dark"] .badge-progress-wrap,
[data-theme="dark"] .products-summary,
[data-theme="dark"] .billing-card,
[data-theme="dark"] .settings-summary-card,
[data-theme="dark"] .settings-notif-summary,
[data-theme="dark"] .settings-avatar-row,
[data-theme="dark"] .order-card { background: var(--card); }

/* Kart hover border'ı daha görünür */
[data-theme="dark"] .product-card:hover,
[data-theme="dark"] .feature-item:hover { border-color: rgba(164,42,42,0.5); }

[data-theme="dark"] .auth-tab.active {
  background: var(--bg2);
  box-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
[data-theme="dark"] .cta-section { background: var(--bg2); }
[data-theme="dark"] footer { background: var(--bg); }

/* Input/form */
[data-theme="dark"] input,
[data-theme="dark"] textarea,
[data-theme="dark"] select {
  background: var(--bg2);
  color: var(--text);
  border-color: var(--border2);
}
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: #555; }

[data-theme="dark"] .c-select-btn { background: var(--bg2); }
[data-theme="dark"] .c-select-list { background: var(--card); }

/* Danger zone */
[data-theme="dark"] .danger-zone { background: rgba(164,42,42,0.08); border-color: rgba(164,42,42,0.3); }
[data-theme="dark"] .danger-zone p { color: #e57373; }

/* Dropdown gölgesi */
[data-theme="dark"] .nav-dropdown-menu,
[data-theme="dark"] .nav-extra-menu {
  background: var(--card);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  border-color: var(--border);
}
[data-theme="dark"] .nav-dropdown-menu a:hover,
[data-theme="dark"] .nav-extra-menu .c-select-item:hover { background: var(--bg2); }

/* Box shadow dark'ta daha güçlü */
[data-theme="dark"] .product-card,
[data-theme="dark"] .pricing-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .contact-info-card,
[data-theme="dark"] .badge-card { box-shadow: 0 2px 8px rgba(0,0,0,0.4); }

/* Google button */
[data-theme="dark"] .btn-google { background: var(--card); color: var(--text); }
[data-theme="dark"] .btn-google:hover { background: var(--bg2); }

/* Badge progress bar */
[data-theme="dark"] .badge-progress-bar { background: rgba(255,255,255,0.08); }

/* Auth config notice (amber uyarı kutusu) */
[data-theme="dark"] .auth-config-notice {
  background: rgba(251,191,36,0.07);
  border-color: rgba(251,191,36,0.18);
  color: #fbbf24;
}
[data-theme="dark"] .auth-config-notice strong { color: #f59e0b; }
[data-theme="dark"] .auth-config-notice code { background: rgba(255,255,255,0.08); color: #fde68a; }

/* Metric badge warn */
[data-theme="dark"] .metric-badge.warn { background: rgba(251,191,36,0.1); color: #fbbf24; }

/* Mobile nav overlay */
[data-theme="dark"] .nav-links { background: rgba(13,13,13,0.97); }

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar { width: 6px; }
[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--bg); }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #333; border-radius: 3px; }
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover { background: #444; }

/* ── Nav Extra (three-dot) ── */
.nav-extra { position: relative; }
.nav-extra-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background 0.2s;
}
.nav-extra-btn:hover { background: var(--accent-light); }
.nav-extra-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  right: 0;
  background: var(--bg);
  border: 1px solid var(--border2);
  border-radius: 12px;
  padding: 14px;
  min-width: 186px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  z-index: 200;
}
.nav-extra-menu.open { display: block; }
.nav-extra-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  padding: 0 2px;
}
.lang-toggle { display: flex; gap: 6px; margin-bottom: 4px; }
.lang-btn {
  flex: 1;
  padding: 6px 0;
  border-radius: 8px;
  border: 1px solid var(--border2);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}
.lang-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.nav-extra-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px 2px;
  font-size: 13px;
  color: var(--text);
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
  flex-shrink: 0;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute;
  inset: 0;
  background: var(--border2);
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.22s;
}
.toggle-slider::before {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.22s;
}
.toggle-switch input:checked + .toggle-slider { background: var(--accent); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(16px); }

/* ── Custom Order ── */
.custom-order-wrap { max-width: 720px; margin: 0 auto; }

.order-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 36px;
}
.order-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  background: var(--bg);
  transition: all 0.25s;
}
.step-label { font-size: 12px; color: var(--muted); font-weight: 500; }
.order-step.active .step-num { border-color: var(--accent); color: var(--accent); }
.order-step.active .step-label { color: var(--text); }
.order-step.done .step-num { background: var(--accent); border-color: var(--accent); color: #fff; }
.order-step-line { flex: 1; height: 2px; background: var(--border2); margin: 0 8px 22px; min-width: 60px; }

.order-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px 36px 52px;
}
.order-pane { display: none; }
.order-pane.active { display: block; }
.order-pane-title { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 24px; }
.order-pane .form-group { margin-bottom: 20px; }
.order-pane .order-row { margin-bottom: 20px; }
.order-pane .order-row .form-group { margin-bottom: 0; }

.order-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 28px;
}
.order-type-card { cursor: pointer; }
.order-type-card input { display: none; }
.order-type-inner {
  border: 1.5px solid var(--border2);
  border-radius: 14px;
  padding: 20px 16px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--muted);
}
.order-type-inner:hover { border-color: var(--accent); color: var(--text); }
.order-type-card.selected .order-type-inner {
  border-color: var(--accent);
  background: var(--accent-light);
  color: var(--text);
}
.order-type-name { font-size: 14px; font-weight: 700; color: var(--text); }
.order-type-desc { font-size: 12px; line-height: 1.4; }

.order-row { display: flex; gap: 16px; }

/* ── Upload Zone ── */
.upload-zone {
  border: 2px dashed var(--border2);
  border-radius: 12px;
  padding: 24px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--accent);
  background: var(--accent-light);
}
.upload-zone-text { font-size: 13px; color: var(--muted); margin-top: 8px; }
.upload-zone-link { color: var(--accent); font-weight: 600; }
.upload-zone-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.upload-preview { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.upload-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 10px;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  max-width: 200px;
}
.upload-chip-thumb {
  width: 34px; height: 34px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}
.upload-chip-icon {
  width: 34px; height: 34px;
  border-radius: 6px;
  background: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.upload-chip-info { flex: 1; min-width: 0; }
.upload-chip-name { font-size: 12px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-chip-size { font-size: 11px; color: var(--muted); }
.upload-chip-remove {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: none;
  background: var(--border2);
  color: var(--muted);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  line-height: 1;
  flex-shrink: 0;
  transition: background 0.15s, color 0.15s;
}
.upload-chip-remove:hover { background: var(--accent); color: #fff; }
.order-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
}

/* ── Billing ── */
.billing-tabs {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 28px;
}
.billing-tab {
  background: none; border: none; padding: 12px 20px;
  font-size: 14px; font-weight: 500; color: var(--muted);
  cursor: pointer; position: relative; transition: color 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.billing-tab::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transition: transform 0.2s;
}
.billing-tab.active { color: var(--text); font-weight: 600; }
.billing-tab.active::after { transform: scaleX(1); }
.billing-pane { display: none; }
.billing-pane.active { display: block; }
.billing-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}
.billing-divider { height: 1px; background: var(--border); margin: 20px 0; }
.billing-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.billing-table thead tr { border-bottom: 1px solid var(--border); }
.billing-table th {
  padding: 12px 24px; text-align: left; font-size: 13px;
  font-weight: 600; color: var(--text);
}
.billing-table td { padding: 14px 24px; color: var(--text); border-bottom: 1px solid var(--border); }
.billing-table tbody tr:last-child td { border-bottom: none; }
.billing-table tbody tr:hover { background: var(--bg2); }

.settings-summary-card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 20px; padding: 28px 24px; text-align: center;
}
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 4px 0;
}
.summary-row span:first-child { color: var(--muted); }
.summary-row span:last-child  { font-weight: 600; color: var(--text); max-width: 160px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.settings-notif-summary {
  background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; padding: 16px 20px;
}
.notif-summary-row {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; padding: 5px 0;
}
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.notif-dot.on  { background: #22c55e; }
.notif-dot.off { background: #d1d5db; }

@media (max-width: 900px) {
  .settings-layout { grid-template-columns: 1fr; }
  .settings-right { position: static; }
}

/* ── Ayarlar ── */
.settings-avatar-row {
  display: flex; flex-direction: row; align-items: center; gap: 20px;
  margin-bottom: 28px; padding: 20px 24px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 16px; width: fit-content;
}
.settings-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}

/* ── Bildirim toggle ── */
.pref-list { display: flex; flex-direction: column; gap: 0; }
.pref-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; border-bottom: 1px solid var(--border); cursor: pointer; gap: 16px;
}
.pref-row:last-child { border-bottom: none; }
.pref-title { font-size: 14px; font-weight: 600; color: var(--text); }
.pref-desc  { font-size: 12px; color: var(--muted); margin-top: 2px; }
.toggle { appearance: none; -webkit-appearance: none; position: relative;
  width: 40px; height: 22px; border-radius: 99px; background: var(--border);
  cursor: pointer; flex-shrink: 0; transition: background 0.2s; }
.toggle:checked { background: var(--accent); }
.toggle::after { content: ''; position: absolute; top: 3px; left: 3px;
  width: 16px; height: 16px; border-radius: 50%; background: #fff;
  transition: transform 0.2s; }
.toggle:checked::after { transform: translateX(18px); }

/* ── Hesabı sil ── */
.danger-toggle {
  background: none; border: none; color: var(--muted);
  font-size: 13px; cursor: pointer; padding: 0; text-decoration: underline;
  text-underline-offset: 3px;
}
.danger-toggle:hover { color: #c0392b; }
.danger-zone {
  display: none; margin-top: 16px;
  background: #fff5f5; border: 1px solid #f5c6c6;
  border-radius: 12px; padding: 20px;
}
.danger-zone.open { display: block; }
.danger-zone p { font-size: 13px; color: #c0392b; margin: 0; }
.btn-danger {
  margin-top: 16px; background: #c0392b; color: #fff;
  border: none; border-radius: 8px; padding: 10px 20px;
  font-size: 13px; font-weight: 600; cursor: pointer; transition: background 0.2s;
}
.btn-danger:hover { background: #a93226; }
.btn-danger:disabled { opacity: 0.5; cursor: not-allowed; }
.profile-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--accent); color: #fff;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 0; font-family: 'League Spartan', sans-serif;
  overflow: hidden; flex-shrink: 0;
}
.profile-avatar img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.profile-avatar-wrap {
  position: relative; width: 72px; margin: 0 auto 16px; cursor: pointer;
}
.profile-avatar-wrap:hover .avatar-overlay { opacity: 1; }
.avatar-overlay {
  position: absolute; inset: 0; border-radius: 50%;
  background: rgba(0,0,0,0.45); display: flex; align-items: center;
  justify-content: center; opacity: 0; transition: opacity 0.2s;
}
.avatar-overlay svg { color: #fff; }
.avatar-uploading { opacity: 0.5; pointer-events: none; }
.profile-name  { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.profile-email { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.profile-plan  {
  display: inline-block; padding: 4px 12px; border-radius: 20px;
  background: var(--accent-light); color: var(--accent);
  font-size: 12px; font-weight: 600;
}
@media (max-width: 900px) {
  .profile-grid { grid-template-columns: 1fr; }
  .profile-card { position: static; }
}

/* ── ABOUT ───────────────────────── */
.about-story-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: end; margin-top: 20px;
}
.about-story-inner p {
  font-size: 16px; color: var(--muted); line-height: 1.8; margin-top: 16px;
}
.about-story-inner p:first-of-type { margin-top: 24px; }
.about-stats-box {
  background: var(--card); border: 1px solid var(--border); border-radius: 20px;
  padding: 40px; display: grid; grid-template-columns: 1fr 1fr;
  gap: 32px; box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.about-stat { text-align: center; }
.about-stat .stat-val, .about-stat .ab-stat-val { font-size: 26px; font-weight: 700; color: var(--text); font-family: 'League Spartan', sans-serif; }

.values-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px; margin-top: 48px;
}
.value-card {
  background: var(--card); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; transition: all 0.25s; cursor: default;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.value-card:hover {
  border-color: var(--accent-border); transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(164,42,42,0.08);
}

@media (max-width: 720px) {
  .about-story-inner { grid-template-columns: 1fr; gap: 40px; }
  .about-stats-box { padding: 28px; gap: 24px; }
}

/* ── FORM SUCCESS ───────────────── */
.form-success {
  text-align: center;
  padding: 48px 32px;
  border: 1px solid rgba(22,163,74,0.25);
  border-radius: 16px;
  background: rgba(22,163,74,0.04);
}
.form-success-icon {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(22,163,74,0.12);
  color: #16a34a;
  font-size: 22px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.form-success h3 {
  font-size: 20px; font-weight: 700; color: var(--text); margin-bottom: 8px;
}
.form-success p { font-size: 14px; color: var(--muted); }

/* ── FOOTER ─────────────────────── */
footer {
  border-top: 1px solid var(--border); padding: 40px 5%;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px; background: var(--bg);
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }
.footer-copy { font-size: 13px; color: var(--muted); }
.footer-legal { width: 100%; display: flex; gap: 20px; justify-content: center; padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px; }
.footer-legal a { font-size: 12px; color: var(--muted); text-decoration: none; transition: color 0.2s; }
.footer-legal a:hover { color: var(--text); }

/* ── LEGAL PAGES ─────────────────── */
.legal-page {
  max-width: 760px; margin: 0 auto;
  padding: calc(var(--nav-height) + 60px) 24px 80px;
}
.legal-page h1 {
  font-size: 36px; font-weight: 800; letter-spacing: -1px;
  margin-bottom: 6px;
}
.legal-date { font-size: 13px; color: var(--muted); margin-bottom: 48px; }
.legal-section { margin-bottom: 36px; }
.legal-section h2 {
  font-size: 17px; font-weight: 700; margin-bottom: 10px;
  color: var(--text);
}
.legal-section p, .legal-section li {
  font-size: 14px; color: var(--muted); line-height: 1.75;
}
.legal-section ul { padding-left: 20px; margin-top: 8px; }
.legal-section li { margin-bottom: 4px; }
.legal-section a { color: var(--accent); text-decoration: none; }
.legal-section a:hover { text-decoration: underline; }

/* ── RESPONSIVE ─────────────────── */
@media (max-width: 900px) {
  .features-inner { grid-template-columns: 1fr; gap: 40px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { gap: 32px; }
  h1 { letter-spacing: -1px; }

  .nav-links {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 18px; }

  .hamburger { display: flex; }

  /* Dropdown on mobile: fully hidden unless authenticated */
  .nav-dropdown { display: none; visibility: visible; }
  .nav-dropdown.auth-visible { display: block; }
  #navNotif { display: none; visibility: visible; }
  #navNotif.auth-visible { display: flex; }
  /* Flat inline list, no absolute */
  .nav-dropdown.auth-visible { text-align: center; }
  .nav-dropdown-btn { color: var(--muted); margin: 0 auto; }
  .nav-dropdown-menu {
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: transparent;
    animation: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: flex; flex-direction: column; gap: 4px; margin-top: 8px; }
  .nav-dropdown-menu a { font-size: 15px; color: var(--muted) !important; padding: 6px 0; }
  .nav-dropdown-menu a:hover { background: transparent; color: var(--text) !important; }
  .dropdown-divider { display: none; }
}

/* ══════════════════════════════════
   HERO V2 (Ana Sayfa)
══════════════════════════════════ */
.hero-v2 {
  position: relative;
  width: 100%;
  padding: calc(var(--nav-height) + 80px) 24px 200px;
  text-align: center;
  overflow: hidden;
  background: linear-gradient(to bottom, var(--bg), var(--bg) 50%, var(--bg2) 90%);
  border-radius: 0 0 28px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-v2-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: radial-gradient(circle at center, rgba(164,42,42,0.18) 0%, transparent 70%);
  opacity: 0.7;
  mix-blend-mode: multiply;
  pointer-events: none;
}
[data-theme="dark"] .hero-v2-glow {
  background-image: radial-gradient(circle at center, rgba(164,42,42,0.35) 0%, transparent 65%);
  mix-blend-mode: screen;
  opacity: 0.6;
}

.hero-v2-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  height: 600px;
  background-image:
    linear-gradient(to right, var(--border2) 1px, transparent 1px),
    linear-gradient(to bottom, var(--border2) 1px, transparent 1px);
  background-size: 96px 80px;
  -webkit-mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  mask-image: radial-gradient(ellipse 80% 50% at 50% 0%, #000 70%, transparent 110%);
  opacity: 0.6;
}

.hero-v2-radial {
  position: absolute;
  left: 50%;
  top: calc(100% - 120px);
  width: 140%;
  height: 750px;
  transform: translateX(-50%);
  border-radius: 100%;
  background: radial-gradient(closest-side, #e03030 0%, #c42020 50%, #8b1a1a 78%, #3d0808 93%, transparent);
  box-shadow: 0 0 80px 16px rgba(200,30,30,0.4);
  z-index: 1;
  animation: heroFadeUp 0.9s ease 0.5s both;
}

.hero-v2-eyebrow {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 16px;
  border: 1.5px solid var(--border2);
  border-radius: 999px;
  margin-bottom: 32px;
  transition: color 0.2s, border-color 0.2s;
  animation: heroFadeInUp 0.6s ease both;
}
.hero-v2-eyebrow:hover { color: var(--text); border-color: var(--accent-border); }
.hero-v2-eyebrow svg { transition: transform 0.3s; }
.hero-v2-eyebrow:hover svg { transform: translateX(3px); }

.hero-v2-title {
  position: relative;
  z-index: 2;
  font-size: clamp(40px, 8vw, 96px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  background: linear-gradient(to bottom right, var(--text) 30%, var(--muted));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 24px;
  animation: heroFadeInUp 0.7s ease 0.1s both;
}

.hero-v2-sub {
  position: relative;
  z-index: 2;
  font-size: clamp(16px, 2vw, 20px);
  color: var(--muted);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: 40px;
  animation: heroFadeInUp 0.7s ease 0.2s both;
}

.hero-v2-cta {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  animation: heroFadeInUp 0.7s ease 0.3s both;
}

@keyframes heroFadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateX(-50%) translateY(40px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ── GENİŞ EKRAN (1600px+) ─────── */
@media (min-width: 1600px) {
  body { font-size: 17px; }
  nav { padding: 0 max(5%, calc((100% - 1500px) / 2)); }
  .nav-links a { font-size: 15px; }
  .nav-links { gap: 40px; }
}

@media (min-width: 1920px) {
  body { font-size: 18px; }
  nav { padding: 0 max(5%, calc((100% - 1600px) / 2)); }
  .nav-links a { font-size: 15px; }
}
