/* ============================================================
   luxury.css — Global Luxury Theme for Pong Horse Park
   Fonts  → fonts.css
   Colors → colors.css
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  
  /* zoom: 1.06; ← single value to scale entire site */
}

/* ── BASE ── */
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img, iframe, embed, object, video { max-width: 100%; }

/* ── NOISE TEXTURE OVERLAY ── */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
}

/* ── HEADER ── */
.lux-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(249,247,240,.97);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.header-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 20px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
}

.logo-mark { display: flex; align-items: center; gap: 14px; }

.logo-mark img { height: 60px; width: auto; }

.crest {
  width: 44px; height: 44px;
  border: 1.5px solid var(--gold); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-heading);
  font-size: 18px; color: var(--gold);
  font-weight: 600; letter-spacing: 1px;
  position: relative; flex-shrink: 0;
}
.crest::before {
  content: ''; position: absolute; inset: 3px;
  border: 0.5px solid var(--gold); border-radius: 50%; opacity: .4;
}

.logo-text { display: flex; flex-direction: column; gap: 1px; }
.logo-text .name {
  font-family: var(--font-heading);
  font-size: 17px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase; color: var(--navy);
}
.logo-text .sub {
  font-family: var(--font-ui);
  font-size: 9px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}

.lux-nav { display: flex; align-items: center; gap: 36px; flex: 1; justify-content: center; }
.lux-nav a {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--muted);
  font-weight: 500; transition: color .3s;
}
.lux-nav a:hover { color: var(--hunter); }

.nav-cta {
  font-family: var(--font-ui) !important;
  font-size: 10px !important; letter-spacing: 1px !important;
  text-transform: uppercase !important; font-weight: 600 !important;
  color: var(--cream) !important; background: var(--darkbrown) !important;
  padding: 11px 22px !important; border: 1px solid var(--darkbrown) !important;
  transition: all .3s !important;
}
.nav-cta:hover { background: transparent !important; color: var(--hunter) !important; }

/* ── PAGE OFFSET ── */
.page-body { padding-top: 72px; }

/* ── SECTIONS ── */
.lux-section { padding: 100px 48px; max-width: 1280px; margin: 0 auto; }
.lux-section.full-bleed { max-width: none; padding-left: 0; padding-right: 0; }

/* ── TYPOGRAPHY ── */
.section-label {
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 4px;
  text-transform: uppercase; color: var(--gold-ink);
  font-weight: 600; margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(32px,4vw,52px); font-weight: 400;
  color: var(--navy); line-height: 1.1; margin-bottom: 20px;
}
.section-title em { font-style: italic; color: var(--hunter); }

.section-rule {
  width: 48px; height: 2px;
  background: var(--gold); margin-bottom: 32px;
  display: block; opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-slide { transition: none; }
}

/* ── BUTTONS ── */
.btn-primary {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 600;
  background: var(--gold); color: var(--cream);
  padding: 16px 36px; border: 1px solid var(--gold);
  transition: all .35s; display: inline-block; cursor: pointer;
}
.btn-primary:hover { background: transparent; color: var(--gold-lt); border-color: var(--gold-lt); }

.btn-secondary {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 400;
  background: transparent; color: var(--ink);
  padding: 16px 36px; border: 1px solid var(--rule);
  transition: all .35s; display: inline-block; cursor: pointer;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold); }

.btn-ghost {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; font-weight: 400;
  background: transparent; color: var(--cream);
  padding: 16px 36px; border: 1px solid rgba(249,247,240,.45);
  transition: all .35s; display: inline-block; cursor: pointer;
}
.btn-ghost:hover { border-color: rgba(249,247,240,.85); }

/* ── CARDS ── */
.lux-card {
  background: var(--cream); border: 1px solid var(--rule);
  overflow: hidden; transition: box-shadow .35s, transform .35s;
}
.lux-card:hover { box-shadow: 0 20px 60px rgba(27,53,70,.1); transform: translateY(-4px); }

/* ── INFO BOX ── */
.lux-info-box {
  background: var(--parchment); border: 1px solid var(--rule);
  padding: 20px 24px; margin: 16px 0;
  font-size: 15px; line-height: 1.8;
}

/* ── MOTTO BAND ── */
.motto-band { background: var(--hunter); padding: 48px; text-align: center; }
.motto-band .motto {
  font-family: var(--font-body);
  font-size: clamp(20px,3vw,32px); font-style: italic;
  color: var(--cream); letter-spacing: 1px;
}
.motto-band .motto-translation {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--gold-lt);
  font-weight: 400; margin-top: 12px;
}

/* ── CTA BAND ── */
.cta-band { background: var(--navy); padding: 100px 48px; text-align: center; }
.cta-band h2 {
  font-family: var(--font-heading);
  font-size: clamp(36px,5vw,64px); font-weight: 300;
  color: var(--cream); margin-bottom: 14px;
}
.cta-band h2 em { font-style: italic; color: var(--gold-lt); }
.cta-band p {
  font-family: var(--font-ui);
  font-size: 13px; letter-spacing: 2px;
  text-transform: uppercase; color: rgba(249,247,240,.5);
  font-weight: 300; margin-bottom: 44px;
}

/* ── FOOTER ── */
.lux-footer { background: var(--ink); padding: 68px 48px 28px; }
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(280px, 1fr) minmax(480px, 620px);
  gap: 96px; align-items: start;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(249,247,240,.12);
}
.footer-eyebrow {
  margin-bottom: 12px;
  color: var(--gold-lt);
  font-family: var(--font-ui);
  font-size: 9px; font-weight: 700; letter-spacing: 2.4px;
  text-transform: uppercase;
}
.footer-brand .name {
  font-family: var(--font-heading);
  font-size: 32px; font-weight: 400;
  color: var(--cream); margin-bottom: 10px;
}
.footer-brand .address {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 1px;
  color: rgba(249,247,240,.48); line-height: 1.85; font-weight: 300;
}
.footer-language-switcher {
  display: inline-flex;
  margin-top: 26px;
}
.footer-language-switcher .footer-lang-btn {
  min-width: 56px;
  min-height: 44px;
  padding: 0 15px;
  border: 1px solid rgba(249,247,240,.24);
  border-radius: 0;
  background: transparent;
  color: rgba(249,247,240,.72);
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.3px;
  line-height: 1;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.footer-language-switcher .footer-lang-btn + .footer-lang-btn { border-left: 0; }
.footer-language-switcher .footer-lang-btn:hover {
  border-color: var(--gold-lt);
  background: rgba(205,160,79,.12);
  color: var(--cream);
}
.footer-language-switcher .footer-lang-btn.active {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--ink);
}
.footer-language-switcher .footer-lang-btn:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid var(--cream);
  outline-offset: 3px;
}
.footer-links {
  display: grid; grid-template-columns: repeat(2, minmax(180px, 1fr));
  column-gap: 56px; row-gap: 16px;
  padding-top: 8px;
}
.footer-links a {
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 1.9px;
  text-transform: uppercase; color: rgba(249,247,240,.52);
  font-weight: 600; transition: color .25s, transform .25s;
}
.footer-links a:hover { color: var(--gold-lt); transform: translateX(3px); }
.lux-footer .affiliate-footer-note { margin-top: 24px; }
.lux-footer .affiliate-footer-badge {
  display: inline-flex; column-gap: .5ch; padding: 7px 11px;
  border: 1px solid rgba(205,160,79,.42);
  color: var(--gold-lt); font-family: var(--font-ui);
  font-size: 10px; font-weight: 600; letter-spacing: 1px;
}
@media (min-width: 769px) {
  .lux-footer .affiliate-footer-note { text-align: left; }
}
.footer-bottom {
  max-width: 1280px; margin: 22px auto 0;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
}
.footer-bottom p {
  font-family: var(--font-ui);
  font-size: 9px; letter-spacing: 1.2px;
  color: rgba(249,247,240,.3); font-weight: 300;
}

/* ── ORNAMENT ── */
.ornament {
  text-align: center; padding: 60px 0 0;
  color: var(--gold); font-size: 22px; line-height: 1;
  display: flex; align-items: center; justify-content: center; gap: 20px;
}
.ornament::before, .ornament::after {
  content: ''; flex: 1; max-width: 180px; height: 0.5px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
}

/* ── PAGE HEADER (interior pages) ── */
.page-header { padding: 40px 48px 20px; border-bottom: 1px solid var(--rule); }
.page-header h1 {
  font-family: var(--font-heading);
  font-size: clamp(28px,4vw,44px); font-weight: 400;
  color: var(--navy); line-height: 1.1;
}
.page-header h1 em { font-style: italic; color: var(--hunter); }
.page-header .sub {
  font-family: var(--font-ui);
  font-size: 11px; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold);
  font-weight: 500; margin-bottom: 12px;
}

/* ── STATUS BADGE ── */
.status-badge {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 2px;
  text-transform: uppercase; font-weight: 600;
  padding: 5px 12px; border: 1px solid currentColor;
}
.status-badge.pending  { color: var(--gold); }
.status-badge.verified { color: var(--green); }
.status-badge.rejected { color: var(--error); }
.status-badge.awaiting { color: var(--muted); }

/* ── FORM ELEMENTS ── */
.lux-input, .lux-select {
  font-family: var(--font-body);
  font-size: 16px; width: 100%;
  padding: 12px 16px; background: var(--parchment);
  border: 1px solid var(--rule); color: var(--ink);
  transition: border-color .25s; appearance: none;
}
.lux-input:focus, .lux-select:focus { outline: none; border-color: var(--gold); }
.lux-label {
  font-family: var(--font-ui);
  font-size: 10px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold);
  font-weight: 600; display: block; margin-bottom: 8px;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .header-inner { padding: 0 24px; }
  .lux-section  { padding: 80px 24px; }
  .page-header  { padding: 30px 24px 20px; }
  .footer-inner { grid-template-columns: 1fr; gap: 34px; }
  .footer-links { max-width: 620px; }
  .motto-band, .cta-band { padding: 60px 24px; }
}

@media (max-width: 768px) {
  html,
  body {
    max-width: 100vw;
    overflow-x: hidden;
    position: relative;
    touch-action: pan-y pinch-zoom;
  }
  .lux-nav       { display: none; }
  .header-inner  { width: 100%; min-width: 0; overflow: hidden; }
  .logo-mark     { min-width: 0; flex: 1; gap: 10px; }
  .logo-mark img { height: 54px; flex-shrink: 0; }
  .logo-text     { min-width: 0; }
  .logo-text .name,
  .logo-text .sub {
    max-width: calc(100vw - 150px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .btn-primary,
  .btn-secondary,
  .btn-ghost {
    max-width: 100%;
    padding-left: 24px;
    padding-right: 24px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: center;
  }
  .lux-footer { padding: 52px 20px max(24px, calc(16px + env(safe-area-inset-bottom))); }
  .footer-inner { padding-bottom: 32px; }
  .footer-language-switcher { display: flex; width: 100%; }
  .footer-language-switcher .footer-lang-btn { flex: 1; min-height: 48px; }
  .footer-links { grid-template-columns: 1fr 1fr; column-gap: 24px; row-gap: 14px; min-width: 0; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .lux-section   { padding: 60px 20px; }
  .page-header   { padding: 24px 20px 16px; }
}

/* Approved payment rows: keep the primary amount prominent and make the
   link actions a single, predictable utility row beneath the full-width URL. */
.apr-history {
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: start;
}

.apr-history .apr-approved-amount {
  grid-column: 2 !important;
  grid-row: 1 !important;
  justify-self: end;
  text-align: right;
}

.apr-history > div:last-child {
  grid-column: 1 / -1 !important;
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.apr-history > div:last-child .apr-btn {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  text-align: center;
}

.apr-history > div:last-child > div {
  display: contents !important;
}

.apr-history .apr-link-value {
  grid-column: 1 / -1;
  grid-row: 1;
  min-width: 0;
  width: 100%;
}

.apr-history .apr-generate-link {
  grid-column: 1;
  grid-row: 2;
}

.apr-history > div:last-child > div:first-child > a.apr-btn {
  grid-column: 2;
  grid-row: 2;
}

.apr-history .apr-open-link {
  grid-column: 3;
  grid-row: 2;
}

.apr-history .apr-copy-link {
  grid-column: 4;
  grid-row: 2;
}

.apr-history .apr-link-status {
  grid-column: 1 / -1;
  grid-row: 3;
}

@media (max-width: 760px) {
  .apr-history {
    grid-template-columns: minmax(0, 1fr) auto !important;
  }

  .apr-history > div:last-child {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
  }

  .apr-history > div:last-child .apr-btn {
    min-width: 0;
    padding-left: 6px;
    padding-right: 6px;
  }
}
