/* Byt från ModFiveM till Smidity. Obsidian + varm sand, Ränderna. */
.ps-page {
  --ps-sand: #f1d4b1;
  --ps-sand-strong: #f9e6cd;
  --ps-sand-deep: #c99a66;
  --ps-panel: rgba(12, 19, 29, 0.86);
  --ps-line: rgba(241, 212, 177, 0.16);
  --ps-text: #f6f4ef;
  --ps-muted: #a9b6c6;
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1rem, 3.4vw, 2.5rem) 5rem;
  color: var(--ps-text);
}
.ps-page *, .ps-page *::before, .ps-page *::after { box-sizing: border-box; }
.ps-page h1, .ps-page h2, .ps-page h3 { font-family: SpaceGrotesk, Manrope, system-ui, sans-serif; color: #fff; margin: 0; }
.ps-page p { margin: 0; }
.ps-page ul, .ps-page ol { list-style: none; margin: 0; padding: 0; }
.ps-page [hidden] { display: none !important; }
.ps-page :is(a, button, input, label):focus-visible { outline: 2px solid var(--ps-sand); outline-offset: 3px; }

/* Hjälten */
.ps-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.5rem, 3.6vw, 3.25rem);
  border: 1px solid var(--ps-line);
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(70% 120% at 92% 0%, rgba(241, 212, 177, 0.22) 0%, rgba(241, 212, 177, 0.04) 42%, transparent 70%),
    linear-gradient(140deg, #101a27 0%, #0a1019 58%, #070b12 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ps-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(118deg, rgba(241, 212, 177, 0.085) 0 2px, transparent 2px 26px);
  -webkit-mask-image: linear-gradient(100deg, transparent 22%, #000 80%);
  mask-image: linear-gradient(100deg, transparent 22%, #000 80%);
}
.ps-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: repeating-linear-gradient(90deg, var(--ps-sand) 0 44px, transparent 44px 58px);
  opacity: 0.85;
}
.ps-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.1rem !important;
  padding: 0.42rem 0.8rem;
  border: 1px solid rgba(241, 212, 177, 0.4);
  border-radius: 999px;
  background: rgba(241, 212, 177, 0.1);
  color: var(--ps-sand);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.2em;
}
.ps-kicker::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--ps-sand); transform: rotate(45deg); }
html[data-smidity-theme="arctic"] body:not(:has(.arctic-hero)):not(:has([data-pricing-root])):not(:has(.smidity-editor-host)) main.ps-page h1,
.ps-hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 4.6rem) !important;
  line-height: 0.98 !important;
  letter-spacing: -0.045em;
  color: #fff;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.55);
}
.ps-hero h1 span {
  color: var(--ps-sand);
  background: linear-gradient(transparent 62%, rgba(241, 212, 177, 0.22) 62%);
  padding: 0 0.08em;
}
.ps-lead { max-width: 56ch; margin-top: 1.25rem !important; font-size: clamp(1.02rem, 1.6vw, 1.22rem); line-height: 1.6; color: #d4dce6; }
.ps-actions { display: flex; flex-wrap: wrap; gap: 0.75rem 1rem; margin-top: 1.6rem; }
.ps-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 50px;
  padding: 0 1.4rem;
  border: 1px solid rgba(241, 212, 177, 0.4);
  border-radius: 12px;
  background: transparent;
  color: var(--ps-text);
  font: 800 0.98rem/1.2 Manrope, system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.ps-btn:hover { transform: translateY(-1px); border-color: var(--ps-sand); }
.ps-btn--primary { background: var(--ps-sand); border-color: var(--ps-sand); color: #1c1409; box-shadow: 0 10px 30px rgba(241, 212, 177, 0.22); }
.ps-btn--primary:hover { background: var(--ps-sand-strong); }
.ps-btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.ps-open { display: flex; align-items: center; gap: 0.5rem; margin-top: 1.1rem !important; color: var(--ps-sand); font-weight: 700; font-size: 0.92rem; }
.ps-open span { font-size: 0.6rem; color: #7fe0a6; }

/* Villkor (ägarbeslut: bara köp senast kampanjstarten) */
.ps-terms { max-width: 60ch; margin-top: 1.1rem !important; padding: 0.75rem 0.95rem; border: 1px solid rgba(241, 212, 177, 0.45); border-left: 4px solid var(--ps-sand); border-radius: 10px; background: rgba(241, 212, 177, 0.08); color: #eadfce; font-size: 0.9rem; line-height: 1.5; }
.ps-terms strong { color: var(--ps-sand); }
.ps-apply .ps-terms { max-width: none; margin: 0 0 1.2rem !important; }
.ps-field--date small { color: var(--ps-muted); font-weight: 600; }
.ps-field input[type="date"] { width: min(100%, 260px); min-height: 50px; padding: 0 1rem; border: 1px solid rgba(255, 255, 255, 0.16); border-radius: 12px; background: #0f1621; color: var(--ps-text); font: 500 1rem/1.4 Manrope, system-ui, sans-serif; color-scheme: dark; }
.ps-field input[type="date"]:focus { border-color: var(--ps-sand); outline: none; }

/* Bytet: ModFiveM till vänster, Smidity till höger */
.ps-swap {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(241, 212, 177, 0.28);
  border-radius: 18px;
  background: var(--ps-panel);
  backdrop-filter: blur(6px);
}
.ps-swap-side { display: grid; gap: 0.3rem; padding: 1rem 1.1rem; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.03); }
.ps-swap-side strong { font: 800 clamp(1.1rem, 1.8vw, 1.35rem)/1.2 SpaceGrotesk, Manrope, system-ui, sans-serif; color: #fff; }
.ps-swap-side em { font-style: normal; color: var(--ps-muted); font-size: 0.9rem; }
.ps-swap-side--from strong { color: #c6ced8; text-decoration: line-through; text-decoration-color: rgba(241, 212, 177, 0.55); text-decoration-thickness: 2px; }
.ps-swap-side--to { border-color: rgba(241, 212, 177, 0.5); background: linear-gradient(130deg, rgba(241, 212, 177, 0.18), rgba(241, 212, 177, 0.04)); }
.ps-swap-label { color: var(--ps-sand); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.ps-swap-arrow { display: flex; justify-content: center; }
.ps-swap-arrow span {
  display: inline-grid;
  place-items: center;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--ps-sand);
  color: #1c1409;
  font: 900 1rem/1 SpaceGrotesk, Manrope, system-ui, sans-serif;
  box-shadow: 0 0 0 6px rgba(241, 212, 177, 0.14);
}
.ps-swap-price { display: flex; align-items: baseline; justify-content: flex-end; gap: 0.6rem; color: var(--ps-muted); font-weight: 700; }
.ps-swap-price b { color: var(--ps-sand); font: 900 2rem/1 SpaceGrotesk, Manrope, system-ui, sans-serif; }

/* Tre matchningskort */
.ps-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(0.8rem, 2vw, 1.25rem); margin-top: clamp(1.25rem, 3vw, 2rem) !important; }
.ps-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.4rem 1.3rem 1.5rem;
  border: 1px solid var(--ps-line);
  border-radius: 16px;
  background: linear-gradient(170deg, #111b28, #0a1019);
}
.ps-card::before { content: ""; position: absolute; left: 1.3rem; right: 1.3rem; top: 0; height: 3px; background: repeating-linear-gradient(90deg, var(--ps-sand) 0 22px, transparent 22px 30px); opacity: 0.7; }
.ps-card-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 0.4rem; border-radius: 10px; background: rgba(241, 212, 177, 0.12); color: var(--ps-sand); font-size: 1.25rem; font-weight: 800; }
.ps-card-from { color: var(--ps-muted); font-weight: 700; font-size: 0.92rem; }
.ps-card-arrow { color: var(--ps-sand); font-weight: 800; line-height: 1; }
.ps-card h3 { font-size: 1.22rem; line-height: 1.2; }
.ps-card p:last-child { color: var(--ps-muted); line-height: 1.5; }

/* Steg */
.ps-steps { margin-top: clamp(2rem, 5vw, 3.5rem); }
.ps-steps h2, .ps-apply h2, .ps-rules h2 { font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -0.03em; }
.ps-steps ol { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.1rem !important; }
.ps-steps li { display: flex; gap: 0.9rem; padding: 1.1rem 1.15rem; border-radius: 14px; background: #0f1621; border: 1px solid rgba(255, 255, 255, 0.06); }
.ps-step-num { flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--ps-sand); color: var(--ps-sand); font: 800 1rem/1 SpaceGrotesk, Manrope, sans-serif; }
.ps-steps h3 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.ps-steps p { color: var(--ps-muted); line-height: 1.5; }

/* Ansökan */
.ps-apply {
  margin-top: clamp(2rem, 5vw, 3.5rem);
  padding: clamp(1.3rem, 3.4vw, 2.4rem);
  border: 1px solid rgba(241, 212, 177, 0.32);
  border-radius: 20px;
  background:
    radial-gradient(60% 90% at 0% 0%, rgba(241, 212, 177, 0.1), transparent 60%),
    #0b121c;
  scroll-margin-top: 90px;
}
.ps-apply-head { display: grid; gap: 0.35rem; margin-bottom: 1.4rem; }
.ps-apply-head p, .ps-guest p { color: var(--ps-muted); }
.ps-guest { display: grid; gap: 0.4rem; justify-items: start; padding: 1.3rem; border: 1px dashed rgba(241, 212, 177, 0.35); border-radius: 14px; }
.ps-guest h3 { font-size: 1.2rem; }
.ps-guest .ps-actions { margin-top: 0.8rem; }
.ps-form { display: grid; gap: 1.2rem; }
.ps-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.7rem; min-width: 0; }
.ps-plans-label { margin-bottom: 0.7rem !important; font-weight: 800; color: #fff; }
.ps-plan { position: relative; display: block; cursor: pointer; }
.ps-plan input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ps-plan-body { display: grid; gap: 0.25rem; height: 100%; padding: 0.9rem 1rem; border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 12px; background: #101824; transition: border-color 0.15s ease, background 0.15s ease; }
.ps-plan-body strong { color: #fff; }
.ps-plan-body span { color: var(--ps-muted); font-size: 0.86rem; line-height: 1.4; }
.ps-plan input:checked + .ps-plan-body { border-color: var(--ps-sand); background: linear-gradient(140deg, rgba(241, 212, 177, 0.18), rgba(241, 212, 177, 0.04)); box-shadow: inset 0 0 0 1px var(--ps-sand); }
.ps-plan input:focus-visible + .ps-plan-body { outline: 2px solid var(--ps-sand); outline-offset: 3px; }
.ps-field { display: grid; gap: 0.5rem; font-weight: 800; color: #fff; }
.ps-field input[type="text"] {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  background: #0f1621;
  color: var(--ps-text);
  font: 500 1rem/1.4 Manrope, system-ui, sans-serif;
}
.ps-field input[type="text"]::placeholder { color: #6f7d8e; }
.ps-field input[type="text"]:focus { border-color: var(--ps-sand); outline: none; }
.ps-drop {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 190px;
  padding: 1.2rem;
  border: 2px dashed rgba(241, 212, 177, 0.4);
  border-radius: 14px;
  background: repeating-linear-gradient(118deg, rgba(241, 212, 177, 0.04) 0 2px, transparent 2px 22px), #0d141e;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.ps-drop:hover, .ps-drop.is-over { border-color: var(--ps-sand); background-color: #121c29; }
.ps-drop input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.ps-drop-empty { display: grid; gap: 0.35rem; pointer-events: none; }
.ps-drop-empty strong { color: #fff; font-weight: 800; }
.ps-drop-empty small { color: var(--ps-muted); font-weight: 600; }
.ps-drop-empty::before { content: "⇪"; display: block; margin-bottom: 0.3rem; color: var(--ps-sand); font-size: 1.9rem; line-height: 1; }
.ps-drop-preview { max-width: 100%; max-height: 320px; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5); pointer-events: none; }
.ps-drop-change { position: absolute; right: 0.8rem; bottom: 0.8rem; padding: 0.35rem 0.7rem; border-radius: 999px; background: rgba(11, 18, 28, 0.85); color: var(--ps-sand); font-size: 0.82rem; font-weight: 800; pointer-events: none; }
.ps-error { padding: 0.8rem 1rem; border-radius: 10px; border: 1px solid rgba(241, 162, 162, 0.5); background: rgba(241, 162, 162, 0.08); color: #f6c3c3; font-weight: 700; }
.ps-submit { justify-self: start; min-width: 240px; }
.ps-owned { margin-bottom: 1rem !important; padding: 0.8rem 1rem; border-radius: 10px; background: rgba(127, 224, 166, 0.08); border: 1px solid rgba(127, 224, 166, 0.35); color: #c9f2d9; font-weight: 700; }

/* Status för inskickad ansökan */
.ps-status { display: grid; gap: 0.7rem; padding: 1.3rem 1.4rem; border-radius: 14px; border: 1px solid rgba(241, 212, 177, 0.35); background: #101824; }
.ps-status-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; font-weight: 800; color: #fff; }
.ps-badge { padding: 0.3rem 0.75rem; border-radius: 999px; background: rgba(241, 212, 177, 0.15); color: var(--ps-sand); font-size: 0.82rem; letter-spacing: 0.04em; }
.ps-status[data-status="approved"] { border-color: rgba(127, 224, 166, 0.5); }
.ps-status[data-status="approved"] .ps-badge { background: rgba(127, 224, 166, 0.16); color: #9ff0bf; }
.ps-status[data-status="rejected"] { border-color: rgba(241, 162, 162, 0.45); }
.ps-status[data-status="rejected"] .ps-badge { background: rgba(241, 162, 162, 0.14); color: #f6c3c3; }
.ps-status-text { font-size: 1.08rem; color: #eef2f7; line-height: 1.5; }
.ps-status-meta { color: var(--ps-muted); font-size: 0.9rem; overflow-wrap: anywhere; }
.ps-status-note { margin: 0; padding: 0.7rem 1rem; border-left: 3px solid var(--ps-sand); background: rgba(241, 212, 177, 0.06); color: #e7dccd; }
.ps-status .ps-actions { margin-top: 0.3rem; }

/* Regler */
.ps-rules { margin-top: clamp(2rem, 5vw, 3.5rem); }
.ps-rules ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 1.4rem; margin-top: 1rem !important; }
.ps-rules li { position: relative; padding-left: 1.6rem; color: var(--ps-muted); line-height: 1.55; }
.ps-rules li::before { content: "✓"; position: absolute; left: 0; color: var(--ps-sand); font-weight: 800; }

@media (max-width: 980px) {
  .ps-hero { grid-template-columns: 1fr; }
  .ps-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .ps-cards, .ps-steps ol, .ps-rules ul { grid-template-columns: 1fr; }
  .ps-submit { justify-self: stretch; }
  .ps-actions .ps-btn { flex: 1 1 100%; }
}
@media (max-width: 420px) {
  .ps-plans { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .ps-btn, .ps-plan-body, .ps-drop { transition: none; } .ps-btn:hover { transform: none; } }
