:root {
  --bg: #0b1220;
  --bg2: #111827;
  --card: #ffffff;
  --muted: #64748b;
  --text: #111827;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --gold: #fbbf24;
  --line: #e5e7eb;
  --soft: #f8fafc;
  --danger: #dc2626;
  --ok: #059669;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Inter, Arial, Helvetica, sans-serif;
  background: #ffffff;
  color: var(--text);
  line-height: 1.55;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.site-header.compact {
  position: relative;
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand), #0f766e);
  color: #ffffff;
  font-weight: 900;
  letter-spacing: -0.04em;
}

/* Gerçek logo kullanımı: assets/img/logo.png
   Not: .logo img seçicisi özellikle eklendi; img etiketi class almasa bile header logosu taşmaz. */
.logo img,
.site-header .logo img,
img.site-logo,
.site-logo {
  width: 72px !important;
  height: 72px !important;
  max-width: 72px !important;
  max-height: 72px !important;
  object-fit: contain;
  display: block;
  flex: 0 0 72px;
}

.site-logo.wide-logo,
.logo img.wide-logo {
  width: 190px !important;
  height: auto !important;
  max-width: 190px !important;
  max-height: 72px !important;
  object-fit: contain;
  flex: 0 0 auto;
}

.logo strong {
  display: block;
  color: #111827;
  font-size: 16px;
  line-height: 1.1;
  white-space: nowrap;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 1px;
  white-space: nowrap;
}

.nav nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav nav a {
  text-decoration: none;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

/* Hero */
.hero {
  background:
    radial-gradient(circle at 82% 20%, rgba(22, 163, 74, 0.35), transparent 28%),
    linear-gradient(135deg, #07111f, #132238 58%, #082f27);
  color: #ffffff;
  padding: 78px 0;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #16a34a;
  background: #dcfce7;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 800;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hero .eyebrow {
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.14);
  border-color: rgba(187, 247, 208, 0.28);
}

h1,
h2,
h3 {
  line-height: 1.08;
  margin: 0 0 14px;
}

.hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  letter-spacing: -0.06em;
}

.hero p {
  font-size: 19px;
  color: #d1d5db;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 13px 18px;
  font-weight: 900;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 15px;
  font-family: inherit;
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(22, 163, 74, 0.28);
}

.btn.ghost {
  background: #ffffff;
  color: #111827;
  border-color: var(--line);
}

.hero .btn.ghost {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
}

.btn.wide {
  width: 100%;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.trust-row span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  color: #e5e7eb;
}

.hero-visual {
  filter: drop-shadow(0 30px 80px rgba(0, 0, 0, 0.35));
}

/* Strip */
.strip {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.strip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 24px 0;
}

.strip-grid div {
  padding: 18px 20px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 20px;
}

.strip-grid strong {
  display: block;
  margin-bottom: 4px;
}

.strip-grid span {
  color: var(--muted);
  font-size: 14px;
}

/* Sections */
.section {
  padding: 76px 0;
}

.section.alt {
  background: #f8fafc;
}

.section-head {
  text-align: center;
  margin: 0 auto 34px;
  max-width: 730px;
}

.section-head.left {
  text-align: left;
  margin: 0;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 46px);
  letter-spacing: -0.04em;
  margin-top: 14px;
}

.section-head p {
  color: var(--muted);
}

/* Order */
.order-layout {
  display: grid;
  grid-template-columns: 1fr 390px;
  gap: 26px;
  align-items: start;
}

.packages {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.package-card {
  position: relative;
  display: block;
  border: 2px solid var(--line);
  border-radius: 26px;
  background: #ffffff;
  padding: 22px;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover,
.package-card.selected,
.package-card.active,
.package-card.is-selected {
  border-color: var(--brand);
  transform: translateY(-2px);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.1);
}

.package-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.package-card img {
  height: 120px;
  width: 100%;
  object-fit: contain;
  margin-bottom: 14px;
}

.package-card .badge {
  position: absolute;
  right: 18px;
  top: 18px;
  background: #fef3c7;
  color: #92400e;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 900;
}

.package-card .tag {
  font-weight: 900;
  color: var(--brand);
  font-size: 13px;
}

.package-card h3 {
  font-size: 24px;
  margin-top: 8px;
}

.duration {
  color: #475569;
  margin: 0 0 10px;
}

.price {
  font-size: 30px;
  font-weight: 950;
  letter-spacing: -0.04em;
  margin: 14px 0 4px;
}

.price small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0;
}

.tax-note {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
}

.package-card ul {
  padding-left: 18px;
  margin: 0;
}

.package-card li {
  margin: 8px 0;
  color: #334155;
}

.checkout-panel {
  position: sticky;
  top: 96px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.checkout-panel h3 {
  font-size: 24px;
}

.addon-card {
  background: linear-gradient(135deg, #f0fdf4, #ecfeff);
  border: 1px solid #bbf7d0;
  border-radius: 20px;
  padding: 16px;
  margin: 16px 0;
}

.addon-card p {
  font-size: 13px;
  color: #475569;
  margin: 8px 0 0;
}

/* Forms */
.form-grid {
  display: grid;
  gap: 12px;
}

.form-grid label {
  font-weight: 800;
  font-size: 13px;
  color: #334155;
}

.form-grid input,
.form-grid textarea {
  width: 100%;
  margin-top: 6px;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 12px 13px;
  font: inherit;
  background: #ffffff;
}

.form-grid textarea {
  min-height: 78px;
  resize: vertical;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px;
  margin: 18px 0;
  background: #f8fafc;
}

.summary-box div {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
}

.summary-box div:last-child {
  border-bottom: 0;
}

.summary-box span {
  color: #64748b;
}

.summary-box .total {
  font-size: 20px;
  color: #111827;
}

.check-line {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: #334155;
  margin: 12px 0;
}

.check-line input {
  margin-top: 4px;
}

.check-line.strong {
  font-weight: 900;
  color: #111827;
}

.check-line small {
  display: block;
  color: #475569;
  font-weight: 700;
}

.micro-copy {
  font-size: 12px;
  color: #64748b;
}

/* Process */
.process-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: start;
}

.steps {
  display: grid;
  gap: 14px;
}

.steps div {
  display: grid;
  grid-template-columns: 58px 1fr;
  gap: 4px 14px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px;
}

.steps span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: #dcfce7;
  color: #15803d;
  font-weight: 950;
}

.steps strong {
  font-size: 18px;
}

.steps p {
  margin: 0;
  color: #64748b;
}

/* Legal */
.legal-block {
  background: #0f172a;
  color: #ffffff;
}

.legal-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: center;
}

.legal-grid h2 {
  font-size: 38px;
}

.legal-grid p {
  color: #cbd5e1;
}

/* Footer */
.site-footer {
  background: #020617;
  color: #cbd5e1;
  padding: 28px 0;
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.footer-grid strong,
.footer-grid span {
  display: block;
}

.footer-grid a {
  color: #ffffff;
}

.footer-grid > div {
  min-width: 0;
}

.footer-company {
  flex: 1 1 auto;
}

.footer-contact {
  flex: 0 1 320px;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 5px;
  text-align: left;
}

.footer-contact-title {
  margin-bottom: 2px;
}

.footer-contact-link {
  display: block;
  max-width: 100%;
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: break-word;
  text-decoration: none;
}

.footer-contact-link:hover {
  text-decoration: underline;
}

/* Notice pages */
.center-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f8fafc;
  padding: 24px;
}

.notice {
  max-width: 720px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px;
  text-align: center;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.12);
}

.notice img {
  height: 160px;
  margin: 0 auto 10px;
}

.notice h1 {
  font-size: 38px;
}

.notice.error {
  border-color: #fecaca;
}

.notice.success {
  border-color: #bbf7d0;
}

.notice-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}

/* Payment */
.payment-page {
  background: #f8fafc;
  min-height: calc(100vh - 76px);
  padding: 36px 0;
}

.payment-grid {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 24px;
}

.payment-summary,
.legacy-payment-frame-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.payment-summary h1 {
  font-size: 26px;
  margin-top: 12px;
}

/* Document */
.doc-body {
  background: #e5e7eb;
}

.doc-toolbar {
  position: sticky;
  top: 0;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  z-index: 20;
}

.document {
  width: min(960px, calc(100% - 28px));
  margin: 26px auto;
  background: #ffffff;
  padding: 44px;
  border-radius: 12px;
  box-shadow: 0 18px 70px rgba(15, 23, 42, 0.18);
}

.doc-header {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 3px solid #111827;
  padding-bottom: 24px;
  margin-bottom: 24px;
}

.doc-header h1 {
  font-size: 30px;
}

.doc-meta {
  text-align: right;
  display: grid;
  gap: 6px;
}

.doc-section {
  margin: 24px 0;
}

.doc-section h2 {
  font-size: 20px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  background: #ffffff;
}

.doc-table th,
.doc-table td {
  border: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

.doc-table th {
  background: #f8fafc;
}

.doc-table tfoot td {
  font-weight: 900;
}

.doc-table tfoot tr:last-child td {
  font-size: 18px;
  background: #ecfdf5;
}

.small-print {
  font-size: 13px;
  color: #334155;
}

/* Admin */
.admin-page {
  padding: 32px;
  overflow: auto;
}

/* Responsive */
@media (max-width: 980px) {
  .hero-grid,
  .order-layout,
  .process-grid,
  .legal-grid,
  .payment-grid {
    grid-template-columns: 1fr;
  }

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

  .checkout-panel {
    position: relative;
    top: auto;
  }

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

  .nav nav {
    display: none;
  }

  .doc-header,
  .two-col {
    display: block;
  }

  .doc-meta {
    text-align: left;
    margin-top: 18px;
  }

  .footer-grid {
    display: block;
  }

  .footer-contact {
    margin-top: 18px;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 22px, 1180px);
  }

  .nav {
    min-height: 68px;
  }

  .logo strong {
    font-size: 14px;
  }

  .logo small {
    font-size: 11px;
  }

  .logo img,
  .site-header .logo img,
  img.site-logo,
  .site-logo {
    width: 56px !important;
    height: 56px !important;
    max-width: 56px !important;
    max-height: 56px !important;
    flex-basis: 56px;
  }

  .site-logo.wide-logo,
  .logo img.wide-logo {
    width: 170px !important;
    height: auto !important;
    max-width: 170px !important;
    max-height: 54px !important;
  }

  .hero {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: 38px;
  }

  .hero p {
    font-size: 17px;
  }

  .section {
    padding: 54px 0;
  }

  .document {
    padding: 24px;
  }
}

/* Print */
@media print {
  .no-print,
  .site-header,
  .site-footer {
    display: none !important;
  }

  .doc-body {
    background: #ffffff;
  }

  .document {
    width: 100%;
    margin: 0;
    padding: 0;
    box-shadow: none;
    border-radius: 0;
  }

  .doc-table th,
  .doc-table td {
    padding: 8px;
  }

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

/* Version 2: sales cards, consent reader and secure admin */
[hidden] {
  display: none !important;
}

button,
input,
textarea,
select {
  font: inherit;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.32);
  outline-offset: 3px;
}

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  filter: grayscale(0.25);
}

.btn.small {
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
}

.site-header.compact .site-logo {
  width: 56px !important;
  height: 56px !important;
  max-width: 56px !important;
  max-height: 56px !important;
  flex-basis: 56px;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  border-radius: 30px;
  box-shadow: 0 36px 90px rgba(0, 0, 0, 0.34);
}

.hero-result-card {
  position: absolute;
  left: -24px;
  bottom: 24px;
  display: grid;
  gap: 2px;
  min-width: 260px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.93);
  color: #0f172a;
  box-shadow: 0 18px 45px rgba(2, 6, 23, 0.25);
  backdrop-filter: blur(10px);
}

.hero-result-card strong {
  font-size: 16px;
}

.hero-result-card span {
  color: #475569;
  font-size: 13px;
  font-weight: 800;
}

.package-card {
  overflow: hidden;
  padding: 22px;
  border-width: 2px;
  background:
    radial-gradient(circle at 100% 0, rgba(22, 163, 74, 0.1), transparent 32%),
    #ffffff;
}

.package-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #0f766e, #22c55e, #f59e0b);
  opacity: 0.45;
}

.package-card.featured::before,
.package-card.is-selected::before {
  opacity: 1;
}

.package-card.is-selected {
  border-color: #16a34a;
  box-shadow: 0 28px 70px rgba(22, 163, 74, 0.18);
}

.package-card.is-selected .package-cta {
  color: #ffffff;
  background: linear-gradient(135deg, #15803d, #0f766e);
  border-color: transparent;
}

.package-card img {
  height: 142px;
  margin-top: 20px;
  margin-bottom: 16px;
  border-radius: 20px;
}

.package-badge {
  position: absolute;
  top: 17px;
  right: 17px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  color: #78350f;
  background: linear-gradient(135deg, #fef3c7, #fde68a);
  box-shadow: 0 8px 22px rgba(120, 53, 15, 0.14);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.package-card .tag {
  display: inline-block;
  margin-bottom: 6px;
  color: #15803d;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.package-card h3 {
  min-height: 52px;
  font-size: 25px;
}

.sales-copy {
  min-height: 66px;
  margin: 0 0 12px;
  color: #475569;
  font-size: 14px;
}

.official-package-name {
  display: inline-flex;
  margin: 0;
  padding: 6px 9px;
  border-radius: 9px;
  color: #334155;
  background: #f1f5f9;
  font-size: 11px;
  font-weight: 800;
}

.package-card ul {
  min-height: 170px;
}

.package-card li::marker {
  color: #16a34a;
}

.package-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid #bbf7d0;
  border-radius: 13px;
  color: #166534;
  background: #f0fdf4;
  font-size: 13px;
  font-weight: 950;
  transition: 0.2s ease;
}

.checkout-heading p {
  margin: -5px 0 0;
  color: #64748b;
  font-size: 13px;
}

.checkout-heading .eyebrow {
  margin-bottom: 10px;
}

.form-grid input:focus,
.form-grid textarea:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-filter-form input:focus,
.admin-filter-form select:focus {
  border-color: #16a34a;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.1);
  outline: 0;
}

.consents {
  padding: 16px;
  border: 1px solid #dbe4ee;
  border-radius: 20px;
  background: #f8fafc;
}

.consent-head {
  display: grid;
  gap: 3px;
  padding-bottom: 12px;
  border-bottom: 1px solid #e2e8f0;
}

.consent-head strong {
  color: #0f172a;
  font-size: 14px;
}

.consent-head span {
  color: #64748b;
  font-size: 12px;
}

.consent-row {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 10px;
  align-items: start;
  margin-top: 11px;
  padding: 11px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #ffffff;
  transition: 0.2s ease;
}

.consent-row.is-approved {
  border-color: #86efac;
  background: #f0fdf4;
}

.consent-row.needs-attention {
  border-color: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.consent-checkbox {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.consent-state {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: 1px;
  border: 2px solid #cbd5e1;
  border-radius: 8px;
  color: transparent;
  background: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.consent-row.is-approved .consent-state {
  border-color: #16a34a;
  color: #ffffff;
  background: #16a34a;
}

.consent-row p {
  margin: 0;
  color: #475569;
  font-size: 12.5px;
}

.consent-link {
  display: inline;
  padding: 0;
  border: 0;
  color: #0f766e;
  background: none;
  cursor: pointer;
  font-weight: 900;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.consent-link:hover {
  color: #15803d;
}

.consent-progress {
  margin: 13px 2px 0;
  color: #475569;
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.checkout-submit {
  margin-top: 14px;
}

.secure-copy {
  padding-left: 24px;
  background: linear-gradient(90deg, #dcfce7 0 16px, transparent 16px);
}

.modal-open {
  overflow: hidden;
}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 20px;
}

.legal-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.74);
  backdrop-filter: blur(5px);
}

.legal-modal-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(860px, 100%);
  max-height: min(86vh, 840px);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: #ffffff;
  box-shadow: 0 40px 120px rgba(2, 6, 23, 0.5);
}

.legal-modal-header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #e2e8f0;
}

.legal-modal-header h2 {
  margin-top: 10px;
  margin-bottom: 5px;
  font-size: 27px;
}

.legal-modal-header p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.modal-close {
  display: grid;
  place-items: center;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #334155;
  background: #f8fafc;
  cursor: pointer;
  font-size: 25px;
  line-height: 1;
}

.legal-modal-scroll {
  overflow-y: auto;
  padding: 24px;
  scroll-behavior: smooth;
}

.legal-text-content {
  color: #334155;
}

.legal-text-content .legal-intro {
  padding: 14px 16px;
  border-left: 4px solid #16a34a;
  border-radius: 0 12px 12px 0;
  background: #f0fdf4;
  color: #166534;
  font-weight: 750;
}

.legal-text-content section {
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
}

.legal-text-content section:last-child {
  border-bottom: 0;
}

.legal-text-content h3 {
  margin-bottom: 8px;
  color: #0f172a;
  font-size: 18px;
}

.legal-text-content p {
  margin: 8px 0;
}

.legal-modal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 24px;
  border-top: 1px solid #e2e8f0;
  background: #f8fafc;
}

.legal-modal-footer span {
  color: #64748b;
  font-size: 12px;
  font-weight: 750;
}

.legacy-payment-frame {
  width: 100%;
  min-height: 700px;
  border: 0;
}

/* Secure admin */
.admin-body,
.admin-login-body {
  min-height: 100vh;
  background: #eef3f8;
}

.admin-login-body {
  background:
    radial-gradient(circle at 15% 20%, rgba(34, 197, 94, 0.22), transparent 28%),
    radial-gradient(circle at 85% 80%, rgba(14, 116, 144, 0.22), transparent 30%),
    #07111f;
}

.admin-login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.admin-login-card {
  width: min(480px, 100%);
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 28px;
  background: #ffffff;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.38);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  text-decoration: none;
}

.admin-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 14px;
}

.admin-brand strong,
.admin-brand small {
  display: block;
}

.admin-brand small {
  color: #64748b;
  font-size: 12px;
}

.admin-brand.compact img {
  width: 46px;
  height: 46px;
}

.admin-login-copy {
  margin: 28px 0 20px;
}

.admin-login-copy h1 {
  margin-top: 12px;
  font-size: 34px;
}

.admin-login-copy p {
  color: #64748b;
}

.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 80;
  display: grid;
  grid-template-columns: minmax(230px, 1fr) auto minmax(230px, 1fr);
  align-items: center;
  gap: 22px;
  min-height: 76px;
  padding: 10px max(22px, calc((100vw - 1380px) / 2));
  border-bottom: 1px solid #dbe4ee;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
}

.admin-topbar nav {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #f8fafc;
}

.admin-topbar nav a {
  padding: 8px 12px;
  border-radius: 10px;
  color: #475569;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.admin-topbar nav a.active,
.admin-topbar nav a:hover {
  color: #166534;
  background: #dcfce7;
}

.admin-user {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.admin-user > span {
  color: #475569;
  font-size: 13px;
  font-weight: 850;
}

.admin-container {
  width: min(1380px, calc(100% - 36px));
  margin: 0 auto;
  padding: 34px 0 60px;
}

.admin-container.narrow {
  width: min(720px, calc(100% - 32px));
}

.admin-page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.admin-page-head h1 {
  margin-top: 12px;
  font-size: clamp(34px, 4vw, 52px);
  letter-spacing: -0.045em;
}

.admin-page-head p {
  max-width: 760px;
  margin: 0;
  color: #64748b;
}

.admin-security-chip {
  flex: 0 0 auto;
  padding: 10px 13px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  color: #166534;
  background: #f0fdf4;
  font-size: 12px;
  font-weight: 900;
}

.admin-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}

.admin-metrics article {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid #dbe4ee;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.admin-metrics span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.admin-metrics strong {
  color: #0f172a;
  font-size: 27px;
}

.admin-panel {
  margin-bottom: 18px;
  padding: 22px;
  border: 1px solid #dbe4ee;
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.05);
}

.admin-panel h1,
.admin-panel h2 {
  color: #0f172a;
}

.admin-filter-form {
  display: grid;
  grid-template-columns: minmax(250px, 1.5fr) minmax(180px, 0.7fr) minmax(210px, 0.8fr) auto auto;
  align-items: end;
  gap: 12px;
}

.admin-filter-form label,
.admin-form label {
  display: grid;
  gap: 6px;
  color: #334155;
  font-size: 12px;
  font-weight: 900;
}

.admin-filter-form input,
.admin-filter-form select,
.admin-form input,
.admin-form select,
.admin-form textarea {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 13px;
  padding: 11px 12px;
  color: #0f172a;
  background: #ffffff;
}

.admin-form {
  display: grid;
  gap: 14px;
}

.admin-form textarea {
  min-height: 125px;
  resize: vertical;
}

.admin-table-head,
.panel-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.admin-table-head h2,
.panel-title h2 {
  margin: 0;
  font-size: 20px;
}

.admin-table-head span,
.panel-title > span {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.table-panel {
  padding: 0;
  overflow: hidden;
}

.table-panel .admin-table-head {
  padding: 20px 22px 4px;
}

.admin-table-wrap {
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  min-width: 1080px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 15px 14px;
  border-top: 1px solid #edf2f7;
  text-align: left;
  vertical-align: middle;
}

.admin-table th {
  color: #64748b;
  background: #f8fafc;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.035em;
}

.admin-table td {
  color: #334155;
  font-size: 13px;
}

.admin-table td strong,
.admin-table td small {
  display: block;
}

.admin-table td small {
  max-width: 250px;
  margin-top: 3px;
  overflow: hidden;
  color: #64748b;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-table tbody tr:hover {
  background: #fbfefc;
}

.empty-cell,
.empty-note {
  padding: 28px !important;
  color: #64748b;
  text-align: center !important;
}

.status-pill,
.workflow-pill,
.request-dot {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-paid {
  color: #166534;
  background: #dcfce7;
}

.status-pending {
  color: #92400e;
  background: #fef3c7;
}

.status-failed,
.status-token_failed {
  color: #991b1b;
  background: #fee2e2;
}

.workflow-pill {
  color: #1e3a8a;
  background: #dbeafe;
}

.request-dot {
  margin-top: 6px;
  color: #6b21a8;
  background: #f3e8ff;
}

.admin-alert {
  margin-bottom: 16px;
  padding: 13px 15px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
}

.admin-alert.error {
  border: 1px solid #fecaca;
  color: #991b1b;
  background: #fef2f2;
}

.admin-alert.success {
  border: 1px solid #bbf7d0;
  color: #166534;
  background: #f0fdf4;
}

.admin-alert.warning {
  border: 1px solid #fde68a;
  color: #92400e;
  background: #fffbeb;
}

.back-link {
  display: block;
  margin-bottom: 12px;
  color: #0f766e;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.order-head-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

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

.admin-detail-grid .admin-panel {
  margin-bottom: 0;
}

.wide-panel {
  grid-column: 1 / -1;
}

.detail-list {
  display: grid;
  gap: 0;
  margin: 0;
}

.detail-list div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding: 11px 0;
  border-bottom: 1px solid #edf2f7;
}

.detail-list div:last-child {
  border-bottom: 0;
}

.detail-list dt {
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.detail-list dd {
  margin: 0;
  color: #0f172a;
  word-break: break-word;
}

.request-grid {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 14px;
}

.request-grid article {
  padding: 16px;
  border: 1px solid #e2e8f0;
  border-radius: 15px;
  background: #f8fafc;
}

.request-grid article > span {
  display: block;
  margin-bottom: 8px;
  color: #64748b;
  font-size: 12px;
  font-weight: 850;
}

.request-grid p {
  margin: 0;
  color: #334155;
}

.consent-audit-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.consent-audit-grid article {
  display: grid;
  gap: 5px;
  padding: 13px;
  border: 1px solid #dbe4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.consent-audit-grid strong {
  min-height: 40px;
  font-size: 12px;
}

.consent-audit-grid span {
  color: #64748b;
  font-size: 10px;
  word-break: break-word;
}

.audit-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
  color: #64748b;
  font-size: 11px;
}

.note-list {
  display: grid;
  gap: 10px;
  max-height: 430px;
  overflow-y: auto;
}

.note-list article {
  padding: 13px;
  border: 1px solid #e2e8f0;
  border-radius: 13px;
  background: #f8fafc;
}

.note-list p {
  margin: 0 0 7px;
  color: #334155;
}

.note-list small {
  color: #64748b;
}

@media (max-width: 1120px) {
  .admin-topbar {
    grid-template-columns: 1fr auto;
  }

  .admin-topbar nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: center;
  }

  .admin-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .admin-filter-form {
    grid-template-columns: 1fr 1fr;
  }

  .consent-audit-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 760px) {
  .hero-result-card {
    position: relative;
    left: auto;
    bottom: auto;
    margin: -18px 14px 0;
  }

  .package-card h3,
  .sales-copy,
  .package-card ul {
    min-height: auto;
  }

  .legal-modal {
    padding: 8px;
  }

  .legal-modal-dialog {
    max-height: 94vh;
    border-radius: 18px;
  }

  .legal-modal-header,
  .legal-modal-scroll,
  .legal-modal-footer {
    padding: 16px;
  }

  .legal-modal-header h2 {
    font-size: 21px;
  }

  .legal-modal-footer {
    display: grid;
  }

  .legal-modal-footer .btn {
    width: 100%;
  }

  .admin-topbar {
    position: relative;
    grid-template-columns: 1fr;
    padding: 12px 16px;
  }

  .admin-topbar nav {
    grid-column: auto;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .admin-user {
    justify-content: space-between;
  }

  .admin-page-head,
  .order-head-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .admin-metrics,
  .admin-detail-grid,
  .request-grid,
  .admin-filter-form,
  .consent-audit-grid {
    grid-template-columns: 1fr;
  }

  .wide-panel {
    grid-column: auto;
  }

  .detail-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
}

/* Payment, document and mail workflow — v2.1 */
.settings-layout {
  display: grid;
  gap: 18px;
}

.two-col-form,
.invoice-upload-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.two-col-form .full-line,
.invoice-upload-form .full-line {
  grid-column: 1 / -1;
}

.admin-form label small {
  display: block;
  margin-top: 6px;
  color: #667085;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
}

.settings-checks {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #dbe3ee;
  border-radius: 14px;
  background: #f8fafc;
}

.settings-checks label,
.check-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 9px;
}

.settings-checks input,
.check-line input {
  width: 18px !important;
  height: 18px;
  margin: 0;
}

.config-callout {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #dce5f0;
  border-radius: 15px;
  background: #f6f9fd;
}

.config-callout code {
  display: block;
  overflow-wrap: anywhere;
  padding: 11px 12px;
  border-radius: 10px;
  background: #0e1930;
  color: #e9f2ff;
  font-size: 12px;
  line-height: 1.55;
}

.config-callout small {
  color: #667085;
  line-height: 1.5;
}

.settings-actions-panel {
  display: grid;
  gap: 15px;
}

.settings-actions-panel > label {
  display: grid;
  gap: 7px;
  max-width: 520px;
  font-weight: 700;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.btn.danger-soft {
  border: 1px solid #f1b8b8;
  background: #fff5f5;
  color: #b42318;
}

.admin-process-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.admin-process-strip article {
  position: relative;
  display: grid;
  gap: 3px;
  min-height: 98px;
  padding: 16px 16px 15px 54px;
  border: 1px solid #e1e7ef;
  border-radius: 16px;
  background: #fff;
}

.admin-process-strip article > span:first-child {
  position: absolute;
  top: 17px;
  left: 15px;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #e9eef5;
  color: #344054;
  font-weight: 800;
}

.admin-process-strip article.done {
  border-color: #a9e8c9;
  background: #f4fff9;
}

.admin-process-strip article.done > span:first-child {
  background: #16b364;
  color: #fff;
}

.admin-process-strip small {
  color: #667085;
}

.document-workbench > p,
.invoice-panel > p {
  color: #586579;
}

.document-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
}

.document-actions form {
  margin: 0;
}

.file-meta {
  color: #667085;
  font-size: 12px;
}

.delivery-chip,
.document-mini-state {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: #475467;
  font-size: 11px;
  font-weight: 800;
}

.delivery-chip.state-sent,
.document-mini-state.ready {
  background: #e8fbf1;
  color: #067647;
}

.delivery-chip.state-failed,
.text-error {
  color: #b42318;
}

.delivery-chip.state-failed {
  background: #fff0f0;
}

.active-invoice-card {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  padding: 17px;
  border: 1px solid #b8e6cf;
  border-radius: 16px;
  background: #f5fff9;
}

.active-invoice-card > div:first-child {
  display: grid;
  gap: 4px;
}

.active-invoice-card small {
  color: #667085;
}

.document-history {
  display: grid;
  gap: 9px;
  margin-top: 20px;
}

.document-history h3 {
  margin: 0 0 2px;
  font-size: 15px;
}

.document-history article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 11px 13px;
  border: 1px solid #e4e9f1;
  border-radius: 12px;
}

.document-history article small {
  color: #667085;
}

.email-history-list {
  display: grid;
  gap: 10px;
}

.email-history-list article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 18px;
  padding: 14px;
  border: 1px solid #e3e8ef;
  border-radius: 14px;
  background: #fbfcfe;
}

.email-history-list article > div {
  display: grid;
  gap: 3px;
}

.email-history-list article > div:last-of-type {
  text-align: right;
}

.email-history-list article p {
  grid-column: 1 / -1;
  margin: 0;
  color: #b42318;
  font-size: 12px;
}

.email-history-list .mail-success {
  border-color: #b9e8d0;
}

.payment-result-card {
  max-width: 760px;
}

.result-order-number {
  display: grid;
  gap: 5px;
  margin: 18px auto;
  padding: 14px 18px;
  border: 1px solid #dce4ee;
  border-radius: 14px;
  background: #f8fafc;
}

.result-order-number span {
  color: #667085;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.result-order-number strong {
  overflow-wrap: anywhere;
  font-size: 18px;
}

.result-next-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 20px 0;
  text-align: left;
}

.result-next-steps article {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  align-items: start;
  padding: 13px;
  border-radius: 13px;
  background: #f5f8fc;
  font-size: 13px;
  line-height: 1.45;
}

.result-next-steps strong {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #0f7a4d;
  color: #fff;
}

.email-delivery-state {
  padding: 11px 13px;
  border-radius: 12px;
  background: #eef8ff;
  color: #175cd3;
  font-size: 13px;
  font-weight: 700;
}

@media (max-width: 920px) {
  .admin-process-strip,
  .result-next-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .two-col-form,
  .invoice-upload-form,
  .admin-process-strip,
  .result-next-steps {
    grid-template-columns: 1fr;
  }

  .document-history article,
  .email-history-list article {
    grid-template-columns: 1fr;
  }

  .email-history-list article > div:last-of-type {
    text-align: left;
  }

  .settings-actions,
  .document-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .settings-actions .btn,
  .document-actions .btn,
  .document-actions form,
  .document-actions form .btn {
    width: 100%;
  }
}

/* Version 2.1.3: stronger sales styling + readable consent flow */
.hero {
  background:
    radial-gradient(circle at 82% 18%, rgba(34, 197, 94, 0.34), transparent 26%),
    radial-gradient(circle at 15% 80%, rgba(6, 182, 212, 0.18), transparent 24%),
    linear-gradient(135deg, #07101d 0%, #12253e 55%, #08332b 100%);
}

.hero-copy h1 {
  text-shadow: 0 10px 35px rgba(0, 0, 0, 0.22);
}

.package-card {
  border-radius: 28px;
}

.package-card::after {
  content: "";
  position: absolute;
  inset: auto -30px -70px auto;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.16), rgba(22, 163, 74, 0));
  pointer-events: none;
}

.package-card:hover .package-badge,
.package-card.is-selected .package-badge {
  transform: translateY(-1px);
}

.package-card .price {
  color: #0f172a;
}

.package-card .sales-copy {
  line-height: 1.6;
}

.checkout-panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.98));
}

.consents {
  padding: 18px 18px 10px;
}

.consent-row {
  grid-template-columns: 26px 1fr;
  gap: 12px;
  padding: 13px 0;
  margin-top: 0;
  border: 0;
  border-bottom: 1px solid #e2e8f0;
  border-radius: 0;
  background: transparent;
}

.consent-row:last-of-type {
  border-bottom: 0;
}

.consent-row.is-approved {
  background: transparent;
}

.consent-row.needs-attention {
  padding-left: 10px;
  padding-right: 10px;
  border: 1px solid #fecaca;
  border-radius: 14px;
  background: #fff7f7;
}

.consent-copy {
  display: grid;
  gap: 4px;
}

.consent-copy p {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.55;
}

.consent-copy-tail {
  color: #475569;
}

.consent-link {
  color: #0f172a;
  font-weight: 900;
  letter-spacing: -0.01em;
  text-decoration-thickness: 1.5px;
}

.consent-link:hover,
.consent-link:focus-visible {
  color: #15803d;
}

.consent-state {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.consent-row.is-approved .consent-state {
  box-shadow: none;
  background: linear-gradient(135deg, #16a34a, #0f766e);
}

.consent-meta {
  color: #64748b;
  font-size: 11px;
  font-weight: 800;
}

.consent-row.is-approved .consent-meta {
  color: #166534;
}

.consent-progress {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #e2e8f0;
}

.checkout-submit:disabled {
  background: #cbd5e1;
  box-shadow: none;
}

.legal-modal-scroll {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.legal-modal-footer .btn.primary:disabled {
  background: #cbd5e1;
  color: #334155;
}

.consent-audit-grid article {
  padding: 14px;
  background: #f8fafc;
}

.consent-audit-grid article.approved {
  border-color: #bbf7d0;
  background: #f0fdf4;
}

.consent-audit-grid article span {
  line-height: 1.4;
}

@media (max-width: 980px) {
  .consent-row {
    align-items: start;
  }
}

/* Price and campaign management — v2.2 */
.package-card.has-campaign {
  border-color: #f59e0b;
}

.discount-badge {
  position: absolute;
  top: 18px;
  left: 18px;
  right: auto;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 7px 11px;
  border-radius: 999px;
  color: #ffffff;
  background: linear-gradient(135deg, #dc2626, #f97316);
  box-shadow: 0 10px 24px rgba(220, 38, 38, 0.28);
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.campaign-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 7px 10px;
}

.campaign-price strong {
  font-size: inherit;
}

.campaign-price .old-price {
  color: #94a3b8;
  font-size: 16px;
  font-weight: 750;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.campaign-note {
  display: grid;
  gap: 4px;
  margin: 12px 0 4px;
  padding: 12px 13px;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  background: #fff7ed;
  color: #9a3412;
}

.campaign-note strong {
  font-size: 13px;
}

.campaign-note span,
.campaign-note em {
  font-size: 12px;
  line-height: 1.45;
}

.campaign-note em {
  font-style: normal;
  font-weight: 800;
}

.summary-box [hidden] {
  display: none !important;
}

.pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: end;
}

.pricing-password {
  grid-column: span 2;
}

.pricing-actions {
  display: flex;
  align-items: end;
}

.campaign-form-actions,
.campaign-row-actions,
.campaign-row-actions form {
  display: flex;
  align-items: center;
  gap: 10px;
}

.campaign-row-actions {
  flex-wrap: wrap;
}

.campaign-row-actions form input[type="password"] {
  width: 120px;
  padding: 8px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
}

.status-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.status-badge.success {
  color: #166534;
  background: #dcfce7;
}

.status-badge.warning {
  color: #92400e;
  background: #fef3c7;
}

.status-badge.muted {
  color: #475569;
  background: #e2e8f0;
}

.campaign-table td {
  vertical-align: top;
}

.empty-state {
  padding: 30px;
  color: #64748b;
  text-align: center;
}

@media (max-width: 900px) {
  .pricing-grid {
    grid-template-columns: 1fr 1fr;
  }

  .pricing-password {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-password {
    grid-column: auto;
  }

  .discount-badge {
    top: 14px;
    left: 14px;
    right: auto;
  }
}

/* v2.3.0 - kurumsal sayfalar ve iyzico görünürlük alanı */
.footer-stack{display:grid;gap:22px}.footer-legal-links{display:flex;flex-wrap:wrap;gap:10px 18px;padding-top:18px;border-top:1px solid rgba(255,255,255,.12)}.footer-legal-links a{color:inherit;font-size:13px;text-decoration:none}.footer-legal-links a:hover{text-decoration:underline}.footer-payment{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:14px 18px;border-radius:16px;background:rgba(255,255,255,.07)}.footer-payment img{display:block;width:min(429px,100%);height:auto;max-height:38px}.footer-payment span{font-size:12px;opacity:.78;white-space:nowrap}.content-page-shell{padding:64px 0 80px;background:#f6f8fb;min-height:65vh}.content-page-grid{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:28px;align-items:start}.content-page-card,.content-page-side{background:#fff;border:1px solid #e5e9f0;border-radius:24px;box-shadow:0 18px 45px rgba(20,31,54,.07)}.content-page-card{padding:42px}.content-page-card h1{font-size:clamp(30px,4vw,48px);margin:8px 0 14px}.content-page-lead{font-size:18px;color:#556176;line-height:1.7}.content-page-meta{font-size:12px;color:#7b8495;padding:14px 0 22px;border-bottom:1px solid #e9edf3}.content-page-body{padding-top:18px}.content-page-body p{font-size:15px;line-height:1.82;color:#303a4d;margin:0 0 18px}.content-page-side{padding:20px;display:grid;gap:8px;position:sticky;top:98px}.content-page-side>strong{padding:6px 8px 12px}.content-page-side>a{display:block;padding:11px 12px;border-radius:12px;color:#253047;text-decoration:none;font-size:14px}.content-page-side>a:hover,.content-page-side>a.active{background:#eef4ff;color:#164fb7}.secure-payment-box{margin-top:12px;padding:14px;border-radius:14px;background:#f7f9fc}.secure-payment-box span{display:block;font-size:12px;color:#6b7485;margin-bottom:10px}.secure-payment-box img{display:block;width:100%;height:auto}.page-editor-layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:24px;align-items:start}.page-list-panel{display:grid;gap:8px;position:sticky;top:90px}.page-list-link{display:grid;gap:4px;padding:13px 14px;border:1px solid #e4e9f1;border-radius:13px;text-decoration:none;color:#263047}.page-list-link small{color:#778196}.page-list-link.active,.page-list-link:hover{border-color:#9bbcf4;background:#f2f6ff}.page-editor-form textarea[name=body]{min-height:520px;line-height:1.6;font-family:inherit;resize:vertical}.page-editor-panel .panel-title a{font-size:13px}.admin-topbar nav{flex-wrap:wrap}
@media(max-width:900px){.content-page-grid,.page-editor-layout{grid-template-columns:1fr}.content-page-side,.page-list-panel{position:static}.footer-payment{align-items:flex-start;flex-direction:column}.footer-payment span{white-space:normal}.content-page-card{padding:26px}}
