:root {
  --bg: #070304;
  --line: rgba(255, 255, 255, 0.09);
  --text: #fff4f6;
  --muted: rgba(255, 232, 236, 0.7);
  --accent: #ff496f;
  --accent-2: #ff8a65;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at top, rgba(255, 95, 126, 0.18), transparent 20%),
    radial-gradient(circle at bottom right, rgba(255, 182, 133, 0.1), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: "Manrope", sans-serif;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

.particle-field {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: var(--size);
  height: var(--size);
  left: var(--left);
  top: var(--top);
  border-radius: 50%;
  opacity: var(--opacity);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(201, 201, 201, 0.35) 62%, transparent 100%);
  filter: blur(var(--blur));
  animation: drift var(--duration) linear infinite;
  animation-delay: var(--delay);
}

@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(0.9); }
  to { transform: translate3d(var(--drift-x), var(--drift-y), 0) scale(1.25); }
}

.backdrop-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}

.backdrop-glow-one {
  inset: 2% auto auto -8%;
  width: 280px;
  height: 280px;
  background: rgba(255, 76, 107, 0.15);
}

.backdrop-glow-two {
  inset: auto -10% 16% auto;
  width: 320px;
  height: 320px;
  background: rgba(255, 154, 102, 0.12);
}

.app-frame {
  position: relative;
  z-index: 1;
  max-width: 520px;
  margin: 0 auto;
  padding: 22px 18px 150px;
}

.topbar,
.hero-stats,
.service-grid,
.case-grid,
.product-grid,
.profile-summary,
.history-list,
.chip-row,
.screen,
.modal-actions,
.mode-grid {
  display: grid;
  gap: 14px;
}

.topbar {
  grid-template-columns: 1fr auto;
  align-items: start;
  margin-bottom: 18px;
}

.topbar-kicker,
.section-kicker,
.eyebrow,
.product-meta {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  color: rgba(255, 220, 226, 0.72);
}

#screenTitle,
.hero-copy h2,
.screen-head h2,
.screen-head h3,
.product-card h3,
.case-card h3 {
  margin: 0;
}

#screenTitle {
  font-size: 28px;
}

.wallet-pill,
.hero-card,
.service-card,
.case-card,
.product-card,
.summary-card,
.history-card,
.modal-card,
.cart-fab-card,
.catalog-toolbar {
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(24, 10, 14, 0.98), rgba(9, 5, 6, 0.94));
  box-shadow: var(--shadow);
}

.wallet-pill {
  display: grid;
  gap: 4px;
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 22px;
  color: var(--text);
  text-align: left;
}

.screen {
  display: none;
}

.screen.is-active {
  display: grid;
}

.hero-card,
.service-card,
.case-card,
.product-card,
.summary-card,
.history-card,
.modal-card,
.catalog-toolbar {
  padding: 18px;
}

.hero-card {
  gap: 18px;
  padding: 22px;
}

.hero-copy {
  display: grid;
  gap: 10px;
}

.hero-copy h2 {
  font-size: 29px;
  line-height: 1.08;
}

.hero-copy p,
.service-card p,
.case-card p,
.product-card p,
.summary-card p,
.history-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

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

.mini-stat {
  padding: 14px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.mini-stat strong {
  display: block;
  margin-top: 8px;
  font-size: 18px;
}

.service-grid,
.profile-summary {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.service-card,
.summary-card,
.history-card,
.case-card,
.product-card {
  display: grid;
  gap: 12px;
}

.card-actions,
.product-actions,
.case-actions,
.quick-tags,
.case-drop-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.primary-button,
.secondary-button,
.ghost-button,
.chip,
.case-chip,
.nav-item {
  min-height: 46px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid transparent;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.secondary-button,
.ghost-button,
.chip,
.case-chip,
.nav-item {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: var(--text);
}

.catalog-toolbar {
  gap: 14px;
}

.search-input,
.field input,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.chip-row {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
}

.chip.is-active,
.nav-item.is-active {
  background: linear-gradient(135deg, rgba(255, 73, 111, 0.24), rgba(255, 138, 101, 0.2));
  border-color: rgba(255, 125, 125, 0.32);
}

.product-cover,
.case-visual {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-cover {
  min-height: 168px;
  background: linear-gradient(180deg, rgba(255, 81, 111, 0.16), rgba(255, 255, 255, 0.03));
}

.product-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-glow {
  position: absolute;
  inset: auto -18% -38% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16), transparent 72%);
}

.price-line,
.profile-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.product-price,
.case-price {
  font-size: 22px;
  font-weight: 800;
}

.tag {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 12px;
}

.case-visual {
  min-height: 154px;
  background: radial-gradient(circle at center, rgba(255, 255, 255, 0.14), transparent 48%);
}

.case-orb {
  position: absolute;
  inset: 28px auto auto 50%;
  width: 96px;
  height: 96px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 111, 139, 0.8) 42%, rgba(255, 73, 111, 0.2) 78%, transparent 100%);
  box-shadow: 0 0 58px rgba(255, 88, 118, 0.34);
}

.case-ring {
  position: absolute;
  inset: 18px;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.case-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.3);
  font-size: 11px;
  letter-spacing: 0.14em;
}

.case-chip {
  min-height: 36px;
  padding-inline: 12px;
  font-size: 12px;
}

.status-pill {
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-size: 12px;
  color: var(--muted);
}

.cart-fab-card {
  position: fixed;
  left: 50%;
  bottom: 108px;
  z-index: 20;
  width: min(420px, calc(100vw - 34px));
  padding: 10px;
  transform: translateX(-50%);
}

.cart-fab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 0 16px;
  border-radius: 18px;
  border: 0;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
}

.cart-fab-card small {
  display: block;
  padding: 8px 10px 2px;
  color: var(--muted);
}

.floating-nav {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 25;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(460px, calc(100vw - 24px));
  padding: 10px;
  transform: translateX(-50%);
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(8, 5, 6, 0.94);
  box-shadow: var(--shadow);
}

.nav-item {
  min-height: 54px;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: end center;
  padding: 16px;
  background: rgba(0, 0, 0, 0.56);
}

.modal-backdrop.is-hidden {
  display: none;
}

.modal-card {
  width: min(520px, 100%);
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 22px;
}

.modal-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: start;
  margin-bottom: 16px;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

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

.mode-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  text-align: left;
}

.mode-card.is-disabled {
  opacity: 0.45;
}

.mode-card.is-active {
  background: linear-gradient(135deg, rgba(255, 73, 111, 0.24), rgba(255, 138, 101, 0.18));
  border-color: rgba(255, 130, 130, 0.34);
}

.reel-shell {
  overflow: hidden;
  padding: 18px 0;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.reel-track {
  display: flex;
  gap: 12px;
}

.reel-item {
  flex: 0 0 170px;
  min-height: 124px;
  padding: 16px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
}

.reel-pointer {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.reel-pointer::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #fff);
  box-shadow: 0 0 24px rgba(255, 88, 118, 0.36);
}

.toast {
  position: fixed;
  left: 50%;
  top: 20px;
  z-index: 50;
  padding: 12px 16px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(8, 6, 6, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.is-visible {
  opacity: 1;
}

.empty-state {
  padding: 18px;
  border-radius: 24px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  color: var(--muted);
  text-align: center;
}

@media (max-width: 640px) {
  .app-frame {
    padding-inline: 14px;
    padding-bottom: 148px;
  }

  .topbar,
  .service-grid,
  .profile-summary,
  .hero-stats,
  .mode-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: 24px;
  }

  .floating-nav {
    width: calc(100vw - 18px);
    bottom: 14px;
    gap: 8px;
    padding: 8px;
  }

  .cart-fab-card {
    width: calc(100vw - 18px);
    bottom: 96px;
  }

  .nav-item {
    padding-inline: 10px;
    font-size: 12px;
  }
}
