:root {
  --ink: #15151f;
  --muted: #626473;
  --line: #e8e8ee;
  --paper: #ffffff;
  --soft: #f6f7fb;
  --red: #e82935;
  --red-dark: #b91625;
  --teal: #00a58d;
  --gold: #f5aa2b;
  --navy: #18263b;
  --shadow: 0 18px 55px rgba(21, 21, 31, 0.16);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  min-height: 72px;
  padding: 10px clamp(16px, 5vw, 48px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--red);
  border-radius: 8px;
  letter-spacing: 0;
}

.nav-links {
  display: none;
  gap: 22px;
  justify-content: center;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
}

.auth-actions {
  position: relative;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
}

.user-chip {
  max-width: 180px;
  overflow: hidden;
  padding: 9px 11px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-size: 0.86rem;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.settings-menu {
  position: relative;
}

.gear-button {
  color: var(--red);
  background: #fff1f2;
  border: 1px solid #ffd2d6;
  font-size: 1.05rem;
}

.settings-popover {
  position: fixed;
  top: 82px;
  right: clamp(12px, 3vw, 36px);
  z-index: 40;
  display: grid;
  width: min(92vw, 320px);
  max-height: min(70svh, 560px);
  overflow-y: auto;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
  overscroll-behavior: contain;
}

.settings-user {
  padding: 10px 10px 12px;
  border-bottom: 1px solid var(--line);
}

.settings-user strong,
.settings-user span {
  display: block;
}

.settings-user span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 0.86rem;
}

.settings-search-wrap {
  display: grid;
  gap: 6px;
  padding: 10px 0 8px;
}

.settings-search-wrap span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.settings-search-wrap input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 11px;
  background: var(--soft);
  color: var(--ink);
}

.settings-search-wrap input:focus {
  border-color: var(--red);
  outline: 2px solid rgba(232, 41, 53, 0.16);
}

.settings-list {
  display: grid;
  gap: 2px;
  padding-top: 8px;
}

.settings-item {
  min-height: 42px;
  padding: 0 10px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: white;
  text-align: left;
  font-weight: 800;
}

.settings-item:hover {
  background: var(--soft);
}

.settings-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-weight: 700;
}

.settings-item.danger {
  position: sticky;
  bottom: 0;
  margin-top: 10px;
  color: var(--red);
  background: #fff1f2;
  box-shadow: 0 -8px 16px rgba(255, 255, 255, 0.92);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn-small {
  min-height: 38px;
  padding: 0 12px;
  font-size: 0.9rem;
}

.btn-primary {
  color: white;
  background: var(--red);
  box-shadow: 0 12px 26px rgba(232, 41, 53, 0.28);
}

.btn-primary:hover,
.btn-red:hover {
  background: var(--red-dark);
}

.btn-red {
  color: white;
  background: var(--red);
}

.btn-outline {
  color: var(--red);
  background: #fff1f2;
  border: 1px solid #ffd2d6;
}

.btn-wide {
  width: 100%;
}

.hero {
  min-height: calc(100svh - 72px);
  padding: 16px;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 45%, #fff2e2 100%);
}

.slider {
  position: relative;
  min-height: calc(100svh - 104px);
  overflow: hidden;
  border-radius: 8px;
  background: var(--navy);
}

.slide {
  position: absolute;
  inset: 0;
  display: grid;
  align-items: end;
  padding: clamp(24px, 7vw, 70px);
  color: white;
  opacity: 0;
  pointer-events: none;
  transition: opacity 350ms ease;
}

.slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 17, 29, 0.9), rgba(12, 17, 29, 0.3)),
    radial-gradient(circle at 80% 20%, rgba(245, 170, 43, 0.82), transparent 28%),
    radial-gradient(circle at 75% 75%, rgba(0, 165, 141, 0.72), transparent 30%),
    linear-gradient(135deg, #263b5a, #111827);
}

.slide:nth-child(2)::before {
  background:
    linear-gradient(90deg, rgba(12, 17, 29, 0.88), rgba(12, 17, 29, 0.34)),
    radial-gradient(circle at 78% 28%, rgba(232, 41, 53, 0.78), transparent 27%),
    radial-gradient(circle at 88% 78%, rgba(245, 170, 43, 0.7), transparent 30%),
    linear-gradient(135deg, #103a4b, #141724);
}

.slide:nth-child(3)::before {
  background:
    linear-gradient(90deg, rgba(12, 17, 29, 0.88), rgba(12, 17, 29, 0.28)),
    radial-gradient(circle at 76% 24%, rgba(0, 165, 141, 0.78), transparent 28%),
    radial-gradient(circle at 84% 78%, rgba(232, 41, 53, 0.64), transparent 30%),
    linear-gradient(135deg, #213852, #16161d);
}

.slide:nth-child(4)::before {
  background:
    linear-gradient(90deg, rgba(12, 17, 29, 0.9), rgba(12, 17, 29, 0.34)),
    radial-gradient(circle at 80% 30%, rgba(245, 170, 43, 0.88), transparent 28%),
    radial-gradient(circle at 88% 82%, rgba(232, 41, 53, 0.7), transparent 30%),
    linear-gradient(135deg, #34253e, #121827);
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
}

.slide-copy {
  position: relative;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.slide .eyebrow {
  color: var(--gold);
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.7rem, 13vw, 5.8rem);
}

h2 {
  font-size: clamp(2rem, 8vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.1rem;
}

.slide p:not(.eyebrow) {
  max-width: 640px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 3vw, 1.28rem);
  line-height: 1.55;
}

.slider-controls {
  position: absolute;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  display: flex;
  gap: 8px;
}

.slider-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
}

.slider-dot.active {
  width: 28px;
  border-radius: 999px;
  background: white;
}

.section {
  padding: clamp(52px, 10vw, 96px) clamp(18px, 6vw, 72px);
}

.intro,
.about,
.special,
.next {
  display: grid;
  gap: 24px;
}

.intro p,
.about p,
.special p,
.next p {
  max-width: 840px;
  color: var(--muted);
  font-size: clamp(1rem, 3vw, 1.22rem);
  line-height: 1.7;
}

.why {
  background: var(--soft);
}

.feature-grid,
.package-grid,
.proof-strip {
  display: grid;
  gap: 14px;
  margin-top: 26px;
}

.feature-grid article,
.package-card,
.proof-strip article,
.testimonial,
.status-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.feature-grid span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--teal);
  font-weight: 900;
}

.feature-grid p,
.package-card p {
  color: var(--muted);
  line-height: 1.6;
}

.proof {
  color: white;
  background: var(--navy);
}

.proof h2 {
  max-width: 880px;
}

.proof-strip article,
.testimonial {
  color: var(--ink);
}

.proof-strip strong {
  display: block;
  color: var(--red);
  font-size: 2.2rem;
}

.proof-strip span,
.testimonial span {
  color: var(--muted);
}

.testimonial p {
  margin-top: 0;
  color: var(--ink);
  font-size: 1.1rem;
  line-height: 1.65;
}

.package-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  align-items: flex-start;
}

.package-card strong {
  margin: auto 0 18px;
  font-size: 1.35rem;
}

.package-card.highlighted {
  border-color: #ffc2c8;
  box-shadow: var(--shadow);
}

.special {
  color: white;
  background: linear-gradient(135deg, #172338, #214c58 58%, #9c1f2e);
}

.special .eyebrow,
.special p {
  color: #ffe0a5;
}

.next {
  text-align: center;
  align-items: center;
}

.next .btn {
  max-width: 360px;
}

.dashboard {
  min-height: calc(100svh - 72px);
  padding: clamp(18px, 4vw, 34px);
  background: #f4f6fa;
}

.admin-dashboard {
  min-height: calc(100svh - 72px);
  background: #f4f6fa;
}

.admin-nav {
  position: sticky;
  top: 72px;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  background: white;
}

.admin-brand {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 4px;
}

.admin-brand strong,
.admin-brand span {
  display: block;
}

.admin-brand span {
  color: var(--muted);
  font-size: 0.9rem;
}

.admin-nav-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 900;
}

.admin-nav-link.active {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.admin-nav-link.danger {
  color: var(--red);
  background: #fff1f2;
}

.admin-content {
  padding: clamp(18px, 4vw, 34px);
}

.admin-page {
  display: none;
}

.admin-page.active {
  display: block;
}

.admin-title {
  margin-bottom: 18px;
}

.admin-title h1 {
  max-width: none;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.dashboard-hero {
  display: grid;
  gap: 20px;
  align-items: stretch;
  padding: clamp(24px, 5vw, 44px);
  border-radius: 8px;
  color: white;
  background: linear-gradient(135deg, #172338 0%, #244a56 58%, #982334 100%);
}

.dashboard-hero h1 {
  max-width: none;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #ffe0a5;
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.65;
}

.offer-banner {
  display: grid;
  align-content: center;
  gap: 12px;
  padding: clamp(18px, 3vw, 28px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.offer-banner h2 {
  font-size: clamp(1.55rem, 4vw, 2.5rem);
}

.offer-banner p {
  margin: 0;
}

.offer-banner .btn {
  width: max-content;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.metric-card,
.panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(21, 21, 31, 0.07);
}

.metric-card {
  padding: 20px;
}

.metric-card span {
  color: var(--muted);
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 10px 0 6px;
  color: var(--navy);
  font-size: 2.4rem;
}

.metric-card p,
.panel p {
  color: var(--muted);
  line-height: 1.55;
}

.dashboard-layout {
  display: grid;
  gap: 18px;
}

.dashboard-main,
.dashboard-side {
  display: grid;
  gap: 18px;
  align-content: start;
}

.panel {
  padding: 20px;
}

.panel h2 {
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.panel-heading {
  display: grid;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.quick-actions,
.order-list,
.saved-targets,
.admin-list {
  display: grid;
  gap: 10px;
}

.quick-action,
.order-row,
.target-pill,
.admin-row {
  width: 100%;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
}

.quick-action strong,
.order-row strong,
.target-pill strong,
.admin-row strong {
  display: block;
  color: var(--ink);
}

.quick-action span,
.order-row span,
.target-pill span,
.admin-row span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.order-row,
.admin-row {
  display: grid;
  gap: 10px;
}

.order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.order-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(100px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.order-meta-grid span {
  min-height: 52px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}

.order-meta-grid b {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-status {
  width: max-content;
  padding: 5px 9px;
  border-radius: 8px;
  color: #065f52;
  background: #dff8f1;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.order-status.pending {
  color: #7c4a03;
  background: #fff3c4;
}

.order-status.fulfilled {
  color: #25406f;
  background: #e5edff;
}

.order-status.ready_to_fulfill {
  color: #7a2e0e;
  background: #ffe8d6;
}

.notification-list {
  display: grid;
  gap: 10px;
}

.notification-item {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.notification-item.unread {
  border-color: #ffd0d4;
  background: #fff5f6;
}

.notification-item strong {
  color: var(--navy);
}

.notification-item span {
  color: var(--muted);
  line-height: 1.45;
}

.notification-item em {
  color: var(--muted);
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 800;
}

.sp24-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 16px;
  align-items: start;
}

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

.sp24-form label {
  display: grid;
  gap: 7px;
  color: var(--navy);
  font-weight: 900;
}

.sp24-form .btn,
.sp24-form .form-message {
  align-self: end;
}

.sp24-side {
  display: grid;
  gap: 14px;
}

.metric-card.compact {
  min-height: auto;
  padding: 16px;
}

.compact-row {
  padding: 12px;
  background: white;
}

.order-filters {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.empty-state {
  padding: 18px;
  border: 1px dashed #cfd4df;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
}

.support-panel span {
  display: inline-flex;
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 800;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: end;
  justify-content: center;
  padding: 16px;
  background: rgba(10, 14, 22, 0.62);
}

.modal[aria-hidden="false"] {
  display: flex;
}

.modal-panel {
  position: relative;
  width: min(100%, 560px);
  max-height: calc(100svh - 32px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
}

.icon-btn {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  color: var(--ink);
  background: var(--soft);
  font-weight: 900;
}

.order-steps {
  display: flex;
  gap: 8px;
  margin: 4px 44px 20px 0;
}

.step-pill {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
  background: var(--soft);
  text-align: center;
  font-size: 0.85rem;
  font-weight: 800;
}

.step-pill.active {
  color: white;
  background: var(--red);
}

.order-view,
.auth-view {
  display: none;
}

.order-view.active,
.auth-view.active {
  display: block;
}

form h2,
.order-view h2 {
  margin: 0 44px 20px 0;
  font-size: 2rem;
}

label {
  display: block;
  margin: 16px 0 8px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  min-height: 48px;
  padding: 0 13px;
  border: 1px solid #d8dbe5;
  border-radius: 8px;
  color: var(--ink);
  background: white;
}

.segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.segment {
  min-height: 46px;
  border: 1px solid #d8dbe5;
  border-radius: 8px;
  color: var(--muted);
  background: white;
  font-weight: 800;
}

.segment.active {
  color: white;
  border-color: var(--teal);
  background: var(--teal);
}

.quantity-row {
  display: grid;
  gap: 10px;
}

input[type="range"] {
  padding: 0;
  accent-color: var(--red);
}

.total-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 20px 0;
  padding: 16px;
  border-radius: 8px;
  color: white;
  background: var(--navy);
}

.total-box strong {
  font-size: 1.8rem;
}

.qr-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 12px 0 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.qr-pattern {
  width: min(70vw, 220px);
  aspect-ratio: 1;
  border: 14px solid white;
  background:
    linear-gradient(90deg, #111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px),
    linear-gradient(#111 10px, transparent 10px 20px, #111 20px 30px, transparent 30px 40px),
    #fff;
  background-size: 40px 40px;
  box-shadow: inset 0 0 0 16px #111;
}

.helper,
.field-hint,
.form-message {
  color: var(--muted);
  line-height: 1.55;
}

.field-hint {
  margin: 7px 0 0;
  font-size: 0.88rem;
}

.form-message.success {
  color: var(--teal);
  font-weight: 800;
}

.form-message.error {
  color: var(--red);
  font-weight: 800;
}

.auth-panel input + input {
  margin-top: 10px;
}

.auth-panel .btn {
  margin-top: 16px;
}

.auth-order-summary {
  margin: -6px 0 14px;
  padding: 12px;
  border: 1px solid #ffd2d6;
  border-radius: 8px;
  color: var(--navy);
  background: #fff1f2;
  font-weight: 800;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 12px;
}

.auth-link {
  min-height: 34px;
  border: 0;
  color: var(--red);
  background: transparent;
  font-weight: 900;
  text-align: left;
}

.language-select {
  width: auto;
  min-width: 74px;
  min-height: 38px;
  padding-inline: 10px;
  font-weight: 900;
}

main[data-view="sales"] {
  padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px));
}

.sales-order-bar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 19;
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(110px, auto) minmax(120px, auto);
  gap: 10px;
  align-items: center;
  padding: 10px clamp(14px, 5vw, 48px) calc(10px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -14px 34px rgba(21, 21, 31, 0.14);
  backdrop-filter: blur(16px);
}

.order-bar-summary,
.order-bar-price {
  display: grid;
  gap: 4px;
}

.order-bar-summary label,
.order-bar-price span {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.order-bar-summary input {
  max-width: 170px;
  min-height: 42px;
  font-size: 1.25rem;
  font-weight: 900;
}

.order-bar-price strong {
  color: var(--navy);
  font-size: clamp(1.45rem, 4vw, 2rem);
}

.order-bar-slider {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 26px;
  accent-color: var(--red);
}

.conversion-hero {
  display: grid;
  gap: 26px;
  align-items: center;
  min-height: calc(100svh - 160px);
  padding: clamp(26px, 6vw, 72px);
  background: linear-gradient(135deg, #172338 0%, #244a56 54%, #9c1f2e 100%);
  color: white;
}

.hero-copy h1 {
  max-width: 12ch;
}

.hero-copy p:not(.eyebrow) {
  max-width: 690px;
  color: #ffe0a5;
  font-size: clamp(1rem, 2.5vw, 1.22rem);
  line-height: 1.65;
}

.hero-actions,
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.trust-row span {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.floating-proof {
  position: absolute;
  right: 14px;
  bottom: 14px;
  max-width: 190px;
  padding: 14px;
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: var(--shadow);
}

.floating-proof strong,
.floating-proof span {
  display: block;
}

.floating-proof strong {
  color: var(--red);
  font-size: 1.8rem;
}

.process-card {
  position: absolute;
  max-width: 230px;
  padding: 13px;
  border-radius: 8px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow);
}

.process-card strong,
.process-card span {
  display: block;
}

.process-card strong {
  color: var(--navy);
  font-size: 0.98rem;
}

.process-card span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
}

.process-card-1 {
  top: 16px;
  left: 16px;
}

.process-card-2 {
  top: 45%;
  right: 16px;
}

.process-card-3 {
  left: 16px;
  bottom: 16px;
}

.order-strip {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px clamp(14px, 4vw, 42px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
}

.order-strip button {
  display: grid;
  gap: 3px;
  min-height: 56px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  color: var(--navy);
  font-weight: 900;
}

.order-strip span {
  color: var(--muted);
  font-size: 0.82rem;
}

.package-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 16px;
}

.reorder-grid {
  display: grid;
  gap: 10px;
}

.reorder-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
  text-align: left;
}

.reorder-card span,
.credit-box span {
  color: var(--muted);
}

.credit-box {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: var(--soft);
}

.credit-box strong {
  color: var(--navy);
  font-size: 2rem;
}

.period-controls,
.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.period-controls select {
  min-width: 150px;
  flex: 1 1 160px;
}

.period-pill,
.admin-tab {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  color: var(--navy);
  font-weight: 900;
}

.period-pill.active,
.admin-tab.active {
  color: white;
  border-color: var(--red);
  background: var(--red);
}

.admin-table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(21, 21, 31, 0.06);
}

.admin-grid {
  display: grid;
  min-width: 980px;
}

.admin-grid-users {
  grid-template-columns: 1.45fr 1.2fr 1fr 0.8fr 0.8fr 1.1fr 1.45fr;
}

.admin-grid-agents {
  grid-template-columns: 1.25fr 1fr 1fr 1fr 0.9fr 0.8fr 0.9fr 1.45fr;
}

.admin-grid-managers {
  grid-template-columns: 1.25fr 1fr 1fr 1.25fr 1fr 0.9fr 1.45fr;
}

.admin-grid-admins {
  grid-template-columns: 1.25fr 1fr 0.8fr 1fr 2fr 0.9fr;
}

.admin-grid > div {
  min-width: 0;
  padding: 14px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}

.admin-grid-head {
  background: #eef1f7;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.admin-grid span,
.admin-grid p {
  display: block;
  margin: 4px 0 0;
  color: var(--muted);
}

.admin-tab-panel {
  display: none;
}

.admin-tab-panel.active {
  display: block;
}

.agent-rank-grid,
.tool-grid,
.manage-grid {
  display: grid;
  gap: 14px;
}

.rank-panel,
.tool-card,
.manage-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: 0 12px 34px rgba(21, 21, 31, 0.06);
}

.rank-panel h2 {
  font-size: 1.55rem;
}

.rank-row {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.rank-row:last-child {
  border-bottom: 0;
}

.rank-row span {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: white;
  background: var(--red);
  font-weight: 900;
}

.rank-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.tool-card {
  display: grid;
  gap: 8px;
}

.admin-create-panel {
  display: grid;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.manage-panel h2 {
  margin-right: 44px;
  font-size: 2.4rem;
}

.manage-grid article span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

@media (min-width: 760px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-links {
    display: flex;
  }

  .hero {
    padding: 24px;
  }

  .intro,
  .about,
  .special {
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
    align-items: center;
  }

  .feature-grid,
  .package-grid,
  .proof-strip,
  .dashboard-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .panel-heading {
    grid-template-columns: 1fr auto;
  }

  .dashboard-hero {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  }

  .dashboard-layout {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  }

  .sp24-layout {
    grid-template-columns: minmax(0, 1fr) 380px;
  }

  .admin-nav {
    position: fixed;
    top: 72px;
    bottom: 0;
    left: 0;
    width: 250px;
    overflow-y: auto;
    align-content: start;
    grid-template-columns: 1fr;
    border-right: 1px solid var(--line);
    border-bottom: 0;
  }

  .admin-content {
    margin-left: 250px;
    padding: 24px 30px;
  }

  .admin-title {
    margin-bottom: 12px;
  }

  .admin-title h1 {
    font-size: clamp(2.6rem, 5.2vw, 4.1rem);
  }

  .owner-kpis .metric-card {
    min-height: 148px;
    padding: 18px;
  }

  .agent-rank-grid,
  .tool-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .admin-create-panel {
    grid-template-columns: 1fr auto;
  }

  .conversion-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  }

  .reorder-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .order-filters {
    grid-template-columns: minmax(260px, 1fr) 220px;
  }

  .order-row,
  .admin-row {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .modal {
    align-items: center;
  }
}

@media (max-width: 759px) {
  main[data-view="sales"] {
    padding-bottom: calc(166px + env(safe-area-inset-bottom, 0px));
  }

  .admin-nav {
    display: none;
  }

  .admin-content {
    padding: 18px 14px 28px;
  }

  .order-strip {
    grid-template-columns: 1fr;
    position: static;
  }

  .sales-order-bar {
    grid-template-columns: 1fr auto;
    padding: 9px 12px calc(11px + env(safe-area-inset-bottom, 0px));
  }

  .sales-order-bar .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .sp24-layout,
  .sp24-form {
    grid-template-columns: 1fr;
  }

  .order-meta-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .order-bar-summary input {
    max-width: none;
    width: 100%;
  }

  .conversion-hero {
    min-height: auto;
  }

  .process-card {
    position: static;
    max-width: none;
    margin-top: 8px;
  }

  .hero-actions .btn,
  .order-strip button {
    width: 100%;
  }

  .period-controls,
  .admin-tabs {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }

  .period-pill,
  .admin-tab {
    flex: 0 0 auto;
  }
}

@media (max-width: 420px) {
  .site-header {
    grid-template-columns: auto 1fr;
    gap: 8px;
    padding-inline: 14px;
  }

  .auth-actions {
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .auth-actions .btn {
    flex: 1;
  }

  .user-chip {
    width: auto;
    max-width: 160px;
    text-align: left;
  }

  .settings-popover {
    top: 74px;
    right: 10px;
    left: auto;
    width: min(92vw, 320px);
    max-height: calc(100svh - 96px);
  }

  .order-meta-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    max-width: 10ch;
  }

  .slide {
    padding: 22px;
  }
}
