*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --header-h: 56px;
  --canvas-pad-v: 40px;
}

body {
  font-family: system-ui, -apple-system, sans-serif;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
  background: #f0ede7;
  color: #111;
}

/* ─── Header ──────────────────────────────────── */

#site-header {
  flex-shrink: 0;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid #e8e8e8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  z-index: 100;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #111;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.brand-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
}

#main-nav {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-link {
  padding: 6px 13px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13.5px;
  color: #555;
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: #111;
  background: #f5f5f5;
}

.nav-link.active {
  color: #3B5BDB;
  background: #eef2ff;
  font-weight: 500;
}

/* ─── Pages ───────────────────────────────────── */

.page {
  display: none;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.page.active {
  display: flex;
}

/* ─── Left panel ─────────────────────────────── */

#panel {
  width: 340px;
  flex-shrink: 0;
  overflow-y: auto;
  background: #fff;
  border-right: 1px solid #e8e8e8;
}

#panel::-webkit-scrollbar { width: 5px; }
#panel::-webkit-scrollbar-track { background: transparent; }
#panel::-webkit-scrollbar-thumb { background: #e4e4e4; border-radius: 3px; }

.panel-section {
  padding: 20px;
  border-top: 1px solid #f0f0f0;
}

.panel-section:first-child {
  border-top: none;
}

.section-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  color: #999;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.section-label span {
  color: #bbb;
  font-weight: 500;
}

/* ─── Export buttons ──────────────────────────── */

.export-top {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.btn-primary {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  background: #3B5BDB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-primary:hover { background: #3451c7; }

.btn-secondary {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 44px;
  background: #fff;
  color: #444;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
}

.btn-secondary:hover { border-color: #aaa; color: #111; }

/* ─── Template section ───────────────────────── */

.search-input {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  font-size: 13px;
  color: #333;
  outline: none;
  margin-bottom: 10px;
  background: #fafafa;
}

.search-input:focus {
  border-color: #3B5BDB;
  background: #fff;
}

#template-grid {
  height: 280px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  align-content: start;
  align-items: stretch;
  gap: 8px;
  padding-right: 2px;
}

#template-grid::-webkit-scrollbar { width: 4px; }
#template-grid::-webkit-scrollbar-track { background: transparent; }
#template-grid::-webkit-scrollbar-thumb { background: #e4e4e4; border-radius: 2px; }

.template-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  padding: 6px 6px 7px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s;
  text-align: center;
  font-size: 10.5px;
  color: #666;
  line-height: 1.3;
}

.template-card:hover { border-color: #b8b8b8; }
.template-card.active { border-color: #3B5BDB; color: #3B5BDB; }

.template-card span {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-thumb {
  width: 100%;
  height: 72px;
  overflow: hidden;
  background: #fff;
  border-radius: 3px;
  pointer-events: none;
  display: flex;
  align-items: flex-start;
}

.template-thumb svg {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  flex-shrink: 0;
}

/* ─── Color picker ───────────────────────────── */

.color-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.swatch-label {
  display: block;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
}

.color-swatch {
  display: block;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.color-picker {
  position: absolute;
  opacity: 0;
  width: 40px;
  height: 40px;
  top: 0;
  left: 0;
  cursor: pointer;
}

.hex-input {
  flex: 1;
  height: 40px;
  padding: 0 12px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  font-family: 'SF Mono', 'Consolas', 'Menlo', monospace;
  font-size: 13px;
  color: #333;
  outline: none;
}

.hex-input:focus { border-color: #3B5BDB; }

.preset-dots {
  display: flex;
  gap: 8px;
}

.preset-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  padding: 0;
  outline: none;
  transition: transform 0.1s;
  flex-shrink: 0;
}

.preset-dot:hover { transform: scale(1.15); }

.background-color-dot[data-color="#FFFFFF"] { border: 1px solid #e0e0e0; }

/* ─── Slider ─────────────────────────────────── */

.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

#line-spacing {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: #e4e4e4;
  border-radius: 2px;
  outline: none;
  cursor: pointer;
}

#line-spacing::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

#line-spacing::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #ccc;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  cursor: pointer;
}

.slider-val {
  font-size: 13px;
  color: #555;
  width: 50px;
  text-align: right;
  flex-shrink: 0;
}

.panel-section.spacing-na .section-label,
.panel-section.spacing-na .slider-row {
  opacity: 0.35;
}

.panel-section.spacing-na .slider-val {
  color: #999;
  font-style: italic;
}

#line-spacing:disabled {
  cursor: default;
}

#line-spacing:disabled::-webkit-slider-thumb {
  opacity: 0;
  pointer-events: none;
}

#line-spacing:disabled::-moz-range-thumb {
  opacity: 0;
  pointer-events: none;
}

/* ─── Margins ────────────────────────────────── */

.margins-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.margin-field {
  display: flex;
  align-items: center;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid #e4e4e4;
  border-radius: 8px;
  background: #fff;
}

.margin-field:focus-within {
  border-color: #b0b0b0;
}

.margin-label {
  font-size: 10px;
  font-weight: 600;
  color: #b8b8b8;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  flex-shrink: 0;
}

.margin-input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  color: #1a1a1a;
  text-align: right;
  width: 0;
  min-width: 0;
  background: transparent;
  -moz-appearance: textfield;
  appearance: textfield;
}

.margin-input::-webkit-inner-spin-button,
.margin-input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  appearance: none;
  margin: 0;
}

.margin-stepper {
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  width: 12px;
  height: 22px;
  margin-left: 4px;
  visibility: hidden;
}

.margin-field:focus-within .margin-stepper {
  visibility: visible;
}

.margin-stepper button {
  all: unset;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1 1 0;
  cursor: pointer;
  font-size: 9px;
  color: #666;
  background: transparent;
  line-height: 1;
  transition: color 0.1s;
}

.margin-stepper button:hover {
  color: #111;
}

.margin-unit {
  font-size: 11px;
  color: #b8b8b8;
  flex-shrink: 0;
  margin-left: 8px;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #555;
  cursor: pointer;
  user-select: none;
}

.checkbox-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  cursor: pointer;
  accent-color: #3B5BDB;
  flex-shrink: 0;
}

/* ─── Orientation ───────────────────────────── */

.orientation-row {
  display: flex;
  gap: 8px;
}

.orientation-btn {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.orientation-btn:hover {
  border-color: #999;
}

.orientation-btn.active {
  border-color: #3B5BDB;
  background: #3B5BDB;
  color: #fff;
}

/* ─── Pages ──────────────────────────────────── */

.pages-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  font-size: 14px;
  color: #333;
}

.stepper {
  display: flex;
  align-items: stretch;
  border: 1.5px solid #d8d8d8;
  border-radius: 8px;
  overflow: hidden;
}

.stepper-btn {
  width: 32px;
  height: 34px;
  border: none;
  background: #fff;
  font-size: 18px;
  color: #666;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background 0.1s;
}

.stepper-btn:hover { background: #f5f5f5; }

#page-count {
  width: 36px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  color: #111;
  border-left: 1.5px solid #d8d8d8;
  border-right: 1.5px solid #d8d8d8;
  height: 34px;
  line-height: 34px;
  display: inline-block;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: #333;
  margin-top: 16px;
}

/* ─── Toggle switch ──────────────────────────── */

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
  cursor: pointer;
  flex-shrink: 0;
}

.toggle-switch input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  position: absolute;
  inset: 0;
  background: #d0d0d0;
  border-radius: 12px;
  transition: background 0.2s;
}

.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-track { background: #3B5BDB; }
.toggle-switch input:checked + .toggle-track::after { transform: translateX(18px); }

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

.logo-drop {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px dashed #d4d4d4;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.15s;
}

.logo-drop:hover { border-color: #3B5BDB; }
.logo-drop:hover .logo-icon { border-color: #3B5BDB; color: #3B5BDB; }

.logo-icon {
  width: 40px;
  height: 40px;
  border: 1.5px solid #e0e0e0;
  border-radius: 8px;
  background: #fafafa;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #888;
  transition: border-color 0.15s, color 0.15s;
}

.logo-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.logo-text strong {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  display: block;
}

.logo-text span {
  font-size: 12px;
  color: #aaa;
  display: block;
}

.logo-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 2px;
}

.logo-controls[hidden] { display: none; }

.logo-preview-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-thumbnail {
  width: 60px;
  height: 40px;
  object-fit: contain;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  background: #fafafa;
  flex-shrink: 0;
}

.logo-delete-btn {
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #888;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.logo-delete-btn:hover {
  background: #fff0f0;
  border-color: #f55;
  color: #e22;
}

/* ─── Canvas / preview area ──────────────────── */

#canvas {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
  display: flex;
  justify-content: center;
  padding: var(--canvas-pad-v) 40px;
  align-items: flex-start;
  background: #f0ede7;
}

#preview {
  display: contents;
}

#preview svg {
  display: block;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 16px rgba(0, 0, 0, 0.10),
    0 16px 48px rgba(0, 0, 0, 0.06);
}

/* ─── Templates page ─────────────────────────── */

.templates-page {
  flex-direction: column;
  overflow-y: auto;
}

.templates-header {
  flex-shrink: 0;
  padding: 40px 60px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.templates-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.templates-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.templates-grid {
  flex: 1;
  padding: 40px 60px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
  align-content: start;
}

.templates-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0;
  border: none;
  background: none;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s;
}

.templates-card:hover {
  transform: translateY(-2px);
}

.templates-card-preview {
  height: 160px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  border: 1.5px solid #e4e4e4;
  display: flex;
  align-items: flex-start;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.templates-card:hover .templates-card-preview {
  border-color: #b8b8b8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.templates-card-preview svg {
  width: 100%;
  height: auto;
  min-height: 100%;
  display: block;
  flex-shrink: 0;
}

.templates-card-name {
  font-size: 15px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.templates-card-desc {
  font-size: 13px;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

/* ─── How it works page ──────────────────────── */

.how-it-works-page {
  flex-direction: column;
  overflow-y: auto;
}

.how-it-works-header {
  flex-shrink: 0;
  padding: 40px 60px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.how-it-works-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.how-it-works-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.how-it-works-content {
  flex: 1;
  padding: 40px 60px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-content: start;
}

.how-it-works-step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.step-number {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #3B5BDB;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 600;
  line-height: 1;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-title {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.step-description {
  font-size: 15px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.6;
}

.step-cta-button {
  padding: 10px 20px;
  background: #3B5BDB;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-size: 13.5px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.step-cta-button:hover {
  background: #2d46a8;
}

/* ─── Support page ───────────────────────────── */

.support-page {
  flex-direction: column;
  overflow-y: auto;
}

.support-header {
  flex-shrink: 0;
  padding: 24px 60px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.support-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
  margin-bottom: 12px;
}

.support-header p {
  font-size: 15px;
  color: #666;
  line-height: 1.5;
}

.support-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr minmax(340px, 460px);
  gap: 40px;
  padding: 24px 60px;
  min-height: 0;
  align-items: start;
}

.support-sidebar {
  position: sticky;
  top: 40px;
}

.kofi-card {
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  overflow: hidden;
  background: #f9f9f9;
}

.support-section {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.support-section h2 {
  font-size: 20px;
  font-weight: 600;
  color: #111;
  margin: 0;
  line-height: 1.3;
}

.support-section p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

.support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.support-list li {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
  padding-left: 24px;
  position: relative;
}

.support-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #3B5BDB;
  font-weight: 600;
}


/* ─── Legal pages (Privacy, Terms) ──────────── */

.legal-page {
  flex-direction: column;
  overflow-y: auto;
}

.legal-header {
  flex-shrink: 0;
  padding: 40px 60px;
  border-bottom: 1px solid #e8e8e8;
  background: #fff;
}

.legal-header h1 {
  font-size: 32px;
  font-weight: 600;
  color: #111;
}

.legal-content {
  flex: 1;
  padding: 40px 60px;
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.legal-section h2 {
  font-size: 18px;
  font-weight: 600;
  color: #111;
  margin: 0 0 8px 0;
  line-height: 1.3;
}

.legal-section p {
  font-size: 15px;
  color: #555;
  margin: 0;
  line-height: 1.6;
}

/* ─── Footer ─────────────────────────────────── */

#site-footer {
  flex-shrink: 0;
  background: #fff;
  border-top: 1px solid #e8e8e8;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #999;
}

#site-footer[hidden] {
  display: none;
}

.footer-copyright {
  color: #999;
}

.footer-links {
  display: flex;
  gap: 20px;
}

.footer-link {
  color: #999;
  text-decoration: none;
  transition: color 0.15s;
}

.footer-link:hover {
  color: #3B5BDB;
}

.footer-link.active {
  color: #3B5BDB;
}

/* ─── Responsive ────────────────────────────── */

@media (max-width: 768px) {
  .templates-header,
  .how-it-works-header,
  .support-header,
  .legal-header {
    padding: 32px 24px;
  }

  .templates-header h1,
  .how-it-works-header h1,
  .support-header h1,
  .legal-header h1 {
    font-size: 24px;
  }

  .legal-content {
    padding: 32px 24px;
    gap: 20px;
  }

  #site-footer {
    flex-direction: column;
    gap: 8px;
    text-align: center;
    padding: 12px 16px;
  }

  .footer-links {
    gap: 16px;
  }

  .templates-grid {
    padding: 32px 24px;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 20px;
  }

  .how-it-works-content {
    padding: 32px 24px;
    gap: 28px;
  }

  .support-body {
    grid-template-columns: 1fr;
    padding: 32px 24px;
    gap: 32px;
  }

  .support-sidebar {
    position: static;
  }

  .how-it-works-step {
    gap: 16px;
  }

  .step-number {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }
}

/* ─── Thank-you modal ─────────────────────────── */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 17, 25, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
  animation: modal-fade 0.18s ease-out;
}

.modal-overlay[hidden] { display: none; }

@keyframes modal-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-card {
  position: relative;
  background: #fff;
  border-radius: 14px;
  padding: 32px 28px 26px;
  max-width: 420px;
  width: 100%;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  animation: modal-pop 0.22s ease-out;
}

@keyframes modal-pop {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0)   scale(1); }
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: none;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  color: #888;
  cursor: pointer;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}

.modal-close:hover {
  background: #f3f3f3;
  color: #111;
}

.modal-title {
  font-size: 19px;
  font-weight: 600;
  color: #111;
  margin: 0 0 10px;
  line-height: 1.3;
}

.modal-text {
  font-size: 14px;
  line-height: 1.55;
  color: #555;
  margin: 0 0 22px;
}

.modal-text + .modal-text {
  margin-top: -10px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-kofi {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  background: #3B5BDB;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s;
}

.btn-kofi:hover { background: #3451c7; }

.btn-later {
  height: 42px;
  padding: 0 16px;
  background: transparent;
  color: #666;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.btn-later:hover {
  background: #f3f3f3;
  color: #111;
}

@media (max-width: 480px) {
  .modal-card {
    padding: 28px 22px 22px;
  }

  .modal-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-later {
    width: 100%;
  }
}
