/* ==========================================================
   EKAYDAN v13 — Executive Polish Layer
   Profesyonel görünüm, mikro-etkileşim, premium kart sistemi.
   ========================================================== */
:root {
  --v13-ink: #08111f;
  --v13-muted: #64748b;
  --v13-soft: #f8fafc;
  --v13-line: rgba(148, 163, 184, 0.22);
  --v13-blue: #1d4ed8;
  --v13-blue-2: #2563eb;
  --v13-cyan: #06b6d4;
  --v13-teal: #0f766e;
  --v13-orange: #f97316;
  --v13-gold: #f59e0b;
  --v13-green: #16a34a;
  --v13-red: #dc2626;
  --v13-radius: 24px;
  --v13-shadow: 0 24px 70px rgba(8, 17, 31, 0.12);
  --v13-shadow-soft: 0 16px 40px rgba(8, 17, 31, 0.08);
  --v13-gradient: linear-gradient(135deg, #071827 0%, #10243e 46%, #0f766e 100%);
}

html {
  scroll-behavior: smooth;
}

body.app-page-body {
  background:
    radial-gradient(circle at 12% 4%, rgba(37, 99, 235, 0.08), transparent 30rem),
    radial-gradient(circle at 86% 8%, rgba(249, 115, 22, 0.08), transparent 28rem),
    linear-gradient(180deg, #f8fafc 0%, #ffffff 42%, #f8fafc 100%);
}

.v13-ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 42, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.9), transparent 65%);
}

.v13-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 3000;
  width: 100%;
  height: 3px;
  background: transparent;
}

.v13-scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--v13-orange), var(--v13-cyan), var(--v13-blue-2));
  box-shadow: 0 0 18px rgba(37, 99, 235, 0.38);
}

.modern-header {
  backdrop-filter: blur(18px);
}

.modern-brand-mark,
.modern-nav-button,
.landing-button,
.btn {
  position: relative;
  overflow: hidden;
}

.modern-nav-button::after,
.landing-button::after,
.btn::after {
  position: absolute;
  inset: 0;
  content: "";
  pointer-events: none;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.34), transparent);
  transform: translateX(-130%);
  transition: transform 0.72s ease;
}

.modern-nav-button:hover::after,
.landing-button:hover::after,
.btn:hover::after {
  transform: translateX(130%);
}

.v13-command-strip {
  position: sticky;
  top: 74px;
  z-index: 1030;
  padding: 10px 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  background: rgba(248, 250, 252, 0.82);
  backdrop-filter: blur(18px);
}

.home-page-body .v13-command-strip {
  position: relative;
  top: auto;
  z-index: 7;
  margin-top: -1px;
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(7, 24, 39, 0.88);
}

.v13-command-strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.v13-command-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  color: #0f172a;
}

.home-page-body .v13-command-identity {
  color: #fff;
}

.v13-command-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--v13-blue), var(--v13-teal));
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 14px;
  font-size: 14px;
  font-weight: 950;
  box-shadow: 0 14px 32px rgba(29, 78, 216, 0.28);
}

.v13-command-identity small,
.v13-command-identity strong {
  display: block;
  overflow: hidden;
  max-width: 330px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v13-command-identity small {
  color: var(--v13-muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-page-body .v13-command-identity small {
  color: rgba(255,255,255,0.62);
}

.v13-command-identity strong {
  color: inherit;
  font-size: 14px;
  font-weight: 900;
}

.v13-command-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.v13-command-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: #0f172a;
  text-decoration: none;
  background: rgba(255,255,255,0.82);
  border: 1px solid rgba(203, 213, 225, 0.78);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.home-page-body .v13-command-link {
  color: #fff;
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.14);
}

.v13-command-link:hover,
.v13-command-link:focus {
  color: var(--v13-blue);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.12);
  transform: translateY(-2px);
}

.home-page-body .v13-command-link:hover,
.home-page-body .v13-command-link:focus {
  color: #fff;
  border-color: rgba(249, 115, 22, 0.45);
  background: rgba(249, 115, 22, 0.16);
}

.v13-command-count {
  display: inline-grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  color: #7c2d12;
  background: #fed7aa;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.v13-shell-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.v13-shell-badge::before {
  width: 8px;
  height: 8px;
  content: "";
  background: #22c55e;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(34,197,94,0.16);
}

.v13-executive-panel,
.v13-glass-panel,
.v13-overview-card,
.v13-route-card,
.v13-store-summary-card,
.v13-service-journey-card,
.v13-learning-command,
.v13-payment-step,
.v13-footer-trust-item {
  position: relative;
  overflow: hidden;
}

.v13-executive-panel::before,
.v13-glass-panel::before,
.v13-overview-card::before,
.v13-route-card::before,
.v13-store-summary-card::before,
.v13-service-journey-card::before,
.v13-learning-command::before,
.v13-payment-step::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.36), transparent 36%),
    radial-gradient(circle at 85% 0%, rgba(37, 99, 235, 0.12), transparent 24rem);
}

.v13-executive-panel > *,
.v13-glass-panel > *,
.v13-overview-card > *,
.v13-route-card > *,
.v13-store-summary-card > *,
.v13-service-journey-card > *,
.v13-learning-command > *,
.v13-payment-step > * {
  position: relative;
  z-index: 1;
}

.v13-executive-overview {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 18px;
  margin: 22px 0;
}

.v13-executive-panel {
  padding: 26px;
  color: #fff;
  background: var(--v13-gradient);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: var(--v13-radius);
  box-shadow: var(--v13-shadow);
}

.v13-executive-panel h2,
.v13-executive-panel p {
  margin: 0;
}

.v13-executive-panel h2 {
  max-width: 760px;
  font-size: clamp(1.6rem, 2.8vw, 2.8rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.v13-executive-panel p {
  max-width: 720px;
  margin-top: 12px;
  color: rgba(255,255,255,0.76);
  font-size: 15px;
  line-height: 1.75;
}

.v13-executive-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}

.v13-executive-status {
  padding: 14px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}

.v13-executive-status span {
  display: block;
  color: rgba(255,255,255,0.58);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v13-executive-status strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 950;
}

.v13-overview-stack {
  display: grid;
  gap: 14px;
}

.v13-overview-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(226,232,240,0.96);
  border-radius: 22px;
  box-shadow: var(--v13-shadow-soft);
}

.v13-overview-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--v13-blue), var(--v13-cyan));
  border-radius: 16px;
  font-weight: 950;
}

.v13-overview-card strong,
.v13-route-card strong,
.v13-store-summary-card strong,
.v13-service-journey-card strong,
.v13-payment-step strong {
  display: block;
  color: #0f172a;
  font-weight: 950;
  letter-spacing: -0.02em;
}

.v13-overview-card span,
.v13-route-card span,
.v13-store-summary-card span,
.v13-service-journey-card span,
.v13-payment-step span {
  display: block;
  color: var(--v13-muted);
  font-size: 12px;
  font-weight: 850;
}

.v13-overview-number {
  color: #0f172a;
  font-size: 24px;
  font-weight: 950;
}

.v13-route-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.v13-route-card {
  padding: 20px;
  color: inherit;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.96);
  border-radius: 22px;
  box-shadow: 0 12px 30px rgba(15,23,42,0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.v13-route-card:hover,
.v13-route-card:focus {
  color: inherit;
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 24px 54px rgba(37,99,235,0.13);
  transform: translateY(-4px);
}

.v13-route-card em {
  display: inline-grid;
  width: 32px;
  height: 32px;
  margin-bottom: 18px;
  place-items: center;
  color: #1d4ed8;
  background: #eff6ff;
  border-radius: 12px;
  font-style: normal;
  font-weight: 950;
}

.v13-route-card b {
  display: inline-flex;
  margin-top: 14px;
  color: var(--v13-orange);
  font-size: 12px;
  font-weight: 950;
}

.v13-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  margin: 34px 0 16px;
}

.v13-section-heading h2 {
  margin: 0;
  color: #0f172a;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  font-weight: 950;
  letter-spacing: -0.04em;
}

.v13-section-heading p {
  max-width: 680px;
  margin: 6px 0 0;
  color: var(--v13-muted);
  line-height: 1.65;
}

.v13-store-command {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: stretch;
  margin: 20px 0 28px;
}

.v13-store-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.v13-store-summary-card {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.94);
  border-radius: 22px;
  box-shadow: var(--v13-shadow-soft);
}

.v13-store-summary-card strong {
  margin-top: 6px;
  font-size: 24px;
}

.v13-store-advisor {
  display: grid;
  min-width: 280px;
  align-content: center;
  padding: 20px;
  color: #fff;
  background: var(--v13-gradient);
  border-radius: 24px;
  box-shadow: var(--v13-shadow);
}

.v13-store-advisor span {
  color: rgba(255,255,255,0.68);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v13-store-advisor strong {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 950;
}

.v13-store-advisor small {
  margin-top: 8px;
  color: rgba(255,255,255,0.68);
}

.premium-store-card,
.service-detail-hero,
.course-learning-card,
.dashboard-section,
.admin-panel-section,
.admin-stat-card,
.payment-item-card,
.payment-summary-card,
.legal-card,
.payment-approval-form,
.users-filter-card {
  box-shadow: var(--v13-shadow-soft) !important;
}

.premium-store-card,
.course-learning-card,
.student-course-item,
.payment-item-card,
.admin-content-table tbody tr,
.users-risk-item,
.ops-alert-item {
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.premium-store-card:hover,
.course-learning-card:hover,
.student-course-item:hover,
.payment-item-card:hover,
.users-risk-item:hover,
.ops-alert-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 60px rgba(15, 23, 42, 0.12) !important;
}

.v13-service-journey {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.v13-service-journey-card {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.94);
  border-radius: 22px;
  box-shadow: var(--v13-shadow-soft);
}

.v13-service-journey-card em {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 6px 10px;
  color: #1e40af;
  background: #dbeafe;
  border-radius: 999px;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
}

.v13-learning-command {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 22px;
  margin-bottom: 26px;
  padding: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 92% 10%, rgba(249,115,22,0.22), transparent 18rem),
    linear-gradient(135deg, #071827 0%, #10243e 46%, #1d4ed8 100%);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 28px;
  box-shadow: var(--v13-shadow);
}

.v13-learning-command h1 {
  margin: 0;
  font-size: clamp(1.85rem, 3vw, 3.1rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.v13-learning-command p {
  max-width: 760px;
  margin: 12px 0 0;
  color: rgba(255,255,255,0.76);
  line-height: 1.75;
}

.v13-learning-command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.v13-learning-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.v13-learning-summary div {
  padding: 16px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 18px;
}

.v13-learning-summary span {
  display: block;
  color: rgba(255,255,255,0.62);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v13-learning-summary strong {
  display: block;
  margin-top: 6px;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
}

.v13-course-map {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr) auto;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
  padding: 16px;
  background: #f8fafc;
  border: 1px solid rgba(226,232,240,0.92);
  border-radius: 18px;
}

.v13-course-map .progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
}

.v13-course-map .progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--v13-blue), var(--v13-green));
}

.v13-payment-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 24px;
}

.v13-payment-step {
  padding: 18px;
  background: #fff;
  border: 1px solid rgba(226,232,240,0.94);
  border-radius: 22px;
  box-shadow: var(--v13-shadow-soft);
}

.v13-payment-step em {
  display: inline-grid;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--v13-orange), var(--v13-gold));
  border-radius: 12px;
  font-style: normal;
  font-weight: 950;
}

.v13-table-tools {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 12px;
}

.v13-density-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  color: #334155;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

body.v13-compact-tables .admin-content-table td,
body.v13-compact-tables .admin-content-table th {
  padding-top: 0.55rem !important;
  padding-bottom: 0.55rem !important;
}

.v13-footer-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0 8px;
}

.v13-footer-trust-item {
  padding: 16px;
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 18px;
}

.v13-footer-trust-item span {
  display: block;
  color: rgba(255,255,255,0.56);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.v13-footer-trust-item strong {
  display: block;
  margin-top: 4px;
  color: #fff;
  font-weight: 950;
}

.reveal-ready {
  transform: translateY(18px);
  opacity: 0;
}

.reveal-ready.is-visible {
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.55s ease, opacity 0.55s ease;
}

.v13-route-card.reveal-ready:nth-child(2),
.v13-store-summary-card.reveal-ready:nth-child(2),
.v13-service-journey-card.reveal-ready:nth-child(2) { transition-delay: 0.05s; }
.v13-route-card.reveal-ready:nth-child(3),
.v13-store-summary-card.reveal-ready:nth-child(3),
.v13-service-journey-card.reveal-ready:nth-child(3) { transition-delay: 0.1s; }
.v13-route-card.reveal-ready:nth-child(4),
.v13-store-summary-card.reveal-ready:nth-child(4),
.v13-service-journey-card.reveal-ready:nth-child(4) { transition-delay: 0.15s; }

@media (max-width: 1199.98px) {
  .v13-route-grid,
  .v13-store-summary-grid,
  .v13-service-journey,
  .v13-footer-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .v13-store-command,
  .v13-executive-overview,
  .v13-learning-command {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 991.98px) {
  .v13-command-strip {
    position: static;
  }

  .v13-command-strip-inner {
    align-items: stretch;
    flex-direction: column;
  }

  .v13-command-links {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
    flex-wrap: nowrap;
  }

  .v13-command-link {
    white-space: nowrap;
  }

  .v13-executive-status-grid,
  .v13-payment-steps {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .v13-route-grid,
  .v13-store-summary-grid,
  .v13-service-journey,
  .v13-learning-summary,
  .v13-footer-trust {
    grid-template-columns: 1fr;
  }

  .v13-executive-panel,
  .v13-learning-command {
    padding: 22px;
    border-radius: 22px;
  }

  .v13-course-map {
    grid-template-columns: 1fr;
  }

  .v13-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .v13-store-advisor {
    min-width: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}
