:root {
  --app-bg: #14161b;
  --app-card: #121418;
  --app-border: rgba(255, 255, 255, 0.04);
  --app-text: #f0f0f2;
  --app-muted: rgba(255, 255, 255, 0.45);
  --app-accent: #ffb400;
  --app-radius: 16px;
  --app-radius-sm: 8px;
  --safe-b: env(safe-area-inset-bottom, 20px);
  --safe-t: env(safe-area-inset-top, 20px);
  --shell-w: 480px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; font-family: "Urbanist", sans-serif; }

body {
  background: var(--app-bg);
  color: var(--app-text);
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}

a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; background: transparent; border: none; }
img, video { max-width: 100%; display: block; }
ul, ol { list-style: none; }

/* ── Shell & Frame ─────────────────────── */
.app-frame { min-height: 100dvh; }
.app-shell {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

@media (min-width: 768px) {
  .app-frame { display: grid; place-items: center; padding: 32px 16px; background: #0b0d10; }
  .app-shell {
    width: min(100%, var(--shell-w));
    min-height: 800px;
    height: calc(100dvh - 64px);
    border-radius: 36px;
    background: var(--app-bg);
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.8);
    overflow-y: auto;
    position: relative;
    border: 8px solid #101216;
    overflow-x: hidden;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .app-shell::-webkit-scrollbar {
    display: none;
  }
}

/* ── Header ────────────────────────────── */
.app-header {
  padding: calc(var(--safe-t) + 20px) 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 22, 27, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 0;
  transition: background-color 0.22s ease, backdrop-filter 0.22s ease, -webkit-backdrop-filter 0.22s ease;
}

.app-header.is-scrolled {
  background: rgba(8, 10, 14, 0.98);
}
.app-brand-name {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}
.app-brand-name .hl {
  color: var(--app-accent);
}
.app-brand-sub {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--app-muted);
  margin-top: 4px;
}
.app-header-actions .app-icon-btn {
  color: var(--app-text);
  font-size: 20px;
  transition: opacity 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--app-radius-sm);
  background: transparent;
}
.app-header-actions .app-icon-btn:active { opacity: 0.5; }

/* ── Main Layout ───────────────────────── */
.app-main {
  flex: 1;
  padding: 32px 24px calc(100px + var(--safe-b));
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.app-cms-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 2px 8px 14px;
}

.app-cms-logo {
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 800;
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: #f4f5f7;
}

.app-cms-logo-dot {
  color: var(--app-accent);
}

.app-cms-tagline {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.app-cms-embed-wrap {
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  min-height: clamp(520px, 68dvh, 760px);
}

.app-cms-embed {
  width: 100%;
  min-height: clamp(520px, 68dvh, 760px);
  border: 0;
  display: block;
  background: transparent;
}

.app-discovery-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.app-discovery-logo {
  font-size: clamp(30px, 8.5vw, 44px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.96;
  color: #f4f5f7;
  margin: 0;
}

.app-discovery-logo span {
  color: var(--app-accent);
}

.app-discovery-sub {
  color: rgba(255,255,255,0.52);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  font-weight: 700;
  margin: 0;
}

.app-discovery-search {
  width: 100%;
  max-width: 620px;
  margin: 4px auto 0;
  border-bottom: 1px solid rgba(255,255,255,0.2);
}

.app-discovery-search-input {
  width: 100%;
  background: transparent;
  border: 0;
  outline: 0;
  color: rgba(255,255,255,0.86);
  text-align: center;
  font-size: clamp(13px, 3.2vw, 16px);
  line-height: 1.3;
  padding: 14px 0 12px;
}

.app-discovery-search-input::placeholder {
  color: rgba(255,255,255,0.5);
  font-size: clamp(13px, 3.2vw, 16px);
}

.app-forum-auth {
  display: flex;
  gap: 10px;
  margin-top: -12px;
}

.app-forum-auth-link {
  flex: 1;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  background: var(--app-card);
}

.app-forum-auth-link.is-active {
  background: var(--app-accent);
  color: #15171c;
}

.app-forum-member-card {
  background: var(--app-card);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.app-forum-member-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-forum-member-head img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.app-forum-member-head strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
}

.app-forum-member-head p {
  margin: 3px 0 0;
  font-size: 11px;
  color: rgba(255,255,255,0.58);
}

.app-forum-member-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.app-forum-action-btn {
  min-height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 10px;
}

.app-forum-action-btn.is-active {
  background: var(--app-accent);
  color: #15171c;
}

.app-forum-embed-wrap {
  width: 100%;
  border-radius: 0;
  overflow: visible;
  background: transparent;
  min-height: clamp(600px, 72dvh, 940px);
}

.app-forum-embed {
  width: 100%;
  min-height: clamp(600px, 72dvh, 940px);
  border: 0;
  background: transparent;
  display: block;
}

.app-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: -16px;
}

.app-page-link,
.app-page-dots {
  min-width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.app-page-link {
  background: var(--app-card);
  color: rgba(255,255,255,0.76);
}

.app-page-link.is-active {
  background: var(--app-accent);
  color: #15171c;
}

.app-page-dots {
  color: rgba(255,255,255,0.5);
}

.app-empty-state {
  color: rgba(255,255,255,0.6);
  font-size: 13px;
  line-height: 1.6;
  text-align: center;
}

.app-contact-secondary {
  border: 0 !important;
  box-shadow: none !important;
}

.app-contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.app-contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.app-contact-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-contact-field span {
  color: rgba(255,255,255,0.66);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.app-contact-field input,
.app-contact-field textarea {
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: var(--app-card);
  color: #fff;
  padding: 12px 14px;
  font-size: 14px;
  outline: none;
}

.app-contact-field textarea {
  resize: vertical;
  min-height: 120px;
}

.app-contact-check {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255,255,255,0.62);
  font-size: 12px;
  line-height: 1.5;
}

.app-contact-actions {
  display: flex;
  gap: 10px;
}

.app-contact-actions .app-btn-yellow,
.app-contact-actions .app-btn-dark {
  flex: 1;
}

.app-contact-status {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

.app-contact-status.is-success {
  background: rgba(25, 136, 98, 0.18);
  color: #66f3bf;
}

.app-contact-status.is-error {
  background: rgba(223, 21, 41, 0.14);
  color: #ffb7bf;
}

.app-honeypot {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 520px) {
  .app-discovery-search-input {
    font-size: 14px;
    padding: 9px 0 9px;
  }

  .app-discovery-sub {
    letter-spacing: 0.14em;
    font-size: 9px;
  }
}

.app-section-head { margin-bottom: 24px; }
.app-section-head h3 {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}
.mobile-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.mobile-eyebrow-line {
  width: 3px;
  height: 14px;
  background-color: var(--app-accent);
  border-radius: 2px;
}
.mobile-eyebrow-text {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #fff;
  text-shadow: 1px 0 0 rgba(255,180,0,0.5), -1px 0 0 rgba(0,255,255,0.3);
}

/* ── Common Utilities ──────────────────── */
.hero-actions-container {
  margin: 24px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: 100%;
}
.hero-action-dark,
.hero-action-yellow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0 4px;
  border: 0;
  text-align: center;
}
.hero-action-dark {
  background-color: #121418;
  color: #fff;
}
.hero-action-yellow {
  background-color: var(--app-accent);
  color: #121418;
}

.app-article {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app-article-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--app-muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-article h1 {
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: #fff;
}
.app-article-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.app-article-info span {
  background: var(--app-card);
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-article-cover {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--app-radius);
  object-fit: cover;
  background: var(--app-card);
}
.app-article-content {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
}
.app-article-content p { margin-bottom: 24px; }
.app-article-content h2, .app-article-content h3 { color: #fff; margin: 32px 0 16px; font-weight: 800; }
.app-article-content ul { padding-left: 16px; margin-bottom: 24px; list-style: disc; }
.app-article-content li { margin-bottom: 8px; }

/* ── Base Lists (Blog/Forum) ───────────── */
.app-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.app-list-item {
  background: var(--app-card);
  padding: 24px;
  border-radius: var(--app-radius);
  border: 1px solid transparent;
  display: block;
}
.app-list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.app-list-meta {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.app-list-item strong {
  display: block;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 8px;
  color: #fff;
}
.app-list-item p {
  color: var(--app-muted);
  font-size: 14px;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── DIGITAL WORKS ─────────────────────── */
.app-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 12px;
  align-items: stretch;
}
.app-carousel::-webkit-scrollbar { display: none; }
.app-slide {
  width: 320px;
  flex: 0 0 auto;
  background: var(--app-card);
  border-radius: 20px;
  padding: 24px;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.app-slide.is-hidden { display: none !important; }
.app-slide-badge {
  display: inline-flex;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
}
.pkg-badge-red { background: #3c141d; color: #ffb8c0; }
.pkg-badge-green { background: #113626; color: #a3ffd9; }
.pkg-badge-purple { background: #4a1532; color: #ffb8d4; }
.app-slide-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-slide-num {
  font-size: 14px;
  font-weight: 800;
  color: rgba(255,255,255,0.15);
}
.app-slide-meta--right {
  color: var(--app-accent);
  font-weight: 800;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: right;
  flex: 1;
}
.app-slide-meta--pkg { color: var(--app-accent); font-weight: 800; font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }

.app-filters {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 8px;
  align-items: center;
  background: var(--app-card);
  border-radius: 16px;
  margin-bottom: 16px;
}
.app-filters::-webkit-scrollbar { display: none; }
.app-filter-btn {
  background: transparent;
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.app-filter-btn i { font-size: 14px; }
.app-filter-btn.is-active { background: #ffb400; color: #14161b; }

.app-slide-img {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--app-radius-sm);
  overflow: hidden;
  background: var(--app-bg);
  flex-shrink: 0;
}
.app-slide-img img { width: 100%; height: 100%; object-fit: cover; }
.app-slide-meta {
  color: var(--app-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.app-slide strong { font-size: 22px; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; color: #fff; margin-bottom: -4px;}
.app-slide p { color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.6; padding-bottom: 8px; }
.app-slide-price {
  color: #fff;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 700;
  margin-top: 4px;
  margin-bottom: 8px;
}
.app-slide-action { margin-top: auto; padding-top: 16px; display: flex; gap: 12px; align-items: center; }
.app-btn-dark {
  display: inline-flex; justify-content: center; align-items: center; padding: 14px 20px;
  background: rgba(255,255,255,0.06); color: #fff;
  border-radius: var(--app-radius-sm);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  transition: 0.2s;
  min-width: 120px;
}
.app-btn-line {
  display: inline-flex; justify-content: flex-start; align-items: center; padding: 14px 24px;
  background: rgba(255,255,255,0.06); color: #fff;
  border-radius: var(--app-radius-sm);
  font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  transition: 0.2s;
  position: relative;
  min-width: 100px;
}
.app-btn-line::after {
  content: "";
  position: absolute;
  left: 24px;
  bottom: 9px;
  width: 24px;
  height: 2px;
  background: var(--app-accent);
}
.app-btn-yellow {
  display: inline-flex; justify-content: center; align-items: center; padding: 14px 20px;
  background: var(--app-accent); color: #14161b;
  border-radius: var(--app-radius-sm);
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  transition: 0.2s;
  min-width: 120px;
  border-bottom: 2px solid #14161b; /* To maintain size consistency */
}
.app-btn-text {
  font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); background: transparent; padding: 14px 0;
}
.app-features {
  padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px;
}
.app-features li {
  display: flex; align-items: flex-start; gap: 12px;
  color: rgba(255,255,255,0.6); font-size: 13px; line-height: 1.4;
}
.app-features li i { color: var(--app-accent); font-size: 15px; margin-top: -1px; }


/* ── CMS Tabbar ────────────────────────── */
.app-tabbar {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: calc(76px + var(--safe-b));
  padding-bottom: calc(12px + var(--safe-b));
  display: flex;
  justify-content: center;
  align-items: flex-end;
  z-index: 100;
  pointer-events: none;
  background: linear-gradient(to top, rgba(20, 22, 27, 1) 20%, rgba(20, 22, 27, 0) 100%);
}

@media (min-width: 768px) {
  .app-tabbar {
    width: min(100%, var(--shell-w));
    margin: 0 auto;
    position: sticky;
    bottom: -1px;
    border-radius: 0 0 36px 36px;
  }
}

.app-tabbar-inner {
  background: #17191f;
  border: 0;
  border-radius: 20px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 12px;
  gap: 12px;
  pointer-events: auto;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.app-tab {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.4);
  font-size: 18px;
  transition: all 0.2s;
  background: transparent;
}
.app-tab i { font-weight: 300; }
.app-tab.is-active {
  color: #fff;
  background: transparent;
}


/* ── Index Mapped Elements ─────────────── */
.mapped-hero {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 10px;
}
.mapped-hero h1 {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
.mapped-hero h1 span {
  color: var(--app-accent); /* Small accent in text */
}
.mapped-hero p {
  color: var(--app-muted);
  font-size: 16px;
  line-height: 1.6;
}
.mapped-hero-btn {
  background: var(--app-card);
  border: 1px solid var(--app-border);
  color: #fff;
  padding: 14px 24px;
  border-radius: var(--app-radius-sm);
  display: inline-flex;
  font-weight: 700;
  font-size: 14px;
  gap: 10px;
  align-items: center;
}
.mapped-video {
  width: 100%;
  aspect-ratio: 16/10;
  border-radius: var(--app-radius);
  object-fit: cover;
  background: var(--app-card);
  margin-top: 10px;
}

.mapped-quote {
  background: var(--app-card);
  border-left: 3px solid var(--app-accent);
  padding: 20px;
  border-radius: var(--app-radius-sm);
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255,255,255,0.8);
  font-style: italic;
  margin-top: 24px;
}

.mapped-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mapped-grid-item {
  background: var(--app-card);
  padding: 16px;
  border-radius: var(--app-radius-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mapped-grid-item time {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--app-accent);
  letter-spacing: 0.05em;
}
.mapped-grid-item h4 {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  margin: 0;
}
.mapped-grid-item p {
  font-size: 12px;
  color: var(--app-muted);
  line-height: 1.5;
  margin: 0;
}

.mapped-faq {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-box {
  background: var(--app-card);
  border-radius: var(--app-radius-sm);
  padding: 16px;
}
.faq-box summary {
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  list-style: none; /* Hide default arrow */
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.faq-box summary::-webkit-details-marker { display: none; }
.faq-box summary i {
  color: var(--app-muted);
  font-size: 18px;
  flex-shrink: 0;
}
.faq-box p {
  margin-top: 12px;
  color: var(--app-muted);
  font-size: 13px;
  line-height: 1.6;
}
