/* ==========================================================================
   VIVO PRIME - Mobile-First Premium Investment ROI Web Application Stylesheet
   Design Authority: Recreated faithfully from reference image
   ========================================================================== */

:root {
  --primary-blue: #0f78de;
  --primary-dark: #095cb0;
  --primary-light: #3aa0e6;
  --secondary-blue: #084e91;
  --ice-blue: #edf5fb;
  --ice-blue-border: #d2e4f5;
  --bg-color: #f3f7fb;
  --card-bg: #ffffff;
  --text-dark: #1a2a3a;
  --text-muted: #748a9e;
  --text-light: #ffffff;
  --success: #20bf6b;
  --warning: #f7b731;
  --danger: #eb3b5a;
  --btn-gradient: linear-gradient(180deg, #44a8eb 0%, #1279cc 100%);
  --btn-gradient-hover: linear-gradient(180deg, #379ee4 0%, #0c6ebd 100%);
  --header-gradient: linear-gradient(135deg, #0f78de 0%, #095cb0 100%);
  --shadow-sm: 0 2px 8px rgba(15, 120, 222, 0.08);
  --shadow-md: 0 6px 18px rgba(15, 120, 222, 0.14);
  --shadow-lg: 0 10px 28px rgba(15, 120, 222, 0.22);
  --btn-shadow: 0 6px 16px rgba(18, 121, 204, 0.38);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 50px;
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  background-color: #e9f0f8;
  color: var(--text-dark);
  font-size: 14px;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* Mobile Screen Wrapper */
.app-container {
  width: 100%;
  max-width: 440px;
  min-height: 100vh;
  background-color: var(--bg-color);
  position: relative;
  box-shadow: 0 0 35px rgba(0, 0, 0, 0.12);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  padding-bottom: 74px; /* Space for bottom navigation */
}

/* Auth Screens (Login / Register) have no bottom navigation padding */
.app-container.auth-container {
  padding-bottom: 25px;
}

/* --------------------------------------------------------------------------
   Top Banners & Headers
   -------------------------------------------------------------------------- */
.auth-banner {
  width: 100%;
  height: 220px;
  background: var(--header-gradient);
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: 10px;
}

.auth-banner-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.95;
}

.auth-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 120, 222, 0.3) 0%, rgba(9, 92, 176, 0.75) 100%);
}

.lang-selector-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  color: var(--primary-dark);
  border-radius: var(--radius-pill);
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.auth-brand-logo {
  position: relative;
  z-index: 5;
  width: 78px;
  height: 78px;
  margin-top: 15px;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.25));
}

.auth-card {
  position: relative;
  z-index: 10;
  background: var(--card-bg);
  border-radius: 28px 28px 0 0;
  margin-top: -28px;
  padding: 26px 20px 30px;
  box-shadow: 0 -8px 25px rgba(0, 0, 0, 0.05);
  flex: 1;
}

/* Auth Nav Tabs (Sign In / Sign Up) */
.auth-tabs {
  display: flex;
  justify-content: center;
  gap: 36px;
  margin-bottom: 24px;
  position: relative;
}

.auth-tab-btn {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-muted);
  text-decoration: none;
  padding-bottom: 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-tab-btn.active {
  color: var(--primary-blue);
}

.auth-tab-btn.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 3px;
  background-color: var(--primary-blue);
  border-radius: 3px;
}

/* --------------------------------------------------------------------------
   Input Fields & Form Controls
   -------------------------------------------------------------------------- */
.input-group-custom {
  background: var(--ice-blue);
  border: 1px solid var(--ice-blue-border);
  border-radius: 25px;
  display: flex;
  align-items: center;
  padding: 4px 16px;
  margin-bottom: 15px;
  transition: all 0.25s ease;
}

.input-group-custom:focus-within {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(58, 160, 230, 0.2);
  background: #ffffff;
}

.input-prefix-icon {
  width: 20px;
  height: 20px;
  margin-right: 10px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.country-code-pill {
  font-weight: 700;
  color: var(--text-dark);
  padding-right: 10px;
  margin-right: 10px;
  border-right: 1.5px solid #c8ddf0;
  font-size: 14px;
  flex-shrink: 0;
}

.input-custom {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
}

.input-custom::placeholder {
  color: #9cb5cc;
  font-size: 13px;
}

.input-suffix-btn {
  background: none;
  border: none;
  color: #8da6bd;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s;
}

.input-suffix-btn:hover {
  color: var(--primary-blue);
}

/* Buttons */
.btn-primary-gradient {
  display: block;
  width: 100%;
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 28px;
  padding: 14px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--btn-shadow);
  transition: all 0.2s ease;
  margin-top: 15px;
}

.btn-primary-gradient:hover {
  background: var(--btn-gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(18, 121, 204, 0.45);
}

.btn-primary-gradient:active {
  transform: translateY(1px);
  box-shadow: 0 4px 10px rgba(18, 121, 204, 0.3);
}

.auth-links {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  font-size: 12px;
}

.auth-link {
  color: var(--primary-blue);
  text-decoration: none;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Home Page Layout
   -------------------------------------------------------------------------- */
.home-banner-wrapper {
  width: 100%;
  height: 195px;
  position: relative;
  overflow: hidden;
  background: var(--header-gradient);
}

.home-banner-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(15, 120, 222, 0.2) 0%, rgba(9, 92, 176, 0.5) 100%);
  display: flex;
  align-items: flex-start;
  padding: 16px;
}

.home-banner-logo {
  height: 38px;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.3));
}

/* 4 Action Buttons Row */
.quick-actions-row {
  display: flex;
  justify-content: space-around;
  align-items: center;
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
  border-radius: 20px;
  margin: -22px 14px 16px;
  padding: 18px 10px;
  box-shadow: 0 10px 25px rgba(15, 120, 222, 0.15), inset 0 1.5px 0 #ffffff;
  border: 1px solid #ddecfa;
  position: relative;
  z-index: 10;
}

.action-btn-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: var(--text-dark);
  gap: 8px;
  width: 24%;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.action-btn-item:hover, .action-btn-item:active {
  transform: translateY(-4px) scale(1.04);
}

.action-icon-circle {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ffffff 0%, #d8ecfe 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #e1f0fd;
  box-shadow: 0 8px 18px rgba(15, 120, 222, 0.24), inset 0 2px 4px #ffffff, inset 0 -3px 5px rgba(15, 120, 222, 0.18);
  transition: all 0.2s ease;
}

.action-icon-circle img {
  width: 30px;
  height: 30px;
  filter: drop-shadow(0 2px 4px rgba(15, 120, 222, 0.3));
}

.action-label {
  font-size: 13px;
  font-weight: 700;
  color: #1a2f44;
  letter-spacing: 0.2px;
}

/* Category Filter Tabs (Daily Income / VIP Income) */
.section-filter-tabs {
  display: flex;
  gap: 12px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.filter-tab-pill {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-weight: 700;
  font-size: 13px;
  border-radius: var(--radius-pill);
  text-decoration: none;
  transition: all 0.2s ease;
}

.filter-tab-pill.active {
  background: var(--btn-gradient);
  color: #ffffff;
  box-shadow: var(--btn-shadow);
}

.filter-tab-pill.inactive {
  background: var(--card-bg);
  color: var(--text-muted);
  border: 1px solid var(--ice-blue-border);
}

/* Package Investment Cards */
.package-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  margin: 0 14px 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid #eef4fb;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.package-card:hover {
  box-shadow: var(--shadow-md);
}

.package-img-header {
  width: 100%;
  height: 155px;
  position: relative;
  background: #f0f6fc;
  overflow: hidden;
}

.package-img-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.package-limit-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(15, 120, 222, 0.88);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
}

.package-body {
  padding: 14px 14px 16px;
}

.package-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.package-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
}

.package-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  background: linear-gradient(145deg, #f4f9fd 0%, #e9f3fc 100%);
  border-radius: 14px;
  padding: 14px 8px;
  margin-bottom: 16px;
  text-align: center;
  border: 1px solid #d4e7f8;
  box-shadow: inset 0 2px 4px rgba(15, 120, 222, 0.06), 0 1px 2px #ffffff;
}

.package-stat-val {
  font-size: 16.5px;
  font-weight: 800;
  color: #0c72b6;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.9);
}

.package-stat-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #617990;
  margin-top: 3px;
}

.package-btn-row {
  display: flex;
  gap: 10px;
  align-items: center;
}

.package-buy-btn {
  flex: 1;
  background: linear-gradient(180deg, #3aa0e6 0%, #157ecc 50%, #095cb0 100%);
  color: #ffffff;
  border: 1px solid #4da9ea;
  border-radius: 28px;
  padding: 13px 20px;
  font-size: 15.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 120, 222, 0.4), inset 0 2px 2px rgba(255,255,255,0.6), inset 0 -2px 4px rgba(0,0,0,0.25);
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.package-buy-btn:hover, .package-buy-btn:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 120, 222, 0.48), inset 0 2px 2px rgba(255,255,255,0.7);
}

.floating-telegram-btn {
  position: fixed;
  right: max(16px, calc(50% - 200px));
  bottom: 85px;
  z-index: 99;
  background: #29b6f6;
  color: #ffffff;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(41, 182, 246, 0.45);
  text-decoration: none;
  transition: transform 0.2s;
}

.floating-telegram-btn:hover {
  transform: scale(1.08);
}

/* --------------------------------------------------------------------------
   Income Page Layout
   -------------------------------------------------------------------------- */
.top-title-bar {
  background: var(--header-gradient);
  color: #ffffff;
  padding: 16px;
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.income-summary-card {
  background: var(--header-gradient);
  border-radius: var(--radius-md);
  margin: 14px;
  padding: 20px 16px;
  color: #ffffff;
  box-shadow: var(--shadow-md);
}

.income-summary-cols {
  display: flex;
  justify-content: space-around;
  margin-bottom: 16px;
}

.income-col {
  text-align: center;
}

.income-col-val {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 3px;
}

.income-col-lbl {
  font-size: 11.5px;
  color: #d1e8fc;
}

.next-income-pill {
  background: rgba(8, 78, 145, 0.65);
  border-radius: 25px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.5px;
}

/* Empty State ("No Plans Yet") */
.no-plans-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 50px 24px;
}

.no-plans-icon {
  width: 90px;
  height: 90px;
  margin-bottom: 18px;
}

.no-plans-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.no-plans-desc {
  font-size: 13px;
  color: var(--text-muted);
  max-width: 260px;
  margin-bottom: 22px;
}

.btn-explore-plans {
  background: var(--btn-gradient);
  color: #ffffff;
  border: none;
  border-radius: 25px;
  padding: 11px 36px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  box-shadow: var(--btn-shadow);
}

/* Transaction List */
.tx-filters-bar {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  padding: 8px 14px;
  scrollbar-width: none;
}

.tx-filters-bar::-webkit-scrollbar {
  display: none;
}

.tx-filter-btn {
  background: #ffffff;
  border: 1px solid var(--ice-blue-border);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
  text-decoration: none;
}

.tx-filter-btn.active {
  background: var(--primary-blue);
  color: #ffffff;
  border-color: var(--primary-blue);
}

.tx-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 14px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.tx-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.tx-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

.tx-amount {
  font-size: 14.5px;
  font-weight: 800;
}

.tx-amount.credit {
  color: var(--success);
}

.tx-amount.debit {
  color: var(--danger);
}

/* --------------------------------------------------------------------------
   Team Page Layout
   -------------------------------------------------------------------------- */
.team-header-card {
  background: var(--header-gradient);
  border-radius: var(--radius-md);
  margin: 14px;
  padding: 18px 16px;
  color: #ffffff;
  display: flex;
  align-items: center;
  box-shadow: var(--shadow-md);
}

.team-logo-col {
  width: 75px;
  flex-shrink: 0;
}

.team-logo-img {
  width: 65px;
  height: 65px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.team-stats-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-left: 14px;
}

.team-stat-box {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.team-stat-lbl {
  font-size: 12px;
  color: #d1e8fc;
}

.team-stat-val {
  font-size: 17px;
  font-weight: 800;
}

/* Level Tabs (LV.1, LV.2, LV.3) */
.team-level-tabs {
  display: flex;
  gap: 10px;
  padding: 0 14px;
  margin-bottom: 14px;
}

.team-level-tab {
  flex: 1;
  background: #ffffff;
  border: 1px solid var(--ice-blue-border);
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;
}

.team-level-tab.active {
  background: #f0f7fe;
  border-color: var(--primary-blue);
  box-shadow: inset 0 0 0 1px var(--primary-blue);
}

.team-lvl-title {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--primary-blue);
}

.team-lvl-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

.team-member-card {
  background: #ffffff;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 14px 10px;
  box-shadow: var(--shadow-sm);
  border: 1px solid #edf4fb;
}

.team-member-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.team-member-phone {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-dark);
}

.team-member-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  background: #eaf5fc;
  color: var(--primary-blue);
}

.team-member-details {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Profile Page Layout
   -------------------------------------------------------------------------- */
.profile-banner-header {
  background: var(--header-gradient);
  padding: 26px 16px 42px;
  color: #ffffff;
  position: relative;
}

.profile-user-info {
  display: flex;
  align-items: center;
  gap: 14px;
}

.profile-avatar-wrap {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #ffffff;
  padding: 3px;
  box-shadow: var(--shadow-sm);
  flex-shrink: 0;
  position: relative;
}

.profile-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.vip-badge-pill {
  position: absolute;
  bottom: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: #ffaa00;
  color: #ffffff;
  font-size: 9px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 8px;
}

.profile-user-texts {
  flex: 1;
}

.profile-phone-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.vip-progress-wrap {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.vip-progress-bar {
  flex: 1;
  height: 5px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 3px;
  overflow: hidden;
}

.vip-progress-fill {
  height: 100%;
  background: #ffffff;
  border-radius: 3px;
}

.vip-progress-text {
  font-size: 10px;
  color: #d1e8fc;
}

/* Balance Summary Card floating over profile header */
.profile-balance-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  margin: -24px 14px 16px;
  padding: 16px 10px;
  box-shadow: var(--shadow-md);
  display: flex;
  justify-content: space-around;
  text-align: center;
  position: relative;
  z-index: 5;
}

.profile-bal-col {
  flex: 1;
}

.profile-bal-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--text-dark);
}

.profile-bal-lbl {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Profile Menu Items — Enhanced 3D Column Cards */
.profile-menu-list {
  background: transparent;
  margin: 0 14px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: none;
}

.profile-menu-item {
  display: flex;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--text-dark);
  background: linear-gradient(145deg, #ffffff 0%, #f4f9fd 100%);
  border: 1.5px solid #dcebfa;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(15, 120, 222, 0.1), inset 0 1.5px 0 #ffffff;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.profile-menu-item:hover, .profile-menu-item:active {
  transform: translateY(-3px) scale(1.01);
  box-shadow: 0 10px 24px rgba(15, 120, 222, 0.18), inset 0 1.5px 0 #ffffff;
  border-color: #badcf8;
}

.profile-menu-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
  border: 1.5px solid #d0e5f9;
  box-shadow: 0 4px 10px rgba(15, 120, 222, 0.22), inset 0 1.5px 2px #ffffff;
  margin-right: 16px;
  color: var(--primary-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.profile-menu-icon svg {
  width: 24px;
  height: 24px;
  filter: drop-shadow(0 2px 3px rgba(15, 120, 222, 0.3));
}

.profile-menu-label {
  flex: 1;
  font-size: 15.5px;
  font-weight: 700;
  color: #1a2f44;
  letter-spacing: 0.2px;
}

.profile-menu-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #eaf3fc;
  color: #0f78de;
  font-size: 17px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 2px #ffffff, 0 2px 6px rgba(15, 120, 222, 0.12);
  border: 1px solid #d4e7f8;
  flex-shrink: 0;
}

/* --------------------------------------------------------------------------
   Popup Modal (Post Login)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(8, 30, 55, 0.65);
  backdrop-filter: blur(6px);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease-out;
}

.modal-backdrop.show {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  width: 100%;
  max-width: 360px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  position: relative;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px) scale(0.96);
  transition: all 0.25s ease-out;
  text-align: center;
}

.modal-backdrop.show .modal-card {
  transform: translateY(0) scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #f0f5fa;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: #7d96ae;
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-logo {
  width: 60px;
  height: 60px;
  margin: 0 auto 8px;
}

.modal-title {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-dark);
}

.modal-badges-row {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 10px 0 16px;
}

.modal-badge-item {
  background: #eef6fd;
  color: var(--primary-blue);
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.modal-deposit-withdraw-grid {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.modal-box {
  flex: 1;
  background: #f8fbfe;
  border: 1px solid var(--ice-blue-border);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.modal-box-lbl {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
}

.modal-box-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-blue);
  margin-top: 2px;
}

.modal-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.8px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-comm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.modal-comm-item {
  background: #f0f7fe;
  border-radius: 10px;
  padding: 8px 4px;
}

.modal-comm-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary-blue);
}

.modal-comm-lvl {
  font-size: 10px;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   Fixed Bottom Navigation Bar
   -------------------------------------------------------------------------- */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 440px;
  height: 74px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid #e2effa;
  display: flex;
  justify-content: space-around;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 -8px 24px rgba(10, 30, 60, 0.08);
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #7b94aa;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  height: 100%;
  gap: 3px;
}

.nav-item svg {
  width: 27px;
  height: 27px;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
  transition: transform 0.2s ease, filter 0.2s ease;
}

.nav-item.active {
  color: #0f78de;
}

.nav-item.active svg {
  color: #0f78de;
  filter: drop-shadow(0 3px 8px rgba(15, 120, 222, 0.45));
  transform: scale(1.12);
}

/* Alerts and feedback messages */
.alert-box {
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
  margin-bottom: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-success {
  background: #e8f8f0;
  color: #128247;
  border: 1px solid #c2ecd6;
}

.alert-error {
  background: #fdeeee;
  color: #c92a2a;
  border: 1px solid #f9cccc;
}
