:root {
  --bg: #0b0d16;
  --card: #14161f;
  --border: #262838;
  --text: #f5f4fa;
  --text-dim: #9b9aae;
  --accent: #8b5cf6;
  --accent-hover: #7c3aed;
  --success: #34d399;
  --error: #f87171;
  --warn: #fb923c;
  --brand-violet: #8b5cf6;
  --brand-amber: #fb923c;
  --brand-cyan: #22d3ee;
  --gradient-brand: linear-gradient(135deg, #8b5cf6 0%, #fb923c 100%);
  --font-display: 'Space Grotesk', -apple-system, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
}
.container { max-width: 720px; margin: 0 auto; padding: 40px 20px; }
h1 { font-size: 24px; margin: 0 0 4px; }
h2 { font-size: 18px; margin: 0 0 12px; }
.subtitle { color: var(--text-dim); margin-bottom: 28px; font-size: 14px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 20px;
}
input, select {
  width: 100%;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 12px;
}
label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 6px; }
button {
  width: 100%;
  padding: 12px;
  background: var(--gradient-brand);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
}
button:hover { opacity: 0.92; transform: translateY(-1px); }
button:disabled { opacity: 0.5; cursor: not-allowed; }
button.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); }
button.secondary:hover { background: rgba(255,255,255,0.05); }
button.danger { background: var(--error); }
a { color: var(--accent); text-decoration: none; }
.status { margin-top: 14px; font-size: 14px; padding: 10px 14px; border-radius: 8px; display: none; }
.status.loading { display: block; background: rgba(91,141,239,0.1); color: var(--accent); }
.status.success { display: block; background: rgba(62,207,142,0.1); color: var(--success); }
.status.error { display: block; background: rgba(242,84,91,0.1); color: var(--error); }
.topbar {
  display: flex; justify-content: space-between; align-items: center;
  max-width: 720px; margin: 0 auto; padding: 16px 20px 0;
}
.topbar .balance { font-size: 14px; color: var(--text-dim); }
.topbar .balance b { color: var(--success); }
.badge {
  display: inline-block; padding: 3px 8px; border-radius: 20px; font-size: 12px; font-weight: 600;
}
.badge.pending { background: rgba(242,177,85,0.15); color: var(--warn); }
.badge.approved, .badge.succeeded { background: rgba(62,207,142,0.15); color: var(--success); }
.badge.rejected, .badge.failed, .badge.refunded { background: rgba(242,84,91,0.15); color: var(--error); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); }
th { color: var(--text-dim); font-weight: 600; }
.spinner {
  display: inline-block; width: 14px; height: 14px;
  border: 2px solid rgba(91,141,239,0.3); border-top-color: var(--accent);
  border-radius: 50%; animation: spin 0.7s linear infinite; margin-right: 8px; vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tabs button { flex: 1; padding: 10px 12px; font-size: 13px; background: var(--card); border: 1px solid var(--border); color: var(--text-dim); }
.tabs button.active { background: var(--accent); color: white; border-color: var(--accent); }
.price-tag { font-size: 13px; color: var(--text-dim); }
.price-tag b { color: var(--text); }
.credit-badge {
  display: inline-block; padding: 3px 10px; background: rgba(62,207,142,0.1); border: 1px solid var(--success);
  border-radius: 20px; font-size: 11px; color: var(--success); font-weight: 600; margin-top: 4px; margin-right: 4px;
}

/* Kristal marka - hero ve landing bileşenleri */
.brand-logo {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: 18px; color: var(--text);
}
.brand-logo .mark {
  width: 22px; height: 22px; background: var(--gradient-brand);
  border-radius: 6px; transform: rotate(45deg); flex-shrink: 0;
}
.hero {
  max-width: 720px; margin: 0 auto; padding: 48px 20px 20px; text-align: center;
}
.hero h1 {
  font-family: var(--font-display); font-size: 38px; font-weight: 600; line-height: 1.15;
  margin: 24px 0 14px; letter-spacing: -0.5px;
}
.hero h1 .grad {
  background: var(--gradient-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero .lead { color: var(--text-dim); font-size: 16px; line-height: 1.6; max-width: 480px; margin: 0 auto 32px; }

.compare {
  position: relative; max-width: 640px; margin: 0 auto 40px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border); aspect-ratio: 626/417; cursor: ew-resize; user-select: none;
}
.compare .layer { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.compare .before { clip-path: inset(0 50% 0 0); }
.compare .handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; background: white;
  box-shadow: 0 0 0 3px rgba(255,255,255,0.25); transform: translateX(-50%);
}
.compare .handle::after {
  content: '\2194'; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 32px; height: 32px; background: white; color: #14161f; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700;
}
.compare .tag { position: absolute; top: 10px; font-size: 11px; font-weight: 700; padding: 4px 9px; border-radius: 20px; background: rgba(0,0,0,0.5); color: white; letter-spacing: 0.5px; }
.compare .tag.left { left: 10px; }
.compare .tag.right { right: 10px; }

.trust-row { display: flex; justify-content: center; gap: 28px; margin-bottom: 44px; flex-wrap: wrap; }
.trust-row .item { text-align: center; }
.trust-row .item b { display: block; font-family: var(--font-display); font-size: 22px; color: var(--text); }
.trust-row .item span { font-size: 12px; color: var(--text-dim); }

.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 720px; margin: 0 auto 44px; padding: 0 20px; }
.pricing-grid .ptier {
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 14px 8px; text-align: center;
}
.pricing-grid .ptier.featured { border-color: var(--brand-violet); background: linear-gradient(180deg, rgba(139,92,246,0.12), rgba(20,22,31,0)); }
.pricing-grid .ptier .scale { font-family: var(--font-display); font-weight: 600; font-size: 16px; color: var(--text); }
.pricing-grid .ptier .price { font-size: 13px; color: var(--brand-amber); font-weight: 600; margin-top: 4px; }
@media (max-width: 520px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } .hero h1 { font-size: 28px; } }
