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

:root {
  --bg: #0f0f0f;
  --surface: #1a1a1a;
  --surface-hover: #242424;
  --border: #2e2e2e;
  --gold: #c9a227;
  --gold-light: #e8c04a;
  --text: #e8e8e8;
  --text-muted: #777;
  --radius: 16px;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─── Header ─── */
.site-header {
  padding: 1.5rem 1.5rem 1.2rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  position: relative;
}

.back-btn {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s, border-color 0.2s;
}

.back-btn svg { width: 18px; height: 18px; }

.back-btn:hover {
  color: var(--gold-light);
  border-color: var(--gold);
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold-light);
  text-decoration: none;
}

.lang-switcher {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.9rem;
}

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 0.25rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}

.lang-btn:hover {
  color: var(--text);
  border-color: #555;
}

.lang-btn.active {
  color: var(--gold-light);
  border-color: var(--gold);
}

/* ─── Page content ─── */
.page-content {
  flex: 1;
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* ─── App hero ─── */
.app-hero {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  margin-bottom: 0.5rem;
}

.hero-img-wrap {
  flex-shrink: 0;
  width: 100px;
  height: 100px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #111;
}

.hero-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.app-title {
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--gold-light);
  line-height: 1.1;
}

.app-platform {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--gold);
}

/* ─── Unified card ─── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.card-tagline {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.5;
}

.card-heading {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* feature list inside card */
.card-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.card-features > li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.card-features > li > svg {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--gold);
  margin-top: 0.15rem;
}

.card-features strong {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  display: block;
  margin-bottom: 0.15rem;
}

.card-features p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin: 0;
}

/* chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.4rem;
}

.chips span {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 0.2rem 0.7rem;
  white-space: nowrap;
}

/* card-note */
.card-note {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #1a1f12, #141814);
  border: 1px solid #2e3820;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  margin-top: 0.5rem;
}

.card-note svg {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: #7ec85a;
  margin-top: 0.1rem;
}

.card-note-body {
  flex: 1;
}

.card-note-body p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.card-note-link {
  color: #7ec85a;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.2s;
}

.card-note-link:hover {
  opacity: 0.75;
}

/* config list inside card */
.config-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.config-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.config-item:last-child { border-bottom: none; }

.config-item svg {
  flex-shrink: 0;
  width: 15px;
  height: 15px;
  color: #5ec882;
}

/* ─── Settings tile ─── */
.settings-tile {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  background: var(--surface);
  border: 1px solid var(--gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  text-decoration: none;
  color: var(--text);
  transition: background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 0 0 rgba(201, 162, 39, 0);
}

.settings-tile:hover {
  background: var(--surface-hover);
  box-shadow: 0 6px 28px rgba(201, 162, 39, 0.22);
  transform: translateY(-2px);
}

.settings-tile-icon {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: linear-gradient(135deg, #1f1c0e, #2e2710);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.settings-tile-icon svg { width: 22px; height: 22px; }

.settings-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.settings-tile-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-light);
}

.settings-tile-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.settings-tile-arrow {
  flex-shrink: 0;
  color: var(--gold);
}

.settings-tile-arrow svg { width: 20px; height: 20px; }

/* ─── Accordion ─── */
.accordion {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}

.accordion-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  transition: background 0.2s;
}

.accordion-bar:hover {
  background: var(--surface-hover);
}

.accordion-bar::-webkit-details-marker { display: none; }
.accordion-bar::marker { display: none; content: ""; }

.accordion-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.accordion-chevron {
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.accordion[open] > .accordion-bar .accordion-chevron {
  transform: rotate(180deg);
}

.accordion-body {
  padding: 0 1.3rem 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.accordion-intro {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ─── Steps list ─── */
.steps-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.step-item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #a07c18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 800;
  color: #0f0f0f;
  margin-top: 0.05rem;
}

.step-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.step-body strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.step-body p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.step-hint {
  font-size: 0.78rem;
  color: #555;
  margin-top: 0.5rem;
  padding: 0.4rem 0.65rem;
  border-left: 2px solid var(--gold);
  background: #1a1a1a;
  border-radius: 0 6px 6px 0;
}

/* sub-options */
.sub-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.sub-option {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  background: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.55rem 0.75rem;
}

.sub-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  background: linear-gradient(135deg, var(--gold), #a07c18);
  color: #0f0f0f;
  border-radius: 5px;
  padding: 0.18rem 0.5rem;
  white-space: nowrap;
}

.sub-badge--alt {
  background: linear-gradient(135deg, #4a4a4a, #2e2e2e);
  color: var(--text-muted);
}

.sub-option-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Feature list (inside accordion) ─── */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem 1rem;
}

.feature-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}

.feature-icon svg { width: 16px; height: 16px; }

.feature-icon--edit     { background: #1a1f12; color: #7ec85a; border-color: #2e3d20; }
.feature-icon--delete   { background: #1f1212; color: #c85a5a; border-color: #3d2020; }
.feature-icon--generate { background: #12181f; color: #5a9ec8; border-color: #20303d; }
.feature-icon--history  { background: #1a1218; color: #b07ec8; border-color: #3a2040; }

.feature-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.feature-text strong {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text);
}

.feature-text span {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── Section block ─── */
.section-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

/* ─── Unlock info block ─── */
.unlock-info {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
}

.unlock-info-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f1c0e, #2e2710);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold-light);
}

.unlock-info-icon svg { width: 20px; height: 20px; }

.unlock-info-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.unlock-info-body p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin: 0;
}

.unlock-lead {
  color: var(--text) !important;
  font-weight: 600;
}

.unlock-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.unlock-list li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.unlock-list li::before {
  content: "—";
  position: absolute;
  left: 0;
  color: var(--gold);
}

.unlock-path {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.unlock-path-label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.unlock-path code {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.4rem 0.7rem;
  word-break: break-word;
}

/* ─── Support / Service cards ─── */
.support-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}

.service-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem;
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: background 0.2s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}

.service-card:hover {
  background: var(--surface-hover);
  transform: translateY(-2px);
}

.service-card--suppi { border-color: #3a2a00; }
.service-card--suppi:hover {
  border-color: #ffa500;
  box-shadow: 0 6px 24px rgba(255, 165, 0, 0.15);
}

.service-card--kofi { border-color: #3a1520; }
.service-card--kofi:hover {
  border-color: #ff5e5b;
  box-shadow: 0 6px 24px rgba(255, 94, 91, 0.15);
}

.service-card-header {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.service-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: contain;
  background: #222;
  border: 1px solid var(--border);
}

.service-card-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--gold-light);
  display: block;
  line-height: 1.2;
}

.service-card-by {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  display: block;
}

.service-card-payments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pay-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 28px;
  background: #141414;
  border: 1px solid var(--border);
  border-radius: 5px;
  overflow: hidden;
}

.pay-icon img {
  max-width: 32px;
  max-height: 20px;
  object-fit: contain;
  display: block;
}

.service-card-arrow {
  position: absolute;
  top: 1.2rem;
  right: 1rem;
  color: var(--text-muted);
  opacity: 0.35;
  transition: opacity 0.2s, color 0.2s;
}

.service-card-arrow svg { width: 16px; height: 16px; }

.service-card:hover .service-card-arrow {
  opacity: 1;
  color: var(--gold-light);
}

/* ─── CTA ─── */
.cta-wrap {
  display: flex;
  justify-content: center;
  margin-top: 0.5rem;
}

.btn-cta {
  display: inline-block;
  padding: 0.85rem 2.4rem;
  background: linear-gradient(135deg, var(--gold), #a07c18);
  color: #0f0f0f;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.3px;
  border-radius: 12px;
  text-decoration: none;
  transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(201, 162, 39, 0.3);
}

.btn-cta:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 162, 39, 0.4);
}

/* ─── Footer ─── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.footer-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-link:hover { color: var(--gold-light); }

.copyright {
  font-size: 0.75rem;
  color: #3a3a3a;
}

/* ─── Code inline ─── */
code {
  font-family: "Courier New", monospace;
  font-size: 0.75rem;
  background: #1f1f1f;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1rem 0.4rem;
  color: var(--text-muted);
  word-break: break-all;
}

/* ─── Responsive ─── */
@media (max-width: 500px) {
  .app-hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .hero-img-wrap {
    width: 80px;
    height: 80px;
  }

  .app-title {
    font-size: 1.4rem;
  }

  .page-content {
    padding: 1.8rem 1rem 2.5rem;
    gap: 1rem;
  }

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