:root {
  --wf-navy: #00051a;
  --wf-auth-bg: #050b1d;
  --wf-navy-mid: #061428;
  --wf-cyan: #00d1ff;
  --wf-cyan-soft: #5ce4ff;
  --wf-blue: #1a6bff;
  --wf-blue-deep: #0d3d9e;
  --wf-glass: rgba(8, 28, 58, 0.55);
  --wf-glass-border: rgba(0, 210, 255, 0.35);
  --wf-text: #e8f4ff;
  --wf-muted: rgba(140, 200, 255, 0.72);
  --wf-danger: #ff6b8a;
  --wf-green: #3dffa8;
  --wf-radius: 22px;
  --wf-font: "Segoe UI", system-ui, -apple-system, sans-serif;
  --wf-safe-top: env(safe-area-inset-top, 0px);
  --wf-safe-bottom: env(safe-area-inset-bottom, 0px);
}

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

html,
body {
  margin: 0;
  min-height: 100%;
}

body.wf-page {
  font-family: var(--wf-font);
  color: var(--wf-text);
  background: var(--wf-navy);
  min-height: 100dvh;
  overflow-x: hidden;
}

.wf-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-color: var(--wf-navy);
  background-image:
    linear-gradient(
      180deg,
      rgba(0, 8, 24, 0.55) 0%,
      rgba(0, 5, 18, 0.82) 42%,
      rgba(0, 5, 18, 0.94) 100%
    ),
    var(--wf-bg-image);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  pointer-events: none;
}

.wf-shell {
  position: relative;
  z-index: 1;
  max-width: 420px;
  margin: 0 auto;
  padding:
    calc(14px + var(--wf-safe-top))
    18px
    calc(28px + var(--wf-safe-bottom));
}

.wf-brand {
  text-align: center;
  margin-bottom: 18px;
}

/* Login / register — one flat canvas (matches mockup) */
.wf-page--auth {
  background: var(--wf-auth-bg);
}

.wf-page--auth .wf-bg {
  background: var(--wf-auth-bg);
  background-image: none;
}

.wf-brand__hero {
  margin: 0 auto 12px;
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--wf-auth-bg);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.12),
    0 8px 28px rgba(0, 0, 0, 0.35);
}

.wf-brand__hero .wf-brand__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  object-position: center;
  vertical-align: middle;
}

.wf-page--auth .wf-card {
  background: transparent;
  border: none;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  padding: 6px 0 0;
}

.wf-page--auth .wf-card__title {
  color: #ffffff;
}

.wf-page--auth .wf-card__sub {
  color: rgba(130, 170, 210, 0.92);
}

.wf-page--auth .wf-field__label {
  color: var(--wf-cyan);
  letter-spacing: 0.1em;
}

.wf-page--auth .wf-input-wrap {
  background: transparent;
  border: 1px solid rgba(0, 209, 255, 0.5);
  box-shadow: 0 0 14px rgba(0, 209, 255, 0.1);
}

.wf-page--auth .wf-input-wrap:focus-within {
  border-color: rgba(0, 209, 255, 0.85);
  box-shadow:
    0 0 0 1px rgba(0, 209, 255, 0.35),
    0 0 18px rgba(0, 209, 255, 0.15);
}

.wf-page--auth .wf-input-wrap input {
  color: #f0f6ff;
}

.wf-page--auth .wf-input-wrap input::placeholder {
  color: rgba(110, 140, 175, 0.75);
}

.wf-page--auth .wf-foot {
  color: rgba(130, 170, 210, 0.9);
}

.wf-page--auth .wf-foot a {
  color: var(--wf-cyan);
}

.wf-page--auth .wf-btn {
  margin-top: 10px;
  letter-spacing: 0.1em;
}

.wf-brand__tag {
  margin: 6px 0 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--wf-cyan-soft);
  text-transform: uppercase;
}

.wf-card {
  border-radius: var(--wf-radius);
  padding: 22px 18px 20px;
  background: var(--wf-glass);
  border: 1px solid var(--wf-glass-border);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.wf-card__head {
  margin-bottom: 18px;
}

.wf-card__title {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.wf-card__sub {
  margin: 0;
  font-size: 13px;
  color: var(--wf-muted);
}

.wf-promo {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  color: #e8fbff;
  background: linear-gradient(135deg, rgba(0, 209, 255, 0.22), rgba(0, 120, 200, 0.12));
  border: 1px solid rgba(0, 209, 255, 0.45);
}

.wf-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
  border: 1px solid rgba(255, 107, 138, 0.45);
  background: rgba(255, 60, 100, 0.12);
  color: #ffc8d4;
}

.wf-field {
  margin-bottom: 12px;
}

.wf-field__label {
  display: block;
  margin-bottom: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--wf-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.wf-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 14px;
  border-radius: 14px;
  background: rgba(0, 20, 45, 0.75);
  border: 1px solid rgba(0, 160, 255, 0.28);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.wf-input-wrap:focus-within {
  border-color: rgba(0, 210, 255, 0.65);
  box-shadow: 0 0 0 3px rgba(0, 210, 255, 0.12);
}

.wf-input-wrap__icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  color: var(--wf-cyan);
  opacity: 0.9;
}

.wf-input-wrap__prefix {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--wf-cyan-soft);
  padding-right: 8px;
  border-right: 1px solid rgba(0, 160, 255, 0.25);
}

.wf-input-wrap input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  color: var(--wf-text);
  font-size: 15px;
  font-weight: 600;
  outline: none;
}

.wf-input-wrap input::placeholder {
  color: rgba(120, 170, 220, 0.55);
  font-weight: 500;
}

.wf-eye {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--wf-muted);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.wf-eye:active {
  transform: scale(0.94);
}

.wf-link-row {
  display: flex;
  justify-content: flex-end;
  margin: -4px 0 14px;
}

.wf-link {
  font-size: 12px;
  font-weight: 700;
  color: var(--wf-cyan-soft);
  text-decoration: none;
}

.wf-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 50px;
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #3db8ff 0%, #1a6bff 45%, #0d4fd4 100%);
  box-shadow:
    0 8px 24px rgba(26, 107, 255, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  transition: transform 0.12s ease, filter 0.12s ease;
}

.wf-btn:active {
  transform: translateY(1px);
  filter: brightness(0.96);
}

.wf-btn svg {
  width: 18px;
  height: 18px;
}

.wf-foot {
  margin-top: 18px;
  text-align: center;
  font-size: 13px;
  color: var(--wf-muted);
}

.wf-foot a {
  color: var(--wf-cyan-soft);
  font-weight: 800;
  text-decoration: none;
}

/* Dashboard */
.wf-dash-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.wf-dash-top__actions {
  display: flex;
  gap: 8px;
}

.wf-icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(0, 210, 255, 0.3);
  background: rgba(0, 30, 60, 0.6);
  color: var(--wf-cyan);
  display: grid;
  place-items: center;
  text-decoration: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.wf-balance {
  margin-bottom: 16px;
  padding: 18px 16px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(0, 80, 160, 0.45), rgba(0, 25, 55, 0.85));
  border: 1px solid rgba(0, 210, 255, 0.4);
  box-shadow: 0 12px 32px rgba(0, 60, 140, 0.35);
}

.wf-balance__lbl {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--wf-muted);
}

.wf-balance__amt {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-shadow: 0 0 20px rgba(0, 210, 255, 0.35);
}

.wf-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 22px;
}

.wf-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 16px 10px;
  border-radius: 18px;
  text-decoration: none;
  color: var(--wf-text);
  background: rgba(6, 24, 52, 0.72);
  border: 1px solid rgba(0, 160, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.12s ease, border-color 0.12s ease;
}

.wf-action:active {
  transform: scale(0.97);
  border-color: rgba(0, 210, 255, 0.5);
}

.wf-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(0, 210, 255, 0.2), rgba(26, 107, 255, 0.35));
  box-shadow: 0 0 18px rgba(0, 210, 255, 0.25);
  color: var(--wf-cyan-soft);
}

.wf-action__icon svg {
  width: 22px;
  height: 22px;
}

.wf-action__lbl {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  line-height: 1.25;
}

.wf-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.wf-section-head h2 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
}

.wf-section-head span {
  font-size: 11px;
  font-weight: 700;
  color: var(--wf-muted);
}

.wf-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wf-plan {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(4, 18, 40, 0.78);
  border: 1px solid rgba(0, 140, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
}

.wf-plan__badge {
  grid-column: 1 / -1;
  display: inline-flex;
  align-self: flex-start;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(0, 210, 255, 0.12);
  border: 1px solid rgba(0, 210, 255, 0.35);
  color: var(--wf-cyan-soft);
}

.wf-plan__thumb {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 30% 20%, rgba(0, 210, 255, 0.35), rgba(13, 61, 158, 0.5));
  border: 1px solid rgba(0, 210, 255, 0.25);
}

.wf-plan__thumb img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.wf-plan__body {
  min-width: 0;
}

.wf-plan__name {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wf-plan__daily {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--wf-green);
}

.wf-plan__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--wf-muted);
  margin-bottom: 10px;
}

.wf-plan__price {
  font-size: 18px;
  font-weight: 800;
  color: var(--wf-cyan-soft);
  margin-bottom: 10px;
}

.wf-plan__btn {
  width: 100%;
  min-height: 42px;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  cursor: pointer;
  background: linear-gradient(180deg, #3db8ff, #1a6bff);
  box-shadow: 0 6px 16px rgba(26, 107, 255, 0.4);
}

.wf-plan__btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  background: linear-gradient(180deg, #4a5568, #2d3748);
  box-shadow: none;
}

.wf-plan__btn--owned {
  background: linear-gradient(180deg, #2dd4a8, #0d9488);
}

@media (max-width: 360px) {
  .wf-brand__hero {
    border-radius: 12px;
  }
  .wf-balance__amt {
    font-size: 28px;
  }
}
