:root {
  --bg: #f5f7ff;
  --card: #ffffff;
  --ink: #151932;
  --muted: #6d7286;
  --line: #e4e8f3;
  --blue: #2e6cff;
  --cyan: #3fd1e5;
  --purple: #7557f6;
  --green: #28b87a;
  --amber: #f6b51e;
  --shadow: 0 20px 60px rgba(20, 31, 77, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 15px;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  min-height: 70px;
  padding: 0 38px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 21px;
  font-weight: 900;
  justify-self: start;
}

.brand-text span {
  color: var(--blue);
}

.brand-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: transparent;
  overflow: hidden;
}

.brand-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.main-nav {
  display: flex;
  align-items: center;
  justify-self: center;
  gap: 4px;
}

.main-nav a {
  padding: 9px 12px;
  border-radius: 12px;
  color: #3d4055;
  font-size: 14px;
  font-weight: 700;
}

.main-nav a.active,
.main-nav a:hover {
  color: #a66d00;
  background: #fff8df;
}

.main-nav a.admin-link {
  color: #6d3ddc;
  background: #f1eaff;
}

.main-nav i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 5px;
  border-radius: 99px;
  background: var(--amber);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-self: end;
  gap: 12px;
}

.login-link,
.logout-btn {
  border-radius: 14px;
  font-weight: 800;
  font-size: 14px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

.login-link {
  padding: 10px 12px;
  color: #4b5168;
  background: transparent;
}

.logout-btn {
  padding: 10px 17px;
  color: #fff;
  background: var(--blue);
}

.logout-form {
  margin: 0;
}

.user-chip {
  display: inline-flex;
  align-items: center;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: #2c3350;
  font-size: 13px;
  font-weight: 700;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 48px;
  min-height: 340px;
  padding: 58px max(38px, calc((100vw - 1120px) / 2));
  color: #fff;
  background: radial-gradient(circle at 85% 12%, rgba(93, 239, 255, 0.55), transparent 36%),
    linear-gradient(135deg, #1e88a4 0%, #36bed6 100%);
}

.hero h1 {
  max-width: 660px;
  margin: 16px 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.hero p {
  max-width: 560px;
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15.5px;
  line-height: 1.7;
}

.hero-card {
  align-self: center;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.18);
  box-shadow: 0 28px 70px rgba(9, 64, 86, 0.32);
  backdrop-filter: blur(12px);
}

.hero-card div:not(.mini-progress) {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.hero-card strong {
  font-weight: 900;
}

.mini-progress,
.mock-progress {
  height: 10px;
  overflow: hidden;
  margin: 18px 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.3);
}

.mini-progress i,
.mock-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffe040, #ffad00);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow.yellow {
  padding: 8px 16px;
  color: #5d4100;
  background: #ffc400;
}

.eyebrow.pill {
  padding: 8px 14px;
  color: #244194;
  background: #edf0ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 21px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 900;
  transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.hero-actions,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-light {
  color: #17324b;
  background: #fff;
}

.btn-light:hover {
  background: #f1f5f9;
  color: #0b1e3f;
}

.btn-outline {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
  color: #fff;
}

.btn-primary,
.btn-gradient {
  color: #fff;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  box-shadow: 0 12px 28px rgba(46, 108, 255, 0.25);
}

.btn-primary:hover,
.btn-gradient:hover {
  color: #fff;
  filter: brightness(1.05);
  box-shadow: 0 14px 32px rgba(46, 108, 255, 0.3);
}

.btn-soft {
  color: #2a7a8a;
  border-color: #9ed7db;
  background: #fff;
}

.btn-soft:hover {
  color: #fff;
  border-color: #2a9fbd;
  background: linear-gradient(135deg, #2a9fbd, #48d3df);
}

.container {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

.flow-section,
.featured-module,
.pricing,
.modules {
  padding: 42px 0;
  text-align: center;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 18px;
  width: 100%;
  margin: 0 auto 28px;
  padding: 0;
  color: #6c7491;
  background: transparent;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-align: center;
}

.section-label::before,
.section-label::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #d4dbee, transparent);
}

.section-desc {
  max-width: 760px;
  margin: 16px auto 28px;
  color: var(--muted);
  line-height: 1.8;
}

.flow-slider {
  position: relative;
  min-height: 132px;
  margin-top: 26px;
}

.flow-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 22px;
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.flow-grid.active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
}

.flow-card {
  min-height: 122px;
  padding: 22px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  box-shadow: 0 14px 40px rgba(30, 37, 82, 0.06);
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: opacity 0.45s ease, transform 0.45s ease, box-shadow 0.3s ease;
}

.flow-card.step-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.flow-card.success {
  background: linear-gradient(180deg, #ecfff7, #fff);
  border-color: #c9f1df;
}

.step-badge {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  border-radius: 99px;
  background: linear-gradient(135deg, #1c5fb8, #3f8cec);
  font-weight: 900;
}

.flow-card.success .step-badge {
  background: var(--green);
}

.flow-card strong {
  display: block;
  margin-top: 13px;
  color: #2155b3;
  font-size: 24px;
  font-weight: 950;
}

.flow-card p {
  margin: 6px 0 0;
  color: var(--muted);
}

.flow-arrow {
  color: #a9b1c5;
  font-size: 38px;
  font-weight: 300;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.flow-arrow.step-visible {
  opacity: 1;
  transform: translateX(0);
}

.slider-dots {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.slider-dots button {
  width: 24px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: #ccd4e3;
  cursor: pointer;
}

.slider-dots button.active {
  width: 44px;
  background: #2369bd;
}

.featured-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  margin-top: 8px;
  padding: 38px 42px;
  color: #fff;
  text-align: left;
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(86, 158, 255, 0.32), transparent 42%),
    radial-gradient(circle at 0% 100%, rgba(45, 90, 220, 0.28), transparent 50%),
    linear-gradient(135deg, #0c1956 0%, #142574 50%, #1a2f8e 100%);
  box-shadow: 0 30px 80px rgba(10, 19, 70, 0.32);
}

.featured-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0;
}

.featured-card h2 {
  margin: 18px 0 14px;
  font-size: 38px;
  font-weight: 950;
  letter-spacing: -0.6px;
}

.featured-card p {
  margin: 0 0 22px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.75;
  font-size: 14.5px;
}

.featured-body .chip-row {
  margin: 4px 0 26px;
}

.chip-row span {
  padding: 9px 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #e3eaff;
  font-size: 13px;
  font-weight: 700;
}

.featured-body .btn-gradient {
  background: linear-gradient(135deg, #2a78ff, #4cb1ff);
  box-shadow: 0 14px 30px rgba(15, 65, 200, 0.45);
  padding: 0 22px;
  min-height: 46px;
  border-radius: 12px;
}

.mock-window {
  align-self: center;
  width: 100%;
  color: #1f243a;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.mock-window header {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 18px;
  border-bottom: 1px solid #eef1f7;
  background: #fbfcff;
}

.mock-window header .dots {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mock-window header i {
  width: 11px;
  height: 11px;
  border-radius: 99px;
  background: #ff5f56;
  display: inline-block;
}

.mock-window header .dots i:nth-child(2) { background: #ffbd2e; }
.mock-window header .dots i:nth-child(3) { background: #27c93f; }

.mock-window header strong {
  margin-left: auto;
  color: #5c637b;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mock-body {
  padding: 4px 22px 22px;
}

.mock-window dl {
  margin: 0;
}

.mock-window dl div,
.mock-window p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  margin: 0;
  border-bottom: 1px solid #eef1f7;
  font-size: 14px;
}

.mock-window dt,
.mock-window p > span {
  color: #6d7286;
  font-weight: 600;
}

.mock-window dd,
.mock-window p strong {
  margin: 0;
  color: #14193a;
  font-weight: 800;
}

.mock-window p {
  border-bottom: 0;
  padding-bottom: 4px;
}

.mock-progress {
  height: 8px;
  border-radius: 99px;
  background: #e6ecf6;
  overflow: hidden;
  margin: 14px 0 6px;
}

.mock-progress i {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #2a78ff, #58c6ff);
  border-radius: inherit;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  text-align: left;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 20px 18px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--purple);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.18s ease, box-shadow 0.2s ease, border-color 0.18s ease;
}

.price-card:hover {
  transform: translateY(-3px);
  border-color: #cbd5e1;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.price-card.featured {
  transform: translateY(-4px);
  border-color: #70c6dc;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

.price-card.featured:hover {
  transform: translateY(-6px);
}

.price-card.accent-blue { border-top-color: #38a6c7; }
.price-card.accent-green { border-top-color: #32bd82; }
.price-card.accent-gold { border-top-color: #d88a00; }

.plan-icon {
  font-size: 26px;
}

.plan-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  background: var(--purple);
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
}

.accent-blue .plan-tag { background: #2d9fbd; }
.accent-green .plan-tag { background: #3fc487; }
.accent-gold .plan-tag { background: #cf8000; }

.price-card h3 {
  margin: 14px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.price {
  color: #8790a5;
  margin: 0 0 10px;
  line-height: 1.1;
}

.price strong {
  color: #11162d;
  font-size: 30px;
  letter-spacing: -0.8px;
}

.price small {
  font-size: 12px;
}

.price-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  margin: 0 0 10px;
}

.price-card ul {
  display: grid;
  gap: 7px;
  padding: 0;
  margin: 16px 0 20px;
  list-style: none;
}

.price-card li {
  color: #566074;
  font-size: 12.5px;
  line-height: 1.4;
}

.price-card li::before {
  content: "✓";
  display: inline-grid;
  width: 15px;
  height: 15px;
  margin-right: 7px;
  place-items: center;
  color: #2589aa;
  border-radius: 99px;
  background: #e8f7fb;
  font-size: 10px;
  font-weight: 900;
}

.price-card .btn {
  width: 100%;
  min-height: 38px;
  margin-top: auto;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
}

.module-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 24px 0 42px;
  text-align: left;
}

.module-grid.roadmap {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.module-card,
.why-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
}

.module-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: #f0edff;
}

.module-card h3 {
  margin: 18px 0 10px;
}

.module-card small {
  display: inline-flex;
  margin-left: 6px;
  padding: 4px 8px;
  color: #178451;
  border-radius: 999px;
  background: #dff8ea;
  font-size: 11px;
}

.roadmap small {
  color: #7e4fc7;
  background: #f0e7ff;
}

.module-card p,
.why-card p {
  color: var(--muted);
  line-height: 1.75;
}

.why-card {
  text-align: left;
}

.contact-hero {
  padding: 58px 0;
  color: #fff;
  background: radial-gradient(circle at 85% 12%, rgba(63, 209, 229, 0.5), transparent 34%),
    linear-gradient(135deg, #1d3a4a 0%, #2e6cff 100%);
}

.contact-hero-inner h1 {
  max-width: 720px;
  margin: 16px 0 10px;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1.2px;
}

.contact-hero-inner p {
  max-width: 620px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  line-height: 1.75;
}

.contact-section {
  padding: 42px 0 64px;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  margin-bottom: 20px;
}

.contact-card,
.contact-map-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(30, 37, 82, 0.06);
}

.contact-card {
  padding: 26px;
}

.contact-icon {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  background: #edf4ff;
  font-size: 22px;
}

.contact-card h2,
.contact-map-head h2 {
  margin: 18px 0 12px;
}

.contact-list {
  display: grid;
  gap: 18px;
  margin: 0;
}

.contact-list div {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.contact-list dt,
.contact-action span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-list dd {
  margin: 6px 0 0;
  color: #222844;
  font-weight: 800;
}

.contact-actions {
  display: grid;
  gap: 12px;
}

.contact-action {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #f8fbff;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.contact-action:hover {
  transform: translateY(-1px);
  border-color: #9ed7db;
  box-shadow: 0 12px 26px rgba(46, 108, 255, 0.1);
}

.contact-action strong {
  color: #1d3a4a;
  font-size: 16px;
}

.contact-map-card {
  overflow: hidden;
}

.contact-map-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 24px;
}

.contact-map-head h2 {
  margin-bottom: 0;
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  min-height: 360px;
  border: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 48px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

.site-footer div {
  display: flex;
  gap: 16px;
}

code {
  padding: 2px 6px;
  border-radius: 6px;
  background: #f0f2f8;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  width: min(1320px, calc(100% - 48px));
  margin: 32px auto 64px;
}

.admin-sidebar,
.admin-content,
.admin-card,
.metric-card,
.admin-table-card,
.simple-page {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 12px 35px rgba(30, 37, 82, 0.06);
}

.admin-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  display: grid;
  gap: 8px;
  padding: 22px;
}

.admin-sidebar strong {
  margin-bottom: 14px;
  font-size: 20px;
}

.admin-sidebar a {
  padding: 12px 14px;
  border-radius: 12px;
  color: #525b72;
  font-weight: 800;
}

.admin-sidebar a.active,
.admin-sidebar a:hover {
  color: #1d4ed8;
  background: #edf4ff;
}

.admin-content {
  padding: 30px;
}

.admin-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.admin-head h1,
.simple-page h1 {
  margin: 14px 0 8px;
  font-size: 42px;
}

.admin-head p,
.simple-page p {
  color: var(--muted);
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.metric-card {
  padding: 22px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin-top: 12px;
  font-size: 34px;
}

.tone-blue strong { color: var(--blue); }
.tone-amber strong { color: var(--amber); }
.tone-green strong { color: var(--green); }
.tone-purple strong { color: var(--purple); }

.admin-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.admin-card {
  padding: 24px;
}

.admin-card span,
.status {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  color: #6c4b00;
  background: #fff3c4;
  font-size: 12px;
  font-weight: 900;
}

.admin-card h2 {
  margin: 16px 0 8px;
}

.admin-card p {
  color: var(--muted);
  line-height: 1.7;
}

.admin-table-card {
  margin-top: 24px;
  padding: 24px;
}

.admin-table-card table {
  width: 100%;
  margin-top: 18px;
  border-collapse: collapse;
}

.admin-table-card th,
.admin-table-card td {
  padding: 15px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.admin-table-card th {
  color: #677088;
  font-size: 13px;
  text-transform: uppercase;
}

.status.ready {
  color: #11643f;
  background: #dff8ea;
}

.simple-page {
  min-height: 420px;
  margin-top: 48px;
  padding: 54px;
}

/* ==== Admin Dashboard (yeni tasarim) ==== */
.admin-page {
  background: #f5f7ff;
}

.admin-hero {
  padding: 36px max(38px, calc((100vw - 1320px) / 2)) 110px;
  background: radial-gradient(circle at 90% 0%, rgba(127, 100, 255, 0.45), transparent 38%),
    linear-gradient(135deg, #4f3dd0 0%, #6a45e0 60%, #7d4fff 100%);
  color: #fff;
}

.admin-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.admin-hero-badge {
  display: inline-flex;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-hero h1 {
  margin: 14px 0 10px;
  font-size: 40px;
  letter-spacing: -1px;
}

.admin-hero p {
  margin: 0 0 26px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 15px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.admin-tab {
  padding: 10px 18px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.admin-tab:hover {
  background: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.admin-tab.active {
  background: #fff;
  color: #4934c4;
  border-color: #fff;
}

.admin-wrap {
  width: min(1280px, calc(100% - 48px));
  margin: -78px auto 64px;
  display: grid;
  gap: 22px;
}

.admin-metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.admin-metric-card {
  padding: 22px 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 40px rgba(30, 37, 82, 0.08);
}

.admin-metric-card .metric-label {
  display: block;
  font-size: 11.5px;
  font-weight: 900;
  color: #8790a5;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.admin-metric-card .metric-value {
  display: block;
  margin: 10px 0 6px;
  font-size: 38px;
  font-weight: 950;
  color: #1a1f3d;
  line-height: 1;
}

.admin-metric-card .metric-desc {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.admin-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr;
  gap: 18px;
}

.admin-panel {
  padding: 24px 26px;
  border-radius: 18px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 14px 36px rgba(30, 37, 82, 0.06);
  min-height: 360px;
}

.panel-title {
  margin: 0 0 16px;
  font-size: 18px;
  color: #1a1f3d;
}

.panel-big-number {
  margin: 18px 0 10px;
  font-size: 50px;
  font-weight: 950;
  letter-spacing: -1.5px;
  background: linear-gradient(120deg, #5a3ad8, #8b5dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-big-number small {
  font-size: 22px;
  font-weight: 800;
  color: #5a3ad8;
  -webkit-text-fill-color: #5a3ad8;
}

.panel-big-number.percent {
  background: linear-gradient(120deg, #2a8cff, #4dd0e1);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel-desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.7;
  margin: 8px 0 0;
}

.success-bar {
  height: 8px;
  border-radius: 99px;
  background: #e8edff;
  overflow: hidden;
  margin-top: 16px;
}

.success-bar i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #2a8cff, #4dd0e1);
  border-radius: inherit;
}

.quick-access .quick-list {
  display: grid;
  gap: 10px;
}

.quick-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 12px;
  background: #f4f6ff;
  color: #2c3350;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.quick-link:hover {
  background: #e6ecff;
  transform: translateX(2px);
}

.quick-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #fff;
  font-size: 16px;
}

@media (max-width: 1100px) {
  .admin-grid-3 { grid-template-columns: 1fr 1fr; }
  .quick-access { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .admin-hero { padding: 28px 20px 90px; }
  .admin-hero h1 { font-size: 30px; }
  .admin-metric-grid { grid-template-columns: 1fr 1fr; }
  .admin-grid-3 { grid-template-columns: 1fr; }
  .admin-wrap { width: calc(100% - 24px); }
}

/* ==== Auth pages ==== */
.auth-shell {
  display: grid;
  place-items: center;
  padding: 60px 20px;
  min-height: calc(100vh - 200px);
  background: radial-gradient(circle at 50% -10%, rgba(124, 99, 255, 0.18), transparent 45%);
}

.auth-card {
  width: 100%;
  max-width: 460px;
  padding: 40px 36px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgba(20, 31, 77, 0.12);
}

.auth-card h1 {
  margin: 14px 0 10px;
  font-size: 28px;
  letter-spacing: -0.5px;
}

.auth-card > p {
  color: var(--muted);
  margin: 0 0 22px;
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.auth-form label {
  display: grid;
  gap: 6px;
}

.auth-form label span {
  font-size: 12.5px;
  font-weight: 800;
  color: #4b5168;
  letter-spacing: 0.04em;
}

.auth-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fafbff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.auth-form input:focus {
  outline: none;
  border-color: #7c63ff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(124, 99, 255, 0.16);
}

.auth-submit {
  width: 100%;
  margin-top: 6px;
}

.auth-footer {
  margin: 22px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.auth-footer a {
  color: var(--blue);
  font-weight: 800;
}

.auth-alert {
  padding: 12px 14px;
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 13.5px;
  font-weight: 700;
}

.auth-alert.error {
  background: #fff0f0;
  color: #b51e2c;
  border: 1px solid #fdd7d7;
}

.auth-alert.success {
  background: #ecfff5;
  color: #0a6b3a;
  border: 1px solid #b9efd2;
}

/* ---- Admin slim hero (sub pages) ---- */
.admin-hero-slim {
  padding: 28px max(38px, calc((100vw - 1320px) / 2)) 90px;
}

.admin-hero-slim h1 {
  font-size: 32px;
  margin-bottom: 6px;
}

.admin-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.78);
}

.admin-breadcrumb a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

.admin-breadcrumb a:hover { color: #fff; }
.admin-breadcrumb strong { color: #fff; font-weight: 800; }

/* ---- Panel head (table headings with action) ---- */
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
  gap: 12px;
}

.panel-head .panel-title { margin: 0; }

/* ---- Data tables ---- */
.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}

.data-table th {
  color: #677088;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #f7f9ff;
}

.data-table tbody tr:hover {
  background: #fafbff;
}

.data-table .empty {
  text-align: center;
  color: var(--muted);
  padding: 28px;
}

.row-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.btn-mini {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: #2a3357;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.btn-mini:hover {
  background: #eef2ff;
  border-color: #c7d0f5;
}

.btn-mini.danger {
  color: #b51e2c;
  border-color: #fbcfd5;
  background: #fff5f6;
}

.btn-mini.danger:hover {
  background: #ffe1e4;
  border-color: #f6a3ad;
}

.status.danger {
  background: #ffe1e4;
  color: #a01622;
}

/* ---- Filter bar ---- */
.filter-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.filter-bar input,
.filter-bar select {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
}

.filter-bar input:focus,
.filter-bar select:focus {
  outline: none;
  border-color: #7c63ff;
  box-shadow: 0 0 0 3px rgba(124, 99, 255, 0.14);
}

.filter-bar input[type="search"] { min-width: 280px; }

/* ---- Form helpers ---- */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.checkbox-row {
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px;
  font-weight: 700;
}

.checkbox-row input { width: 16px; height: 16px; }
.checkbox-row span { display: inline; }

@media (max-width: 1100px) {
  .site-header {
    grid-template-columns: auto auto;
    grid-template-areas: "brand actions" "nav nav";
    padding: 16px 24px;
    row-gap: 14px;
  }

  .brand { grid-area: brand; justify-self: start; }
  .header-actions { grid-area: actions; justify-self: end; }
  .main-nav {
    grid-area: nav;
    width: 100%;
    overflow-x: auto;
    justify-self: start;
  }

  .hero,
  .featured-card,
  .contact-grid,
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .pricing-grid,
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .flow-slider {
    min-height: 560px;
  }

  .flow-arrow {
    display: none;
  }

  .admin-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 56px 24px;
  }

  .header-actions {
    width: 100%;
  }

  .pricing-grid,
  .module-grid,
  .module-grid.roadmap,
  .admin-section-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: block;
  }

  .contact-map-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
