/* ============================================================
   WEBISTMIO — Main Stylesheet
   Dark/Light mode via data-theme="dark|light" on <html>
   ============================================================ */

/* ── Variables ──────────────────────────────────────────────────────────────── */
:root {
  --primary:        #7c3aed;
  --primary-dark:   #5b21b6;
  --primary-light:  #a78bfa;
  --secondary:      #0ea5e9;
  --secondary-dark: #0369a1;
  --accent:         #f59e0b;
  --success:        #10b981;
  --danger:         #ef4444;
  --warning:        #f59e0b;
  --info:           #06b6d4;

  --grad-primary:   linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%);
  --grad-hero:      linear-gradient(135deg, #0f172a 0%, #1e1b4b 50%, #0c4a6e 100%);

  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  20px;
  --radius-xl:  32px;

  --shadow-sm:  0 2px 8px rgba(0,0,0,.12);
  --shadow:     0 8px 32px rgba(0,0,0,.18);
  --shadow-lg:  0 20px 60px rgba(0,0,0,.25);
  --shadow-glow: 0 0 40px rgba(124,58,237,.35);

  --transition: .3s cubic-bezier(.4,0,.2,1);

  --font: 'Inter', system-ui, -apple-system, sans-serif;
}

/* ── Dark Theme (default) ──────────────────────────────────────────────────── */
[data-theme="dark"] {
  --bg:         #0f172a;
  --bg-2:       #1e293b;
  --bg-3:       #334155;
  --surface:    #1e293b;
  --surface-2:  #0f172a;
  --border:     #334155;
  --text:       #f1f5f9;
  --text-2:     #cbd5e1;
  --text-3:     #94a3b8;
  --navbar-bg:  rgba(15,23,42,.9);
}

/* ── Light Theme ──────────────────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:         #f8fafc;
  --bg-2:       #ffffff;
  --bg-3:       #f1f5f9;
  --surface:    #ffffff;
  --surface-2:  #f8fafc;
  --border:     #e2e8f0;
  --text:       #0f172a;
  --text-2:     #334155;
  --text-3:     #64748b;
  --navbar-bg:  rgba(255,255,255,.92);
}

/* ── Reset ──────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background var(--transition), color var(--transition);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--secondary); }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Container ─────────────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 800px; margin: 0 auto; padding: 0 20px; }

/* ── Typography ──────────────────────────────────────────────────────────────  */
h1, h2, h3, h4, h5 { line-height: 1.25; font-weight: 700; color: var(--text); }
.gradient-text {
  background: var(--grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.15); color: var(--primary-light);
  border: 1px solid rgba(124,58,237,.3);
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 16px;
}
.section-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 16px; }
.section-desc { font-size: 17px; color: var(--text-3); max-width: 600px; margin: 0 auto 48px; }
.text-center { text-align: center; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); border: none;
  font-size: 15px; font-weight: 600; transition: var(--transition);
  text-decoration: none; white-space: nowrap; position: relative; overflow: hidden;
}
.btn::after { content:''; position:absolute; inset:0; opacity:0; background:rgba(255,255,255,.1); transition:var(--transition); }
.btn:hover::after { opacity:1; }
.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--grad-primary);
  color: #fff; box-shadow: 0 4px 20px rgba(124,58,237,.4);
}
.btn-primary:hover { box-shadow: 0 8px 30px rgba(124,58,237,.55); transform: translateY(-2px); color: #fff; }

.btn-secondary {
  background: rgba(14,165,233,.15); color: var(--secondary);
  border: 1px solid rgba(14,165,233,.3);
}
.btn-secondary:hover { background: rgba(14,165,233,.25); color: var(--secondary); transform: translateY(-2px); }

.btn-ghost {
  background: transparent; color: var(--text-2);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--bg-2); color: var(--text); }

.btn-danger { background: linear-gradient(135deg, #ef4444, #dc2626); color:#fff; }
.btn-danger:hover { box-shadow: 0 8px 20px rgba(239,68,68,.4); transform: translateY(-2px); color:#fff; }

.btn-success { background: linear-gradient(135deg, #10b981, #059669); color:#fff; }

.btn-sm { padding: 8px 16px; font-size: 13px; border-radius: var(--radius-sm); }
.btn-lg { padding: 16px 36px; font-size: 17px; }
.btn-block { width: 100%; }
.btn-outline-primary { background: transparent; border: 2px solid var(--primary); color: var(--primary-light); }
.btn-outline-primary:hover { background: var(--primary); color: #fff; }

/* ── Logo ────────────────────────────────────────────────────────────────── */

/* Logonun açık arka planını her iki modda da görünmez yapar */
.nav-logo,
.footer-logo-img {
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: opacity var(--transition);
  border-radius: 0;
  background: transparent;
}

.footer-logo-img { height: 38px; }

/*
  GÜNDÜZ MODU:
  mix-blend-mode: multiply → logo arka planı (açık renk) sayfa arka planıyla
  çarpışır ve kaybolur. Sadece renkli ikon ve yazı kalır.
*/
[data-theme="light"] .nav-logo,
[data-theme="light"] .footer-logo-img {
  mix-blend-mode: multiply;
}

/*
  GECE MODU:
  mix-blend-mode: screen → logo arka planı (açık renk) karanlık arka planla
  birleşince kaybolur. Renkli (mavi/cyan) kısımlar parlak görünür.
*/
[data-theme="dark"] .nav-logo,
[data-theme="dark"] .footer-logo-img {
  mix-blend-mode: screen;
}

.nav-logo:hover,
.footer-logo-img:hover {
  opacity: .85;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: var(--navbar-bg);
  backdrop-filter: blur(20px) saturate(1.8);
  -webkit-backdrop-filter: blur(20px) saturate(1.8);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.navbar.scrolled { box-shadow: var(--shadow); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 22px; font-weight: 800; color: var(--text) !important; text-decoration: none;
  flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px;
  background: var(--grad-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px;
}
.brand-text { background: var(--grad-primary); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip:text; }
.nav-links {
  display: flex; align-items: center; gap: 4px;
  flex: 1;
}
.nav-links a {
  padding: 8px 14px; border-radius: var(--radius-sm);
  color: var(--text-2); font-weight: 500; font-size: 15px;
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--primary-light);
  background: rgba(124,58,237,.1);
}
.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-3); font-size: 15px; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.theme-toggle:hover { border-color: var(--primary); color: var(--primary-light); }

/* User dropdown */
.nav-user-menu { position: relative; }
.nav-user-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text); font-size: 14px; font-weight: 500;
}
.nav-user-btn:hover { border-color: var(--primary); }
.user-avatar-sm {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.user-name-short { max-width: 80px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-dropdown {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 200px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: var(--transition); z-index: 100;
}
.user-dropdown.open { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown a {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px; color: var(--text-2); font-size: 14px;
  transition: var(--transition);
}
.user-dropdown a:hover { background: var(--bg-2); color: var(--text); }
.user-dropdown a.text-danger { color: var(--danger); }
.user-dropdown a.text-danger:hover { background: rgba(239,68,68,.1); }
.dropdown-divider { height: 1px; background: var(--border); margin: 4px 0; }

/* Hamburger */
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text-2); border-radius: 2px; transition: var(--transition);
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Hero Section ──────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: var(--grad-hero);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding: 100px 0 80px;
}
.hero-bg-shapes {
  position: absolute; inset: 0; overflow: hidden; pointer-events: none;
}
.hero-shape {
  position: absolute; border-radius: 50%;
  background: var(--grad-primary); filter: blur(80px); opacity: .15;
}
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; opacity: .1; }
.hero-shape-3 { width: 200px; height: 200px; top: 50%; left: 50%; transform: translate(-50%,-50%); opacity:.08; }

.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 60px; align-items: center;
}
.hero-content { max-width: 580px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(124,58,237,.2); color: #a78bfa;
  border: 1px solid rgba(124,58,237,.4);
  padding: 6px 16px; border-radius: 100px; font-size: 13px; font-weight: 600;
  margin-bottom: 24px; text-transform: uppercase; letter-spacing: .5px;
}
.hero-title {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 900; line-height: 1.1;
  color: #fff; margin-bottom: 20px;
}
.hero-subtitle { font-size: 18px; color: #cbd5e1; margin-bottom: 36px; line-height: 1.7; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 32px; margin-top: 52px; flex-wrap: wrap;
}
.hero-stat {}
.hero-stat-num { font-size: 30px; font-weight: 800; color: #fff; }
.hero-stat-label { font-size: 13px; color: #94a3b8; margin-top: 2px; }

/* Hero Visual */
.hero-visual { display: flex; justify-content: center; align-items: center; }
.hero-card-stack { position: relative; width: 320px; height: 380px; }
.hero-card {
  position: absolute; background: rgba(255,255,255,.05);
  backdrop-filter: blur(20px); border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius-lg); padding: 24px;
}
.hero-card-main {
  width: 280px; top: 50%; left: 50%; transform: translate(-50%,-50%);
  z-index: 3; background: rgba(124,58,237,.2);
}
.hero-card-1 { width: 200px; top: 0; right: 0; z-index: 2; transform: rotate(6deg); }
.hero-card-2 { width: 180px; bottom: 20px; left: 0; z-index: 2; transform: rotate(-5deg); }
.hero-card-icon { font-size: 32px; margin-bottom: 10px; }
.hero-card-title { font-size: 14px; font-weight: 600; color: #fff; }
.hero-card-desc { font-size: 12px; color: #94a3b8; margin-top: 6px; }

.floating { animation: floating 4s ease-in-out infinite; }
@keyframes floating { 0%,100% { transform: translate(-50%,-50%) translateY(0); } 50% { transform: translate(-50%,-50%) translateY(-14px); } }

/* ── Services Section ──────────────────────────────────────────────────────── */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-2); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-primary); transform: scaleX(0); transform-origin: left;
  transition: var(--transition);
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-glow); border-color: rgba(124,58,237,.4); }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  width: 60px; height: 60px; border-radius: var(--radius);
  background: rgba(124,58,237,.15); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin-bottom: 20px;
  transition: var(--transition);
}
.service-card:hover .service-icon { background: var(--grad-primary); color: #fff; }
.service-card h3 { font-size: 20px; margin-bottom: 10px; }
.service-card p { color: var(--text-3); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.service-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.feature-tag {
  background: var(--bg-2); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 100px; font-size: 12px; color: var(--text-3);
}
.service-link { color: var(--primary-light); font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.service-link:hover { gap: 10px; }

/* ── Stats ──────────────────────────────────────────────────────────────── */
.stats-section { padding: 80px 0; background: var(--grad-primary); }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.stat-item { text-align: center; padding: 24px; }
.stat-num { font-size: 48px; font-weight: 900; color: #fff; line-height: 1; }
.stat-unit { color: rgba(255,255,255,.7); font-size: 20px; }
.stat-label { color: rgba(255,255,255,.75); font-size: 15px; margin-top: 8px; }

/* ── Why Us ─────────────────────────────────────────────────────────────── */
.why-us-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.why-us-list { display: flex; flex-direction: column; gap: 24px; }
.why-item { display: flex; gap: 20px; }
.why-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: rgba(124,58,237,.15); color: var(--primary-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.why-content h4 { font-size: 17px; margin-bottom: 6px; }
.why-content p { color: var(--text-3); font-size: 14px; }

.why-visual { position: relative; }
.why-img-container {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative; overflow: hidden;
}
.why-img-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.why-mini-card {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px; text-align: center;
}
.why-mini-card .icon { font-size: 28px; margin-bottom: 8px; }
.why-mini-card span { font-size: 13px; color: var(--text-3); display: block; }

/* ── Process ────────────────────────────────────────────────────────────── */
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; position: relative; }
.process-grid::before {
  content: ''; position: absolute;
  top: 40px; left: 80px; right: 80px; height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  z-index: 0;
}
.process-step { text-align: center; position: relative; z-index: 1; }
.process-num {
  width: 80px; height: 80px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--primary);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; font-weight: 800; color: var(--primary-light);
  margin: 0 auto 20px; position: relative;
  box-shadow: 0 0 0 8px var(--bg);
}
.process-step h4 { font-size: 16px; margin-bottom: 8px; }
.process-step p { color: var(--text-3); font-size: 13px; }

/* ── Testimonials ───────────────────────────────────────────────────────── */
.testimonials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonial-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
}
.testimonial-stars { color: var(--accent); margin-bottom: 16px; }
.testimonial-text { color: var(--text-2); font-size: 15px; line-height: 1.75; margin-bottom: 24px; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 14px; }
.author-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 18px;
}
.author-name { font-weight: 600; font-size: 15px; }
.author-title { font-size: 13px; color: var(--text-3); }

/* ── CTA Banner ─────────────────────────────────────────────────────────── */
.cta-section { padding: 80px 0; }
.cta-box {
  background: var(--grad-primary);
  border-radius: var(--radius-xl); padding: 72px 60px;
  text-align: center; position: relative; overflow: hidden;
}
.cta-box::before {
  content: ''; position: absolute;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,.05); top: -150px; right: -100px;
}
.cta-box h2 { font-size: clamp(28px,3.5vw,42px); color: #fff; margin-bottom: 16px; }
.cta-box p { font-size: 18px; color: rgba(255,255,255,.8); margin-bottom: 36px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: #fff; color: var(--primary-dark); font-weight: 700; }
.btn-white:hover { background: rgba(255,255,255,.9); transform: translateY(-2px); }
.btn-white-outline { background: transparent; border: 2px solid rgba(255,255,255,.5); color: #fff; }
.btn-white-outline:hover { background: rgba(255,255,255,.1); border-color: #fff; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: auto; }
.footer-top { padding: 80px 0 60px; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-logo { display: flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; color: var(--text) !important; margin-bottom: 16px; }
.footer-desc { font-size: 14px; color: var(--text-3); line-height: 1.8; margin-bottom: 24px; }
.social-links { display: flex; gap: 10px; }
.social-links a {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-3); border: 1px solid var(--border);
  color: var(--text-3); display: flex; align-items: center; justify-content: center;
  font-size: 15px; transition: var(--transition);
}
.social-links a:hover { background: var(--grad-primary); border-color: transparent; color: #fff; transform: translateY(-3px); }

.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 20px; color: var(--text); }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul a { color: var(--text-3); font-size: 14px; display: flex; align-items: center; gap: 6px; transition: var(--transition); }
.footer-col ul a i { font-size: 10px; color: var(--primary-light); }
.footer-col ul a:hover { color: var(--primary-light); padding-left: 4px; }

.footer-contact { display: flex; flex-direction: column; gap: 12px; margin-bottom: 24px; }
.contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--text-3); }
.contact-item i { color: var(--primary-light); margin-top: 2px; width: 16px; flex-shrink: 0; }
.contact-item a { color: var(--text-3); }
.contact-item a:hover { color: var(--primary-light); }

/* ETBİS */
.etbis-box {
  background: var(--bg-3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px; text-align: center;
}
.etbis-label { font-size: 12px; font-weight: 700; color: var(--primary-light); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 4px; }
.etbis-no { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.etbis-qr { width: 120px; height: 120px; border-radius: 8px; margin: 0 auto; }
.etbis-qr-link:hover .etbis-qr { opacity: .8; }

.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer-bottom p { font-size: 13px; color: var(--text-3); }
.payment-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.pay-badge {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 5px 10px; border-radius: 6px; font-size: 12px; color: var(--text-3);
}
.pay-badge i { color: var(--primary-light); }

/* ── Cards / Panels ─────────────────────────────────────────────────────── */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  transition: var(--transition);
}
.card-sm { padding: 20px; }
.card-hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: rgba(124,58,237,.3); }
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--border);
}
.card-title { font-size: 17px; font-weight: 700; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 14px; font-weight: 600; color: var(--text-2); margin-bottom: 8px; }
.form-label .required { color: var(--danger); margin-left: 4px; }
.form-control {
  width: 100%; padding: 12px 16px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius-sm); color: var(--text);
  font-size: 15px; transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(124,58,237,.15); }
.form-control::placeholder { color: var(--text-3); }
.form-control:disabled { opacity: .6; cursor: not-allowed; }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 12px; color: var(--text-3); margin-top: 4px; }
.form-error { font-size: 12px; color: var(--danger); margin-top: 4px; }

.input-group { position: relative; }
.input-group .form-control { padding-left: 44px; }
.input-group .input-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 16px; pointer-events: none;
}
.input-group .input-icon-right {
  position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-3); font-size: 16px; cursor: pointer;
}

/* ── Alerts ─────────────────────────────────────────────────────────────── */
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.alert i { margin-top: 1px; flex-shrink: 0; }
.alert-success { background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.3); color: #6ee7b7; }
.alert-danger  { background: rgba(239,68,68,.1);  border: 1px solid rgba(239,68,68,.3);  color: #fca5a5; }
.alert-warning { background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.3); color: #fcd34d; }
.alert-info    { background: rgba(6,182,212,.1);  border: 1px solid rgba(6,182,212,.3);  color: #67e8f9; }
[data-theme="light"] .alert-success { color: #065f46; }
[data-theme="light"] .alert-danger  { color: #7f1d1d; }
[data-theme="light"] .alert-warning { color: #78350f; }
[data-theme="light"] .alert-info    { color: #0e7490; }

/* ── Badges ─────────────────────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 12px; font-weight: 600;
}
.badge-primary   { background: rgba(124,58,237,.15);  color: #a78bfa; }
.badge-secondary { background: var(--bg-3);            color: var(--text-3); }
.badge-success   { background: rgba(16,185,129,.15);  color: #34d399; }
.badge-danger    { background: rgba(239,68,68,.15);   color: #f87171; }
.badge-warning   { background: rgba(245,158,11,.15);  color: #fbbf24; }
.badge-info      { background: rgba(6,182,212,.15);   color: #22d3ee; }

/* ── Tables ─────────────────────────────────────────────────────────────── */
.table-responsive { overflow-x: auto; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; }
.table th {
  background: var(--bg-2); padding: 14px 16px;
  text-align: left; font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-3); border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.table tr:last-child td { border-bottom: none; }
.table tbody tr { transition: var(--transition); }
.table tbody tr:hover { background: var(--bg-2); }

/* ── Pagination ─────────────────────────────────────────────────────────── */
.pagination { display: flex; gap: 6px; flex-wrap: wrap; }
.page-btn {
  min-width: 38px; height: 38px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--border);
  color: var(--text-2); font-size: 14px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition); text-decoration: none; padding: 0 10px;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary-light); }
.page-btn.active { background: var(--grad-primary); border-color: transparent; color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ── Toast / Notifications ──────────────────────────────────────────────── */
.toast-container {
  position: fixed; top: 84px; right: 20px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
  max-width: 380px;
}
.toast {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
  box-shadow: var(--shadow-lg); font-size: 14px;
  opacity: 0; transform: translateX(20px);
  transition: var(--transition);
}
.toast.show { opacity: 1; transform: translateX(0); }
.toast i { flex-shrink: 0; font-size: 18px; }
.toast-success { border-left: 4px solid var(--success); }
.toast-success i { color: var(--success); }
.toast-danger  { border-left: 4px solid var(--danger); }
.toast-danger  i { color: var(--danger); }
.toast-warning { border-left: 4px solid var(--warning); }
.toast-warning i { color: var(--warning); }
.toast-info    { border-left: 4px solid var(--info); }
.toast-info    i { color: var(--info); }
.toast-close   { margin-left: auto; background: none; border: none; color: var(--text-3); font-size: 18px; line-height: 1; padding: 0 0 0 8px; }

/* ── Cookie Bar ─────────────────────────────────────────────────────────── */
.cookie-bar {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 2000;
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 16px 0; box-shadow: 0 -4px 20px rgba(0,0,0,.15);
  animation: slideUp .4s ease;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-bar__inner {
  max-width: 1200px; margin: 0 auto; padding: 0 20px;
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
}
.cookie-bar__inner p { font-size: 14px; color: var(--text-2); flex: 1; min-width: 200px; }
.cookie-bar__inner a { color: var(--primary-light); text-decoration: underline; }
.cookie-bar__actions { display: flex; gap: 10px; flex-shrink: 0; }

/* ── Auth Pages ─────────────────────────────────────────────────────────── */
.auth-page {
  min-height: 100vh; background: var(--bg);
  display: flex; align-items: center; justify-content: center;
  padding: 80px 20px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 48px 44px;
}
.auth-logo { text-align: center; margin-bottom: 32px; }
.auth-logo .brand-icon { width: 52px; height: 52px; font-size: 22px; margin: 0 auto 12px; }
.auth-title { font-size: 26px; font-weight: 800; text-align: center; margin-bottom: 8px; }
.auth-subtitle { text-align: center; color: var(--text-3); font-size: 15px; margin-bottom: 32px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--text-3); font-size: 13px; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background: var(--border); }
.auth-link { text-align: center; font-size: 14px; color: var(--text-3); margin-top: 20px; }
.auth-link a { color: var(--primary-light); font-weight: 600; }

/* ── Dashboard Layout ───────────────────────────────────────────────────── */
.dashboard-layout { display: flex; min-height: 100vh; padding-top: 68px; }

.sidebar {
  width: 260px; background: var(--bg-2); border-right: 1px solid var(--border);
  position: fixed; top: 68px; left: 0; bottom: 0;
  overflow-y: auto; z-index: 100;
  transition: var(--transition);
}
.sidebar-inner { padding: 24px 0; }
.sidebar-user { padding: 0 20px 24px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.sidebar-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--grad-primary); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; margin-bottom: 10px;
}
.sidebar-username { font-weight: 700; font-size: 15px; margin-bottom: 2px; }
.sidebar-email { font-size: 12px; color: var(--text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.sidebar-nav a, .sidebar-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 20px; color: var(--text-2); font-size: 14px;
  font-weight: 500; width: 100%; background: none; border: none; text-align: left;
  transition: var(--transition); border-radius: 0;
  text-decoration: none;
}
.sidebar-nav a:hover, .sidebar-nav button:hover { background: rgba(124,58,237,.1); color: var(--primary-light); }
.sidebar-nav a.active { background: rgba(124,58,237,.15); color: var(--primary-light); border-right: 3px solid var(--primary); }
.sidebar-nav i { width: 20px; text-align: center; font-size: 16px; }
.sidebar-section-label { padding: 12px 20px 4px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text-3); }

.main-content {
  flex: 1; margin-left: 260px; padding: 32px;
  min-width: 0; background: var(--bg);
}
.page-header { margin-bottom: 28px; }
.page-header h1 { font-size: 26px; font-weight: 800; margin-bottom: 4px; }
.page-header p { color: var(--text-3); font-size: 15px; }

.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 28px; }
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  display: flex; align-items: center; gap: 16px;
}
.stat-card-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.stat-card-icon.purple { background: rgba(124,58,237,.15); color: var(--primary-light); }
.stat-card-icon.blue   { background: rgba(14,165,233,.15);  color: var(--secondary); }
.stat-card-icon.green  { background: rgba(16,185,129,.15);  color: var(--success); }
.stat-card-icon.orange { background: rgba(245,158,11,.15);  color: var(--accent); }
.stat-card-icon.red    { background: rgba(239,68,68,.15);   color: var(--danger); }
.stat-card-value { font-size: 26px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.stat-card-label { font-size: 13px; color: var(--text-3); }

/* Admin specifics */
.admin-navbar {
  position: fixed; top: 0; left: 0; right: 0; height: 64px; z-index: 200;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; padding: 0 24px; gap: 16px;
}
.admin-navbar .nav-brand { font-size: 18px; }
.admin-header-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

/* ── Ticket Detail ──────────────────────────────────────────────────────── */
.ticket-messages { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.ticket-msg {
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
}
.ticket-msg.admin-msg { border-left: 4px solid var(--primary); }
.ticket-msg.user-msg  { border-left: 4px solid var(--secondary); }
.msg-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.msg-author { font-size: 14px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.msg-time { font-size: 12px; color: var(--text-3); }
.msg-body { font-size: 14px; color: var(--text-2); line-height: 1.7; white-space: pre-wrap; }

/* ── Payment ────────────────────────────────────────────────────────────── */
.payment-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.payment-method {
  background: var(--bg-2); border: 2px solid var(--border);
  border-radius: var(--radius); padding: 20px 16px; text-align: center; cursor: pointer;
  transition: var(--transition);
}
.payment-method:hover { border-color: var(--primary); }
.payment-method.selected { border-color: var(--primary); background: rgba(124,58,237,.08); }
.payment-method input[type="radio"] { display: none; }
.payment-method-icon { font-size: 28px; margin-bottom: 8px; color: var(--primary-light); }
.payment-method-label { font-size: 13px; font-weight: 600; color: var(--text-2); }

/* ── Modals ─────────────────────────────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  z-index: 9000; display: flex; align-items: center; justify-content: center;
  padding: 20px; opacity: 0; visibility: hidden; transition: var(--transition);
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px; width: 100%; max-width: 520px;
  transform: scale(.95); transition: var(--transition);
}
.modal-overlay.open .modal { transform: scale(1); }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.modal-title { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-3); font-size: 22px; line-height: 1; }
.modal-close:hover { color: var(--danger); }

/* ── Misc helpers ───────────────────────────────────────────────────────── */
.page-wrap { padding-top: 68px; }
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-3); }
.empty-state i { font-size: 48px; margin-bottom: 16px; opacity: .4; display: block; }
.empty-state h3 { font-size: 18px; margin-bottom: 8px; color: var(--text-2); }
.empty-state p { font-size: 14px; }

.divider { height: 1px; background: var(--border); margin: 24px 0; }
.text-muted { color: var(--text-3); }
.text-success { color: var(--success); }
.text-danger  { color: var(--danger); }
.text-primary { color: var(--primary-light); }
.fw-bold { font-weight: 700; }
.fs-sm { font-size: 13px; }
.mb-0 { margin-bottom: 0; }
.mt-0 { margin-top: 0; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.gap-2 { gap: 8px; }
.gap-3 { gap: 12px; }
.flex-wrap { flex-wrap: wrap; }
.justify-between { justify-content: space-between; }
.w-100 { width: 100%; }
.overflow-hidden { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner    { grid-template-columns: 1fr; text-align: center; }
  .hero-visual   { display: none; }
  .hero-cta      { justify-content: center; }
  .hero-stats    { justify-content: center; }
  .stats-grid    { grid-template-columns: repeat(2, 1fr); }
  .process-grid  { grid-template-columns: repeat(2, 1fr); }
  .process-grid::before { display: none; }
  .why-us-grid   { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; }
  .stats-row     { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .nav-links {
    position: fixed; top: 68px; left: 0; right: 0;
    background: var(--navbar-bg); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: stretch; padding: 16px;
    gap: 4px;
    transform: translateY(-100%); opacity: 0; pointer-events: none;
    transition: var(--transition);
  }
  .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: all; }
  .nav-links a { padding: 12px 16px; border-radius: var(--radius-sm); }

  .hero { padding: 90px 0 60px; }
  .section { padding: 64px 0; }

  .services-grid    { grid-template-columns: 1fr; }
  .testimonials-grid{ grid-template-columns: 1fr; }
  .payment-methods  { grid-template-columns: 1fr; }
  .footer-grid      { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; text-align: center; }

  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main-content { margin-left: 0; padding: 20px 16px; }

  .stats-row { grid-template-columns: 1fr 1fr; }

  .cta-box { padding: 48px 24px; }
  .auth-card { padding: 32px 24px; }

  .process-grid { grid-template-columns: 1fr; }

  .nav-user-btn .user-name-short { display: none; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .stats-row { grid-template-columns: 1fr; }
  .cta-actions { flex-direction: column; align-items: center; }
}
