:root {
  --ui-scale: 0.8;
  --bg-deep: #020d1f;
  --bg-mid: #062447;
  --bg-bright: #0c3e74;
  --text-main: #edf6ff;
  --text-muted: #b8d3ea;
  --cta-from: #39c7ff;
  --cta-to: #1f7deb;
  --green-link: #7ce34d;
  --focus-ring: rgba(87, 197, 255, 0.55);
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: "Sora", "Segoe UI", sans-serif;
  color: var(--text-main);
  background-size: 140% 140%;
  background:
    radial-gradient(circle at 20% 18%, rgba(42, 125, 208, 0.23), transparent 46%),
    radial-gradient(circle at 85% 0%, rgba(32, 95, 162, 0.3), transparent 30%),
    linear-gradient(148deg, var(--bg-deep) 0%, var(--bg-mid) 52%, var(--bg-bright) 100%);
  animation: drift-bg 16s ease-in-out infinite;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  filter: blur(2px);
}

body::before {
  width: min(45vw, 420px);
  height: min(45vw, 420px);
  left: -12vw;
  top: -8vh;
  background: radial-gradient(circle, rgba(57, 191, 255, 0.25), rgba(57, 191, 255, 0));
  animation: orb-float-one 18s ease-in-out infinite;
}

body::after {
  width: min(36vw, 340px);
  height: min(36vw, 340px);
  right: -8vw;
  bottom: -12vh;
  background: radial-gradient(circle, rgba(22, 125, 233, 0.25), rgba(22, 125, 233, 0));
  animation: orb-float-two 14s ease-in-out infinite;
}

.login-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh / var(--ui-scale));
  width: calc(100% / var(--ui-scale));
  margin-left: calc((100% - (100% / var(--ui-scale))) / 2);
  display: grid;
  place-items: center;
  padding: 2rem 1rem;
  transform: scale(var(--ui-scale));
  transform-origin: top center;
}

.login-shell {
  width: min(96vw, 560px);
  border-radius: 0;
  padding: 1rem;
  background: transparent;
  animation: fade-in 0.7s ease-out;
}

.brand-wrap {
  text-align: left;
  margin-bottom: 1rem;
}

.welcome-modal-open {
  overflow: hidden;
}

.welcome-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 36;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 11, 23, 0.26);
  animation: welcome-fade-in 0.28s ease-out;
}

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

.welcome-modal-card {
  width: min(86vw, 760px);
  border-radius: 24px;
  border: 1px solid rgba(120, 167, 206, 0.26);
  background:
    radial-gradient(circle at 92% 12%, rgba(115, 38, 157, 0.14), transparent 36%),
    linear-gradient(146deg, rgba(1, 13, 36, 0.9), rgba(1, 26, 60, 0.89));
  box-shadow: 0 16px 34px rgba(2, 6, 15, 0.38), inset 0 0 0 1px rgba(16, 49, 90, 0.35);
  padding: clamp(0.85rem, 2.1vw, 1.35rem) clamp(0.85rem, 2.4vw, 1.5rem);
  position: relative;
  overflow: hidden;
  animation: welcome-pop-in 0.42s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.welcome-modal-card::before,
.welcome-modal-card::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  background: rgba(234, 246, 255, 0.82);
  box-shadow: 0 0 12px rgba(220, 238, 255, 0.42);
}

.welcome-modal-card::before {
  width: 4px;
  height: 4px;
  right: 30px;
  top: 30px;
}

.welcome-modal-card::after {
  width: 3px;
  height: 3px;
  right: 48px;
  top: 58px;
}

.welcome-close-btn {
  position: absolute;
  top: 0.7rem;
  right: 0.7rem;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  border: 1px solid rgba(126, 176, 214, 0.5);
  background: rgba(8, 29, 57, 0.82);
  color: #e4f3ff;
  font-family: inherit;
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.welcome-close-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.welcome-hero h2 {
  margin: 0;
  display: grid;
  gap: 0.15rem;
  color: #f7fbff;
  font-size: clamp(1.5rem, 4.6vw, 2.65rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-align: center;
}

.welcome-hero .hero-accent {
  color: #8dde12;
}

.welcome-intro {
  margin: 0.7rem 0 0;
  max-width: 36ch;
  margin-left: auto;
  margin-right: auto;
  color: #d6e9fb;
  font-size: clamp(0.88rem, 1.3vw, 1.04rem);
  line-height: 1.4;
  text-align: center;
}

.welcome-offers {
  margin: 0.62rem auto 0;
  max-width: min(92%, 470px);
  border: 1px solid rgba(120, 167, 206, 0.22);
  border-radius: 14px;
  background: rgba(6, 22, 46, 0.4);
  padding: 0.5rem 0.65rem 0.62rem;
}

.welcome-offers-title {
  margin: 0;
  text-align: center;
  color: #b6d6f5;
  font-size: 0.76rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.welcome-offers-list {
  margin: 0.45rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.35rem;
}

.welcome-offers-list li {
  border: 1px solid rgba(120, 167, 206, 0.2);
  border-radius: 11px;
  padding: 0.38rem 0.52rem;
  background: rgba(8, 29, 57, 0.42);
  color: #e9f5ff;
  font-size: clamp(0.8rem, 1.14vw, 0.93rem);
  font-weight: 600;
  line-height: 1.25;
  text-align: center;
}

.welcome-note {
  margin: 0.58rem auto 0;
  max-width: 38ch;
  color: #f2f9ff;
  font-size: clamp(0.84rem, 1.15vw, 0.98rem);
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
}

.welcome-cta-block {
  margin: 0.62rem auto 0;
  max-width: min(96%, 500px);
  padding: 0.6rem 0.65rem 0.7rem;
  border: 1px solid rgba(138, 202, 34, 0.35);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(22, 62, 25, 0.28), rgba(5, 27, 48, 0.32));
}

.welcome-try-btn {
  margin: 0.5rem auto 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 38px;
  padding: 0.42rem 1.1rem;
  border: 1px solid rgba(167, 244, 21, 0.8);
  border-radius: 999px;
  background: linear-gradient(145deg, #b7ff35, #8dde12);
  color: #082113;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.welcome-highlight {
  color: #a7f415;
  font-weight: 800;
}

.welcome-try-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

.brand-logo {
  display: block;
  width: min(98vw, 420px);
  max-height: 420px;
  margin: 0 auto 0.85rem;
  object-fit: contain;
  animation: logo-float 5.8s ease-in-out infinite;
  filter: drop-shadow(0 10px 24px rgba(6, 178, 255, 0.24));
}

.brand-wrap h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  font-weight: 700;
  animation: reveal-item 0.55s ease-out both;
}

.google-btn,
.login-btn {
  position: relative;
  width: 100%;
  border: 0;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.google-btn::before,
.login-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -110%;
  width: 60%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0));
  transition: left 0.55s ease;
}

.google-btn:hover::before,
.login-btn:hover::before {
  left: 140%;
}

.google-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  background: #f8fbff;
  color: #0e2f5f;
  min-height: 3rem;
  font-size: 0.96rem;
}

.google-mark {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  background: linear-gradient(120deg, #f44336, #ffb300, #00a152, #1a73e8);
}

.login-form {
  display: grid;
  gap: 0.65rem;
}

.login-form > * {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal-item 0.5s ease-out forwards;
}

.login-form > *:nth-child(1) {
  animation-delay: 0.08s;
}

.login-form > *:nth-child(2) {
  animation-delay: 0.12s;
}

.login-form > *:nth-child(3) {
  animation-delay: 0.16s;
}

.login-form > *:nth-child(4) {
  animation-delay: 0.2s;
}

.login-form > *:nth-child(5) {
  animation-delay: 0.24s;
}

.login-form > *:nth-child(6) {
  animation-delay: 0.28s;
}

.login-form > *:nth-child(7) {
  animation-delay: 0.32s;
}

.login-form > *:nth-child(8) {
  animation-delay: 0.36s;
}

.login-form label {
  font-size: 1.08rem;
  font-weight: 600;
}

.input-wrap {
  display: flex;
  align-items: center;
  border-radius: 16px;
  border: 1px solid rgba(158, 201, 240, 0.6);
  background: linear-gradient(100deg, rgba(22, 51, 84, 0.85), rgba(48, 74, 102, 0.75));
  min-height: 4.1rem;
  overflow: hidden;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-wrap:focus-within {
  transform: translateY(-1px);
  border-color: rgba(124, 215, 255, 0.9);
  box-shadow: 0 0 0 3px rgba(42, 182, 255, 0.22);
}

.input-icon {
  width: 2.8rem;
  text-align: center;
  font-weight: 700;
  color: #bdd9ef;
  opacity: 0.9;
}

.input-wrap input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text-main);
  font-size: 1.03rem;
  font-family: inherit;
}

.input-wrap input::placeholder {
  color: #cee2f3;
  opacity: 0.75;
}

.toggle-pass {
  border: 0;
  background: transparent;
  color: #dcecff;
  cursor: pointer;
  min-width: 4.2rem;
  font-family: inherit;
  font-weight: 600;
}

.forgot-link {
  color: #d9ecff;
  font-weight: 600;
  margin-top: 0.1rem;
  width: fit-content;
}

.login-btn {
  margin-top: 0.62rem;
  min-height: 4.15rem;
  font-size: 1.08rem;
  color: #eaf7ff;
  background: linear-gradient(95deg, var(--cta-from), var(--cta-to));
  box-shadow: 0 12px 30px rgba(33, 149, 255, 0.37);
}

.signup-text {
  margin: 0.95rem 0 0;
  font-size: 1rem;
}

.signup-text a {
  color: var(--green-link);
  font-weight: 700;
}

.form-status {
  min-height: 1.25rem;
  margin: 0.15rem 0 0;
  color: #bce2ff;
  font-size: 0.9rem;
  font-weight: 500;
}

.form-status.error {
  color: #ffadad;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 12, 25, 0.75);
  backdrop-filter: blur(6px);
}

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

.app-message-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(3, 11, 24, 0.72);
  backdrop-filter: blur(6px);
}

.app-message-modal-card {
  width: min(94vw, 520px);
  border-radius: 20px;
  border: 1px solid rgba(126, 176, 214, 0.38);
  background: linear-gradient(170deg, rgba(7, 31, 59, 0.96), rgba(6, 19, 38, 0.98));
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.45);
  padding: 1.2rem;
  animation: reveal-item 0.25s ease-out;
}

.app-message-modal-card h3 {
  margin: 0;
  font-size: 1.45rem;
}

.app-message-modal-card p {
  margin: 0.6rem 0 1rem;
  color: #d8ebff;
  line-height: 1.45;
}

.app-message-modal-card.success {
  border-color: rgba(167, 244, 21, 0.45);
}

.app-message-modal-card.error {
  border-color: rgba(255, 108, 134, 0.52);
}

.app-message-modal-btn {
  min-width: 110px;
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(167, 244, 21, 0.72);
  background: linear-gradient(145deg, #b7ff35, #8dde12);
  color: #082113;
  font-family: inherit;
  font-size: 0.98rem;
  font-weight: 800;
  cursor: pointer;
}

.modal-card {
  width: min(94vw, 460px);
  border: 1px solid rgba(129, 186, 235, 0.45);
  border-radius: 18px;
  background: linear-gradient(170deg, rgba(7, 31, 59, 0.96), rgba(6, 19, 38, 0.98));
  padding: 1.1rem;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.45);
  animation: reveal-item 0.3s ease-out;
}

.modal-card h2 {
  margin: 0;
  font-size: 1.25rem;
}

.modal-card p {
  margin: 0.65rem 0 0.9rem;
  color: #d3e9fb;
  line-height: 1.4;
}

.modal-note {
  color: #89cdfd;
}

.modal-card label {
  display: block;
  margin-bottom: 0.45rem;
  font-weight: 600;
}

.modal-card input {
  width: 100%;
  min-height: 3rem;
  border-radius: 12px;
  border: 1px solid rgba(155, 203, 242, 0.55);
  background: rgba(29, 64, 99, 0.45);
  color: var(--text-main);
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 1rem;
}

.verification-hint {
  margin: 0.55rem 0 0;
  color: #85d4ff;
  font-size: 0.9rem;
}

.add-funds-page {
  min-height: 100vh;
  padding: 2rem 1rem;
  display: grid;
  place-items: start center;
}

.add-funds-shell {
  width: min(96vw, 980px);
}

.add-funds-section {
  margin-top: 1.6rem;
}

.dashboard-content .add-funds-shell {
  width: min(100%, 980px);
  margin: 0 auto;
}

.orders-section {
  margin-top: 1.7rem;
}

.orders-head h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.orders-head p {
  margin: 0.65rem 0 0;
  color: #98a9bc;
  font-size: clamp(1rem, 1.9vw, 1.7rem);
}

.orders-list {
  margin-top: 1.4rem;
  display: grid;
  gap: 1rem;
}

.order-card {
  border-radius: 28px;
  border: 1px solid rgba(126, 176, 214, 0.24);
  background: rgba(4, 13, 26, 0.84);
  box-shadow: inset 0 0 0 1px rgba(22, 54, 88, 0.34);
  overflow: hidden;
}

.order-card.empty {
  padding: 1.4rem;
  color: #b6cadf;
}

.order-card-top {
  padding: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  border-bottom: 1px solid rgba(126, 176, 214, 0.16);
}

.order-brand {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.order-brand-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(145deg, #e32654, #5f0f22);
}

.order-number {
  margin: 0;
  font-size: clamp(1.05rem, 1.8vw, 1.8rem);
  font-weight: 800;
}

.order-desc {
  margin: 0.22rem 0 0;
  color: #d5e9ff;
  font-size: clamp(0.95rem, 1.45vw, 1.28rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: min(55vw, 1050px);
}

.order-status-badge {
  flex: 0 0 auto;
  min-height: 58px;
  border-radius: 18px;
  padding: 0.45rem 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.95rem, 1.3vw, 1.28rem);
  font-weight: 800;
  border: 1px solid transparent;
}

.order-status-badge.completed {
  color: #ebfff0;
  border-color: rgba(73, 235, 141, 0.65);
  background: linear-gradient(145deg, #15c95b, #0ea44a);
}

.order-status-badge.pending {
  color: #fff4e3;
  border-color: rgba(255, 185, 64, 0.6);
  background: linear-gradient(145deg, #d28d16, #aa6f0d);
}

.order-status-badge.canceled {
  color: #ffe3e6;
  border-color: rgba(255, 106, 128, 0.6);
  background: linear-gradient(145deg, #ce2d4e, #a11231);
}

.order-meta-row {
  padding: 0.9rem 1rem 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.order-chip {
  min-width: 0;
  min-height: 62px;
  border-radius: 20px;
  border: 1px solid rgba(126, 176, 214, 0.2);
  background: rgba(6, 17, 32, 0.92);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.75rem;
  font-size: clamp(0.9rem, 1.2vw, 1.32rem);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.order-chip.wide {
  grid-column: span 2;
}

.order-chip .dot {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  font-size: 1.05rem;
  font-weight: 800;
  color: #ffffff;
  background: linear-gradient(145deg, #e32654, #c50f3c);
}

.add-funds-head h1 {
  margin: 0;
  font-size: clamp(1.9rem, 4vw, 3.25rem);
}

.add-funds-head p {
  margin: 0.65rem 0 0;
  color: #aebed0;
  font-size: clamp(1rem, 2vw, 1.5rem);
}

.add-funds-card {
  margin-top: 1.65rem;
  border: 1px solid rgba(126, 176, 214, 0.28);
  border-radius: 28px;
  background: rgba(4, 13, 26, 0.86);
  box-shadow: inset 0 0 0 1px rgba(22, 54, 88, 0.34);
  overflow: hidden;
}

.add-funds-card-title {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.2rem;
  border-bottom: 1px solid rgba(126, 176, 214, 0.16);
}

.funds-icon {
  width: 68px;
  height: 68px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 800;
  color: #082113;
  background: linear-gradient(145deg, #b7ff35, #8dde12);
}

.add-funds-card-title h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.5rem);
}

.add-funds-form {
  padding: 1.15rem;
  display: grid;
  gap: 0.8rem;
}

.amount-pills {
  padding: 1rem 1.15rem 0;
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.amount-pill {
  min-height: 54px;
  border-radius: 999px;
  padding: 0.45rem 1.15rem;
  border: 1px solid rgba(126, 176, 214, 0.2);
  background: rgba(9, 24, 43, 0.8);
  color: #dcebff;
  font-family: inherit;
  font-size: 1.15rem;
  font-weight: 700;
  cursor: pointer;
}

.amount-pill.active {
  border-color: rgba(167, 244, 21, 0.72);
  color: #082113;
  background: linear-gradient(145deg, #b7ff35, #8dde12);
}

.add-funds-form label {
  margin: 0.3rem 0 0;
  font-size: 1.25rem;
  font-weight: 700;
}

.add-funds-input-wrap {
  min-height: 74px;
  border-radius: 20px;
  border: 1px solid rgba(112, 152, 192, 0.26);
  background: rgba(4, 11, 22, 0.9);
  display: flex;
  align-items: center;
  padding: 0 1rem;
}

.add-funds-input-wrap input,
.add-funds-input-wrap select {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f8ff;
  font-family: inherit;
  font-size: 1.2rem;
}

.amount-helper {
  margin: -0.25rem 0 0.2rem;
  color: #9fc0dd;
  font-size: 0.88rem;
  font-weight: 600;
}

.funds-summary {
  margin-top: 0.35rem;
  border: 1px solid rgba(112, 152, 192, 0.26);
  border-radius: 18px;
  background: rgba(4, 11, 22, 0.9);
  padding: 0.85rem;
}

.funds-summary p {
  margin: 0.35rem 0;
}

.pay-now-btn {
  margin-top: 0.45rem;
  min-height: 64px;
  border: 1px solid rgba(167, 244, 21, 0.72);
  border-radius: 20px;
  background: linear-gradient(145deg, #b7ff35, #8dde12);
  color: #082113;
  font-family: inherit;
  font-size: 1.06rem;
  font-weight: 800;
  cursor: pointer;
}

.pay-now-btn:disabled {
  opacity: 0.7;
  cursor: progress;
}

.modal-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
}

.dashboard-page {
  position: relative;
  z-index: 1;
  min-height: calc(100vh / var(--ui-scale));
  width: calc(100% / var(--ui-scale));
  margin-left: calc((100% - (100% / var(--ui-scale))) / 2);
  padding: 1rem;
  transform: scale(var(--ui-scale));
  transform-origin: top center;
  overflow-x: hidden;
}

.dashboard-content {
  position: relative;
  z-index: 2;
  width: calc(100% - 112px);
  margin-left: 112px;
  transition: transform 0.35s ease, filter 0.35s ease, width 0.35s ease, margin-left 0.35s ease;
}

.dashboard-page.menu-open .dashboard-content {
  width: calc(100% - 282px);
  margin-left: 282px;
  transform: scale(0.94);
  transform-origin: top left;
  filter: saturate(0.92);
}

.side-menu {
  position: absolute;
  z-index: 8;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 102px;
  border: 1px solid rgba(128, 181, 225, 0.2);
  border-radius: 22px;
  background: rgba(3, 12, 24, 0.94);
  padding: 0.8rem 0.65rem;
  display: grid;
  align-content: start;
  gap: 0.55rem;
  overflow: hidden;
  opacity: 1;
  pointer-events: auto;
  transition: width 0.35s ease;
}

.menu-action-rail {
  margin-bottom: 0.2rem;
  width: 100%;
}

.side-menu-divider {
  height: 1px;
  width: 100%;
  margin: 0.15rem 0 0.35rem;
  background: linear-gradient(90deg, rgba(126, 178, 220, 0.08), rgba(126, 178, 220, 0.5), rgba(126, 178, 220, 0.08));
}

.dashboard-page.menu-open .side-menu {
  width: 262px;
}

.menu-item {
  border: 1px solid rgba(128, 181, 225, 0.2);
  border-radius: 16px;
  background: rgba(7, 20, 37, 0.75);
  color: #dbedff;
  min-height: 54px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.4rem 0.6rem;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
}

.dashboard-page.menu-open .menu-item {
  justify-content: flex-start;
}

.menu-item:hover {
  border-color: rgba(167, 244, 21, 0.45);
  transform: translateX(2px);
}

.menu-item-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #a7f415;
  border: 1px solid rgba(167, 244, 21, 0.5);
  background: radial-gradient(circle at 35% 28%, rgba(167, 244, 21, 0.2), rgba(7, 20, 37, 0.96));
  font-weight: 800;
}

.menu-item-text {
  width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.22s ease, width 0.22s ease;
}

.dashboard-page.menu-open .menu-item-text {
  width: 130px;
  opacity: 1;
}

.menu-item-danger .menu-item-icon {
  color: #ffd8dc;
  border-color: rgba(255, 112, 128, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(255, 85, 116, 0.33), rgba(39, 8, 15, 0.96));
}

.dashboard-header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: nowrap;
  overflow: visible;
  border-bottom: 1px solid rgba(145, 188, 226, 0.2);
  padding-bottom: 1rem;
}

.menu-action,
.balance-pill,
.profile-pill {
  border: 1px solid rgba(128, 181, 225, 0.3);
  background: rgba(7, 20, 37, 0.75);
  color: var(--text-main);
  font-family: inherit;
  cursor: pointer;
}

.menu-action {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 24px;
  background: rgba(130, 158, 198, 0.24);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.menu-action .menu-toggle-line {
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: #e8f3ff;
}

.menu-action .menu-toggle-arrow {
  font-size: 0.9rem;
  font-weight: 800;
  color: #d7ebff;
  line-height: 1;
  margin-top: -1px;
}

.header-center-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.header-center-logo img {
  width: min(42vw, 225px);
  max-height: 66px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(20, 136, 230, 0.24));
  opacity: 0.95;
}

.balance-pill {
  width: auto;
  margin-left: auto;
  min-height: 56px;
  border-radius: 999px;
  padding: 0.35rem 0.85rem 0.35rem 0.35rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

.balance-wrap {
  position: relative;
  margin-left: auto;
  z-index: 14;
}

.balance-icon {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  color: #a7f415;
  border: 1px solid rgba(167, 244, 21, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(167, 244, 21, 0.18), rgba(7, 20, 37, 0.92));
  box-shadow: 0 8px 20px rgba(167, 244, 21, 0.18);
}

.balance-value {
  font-size: clamp(1.2rem, 2.6vw, 2rem);
  font-weight: 700;
}

.profile-pill {
  min-height: 56px;
  min-width: 56px;
  border-radius: 999px;
  padding: 0.35rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.profile-wrap {
  position: relative;
}

.profile-initial {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  border: 2px solid rgba(143, 176, 210, 0.7);
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  background: rgba(125, 156, 194, 0.12);
  color: #eef7ff;
}

.pill-arrow {
  color: #d9f0ff;
  font-size: 1.15rem;
  font-weight: 700;
}

.profile-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 150px;
  border-radius: 14px;
  border: 1px solid rgba(130, 181, 226, 0.4);
  background: rgba(7, 20, 37, 0.96);
  padding: 0.45rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.profile-menu.hidden {
  display: none;
}

.profile-menu button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  text-align: left;
  color: #ffd8dc;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

.profile-menu button:hover {
  background: rgba(255, 88, 112, 0.16);
}

.balance-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  right: 0;
  min-width: 170px;
  border-radius: 14px;
  border: 1px solid rgba(130, 181, 226, 0.4);
  background: rgba(7, 20, 37, 0.96);
  padding: 0.45rem;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
  z-index: 34;
}

.balance-menu.hidden {
  display: none;
}

.balance-menu button {
  width: 100%;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.7rem;
  text-align: left;
  color: #dff3ff;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  background: transparent;
}

.balance-menu button:hover {
  background: rgba(167, 244, 21, 0.14);
  color: #a7f415;
}

.welcome-section {
  margin-top: 2rem;
  padding: 0 0.2rem;
  text-align: center;
}

.welcome-kicker {
  margin: 0;
  color: #a5b2c8;
  font-size: clamp(0.96rem, 2.52vw, 1.62rem);
  font-weight: 600;
}

#welcome-name {
  margin: 0.25rem 0 0;
  font-size: clamp(1.32rem, 3.72vw, 2.76rem);
  line-height: 1.05;
  font-weight: 800;
}

.welcome-balance {
  margin: 0.9rem 0 0;
  font-size: clamp(0.84rem, 2.04vw, 1.8rem);
}

#welcome-balance-value {
  color: #ffffff;
}

.quick-cards {
  position: relative;
  margin-top: 1.5rem;
  padding-bottom: 1rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
}

.quick-cards::after {
  content: "";
  position: absolute;
  left: 4%;
  right: 4%;
  bottom: -0.35rem;
  height: 26px;
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(29, 119, 214, 0.38), rgba(29, 119, 214, 0));
  filter: blur(10px);
  pointer-events: none;
}

.quick-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border-radius: 24px;
  border: 1px solid rgba(125, 171, 210, 0.24);
  background: rgba(4, 13, 26, 0.82);
  min-height: 92px;
  padding: 0.8rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(22, 54, 88, 0.34);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.quick-card:hover,
.quick-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(167, 244, 21, 0.45);
  outline: none;
}

.quick-card-order {
  display: block;
  padding: 1rem;
}

.quick-card-head {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 0.9rem;
}

.quick-card-order h2 {
  font-size: clamp(1rem, 1.9vw, 1.45rem);
}

.order-form {
  display: grid;
  gap: 0.75rem;
}

.order-form label {
  text-align: left;
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.order-field-wrap {
  border-radius: 24px;
  border: 1px solid rgba(112, 152, 192, 0.26);
  background: rgba(4, 11, 22, 0.9);
  min-height: 84px;
  display: flex;
  align-items: center;
  padding: 0 1.15rem;
}

.order-field-wrap select,
.order-field-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f0f8ff;
  font-family: inherit;
  font-size: clamp(0.96rem, 1.5vw, 1.18rem);
}

.order-field-wrap select {
  appearance: none;
  cursor: pointer;
  padding-right: 1.2rem;
  background-image: linear-gradient(45deg, transparent 50%, #d4e9ff 50%), linear-gradient(135deg, #d4e9ff 50%, transparent 50%);
  background-position: calc(100% - 14px) calc(50% - 4px), calc(100% - 8px) calc(50% - 4px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.order-field-wrap select:invalid {
  color: rgba(240, 248, 255, 0.7);
}

#order-quantity::-webkit-outer-spin-button,
#order-quantity::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

#order-quantity {
  appearance: textfield;
  -moz-appearance: textfield;
}

.order-field-wrap input::placeholder {
  color: rgba(240, 248, 255, 0.45);
}

.quantity-range-hint {
  margin: -0.2rem 0 0.2rem;
  color: #9fc0dd;
  font-size: 0.9rem;
  font-weight: 600;
}

.order-total-row {
  margin-top: 0.25rem;
  border-radius: 22px;
  border: 1px solid rgba(112, 152, 192, 0.26);
  background: rgba(4, 11, 22, 0.9);
  min-height: 88px;
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.order-total-info {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.order-total-info p {
  margin: 0;
  font-size: clamp(0.95rem, 1.35vw, 1.16rem);
  color: #d3e8fd;
}

.order-total-info strong {
  color: #ffffff;
}

.order-total-icon,
.send-order-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #a7f415;
  border: 1px solid rgba(167, 244, 21, 0.5);
  background: radial-gradient(circle at 35% 28%, rgba(167, 244, 21, 0.2), rgba(7, 20, 37, 0.96));
}

.order-total-icon svg,
.send-order-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.send-order-btn {
  border: 1px solid rgba(167, 244, 21, 0.72);
  border-radius: 24px;
  min-height: 60px;
  padding: 0.35rem 0.7rem 0.35rem 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #082113;
  font-family: inherit;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(145deg, #b7ff35, #8dde12);
}

.send-order-btn:hover {
  filter: brightness(1.06);
}

.quick-icon {
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #a7f415;
  border: 1px solid rgba(167, 244, 21, 0.55);
  background: radial-gradient(circle at 35% 28%, rgba(167, 244, 21, 0.2), rgba(7, 20, 37, 0.96));
  box-shadow: 0 8px 18px rgba(167, 244, 21, 0.16);
}

.quick-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quick-card h2 {
  margin: 0;
  text-align: left;
  font-size: clamp(1.15rem, 2.2vw, 1.85rem);
  line-height: 1.2;
}

.service-info-card {
  display: block;
  padding: 1rem;
}

.service-info-content {
  text-align: left;
  border-radius: 20px;
  border: 1px solid rgba(112, 152, 192, 0.26);
  background: rgba(4, 11, 22, 0.82);
  padding: 0.9rem;
}

.service-info-alert {
  margin: 0;
  color: #d8ebff;
  font-size: 0.95rem;
  font-weight: 600;
}

.service-info-list,
.service-info-notes {
  margin: 0.65rem 0 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.38rem;
  color: #dbefff;
  font-size: 0.87rem;
  line-height: 1.35;
}

.service-info-notes-title {
  margin: 0.8rem 0 0;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: #a7f415;
}

.google-btn:hover,
.login-btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.02);
}

.google-btn:active,
.login-btn:active {
  transform: translateY(0);
}

input:focus-visible,
.google-btn:focus-visible,
.login-btn:focus-visible,
.toggle-pass:focus-visible,
.forgot-link:focus-visible,
.signup-text a:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

@media (max-width: 620px) {
  .login-shell {
    padding: 1.35rem 1rem;
  }

  .welcome-modal-card {
    width: min(90vw, 520px);
    border-radius: 18px;
    padding: 0.75rem 0.7rem 0.95rem;
  }

  .welcome-close-btn {
    width: 33px;
    height: 33px;
    top: 0.4rem;
    right: 0.4rem;
    font-size: 0.98rem;
  }

  .welcome-hero h2 {
    font-size: clamp(1.3rem, 8vw, 1.8rem);
  }

  .welcome-intro {
    margin-top: 0.6rem;
    font-size: clamp(0.78rem, 3.4vw, 0.92rem);
    max-width: 100%;
  }

  .welcome-offers {
    margin-top: 0.5rem;
    border-radius: 12px;
    padding: 0.42rem 0.5rem 0.5rem;
  }

  .welcome-offers-title {
    font-size: 0.7rem;
  }

  .welcome-offers-list {
    gap: 0.3rem;
  }

  .welcome-offers-list li {
    padding: 0.35rem 0.45rem;
    font-size: clamp(0.74rem, 3.2vw, 0.84rem);
  }

  .welcome-note {
    margin-top: 0.45rem;
    font-size: clamp(0.74rem, 3.1vw, 0.84rem);
    max-width: 100%;
  }

  .welcome-cta-block {
    margin-top: 0.5rem;
    border-radius: 12px;
    padding: 0.52rem 0.5rem 0.6rem;
  }

  .welcome-try-btn {
    min-height: 34px;
    padding: 0.36rem 0.9rem;
    font-size: 0.82rem;
  }

  .input-wrap,
  .login-btn {
    min-height: 3.5rem;
  }

  .login-form label {
    font-size: 1rem;
  }

  .dashboard-page {
    padding: 0.8rem;
  }

  .dashboard-page.menu-open .dashboard-content {
    width: calc(100% - 228px);
    margin-left: 228px;
    transform: scale(0.93);
    transform-origin: top left;
  }

  .side-menu {
    width: 84px;
  }

  .dashboard-page.menu-open .side-menu {
    width: 205px;
  }

  .menu-item-text {
    font-size: 0.83rem;
  }

  .dashboard-content {
    width: calc(100% - 94px);
    margin-left: 94px;
  }

  .dashboard-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.5rem;
  }

  .menu-action,
  .balance-pill,
  .profile-pill {
    min-height: 50px;
  }

  .menu-action {
    width: 62px;
    height: 62px;
    border-radius: 20px;
    gap: 7px;
  }

  .menu-action .menu-toggle-line {
    width: 28px;
    height: 3px;
  }

  .menu-action .menu-toggle-arrow {
    font-size: 0.8rem;
  }

  .header-center-logo {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    justify-self: center;
  }

  .header-center-logo img {
    width: clamp(96px, 22vw, 132px);
    max-height: 44px;
  }

  .balance-icon,
  .profile-initial {
    width: 42px;
    height: 42px;
  }

  .balance-pill {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    border-radius: 20px;
    gap: 0.45rem;
    padding: 0.26rem 0.55rem 0.26rem 0.28rem;
  }

  .balance-wrap {
    margin-left: 0;
    min-width: 0;
  }

  .balance-menu {
    left: 0;
    right: auto;
    min-width: min(220px, 72vw);
  }

  .balance-value {
    font-size: 1.05rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .profile-wrap {
    justify-self: end;
  }

  .profile-pill {
    min-height: 50px;
    min-width: 50px;
    padding: 0.2rem;
  }

  .quick-cards {
    grid-template-columns: 1fr;
  }

  .order-form label {
    font-size: 1rem;
  }

  .order-field-wrap {
    min-height: 72px;
  }

  .order-field-wrap select,
  .order-field-wrap input {
    font-size: 0.95rem;
  }

  .order-total-row {
    min-height: 78px;
    padding: 0.55rem;
    flex-wrap: wrap;
  }

  .order-total-icon,
  .send-order-icon {
    width: 44px;
    height: 44px;
  }

  .send-order-btn {
    margin-left: auto;
    min-height: 52px;
    font-size: 0.95rem;
  }

  .service-info-list,
  .service-info-notes {
    font-size: 0.82rem;
  }

  .order-card-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .order-desc {
    max-width: 78vw;
  }

  .order-status-badge {
    min-height: 46px;
    width: 100%;
  }

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

  .order-chip.wide {
    grid-column: span 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes drift-bg {
  0% {
    background-position: 0% 0%;
  }
  50% {
    background-position: 100% 80%;
  }
  100% {
    background-position: 0% 0%;
  }
}

@keyframes orb-float-one {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(7vw, 4vh, 0) scale(1.08);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes orb-float-two {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-8vw, -5vh, 0) scale(1.06);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes logo-float {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-8px);
  }
  100% {
    transform: translateY(0px);
  }
}

@keyframes reveal-item {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

@keyframes welcome-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes welcome-pop-in {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
