:root {
  --ink: #181b22;
  --muted: #68717d;
  --paper: #fbf7ef;
  --surface: #ffffff;
  --line: #e6ddcf;
  --jade: #1f6f63;
  --jade-dark: #164f49;
  --cinnabar: #b9573f;
  --gold: #d7a84f;
  --night: #253044;
  --lavender: #ebe7f4;
  --sky: #dfecee;
  --shadow: 0 24px 60px rgba(37, 48, 68, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  line-height: 1.5;
}

.is-arabic .hero-copy,
.is-arabic .section-heading,
.is-arabic .checkout-copy,
.is-arabic .feedback-copy,
.is-arabic .method > div:first-child,
.is-arabic .method-steps article,
.is-arabic .product-body > .category,
.is-arabic .product-body > h3,
.is-arabic .product-body > p,
.is-arabic .report-includes,
.is-arabic label > span,
.is-arabic .bazi-result-header,
.is-arabic .bazi-pillars article,
.is-arabic .bazi-insights,
.is-arabic .payment-panel,
.is-arabic .message-card,
.is-arabic .cart-panel {
  direction: rtl;
  text-align: right;
}

.is-arabic .report-includes li {
  padding-right: 22px;
  padding-left: 0;
}

.is-arabic .report-includes li::before {
  right: 0;
  left: auto;
}

.is-arabic input,
.is-arabic textarea {
  direction: rtl;
  text-align: right;
}

.is-arabic .cart-drawer {
  direction: ltr;
}

.is-arabic .cart-item {
  grid-template-columns: 1fr auto;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  padding: 0 5vw;
  background: rgba(251, 247, 239, 0.9);
  border-bottom: 1px solid rgba(230, 221, 207, 0.9);
  backdrop-filter: blur(18px);
}

.brand,
.nav-links,
.header-actions,
.cart-button,
.language-toggle,
.hero-actions,
.product-row,
.cart-header,
.cart-footer div,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 0;
  font-weight: 850;
}

.brand-logo {
  display: block;
  width: 190px;
  height: auto;
}

.nav-links {
  gap: 26px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--ink);
}

.header-actions {
  gap: 10px;
}

.language-menu {
  position: relative;
}

.language-toggle {
  gap: 7px;
  min-height: 42px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
}

.language-options {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  min-width: 150px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 16px 34px rgba(37, 48, 68, 0.16);
}

.language-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 800;
  text-align: left;
}

.language-options button:hover,
.language-options button.is-active {
  background: #edf3f1;
}

.cart-button,
.icon-button,
.qty-button {
  border: 0;
  cursor: pointer;
}

.cart-button {
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.cart-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  color: white;
  background: var(--cinnabar);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 1.05fr);
  gap: 6vw;
  align-items: center;
  min-height: calc(100vh - 150px);
  padding: 34px 5vw 48px;
  overflow: hidden;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow,
.category {
  margin: 0 0 10px;
  color: var(--jade-dark);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: clamp(46px, 7.8vw, 92px);
  line-height: 0.96;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.04;
}

h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.hero-copy p:not(.eyebrow),
.checkout-copy p,
.product-body p,
.method p,
.trust-strip span,
.quote span,
.cart-empty {
  color: var(--muted);
}

.hero-copy p:not(.eyebrow) {
  max-width: 570px;
  font-size: 18px;
}

.hero-actions {
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 850;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
}

.button.primary {
  color: white;
  background: var(--jade);
}

.button.primary:hover {
  background: var(--jade-dark);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line);
}

.button.compact {
  min-height: 40px;
  padding: 0 14px;
  color: white;
  background: var(--night);
  font-size: 13px;
}

.button.full {
  width: 100%;
}

.hero-stage {
  position: relative;
  align-self: center;
  aspect-ratio: 16 / 10;
  min-height: 0;
  overflow: hidden;
  background: #0d2c2e;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transform: scale(1.025);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 5vw;
  border: 1px solid var(--line);
  background: var(--line);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-height: 108px;
  padding: 24px;
  background: var(--surface);
}

.brand-story {
  padding: 66px 5vw;
  background: #f5efe4;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.brand-story > div:first-child {
  max-width: 820px;
}

.brand-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.brand-story-grid article {
  min-height: 210px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.brand-story-grid span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #fff7e9;
  background: var(--jade);
  border-radius: 50%;
  font-size: 22px;
  font-weight: 900;
}

.brand-story-grid h3 {
  margin: 18px 0 8px;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-story-grid p,
.brand-summary {
  color: var(--muted);
  font-weight: 700;
}

.brand-summary {
  max-width: 920px;
  margin: 24px 0 0;
  padding-left: 18px;
  border-left: 4px solid var(--gold);
}

.section-heading,
.method,
.checkout,
.feedback {
  padding: 82px 5vw 28px;
}

.currency-note {
  max-width: 560px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 700;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0 5vw 54px;
}

.product-card {
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.product-card.featured {
  border-color: rgba(31, 111, 99, 0.38);
  box-shadow: 0 18px 38px rgba(31, 111, 99, 0.12);
}

.product-visual {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 3 / 2;
  height: auto;
  padding: 16px;
  background: linear-gradient(135deg, #f5efe4, #eef4f0);
  overflow: hidden;
  box-sizing: border-box;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform 220ms ease;
}

.product-card:hover .product-visual img {
  transform: scale(1.01);
}

.product-body {
  padding: 22px;
}

.report-includes {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.report-includes li {
  position: relative;
  padding-left: 22px;
}

.report-includes li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--green);
  transform: translateY(-50%);
}

.product-row {
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.product-row strong {
  font-size: 22px;
}

.method {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
  gap: 6vw;
  align-items: start;
  background: #edf3f1;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.method-steps article {
  min-height: 220px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.method-steps span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  color: white;
  background: var(--jade);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 850;
}

.proof {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 0 5vw;
  border: 1px solid var(--line);
  background: var(--line);
}

.quote {
  min-height: 210px;
  padding: 34px;
  background: #fffaf0;
}

.quote p {
  font-family: Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  line-height: 1.16;
}

.checkout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.8fr);
  gap: 5vw;
  align-items: start;
}

.disclaimer {
  max-width: 620px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
  font-size: 14px;
}

.checkout-visual {
  max-width: 760px;
  margin: 34px 0 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #edf3f1;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(31, 111, 99, 0.1);
}

.checkout-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.checkout-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 6px;
  outline: 0;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px rgba(31, 111, 99, 0.12);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--jade-dark);
  font-weight: 850;
}

.bazi-result {
  display: grid;
  gap: 18px;
  margin-top: 8px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.bazi-result-header {
  display: grid;
  gap: 8px;
}

.bazi-result-header h3,
.bazi-result-header p,
.bazi-insights h4,
.bazi-insights p {
  margin: 0;
}

.bazi-result-header p,
.bazi-note {
  color: var(--muted);
  font-size: 14px;
}

.bazi-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.bazi-pillars article {
  display: grid;
  gap: 4px;
  min-height: 132px;
  padding: 14px;
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.bazi-pillars span,
.bazi-pillars small,
.bazi-pillars em {
  color: var(--muted);
  font-style: normal;
  font-size: 12px;
}

.bazi-pillars strong {
  font-size: 30px;
  font-family: Georgia, serif;
}

.bazi-insights {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bazi-insights > div {
  padding: 16px;
  background: #edf3f1;
  border-radius: 8px;
}

.bazi-insights ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 10px 0 0;
  list-style: none;
}

.bazi-insights li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
}

.bazi-note {
  margin-bottom: 0;
  padding-left: 14px;
  border-left: 3px solid var(--gold);
}

.payment-panel {
  display: grid;
  gap: 16px;
  margin-top: 8px;
  padding: 20px;
  background: #fffaf0;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.payment-panel h3,
.payment-panel p,
.payment-status {
  margin: 0;
}

.payment-panel p,
.payment-status {
  color: var(--muted);
}

.payment-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.feedback {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(360px, 1.08fr);
  gap: 5vw;
  align-items: start;
  padding-bottom: 72px;
  background: #fffaf0;
}

.feedback-copy p {
  color: var(--muted);
}

.feedback-board {
  display: grid;
  gap: 18px;
}

.feedback-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-card {
  display: grid;
  gap: 10px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.message-card header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.message-card strong,
.message-card p {
  margin: 0;
}

.message-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.message-badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  color: var(--jade-dark);
  background: #edf3f1;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.empty-messages {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed var(--line);
  border-radius: 8px;
}

.accuracy-poll {
  grid-column: 1 / -1;
  padding: 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.poll-content {
  display: grid;
  grid-template-columns: minmax(360px, 0.92fr) minmax(0, 1.08fr);
  gap: 24px;
  align-items: stretch;
}

.poll-panel {
  display: grid;
  gap: 16px;
}

.poll-heading {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.poll-heading h3 {
  margin: 0;
}

.poll-heading > span {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.poll-options {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.poll-options button {
  min-height: 42px;
  color: var(--ink);
  background: #fbf7ef;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 850;
}

.poll-options button:hover,
.poll-options button.is-selected {
  color: white;
  background: var(--jade);
  border-color: var(--jade);
}

.poll-options button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

.poll-options button.is-selected:disabled {
  opacity: 1;
}

.poll-results {
  display: grid;
  gap: 10px;
}

.poll-row {
  display: grid;
  grid-template-columns: 48px 1fr minmax(82px, auto);
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.poll-track {
  height: 10px;
  overflow: hidden;
  background: #f0eadf;
  border-radius: 999px;
}

.poll-fill {
  display: block;
  height: 100%;
  background: var(--gold);
  border-radius: inherit;
}

.poll-row[data-option="100"] .poll-fill {
  background: var(--gold);
}

.poll-row[data-option="80"] .poll-fill {
  background: var(--jade);
}

.poll-row[data-option="60"] .poll-fill {
  background: #2f668e;
}

.poll-row[data-option="40"] .poll-fill {
  background: #8f9aa6;
}

.poll-row[data-option="20"] .poll-fill {
  background: var(--cinnabar);
}

.poll-count {
  display: inline-flex;
  justify-content: flex-end;
  gap: 6px;
  white-space: nowrap;
}

.poll-badge {
  color: var(--jade-dark);
  font-size: 11px;
  font-weight: 850;
}

.poll-visual {
  min-height: 360px;
  margin: 0;
  overflow: hidden;
  background: #102b2e;
  border-radius: 8px;
}

.poll-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  justify-content: flex-end;
  background: rgba(24, 27, 34, 0);
  pointer-events: none;
  transition: background 180ms ease;
}

.cart-drawer.is-open {
  background: rgba(24, 27, 34, 0.38);
  pointer-events: auto;
}

.cart-panel {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100vw, 420px);
  height: 100%;
  padding: 24px;
  background: var(--surface);
  transform: translateX(100%);
  transition: transform 180ms ease;
}

.cart-drawer.is-open .cart-panel {
  transform: translateX(0);
}

.cart-header,
.cart-footer div {
  justify-content: space-between;
}

.cart-header h2 {
  margin: 0;
  font-size: 28px;
}

.icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  background: #f0eadf;
  border-radius: 50%;
  font-size: 28px;
  line-height: 1;
}

.cart-items {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 22px 0;
  overflow: auto;
}

.cart-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.cart-item strong,
.cart-item span {
  display: block;
}

.cart-item span {
  color: var(--muted);
}

.cart-qty {
  display: flex;
  gap: 8px;
  align-items: center;
}

.qty-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 50%;
}

.cart-footer {
  display: grid;
  gap: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.site-footer {
  justify-content: space-between;
  min-height: 84px;
  padding: 0 5vw;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.site-footer > div,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  color: var(--ink);
  font-weight: 750;
}

.policy-page {
  min-height: 100vh;
  background: var(--paper);
}

.policy-shell {
  width: min(880px, calc(100% - 36px));
  margin: 0 auto;
  padding: 64px 0;
}

.policy-card {
  padding: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(37, 48, 68, 0.1);
}

.policy-card h1 {
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 76px);
}

.policy-card h2 {
  margin-top: 32px;
  font-size: 28px;
}

.policy-card p,
.policy-card li {
  color: var(--muted);
}

.policy-card a {
  color: var(--jade-dark);
  font-weight: 850;
}

.policy-card ul {
  display: grid;
  gap: 8px;
  padding-left: 22px;
}

.payment-result-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 5vw;
}

.payment-result {
  width: min(680px, 100%);
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.payment-result h1 {
  margin-bottom: 16px;
  font-size: clamp(42px, 8vw, 86px);
}

.payment-result p:not(.eyebrow) {
  color: var(--muted);
  font-size: 18px;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .hero,
  .method,
  .checkout,
  .feedback {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 28px;
  }

  .hero-stage {
    aspect-ratio: 16 / 9;
  }

  .product-grid,
  .trust-strip,
  .brand-story-grid,
  .method-steps,
  .poll-content,
  .proof {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand-logo {
    width: 118px;
  }

  .hero,
  .section-heading,
  .brand-story,
  .method,
  .checkout,
  .feedback,
  .product-grid {
    padding-left: 18px;
    padding-right: 18px;
  }

  .trust-strip,
  .proof {
    margin-left: 18px;
    margin-right: 18px;
  }

  .hero-copy p:not(.eyebrow) {
    font-size: 16px;
  }

  .hero-stage,
  .hero-stage img {
    min-height: 0;
  }

  .form-grid,
  .payment-actions,
  .bazi-pillars,
  .bazi-insights {
    grid-template-columns: 1fr;
  }

  .poll-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .poll-row {
    grid-template-columns: 42px 1fr;
  }

  .poll-count {
    grid-column: 2;
    justify-content: flex-start;
  }

  .poll-visual {
    min-height: 220px;
  }

  .product-row {
    align-items: stretch;
    flex-direction: column;
  }

  .button.compact {
    width: 100%;
  }

  .quote {
    padding: 24px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 18px;
  }
}
