:root {
  --ot-white: #ffffff;
  --ot-page: #f3f4f6;
  --ot-soft: #e5e7eb;
  --ot-ink: #111827;
  --ot-muted: #6b7280;
  --ot-blue: #4b5563;
  --ot-blue2: #6b7280;
  --ot-green: #9ca3af;
  --ot-green2: #d1d5db;
  --ot-line: rgba(75, 85, 99, 0.16);
  --ot-shadow: 0 22px 55px rgba(75, 85, 99, 0.15);
  --rx-primary: var(--ot-blue);
  --rx-primary-dark: #374151;
  --rx-secondary: var(--ot-green);
  --rx-bg: var(--ot-page);
  --rx-surface: var(--ot-white);
  --rx-border: var(--ot-line);
  --rx-border-strong: rgba(75, 85, 99, 0.28);
  --rx-text: var(--ot-ink);
  --rx-text-muted: var(--ot-muted);
  --rx-gradient-brand: linear-gradient(135deg, #4b5563, #9ca3af);
  --rx-gradient-card: linear-gradient(135deg, #4b5563 0%, #9ca3af 100%);
  --rx-shadow-sm: 0 14px 34px rgba(75, 85, 99, 0.1);
  --rx-shadow-md: 0 18px 45px rgba(75, 85, 99, 0.13);
  --rx-shadow-lg: var(--ot-shadow);
  --rx-shadow-glow: 0 17px 38px rgba(156, 163, 175, 0.22);
  --rx-radius: 1.15rem;
  --rx-radius-lg: 1.35rem;
  --rx-font: "Manrope", system-ui, -apple-system, sans-serif;
  --rx-display: "Space Grotesk", sans-serif;
  --rx-urdu: "Noto Nastaliq Urdu", "Urdu Typesetting", "Jameel Noori Nastaleeq", serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
}

body {
  min-height: 100dvh;
  font-family: var(--rx-font);
  color: var(--rx-text);
  background:
    radial-gradient(circle at 10% 8%, rgba(107, 114, 128, 0.18), transparent 28%),
    radial-gradient(circle at 88% 12%, rgba(156, 163, 175, 0.16), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, var(--ot-page) 48%, #f9fafb 100%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select { font: inherit; }

.rx-landing { overflow-x: hidden; }

.rx-landing-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(75, 85, 99, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75, 85, 99, 0.07) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 82%);
}

.rx-landing-wrap {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.rx-home-nav {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1rem 0;
}

.rx-home-nav__inner {
  max-width: 72rem;
  margin: 0 auto;
}

.rx-nav-card {
  min-height: 82px;
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: var(--rx-shadow-md);
}

.rx-home-logo-only,
.app-brand,
.rx-auth-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.rx-logo-tile,
.rx-auth-brand img,
.app-brand img {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  padding: 6px;
  background: linear-gradient(135deg, #ffffff, #f3f4f6);
  border: 1px solid rgba(75, 85, 99, 0.16);
  box-shadow: 0 12px 28px rgba(75, 85, 99, 0.16);
  flex-shrink: 0;
  object-fit: contain;
  object-position: center;
}

.rx-logo-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}

.rx-nav-brand-text {
  text-align: right;
  min-width: 0;
  flex: 1;
}

.rx-nav-name {
  font-family: var(--rx-display);
  font-size: clamp(1.15rem, 3.6vw, 2rem);
  line-height: 1;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  background: linear-gradient(90deg, #374151, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rx-nav-line {
  margin-top: 5px;
  color: #6b7280;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.rx-hero-area {
  position: relative;
  z-index: 2;
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 1.5rem;
  text-align: center;
}

.rx-hero-title {
  font-family: var(--rx-display);
  max-width: 920px;
  margin: 0 auto 13px;
  font-size: clamp(2.2rem, 8vw, 4.5rem);
  line-height: 0.96;
  letter-spacing: -2px;
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4b5563 0%, #9ca3af 48%, #9ca3af 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 12px 22px rgba(75, 85, 99, 0.15));
}

.rx-hero-urdu {
  max-width: 34rem;
  margin: 0 auto 1.65rem;
  padding: 0 0.35rem;
  font-family: var(--rx-urdu);
}

.rx-urdu-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.rx-urdu-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.62rem 1rem;
  border-radius: 0.85rem;
  font-size: clamp(0.92rem, 3.6vw, 1.08rem);
  font-weight: 600;
  line-height: 1.55;
  color: #1f2937;
  background: rgba(255, 255, 255, 0.88);
  border: 2px solid rgba(75, 85, 99, 0.28);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.9) inset, 0 8px 22px rgba(75,85,99,0.1);
  position: relative;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.rx-urdu-line:hover {
  transform: translateY(-2px);
  border-color: rgba(156, 163, 175, 0.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.95) inset, 0 12px 28px rgba(75,85,99,0.16);
}

.rx-urdu-halal {
  margin: 1rem 0 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.35rem;
  border-radius: 999px;
  font-size: clamp(1rem, 4vw, 1.2rem);
  font-weight: 700;
  color: #374151;
  background: linear-gradient(135deg, rgba(156, 163, 175, 0.14), rgba(255, 255, 255, 0.95));
  border: 2px solid rgba(156, 163, 175, 0.45);
  box-shadow: 0 0 0 1px rgba(255,255,255,0.85) inset, 0 10px 26px rgba(156,163,175,0.18);
}

.rx-hero-buttons {
  width: min(520px, 100%);
  margin: 0 auto 34px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.rx-site-btn,
.rx-btn {
  min-height: 58px;
  border-radius: 19px;
  padding: 15px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 900;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: 0.25s ease;
  white-space: nowrap;
}

.rx-site-btn:hover,
.rx-btn:hover { transform: translateY(-4px); }

.rx-btn-login,
.rx-btn-outline {
  color: #4b5563;
  background: #ffffff;
  box-shadow: 0 15px 34px rgba(75, 85, 99, 0.14);
  border: 1px solid rgba(75, 85, 99, 0.16);
}

.rx-btn-register,
.rx-btn-primary,
.shop-buy-btn,
.mini-btn {
  color: #ffffff;
  background: var(--rx-gradient-brand);
  box-shadow: var(--rx-shadow-glow);
}

.rx-full { width: 100%; }

.rx-video-frame {
  width: min(980px, 100%);
  margin: 0 auto;
  padding: 15px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.98);
  box-shadow: var(--rx-shadow-lg);
  position: relative;
  overflow: hidden;
}

.rx-video-frame::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 9%;
  bottom: 0;
  height: 6px;
  border-radius: 99px 99px 0 0;
  background: linear-gradient(90deg, transparent, #6b7280, #9ca3af, transparent);
  box-shadow: 0 0 24px rgba(156, 163, 175, 0.38);
}

.rx-video-box {
  min-height: 320px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(145deg, #ffffff, #e5e7eb 54%, #f3f4f6);
  border: 1px solid rgba(75, 85, 99, 0.14);
}

.rx-video-topbar {
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid rgba(75, 85, 99, 0.14);
}

.rx-video-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #1f2937;
  font-weight: 900;
  min-width: 0;
  font-size: 0.9rem;
}

.rx-live-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #9ca3af;
  box-shadow: 0 0 0 8px rgba(156, 163, 175, 0.12), 0 0 20px rgba(156, 163, 175, 0.7);
  animation: otPulse 1.8s infinite;
  flex-shrink: 0;
}

@keyframes otPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(0.72); }
}

.rx-video-profit {
  color: #6b7280;
  font-weight: 900;
  font-size: 15px;
  white-space: nowrap;
}

.rx-video-area {
  position: relative;
  min-height: 332px;
  background: linear-gradient(135deg, rgba(75,85,99,0.08), rgba(156,163,175,0.08)), #ffffff;
}

.rx-trading-media {
  width: 100%;
  height: 332px;
  object-fit: cover;
  display: block;
  background: #e5e7eb;
}

.rx-video-fallback {
  display: none;
  position: absolute;
  inset: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  text-align: center;
  color: #6b7280;
  font-weight: 800;
  padding: 20px;
  background: linear-gradient(135deg, rgba(75,85,99,0.06), rgba(156,163,175,0.06)), #ffffff;
}

.rx-video-fallback i {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 24px;
  background: var(--rx-gradient-brand);
  box-shadow: 0 15px 35px rgba(75, 85, 99, 0.18);
}

.rx-video-area.is-missing .rx-trading-media { display: none; }
.rx-video-area.is-missing .rx-video-fallback { display: flex; }

.rx-stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 18px auto 0;
  max-width: 980px;
}

.rx-stat-box,
.dash-card,
.panel,
.payment-box,
.shop-card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 85, 99, 0.14);
  box-shadow: var(--rx-shadow-sm);
}

.rx-stat-box {
  border-radius: 22px;
  padding: 18px 15px;
  text-align: left;
  position: relative;
  overflow: hidden;
}

.rx-stat-box small,
.dash-card small {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 6px;
}

.rx-stat-box strong,
.dash-card strong {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-size: 18px;
  font-weight: 900;
}

.rx-stat-box i { color: #9ca3af; }

.rx-plans-section {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 3rem;
}

.rx-plans-head,
.panel-head {
  text-align: center;
  margin-bottom: 1.75rem;
}

.rx-plans-head h2,
.panel-head h2 {
  font-family: var(--rx-display);
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  text-transform: uppercase;
  background: linear-gradient(90deg, #374151, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.5rem;
}

.rx-plans-head p,
.panel-head p {
  margin: 0;
  color: #6b7280;
  font-size: 0.9rem;
  font-weight: 700;
}

.shop-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.shop-card {
  position: relative;
  width: 100%;
  border-radius: 1.25rem;
  overflow: hidden;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.shop-card:hover {
  transform: translateY(-4px);
  border-color: rgba(156, 163, 175, 0.35);
  box-shadow: 0 22px 55px rgba(75, 85, 99, 0.18);
}

.shop-vip-badge {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: var(--rx-gradient-brand);
  box-shadow: 0 8px 20px rgba(156, 163, 175, 0.28);
  animation: shopBadgeFloat 2s ease-in-out infinite;
  z-index: 2;
}

@keyframes shopBadgeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.shop-card-body { padding: 0.9rem; }

.shop-card-head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
}

.rx-brand-fallback,
.shop-plan-img-fallback {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: var(--rx-gradient-brand);
  font-family: var(--rx-display);
  font-size: 0.7rem;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(75, 85, 99, 0.12);
}

.shop-plan-title {
  font-family: var(--rx-display);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--rx-text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.shop-plan-title i { font-size: 0.65rem; color: #9ca3af; }

.shop-plan-meta {
  font-size: 0.62rem;
  color: var(--rx-text-muted);
  margin-top: 0.15rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-weight: 700;
}

.shop-invest-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.65rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, rgba(75,85,99,0.08), rgba(156,163,175,0.08));
  border: 1px solid rgba(75, 85, 99, 0.12);
}

.shop-invest-label,
.shop-stat-label {
  font-size: 0.58rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--rx-text-muted);
}

.shop-invest-amount {
  font-size: 0.9rem;
  font-weight: 900;
  color: #4b5563;
  margin-top: 0.15rem;
}

.shop-invest-icon,
.shop-stat-icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rx-gradient-brand);
  color: #fff;
  font-size: 0.72rem;
  box-shadow: 0 8px 20px rgba(75, 85, 99, 0.2);
}

.shop-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.shop-stat {
  padding: 0.5rem 0.55rem;
  border-radius: 0.75rem;
  background: #f8fcff;
  border: 1px solid rgba(75, 85, 99, 0.1);
}

.shop-stat-top {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.25rem;
}

.shop-stat-icon {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 0.45rem;
  font-size: 0.52rem;
}

.shop-stat-value {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--rx-text);
}

.shop-ref-commission {
  margin-top: 0.65rem;
  margin-bottom: 0.65rem;
  padding: 0.65rem 0.7rem;
  border-radius: 0.85rem;
  background: linear-gradient(135deg, rgba(75,85,99,0.06), rgba(156,163,175,0.08));
  border: 1px solid rgba(75, 85, 99, 0.14);
}

.shop-ref-head {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--rx-display);
  font-size: 0.72rem;
  font-weight: 700;
  color: #374151;
  margin-bottom: 0.35rem;
}

.shop-ref-levels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.shop-ref-levels li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.35rem;
  align-items: center;
  font-size: 0.64rem;
  font-weight: 700;
  padding: 0.35rem 0.45rem;
  border-radius: 0.55rem;
  background: rgba(255, 255, 255, 0.75);
}

.shop-ref-pct { color: #4b5563; }
.shop-ref-amt { color: #9ca3af; font-family: var(--rx-display); }

.shop-buy-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 0.9rem;
  font-size: 0.78rem;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.shop-empty {
  text-align: center;
  padding: 2rem 1rem;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed rgba(75, 85, 99, 0.2);
  color: var(--rx-text-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.rx-home-footer {
  position: relative;
  z-index: 2;
  margin-top: 18px;
  padding: 32px 1.25rem;
  text-align: center;
  background: rgba(255, 255, 255, 0.82);
  border-top: 1px solid rgba(75, 85, 99, 0.14);
  box-shadow: 0 -12px 36px rgba(75, 85, 99, 0.08);
}

.rx-footer-logo {
  display: inline-flex;
  margin: 0 auto 12px;
  width: min(270px, 78vw);
  height: auto;
}

.rx-footer-logo img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(15, 23, 42, 0.16));
}

.rx-home-footer h5 {
  font-family: var(--rx-display);
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 7px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #4b5563, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.rx-home-footer p {
  margin: 0;
  color: #6b7280;
  font-size: 13px;
  font-weight: 800;
}

.rx-auth-wrap {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
}

.rx-auth-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(75,85,99,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,85,99,0.07) 1px, transparent 1px);
  background-size: 44px 44px;
}

.rx-auth-card {
  width: 100%;
  max-width: 26rem;
  padding: 2rem 1.75rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 2rem;
  box-shadow: var(--ot-shadow);
  position: relative;
  z-index: 2;
}

.rx-auth-blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0.7;
  background: rgba(156, 163, 175, 0.2);
}

.rx-auth-blob--1 {
  width: 220px;
  height: 220px;
  top: -90px;
  left: -85px;
}

.rx-auth-blob--2 {
  width: 260px;
  height: 260px;
  right: -110px;
  bottom: -120px;
}

.rx-auth-brand {
  gap: 0.75rem;
  margin-bottom: 1.35rem;
  font-family: var(--rx-display);
  font-weight: 700;
}

.rx-auth-brand img {
  width: 54px;
  height: 54px;
}

.rx-auth-heading h1 {
  font-family: var(--rx-display);
  font-size: clamp(2rem, 8vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, #374151, #9ca3af);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 0 0 0.35rem;
}

.rx-auth-heading p,
.rx-auth-foot {
  margin: 0 0 1.25rem;
  color: var(--ot-muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.rx-auth-foot {
  margin: 1rem 0 0;
  text-align: center;
}

.rx-auth-foot a {
  color: #4b5563;
  font-weight: 900;
  text-decoration: none;
}

/* Login/register reference styling */
body.rx-auth-body {
  min-height: 100dvh;
  background:
    linear-gradient(rgba(75,85,99,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(75,85,99,0.045) 1px, transparent 1px),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 100%);
  background-size: 44px 44px, 44px 44px, auto;
}

.rx-auth-wrap {
  align-items: center;
  padding: 8px;
}

.rx-auth-wrap::before,
.rx-auth-blob {
  display: none;
}

.rx-auth-card {
  max-width: 520px;
  padding: 42px 36px 38px;
  border-radius: 38px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,255,255,0.92);
  box-shadow: 0 24px 60px rgba(15,23,42,0.08);
}

.rx-auth-brand {
  gap: 15px;
  margin-bottom: 34px;
}

.rx-auth-brand img {
  width: 66px;
  height: 66px;
  border-radius: 22px;
  padding: 7px;
}

.rx-auth-brand span {
  color: #111827;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: 0;
}

.rx-auth-heading h1 {
  margin-bottom: 12px;
  color: #4b5563;
  background: none;
  -webkit-text-fill-color: currentColor;
  font-family: var(--rx-font);
  font-size: clamp(2.9rem, 12vw, 4rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.rx-auth-heading p {
  margin-bottom: 28px;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 800;
}

.rx-auth-card .rx-form-label {
  margin-top: 18px;
  margin-bottom: 9px;
  color: #6b7280;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
}

.rx-auth-card .rx-input {
  min-height: 60px;
  border-radius: 21px;
  padding: 0 20px;
  background: #f8fafc;
  border-color: #d1d5db;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.rx-auth-card .rx-input + .auth-submit {
  margin-top: 18px;
}

.rx-auth-card .rx-input::placeholder {
  color: #8b95a3;
}

.rx-auth-card .auth-submit {
  min-height: 73px;
  margin-top: 18px;
  border-radius: 22px;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  box-shadow: none;
  font-size: 1.1rem;
  line-height: 1;
  position: relative;
  z-index: 0;
}

.rx-auth-foot {
  margin-top: 22px;
  color: #6b7280;
  font-size: 1.05rem;
  font-weight: 800;
}

.rx-auth-foot a {
  color: #4b5563;
}

@media (max-width: 560px) {
  .rx-auth-card {
    width: min(100%, 520px);
    padding: 42px 36px 38px;
    border-radius: 38px;
  }
}

@media (max-width: 420px) {
  .rx-auth-card {
    padding: 32px 24px;
    border-radius: 30px;
  }
  .rx-auth-brand img {
    width: 58px;
    height: 58px;
  }
  .rx-auth-brand span {
    font-size: 1rem;
  }
  .rx-auth-card .rx-input {
    min-height: 56px;
  }
}

.rx-form-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ot-muted);
  margin: 0.85rem 0 0.4rem;
}

.rx-input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(75, 85, 99, 0.2);
  border-radius: 1rem;
  font-size: 0.92rem;
  background: #f9fafb;
  color: var(--rx-text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.rx-input:focus {
  outline: none;
  border-color: var(--ot-blue);
  box-shadow: 0 0 0 4px rgba(75, 85, 99, 0.12);
}

.rx-form-alert {
  margin: 0.5rem 0 0.85rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(15, 159, 110, 0.1);
  border: 1px solid rgba(15, 159, 110, 0.2);
  color: #0f7f58;
  font-size: 0.82rem;
  font-weight: 800;
}

.rx-form-alert.is-error {
  color: #dc2626;
  background: #fef2f2;
  border-color: #fecaca;
}

.app-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 17rem 1fr;
  gap: 1.25rem;
  max-width: 86rem;
  margin: 0 auto;
  padding: 1.25rem;
}

.app-sidebar {
  position: sticky;
  top: 1.25rem;
  height: calc(100dvh - 2.5rem);
  border-radius: 1.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(75, 85, 99, 0.14);
  box-shadow: var(--rx-shadow-md);
}

.app-brand {
  gap: 0.65rem;
  font-family: var(--rx-display);
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 1rem;
}

.app-brand img {
  width: 48px;
  height: 48px;
  border-radius: 16px;
}

.app-sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.app-sidebar nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 0.9rem;
  text-decoration: none;
  color: #374151;
  font-weight: 900;
}

.app-sidebar nav a:hover {
  background: rgba(75, 85, 99, 0.08);
}

.app-sidebar nav a.is-active {
  background: linear-gradient(135deg, rgba(75, 85, 99, 0.14), rgba(156, 163, 175, 0.16));
  border: 1px solid rgba(75, 85, 99, 0.16);
  box-shadow: 0 12px 26px rgba(75, 85, 99, 0.1);
}

.admin-mobile-nav {
  display: none;
}

.app-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.dash-hero {
  min-height: 12rem;
  border-radius: 1.6rem;
  padding: 1.35rem;
  color: #fff;
  background: var(--rx-gradient-card);
  box-shadow: var(--rx-shadow-glow);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-end;
}

.dash-hero h1 {
  margin: 0.2rem 0;
  font-family: var(--rx-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  line-height: 1;
}

.dash-hero span,
.dash-kicker {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 900;
  opacity: 0.85;
}

.dash-hero img {
  width: 80px;
  height: 80px;
  padding: 10px;
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.92);
}

.dash-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
}

.dash-card,
.panel,
.payment-box {
  border-radius: 1.25rem;
  padding: 1rem;
}

.panel-head { text-align: left; margin-bottom: 1rem; }

.two-col {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1rem;
}

.payment-box h3 {
  font-family: var(--rx-display);
  margin: 0 0 1rem;
}

.payment-box p {
  color: #4b5563;
  font-weight: 700;
  line-height: 1.55;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
}

th,
td {
  padding: 0.8rem;
  text-align: left;
  border-bottom: 1px solid rgba(75, 85, 99, 0.12);
  font-size: 0.82rem;
}

th {
  color: #6b7280;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  background: rgba(75, 85, 99, 0.08);
  color: #374151;
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.bottom-nav {
  display: none;
}

.admin-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-actions form { margin: 0; }

.mini-btn {
  border: 0;
  border-radius: 0.65rem;
  padding: 0.45rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 900;
  cursor: pointer;
}

.mini-btn-muted {
  background: #fff;
  color: #4b5563;
  border: 1px solid rgba(75,85,99,0.16);
  box-shadow: none;
}

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

.admin-settings-grid .rx-full {
  grid-column: 1 / -1;
}

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

.admin-plan-card {
  padding: 0.9rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(75,85,99,0.14);
}

.admin-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0;
  color: #4b5563;
  font-size: 0.78rem;
  font-weight: 900;
}

/* Mobile dashboard reference redesign */
.mobile-dashboard {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 8% 3%, rgba(148, 163, 184, 0.26), transparent 22rem),
    radial-gradient(circle at 96% 9%, rgba(100, 116, 139, 0.16), transparent 18rem),
    linear-gradient(180deg, #f8fafc 0%, #eef2f6 52%, #f8fafc 100%);
  color: #06142a;
  overflow-x: hidden;
}

.md-drawer {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease;
}

.md-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.md-drawer-panel {
  width: min(250px, calc(100% - 40px));
  height: 100dvh;
  padding: 18px 13px;
  overflow-y: auto;
  background: #f8fafc;
  border-right: 1px solid #d8dee8;
  box-shadow: 22px 0 42px rgba(15, 23, 42, 0.2);
  transform: translateX(-105%);
  transition: transform 0.24s ease;
}

.md-drawer.is-open .md-drawer-panel {
  transform: translateX(0);
}

.md-drawer-brand {
  display: grid;
  grid-template-columns: 38px 1fr 36px;
  align-items: center;
  gap: 10px;
  margin-bottom: 15px;
}

.md-drawer-brand img {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  padding: 3px;
  background: #fff;
  border: 1px solid #dce3ed;
  object-fit: contain;
  object-position: center;
}

.md-drawer-brand strong {
  display: block;
  color: #0f1f38;
  font-size: 0.78rem;
  font-weight: 900;
}

.md-drawer-brand span {
  display: block;
  color: #64748b;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-drawer-close {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 12px;
  color: #64748b;
  background: #eef2f7;
  cursor: pointer;
}

.md-drawer-label {
  margin: 0 0 8px 3px;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.md-drawer-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.md-drawer-list a {
  min-height: 54px;
  display: grid;
  grid-template-columns: 37px 1fr 14px;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  color: #1f2937;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #dde3eb;
  border-radius: 13px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.06);
}

.md-drawer-list a.is-active {
  background: linear-gradient(145deg, #e9edf3, #ffffff);
  border-color: #aeb6c2;
  box-shadow: inset -3px 0 0 #aeb6c2, 0 8px 18px rgba(15, 23, 42, 0.1);
}

.md-drawer-list i {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #5d6877, #9aa3af);
  font-size: 0.85rem;
}

.md-drawer-list span {
  font-size: 0.82rem;
  font-weight: 900;
}

.md-drawer-list b {
  color: #cbd5e1;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1;
}

.md-drawer-logout {
  width: 100%;
  min-height: 40px;
  margin-top: 13px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #ef3b42;
  box-shadow: 0 10px 20px rgba(239, 59, 66, 0.22);
  font-weight: 900;
  cursor: pointer;
}

.md-phone {
  width: min(100%, 480px);
  margin: 0 auto;
  padding: 0 16px;
}

.md-topbar {
  height: 65px;
  display: grid;
  grid-template-columns: 54px 1fr 54px;
  align-items: center;
  gap: 10px;
  margin: 0 -16px 8px;
  padding: 0 16px;
  background: rgba(255, 255, 255, 0.84);
  border-bottom: 1px solid rgba(100, 116, 139, 0.26);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.11);
}

.md-circle-btn,
.md-user-mark,
.md-verified {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4b5563, #7b8491);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.23);
  font-size: 1.05rem;
  font-weight: 900;
}

.md-verified {
  border-radius: 50%;
  border: 4px solid #e5e7eb;
  color: #2563eb;
  background: #64748b;
  outline: 2px solid #9ca3af;
}

.md-title {
  text-align: center;
  min-width: 0;
}

.md-title span {
  display: block;
  color: #94a3b8;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.md-title strong {
  display: block;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 900;
}

.md-welcome {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 2px 18px;
}

.md-welcome span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.md-welcome h1 {
  margin: 4px 0 0;
  color: #06142a;
  font-size: 1.45rem;
  line-height: 1;
}

.md-balance-card {
  min-height: 106px;
  border-radius: 18px;
  padding: 18px 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #fff;
  background: linear-gradient(145deg, #2d3746, #596575);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.24);
  position: relative;
  overflow: hidden;
}

.md-balance-card::after {
  content: "";
  position: absolute;
  right: -34px;
  top: -48px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}

.md-balance-card span,
.md-ref-card h2 {
  display: block;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-balance-card h2 {
  margin: 5px 0 8px;
  font-size: 1.55rem;
  line-height: 1;
}

.md-balance-card p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 900;
}

.md-balance-card p i {
  color: #a7f3d0;
  font-size: 0.5rem;
}

.md-balance-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.md-balance-actions button {
  width: 31px;
  height: 31px;
  border: 0;
  border-radius: 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.md-mini-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 15px 0;
}

.md-mini-stats article,
.md-panel {
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}

.md-mini-stats article {
  min-height: 77px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  text-align: center;
}

.md-mini-stats span {
  color: #737373;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.md-mini-stats strong {
  color: #06142a;
  font-size: 1.2rem;
  font-weight: 900;
}

.md-actions {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 9px;
  margin-bottom: 17px;
}

.md-actions a,
.md-service-grid a,
.md-service-grid button,
.md-link-grid a {
  min-width: 0;
  text-decoration: none;
  border: 0;
  background: transparent;
  color: #06142a;
  font-family: var(--rx-font);
  cursor: pointer;
}

.md-actions a {
  min-height: 73px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.09);
}

.md-actions a.is-active {
  border-color: rgba(245, 158, 11, 0.38);
}

.md-actions i,
.md-service-grid i,
.md-link-grid i,
.md-review-list i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #657080, #9ca3af);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.15);
  font-size: 0.95rem;
}

.md-actions span,
.md-service-grid span,
.md-link-grid span {
  display: block;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.md-panel {
  border-radius: 19px;
  padding: 16px;
  margin-bottom: 17px;
}

.md-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 13px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 15px;
}

.md-panel-head h2 {
  margin: 0;
  color: #06142a;
  font-size: 1rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
  background: none;
  -webkit-text-fill-color: currentColor;
}

.md-panel-head span {
  border-radius: 8px;
  padding: 5px 10px;
  color: #06142a;
  background: #c8ced7;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.md-service-grid,
.md-link-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px 8px;
}

.md-service-grid a,
.md-service-grid button,
.md-link-grid a {
  display: grid;
  justify-items: center;
  gap: 7px;
  text-align: center;
}

.md-service-grid i,
.md-link-grid i {
  color: #657080;
  background: #f1f5f9;
  border: 1px solid #dde3eb;
  box-shadow: none;
}

.md-service-grid button i {
  color: #e11d48;
  background: #fff1f2;
  border-color: #fecdd3;
}

.md-link-grid {
  grid-template-columns: repeat(3, 1fr);
}

.md-link-grid i.fa-google-play {
  color: #22c55e;
}

.md-link-grid i.fa-whatsapp {
  color: #22c55e;
}

.md-ref-card {
  margin: 0 -16px 17px;
  padding: 18px 16px;
  border-radius: 16px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #8b95a1);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.md-ref-card h2 {
  margin: 0 0 14px;
  color: #fff;
}

.md-ref-card div {
  display: grid;
  grid-template-columns: 1fr 38px;
  gap: 7px;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,0.38);
  background: rgba(255,255,255,0.12);
}

.md-ref-card input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 900;
}

.md-ref-card input:focus {
  outline: none;
}

.md-ref-card button {
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #64748b;
  font-weight: 900;
}

.md-review-list {
  display: flex;
  flex-direction: column;
}

.md-review-list div,
.md-history-list div {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.md-review-list div:last-child,
.md-history-list div:last-child {
  border-bottom: 0;
}

.md-review-list i {
  border-radius: 50%;
  background: linear-gradient(145deg, #707b8a, #9ca3af);
}

.md-review-list span,
.md-history-list span {
  color: #0f1f38;
  font-size: 0.86rem;
  font-weight: 800;
}

.md-history-list small {
  color: #94a3b8;
  font-size: 0.68rem;
  font-weight: 800;
}

.md-review-list strong,
.md-history-list strong {
  color: #06142a;
  font-size: 0.86rem;
  font-weight: 900;
  text-align: right;
}

.md-form .rx-btn {
  margin-top: 1rem;
}

.md-payment-note {
  margin: 0.85rem 0;
  padding: 0.8rem;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid rgba(203, 213, 225, 0.85);
}

.md-payment-note p {
  margin: 0.2rem 0;
  color: #475569;
  font-size: 0.76rem;
  line-height: 1.45;
}

.md-history-list div {
  grid-template-columns: 1fr auto;
}

.md-empty {
  margin: 0;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 800;
}

.md-bottom-space {
  height: 106px;
}

.md-bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  bottom: 10px;
  width: min(calc(100% - 44px), 398px);
  min-height: 80px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  border-radius: 23px;
  background: rgba(255,255,255,0.97);
  border: 2px solid #aeb6c2;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(16px);
}

.md-bottom-nav a {
  min-width: 0;
  min-height: 62px;
  border-radius: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: #64748b;
  text-decoration: none;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.md-bottom-nav a.is-active {
  color: #566170;
  background: linear-gradient(145deg, #eef1f5, #ffffff);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.md-bottom-nav i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #64748b;
  background: #f1f5f9;
  font-size: 1rem;
}

.md-bottom-nav a.is-active i {
  color: #fff;
  background: linear-gradient(145deg, #596575, #8c95a3);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.22);
}

.mobile-dashboard .shop-grid {
  grid-template-columns: 1fr !important;
}

.deposit-plan-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.deposit-plan-card {
  padding: 13px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.deposit-plan-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: start;
  gap: 9px;
  margin-bottom: 12px;
}

.deposit-plan-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #3b82f6;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.1);
  font-size: 1.55rem;
}

.deposit-plan-head h2 {
  margin: 3px 0 2px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
}

.deposit-plan-head h2 i {
  color: #aeb7c5;
  font-size: 0.72rem;
}

.deposit-plan-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.deposit-plan-head > span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(145deg, #5a6574, #9ba4b0);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.17);
  font-size: 0.65rem;
  font-weight: 900;
}

.deposit-invest-box {
  min-height: 58px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  margin-bottom: 10px;
  background: #f8fafc;
  border: 1px solid #d7dee8;
}

.deposit-invest-box small,
.deposit-stat-grid small {
  display: block;
  color: #7c8796;
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.deposit-invest-box strong {
  display: block;
  margin-top: 3px;
  color: #596575;
  font-size: 1rem;
  font-weight: 900;
}

.deposit-invest-box > i {
  width: 33px;
  height: 33px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #5b6675, #9ba4af);
  box-shadow: 0 8px 17px rgba(15, 23, 42, 0.18);
}

.deposit-stat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.deposit-stat-grid div {
  min-height: 54px;
  border-radius: 10px;
  padding: 9px 10px;
  background: #f8fcff;
  border: 1px solid #d7e1ec;
}

.deposit-stat-grid i {
  width: 22px;
  height: 22px;
  margin-right: 4px;
  border-radius: 7px;
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #aeb7c5;
  font-size: 0.7rem;
}

.deposit-stat-grid strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
}

.deposit-ref-box {
  padding: 10px;
  margin-bottom: 10px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #d7dee8;
}

.deposit-ref-box h3 {
  margin: 0 0 8px;
  color: #465364;
  font-size: 0.78rem;
  font-weight: 900;
}

.deposit-ref-box div {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 6px;
  align-items: center;
  min-height: 26px;
  padding: 0 8px;
  margin-top: 4px;
  border-radius: 8px;
  background: #fff;
}

.deposit-ref-box span,
.deposit-ref-box strong,
.deposit-ref-box em {
  color: #64748b;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
}

.deposit-ref-box em {
  color: #a0a8b4;
}

.deposit-activate-btn,
.fund-submit {
  width: 100%;
  min-height: 42px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #99a2ae);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.12);
  font-size: 0.82rem;
  font-weight: 900;
  cursor: pointer;
}

.deposit-plan-card .rx-form-alert {
  margin: 0 0 8px;
}

.fund-page {
  padding-top: 8px;
}

.fund-heading {
  text-align: center;
  margin-bottom: 14px;
}

.fund-heading h1 {
  margin: 0 0 5px;
  color: #64748b;
  font-size: 1.05rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-heading p {
  margin: 0;
  color: #7c8796;
  font-size: 0.78rem;
  font-weight: 900;
}

.fund-heading span {
  display: block;
  width: 45px;
  height: 3px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: #64748b;
}

.fund-selected {
  min-height: 57px;
  margin: 0 22px 14px;
  padding: 12px 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(145deg, #596575, #97a1ae);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.fund-selected small {
  display: block;
  font-size: 0.66rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-selected strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 900;
}

.fund-card {
  margin: 0 22px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.fund-section-title {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.fund-gateway-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.fund-gateway-card {
  width: 100%;
  min-height: 118px;
  padding: 12px 8px 10px;
  border-radius: 16px;
  border: 1px solid #d5dde8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  position: relative;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
  background: linear-gradient(180deg, #ffffff, #fbfdff);
  cursor: pointer;
  transition: 0.18s ease;
}

.fund-gateway-card > i {
  position: absolute;
  top: 9px;
  right: 9px;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aeb7c5;
  font-size: 0.68rem;
}

.fund-gateway-card.is-active {
  border-color: #64748b;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
  transform: translateY(-1px);
  background: linear-gradient(180deg, #ffffff, #f8fafc);
}

.fund-gateway-card.is-active > i {
  background: #64748b;
}

.fund-gateway-card:focus-visible {
  outline: 3px solid rgba(100, 116, 139, 0.28);
  outline-offset: 3px;
}

.fund-gateway-card.is-active strong {
  color: #0f172a;
}

.fund-gateway-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

.fund-gateway-logo img,
.fund-mini-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px;
}

.fund-gateway-card strong {
  color: #4b5563;
  font-size: 0.76rem;
  font-weight: 900;
  text-align: center;
}

.fund-active-gateway,
.fund-account-box {
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #d7dee8;
}

.fund-active-gateway {
  min-height: 64px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 52px 1fr 24px;
  gap: 10px;
  align-items: center;
  margin-bottom: 28px;
}

.fund-mini-logo {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #fff;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  color: #64748b;
  font-size: 0.66rem;
  font-weight: 900;
  overflow: hidden;
}

.fund-active-gateway small {
  display: block;
  color: #8a94a3;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.fund-active-gateway strong {
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
}

.fund-active-gateway > i {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: #aeb7c5;
  font-size: 0.7rem;
}

.fund-account-box {
  padding: 16px 18px;
  margin-bottom: 26px;
  background: #f8fafc;
}

.fund-account-box div {
  display: grid;
  grid-template-columns: minmax(105px, 1fr) minmax(0, auto) auto;
  gap: 8px;
  align-items: center;
  min-height: 36px;
  border-bottom: 1px solid #e2e8f0;
}

.fund-account-box div:last-child {
  border-bottom: 0;
}

.fund-account-box span {
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
}

.fund-account-box strong {
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 900;
  max-width: 235px;
  overflow-wrap: anywhere;
  text-align: right;
}

.fund-account-box button {
  border: 0;
  border-radius: 8px;
  padding: 7px 10px;
  color: #fff;
  background: #8b95a3;
  font-size: 0.72rem;
  font-weight: 900;
}

.fund-upload {
  min-height: 82px;
  border-radius: 12px;
  border: 1px dashed #cbd5e1;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #64748b;
  background: #fbfdff;
  text-align: center;
  cursor: pointer;
}

.fund-upload input {
  display: none;
}

.fund-upload i {
  font-size: 1.25rem;
}

.fund-upload strong {
  font-size: 0.78rem;
  font-weight: 900;
}

.fund-upload span {
  color: #94a3b8;
  font-size: 0.63rem;
  font-weight: 800;
}

.fund-upload.is-uploaded {
  border-color: #64748b;
  background-color: #f8fafc;
}

.fund-upload.is-uploaded i,
.fund-upload.is-uploaded strong {
  color: #4b5563;
}

.fund-submit {
  min-height: 41px;
  margin-top: 14px;
}

.processing-popup {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.54);
  backdrop-filter: blur(10px);
}

.processing-popup.is-open {
  display: grid;
}

.processing-popup > div {
  width: min(360px, 100%);
  min-height: 190px;
  border-radius: 24px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  color: #fff;
  background: linear-gradient(145deg, #4b5563, #9ca3af);
  border: 1px solid rgba(255, 255, 255, 0.35);
  box-shadow: 0 28px 70px rgba(15, 23, 42, 0.34);
}

.processing-popup i {
  font-size: 2.15rem;
}

.processing-popup strong {
  max-width: 290px;
  font-size: 1.05rem;
  line-height: 1.35;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.processing-popup span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.76rem;
  font-weight: 800;
}

.mining-page {
  padding-top: 8px;
}

.mining-heading {
  margin-bottom: 18px;
}

.mining-empty {
  min-height: 122px;
  margin: 0 28px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #7c8796;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #cbd5e1;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

.mining-empty i {
  color: #4b5563;
  font-size: 1.95rem;
}

.mining-empty p {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 700;
}

.mining-card-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mining-card {
  padding: 13px;
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.12);
}

.mining-card-head {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: start;
  gap: 9px;
  margin-bottom: 12px;
}

.mining-card-head h2 {
  margin: 3px 0 2px;
  color: #0f172a;
  font-size: 0.9rem;
  font-weight: 900;
}

.mining-card-head h2 i {
  color: #aeb7c5;
  font-size: 0.72rem;
}

.mining-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.mining-card-head > span {
  border-radius: 999px;
  padding: 5px 10px;
  color: #fff;
  background: linear-gradient(145deg, #0f9f6e, #9ca3af);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.13);
  font-size: 0.65rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mining-timer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #8f99a6);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.14);
}

.mining-timer div {
  min-width: 0;
  text-align: center;
}

.mining-timer strong {
  display: block;
  font-family: var(--rx-display);
  font-size: clamp(1rem, 5vw, 1.35rem);
  line-height: 1;
  font-weight: 700;
}

.mining-timer span {
  display: block;
  margin-top: 4px;
  opacity: 0.84;
  font-size: 0.56rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mining-timer.is-ended {
  background: linear-gradient(145deg, #374151, #6b7280);
}

.mining-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 10px;
}

.mining-summary-grid div {
  min-height: 58px;
  padding: 10px;
  border-radius: 11px;
  background: #f8fcff;
  border: 1px solid #d7e1ec;
}

.mining-summary-grid small {
  display: block;
  color: #7c8796;
  font-size: 0.6rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mining-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: #0f172a;
  font-size: 0.83rem;
  font-weight: 900;
}

.mining-invest {
  margin-bottom: 0;
}

.withdraw-page {
  padding-top: 8px;
}

.withdraw-balance-bar {
  min-height: 43px;
  margin: 0 22px 18px;
  padding: 0 14px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  background: linear-gradient(145deg, #596575, #98a2ae);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.16);
}

.withdraw-balance-bar span,
.withdraw-balance-bar strong {
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.withdraw-card {
  margin: 0 22px;
  padding: 14px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.withdraw-gateway-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin-bottom: 14px;
}

.withdraw-gateway {
  min-height: 99px;
  border-radius: 14px;
  border: 1px solid #e2e8f0;
  display: grid;
  place-items: center;
  gap: 7px;
  background: #fff;
  color: #0f172a;
  position: relative;
  cursor: pointer;
}

.withdraw-gateway.is-active {
  border: 2px solid #aeb6c2;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.withdraw-gateway img,
.withdraw-active-gateway img {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  object-fit: contain;
}

.withdraw-gateway > i {
  position: absolute;
  top: 8px;
  right: 8px;
  color: #aeb7c5;
  opacity: 0;
}

.withdraw-gateway.is-active > i {
  opacity: 1;
}

.withdraw-gateway strong {
  color: #0f172a;
  font-size: 0.75rem;
  font-weight: 900;
}

.withdraw-active-gateway {
  margin-bottom: 28px;
}

.withdraw-active-gateway .fund-mini-logo {
  display: grid;
  place-items: center;
  overflow: hidden;
}

.withdraw-amount-wrap {
  min-height: 40px;
  border-radius: 12px;
  border: 1px solid #d7dee8;
  display: grid;
  grid-template-columns: 45px 1fr;
  align-items: center;
  padding: 0 12px;
  background: #fbfdff;
}

.withdraw-amount-wrap span {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 900;
}

.withdraw-amount-wrap input {
  min-width: 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.withdraw-amount-wrap input:focus {
  outline: none;
}

.withdraw-limit {
  margin: 8px 0 26px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.withdraw-account-box {
  padding: 13px;
  border-radius: 13px;
  background: #f8fafc;
  border: 1px solid #d7dee8;
}

.withdraw-account-box h2 {
  margin: 0 0 8px;
  color: #64748b;
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
}

.admin-proof-text {
  margin: 0;
  white-space: pre-wrap;
  color: #334155;
  font: inherit;
  font-size: 0.76rem;
  font-weight: 800;
}

.team-page {
  padding-top: 8px;
}

.team-heading {
  margin-bottom: 18px;
}

.team-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 0 22px 14px;
}

.team-stats article {
  min-height: 60px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
  overflow: hidden;
  position: relative;
}

.team-stats article::after {
  content: "";
  position: absolute;
  right: -18px;
  top: -24px;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: rgba(100,116,139,0.08);
}

.team-stats small {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.team-stats strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 0.88rem;
  font-weight: 900;
}

.team-stats i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #596575;
  background: #eef2f7;
  position: relative;
  z-index: 1;
}

.team-invite-card,
.team-level-card {
  margin: 0 22px 14px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 12px 26px rgba(15,23,42,0.11);
}

.team-invite-card h2 {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.team-invite-card h2 i {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
}

.team-copy-row {
  display: grid;
  grid-template-columns: 1fr 45px;
  gap: 8px;
  margin-bottom: 10px;
}

.team-copy-row input {
  min-width: 0;
  height: 42px;
  border-radius: 12px;
  border: 1px solid #d7dee8;
  padding: 0 12px;
  color: #0f172a;
  background: #fbfdff;
  font-size: 0.78rem;
  font-weight: 900;
}

.team-copy-row button {
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  font-size: 1rem;
}

.team-invite-card a {
  min-height: 30px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #64748b;
  background: #fbfdff;
  border: 1px solid #d7dee8;
  text-decoration: none;
  font-size: 0.72rem;
  font-weight: 900;
}

.team-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.team-tabs button {
  min-height: 51px;
  border-radius: 12px;
  border: 1px solid #d7dee8;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  color: #64748b;
  background: #fbfdff;
  cursor: pointer;
}

.team-tabs button.is-active {
  color: #fff;
  background: linear-gradient(145deg, #596575, #8f99a6);
  box-shadow: 0 9px 18px rgba(15, 23, 42, 0.16);
}

.team-tabs span {
  font-size: 0.7rem;
  font-weight: 900;
}

.team-tabs strong {
  min-width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #8b95a3;
  background: #eef2f7;
  font-size: 0.64rem;
  font-weight: 900;
}

.team-tabs button.is-active strong {
  color: #596575;
  background: rgba(255,255,255,0.5);
}

.team-members {
  display: none;
  margin: 0 22px;
}

.team-members.is-active {
  display: block;
}

.team-empty {
  min-height: 86px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 18px;
  color: #64748b;
  background: rgba(255,255,255,0.84);
  border: 1px dashed #cbd5e1;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 900;
}

.team-member {
  min-height: 62px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: 14px;
  background: rgba(255,255,255,0.94);
  border: 1px solid #e2e8f0;
  box-shadow: 0 8px 18px rgba(15,23,42,0.08);
}

.team-avatar {
  width: 40px;
  height: 40px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  font-weight: 900;
}

.team-member strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 900;
}

.team-member span {
  display: block;
  margin-top: 2px;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 800;
}

.team-member em {
  color: #0f172a;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
}

.checkin-page {
  padding-top: 8px;
}

.checkin-heading {
  margin-bottom: 18px;
}

.checkin-reward-card {
  min-height: 80px;
  margin: 0 22px 15px;
  padding: 14px 17px;
  border-radius: 16px;
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: 12px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  position: relative;
}

.checkin-reward-card::after {
  content: "";
  position: absolute;
  right: -28px;
  top: -46px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255,255,255,0.09);
}

.checkin-reward-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.3);
  font-size: 1.1rem;
}

.checkin-reward-card small {
  display: block;
  font-size: 0.67rem;
  font-weight: 900;
  text-transform: uppercase;
  opacity: 0.92;
}

.checkin-reward-card strong {
  display: block;
  margin-top: 2px;
  font-size: 1.05rem;
  font-weight: 900;
  position: relative;
  z-index: 1;
}

.checkin-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 0 22px 15px;
}

.checkin-stats article {
  min-height: 56px;
  padding: 12px;
  border-radius: 13px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.checkin-stats small {
  display: block;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 900;
}

.checkin-stats strong {
  display: block;
  margin-top: 5px;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
}

.checkin-week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  margin: 0 22px 17px;
}

.checkin-week div {
  min-height: 50px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 2px;
  color: #64748b;
  background: rgba(255,255,255,0.96);
  border: 1px solid #d7dee8;
  box-shadow: 0 8px 16px rgba(15,23,42,0.06);
}

.checkin-week div.is-today {
  color: #10b981;
  background: rgba(209, 250, 229, 0.7);
  border-color: #6ee7b7;
}

.checkin-week i {
  font-size: 0.76rem;
}

.checkin-week span,
.checkin-week strong {
  font-size: 0.52rem;
  font-weight: 900;
}

.checkin-week strong {
  font-size: 0.64rem;
}

.checkin-status,
.checkin-claim-btn {
  min-height: 46px;
  margin: 0 22px 18px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.94rem;
  font-weight: 900;
}

.checkin-status.is-done {
  color: #10b981;
  background: rgba(209, 250, 229, 0.55);
  border: 1px solid #6ee7b7;
}

.checkin-claim-btn {
  width: calc(100% - 44px);
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #10b981, #6b7280);
  box-shadow: 0 10px 20px rgba(16, 185, 129, 0.16);
  cursor: pointer;
}

.checkin-page .rx-form-alert {
  margin-left: 22px;
  margin-right: 22px;
}

.checkin-recent {
  margin: 0 22px;
  padding: 16px;
  border-radius: 17px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 12px 26px rgba(15,23,42,0.11);
}

.checkin-recent h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.checkin-recent div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 32px;
}

.checkin-recent span {
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 800;
}

.checkin-recent strong {
  color: #059669;
  font-size: 0.78rem;
  font-weight: 900;
}

.rewards-page {
  padding-top: 11px;
}

.rewards-total-card {
  min-height: 65px;
  margin: 0 22px 10px;
  padding: 14px;
  border-radius: 13px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.18);
}

.rewards-total-card small {
  display: block;
  font-size: 0.7rem;
  font-weight: 900;
}

.rewards-total-card strong {
  display: block;
  margin-top: 6px;
  font-size: 1.25rem;
  font-weight: 900;
}

.rewards-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0 22px 16px;
}

.rewards-stats article {
  min-height: 90px;
  border-radius: 13px;
  padding: 13px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.09);
}

.rewards-stats i {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #4b78b9, #8da2c2);
  font-size: 0.78rem;
}

.rewards-stats article:nth-child(2) i { background: #10b981; }
.rewards-stats article:nth-child(3) i { background: linear-gradient(145deg, #4b5563, #8b95a3); }
.rewards-stats article:nth-child(4) i { background: linear-gradient(145deg, #b6913e, #d7bd75); }

.rewards-stats span {
  display: block;
  margin-top: 11px;
  color: #334155;
  font-size: 0.75rem;
  font-weight: 800;
}

.rewards-stats strong {
  display: block;
  margin-top: 4px;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.reward-level-card {
  margin: 0 22px 16px;
  padding: 14px;
  border-radius: 17px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 12px 26px rgba(15,23,42,0.11);
  position: relative;
}

.reward-level-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.reward-status {
  border-radius: 999px;
  padding: 6px 10px;
  color: #4b5563;
  background: #eef2f7;
  font-size: 0.67rem;
  font-weight: 900;
}

.reward-level-card.ready .reward-status,
.reward-level-card.claimed .reward-status {
  color: #059669;
  background: #d1fae5;
}

.reward-fixed {
  min-width: 92px;
  min-height: 52px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #92400e;
  background: #fff7d6;
  border: 1px solid #facc15;
  position: relative;
  text-align: center;
}

.reward-fixed small {
  font-size: 0.61rem;
  font-weight: 900;
  text-transform: uppercase;
}

.reward-fixed strong {
  font-size: 0.86rem;
  font-weight: 900;
}

.reward-fixed > i {
  position: absolute;
  top: -8px;
  right: -7px;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: #cbd5e1;
}

.reward-level-card h2 {
  margin: 0 0 12px;
  color: #0f172a;
  font-size: 0.98rem;
  font-weight: 900;
}

.reward-req-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.reward-req-grid div {
  min-height: 64px;
  border-radius: 9px;
  padding: 10px;
  background: #e5e7eb;
  border: 1px solid #cbd5e1;
}

.reward-req-grid span,
.reward-req-grid small {
  display: block;
  color: #64748b;
  font-size: 0.64rem;
  font-weight: 800;
}

.reward-req-grid strong {
  display: block;
  margin: 5px 0;
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 900;
}

.reward-progress label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 5px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.reward-progress label strong {
  color: #0f172a;
}

.reward-progress div {
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: #e5e7eb;
}

.reward-progress div span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #10b981, #64748b);
}

.reward-action {
  width: 100%;
  min-height: 43px;
  margin-top: 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  color: #a2afc0;
  background: #e5e7eb;
  font-size: 0.92rem;
  font-weight: 900;
}

.reward-action.is-ready {
  border: 0;
  color: #fff;
  background: linear-gradient(145deg, #10b981, #64748b);
  cursor: pointer;
}

.reward-level-card .rx-form-alert {
  margin: 10px 0 0;
}

.profile-page {
  padding-top: 12px;
}

.profile-heading {
  margin-bottom: 14px;
}

.profile-card {
  margin: 0 48px 16px;
  padding: 18px;
  border-radius: 17px;
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(226,232,240,0.95);
  box-shadow: 0 14px 30px rgba(15,23,42,0.11);
}

.profile-user-row,
.profile-password-head {
  display: grid;
  grid-template-columns: 48px 1fr;
  align-items: center;
  gap: 12px;
}

.profile-avatar,
.profile-password-head > i {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: grid;
  place-items: center;
  color: #4b5563;
  background: #eef2f7;
  font-size: 1.2rem;
}

.profile-user-row strong,
.profile-password-head strong {
  display: block;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 900;
}

.profile-user-row span,
.profile-password-head span {
  display: block;
  margin-top: 3px;
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
}

.profile-divider {
  height: 1px;
  margin: 15px 0 14px;
  background: #d7dee8;
}

.profile-input {
  min-height: 37px;
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  padding: 0 10px;
  background: #f8fafc;
}

.profile-input i {
  color: #64748b;
}

.profile-input input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: #0f172a;
  background: transparent;
  font-size: 0.86rem;
  font-weight: 800;
}

.profile-save-btn {
  width: 100%;
  min-height: 42px;
  margin-top: 13px;
  border: 0;
  border-radius: 11px;
  color: #fff;
  background: linear-gradient(145deg, #596575, #9ba4b0);
  box-shadow: 0 10px 20px rgba(15,23,42,0.12);
  font-size: 0.86rem;
  font-weight: 900;
  cursor: pointer;
}

.profile-note {
  margin: 0 48px 16px;
  padding: 14px;
  border-radius: 13px;
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 10px;
  background: rgba(255,255,255,0.7);
  border: 1px solid #d7dee8;
}

.profile-note i {
  color: #4b5563;
  font-size: 1.25rem;
}

.profile-note strong {
  display: block;
  color: #0f172a;
  font-size: 0.86rem;
  font-weight: 900;
}

.profile-note p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.45;
  font-weight: 700;
}

.password-card {
  margin-bottom: 0;
}

.password-card .profile-password-head {
  margin-bottom: 4px;
}

.password-card .rx-form-alert {
  margin-top: 12px;
}

@media (max-width: 430px) {
  .profile-card,
  .profile-note {
    margin-left: 22px;
    margin-right: 22px;
  }
}

@media (min-width: 640px) {
  .shop-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .shop-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 991px) {
  .rx-stats-strip,
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .rx-video-box,
  .rx-video-area { min-height: 300px; }
  .rx-trading-media { height: 300px; }
  .app-shell { grid-template-columns: 1fr; padding-bottom: 5.25rem; }
  .app-sidebar { display: none; }
  .admin-shell {
    display: block;
    width: 100%;
    max-width: none;
    padding: 14px;
  }
  .admin-shell .app-sidebar {
    display: none;
  }
  .admin-mobile-nav {
    position: sticky;
    top: 0;
    z-index: 15;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    margin: -2px 0 14px;
    padding: 8px 2px 10px;
    scrollbar-width: none;
  }
  .admin-mobile-nav::-webkit-scrollbar {
    display: none;
  }
  .admin-mobile-nav a {
    min-height: 42px;
    padding: 0 12px;
    border-radius: 14px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #374151;
    background: rgba(255,255,255,0.94);
    border: 1px solid rgba(75,85,99,0.13);
    box-shadow: 0 8px 18px rgba(15,23,42,0.08);
    text-decoration: none;
    font-size: 0.72rem;
    font-weight: 900;
    white-space: nowrap;
  }
  .admin-mobile-nav a.is-active {
    color: #fff;
    background: linear-gradient(145deg, #4b5563, #8b95a3);
  }
  .admin-shell .app-main {
    gap: 14px;
  }
  .admin-shell .dash-hero {
    min-height: 144px;
    border-radius: 24px;
    padding: 22px 24px;
  }
  .admin-shell .dash-hero h1 {
    font-size: clamp(2rem, 10vw, 2.55rem);
    line-height: 1.04;
  }
  .admin-shell .panel {
    border-radius: 22px;
    padding: 18px;
  }
  .admin-shell .panel-head h2 {
    font-size: clamp(1.45rem, 7vw, 2rem);
    line-height: 1.1;
  }
  .admin-shell .panel-head p {
    font-size: 0.9rem;
    line-height: 1.35;
  }
  .admin-shell .table-wrap {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
  }
  .admin-shell table {
    min-width: 720px;
  }
  .admin-shell th,
  .admin-shell td {
    padding: 0.72rem 0.65rem;
    white-space: nowrap;
  }
  .admin-shell .admin-actions {
    white-space: nowrap;
  }
  .two-col { grid-template-columns: 1fr; }
  .admin-settings-grid,
  .admin-plan-grid { grid-template-columns: 1fr; }
  .bottom-nav {
    position: fixed;
    z-index: 20;
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.35rem;
    padding: 0.45rem;
    border-radius: 1.25rem;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(75,85,99,0.14);
    box-shadow: var(--rx-shadow-md);
    backdrop-filter: blur(16px);
  }
  .bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    padding: 0.5rem;
    border-radius: 0.9rem;
    color: #4b5563;
    text-decoration: none;
    font-size: 0.62rem;
    font-weight: 900;
  }
}

@media (max-width: 390px) {
  .md-phone {
    padding-left: 12px;
    padding-right: 12px;
  }
  .md-topbar {
    margin-left: -12px;
    margin-right: -12px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .md-actions,
  .md-service-grid {
    gap: 8px 6px;
  }
  .md-actions span,
  .md-service-grid span,
  .md-link-grid span {
    font-size: 0.56rem;
  }
}

@media (max-width: 767px) {
  .rx-nav-card {
    border-radius: 22px;
    min-height: 72px;
    padding: 12px;
  }
  .rx-logo-tile {
    width: 50px;
    height: 50px;
    border-radius: 17px;
  }
  .rx-nav-line {
    font-size: 10px;
    letter-spacing: 1.3px;
  }
  .rx-hero-area { padding-top: 2rem; }
  .rx-urdu-line {
    padding: 0.55rem 0.75rem;
    font-size: 0.88rem;
  }
  .rx-hero-buttons {
    gap: 10px;
    margin-bottom: 26px;
  }
  .rx-site-btn,
  .rx-btn {
    min-height: 54px;
    border-radius: 16px;
    font-size: 14px;
  }
  .rx-video-frame {
    padding: 10px;
    border-radius: 26px;
  }
  .rx-video-box {
    min-height: 280px;
    border-radius: 19px;
  }
  .rx-video-topbar {
    height: 52px;
    padding: 0 12px;
    font-size: 12px;
  }
  .rx-video-area { min-height: 280px; }
  .rx-trading-media { height: 280px; }
  .rx-stats-strip { gap: 10px; }
  .rx-stat-box {
    border-radius: 18px;
    padding: 14px 12px;
  }
  .rx-stat-box strong { font-size: 15px; }
  .dash-hero {
    min-height: 10rem;
    align-items: center;
  }
  .dash-hero img {
    width: 58px;
    height: 58px;
    border-radius: 20px;
  }
}
