/* ==========================================================================
   BoostWave — design system
   Dark neo-brutalist "growth" aesthetic: chunky sticker borders, hard
   offset shadows, warm IG-flavored gradient + cyan TikTok-flavored accent.
   ========================================================================== */

:root {
  --bg: #0a0a0f;
  --bg-soft: #101018;
  --surface: #15151d;
  --surface-raised: #1b1b25;
  --border: #2a2a37;
  --text: #f4f3f7;
  --text-dim: #a6a4b8;
  --text-faint: #6f6d82;

  --pink: #ff2d78;
  --orange: #ff7a3d;
  --cyan: #2de0ff;
  --lime: #c6ff3d;

  --gradient-warm: linear-gradient(115deg, #ff2d78 0%, #ff7a3d 100%);
  --gradient-cool: linear-gradient(115deg, #2de0ff 0%, #6a6bff 100%);
  --gradient-hero: radial-gradient(circle at 15% 20%, rgba(255, 45, 120, 0.35), transparent 45%),
    radial-gradient(circle at 85% 10%, rgba(45, 224, 255, 0.25), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(198, 255, 61, 0.12), transparent 45%);

  --shadow-sticker: 6px 6px 0 rgba(0, 0, 0, 0.65);
  --shadow-sticker-sm: 4px 4px 0 rgba(0, 0, 0, 0.65);
  --radius: 18px;
  --radius-sm: 12px;

  --font-display: "Unbounded", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

html, body { max-width: 100%; overflow-x: hidden; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.08;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 600; }

p { color: var(--text-dim); margin: 0 0 1em; }

a { color: inherit; text-decoration: none; }

.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--lime);
  margin-bottom: 14px;
}
.eyebrow::before { content: "";width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 12px var(--lime); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gradient-warm);
  color: #12060b;
  box-shadow: var(--shadow-sticker-sm);
}
.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0,0,0,0.65); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--text-dim); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 10, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--gradient-warm);
  display: grid; place-items: center;
  font-size: 1.05rem;
  transform: rotate(-6deg);
  box-shadow: var(--shadow-sticker-sm);
}
.main-nav { display: flex; align-items: center; gap: 28px; }
.main-nav a { font-size: 0.92rem; color: var(--text-dim); font-weight: 500; }
.main-nav a:hover { color: var(--text); }
.nav-services { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  margin-top: 14px;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 10px; width: 240px; display: none; box-shadow: var(--shadow-sticker);
}
/* Invisible bridge so the pointer never leaves .nav-services while crossing the gap. */
.nav-dropdown::before { content: ""; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.nav-services.open .nav-dropdown,
.nav-services:hover .nav-dropdown { display: block; }
.lang-switcher > a { display: flex; align-items: center; gap: 6px; font-size: 0.85rem; color: var(--text-dim); white-space: nowrap; }
.lang-switcher > a:hover { color: var(--text); }
.lang-dropdown { max-height: 320px; overflow-y: auto; left: auto; right: 0; transform: none; width: 200px; }
.lang-dropdown a.active-lang { color: var(--lime); font-weight: 600; }
.nav-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 0.88rem; }
.nav-dropdown a:hover { background: var(--surface); color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.user-chip { display: flex; align-items: center; gap: 8px; font-size: 0.85rem; color: var(--text-dim); }
.user-chip img { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--border); }
.nav-toggle { display: none; }
.mobile-nav-extra { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 90px 0 70px;
  background: var(--gradient-hero);
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}
.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; align-items: center; }
.hero-badge {
  position: absolute; top: 60px; right: 8%;
  background: var(--lime); color: #10190a;
  font-family: var(--font-display); font-weight: 700; font-size: 0.78rem;
  padding: 10px 16px; border-radius: 100px;
  transform: rotate(8deg);
  box-shadow: var(--shadow-sticker-sm);
}
.hero h1 span { background: var(--gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.08rem; max-width: 480px; }
.hero-ctas { display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }
.trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 34px; }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--text-faint); }
.trust-item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--cyan); }

.hero-visual {
  position: relative;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow-sticker);
  transform: rotate(2deg);
}
.hero-visual:hover { transform: rotate(0deg); }
.mock-stat { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mock-stat:last-child { border-bottom: none; }
.mock-stat .label { font-size: 0.85rem; color: var(--text-dim); }
.mock-stat .value { font-family: var(--font-display); font-weight: 700; color: var(--lime); }
.mock-bar { height: 8px; border-radius: 100px; background: var(--bg-soft); overflow: hidden; margin-top: 6px; }
.mock-bar > span { display: block; height: 100%; background: var(--gradient-warm); border-radius: 100px; animation: grow 1.8s ease-out forwards; }
@keyframes grow { from { width: 0; } }

/* ---------- Sections ---------- */
.section { padding: 84px 0; }
.section-head { max-width: 620px; margin: 0 auto 48px; text-align: center; }
.section-alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

/* ---------- Service grid (bento) ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.service-card {
  grid-column: span 2;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  min-height: 190px;
}
.service-card.featured { grid-column: span 2; grid-row: span 2; min-height: 400px; justify-content: flex-end; }
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sticker); border-color: var(--text-faint); }
.service-card .platform-tag {
  display: inline-flex; align-self: flex-start;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 100px; margin-bottom: 14px;
}
.tag-instagram { background: rgba(255, 45, 120, 0.16); color: #ff6fa0; }
.tag-tiktok { background: rgba(45, 224, 255, 0.16); color: var(--cyan); }
.service-card h3 { margin-bottom: 6px; }
.service-card p { font-size: 0.9rem; margin-bottom: 14px; }
.service-card .card-cta { margin-top: auto; font-family: var(--font-display); font-size: 0.85rem; font-weight: 600; display: flex; align-items: center; gap: 6px; color: var(--text); }
.service-card .card-cta .arrow { transition: transform 0.18s ease; }
.service-card:hover .card-cta .arrow { transform: translateX(4px); }
.free-pill {
  position: absolute; top: -12px; right: 20px;
  background: var(--gradient-warm); color: #12060b;
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  padding: 6px 12px; border-radius: 100px;
  box-shadow: var(--shadow-sticker-sm);
  transform: rotate(-4deg);
}

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; }
.step-num { font-family: var(--font-display); font-size: 2.4rem; font-weight: 800; background: var(--gradient-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq-q { display: flex; justify-content: space-between; align-items: center; cursor: pointer; font-family: var(--font-display); font-size: 1rem; font-weight: 600; }
.faq-q .icon { font-size: 1.2rem; color: var(--text-faint); transition: transform 0.2s ease; }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; font-size: 0.92rem; }
.faq-item.open .faq-a { max-height: 240px; margin-top: 12px; }

/* ---------- Order form ---------- */
.order-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.order-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sticker);
}
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 8px; color: var(--text-dim); }
.field input {
  width: 100%; background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 13px 14px; color: var(--text); font-size: 0.95rem; font-family: var(--font-body);
}
.field input:focus { outline: none; border-color: var(--cyan); }
.field-hint { font-size: 0.78rem; color: var(--text-faint); margin-top: 6px; }
.form-msg { font-size: 0.88rem; padding: 12px 14px; border-radius: 10px; margin-top: 16px; display: none; }
.form-msg.show { display: block; }
.form-msg.error { background: rgba(255, 45, 120, 0.12); color: #ff8fb4; border: 1px solid rgba(255,45,120,0.3); }
.form-msg.success { background: rgba(198, 255, 61, 0.1); color: var(--lime); border: 1px solid rgba(198,255,61,0.3); }

.trial-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.trial-card ul { margin: 0; padding-left: 20px; color: var(--text-dim); font-size: 0.9rem; }
.trial-card li { margin-bottom: 8px; }

/* profile viewer result */
.profile-result { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; display: flex; gap: 18px; align-items: center; margin-top: 20px; }
.profile-result img { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--border); }

/* ---------- Dashboard ---------- */
.orders-table { width: 100%; border-collapse: collapse; }
.orders-table th, .orders-table td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.orders-table th { color: var(--text-faint); font-weight: 600; text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.06em; }
.status-badge { display: inline-flex; padding: 4px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 600; }
.status-pending { background: rgba(255, 122, 61, 0.15); color: var(--orange); }
.status-processing, .status-in_progress { background: rgba(45, 224, 255, 0.15); color: var(--cyan); }
.status-completed { background: rgba(198, 255, 61, 0.15); color: var(--lime); }
.status-error, .status-canceled { background: rgba(255, 45, 120, 0.15); color: var(--pink); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 60px 0 30px; background: var(--bg-soft); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-faint); margin-bottom: 14px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 0.88rem; margin-bottom: 10px; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--text-faint); flex-wrap: wrap; gap: 10px; }
.footer-disclaimer { font-size: 0.78rem; color: var(--text-faint); max-width: 640px; margin-top: 6px; }

/* ---------- Cookie banner ---------- */
.cookie-banner {
  position: fixed; bottom: 18px; left: 18px; right: 18px; max-width: 560px; margin: 0 auto;
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; box-shadow: var(--shadow-sticker); z-index: 100;
  display: none; align-items: center; gap: 16px; flex-wrap: wrap;
}
.cookie-banner.show { display: flex; }
.cookie-banner p { font-size: 0.85rem; margin: 0; flex: 1 1 260px; }
.cookie-banner .btn { padding: 10px 18px; font-size: 0.82rem; }

/* ---------- Legal pages ---------- */
.legal-page { max-width: 760px; margin: 0 auto; padding: 60px 24px 100px; }
.legal-page h2 { margin-top: 2em; }
.legal-page p, .legal-page li { color: var(--text-dim); font-size: 0.95rem; }
.legal-updated { color: var(--text-faint); font-size: 0.85rem; margin-bottom: 40px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { transform: none; }
  .main-nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--surface-raised); border-bottom: 1px solid var(--border);
    padding: 18px 24px; flex-direction: column; align-items: flex-start; gap: 4px;
    box-shadow: var(--shadow-sticker);
  }
  .main-nav.open-mobile { display: flex; }
  .main-nav a { padding: 10px 0; width: 100%; }
  .main-nav .nav-services { width: 100%; }
  .main-nav .nav-dropdown {
    position: static; display: none; transform: none; width: 100%;
    margin-top: 6px; box-shadow: none; border-color: var(--border);
  }
  .main-nav .nav-dropdown::before { display: none; }
  .main-nav .nav-services.open .nav-dropdown { display: block; }
  .nav-toggle { display: block; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 12px; flex-shrink: 0; }

  /* Keep the top bar to logo + hamburger only; login + language move into the drawer. */
  .header-actions { gap: 8px; }
  .header-actions > .lang-switcher,
  .header-actions > .user-chip,
  .header-actions > .btn { display: none; }
  .mobile-nav-extra {
    display: flex; flex-direction: column; gap: 10px; width: 100%;
    margin-top: 12px; padding-top: 14px; border-top: 1px solid var(--border);
  }
  .mobile-nav-extra .lang-switcher { width: 100%; }
  .mobile-nav-extra .lang-switcher > a { padding: 10px 0; }
  .mobile-nav-extra .lang-dropdown { position: static; width: 100%; margin-top: 6px; box-shadow: none; }
  .mobile-nav-extra .lang-dropdown::before { display: none; }
  .mobile-auth { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
  .logo { min-width: 0; }
  .logo span:not(.logo-mark) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

  .service-grid { grid-template-columns: 1fr 1fr; }
  .service-card.featured { grid-column: span 2; grid-row: span 1; min-height: 220px; }
  .steps { grid-template-columns: 1fr; }
  .order-panel { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  .service-grid { grid-template-columns: 1fr; }
  .service-card.featured { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-badge { position: static; display: inline-flex; margin-bottom: 20px; }
}

/* —— Admin —— */
.admin-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.admin-nav a {
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: var(--text-dim);
}
.admin-nav a.active,
.admin-nav a:hover {
  color: var(--text);
  border-color: var(--cyan);
  background: rgba(45, 224, 255, 0.08);
}
.admin-nav .admin-logout { margin-left: auto; color: var(--pink); }
.admin-stats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.admin-stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px;
  text-align: center;
}
.admin-stat span {
  display: block;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.1;
}
.admin-stat label {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: var(--text-faint);
}
.admin-search {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.admin-search input {
  flex: 1;
  min-width: 180px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
}
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.admin-service-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.admin-service-card { margin: 0; }
.admin-service-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.admin-table { font-size: 0.9rem; }

/* ==========================================================================
   RTL (Arapça) düzeltmeleri
   Tema LTR tasarlandı; aşağıdakiler yön bağımlı olan ve otomatik dönmeyen
   birkaç kuralı düzeltir. Tamamını yeniden yazmak yerine sadece kırılanlar.
   ========================================================================== */
[dir="rtl"] .eyebrow { letter-spacing: 0; }

/* Ok işareti yönü: LTR'de sağa, RTL'de sola akmalı. */
[dir="rtl"] .service-card .card-cta .arrow { transform: scaleX(-1); }
[dir="rtl"] .service-card:hover .card-cta .arrow { transform: scaleX(-1) translateX(4px); }

/* Mutlak konumlu rozetler yön değiştirir. */
[dir="rtl"] .hero-badge { right: auto; left: 8%; transform: rotate(-8deg); }
[dir="rtl"] .free-pill { right: auto; left: 20px; transform: rotate(4deg); }

/* Açılır menüler sağdan hizalanmalı. */
[dir="rtl"] .lang-dropdown { right: auto; left: 0; }

/* Liste girintisi ve tablo hizası. */
[dir="rtl"] .trial-card ul { padding-left: 0; padding-right: 20px; }
[dir="rtl"] .orders-table th,
[dir="rtl"] .orders-table td { text-align: right; }
[dir="rtl"] .admin-nav .admin-logout { margin-left: 0; margin-right: auto; }

/* Sayılar ve latin marka adı RTL akış içinde ters görünmesin. */
[dir="rtl"] .step-num,
[dir="rtl"] .mock-stat .value { direction: ltr; unicode-bidi: embed; }
