/*
  Premium design bridge.

  Visual thesis:
  SkoteAI surfaces should feel like a private studio lobby: dark metal,
  warm amber light, strong receipts, confident controls, and restrained motion.

  Pattern map:
  - page/canvas:     .sk-premium-page, .sk-premium-shell
  - hero:            .sk-premium-hero, .sk-premium-kicker, .sk-premium-title
  - actions:         .sk-premium-btn, .sk-premium-btn--primary, .sk-premium-btn--secondary
  - panels:          .sk-premium-panel, .sk-premium-receipt, .sk-premium-lock
  - money/credits:   .sk-premium-price
  - section rails:   .sk-premium-section, .sk-premium-section-head, .sk-premium-rail

  This file is intentionally loaded before component-scoped CSS. Page-specific
  styles remain authoritative while new pages can reuse the shared vocabulary.
*/

:root {
  --sk-premium-radius: calc(var(--app-radius) + 0.45rem);
  --sk-premium-radius-sm: calc(var(--app-radius) + 0.12rem);
  --sk-premium-amber: var(--app-brand-color);
  --sk-premium-amber-rgb: var(--app-brand-color-rgb);
  --sk-premium-gold: #ffd27b;
  --sk-premium-copper: #ff7a18;
  --sk-premium-surface: rgba(25, 29, 33, 0.92);
  --sk-premium-surface-strong: rgba(19, 22, 25, 0.96);
  --sk-premium-line: rgba(255, 255, 255, 0.08);
  --sk-premium-line-hot: rgba(var(--sk-premium-amber-rgb), 0.28);
  --sk-premium-glow: 0 0 42px rgba(var(--sk-premium-amber-rgb), 0.18);
  --sk-premium-shadow: 0 28px 70px rgba(0, 0, 0, 0.42);
}

.sk-premium-page {
  position: relative;
  min-height: 100%;
  color: var(--app-front-color-main);
  background:
    radial-gradient(circle at 82% 8%, rgba(var(--sk-premium-amber-rgb), 0.18), transparent 28rem),
    radial-gradient(circle at 12% 34%, rgba(255, 255, 255, 0.05), transparent 23rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24rem),
    var(--app-background-color-main);
}

.sk-premium-page--grid::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black, transparent 72%);
}

.sk-premium-shell {
  position: relative;
  z-index: 1;
  color: var(--app-front-color-main);
}

.sk-premium-hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sk-premium-line);
  border-radius: var(--sk-premium-radius);
  background:
    radial-gradient(circle at 86% 18%, rgba(var(--sk-premium-amber-rgb), 0.22), transparent 22rem),
    linear-gradient(135deg, rgba(var(--sk-premium-amber-rgb), 0.11), rgba(255, 255, 255, 0.025) 45%, transparent),
    var(--sk-premium-surface);
  box-shadow:
    var(--sk-premium-shadow),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sk-premium-hero--split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.68fr);
  gap: 1.25rem;
  align-items: stretch;
  padding: clamp(1.2rem, 3vw, 2rem);
}

.sk-premium-hero--compact {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(0.95rem, 2.5vw, 1.5rem);
}

.sk-premium-hero__copy {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  justify-content: center;
}

.sk-premium-kicker {
  color: var(--sk-premium-amber);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.sk-premium-title {
  margin: 0.35rem 0 0;
  font-size: clamp(3rem, 7vw, 6.7rem);
  line-height: 0.88;
  font-weight: 950;
  letter-spacing: -0.08em;
}

.sk-premium-title--compact {
  font-size: clamp(2.15rem, 5vw, 4.25rem);
  letter-spacing: -0.06em;
}

.sk-premium-copy {
  max-width: 640px;
  margin: 1rem 0 0;
  color: var(--app-front-color-sec);
  font-size: clamp(1rem, 1.8vw, 1.2rem);
  line-height: 1.55;
}

.sk-premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.sk-premium-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: 1.05rem;
  border-radius: 999px;
  font-weight: 950;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    filter 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease;
}

.sk-premium-btn:hover:not(:disabled),
.sk-premium-btn:focus-visible:not(:disabled) {
  transform: translateY(-1px);
  outline: none;
}

.sk-premium-btn--primary {
  color: #111;
  border: 1px solid var(--sk-premium-amber);
  background: linear-gradient(135deg, var(--sk-premium-gold), var(--sk-premium-amber));
  box-shadow: 0 14px 34px rgba(var(--sk-premium-amber-rgb), 0.24);
}

.sk-premium-btn--primary:hover:not(:disabled),
.sk-premium-btn--primary:focus-visible:not(:disabled) {
  color: #111;
  filter: brightness(1.04);
  box-shadow:
    0 16px 38px rgba(var(--sk-premium-amber-rgb), 0.28),
    0 0 0 0.2rem rgba(var(--sk-premium-amber-rgb), 0.14);
}

.sk-premium-btn--secondary {
  color: var(--app-front-color-main);
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.sk-premium-btn--secondary:hover:not(:disabled),
.sk-premium-btn--secondary:focus-visible:not(:disabled) {
  color: var(--app-front-color-main);
  border-color: rgba(var(--sk-premium-amber-rgb), 0.36);
  box-shadow: 0 0 0 0.2rem rgba(var(--sk-premium-amber-rgb), 0.1);
}

.sk-premium-panel,
.sk-premium-receipt,
.sk-premium-lock {
  border: 1px solid var(--sk-premium-line-hot);
  border-radius: var(--sk-premium-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    var(--app-background-color-contrast);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.34),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

.sk-premium-panel--hot {
  border-color: rgba(var(--sk-premium-amber-rgb), 0.55);
  background:
    radial-gradient(circle at 50% 6%, rgba(var(--sk-premium-amber-rgb), 0.4), transparent 9rem),
    linear-gradient(180deg, rgba(var(--sk-premium-amber-rgb), 0.08), rgba(0, 0, 0, 0.18)),
    rgba(22, 20, 17, 0.94);
  box-shadow:
    0 0 0 1px rgba(var(--sk-premium-amber-rgb), 0.12),
    0 26px 64px rgba(0, 0, 0, 0.38),
    var(--sk-premium-glow);
}

.sk-surface-status {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 0.35rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(var(--sk-premium-amber-rgb), 0.28);
  border-radius: var(--sk-premium-radius-sm);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--sk-premium-amber-rgb), 0.13), transparent 14rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(14, 18, 22, 0.74);
  color: var(--app-front-color-main);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.sk-surface-status::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.026) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
  opacity: 0.28;
}

.sk-surface-status > * {
  position: relative;
}

.sk-surface-status__label {
  color: var(--sk-premium-amber);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sk-surface-status__title {
  color: var(--app-front-color-main);
  font-size: 1.02rem;
  font-weight: 950;
  line-height: 1.25;
}

.sk-surface-status__text {
  margin: 0;
  color: var(--app-front-color-sec);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.sk-surface-status__dot {
  width: 0.68rem;
  height: 0.68rem;
  display: inline-block;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: var(--sk-premium-amber);
  box-shadow: 0 0 20px rgba(var(--sk-premium-amber-rgb), 0.48);
  vertical-align: baseline;
}

.sk-surface-status--loading .sk-surface-status__dot {
  animation: sk-surface-status-pulse 1.1s ease-in-out infinite;
}

.sk-surface-status--success {
  border-color: rgba(140, 233, 154, 0.36);
  background:
    radial-gradient(circle at 100% 0, rgba(140, 233, 154, 0.13), transparent 14rem),
    linear-gradient(180deg, rgba(140, 233, 154, 0.05), rgba(255, 255, 255, 0.012)),
    rgba(14, 20, 16, 0.78);
}

.sk-surface-status--danger {
  border-color: rgba(255, 104, 104, 0.36);
  background:
    radial-gradient(circle at 100% 0, rgba(255, 104, 104, 0.14), transparent 14rem),
    linear-gradient(180deg, rgba(255, 104, 104, 0.055), rgba(255, 255, 255, 0.012)),
    rgba(22, 14, 15, 0.8);
}

.sk-surface-status--empty {
  text-align: center;
  place-items: center;
  padding-block: 1.25rem;
}

@keyframes sk-surface-status-pulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.88);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

.sk-premium-receipt {
  position: relative;
  overflow: hidden;
}

.sk-premium-receipt::before {
  content: "";
  position: absolute;
  inset: -35% -12% auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(var(--sk-premium-amber-rgb), 0.2), transparent 68%);
  pointer-events: none;
}

.sk-premium-label {
  color: var(--app-front-color-sec);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sk-premium-price {
  color: var(--app-front-color-main);
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 950;
  letter-spacing: -0.075em;
  line-height: 0.9;
  text-shadow: 0 0 34px rgba(var(--sk-premium-amber-rgb), 0.2);
}

.sk-premium-section {
  margin-top: 1rem;
}

.sk-premium-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.sk-premium-section-head h2 {
  margin: 0.2rem 0 0;
  color: var(--app-front-color-main);
  font-size: clamp(1.4rem, 3vw, 2.35rem);
  font-weight: 950;
  letter-spacing: -0.05em;
}

.sk-premium-section-head p {
  max-width: 42rem;
  margin: 0;
  color: var(--app-front-color-sec);
}

.sk-premium-rail {
  position: relative;
  isolation: isolate;
}

.sk-premium-rail::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--sk-premium-amber-rgb), 0.45), transparent);
}

.sk-premium-lock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.35rem);
}

.sk-premium-lock h2,
.sk-premium-lock h3 {
  margin: 0;
  color: var(--app-front-color-main);
  font-weight: 950;
  letter-spacing: -0.035em;
}

.sk-premium-lock p {
  margin: 0.3rem 0 0;
  color: var(--app-front-color-sec);
}

@keyframes sk-premium-shine {
  0%,
  52% {
    transform: translateX(-150%) rotate(18deg);
    opacity: 0;
  }

  62% {
    opacity: 0.85;
  }

  82%,
  100% {
    transform: translateX(320%) rotate(18deg);
    opacity: 0;
  }
}

.sk-premium-shine {
  position: relative;
  overflow: hidden;
}

.sk-premium-shine::after {
  content: "";
  position: absolute;
  top: -120%;
  left: -40%;
  width: 38%;
  height: 320%;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.36), transparent);
  transform: rotate(18deg);
  animation: sk-premium-shine 4.8s ease-in-out infinite;
}

/* Small feature machines: swap, undress, upscale, fit. */
.sk-small-machine {
  min-height: 100%;
  padding-bottom: 2rem;
  background:
    radial-gradient(circle at 78% 4%, rgba(var(--app-brand-color-rgb), 0.19), transparent 30rem),
    radial-gradient(circle at 8% 40%, rgba(255, 255, 255, 0.05), transparent 24rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.018), transparent 30rem),
    var(--app-background-color-main);
}

.sk-small-machine::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: linear-gradient(180deg, black, transparent 78%);
}

.sk-small-machine__shell {
  display: grid;
  max-width: 1420px;
  gap: 1.15rem;
}

.sk-small-machine__hero {
  min-height: 0;
  grid-template-columns: minmax(0, 1fr) 260px;
  align-items: stretch;
  padding: clamp(0.9rem, 1.8vw, 1.35rem);
  border-color: rgba(var(--app-brand-color-rgb), 0.3);
  background:
    radial-gradient(circle at 90% 10%, rgba(var(--app-brand-color-rgb), 0.28), transparent 20rem),
    radial-gradient(circle at 54% 120%, rgba(255, 122, 24, 0.16), transparent 24rem),
    linear-gradient(135deg, rgba(var(--app-brand-color-rgb), 0.14), rgba(255, 255, 255, 0.025) 48%, rgba(0, 0, 0, 0.18)),
    rgba(25, 29, 33, 0.95);
}

.sk-small-machine__hero .sk-feature-hero__copy {
  position: relative;
  z-index: 1;
  min-height: 0;
}

.sk-small-machine__hero h1 {
  max-width: 760px;
  margin: 0.15rem 0 0;
  color: var(--app-front-color-main);
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 0.95;
}

.sk-small-machine__hero p {
  margin: 0.65rem 0 0;
}

.sk-small-machine__status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 790px;
  margin-top: 0.9rem;
}

.sk-small-machine__status span {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
  padding: 0.58rem 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: calc(var(--app-radius) - 0.1rem);
  background: rgba(255, 255, 255, 0.045);
}

.sk-small-machine__status strong {
  min-width: 0;
  overflow: hidden;
  color: var(--app-front-color-main);
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-small-machine__status em {
  color: var(--app-front-color-sec);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sk-small-machine .sk-feature-hero__meter {
  position: relative;
  z-index: 1;
  min-width: 260px;
  width: 260px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "label label"
    "coin value"
    "hint hint";
  align-content: end;
  align-self: stretch;
  gap: 0.25rem 0.7rem;
  padding: 0.85rem;
  border-color: rgba(var(--app-brand-color-rgb), 0.24);
  background: linear-gradient(135deg, rgba(var(--app-brand-color-rgb), 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: var(--app-shadow);
}

.sk-small-machine .sk-feature-hero__meter .sk-premium-label {
  grid-area: label;
}

.sk-small-machine .sk-feature-hero__meter .sk-coin {
  grid-area: coin;
  align-self: center;
  width: 1.25rem;
  height: 1.25rem;
  box-shadow:
    inset 0 0 0 4px rgba(0, 0, 0, 0.22),
    0 0 1.2rem rgba(var(--app-brand-color-rgb), 0.5);
}

.sk-small-machine .sk-feature-hero__meter-value {
  grid-area: value;
  align-self: end;
  font-size: clamp(2.45rem, 4.7vw, 4.25rem);
}

.sk-small-machine .sk-feature-hero__meter-label {
  grid-area: hint;
  margin-top: 0.4rem;
}

.sk-small-machine .sk-card,
.sk-small-machine .sk-premium-panel {
  border-color: rgba(var(--app-brand-color-rgb), 0.28);
  border-radius: calc(var(--app-radius) + 0.45rem);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0.018)),
    rgba(36, 41, 46, 0.94);
  box-shadow:
    0 26px 72px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.055);
}

.sk-small-machine__workbench {
  position: relative;
  overflow: visible;
  padding: clamp(1rem, 1.8vw, 1.25rem) !important;
}

.sk-small-machine__module {
  position: relative;
  overflow: visible;
  min-height: 335px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.085);
  border-radius: calc(var(--app-radius) + 0.1rem);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--app-brand-color-rgb), 0.1), transparent 12rem),
    rgba(20, 24, 28, 0.52);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    transform 0.18s ease;
}

.sk-small-machine__module:hover {
  border-color: rgba(var(--app-brand-color-rgb), 0.26);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--app-brand-color-rgb), 0.14), transparent 12rem),
    rgba(20, 24, 28, 0.62);
}

.sk-small-machine__module--primary {
  background:
    radial-gradient(circle at 88% 8%, rgba(var(--app-brand-color-rgb), 0.15), transparent 18rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.016)),
    rgba(19, 23, 27, 0.72);
}

.sk-small-machine__module--side {
  background:
    radial-gradient(circle at 100% 0, rgba(var(--app-brand-color-rgb), 0.14), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.038), rgba(255, 255, 255, 0.014)),
    rgba(19, 23, 27, 0.7);
}

.sk-small-machine__module-head {
  min-height: 2.35rem;
}

.sk-small-machine__label {
  color: var(--app-brand-color);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sk-small-machine__pill {
  padding: 0.18rem 0.5rem;
  border: 1px solid rgba(var(--app-brand-color-rgb), 0.22);
  border-radius: 999px;
  color: var(--app-front-color-sec);
  background: rgba(var(--app-brand-color-rgb), 0.055);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sk-small-machine .sk-small-machine__module .idu-box {
  padding: 0.65rem;
  border-color: rgba(var(--app-brand-color-rgb), 0.24);
  border-radius: calc(var(--app-radius) + 0.05rem);
  background:
    radial-gradient(circle at 90% 0, rgba(var(--app-brand-color-rgb), 0.11), transparent 13rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.032), rgba(255, 255, 255, 0.01)),
    rgba(4, 7, 10, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.045),
    0 16px 34px rgba(0, 0, 0, 0.18);
}

.sk-small-machine .sk-small-machine__module .idu-drop,
.sk-small-machine .sk-small-machine__module .idu-mobile-picker {
  --idu-drop-min-h: 238px;
  border-color: rgba(var(--app-brand-color-rgb), 0.44);
  background:
    radial-gradient(circle at 50% 10%, rgba(var(--app-brand-color-rgb), 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    rgba(3, 6, 9, 0.72);
}

.sk-small-machine .sk-small-machine__module .idu-drop--disabled {
  border-color: rgba(var(--app-brand-color-rgb), 0.4);
  background:
    radial-gradient(circle at 50% 8%, rgba(var(--app-brand-color-rgb), 0.12), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), rgba(255, 255, 255, 0.008)),
    rgba(3, 6, 9, 0.8);
}

.sk-small-machine .sk-small-machine__module .idu-preview {
  --idu-preview-h: 268px;
  border-color: rgba(var(--app-brand-color-rgb), 0.28);
  background:
    radial-gradient(circle at 50% 10%, rgba(var(--app-brand-color-rgb), 0.1), transparent 12rem),
    rgba(3, 6, 9, 0.82);
}

.sk-small-machine .sk-small-machine__module .idu-preview img {
  background: rgba(3, 6, 9, 0.86);
}

.sk-small-machine .text-muted.small {
  line-height: 1.35;
}

.sk-small-machine-picker {
  position: relative;
  width: 100%;
  min-width: 0;
}

.sk-small-machine-picker--open {
  z-index: 95;
}

.sk-small-machine-picker__trigger {
  min-height: 58px;
  width: 100%;
  position: relative;
  z-index: 92;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding: 0.65rem 0.82rem;
  border: 1px solid rgba(var(--app-brand-color-rgb), 0.24);
  border-radius: calc(var(--app-radius) + 0.05rem);
  color: var(--app-front-color-main);
  background:
    radial-gradient(circle at 98% 0, rgba(var(--app-brand-color-rgb), 0.14), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.014)),
    rgba(9, 12, 15, 0.58);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 28px rgba(0, 0, 0, 0.16);
  text-align: left;
  font-weight: 850;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.sk-small-machine-picker__trigger:hover,
.sk-small-machine-picker__trigger:focus-visible {
  border-color: rgba(var(--app-brand-color-rgb), 0.68);
  background:
    radial-gradient(circle at 98% 0, rgba(var(--app-brand-color-rgb), 0.19), transparent 8rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.018)),
    rgba(9, 12, 15, 0.68);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 0.18rem rgba(var(--app-brand-color-rgb), 0.12),
    0 18px 36px rgba(0, 0, 0, 0.2);
  outline: 0;
}

.sk-small-machine-picker__selected {
  min-width: 0;
  overflow: hidden;
  color: var(--app-front-color-main);
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sk-small-machine-picker__side {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  color: var(--app-brand-color);
}

.sk-small-machine-picker__backdrop {
  position: fixed;
  inset: 0;
  z-index: 88;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: default;
}

.sk-small-machine-picker__menu {
  position: absolute;
  z-index: 94;
  top: calc(100% + 0.4rem);
  left: 0;
  right: 0;
  display: grid;
  gap: 0.22rem;
  max-height: min(340px, 54vh);
  overflow: auto;
  padding: 0.38rem;
  border: 1px solid rgba(var(--app-brand-color-rgb), 0.42);
  border-radius: calc(var(--app-radius) + 0.12rem);
  background:
    radial-gradient(circle at 100% 0, rgba(var(--app-brand-color-rgb), 0.18), transparent 14rem),
    linear-gradient(180deg, rgba(49, 55, 62, 0.98), rgba(28, 33, 38, 0.98));
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.48),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.sk-small-machine-picker__option {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0.5rem 0.65rem;
  border: 1px solid transparent;
  border-radius: calc(var(--app-radius) - 0.18rem);
  color: var(--app-front-color-main);
  background: rgba(255, 255, 255, 0.018);
  cursor: pointer;
  font-weight: 750;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.sk-small-machine-picker__option:hover,
.sk-small-machine-picker__option:focus-visible {
  border-color: rgba(var(--app-brand-color-rgb), 0.46);
  background: rgba(var(--app-brand-color-rgb), 0.09);
  outline: 0;
}

.sk-small-machine-picker__option--selected {
  border-color: rgba(var(--app-brand-color-rgb), 0.72);
  background:
    linear-gradient(90deg, rgba(var(--app-brand-color-rgb), 0.2), rgba(var(--app-brand-color-rgb), 0.075)),
    rgba(255, 255, 255, 0.035);
}

.sk-small-machine .sk-generate-receipt {
  position: sticky;
  bottom: 0.75rem;
  z-index: 15;
  display: grid !important;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, auto) minmax(220px, auto);
  gap: 0.9rem;
  align-items: center !important;
  margin-top: 0.2rem;
  padding: 0.72rem;
  border-color: rgba(var(--app-brand-color-rgb), 0.38);
  background:
    radial-gradient(circle at 90% 0, rgba(var(--app-brand-color-rgb), 0.18), transparent 16rem),
    linear-gradient(180deg, rgba(34, 39, 44, 0.94), rgba(20, 24, 28, 0.96));
  backdrop-filter: blur(14px);
}

.sk-small-machine .sk-generate-receipt__copy {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.sk-small-machine .sk-generate-receipt__copy strong {
  color: var(--app-front-color-main);
  font-size: 1.08rem;
  font-weight: 950;
  letter-spacing: -0.035em;
}

.sk-small-machine .sk-generate-receipt__copy small {
  color: var(--app-front-color-sec);
  line-height: 1.35;
}

.sk-small-machine .sk-estimate {
  min-height: 46px;
  padding: 0.45rem 0.78rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--app-front-color-sec);
  font-size: 14px;
}

.sk-small-machine .sk-estimate .fw-semibold {
  color: var(--app-front-color-main);
  font-size: 1.05rem;
  font-weight: 950;
}

.sk-small-machine .sk-coin {
  width: 16px;
  height: 16px;
  display: inline-block;
  border-radius: 50%;
  background: var(--app-brand-color);
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, 0.25);
}

.sk-small-machine .sk-generate-button {
  min-width: 13.5rem;
  min-height: 54px;
  border-radius: 999px;
  font-weight: 950;
  box-shadow:
    0 14px 34px rgba(var(--app-brand-color-rgb), 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

.sk-small-machine .sk-gate-button--blocked {
  min-width: 17rem;
}

.sk-small-machine .sk-plan-upgrade-hint {
  margin: 0;
  max-width: 30rem;
}

@media (prefers-reduced-motion: reduce) {
  .sk-premium-shine::after {
    animation: none;
    opacity: 0;
  }
}

@media (max-width: 991.98px) {
  .sk-small-machine__hero {
    grid-template-columns: 1fr;
  }

  .sk-small-machine__status {
    grid-template-columns: 1fr;
  }

  .sk-small-machine .sk-feature-hero__meter {
    min-width: 0;
  }

  .sk-small-machine__module {
    min-height: 0;
  }

  .sk-small-machine .sk-generate-receipt {
    grid-template-columns: 1fr;
    align-items: stretch !important;
  }

  .sk-small-machine .sk-generate-receipt .sk-estimate {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .sk-premium-hero--split,
  .sk-premium-hero--compact,
  .sk-premium-section-head,
  .sk-premium-lock {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .sk-premium-hero__copy {
    min-height: auto;
  }

  .sk-premium-title {
    font-size: clamp(2.4rem, 13vw, 4.3rem);
  }
}

@media (max-width: 767.98px) {
  .sk-small-machine {
    padding-bottom: calc(11.75rem + env(safe-area-inset-bottom, 0px));
  }

  .sk-small-machine__shell {
    gap: 0.95rem;
  }

  .sk-small-machine__hero {
    padding: 1rem;
  }

  .sk-small-machine .sk-feature-hero__meter {
    display: none;
  }

  .sk-small-machine__hero h1 {
    font-size: clamp(2.65rem, 16vw, 4rem);
  }

  .sk-small-machine__status {
    gap: 0.5rem;
    margin-top: 1rem;
  }

  .sk-small-machine__workbench,
  .sk-small-machine .sk-card {
    padding: 0.85rem !important;
  }

  .sk-small-machine__module {
    padding: 0.85rem;
  }

  .sk-small-machine__module-head {
    align-items: stretch !important;
    flex-direction: column;
  }

  .sk-small-machine__pill {
    align-self: flex-start;
  }

  .sk-small-machine .sk-generate-receipt {
    left: 0.65rem;
    right: 0.65rem;
    bottom: calc(env(safe-area-inset-bottom, 0px) + 0.65rem);
    box-sizing: border-box;
    grid-template-columns: 1fr;
    max-height: none;
    overflow: visible;
    gap: 0.62rem;
    padding: 0.72rem;
    border-radius: calc(var(--app-radius) + 0.2rem);
  }

  .sk-small-machine .sk-generate-receipt__copy {
    display: none;
  }

  .sk-small-machine .sk-estimate {
    min-height: 38px;
    min-width: 0;
    align-self: stretch;
    justify-content: flex-start;
    padding: 0.35rem 0.6rem;
  }

  .sk-small-machine .sk-generate-button,
  .sk-small-machine .sk-gate-button--blocked {
    min-width: 0;
    width: 100%;
    min-height: 46px;
  }

  .sk-small-machine .sk-plan-upgrade-hint {
    grid-column: 1 / -1;
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 0;
    padding: 0.48rem 0.62rem;
    font-size: 0.78rem;
    line-height: 1.28;
    text-align: center;
  }

  .sk-small-machine-picker__menu {
    max-height: min(220px, 34vh);
  }
}
