/* Mobile-first homepage refresh for rage.vn public landing page. */
:root {
  --home-bg: #080b16;
  --home-surface: rgba(18, 24, 42, 0.74);
  --home-surface-strong: rgba(24, 31, 53, 0.9);
  --home-border: rgba(255, 255, 255, 0.11);
  --home-glow-blue: rgba(6, 182, 212, 0.2);
  --home-glow-purple: rgba(124, 58, 237, 0.26);
  --home-glow-pink: rgba(236, 72, 153, 0.18);
  --home-gradient: linear-gradient(135deg, #22d3ee 0%, #7c3aed 48%, #ec4899 100%);
  --bottom-nav-height: 78px;
}

html.user-page {
  background: var(--home-bg);
  overflow-x: hidden;
  scroll-padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 24px);
}

html.user-page body {
  min-width: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 8%, var(--home-glow-purple), transparent 34rem),
    radial-gradient(circle at 92% 18%, var(--home-glow-pink), transparent 28rem),
    radial-gradient(circle at 50% 80%, var(--home-glow-blue), transparent 32rem),
    var(--home-bg);
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 30px);
}

.container {
  width: min(100% - 28px, 1120px);
  padding-inline: 0 !important;
}

.home-glass-header {
  top: 10px;
  width: min(100% - 20px, 1120px);
  margin: 0 auto;
  border: 1px solid var(--home-border);
  border-radius: 999px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
}

.home-glass-header .topbar-inner {
  padding: 0.72rem 0.9rem;
}

.logo-badge,
.logo > div:first-child {
  border-radius: 14px !important;
  background: var(--home-gradient) !important;
  box-shadow: 0 0 28px rgba(124, 58, 237, 0.45);
}

.hero-modern {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.35rem;
  padding: 2.2rem 0 1.2rem;
}

.hero-kicker,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(34, 211, 238, 0.28);
  border-radius: 999px;
  background: rgba(34, 211, 238, 0.08);
  color: #a5f3fc;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.42rem 0.72rem;
  margin-bottom: 0.8rem;
}

.hero-modern h1 {
  font-size: clamp(2.35rem, 13vw, 5.2rem);
  max-width: 830px;
}

.hero-modern h1 .grad,
.pack-price-vnd,
.balance-amount {
  background: var(--home-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-modern p {
  max-width: 680px;
  font-size: clamp(1rem, 4vw, 1.2rem);
}

.hero-actions .btn {
  min-height: 48px;
  border-radius: 999px;
}

.btn-primary {
  background: var(--home-gradient) !important;
  box-shadow: 0 18px 42px rgba(124, 58, 237, 0.36) !important;
}

.btn-soft,
.btn-secondary {
  border: 1px solid var(--home-border) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  color: #f8fafc !important;
}

.hero-trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.hero-trust-row span {
  border: 1px solid var(--home-border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.45rem 0.7rem;
}

.hero-device-card {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.14), rgba(124, 58, 237, 0.14) 52%, rgba(236, 72, 153, 0.12));
}

.orb {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 999px;
  filter: blur(8px);
}

.orb-one { top: -48px; left: -38px; background: rgba(34, 211, 238, 0.26); }
.orb-two { right: -52px; bottom: -50px; background: rgba(236, 72, 153, 0.24); }

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(235px, 72vw);
  min-height: 330px;
  border: 10px solid rgba(255, 255, 255, 0.14);
  border-radius: 42px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.12), 0 28px 80px rgba(0,0,0,0.45);
  padding: 1rem;
}

.phone-notch {
  width: 84px;
  height: 20px;
  margin: -2px auto 16px;
  border-radius: 999px;
  background: #050816;
}

.phone-screen {
  min-height: 255px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.95), rgba(49, 46, 129, 0.74));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
  padding: 1.1rem;
}

.phone-screen strong { font-size: 1.45rem; }
.phone-screen p { margin: 0; font-size: 0.85rem; text-align: center; }
.status-pill {
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: #86efac;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.34rem 0.65rem;
}
.phone-screen button {
  border: 0;
  border-radius: 999px;
  background: var(--home-gradient);
  color: #fff;
  font-weight: 800;
  padding: 0.7rem 1rem;
}

.feature-section,
.payment-section,
.pricing-section {
  scroll-margin-bottom: calc(var(--bottom-nav-height) + 28px);
}

.features,
.packages-grid,
.payment-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.feature,
.package-card,
.payment-card,
.glass-card,
.balance-display {
  border: 1px solid var(--home-border) !important;
  border-radius: 28px !important;
  background: var(--home-surface) !important;
  backdrop-filter: blur(18px);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.25) !important;
}

.feature,
.payment-card {
  position: relative;
  overflow: hidden;
}

.feature::after,
.payment-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -50% 20%;
  height: 120px;
  background: var(--home-gradient);
  opacity: 0.11;
  filter: blur(30px);
}

.payment-grid {
  display: grid;
  gap: 1rem;
}

.payment-card {
  padding: 1.35rem;
}

.payment-card.highlighted {
  border-color: rgba(34, 211, 238, 0.42) !important;
  background: linear-gradient(145deg, rgba(34, 211, 238, 0.13), rgba(124, 58, 237, 0.13)) !important;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 15px;
  background: var(--home-gradient);
  color: #fff;
  font-weight: 900;
  margin-bottom: 0.9rem;
}

.payment-card h4 { font-size: 1.08rem; margin-bottom: 0.42rem; }
.payment-card p { color: var(--text-muted); font-size: 0.92rem; }

.package-card {
  min-height: 260px;
}

.package-card.featured {
  transform: none;
  background: linear-gradient(145deg, rgba(124, 58, 237, 0.2), rgba(236, 72, 153, 0.13)) !important;
}

.bottom-nav {
  left: 10px !important;
  right: 10px !important;
  bottom: 10px !important;
  border: 1px solid var(--home-border) !important;
  border-radius: 26px !important;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.42);
  min-height: var(--bottom-nav-height);
  overflow-x: auto;
  scrollbar-width: none;
}

.bottom-nav::-webkit-scrollbar { display: none; }
.bottom-nav .nav-item { min-width: 70px; border-radius: 18px; }
.bottom-nav .nav-item.active {
  background: rgba(124, 58, 237, 0.16);
  color: #c4b5fd;
}

.site-footer {
  border-radius: 30px 30px 0 0;
  background: linear-gradient(180deg, rgba(18, 24, 42, 0.58), rgba(8, 11, 22, 0.94));
  padding-bottom: calc(2rem + var(--bottom-nav-height)) !important;
}

.footer-copy {
  margin-top: 1rem;
  color: #cbd5e1;
  font-weight: 700;
}

@media (min-width: 760px) {
  html.user-page body {
    padding-bottom: 2rem;
  }

  .hero-modern {
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    align-items: center;
    padding-top: 4rem;
  }

  .features,
  .packages-grid,
  .payment-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  .bottom-nav {
    width: min(100% - 32px, 720px);
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
  }
}

/* Account and fixed five-item navigation refinements. Keep these after the home refresh overrides. */
.bottom-nav {
  overflow: hidden !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
  width: auto;
  max-width: 560px;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  background: rgba(24, 24, 27, 0.9) !important;
}

.bottom-nav .nav-item {
  min-width: 0 !important;
  color: #d4d4d8;
  font-size: clamp(0.56rem, 2.65vw, 0.7rem) !important;
}

.bottom-nav .nav-item.active {
  background: transparent !important;
  color: #0a84ff !important;
}

@media (max-width: 420px) {
  .bottom-nav {
    left: max(6px, env(safe-area-inset-left, 0px)) !important;
    right: max(6px, env(safe-area-inset-right, 0px)) !important;
    padding-inline: 4px !important;
  }

  .bottom-nav .nav-item svg {
    width: 20px;
    height: 20px;
  }
}
codex/complete-account-page-upgrade

/* Account page sample-inspired layout refinements */
body[data-active-tab="account"] {
  background: #000 !important;
  overflow-x: hidden;
}

body[data-active-tab="account"] .container {
  width: min(100% - 56px, 620px) !important;
  padding: 0 0 calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0px) + 92px) !important;
}

.account-shell {
  color: #fff;
  padding-top: max(18px, env(safe-area-inset-top, 0px));
  background: #000;
}

.account-sticky-header {
  position: sticky;
  top: max(10px, env(safe-area-inset-top, 0px));
  z-index: 56;
  min-height: 76px;
  margin: 0 -14px 18px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(28, 28, 30, 0.88);
  box-shadow: 0 14px 34px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.06);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.account-menu-btn,
.account-header-icon,
.account-header-flag {
  border: 0;
  background: transparent;
  color: #f5f5f7;
  font-family: var(--font);
  cursor: pointer;
}

.account-menu-btn { font-size: 2rem; line-height: 1; }
.account-header-actions { display: flex; align-items: center; gap: 24px; }
.account-header-icon { color: #34c759; font-size: 2rem; font-weight: 800; }
.account-header-flag { font-size: 1.8rem; }

.account-seller-card {
  margin: 0 0 26px;
  padding: 28px 22px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.08);
  background: radial-gradient(circle at 48% 0%, rgba(95, 77, 122, .22), transparent 55%), #1c1c1e;
  box-shadow: 0 18px 38px rgba(0,0,0,.26);
}

.account-seller-card p {
  margin: 0;
  text-align: center;
  font-size: clamp(1.05rem, 4.3vw, 1.55rem);
  line-height: 1.48;
  font-weight: 500;
  background: linear-gradient(100deg, #5aa7ff 5%, #b15cff 32%, #ff3f9e 62%, #ff7a1a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.account-profile {
  text-align: center;
  padding: 18px 0 30px;
}

.account-avatar {
  width: 94px;
  height: 94px;
  margin: 0 auto 12px;
  color: #9ca0a8;
}

.account-profile h2 {
  margin: 0;
  font-size: clamp(2.2rem, 10vw, 3.35rem);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -.04em;
}

.account-email,
.account-balance {
  margin: 8px 0 0;
  color: #f4f4f5;
  font-size: clamp(1.05rem, 4.2vw, 1.35rem);
  line-height: 1.25;
}

.account-balance { margin-top: 4px; }
.compact-section { margin-bottom: 24px !important; }

body[data-active-tab="account"] .ios-card {
  border-radius: 26px !important;
  background: #1c1c1e !important;
  border: 1px solid rgba(255,255,255,.06) !important;
  box-shadow: none !important;
}

body[data-active-tab="account"] .ios-row {
  min-height: 70px;
  padding: 12px 22px;
  gap: 16px;
  border-bottom-color: rgba(255,255,255,.12);
}

body[data-active-tab="account"] .ios-title {
  font-size: clamp(1.05rem, 4.3vw, 1.35rem);
  font-weight: 500;
  letter-spacing: -.015em;
}

body[data-active-tab="account"] .ios-subtitle {
  font-size: clamp(.86rem, 3.5vw, 1rem);
  color: #8e8e93;
}

body[data-active-tab="account"] .ios-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 1.18rem;
  background: #8e8e93;
}

body[data-active-tab="account"] .ios-icon.blue { background: #007aff; }
body[data-active-tab="account"] .ios-icon.pink { background: linear-gradient(135deg, #8b5cf6, #ff2d55, #ff9500); }
body[data-active-tab="account"] .ios-icon.green { background: #5ac85a; }
body[data-active-tab="account"] .ios-icon.purple { background: #5e5ce6; }
body[data-active-tab="account"] .ios-icon.sky { background: #25a9e0; }
body[data-active-tab="account"] .ios-icon.red { background: #ff453a; }
body[data-active-tab="account"] .ios-icon.trash { background: #f5f5f7; color: #111; }

body[data-active-tab="account"] .ios-chevron {
  width: 22px;
  height: 22px;
  color: #c7c7cc;
}

.account-section-title {
  margin: 2px 0 10px 26px;
  color: #8e8e93;
  font-size: clamp(.95rem, 3.8vw, 1.15rem);
  font-weight: 700;
  letter-spacing: .04em;
}

.account-search {
  min-height: 62px;
  margin-bottom: 22px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  gap: 14px;
  border-radius: 24px;
  background: #1c1c1e;
  color: #8e8e93;
}

.account-search span { font-size: 2rem; line-height: 1; transform: rotate(-10deg); }
.account-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #fff;
  font: 500 clamp(1rem, 4vw, 1.25rem) var(--font);
}
.account-search input::placeholder { color: #8e8e93; opacity: 1; }

.account-device-card .ios-state {
  padding: 18px 16px;
  min-height: auto;
}

.account-device-card .btn {
  padding: 8px 14px;
  border-radius: 999px;
  font-size: .86rem;
}

.account-support-section { margin-bottom: 0 !important; }

body[data-active-tab="account"] .bottom-nav {
  min-height: 70px !important;
  border-radius: 30px !important;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
  padding: 8px 10px !important;
  background: rgba(28, 28, 30, .94) !important;
  border-color: rgba(255,255,255,.16) !important;
}

body[data-active-tab="account"] .bottom-nav .nav-item {
  font-size: clamp(.66rem, 2.8vw, .82rem) !important;
  color: #f5f5f7;
  gap: 2px;
}

body[data-active-tab="account"] .bottom-nav .nav-item.active {
  color: #0a84ff !important;
}

body[data-active-tab="account"] .bottom-nav .nav-item svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 420px) {
  body[data-active-tab="account"] .container {
    width: min(100% - 48px, 620px) !important;
  }
  .account-sticky-header { min-height: 70px; margin-inline: -12px; padding-inline: 24px; }
  body[data-active-tab="account"] .ios-row { min-height: 68px; padding-inline: 18px; }
  .account-profile { padding-bottom: 26px; }
}

@media (max-width: 340px) {
  body[data-active-tab="account"] .container {
    width: min(100% - 36px, 620px) !important;
  }
  .account-sticky-header { margin-inline: -8px; }
  .account-header-actions { gap: 16px; }
}

main
