:root {
  --bg: #050816;
  --bg-deep: #02040c;
  --surface: rgba(10, 19, 38, 0.66);
  --surface-strong: rgba(12, 23, 44, 0.9);
  --surface-soft: rgba(255, 255, 255, 0.05);
  --surface-border: rgba(255, 255, 255, 0.1);
  --text: #f6f8ff;
  --muted: #a0afdc;
  --muted-strong: #c7d2f4;
  --accent: #71efff;
  --accent-strong: #67b8ff;
  --accent-shadow: rgba(103, 184, 255, 0.28);
  --danger: #ff7f98;
  --danger-shadow: rgba(255, 127, 152, 0.18);
  --success: #87f3d0;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --page-width: min(1160px, calc(100vw - 48px));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
  background: #000;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Avenir Next", "Segoe UI", "Helvetica Neue", sans-serif;
  line-height: 1.45;
  background-color: #000;
  background:
    radial-gradient(circle at 20% 20%, rgba(67, 185, 255, 0.12), transparent 24%),
    radial-gradient(circle at 75% 15%, rgba(116, 241, 255, 0.1), transparent 26%),
    radial-gradient(circle at 55% 48%, rgba(125, 108, 255, 0.08), transparent 28%),
    linear-gradient(180deg, #000 0%, #01040a 52%, #000 100%);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding-bottom: 2rem;
}

.ambient {
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: -1;
  filter: blur(16px);
  opacity: 0.72;
  animation: drift 24s ease-in-out infinite alternate;
}

.ambient-one {
  top: 5rem;
  right: -4rem;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94, 226, 255, 0.28), transparent 70%);
}

.ambient-two {
  bottom: 10rem;
  left: -6rem;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(103, 130, 255, 0.22), transparent 70%);
  animation-duration: 24s;
}

.ambient-three {
  top: 38%;
  left: 35%;
  width: 22rem;
  height: 22rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128, 245, 255, 0.14), transparent 70%);
  animation-duration: 22s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  padding-top: 1.2rem;
}

.header-bar {
  width: var(--page-width);
  margin: 0 auto;
  padding: 0.9rem 1.15rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(8, 12, 26, 0.58);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.logo-image {
  width: clamp(150px, 16vw, 196px);
  height: auto;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.header-inline-form {
  margin: 0;
  display: flex;
}

.top-line {
  display: none;
}

.section,
.wrap,
.prizm-main,
.auth-shell,
.app-screen {
  width: var(--page-width);
  margin: 0 auto;
}

.prizm-main,
.app-screen {
  display: grid;
  gap: 1.4rem;
  padding: 2.5rem 0 1rem;
}

.auth-shell {
  padding: 2.4rem 0 1rem;
}

.surface-panel,
.panel,
.payment-request-card,
.modal-panel {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(11, 18, 34, 0.72);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.surface-panel,
.panel {
  padding: clamp(1.45rem, 3vw, 2rem);
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.2rem;
  padding: 0.88rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: 0.96rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-align: center;
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.button:hover,
.button:focus-visible,
button:hover,
button:focus-visible {
  transform: translateY(-2px);
}

.button-primary,
.button.primary,
button.primary {
  color: #05101a;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #7af6ff 0%, #78c8ff 55%, #d5f5ff 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 18px 38px rgba(121, 214, 255, 0.28);
}

.button-primary:hover,
.button-primary:focus-visible,
.button.primary:hover,
.button.primary:focus-visible,
button.primary:hover,
button.primary:focus-visible {
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08) inset,
    0 24px 48px rgba(121, 214, 255, 0.34);
}

.button-outline,
.button-ghost,
button:not(.primary):not(.button-primary):not(.danger),
.button:not(.button-primary):not(.danger):not(.primary) {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
}

.button-outline:hover,
.button-outline:focus-visible,
.button-ghost:hover,
.button-ghost:focus-visible,
button:not(.primary):not(.button-primary):not(.danger):hover,
button:not(.primary):not(.button-primary):not(.danger):focus-visible,
.button:not(.button-primary):not(.danger):not(.primary):hover,
.button:not(.button-primary):not(.danger):not(.primary):focus-visible {
  border-color: rgba(113, 239, 255, 0.4);
  background: rgba(255, 255, 255, 0.08);
}

.button.danger,
button.danger {
  border-color: rgba(255, 127, 152, 0.32);
  color: #ffd4dd;
  background: rgba(255, 127, 152, 0.08);
  box-shadow: 0 16px 30px var(--danger-shadow);
}

.button.danger:hover,
.button.danger:focus-visible,
button.danger:hover,
button.danger:focus-visible {
  border-color: rgba(255, 127, 152, 0.52);
  background: rgba(255, 127, 152, 0.14);
}

.button.full,
button.full {
  width: 100%;
}

.button.big,
button.big {
  min-height: 4.4rem;
}

.button:disabled,
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.page-nav {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 0.7rem;
}

.back-button {
  min-width: 7.4rem;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.88fr);
  gap: 1.4rem;
  align-items: stretch;
}

.auth-story,
.auth-card {
  min-height: 100%;
}

.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.4rem;
  padding: clamp(1.8rem, 3vw, 2.5rem);
}

.auth-story-title,
.dashboard-title,
.page-title,
.topup-title,
.history-title,
.payment-request-title {
  margin: 0;
  font-family: "SF Pro Display", "Avenir Next", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.auth-story-title {
  font-size: clamp(2.2rem, 4.8vw, 3.6rem);
}

.auth-story-text,
.dashboard-text,
.auth-card-text,
.section-subtitle,
.payment-request-summary,
.muted {
  color: var(--muted-strong);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem 1rem;
}

.hero-proof span {
  display: flex;
  align-items: center;
  min-height: 3.4rem;
  padding: 0.9rem 1rem 0.9rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.94rem;
  line-height: 1.45;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.16);
}

.hero-proof span::before {
  content: "";
  flex: 0 0 auto;
  width: 0.46rem;
  height: 0.46rem;
  margin-right: 0.72rem;
  border-radius: 50%;
  background: linear-gradient(135deg, #7af6ff 0%, #78c8ff 100%);
  box-shadow: 0 0 16px rgba(122, 246, 255, 0.45);
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}

.platform-strip span {
  position: relative;
}

.platform-strip span + span::before {
  content: "";
  position: absolute;
  left: -0.55rem;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(113, 239, 255, 0.42);
  transform: translateY(-50%);
}

.auth-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: clamp(1.45rem, 3vw, 2rem);
}

.auth-title {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.auth-form {
  display: grid;
  gap: 0.15rem;
}

.auth-links {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.4rem;
}

.auth-switch {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.auth-switch a {
  color: var(--text);
}

.auth-actions-row {
  margin: 0.4rem 0 0;
  display: flex;
}

.field {
  display: grid;
  gap: 0.62rem;
  margin: 1rem 0;
}

.compact-field {
  margin: 0;
}

label {
  color: #d8e1ff;
  font-size: 0.95rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.95rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  background: rgba(4, 9, 19, 0.88);
  color: var(--text);
  font-size: 0.98rem;
}

textarea {
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: rgba(199, 210, 244, 0.5);
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid rgba(122, 246, 255, 0.45);
  border-color: rgba(122, 246, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(122, 246, 255, 0.08);
}

.auth-submit {
  margin-top: 1rem;
}

.verify-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.notice,
.error {
  margin: 1rem 0;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
}

.notice {
  color: var(--text);
}

.error {
  border-color: rgba(255, 127, 152, 0.38);
  background: rgba(255, 127, 152, 0.1);
  color: #ffe0e6;
}

.flash-banner {
  margin: 0;
}

.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.75fr);
  gap: 1.4rem;
  padding: clamp(1.6rem, 3vw, 2.3rem);
}

.dashboard-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
}

.dashboard-title {
  font-size: clamp(2.45rem, 5vw, 4.25rem);
  text-wrap: balance;
}

.dashboard-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.dashboard-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted-strong);
  font-size: 0.94rem;
}

.dashboard-balance-panel {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) + 2px);
  background:
    linear-gradient(140deg, rgba(113, 239, 255, 0.08), rgba(255, 255, 255, 0.04) 35%, rgba(122, 170, 255, 0.1) 100%),
    rgba(7, 15, 29, 0.88);
}

.balance-block {
  display: grid;
  gap: 0.4rem;
  padding: 1.45rem 1.55rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(140deg, rgba(113, 239, 255, 0.08), rgba(255, 255, 255, 0.03) 30%, rgba(122, 170, 255, 0.08) 100%),
    rgba(7, 15, 29, 0.88);
}

.balance-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.balance-value {
  margin: 0;
  font-family: "SF Pro Display", "Avenir Next", sans-serif;
  font-size: clamp(2.6rem, 5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.94;
}

.balance-horizon {
  margin: 0;
  color: var(--muted-strong);
  font-size: 0.96rem;
  line-height: 1.55;
}

.balance-meta {
  display: grid;
  gap: 0.95rem;
  margin: 0;
}

.balance-meta div {
  display: grid;
  gap: 0.25rem;
}

.balance-meta dt {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.balance-meta dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.action-tile {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.3rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    rgba(11, 18, 34, 0.72);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.22);
  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.action-tile:hover,
.action-tile:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(113, 239, 255, 0.18);
  box-shadow: 0 28px 52px rgba(0, 0, 0, 0.28);
}

.action-icon {
  flex: 0 0 auto;
  width: 3.3rem;
  height: 3.3rem;
  display: grid;
  place-items: center;
  border-radius: 1.1rem;
  color: var(--accent);
  background: rgba(113, 239, 255, 0.08);
  border: 1px solid rgba(113, 239, 255, 0.14);
}

.action-icon svg {
  width: 1.7rem;
  height: 1.7rem;
}

.action-content {
  display: grid;
  gap: 0.35rem;
}

.action-content strong {
  font-size: 1.06rem;
  line-height: 1.25;
}

.action-content small {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.account-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.74fr);
  gap: 1.2rem;
  align-items: start;
}

.account-sidebar {
  display: grid;
  gap: 1.2rem;
  align-self: start;
}

.section-panel {
  display: grid;
  gap: 1.2rem;
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.section-title-stack {
  align-items: flex-start;
}

.devices-title-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.device-price-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  border: 1px solid rgba(113, 239, 255, 0.18);
  background: rgba(113, 239, 255, 0.08);
  color: var(--muted-strong);
  font-size: 0.86rem;
  font-weight: 700;
}

.section-title {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -0.04em;
}

.section-subtitle {
  margin: 0.45rem 0 0;
}

.device-list {
  display: grid;
  gap: 0.9rem;
  align-content: start;
}

.device-card {
  display: grid;
  align-self: start;
  gap: 1rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03)),
    rgba(7, 15, 29, 0.78);
}

.device-card-active {
  border-color: rgba(113, 239, 255, 0.22);
  box-shadow: 0 22px 48px rgba(64, 144, 255, 0.16);
}

.device-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.device-id {
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.device-name {
  margin: 0.4rem 0 0;
  font-size: 1.15rem;
  line-height: 1.25;
}

.device-badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: rgba(113, 239, 255, 0.12);
  color: var(--success);
  font-size: 0.82rem;
  font-weight: 700;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.empty-state-card {
  justify-items: flex-start;
}

.instructions-panel,
.support-panel {
  align-content: start;
}

.instructions-title {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 700;
}

.instruction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.support-link {
  width: 100%;
}

.referral-panel input {
  overflow: hidden;
  text-overflow: ellipsis;
}

.wish-form {
  display: grid;
  gap: 0.8rem;
}

.wish-form textarea {
  min-height: 9rem;
}

.wish-status {
  margin: 0;
}

.error-screen {
  min-height: min(42rem, calc(100vh - 9rem));
  align-content: center;
}

.error-card {
  max-width: 48rem;
  display: grid;
  gap: 1rem;
}

.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.4rem;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.support-screen {
  gap: 1.2rem;
}

.support-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.55fr);
  gap: 1rem;
  align-items: end;
}

.support-hero-badge {
  display: grid;
  gap: 0.35rem;
  padding: 1.2rem 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(113, 239, 255, 0.16);
  background: rgba(113, 239, 255, 0.08);
}

.support-hero-badge span {
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.support-hero-badge strong {
  font-size: 1.28rem;
  line-height: 1.2;
}

.support-options-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.support-option-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.support-chat-shell {
  display: grid;
  gap: 1.2rem;
}

.support-thread-status {
  margin: 0;
  color: var(--muted-strong);
  font-weight: 600;
}

.support-chat-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.44fr) minmax(0, 1fr);
  gap: 1rem;
}

.support-chat-info {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.support-chat-panel {
  display: grid;
  gap: 0.9rem;
}

.support-messages {
  min-height: 24rem;
  max-height: 34rem;
  overflow: auto;
  padding: 1rem;
  display: grid;
  gap: 0.9rem;
  align-content: start;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01)),
    rgba(5, 10, 22, 0.9);
}

.support-empty {
  margin: 0;
  color: var(--muted);
}

.support-error {
  margin: 0;
}

.support-message {
  max-width: min(36rem, 92%);
  align-self: start;
  padding: 0.95rem 1rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
}

.support-message-client {
  margin-left: auto;
  background: linear-gradient(135deg, rgba(113, 239, 255, 0.12), rgba(103, 184, 255, 0.1));
  border-color: rgba(113, 239, 255, 0.18);
}

.support-message-admin {
  margin-right: auto;
}

.support-message-meta {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.support-message-body {
  margin: 0.5rem 0 0;
  white-space: pre-wrap;
  line-height: 1.65;
}

.support-message-image {
  width: 100%;
  max-height: 24rem;
  margin-top: 0.75rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  object-fit: contain;
  background: rgba(0, 0, 0, 0.3);
}

.support-composer {
  display: grid;
  gap: 0.8rem;
}

.support-composer textarea {
  width: 100%;
  min-height: 7rem;
}

.support-composer-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.support-photo-name {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-panel,
.panel {
  width: 100%;
}

.history-title,
.topup-title,
.page-title,
.payment-request-title {
  font-size: clamp(2.15rem, 5vw, 3.2rem);
}

.topup-form,
.history-list,
.payment-request-meta {
  display: grid;
  gap: 0.95rem;
}

.pay-buttons {
  display: grid;
  gap: 1rem;
  margin-top: 0.6rem;
}

.pay-button {
  display: grid;
  justify-items: flex-start;
  gap: 0.35rem;
  min-height: 5rem;
  padding: 1.15rem 1.2rem;
  border-radius: var(--radius-lg);
  text-align: left;
}

.pay-button strong {
  font-size: 1.08rem;
}

.pay-button small {
  color: var(--muted);
}

.history-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted-strong);
}

.payment-request-card {
  display: grid;
  gap: 1rem;
  padding: clamp(1.45rem, 3vw, 2rem);
}

.payment-request-summary {
  margin: 0;
}

.readonly-input,
.config-text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.payment-request-status {
  margin: 0;
  font-weight: 700;
  text-align: center;
}

.payment-request-timer {
  margin: 0;
  color: var(--muted);
  text-align: center;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: 1rem;
  overflow-y: auto;
  overscroll-behavior: contain;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(12px);
}

.modal-panel {
  width: min(100%, 33rem);
  max-height: calc(100vh - 2rem);
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  padding: 1.5rem;
}

.modal-panel h2 {
  margin: 0 0 1rem;
  font-size: 1.7rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.modal-text {
  margin: 0.9rem 0 0;
  color: var(--muted-strong);
}

.modal-actions {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.device-name-form {
  display: grid;
  gap: 0.2rem;
  margin-bottom: 1rem;
}

.config-text {
  min-height: 12rem;
  max-height: 12rem;
  padding: 1rem;
  resize: none;
  overflow-wrap: anywhere;
  overflow-y: auto;
  font-size: 0.9rem;
}

.config-copy-status {
  min-height: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.pwa-install-sheet {
  position: fixed;
  left: 50%;
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 80;
  width: min(32rem, calc(100vw - 1.5rem));
  transform: translateX(-50%);
  display: grid;
  gap: 0.8rem;
  padding: 1.25rem;
  max-height: calc(100dvh - 2rem);
  overflow-y: auto;
  border-radius: 24px;
  border: 1px solid rgba(113, 239, 255, 0.22);
  background: rgba(7, 15, 29, 0.96);
  box-shadow: 0 26px 70px rgba(0, 0, 0, 0.46);
}

.pwa-install-sheet[hidden] {
  display: none;
}

.pwa-install-close {
  justify-self: end;
  width: 2.4rem;
  min-height: 2.4rem;
  padding: 0;
  border-radius: 999px;
  font-size: 1.45rem;
  line-height: 1;
}

.pwa-install-sheet h2 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.15;
}

.pwa-install-sheet p {
  margin: 0;
  color: var(--muted-strong);
  line-height: 1.6;
}

.pwa-install-image {
  width: 100%;
  max-height: min(54vh, 32rem);
  object-fit: contain;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.2);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

td {
  color: var(--muted-strong);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
}

.js .surface-panel,
.js .action-tile,
.js .device-card,
.js .history-row {
  animation: fade-in 460ms ease both;
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .header-bar,
  .surface-panel,
  .panel,
  .payment-request-card,
  .modal-panel,
  .button-outline,
  .button-ghost,
  button:not(.primary):not(.button-primary):not(.danger),
  .button:not(.button-primary):not(.danger):not(.primary) {
    backdrop-filter: none;
  }
}

@keyframes drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(1.8rem, -1.6rem, 0) scale(1.06);
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1080px) {
  .header-bar {
    border-radius: 30px;
  }

  .ambient {
    animation: none;
    filter: blur(12px);
    opacity: 0.6;
  }

  .auth-layout,
  .account-grid,
  .dashboard-hero,
  .support-hero,
  .support-chat-grid {
    grid-template-columns: 1fr;
  }

  .quick-actions-grid,
  .support-options-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --page-width: min(100vw - 28px, 1000px);
  }

  .site-header {
    padding-top: 0.8rem;
  }

  .header-bar {
    padding: 1rem;
    border-radius: 28px;
  }

  .prizm-main,
  .app-screen,
  .auth-shell {
    padding-top: 2rem;
  }

  .hero-proof {
    grid-template-columns: 1fr;
  }

  .auth-story {
    display: none;
  }

  .header-bar,
  .surface-panel,
  .panel,
  .payment-request-card,
  .modal-panel,
  .button-outline,
  .button-ghost,
  button:not(.primary):not(.button-primary):not(.danger),
  .button:not(.button-primary):not(.danger):not(.primary) {
    backdrop-filter: none;
  }
}

@media (max-width: 620px) {
  .header-bar,
  .section-title-row,
  .device-card-head {
    flex-direction: column;
    align-items: stretch;
  }

  .header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .header-inline-form {
    display: block;
  }

  .header-inline-form .button {
    width: 100%;
  }

  .header-actions .button {
    width: 100%;
  }

  .quick-actions-grid,
  .instruction-grid,
  .support-options-grid {
    grid-template-columns: 1fr;
  }

  .device-actions,
  .auth-actions-row,
  .support-composer-actions {
    flex-direction: column;
  }

  .legal-link-row .button {
    width: 100%;
  }

  .error-actions .button {
    width: 100%;
  }

  .modal-backdrop {
    align-items: start;
    padding: 0.75rem;
  }

  .modal-panel {
    max-height: calc(100vh - 1.5rem);
    max-height: calc(100dvh - 1.5rem);
  }

  .balance-value {
    font-size: clamp(2.35rem, 12vw, 3.4rem);
  }

  .auth-title,
  .section-title {
    font-size: clamp(1.75rem, 7vw, 2.2rem);
  }

  .dashboard-title,
  .auth-story-title {
    font-size: clamp(2rem, 10vw, 3rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (hover: none), (pointer: coarse) {
  .ambient {
    animation: none;
    filter: blur(10px);
    opacity: 0.52;
  }

  .header-bar,
  .surface-panel,
  .panel,
  .payment-request-card,
  .modal-panel,
  .button-outline,
  .button-ghost,
  button:not(.primary):not(.button-primary):not(.danger),
  .button:not(.button-primary):not(.danger):not(.primary) {
    backdrop-filter: none;
  }
}
