/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --primary: #1d4ed8;
  --primary-light: #60a5fa;
  --secondary: #3b82f6;
  --gradient: linear-gradient(135deg, #60a5fa, #1d4ed8);
  --bg: #eff6ff;
  --card: #FFFFFF;
  --success: #3b82f6;
  --danger: #EF4444;
  --text-dark: #1e3a8f;
  --text-gray: #6B7280;
  --shadow: 0 4px 20px rgba(29, 78, 216, 0.15);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

@media screen and (max-width: 480px) {
  html {
    font-size: 14px; /* Global zoom-out effect */
  }
}

body {
  font-family: 'Poppins', sans-serif;
  background: #ffffff;
  color: var(--text-dark);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeSpeed;
}

h1,
h2,
h3 {
  font-weight: 700;
}

.main-header {
  background: var(--gradient);
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  position: sticky;
  top: 0;
  z-index: 2000;
  box-shadow: 0 4px 20px rgba(29, 78, 216, 0.15);
}

.main-header .logo-area {
  display: flex;
  align-items: center;
  gap: 10px;
}

.main-header .logo-area i {
  font-size: 24px;
}

.main-header .app-name {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin: 0;
}

.main-header .header-right {
  display: flex;
  align-items: center;
  gap: 15px;
}

.main-header .header-right i {
  font-size: 20px;
  cursor: pointer;
}

/* Auth Pages */
.auth-container {
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: white;
}

.auth-header {
  text-align: center;
  margin-bottom: 40px;
}

.auth-header h1 {
  font-size: 32px;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.auth-card {
  width: 100%;
  background: white;
  padding: 24px;
  border-radius: var(--radius);
}

.auth-card h2 {
  font-size: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.input-group {
  margin-bottom: 20px;
  position: relative;
}

.input-group i {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  font-size: 20px;
}

.input-group .toggle-password {
  position: absolute;
  left: auto;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-gray);
  cursor: pointer;
  font-size: 20px;
}

/* Purchase Page Redesign (Match Screenshot) */
.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #F8FAFC;
}

.order-card-new {
  background: white;
  border-radius: 20px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #F1F5F9;
}

.order-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.order-amount-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.currency-circle {
  width: 44px;
  height: 44px;
  background: #f0fdf4;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  font-size: 18px;
}

.amount-text-main {
  font-size: 18px;
  font-weight: 700;
  color: #052e16;
}

.bank-tag {
  background: #f0fdf4;
  color: var(--primary);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 4px;
  display: inline-block;
}

.order-buy-btn {
  background: #1d4ed8;
  color: white;
  border: none;
  padding: 8px 18px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}

.order-card-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding-top: 8px;
}

.info-col-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 4px;
}

.info-col-value {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  font-weight: 700;
  color: #052e16;
}

.info-col-sub {
  font-size: 11px;
  color: #6B7280;
  font-weight: 500;
}

.coin-icon-small {
  width: 14px;
  height: 14px;
  color: #FBBF24;
}

/* Order Cards */
.order-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
}

.order-card {
  background: white;
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #F1F5F9;
  position: relative;
  transition: transform 0.15s ease;
  will-change: transform;
  contain: layout style;
}

.order-card:active {
  transform: scale(0.95);
}

.order-card .amount {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 8px;
}

.order-card .reward {
  font-size: 13px;
  color: var(--success);
  font-weight: 600;
  margin-bottom: 4px;
}

.order-card .bonus-text {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 12px;
}

.order-card .diamond {
  font-size: 15px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.order-card .qty-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #F3F4F6;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  color: var(--text-gray);
  font-weight: 600;
}

/* UPI Popup */
.upi-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 4000;
}

.upi-popup {
  background: white;
  width: 100%;
  max-width: 500px;
  border-radius: 32px 32px 0 0;
  padding: 24px;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from {
    transform: translateY(100%);
  }

  to {
    transform: translateY(0);
  }
}

.upi-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  border-radius: 16px;
  background: #F8FAFC;
  margin-bottom: 12px;
  cursor: pointer;
  border: 2.5px solid transparent;
  transition: all 0.2s;
}

.upi-item.selected {
  border-color: var(--primary);
  background: #f0fdf4;
}

.upi-item input[type="radio"] {
  width: 22px;
  height: 22px;
  accent-color: var(--primary);
}

.input-field {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 12px;
  padding: 14px 16px 14px 48px;
  font-size: 15px;
  font-family: 'Poppins', sans-serif;
  outline: none;
  transition: all 0.3s;
}

.input-field:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(29, 78, 216, 0.1);
}

.btn-gradient {
  background: var(--gradient);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 600;
  width: 100%;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  transition: transform 0.15s ease, opacity 0.15s ease;
  box-shadow: 0 4px 15px rgba(29, 78, 216, 0.3);
  will-change: transform;
  -webkit-tap-highlight-color: transparent;
}

.btn-gradient:active {
  transform: scale(0.98);
}

.auth-footer {
  margin-top: 24px;
  text-align: center;
  color: var(--text-gray);
  font-size: 14px;
}

.auth-footer a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* Bottom Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 500px;
  height: 60px;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  box-shadow: 0 -4px 20px rgba(29, 78, 216, 0.12);
  z-index: 1000;
  overflow: hidden;
  border-top: 2px solid rgba(29, 78, 216, 0.15);
}

.bottom-nav::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: -25%;
  width: 150%;
  height: 45%;
  background: linear-gradient(0deg, rgba(29, 78, 216, 0.12) 0%, rgba(96, 165, 250, 0) 100%);
  border-radius: 50% 50% 0 0;
  z-index: 0;
  pointer-events: none;
  /* Removed heavy blur + animation for performance */
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  color: var(--text-gray);
  text-decoration: none;
  flex: 1;
  position: relative;
}

.nav-item i {
  font-size: 19px;
}

.nav-item span {
  font-size: 10px;
  font-weight: 500;
}

.nav-item.active {
  color: var(--primary);
}

.nav-item.active i {
  color: var(--primary);
  font-size: 26px;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 10px rgba(29, 78, 216, 0.5);
  transform: translateY(-4px) translateZ(0);
  will-change: transform;
  transition: transform 0.3s ease, font-size 0.3s ease;
}

.nav-item.active::before {
  content: '';
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 40px;
  background: radial-gradient(circle, rgba(29, 78, 216, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 1;
  animation: navGlow 2s infinite alternate;
}

@keyframes navGlow {
  from {
    opacity: 0.5;
    transform: translateX(-50%) scale(0.9);
  }

  to {
    opacity: 1;
    transform: translateX(-50%) scale(1.1);
  }
}

/* Profile Page Styles */
.profile-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  margin: 15px 15px 25px;
  background: white;
  border-radius: 24px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
  width: auto;
  height: auto;
  min-height: 100px;
}

.avatar-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 3px solid #E2E8F0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  object-fit: cover;
}

.balance-card-premium {
  background: linear-gradient(135deg, #1d4ed8, #60a5fa);
  margin: 15px 15px 25px;
  padding: 20px;
  border-radius: 20px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
  width: auto;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.detail-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  backdrop-filter: blur(5px);
}

.today-earnings {
  background: rgba(255, 255, 255, 0.15);
  margin-top: 15px;
  padding: 10px 15px;
  border-radius: 12px;
  font-size: 13px;
  backdrop-filter: blur(10px);
}

.withdraw-section {
  background: linear-gradient(135deg, #1d4ed8 0%, #60a5fa 100%);
  margin: 0 15px 15px;
  padding: 16px 20px;
  border-radius: 24px;
  box-shadow: 0 10px 25px rgba(29, 78, 216, 0.3);
  width: auto;
  min-height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: white;
  position: relative;
}

.withdraw-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.withdraw-label-pill {
  background: rgba(255, 255, 255, 0.15);
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.withdraw-section #pendingWithdraw {
  color: white !important;
}

.withdraw-section .stat-lab {
  color: rgba(255, 255, 255, 0.9) !important;
}

.withdraw-section .stat-val {
  color: white !important;
}

.withdraw-section .withdraw-stats {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.manage-btn {
  background: #f0fdf4;
  color: #1d4ed8;
  border: 1px solid #bbf7d0;
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
}

.withdraw-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  background: #F8FAFC;
  padding: 10px 12px;
  border-radius: 15px;
}

.stat-box {
  text-align: center;
}

.stat-lab {
  font-size: 12px;
  color: #64748B;
  margin-bottom: 4px;
}

.stat-val {
  font-size: 16px;
  font-weight: 700;
  color: #052e16;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  padding: 0 20px;
  margin-bottom: 30px;
}

.grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #052e16;
}

.icon-circle {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-circle img {
  width: 32px;
  height: 32px;
}

.grid-item span {
  font-size: 13px;
  font-weight: 600;
}

.other-functions {
  background: white;
  margin: 0 20px 100px;
  padding: 20px 10px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.func-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  row-gap: 24px;
}

.func-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.func-item img {
  width: 44px;
  height: 44px;
}

.func-item i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.func-item span {
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
  text-align: center;
  line-height: 1.2;
}

/* Team Page Styles */
.team-stats-card {
  background: white;
  margin: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 20px;
  overflow: hidden;
}

.header-stats {
  background: #f0fdf4;
  border-radius: 15px;
  padding: 20px;
  margin-bottom: 20px;
}

.team-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  text-align: center;
}

.big-val {
  font-size: 14px;
  color: #64748B;
  margin-bottom: 5px;
}

.big-num {
  font-size: 22px;
  font-weight: 800;
  color: #052e16;
}

.invite-box {
  background: white;
  margin: 0 20px 20px;
  padding: 20px;
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.copy-input {
  background: #F1F5F9;
  border-radius: 30px;
  padding: 5px 5px 5px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.team-detail-card {
  background: white;
  margin: 0 20px 100px;
  padding: 24px;
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.social-grid {
  display: flex;
  justify-content: space-between;
  padding: 0 10px;
  margin-bottom: 30px;
}

.social-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  color: #64748B;
}

.social-item i {
  font-size: 36px;
}

.tool-fab-container {
  position: relative;
  top: -20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tool-fab {
  width: 48px;
  height: 48px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.4), 0 0 12px rgba(16, 185, 129, 0.3);
  margin-bottom: 4px;
  text-decoration: none;
  filter: drop-shadow(0 0 5px rgba(16, 185, 129, 0.2));
}

/* Layout Parts */
.app-container {
  padding-bottom: 100px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
}

.section-header h2 {
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.section-header .see-all {
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

/* Home Components */
.banner-slider {
  padding: 0 16px;
  margin-bottom: 20px;
}

.banner-card {
  width: 100%;
  height: 140px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.selling-status {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  margin: 0 16px 16px;
  padding: 12px 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  height: 24px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked+.slider {
  background-color: var(--success);
}

input:checked+.slider:before {
  transform: translateX(24px);
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 16px 20px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(8px);
  padding: 12px 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  background: transparent !important;
}

.stat-icon::before {
  content: '';
  position: absolute;
  width: 32px;
  height: 32px;
  background: rgba(16, 185, 129, 0.2);
  border-radius: 50%;
  filter: blur(8px);
  z-index: 0;
}

.stat-icon img,
.stat-icon i {
  position: relative;
  z-index: 1;
}

.purchase-card {
  background: white !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.purchase-card .label {
  color: var(--text-gray) !important;
}

.sell-card {
  background: white !important;
  color: var(--text-dark) !important;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

.sell-card .label {
  color: var(--text-gray) !important;
}

.stat-info .value {
  font-weight: 700;
  font-size: 14px;
}

.stat-info .label {
  font-size: 10px;
  color: var(--text-gray);
}

.reward-card {
  background: linear-gradient(135deg, #3B82F6 0%, #60A5FA 100%);
  box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
  color: white;
  margin: 0 16px 20px;
  padding: 16px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 8px 15px rgba(14, 165, 233, 0.2), 0 0 10px rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.price-card {
  background: linear-gradient(135deg, #c9c494 0%, #aa8c05 100%);
  margin: 0 16px 20px;
  padding: 16px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Tabs */
.tab-bar {
  display: flex;
  background: white;
  position: sticky;
  top: 0;
  z-index: 100;
}

.tab {
  flex: 1;
  padding: 16px;
  text-align: center;
  font-weight: 600;
  color: var(--text-gray);
  cursor: pointer;
  border-bottom: 3px solid transparent;
}

.tab.active {
  color: var(--text-dark);
  border-bottom-color: var(--primary);
}

/* Floating Support */
#supportBtn {
  position: fixed;
  bottom: 110px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: transparent;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  z-index: 100;
  cursor: grab;
  transition: transform 0.2s;
  touch-action: none;
}

#supportBtn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Utils */
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.text-primary {
  color: var(--primary);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

.mt-2 {
  margin-top: 8px;
}

.mb-2 {
  margin-bottom: 8px;
}

/* Loader */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

/* Custom Popup */
.custom-popup {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 24px;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  z-index: 3000;
  width: 90%;
  max-width: 320px;
  text-align: center;
  display: none;
  animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translate(-50%, -60%);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
}

.custom-popup p {
  margin-bottom: 20px;
  font-weight: 500;
  color: var(--text-dark);
}

.custom-popup button {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 10px 30px;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Global Warning Ticker */
.warning-ticker {
  background: white;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 4000;
  position: relative;
  overflow: hidden;
}

.welcome-marquee {
  color: #EF4444;
  /* Red text */
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  display: inline-block;
  padding-left: 100%;
  animation: marquee-scroll 10s linear infinite;
}

@keyframes marquee-scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-100%);
  }
}

.fixed-top-section {
  position: relative;
  width: 100%;
  z-index: 100;
  background: white;
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.scrollable-content {
  padding-bottom: 100px;
  overflow-y: auto;
}

.main-header-new {
  top: 0 !important;
  /* Override previous sticky behavior */
  animation: none !important;
  /* User wants it stable now */
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Splash Screen Loader */
.splash-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, #ffffff 0%, #f5e3fd 100%);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease-out, visibility 0.5s ease-out;
}

.splash-logo-container {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.splash-text {
  font-size: 40px;
  font-weight: 900;
  color: #4c1d95;
  text-shadow: 0 0 10px rgba(76, 29, 149, 0.2);
  animation: textGlow 1.5s ease-in-out infinite alternate;
  margin-bottom: 24px;
  letter-spacing: 2px;
}

.splash-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(76, 29, 149, 0.1);
  border-top: 3px solid #1d4ed8;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  box-shadow: 0 0 15px rgba(76, 29, 149, 0.2);
}

@keyframes textGlow {
  from {
    text-shadow: 0 0 10px rgba(76, 29, 149, 0.3);
  }

  to {
    text-shadow: 0 0 20px rgba(76, 29, 149, 0.6);
  }
}

.splash-hidden {
  opacity: 0;
  visibility: hidden;
}

/* --- NEW HOME DASHBOARD STYLES --- */
.main-header-new {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: white;
  position: sticky;
  top: -60px;
  /* Hidden initially for animation */
  z-index: 2000;
  animation: slideHeaderDown 0.6s ease forwards;
}

@keyframes slideHeaderDown {
  from {
    top: -60px;
  }

  to {
    top: 0;
  }
}

.user-greeting h1 {
  font-size: 20px;
  font-weight: 800;
  color: #052e16;
}

.header-actions {
  display: flex;
  gap: 15px;
  align-items: center;
}

.header-actions i {
  font-size: 18px;
  color: #052e16;
  cursor: pointer;
}

.top-dashboard {
  background: white;
  padding: 10px 20px 20px;
  margin-bottom: 20px;
}

.balance-label {
  font-size: 13px;
  color: #94A3B8;
  font-weight: 500;
  margin-bottom: 5px;
}

.balance-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  position: relative;
}

.balance-main .coin-icon {
  width: 32px;
  height: 32px;
}

.balance-value {
  font-size: 36px;
  font-weight: 800;
  color: #052e16;
}

.bill-details-btn {
  margin-left: auto;
  border: 1px solid #1d4ed8;
  color: #1d4ed8;
  background: white;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.stats-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.stat-box-new {
  background: #eff6ff;
  padding: 12px 15px;
  border-radius: 12px;
}

.stat-box-new .stat-label {
  font-size: 11px;
  color: #64748B;
  font-weight: 500;
  margin-bottom: 8px;
}

.stat-box-new .est {
  color: #94A3B8;
}

.stat-value-container {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 700;
  color: #052e16;
}

.stat-value-container i {
  font-size: 14px;
  color: #052e16;
}

.stat-value-container .currency {
  font-size: 14px;
  margin-right: 2px;
}

.action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 20px;
  margin-bottom: 25px;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.action-icon-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #1d4ed8;
  color: white;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.2);
}

.action-item span {
  font-size: 12px;
  font-weight: 500;
  color: #64748B;
}

.home-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin-bottom: 12px;
}

.home-section-header h2 {
  font-size: 15px;
  font-weight: 800;
  color: #052e16;
}

.home-section-header .learn-how {
  font-size: 11px;
  color: #1d4ed8;
  text-decoration: underline;
}

.home-section-header .go-link {
  font-size: 11px;
  font-weight: 700;
  color: #1d4ed8;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
}

.profit-info-card {
  background: white;
  margin: 0 20px 20px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  text-align: center;
}

.profit-percentage {
  font-size: 32px;
  font-weight: 900;
  color: #1d4ed8;
  font-style: italic;
  margin-bottom: 10px;
  display: block;
}

.profit-text {
  font-size: 14px;
  font-weight: 700;
  color: #052e16;
}

.price-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #F1F5F9;
}

.price-box {
  text-align: center;
}

.price-box:first-child {
  border-right: 1px solid #F1F5F9;
}

.price-label {
  font-size: 10px;
  color: #94A3B8;
  font-weight: 600;
  margin-bottom: 5px;
  display: block;
}

.price-val {
  font-size: 20px;
  font-weight: 900;
  color: #052e16;
}

.more-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 15px;
  padding: 0 20px;
  margin-top: 15px;
}

.more-card {
  background: white;
  padding: 15px;
  border-radius: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02);
}

.more-card i {
  font-size: 28px;
  color: #1d4ed8;
}

/* Animations */
.nav-item i {
  transition: transform 0.3s;
}

.nav-item:active i {
  transform: translateY(-5px);
}

.splash-title-premium {
  animation: fadeInDown 0.8s ease backwards;
}

/* Premium Ticker Styles */
.warning-ticker {
  background: white;
  padding: 10px 18px;
  display: none;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  white-space: nowrap;
  position: relative;
  border-bottom: 1px solid #f1f5f9;
  z-index: 10;
}

.ticker-content {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ticker-icon {
  font-size: 16px;
  flex-shrink: 0;
  color: #EF4444;
  animation: pulseTicker 1.5s infinite;
}

@keyframes pulseTicker {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

.welcome-marquee {
  font-size: 13px;
  font-weight: 600;
  color: #64748B;
}

.ticker-text {
  font-size: 13px;
  font-weight: 800;
  color: #EF4444;
  animation: tickerScroll 20s linear infinite;
  padding-left: 100%;
  display: inline-block;
}

@keyframes tickerScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes marqueeScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}

@keyframes pulse-red {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.7; }
  100% { transform: scale(1); opacity: 1; }
}

/* Premium Animated Loader Overlay */
.loader-overlay.splash-screen {
    background: #FFFFFF !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loader-container-premium {
    position: relative;
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.loader-ring-p {
    position: absolute;
    border-radius: 50%;
    border: 3px solid transparent;
}

.ring-p1 {
    width: 100px;
    height: 100px;
    border-top-color: #1d4ed8;
    animation: rotateRingPremium 1.8s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.ring-p2 {
    width: 80px;
    height: 80px;
    border-top-color: #EC4899;
    animation: rotateRingPremium 1.4s cubic-bezier(0.5, 0, 0.5, 1) infinite reverse;
}

.ring-p3 {
    width: 60px;
    height: 60px;
    border-top-color: #14B8A6;
    animation: rotateRingPremium 1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

@keyframes rotateRingPremium {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.splash-title-premium-new {
    font-size: 32px;
    font-weight: 900;
    color: #052e16;
    letter-spacing: 4px;
    text-transform: uppercase;
    margin-top: 20px;
    animation: premiumTextAnim 2s ease-in-out infinite;
    text-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

@keyframes premiumTextAnim {
    0%, 100% { opacity: 0.6; transform: scale(0.95); letter-spacing: 4px; }
    50% { opacity: 1; transform: scale(1); letter-spacing: 10px; }
}

/* Custom Navigation Bar with Colorful Active/Inactive SVGs */
.bottom-nav {
    background: #ffffff !important;
    display: flex !important;
    justify-content: space-around !important;
    align-items: center !important;
    padding: 10px 0 !important;
    position: fixed !important;
    bottom: 0 !important;
    width: 100% !important;
    max-width: 480px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05) !important;
    z-index: 1000 !important;
    height: 65px !important;
    border-top: 1px solid #F1F5F9 !important;
}

.nav-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-decoration: none !important;
    color: #94A3B8 !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    gap: 4px !important;
    flex: 1 !important;
    position: relative !important;
    transition: color 0.2s ease !important;
}

.nav-item.active {
    color: #4C1D95 !important; /* Active text color - Purple */
}

.nav-item svg {
    margin-bottom: 2px !important;
    transition: transform 0.2s ease, filter 0.2s ease !important;
}

.nav-item:not(.active) svg {
    filter: grayscale(1) opacity(0.4) !important;
}

.nav-item.active svg {
    filter: none !important;
    transform: scale(1.08) !important;
}
