:root {
  color-scheme: dark;
  --bg: #020617;
  --panel: rgba(15, 23, 42, 0.78);
  --panel-strong: rgba(15, 23, 42, 0.95);
  --line: rgba(148, 163, 184, 0.16);
  --text: #e2e8f0;
  --muted: #94a3b8;
  --accent: #34d399;
  --accent-strong: #10b981;
  --danger: #f87171;
  --warning: #facc15;
  --radius: 18px;
  --ease: cubic-bezier(.4,0,.2,1);
  font-family: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(16, 185, 129, 0.14), transparent 28rem),
    radial-gradient(circle at 90% 8%, rgba(56, 189, 248, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; transition: color .18s var(--ease); }
a:hover { color: white; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, .button { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 1rem;
  z-index: 1000;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: white;
  color: #020617;
}
.skip-link:focus { left: 1rem; }

/* ── Header ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
  background: rgba(2, 6, 23, 0.82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 800; transition: opacity .18s var(--ease); }
.brand:hover { opacity: .85; }
.brand-mark, .brand-logo {
  display: inline-grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
}
.brand-mark {
  background: linear-gradient(135deg, var(--accent), #38bdf8);
  color: #020617;
  font-size: .82rem;
}
.brand-logo {
  background: rgba(255,255,255,.06);
  border: 1px solid var(--line);
}
.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: .22rem;
}
.top-nav { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; justify-content: flex-end; }
.nav-item-wrap { position: relative; display: inline-flex; }
.top-nav a {
  padding: .65rem .8rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 700;
  transition: background .18s var(--ease), color .18s var(--ease);
}
.top-nav a:hover, .top-nav .nav-admin { background: rgba(255,255,255,.06); color: white; }
.submenu {
  position: absolute;
  left: 0;
  top: calc(100% + .35rem);
  min-width: 190px;
  display: grid;
  gap: .15rem;
  padding: .45rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--panel-strong);
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity .16s var(--ease), transform .16s var(--ease);
  box-shadow: 0 18px 50px rgba(2,6,23,.45);
}
.nav-item-wrap:hover .submenu,
.nav-item-wrap:focus-within .submenu {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.submenu a {
  border-radius: 10px;
  padding: .55rem .65rem;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────── */
.hero, .section {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}
.hero > * { opacity: 0; transform: translateY(24px); animation: hero-in .7s var(--ease) forwards; }
.hero > *:nth-child(2) { animation-delay: .15s; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

.eyebrow {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 1rem;
  padding: .45rem .75rem;
  border: 1px solid rgba(52, 211, 153, .24);
  border-radius: 999px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, .08);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; line-height: 1.05; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); max-width: 12ch; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
p { color: var(--muted); line-height: 1.7; }
.hero p { max-width: 58ch; font-size: 1.08rem; }
.hero-panel, .panel, .app-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: 0 24px 80px rgba(2, 6, 23, .28);
}
.hero-panel { padding: clamp(1.3rem, 3vw, 2rem); }
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: 1.5rem; }
.metric {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.04);
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.metric:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.metric strong { display: block; color: white; font-size: 1.35rem; }
.metric span { color: var(--muted); font-size: .8rem; }

/* ── Buttons ─────────────────────────────────────── */
.actions { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; margin-top: 1.5rem; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-weight: 800;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease), box-shadow .18s var(--ease);
}
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button-primary { background: var(--accent); color: #020617; border-color: var(--accent); }
.button-primary:hover { background: #6ee7b7; color: #020617; box-shadow: 0 4px 20px rgba(52,211,153,.25); }
.button-secondary { background: rgba(255,255,255,.06); color: white; }
.button-secondary:hover { background: rgba(255,255,255,.12); }

.button-success { background: #10b981; color: white; border-color: #10b981; }
.button-success:hover { background: #059669; color: white; box-shadow: 0 6px 20px rgba(16,185,129,.35); }

.button-info { background: #3b82f6; color: white; border-color: #3b82f6; }
.button-info:hover { background: #2563eb; color: white; box-shadow: 0 6px 20px rgba(59,130,246,.35); }

.button-warning { background: #f59e0b; color: #020617; border-color: #f59e0b; }
.button-warning:hover { background: #d97706; color: #020617; box-shadow: 0 6px 20px rgba(245,158,11,.35); }

.button-danger { background: #ef4444; color: white; border-color: #ef4444; }
.button-danger:hover { background: #dc2626; color: white; box-shadow: 0 6px 20px rgba(239,68,68,.35); }

/* ── Sections ────────────────────────────────────── */
.section { padding: 3rem 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 1.5rem; }
.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* ── App cards ───────────────────────────────────── */
.app-card {
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.app-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(2,6,23,.45), 0 0 0 1px rgba(52,211,153,.15);
  border-color: rgba(52,211,153,.2);
}
.app-card-media {
  aspect-ratio: 16 / 10;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(52,211,153,.18), rgba(56,189,248,.12));
  overflow: hidden;
}
.app-card-media span { font-size: 2rem; font-weight: 900; color: #a7f3d0; }
.app-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.app-card:hover .app-card-media img { transform: scale(1.04); }
.app-card-body { padding: 1.1rem; }
.app-card-meta { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; color: #a7f3d0; font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.app-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.app-card p { margin: 0 0 1rem; font-size: .92rem; }
.app-card-actions { display: flex; gap: .6rem; flex-wrap: wrap; }
.blog-grid {
  display: grid;
  gap: 1rem;
}
.blog-cols-1 { grid-template-columns: 1fr; }
.blog-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.blog-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Gallery cards ───────────────────────────────── */
.gallery-card {
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(2,6,23,.45), 0 0 0 1px rgba(56,189,248,.15);
  border-color: rgba(56,189,248,.2);
}
.gallery-card-media {
  border: 0;
  width: 100%;
  padding: 0;
  color: inherit;
  cursor: zoom-in;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(56,189,248,.12), rgba(168,85,247,.1));
  display: grid;
  place-items: center;
  position: relative;
}
.gallery-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.gallery-card:hover .gallery-card-media img { transform: scale(1.04); }
.gallery-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(2,6,23,.34), transparent 55%);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.gallery-card:hover .gallery-card-media::after { opacity: 1; }
.play-overlay {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(2,6,23,.72);
  color: white;
  box-shadow: 0 12px 40px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.gallery-card-media .media-placeholder {
  color: var(--muted);
  font-size: .85rem;
  font-weight: 700;
  text-align: center;
  padding: 1rem;
}
.gallery-card-body { padding: 1.1rem; }
.gallery-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.gallery-card p { margin: 0; font-size: .9rem; }
.media-type-badge {
  position: absolute;
  top: .6rem;
  right: .6rem;
  padding: .25rem .5rem;
  border-radius: 8px;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  color: white;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  z-index: 3;
}
.gallery-album-grid {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
}
.gallery-cols-1 { grid-template-columns: 1fr; }
.gallery-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.gallery-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-album-card {
  display: block;
  color: inherit;
  text-decoration: none;
}
.gallery-album-card .gallery-card-media {
  cursor: pointer;
}
.gallery-detail-grid {
  margin-top: 1.25rem;
}
.pagination {
  display: flex;
  justify-content: center;
  gap: .45rem;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

/* ── Blog cards ──────────────────────────────────── */
.blog-card {
  overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(2,6,23,.45), 0 0 0 1px rgba(168,85,247,.15);
  border-color: rgba(168,85,247,.2);
}
.blog-card-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(168,85,247,.15), rgba(56,189,248,.1));
  display: grid;
  place-items: center;
}
.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease);
}
.blog-card:hover .blog-card-media img { transform: scale(1.04); }
.blog-card-media .media-placeholder {
  color: var(--muted);
  font-size: 2rem;
  font-weight: 900;
  opacity: .4;
}
.blog-card-body { padding: 1.1rem; }
.blog-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.blog-card p { margin: 0 0 .75rem; font-size: .92rem; }
.blog-card .tag-list { display: flex; gap: .35rem; flex-wrap: wrap; margin-bottom: .5rem; }
.tag-pill {
  padding: .2rem .5rem;
  border-radius: 8px;
  background: rgba(168,85,247,.12);
  border: 1px solid rgba(168,85,247,.2);
  color: #c4b5fd;
  font-size: .7rem;
  font-weight: 800;
  text-transform: uppercase;
}

/* ── Blog detail ─────────────────────────────────── */
.blog-hero-image {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: var(--radius);
  margin: 1.5rem 0;
}
.blog-content { line-height: 1.85; font-size: 1.05rem; }
.blog-content h2 { font-size: 1.5rem; margin: 2rem 0 .75rem; }
.blog-content h3 { font-size: 1.2rem; margin: 1.5rem 0 .5rem; }
.blog-content p { margin: 0 0 1rem; }
.blog-content img { border-radius: 12px; margin: 1.5rem 0; }
.blog-content pre { background: rgba(0,0,0,.3); padding: 1rem; border-radius: 12px; overflow-x: auto; font-size: .9rem; }
.blog-content code { color: #a7f3d0; }
.blog-content blockquote { border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; color: var(--muted); font-style: italic; }

/* ── Forms ────────────────────────────────────────── */
.filters, .form-grid { display: grid; grid-template-columns: 1fr auto auto; gap: .75rem; margin-bottom: 1.4rem; }
input, select, textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15, 23, 42, .8);
  color: var(--text);
  padding: .8rem .95rem;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
input:focus, select:focus, textarea:focus {
  border-color: rgba(52,211,153,.4);
  box-shadow: 0 0 0 3px rgba(52,211,153,.1);
}
select { color-scheme: dark; }
textarea { min-height: 8rem; resize: vertical; }
label { display: grid; gap: .45rem; color: var(--muted); font-weight: 700; font-size: .9rem; }

/* ── Notices ──────────────────────────────────────── */
.notice { padding: 1rem; border-radius: 14px; border: 1px solid var(--line); background: rgba(255,255,255,.05); }
.notice.success { border-color: rgba(52,211,153,.3); color: #a7f3d0; background: rgba(52,211,153,.06); }
.notice.error { border-color: rgba(248,113,113,.3); color: #fecaca; background: rgba(248,113,113,.06); }

/* ── Scroll reveal ───────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── CTA section ─────────────────────────────────── */
.cta-section {
  text-align: center;
  padding: 4rem 2rem;
  margin: 2rem 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(52,211,153,.08), rgba(56,189,248,.06));
}
.cta-section h2 { max-width: 20ch; margin: 0 auto .75rem; }
.cta-section p { max-width: 50ch; margin: 0 auto; }
.cta-section .actions { justify-content: center; }

/* ── Empty states ────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  color: var(--muted);
  grid-column: 1 / -1;
}
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .4; }
.empty-state h3 { color: var(--text); margin-bottom: .5rem; font-size: 1.1rem; }
.empty-state p { max-width: 40ch; margin: 0 auto; font-size: .92rem; }

/* ── Screenshot lightbox ─────────────────────────── */
.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: .75rem;
}
.screenshot-thumb {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.screenshot-thumb:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 30px rgba(0,0,0,.3);
}
.screenshot-thumb img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.lightbox.active { opacity: 1; pointer-events: auto; }
.lightbox-content {
  display: grid;
  place-items: center;
}
.lightbox img,
.lightbox video,
.lightbox iframe {
  max-width: 90vw;
  max-height: 85vh;
  border-radius: 12px;
  box-shadow: 0 24px 80px rgba(0,0,0,.5);
  background: #000;
}
.lightbox iframe {
  width: min(92vw, 1100px);
  height: min(52vw, 620px);
  border: 0;
  aspect-ratio: 16 / 9;
}
.lightbox-close {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 50%;
  background: rgba(0,0,0,.5);
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .18s;
}
.lightbox-close:hover { background: rgba(255,255,255,.15); }
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(2,6,23,.72);
  color: white;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  display: none;
  place-items: center;
}
.lightbox.has-multiple .lightbox-nav { display: grid; }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }
.lightbox-caption {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  max-width: min(90vw, 900px);
  padding: .45rem .75rem;
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  background: rgba(2,6,23,.72);
  color: white;
  font-size: .86rem;
  text-align: center;
}

/* ── CMS Hero block ──────────────────────────────── */
.cms-hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.cms-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.cms-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .35;
}
.cms-hero-bg-gradient {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(16,185,129,.18) 0%, rgba(56,189,248,.12) 50%, rgba(2,6,23,.8) 100%);
}
.cms-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(2,6,23,.75) 0%, rgba(2,6,23,.5) 50%, var(--bg) 100%);
}
.cms-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
}
.cms-hero-inner.cms-hero-centered {
  grid-template-columns: 1fr;
  text-align: center;
  justify-items: center;
}
.cms-hero-text { opacity: 0; transform: translateY(24px); animation: hero-in .7s var(--ease) forwards; }
.cms-hero-text h1 { font-size: clamp(2.6rem, 7vw, 5.7rem); max-width: 14ch; background: linear-gradient(135deg, white, #cbd5e1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.cms-hero-centered .cms-hero-text h1 { max-width: 18ch; margin: 0 auto; }
.cms-hero-subtitle { max-width: 58ch; font-size: 1.08rem; color: var(--muted); line-height: 1.7; }
.cms-hero-side {
  position: relative;
  opacity: 0;
  transform: translateY(24px);
  animation: hero-in .7s var(--ease) .15s forwards;
}
.cms-hero-side-glow {
  position: absolute;
  inset: -2rem;
  background: rgba(16,185,129,.15);
  filter: blur(60px);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: .5; } 50% { opacity: .8; } }
.cms-hero-side-card {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(2,6,23,.4);
  transform: rotate(2deg);
  transition: transform .5s var(--ease);
}
.cms-hero-side-card:hover { transform: rotate(0); }
.cms-hero-side-card img { width: 100%; height: 100%; object-fit: cover; }

/* ── CMS video embed ─────────────────────────────── */
.cms-video-embed {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: 0 24px 80px rgba(2,6,23,.3);
  background: #000;
}
.cms-video-embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ── CMS figure ──────────────────────────────────── */
.cms-figure img {
  width: 100%;
  border-radius: var(--radius);
  box-shadow: 0 24px 80px rgba(2,6,23,.3);
  border: 1px solid var(--line);
}
.cms-figure figcaption {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-top: .75rem;
}

/* ── Feature cards ───────────────────────────────── */
.feature-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease);
}
.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,.06);
  box-shadow: 0 16px 48px rgba(2,6,23,.4);
}
.feature-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(52,211,153,.1);
  border: 1px solid rgba(52,211,153,.2);
  display: grid;
  place-items: center;
  transition: transform .25s var(--ease);
}
.feature-card:hover .feature-icon { transform: scale(1.1); }
.feature-icon img { width: 1.75rem; height: 1.75rem; object-fit: contain; }
.feature-card h3 { font-size: 1.1rem; color: var(--accent); margin-bottom: .5rem; }
.feature-card p { margin: 0; font-size: .92rem; }

.app-detail-hero {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  align-items: start;
  gap: clamp(2rem, 4vw, 3.5rem);
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: 2rem;
}
.app-detail-title {
  display: grid;
  gap: 1.1rem;
  align-content: start;
}
.app-detail-title h1 {
  max-width: 20ch;
  font-size: clamp(2rem, 3.5vw, 3rem) !important;
  line-height: 1.15;
  color: white;
}
.app-detail-title p {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 65ch;
  color: #cbd5e1;
}
.app-detail-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin: .5rem 0 1.5rem;
}
.app-detail-summary .metric {
  padding: .85rem 1.1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  flex: 1 1 auto;
  min-width: 120px;
}
.app-detail-summary .metric strong { font-size: 1.15rem; color: #e2e8f0; }
.app-detail-summary .metric span { font-size: .85rem; color: #94a3b8; }

.app-action-panel {
  margin-top: 1.5rem;
  padding: 1.6rem;
  border: 1px solid rgba(56,189,248,.2);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15,23,42,.85), rgba(2,6,23,.95));
  box-shadow: 0 24px 65px rgba(2,6,23,.5);
  backdrop-filter: blur(12px);
}
.compact-action-panel .action-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  padding-bottom: 1rem;
}
.compact-action-panel h2 {
  margin: .2rem 0 0;
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  color: white;
}
.app-detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: .65rem;
}
.app-detail-actions .button {
  min-height: 2.8rem;
  padding: .7rem 1.1rem;
  font-size: .95rem;
  border-radius: 14px;
  justify-content: center;
  text-align: center;
  white-space: normal;
  box-shadow: 0 4px 12px rgba(2,6,23,.2);
}
.action-note {
  margin: 1.25rem 0 0;
  color: #94a3b8;
  font-size: .9rem;
  line-height: 1.6;
  text-align: center;
}
.app-detail-cover {
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(2,6,23,.5);
  background: var(--panel-strong);
  padding: .5rem;
}
.app-detail-cover img {
  width: 100%;
  height: auto;
  min-height: 320px;
  max-height: 500px;
  object-fit: cover;
  border-radius: 20px;
}
.app-detail-side-stack {
  display: grid;
  gap: 1.25rem;
  margin-top: 1.25rem;
}
.sidebar-screenshots-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .5rem;
}
.sidebar-screenshots-grid .screenshot-thumb {
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.1);
}
.app-side-panel {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.app-side-panel h2 {
  margin: .2rem 0 .65rem;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.app-side-changelog .changelog-timeline {
  gap: .5rem;
  margin-top: .65rem;
  max-height: 360px;
  overflow: auto;
  padding-right: .2rem;
}
.app-side-changelog .changelog-item {
  padding: .65rem .7rem .65rem .85rem;
  font-size: .9rem;
}
.app-side-changelog .changelog-item ul {
  margin: .35rem 0 0 1rem;
  padding: 0;
}
.app-side-reviews .section-head {
  align-items: center;
  margin-bottom: .65rem;
}
.compact-review-list {
  display: grid;
  gap: .5rem;
  max-height: 300px;
  overflow: auto;
}
.compact-review {
  padding: .65rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(2,6,23,.25);
}
.compact-review strong {
  display: block;
  color: var(--text);
  font-size: .9rem;
}
.compact-review p {
  margin: .35rem 0 0;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}
.compact-review small,
.muted-text {
  display: block;
  margin-top: .35rem;
  color: var(--muted);
  font-size: .78rem;
}
.app-feedback-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 1rem;
}
.compact-feedback-grid {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  grid-template-columns: 1fr;
}
.changelog-timeline {
  display: grid;
  gap: .75rem;
  margin-top: 1rem;
}
.changelog-item {
  position: relative;
  padding: .85rem .95rem .85rem 1.1rem;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  background: rgba(255,255,255,.035);
}
.changelog-meta {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: .45rem;
}
.changelog-meta time {
  color: var(--muted);
  font-size: .78rem;
  font-weight: 700;
}
.changelog-item h3 {
  margin: .1rem 0 .45rem;
  font-size: 1rem;
}
.changelog-item ul {
  margin: 0;
  padding-left: 1.1rem;
}
.changelog-item li {
  color: var(--muted);
  line-height: 1.6;
  margin: .25rem 0;
}
.badge.added { color: #bfdbfe; border-color: rgba(59,130,246,.35); background: rgba(59,130,246,.1); }
.badge.fixed { color: #fde68a; border-color: rgba(250,204,21,.35); background: rgba(250,204,21,.1); }
.badge.removed { color: #fecaca; border-color: rgba(248,113,113,.35); background: rgba(248,113,113,.1); }
.badge.security { color: #ddd6fe; border-color: rgba(167,139,250,.35); background: rgba(167,139,250,.1); }
.badge.improved { color: #a7f3d0; border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.1); }

.contact-layout,
.account-auth-layout {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(320px, .8fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: start;
}
.contact-copy h1,
.account-auth-copy h1,
.account-hero h1 {
  font-size: clamp(2rem, 4.5vw, 3.4rem);
  line-height: 1;
  margin: .3rem 0 .85rem;
}
.contact-copy p,
.account-auth-copy p,
.account-hero p {
  color: var(--muted);
  max-width: 680px;
}
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: .8rem;
  margin-top: 1.4rem;
}
.contact-info-card {
  display: grid;
  gap: .3rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
  color: inherit;
}
.contact-info-card strong { color: var(--accent); }
.contact-info-card span { color: var(--muted); font-size: .92rem; line-height: 1.5; }
.contact-info-card[href^="mailto:"],
.contact-info-card[href^="sms:"] {
  border-color: rgba(52,211,153,.25);
}
.contact-form-card h2,
.account-auth-card h2 { margin: .2rem 0 .8rem; }
.captcha-box {
  display: grid;
  gap: .5rem;
  padding: .85rem;
  border: 1px solid rgba(52,211,153,.22);
  border-radius: 14px;
  background: rgba(52,211,153,.06);
}
.captcha-box span {
  color: #a7f3d0;
  font-size: .9rem;
  font-weight: 700;
}

.account-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 3vw, 1.6rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(52,211,153,.09), rgba(59,130,246,.08));
}
.account-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin: 1rem 0;
}
.account-stat {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.045);
}
.account-stat strong {
  display: block;
  font-size: clamp(1.35rem, 3vw, 2rem);
  color: white;
}
.account-stat span,
.license-date,
.support-pending {
  color: var(--muted);
  font-size: .86rem;
}
.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 1rem;
}
.account-side {
  display: grid;
  gap: 1rem;
  align-content: start;
}
.account-section-head,
.license-card-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.account-section-head h2,
.license-card h3,
.support-card h3 {
  margin: .2rem 0 0;
}
.license-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: .85rem;
}
.license-card,
.support-card {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.license-key-box {
  display: grid;
  gap: .3rem;
  padding: .75rem;
  border: 1px solid rgba(52,211,153,.18);
  border-radius: 12px;
  background: rgba(2,6,23,.35);
}
.license-key-box span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.license-key-box code {
  color: #a7f3d0;
  white-space: normal;
  word-break: break-word;
}
.support-card-list {
  display: grid;
  gap: .85rem;
}
.support-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: .75rem;
}
.support-card p { color: var(--muted); margin: .45rem 0 0; }
.support-reply {
  grid-column: 1 / -1;
  padding: .75rem;
  border: 1px solid rgba(52,211,153,.18);
  border-radius: 12px;
  background: rgba(52,211,153,.055);
}
.support-reply strong { color: #a7f3d0; }
.verify-card p,
.danger-card p { color: var(--muted); font-size: .9rem; }

.form-toast {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 400;
  max-width: min(420px, calc(100vw - 2rem));
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(15,23,42,.96);
  box-shadow: 0 20px 60px rgba(2,6,23,.45);
  color: white;
}
.form-toast.success { border-color: rgba(52,211,153,.35); }
.form-toast.error { border-color: rgba(248,113,113,.35); }
.form-toast button {
  float: right;
  margin-left: .75rem;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

/* ── Modals ──────────────────────────────────────── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(8px);
  display: grid;
  place-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}
.modal-content {
  position: relative;
  width: min(90vw, 560px);
  max-height: 90vh;
  overflow-y: auto;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  box-shadow: 0 24px 80px rgba(0,0,0,.6);
  transform: translateY(20px);
  transition: transform .25s var(--ease);
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.05);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.1rem;
}
.modal-close:hover {
  background: rgba(255,255,255,.1);
}

.footer-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  color: var(--muted);
}

.cms-button-row {
  display: flex;
  justify-content: center;
  gap: .75rem;
  flex-wrap: wrap;
}
.cms-list-panel,
.cms-html-panel {
  max-width: 860px;
  margin: 0 auto;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.cms-list-panel h2 { margin-bottom: 1rem; }
.cms-list-panel li { margin: .45rem 0; color: var(--muted); line-height: 1.65; }
.cms-html-panel pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--muted);
}

/* ── Grid 4 ──────────────────────────────────────── */
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ── Footer ──────────────────────────────────────── */
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 4rem auto 0;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; gap: 1rem; flex-wrap: wrap; color: var(--muted); }

/* ── Scrollbar ───────────────────────────────────── */
* { scrollbar-width: thin; scrollbar-color: rgba(52,211,153,.35) rgba(15,23,42,.7); }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: rgba(15,23,42,.72); }
::-webkit-scrollbar-thumb { background: rgba(52,211,153,.35); border-radius: 999px; border: 2px solid rgba(15,23,42,.72); }

/* ── Image fallback ──────────────────────────────── */
img[src=""], img:not([src]) { visibility: hidden; }

/* ── Reduced motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .hero > * { opacity: 1; transform: none; animation: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 820px) {
  .site-header, .site-footer, .section-head { align-items: flex-start; flex-direction: column; }
  .top-nav { justify-content: flex-start; }
  .hero, .grid-2, .grid-3, .grid-4, .filters, .form-grid { grid-template-columns: 1fr; }
  .blog-cols-2, .blog-cols-3, .blog-cols-4 { grid-template-columns: 1fr 1fr; }
  .gallery-cols-2, .gallery-cols-3, .gallery-cols-4 { grid-template-columns: 1fr 1fr; }
  .metric-grid { grid-template-columns: 1fr; }
  .screenshot-grid { grid-template-columns: 1fr 1fr; }
  .cms-hero-inner { grid-template-columns: 1fr; }
  .cms-hero-side { display: none; }
  .cms-hero { min-height: 60vh; }
  .app-detail-hero, .app-feedback-grid, .contact-layout, .account-auth-layout, .account-grid { grid-template-columns: 1fr; }
  .account-hero, .account-section-head, .license-card-head { flex-direction: column; align-items: stretch; }
  .account-stat-grid { grid-template-columns: 1fr; }
  .support-card { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .screenshot-grid { grid-template-columns: 1fr; }
  .blog-cols-2, .blog-cols-3, .blog-cols-4 { grid-template-columns: 1fr; }
  .gallery-cols-2, .gallery-cols-3, .gallery-cols-4 { grid-template-columns: 1fr; }
}

/* GLOBAL_UI_NORMALIZATION_20260610
   Conservative global layer.
   Applies to all current and future frontend pages without removing existing features.
*/

:root {
  --ui-font-main: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ui-text-base: clamp(0.95rem, 0.25vw + 0.9rem, 1.03rem);
  --ui-text-small: 0.875rem;
  --ui-text-muted: #94a3b8;
  --ui-text-main: #e5e7eb;
  --ui-card-bg: rgba(15, 23, 42, 0.72);
  --ui-card-border: rgba(148, 163, 184, 0.16);
  --ui-radius-card: 1.15rem;
  --ui-green: #34d399;
  --ui-amber: #f59e0b;
}

html,
body {
  font-family: var(--ui-font-main);
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body,
p,
li,
input,
textarea,
select,
button {
  font-family: var(--ui-font-main);
}

p,
li {
  font-size: var(--ui-text-base);
  line-height: 1.65;
}

.section p,
.panel p,
.app-card p,
.blog-content p,
.contact-page p,
.app-detail-page p {
  color: var(--ui-text-muted);
}

h1,
h2,
h3,
h4 {
  letter-spacing: -0.04em;
  overflow: visible;
}

.blog-content,
.blog-post-content,
.post-content,
.article-content,
.contact-page,
.app-detail-v3-description,
.app-detail-v3-details-body {
  font-size: var(--ui-text-base);
  line-height: 1.68;
}

.blog-content p,
.blog-post-content p,
.post-content p,
.article-content p {
  max-width: 78ch;
  font-size: clamp(0.95rem, 0.22vw + 0.9rem, 1.04rem);
  line-height: 1.72;
}

.blog-content h1,
.blog-post-content h1,
.post-content h1,
.article-content h1 {
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1.05;
}

.blog-content h2,
.blog-post-content h2,
.post-content h2,
.article-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
  margin-top: 1.6rem;
}

.contact-page p,
.contact-info-card span,
.contact-form p {
  font-size: clamp(0.94rem, 0.22vw + 0.88rem, 1rem);
  line-height: 1.65;
}

/* App detail professional compact layout */
.app-detail-v3-grid {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(1.25rem, 2.6vw, 2.1rem);
}

.app-detail-v3-heading h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
  max-width: 700px;
  padding-bottom: 0.08em;
  overflow: visible;
}

.app-detail-v3-description {
  max-width: 720px;
  font-size: clamp(0.94rem, 0.24vw + 0.88rem, 1.02rem);
  line-height: 1.68;
}

.app-detail-v3-details-card {
  margin-top: 1rem;
  max-width: 760px;
  border-radius: var(--ui-radius-card);
  background: var(--ui-card-bg);
  border: 1px solid var(--ui-card-border);
  overflow: hidden;
}

.app-detail-v3-details-card summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  color: var(--ui-text-main);
  font-weight: 800;
  font-size: 0.92rem;
  list-style: none;
}

.app-detail-v3-details-card summary::-webkit-details-marker {
  display: none;
}

.app-detail-v3-details-card summary strong {
  width: 1.8rem;
  height: 1.8rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.12);
  color: var(--ui-green);
  border: 1px solid rgba(52, 211, 153, 0.22);
}

.app-detail-v3-details-card[open] summary strong {
  transform: rotate(45deg);
}

.app-detail-v3-details-body {
  padding: 0 1rem 1rem;
  color: var(--ui-text-muted);
  font-size: 0.92rem;
  line-height: 1.62;
  max-height: 430px;
  overflow: auto;
}

.app-detail-v3-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.15rem 0;
}

.app-detail-v3-fact {
  padding: 0.78rem;
  border-radius: 0.9rem;
}

.app-detail-v3-fact strong {
  font-size: clamp(0.92rem, 1vw, 1.08rem);
}

.app-detail-v3-fact span {
  font-size: 0.72rem;
}

.app-detail-v3-purchase {
  margin-top: 1.05rem;
}

.app-detail-v3-actions {
  gap: 0.55rem;
}

.app-detail-v3-action,
.button.app-detail-v3-action {
  min-height: 2.42rem;
  padding: 0.52rem 0.72rem;
  border-radius: 0.72rem;
  font-size: 0.79rem;
  font-weight: 800;
}

.app-detail-v3-action-stripe,
.app-detail-v3-action-payment,
.button-primary.app-detail-v3-action {
  background: linear-gradient(135deg, var(--ui-green), #22c55e);
  color: #03130b;
  border-color: rgba(52, 211, 153, 0.35);
}

.app-detail-v3-action-demo,
.button-warning.app-detail-v3-action {
  background: linear-gradient(135deg, var(--ui-amber), #f97316);
  color: #120802;
  border-color: rgba(245, 158, 11, 0.35);
}

.app-detail-v3-purchase-note {
  font-size: 0.82rem;
  line-height: 1.48;
  text-align: center;
}

.app-detail-v3-sidebar {
  gap: 0.8rem;
}

.app-detail-v3-main-image {
  padding: 0.6rem;
}

.app-detail-v3-main-image img {
  max-height: 285px;
  object-fit: cover;
}

.app-detail-v3-screenshots {
  padding: 0.85rem;
}

.app-detail-v3-screenshot-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.app-detail-v3-screenshot img {
  height: 56px;
  border-radius: 0.55rem;
}

.app-detail-v3-video iframe,
.app-detail-v3-video video {
  min-height: 185px;
}

.app-detail-v3-reviews {
  margin-top: 0.85rem;
}

.app-detail-v3-review p {
  font-size: 0.88rem;
}

.app-detail-v3-inline-actions {
  gap: 0.5rem;
}

.app-detail-v3-small-button {
  min-height: 2.25rem;
  padding: 0.48rem 0.72rem;
  font-size: 0.78rem;
}

/* Frontend button consistency for all current and future app cards */
.app-card .button,
.marketplace .button,
.apps-page .button,
.app-detail-page .button {
  border-radius: 0.72rem;
}

.app-card .button-primary,
.marketplace .button-primary,
.apps-page .button-primary {
  background: linear-gradient(135deg, var(--ui-green), #22c55e);
  color: #03130b;
}

.app-card .button-warning,
.marketplace .button-warning,
.apps-page .button-warning {
  background: linear-gradient(135deg, var(--ui-amber), #f97316);
  color: #120802;
}

/* Mobile hamburger support for existing header markup */
.site-header,
.header,
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.mobile-menu-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.82);
  color: var(--ui-text-main);
  cursor: pointer;
}

.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  display: block;
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.mobile-menu-toggle {
  flex-direction: column;
  gap: 0.24rem;
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  nav[data-mobile-nav],
  .site-nav[data-mobile-nav],
  .nav[data-mobile-nav],
  .main-nav[data-mobile-nav] {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  }

  body.mobile-nav-open nav[data-mobile-nav],
  body.mobile-nav-open .site-nav[data-mobile-nav],
  body.mobile-nav-open .nav[data-mobile-nav],
  body.mobile-nav-open .main-nav[data-mobile-nav] {
    display: grid !important;
    gap: 0.4rem;
  }

  body.mobile-nav-open nav[data-mobile-nav] a,
  body.mobile-nav-open .site-nav[data-mobile-nav] a,
  body.mobile-nav-open .nav[data-mobile-nav] a,
  body.mobile-nav-open .main-nav[data-mobile-nav] a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    background: rgba(2, 6, 23, 0.34);
  }

  .app-detail-v3-grid {
    grid-template-columns: 1fr;
  }

  .app-detail-v3-sidebar {
    position: static;
    order: -1;
  }

  .app-detail-v3-heading h1 {
    font-size: clamp(1.85rem, 10vw, 2.85rem);
  }

  .app-detail-v3-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-detail-v3-main-image img {
    max-height: 245px;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .app-detail-v3 .container {
    width: min(100% - 24px, 1180px);
  }

  .app-detail-v3-actions {
    grid-template-columns: 1fr;
  }

  .app-detail-v3-facts {
    grid-template-columns: 1fr;
  }

  .app-detail-v3-screenshot-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-detail-v3-screenshot img {
    height: 48px;
  }

  .app-detail-v3-details-body {
    max-height: 360px;
  }
}

/* ACTIVE_APP_TEMPLATE_POLISH_20260610
   Targets the real active app-detail.php classes from inspection.
   Applies to all current and future app detail pages.
*/

:root {
  --app-ui-font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --app-ui-text: #e5e7eb;
  --app-ui-muted: #94a3b8;
  --app-ui-panel: rgba(15, 23, 42, 0.74);
  --app-ui-border: rgba(148, 163, 184, 0.16);
  --app-ui-green: #34d399;
  --app-ui-orange: #f59e0b;
}

body,
button,
input,
textarea,
select {
  font-family: var(--app-ui-font);
}

body,
p,
li {
  font-size: clamp(0.94rem, 0.22vw + 0.88rem, 1.02rem);
  line-height: 1.65;
}

.blog-content p,
.blog-post-content p,
.post-content p,
.article-content p,
.contact-page p,
.contact-info-card span,
.app-detail-page p {
  font-size: clamp(0.94rem, 0.22vw + 0.88rem, 1.02rem);
  line-height: 1.65;
}

.blog-content h1,
.blog-post-content h1,
.post-content h1,
.article-content h1 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.06;
}

.blog-content h2,
.blog-post-content h2,
.post-content h2,
.article-content h2 {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.16;
}

.app-detail-page .app-detail-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(1.25rem, 2.8vw, 2.2rem);
  align-items: start;
}

.app-detail-page .app-detail-title {
  min-width: 0;
}

.app-detail-page .app-detail-title h1 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.45vw, 3.35rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.045em !important;
  overflow: visible !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
  hyphens: none !important;
  padding-bottom: 0.08em;
}

.app-detail-intro-text {
  max-width: 720px;
  color: var(--app-ui-muted);
  font-size: clamp(0.94rem, 0.22vw + 0.88rem, 1.01rem) !important;
  line-height: 1.68 !important;
  margin-bottom: 1rem;
}

.app-detail-details-card {
  max-width: 760px;
  margin: 0.95rem 0 1.2rem;
  border-radius: 1.05rem;
  background: var(--app-ui-panel);
  border: 1px solid var(--app-ui-border);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(2, 6, 23, 0.18);
}

.app-detail-details-card summary {
  min-height: 2.9rem;
  padding: 0.78rem 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  color: var(--app-ui-text);
  font-weight: 800;
  font-size: 0.9rem;
  list-style: none;
}

.app-detail-details-card summary::-webkit-details-marker {
  display: none;
}

.app-detail-details-card summary strong {
  width: 1.75rem;
  height: 1.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--app-ui-green);
  background: rgba(52, 211, 153, 0.12);
  border: 1px solid rgba(52, 211, 153, 0.22);
  transition: transform 0.18s ease;
}

.app-detail-details-card[open] summary strong {
  transform: rotate(45deg);
}

.app-detail-details-body {
  padding: 0 0.95rem 1rem;
  max-height: 410px;
  overflow: auto;
  color: var(--app-ui-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

.app-detail-page .app-detail-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.1rem 0;
}

.app-detail-page .metric {
  padding: 0.75rem;
  border-radius: 0.9rem;
}

.app-detail-page .metric strong {
  font-size: clamp(0.92rem, 1vw, 1.08rem);
  line-height: 1.1;
}

.app-detail-page .metric span {
  font-size: 0.72rem;
}

.app-detail-page .compact-action-panel {
  margin-top: 1rem;
  border-radius: 1.1rem;
}

.app-detail-page .action-panel-head h2 {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
}

.app-detail-page .app-detail-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem !important;
}

.app-detail-page .app-detail-actions .button {
  min-height: 2.42rem !important;
  padding: 0.52rem 0.72rem !important;
  border-radius: 0.72rem !important;
  font-size: 0.79rem !important;
  line-height: 1.1 !important;
  font-weight: 800 !important;
}

.app-detail-page .app-detail-actions .button-primary,
.app-detail-page .app-detail-actions .button-success {
  background: linear-gradient(135deg, var(--app-ui-green), #22c55e) !important;
  color: #03130b !important;
  border-color: rgba(52, 211, 153, 0.35) !important;
}

.app-detail-page .app-detail-actions .button-warning {
  background: linear-gradient(135deg, var(--app-ui-orange), #f97316) !important;
  color: #120802 !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
}

.app-detail-page .action-note {
  font-size: 0.82rem !important;
  line-height: 1.48 !important;
  text-align: center;
}

.app-detail-page .app-side-reviews {
  margin-top: 1rem !important;
  border-radius: 1.1rem;
}

.app-detail-page .app-side-reviews h2 {
  font-size: clamp(1.15rem, 1.55vw, 1.45rem);
}

.app-detail-page .compact-review p {
  font-size: 0.88rem !important;
  line-height: 1.52 !important;
}

.app-detail-page .app-side-reviews .button {
  min-height: 2.25rem !important;
  padding: 0.45rem 0.72rem !important;
  border-radius: 0.72rem !important;
  font-size: 0.78rem !important;
}

.app-detail-page .app-detail-cover {
  position: sticky;
  top: 6rem;
  display: grid;
  gap: 0.8rem;
  align-self: start;
}

.app-detail-page .app-detail-cover > img,
.app-detail-page .app-detail-cover > button > img {
  width: 100%;
  max-height: 280px !important;
  object-fit: cover;
  border-radius: 0.95rem !important;
}

.app-detail-page .app-detail-side-stack {
  display: grid;
  gap: 0.8rem;
}

.app-detail-page .app-detail-side-stack h2,
.app-detail-page .app-detail-side-stack h3 {
  font-size: 1rem !important;
  line-height: 1.15 !important;
}

.app-detail-page .app-detail-side-stack img {
  max-height: 62px !important;
  object-fit: cover !important;
  border-radius: 0.55rem !important;
}

.app-detail-page .app-detail-side-stack [class*="grid"],
.app-detail-page .app-detail-side-stack [style*="grid"] {
  gap: 0.45rem !important;
}

.app-detail-page .app-detail-side-stack iframe,
.app-detail-page .app-detail-side-stack video {
  width: 100%;
  min-height: 180px;
  border-radius: 0.85rem;
}

/* Global button colors for all current and future app cards */
.app-card .button-primary,
.apps-page .button-primary,
.marketplace .button-primary,
.app-list .button-primary {
  background: linear-gradient(135deg, var(--app-ui-green), #22c55e) !important;
  color: #03130b !important;
}

.app-card .button-warning,
.apps-page .button-warning,
.marketplace .button-warning,
.app-list .button-warning {
  background: linear-gradient(135deg, var(--app-ui-orange), #f97316) !important;
  color: #120802 !important;
}

/* Mobile responsiveness */
.mobile-menu-toggle {
  display: none;
  width: 2.45rem;
  height: 2.45rem;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.24rem;
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.86);
  color: var(--app-ui-text);
  cursor: pointer;
}

.mobile-menu-toggle span,
.mobile-menu-toggle::before,
.mobile-menu-toggle::after {
  content: "";
  width: 1.1rem;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

@media (max-width: 860px) {
  .mobile-menu-toggle {
    display: inline-flex;
  }

  nav[data-mobile-nav] {
    display: none !important;
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    padding: 0.85rem;
    border-radius: 1rem;
    background: rgba(15, 23, 42, 0.98);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
  }

  body.mobile-nav-open nav[data-mobile-nav] {
    display: grid !important;
    gap: 0.4rem;
  }

  body.mobile-nav-open nav[data-mobile-nav] a {
    padding: 0.75rem 0.85rem;
    border-radius: 0.7rem;
    background: rgba(2, 6, 23, 0.34);
  }

  .app-detail-page .app-detail-hero {
    grid-template-columns: 1fr;
  }

  .app-detail-page .app-detail-cover {
    position: static;
    order: -1;
  }

  .app-detail-page .app-detail-title h1 {
    font-size: clamp(1.85rem, 10vw, 2.85rem) !important;
  }

  .app-detail-page .app-detail-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-detail-page .app-detail-cover > img {
    max-height: 240px !important;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .app-detail-page .app-detail-actions {
    grid-template-columns: 1fr;
  }

  .app-detail-page .app-detail-summary {
    grid-template-columns: 1fr;
  }

  .app-detail-page .app-detail-side-stack img {
    max-height: 50px !important;
  }
}

/* APP_BUTTONS_SCREENSHOT_GALLERY_VIEWER_20260610
   Targets the active app detail page.
   Keeps existing layout, only fixes button colors and screenshot/gallery behavior.
*/

.app-detail-page .app-detail-actions .button.app-action-buy-normalized {
  background: linear-gradient(135deg, #34d399, #22c55e) !important;
  color: #03130b !important;
  border-color: rgba(52, 211, 153, 0.45) !important;
}

.app-detail-page .app-detail-actions .button.app-action-demo-normalized {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #120802 !important;
  border-color: rgba(245, 158, 11, 0.45) !important;
}

.app-detail-page .app-detail-actions .button.app-action-neutral-normalized {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.18) !important;
}

.app-detail-page .app-detail-actions .button {
  min-height: 2.35rem !important;
  padding: 0.48rem 0.7rem !important;
  border-radius: 0.72rem !important;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  line-height: 1.1 !important;
}

.app-detail-page .app-screenshot-panel-normalized {
  padding: 0.85rem !important;
  border-radius: 1rem !important;
}

.app-detail-page .app-screenshot-panel-normalized h2,
.app-detail-page .app-screenshot-panel-normalized h3 {
  margin-bottom: 0.7rem !important;
  font-size: 0.95rem !important;
}

.app-screenshot-square-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0.5rem !important;
}

.app-screenshot-square {
  display: block !important;
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  padding: 0 !important;
  border: 1px solid rgba(148, 163, 184, 0.18) !important;
  border-radius: 0.65rem !important;
  overflow: hidden !important;
  background: rgba(2, 6, 23, 0.62) !important;
  cursor: zoom-in !important;
}

.app-screenshot-square img {
  width: 100% !important;
  height: 100% !important;
  max-height: none !important;
  object-fit: cover !important;
  display: block !important;
  border-radius: 0 !important;
}

.app-screenshot-see-more {
  width: 100%;
  margin-top: 0.65rem;
  min-height: 2.25rem !important;
  padding: 0.45rem 0.7rem !important;
  font-size: 0.78rem !important;
  border-radius: 0.7rem !important;
}

.app-main-image-clickable {
  cursor: zoom-in !important;
}

.app-gallery-viewer-open {
  overflow: hidden !important;
}

.app-gallery-viewer {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.app-gallery-viewer.is-open {
  display: flex;
}

.app-gallery-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.84);
  backdrop-filter: blur(14px);
}

.app-gallery-viewer-dialog {
  position: relative;
  z-index: 1;
  width: min(1100px, calc(100vw - 2rem));
  height: min(760px, calc(100vh - 2rem));
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3.2rem 4.2rem 2.7rem;
  border-radius: 1.2rem;
  background: #111827;
  border: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.app-gallery-viewer-dialog img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0.85rem;
  background: #020617;
}

.app-gallery-viewer-close,
.app-gallery-viewer-nav {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.95);
  color: #e5e7eb;
  cursor: pointer;
}

.app-gallery-viewer-close {
  top: 0.85rem;
  right: 0.85rem;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 999px;
  font-size: 1.4rem;
  line-height: 1;
}

.app-gallery-viewer-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 2.7rem;
  height: 3.6rem;
  border-radius: 0.85rem;
  font-size: 2.2rem;
  line-height: 1;
}

.app-gallery-viewer-prev {
  left: 0.85rem;
}

.app-gallery-viewer-next {
  right: 0.85rem;
}

.app-gallery-viewer-count {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(2, 6, 23, 0.74);
  border: 1px solid rgba(148, 163, 184, 0.16);
  font-size: 0.78rem;
  font-weight: 800;
}

@media (max-width: 640px) {
  .app-screenshot-square-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 0.38rem !important;
  }

  .app-gallery-viewer-dialog {
    padding: 3rem 0.9rem 2.5rem;
  }

  .app-gallery-viewer-nav {
    width: 2.35rem;
    height: 3rem;
    font-size: 1.8rem;
  }
}

/* CLICKABLE_DESCRIPTION_BLOG_LINKS_20260610
   Makes plain links inside app descriptions and blog content visibly clickable.
*/

.app-detail-page .app-detail-intro-text a,
.app-detail-page .app-detail-details-body a,
.blog-content a,
.blog-post-content a,
.post-content a,
.article-content a,
.blog-detail a,
.blog-post a,
.content-body a,
.auto-clickable-link {
  color: #38bdf8 !important;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.app-detail-page .app-detail-intro-text a:hover,
.app-detail-page .app-detail-details-body a:hover,
.blog-content a:hover,
.blog-post-content a:hover,
.post-content a:hover,
.article-content a:hover,
.blog-detail a:hover,
.blog-post a:hover,
.content-body a:hover,
.auto-clickable-link:hover {
  color: #7dd3fc !important;
  text-decoration-color: #7dd3fc;
}

.app-detail-page .app-detail-intro-text a:focus-visible,
.app-detail-page .app-detail-details-body a:focus-visible,
.blog-content a:focus-visible,
.blog-post-content a:focus-visible,
.post-content a:focus-visible,
.article-content a:focus-visible,
.blog-detail a:focus-visible,
.blog-post a:focus-visible,
.content-body a:focus-visible,
.auto-clickable-link:focus-visible {
  outline: 2px solid rgba(56, 189, 248, 0.75);
  outline-offset: 3px;
  border-radius: 0.25rem;
}

/* APP_ACTION_BUTTON_COLOR_ONLY_FIX_20260610
   Color-only fix for app action buttons.
   Does not change layout, review, report, screenshots, image viewer, or backend logic.
*/

.app-detail-page .app-detail-actions .button.app-action-buy-normalized,
.app-detail-page .app-detail-actions a.button.app-action-buy-normalized {
  background: linear-gradient(135deg, #34d399, #22c55e) !important;
  color: #03130b !important;
  border-color: rgba(52, 211, 153, 0.5) !important;
  box-shadow: 0 10px 24px rgba(34, 197, 94, 0.14) !important;
}

.app-detail-page .app-detail-actions .button.app-action-demo-normalized,
.app-detail-page .app-detail-actions a.button.app-action-demo-normalized {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #120802 !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.14) !important;
}

.app-detail-page .app-detail-actions .button.app-action-neutral-normalized,
.app-detail-page .app-detail-actions a.button.app-action-neutral-normalized {
  background: rgba(15, 23, 42, 0.92) !important;
  color: #e5e7eb !important;
  border-color: rgba(148, 163, 184, 0.2) !important;
  box-shadow: none !important;
}
