/* assets/css/style.css */
/* EarnCash Paytm-Style Mobile-First Design System */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Primary — Paytm Blue Theme */
  --blue-dark: #002970;       /* Deep navy — headings, topbar */
  --blue-mid: #0052cc;        /* Medium blue — buttons, primary actions */
  --blue-light: #00BAF2;      /* Sky blue — accents, active states */
  --blue-gradient: linear-gradient(135deg, #002970 0%, #0052cc 60%, #00BAF2 100%);

  /* Backgrounds */
  --bg-grey: #F5F7FA;         /* Page background */
  --bg-white: #FFFFFF;        /* Card and modal backgrounds */
  --bg-card: #FFFFFF;

  /* Status Colors */
  --success: #00C853;         /* Approved, active, credits */
  --warning: #FFB300;         /* Pending states */
  --danger: #E53935;          /* Rejected, banned, debits */
  --info: #0288D1;            /* Info messages */

  /* Text Colors */
  --text-dark: #1A1A2E;       /* Main text */
  --text-grey: #6B7280;       /* Subtitles, secondary details */
  --text-light: #9CA3AF;      /* Placeholders */
  --text-white: #FFFFFF;

  /* Wallet Card Gradients */
  --wallet-main: linear-gradient(135deg, #00C853, #009624);
  --wallet-deposit: linear-gradient(135deg, #0052cc, #002970);
  --wallet-bonus: linear-gradient(135deg, #FF6F00, #FFB300);
  --wallet-commission: linear-gradient(135deg, #6A0DAD, #9C27B0);

  /* Shadows */
  --shadow-card: 0 4px 20px rgba(0, 41, 112, 0.06);
  --shadow-btn: 0 4px 15px rgba(0, 82, 204, 0.25);

  /* Dimensions & Border Radii */
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-icon: 14px;
  --bottom-nav-height: 65px;
}

/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--bg-grey);
  color: var(--text-dark);
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding-bottom: calc(var(--bottom-nav-height) + 16px);
  position: relative;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.05);
  
  /* Copy protection selection styles */
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Allow input, textarea selection and other elements with class .allow-select */
input, textarea, select, [contenteditable="true"], .allow-select, .allow-select * {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

/* Scrollbar styling */
::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}
::-webkit-scrollbar-track {
  background: var(--bg-grey);
}
::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 4px;
}

/* Layout containers */
.page-content {
  padding: 16px;
}

.page-with-header {
  padding-top: 0;
}

/* TOP HEADER (Blue Gradient Header) */
.top-header {
  background: var(--blue-gradient);
  padding: 40px 20px 24px;
  border-bottom-left-radius: 24px;
  border-bottom-right-radius: 24px;
  position: relative;
  color: white;
}

.top-header-simple {
  background: var(--blue-gradient);
  padding: 40px 16px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  color: white;
}

.top-header-simple .back-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  border: none;
  font-size: 18px;
  transition: background 0.2s;
}

.top-header-simple .back-btn:active {
  background: rgba(255, 255, 255, 0.3);
}

.top-header-simple h1 {
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.header-logo {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: white;
}

.header-logo span {
  color: var(--blue-light);
}

.notif-btn {
  position: relative;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
}

.notif-btn:active {
  background: rgba(255, 255, 255, 0.25);
}

.notif-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--danger);
  color: white;
  font-size: 10px;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--blue-dark);
}

/* BALANCE HERO CARD (Home Page Layout) */
.balance-hero {
  padding: 8px 4px 4px;
}

.balance-greeting {
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  margin-bottom: 2px;
}

.balance-name {
  color: white;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
}

.balance-main-label {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 500;
}

.balance-main-amount {
  color: white;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
  display: flex;
  align-items: baseline;
}

.balance-stats-row {
  display: flex;
  gap: 12px;
}

.balance-stat-pill {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 10px 14px;
  flex: 1;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.balance-stat-pill label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 10px;
  margin-bottom: 2px;
  text-transform: uppercase;
}

.balance-stat-pill span {
  color: white;
  font-size: 15px;
  font-weight: 600;
}

/* 3 Quick action buttons inside balance hero */
.balance-actions {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
  margin-top: 20px;
}

.balance-action-btn {
  background: rgba(255, 255, 255, 0.16);
  border: 1.5px solid rgba(255, 255, 255, 0.15);
  border-radius: 12px;
  padding: 10px;
  text-align: center;
  cursor: pointer;
  color: white;
  transition: all 0.2s;
  text-decoration: none;
}

.balance-action-btn:active {
  background: rgba(255, 255, 255, 0.28);
  transform: translateY(1px);
}

.balance-action-btn i {
  font-size: 22px;
  display: block;
  margin-bottom: 4px;
}

.balance-action-btn span {
  font-size: 11px;
  font-weight: 500;
}

/* QUICK ACTION GRID (Paytm Icon Grid) */
.quick-actions {
  background: white;
  border-radius: var(--radius-card);
  padding: 18px 14px;
  margin: -16px 16px 16px;
  box-shadow: var(--shadow-card);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px 10px;
  position: relative;
  z-index: 10;
}

.action-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s;
}

.action-item:active {
  transform: scale(0.92);
}

.action-icon-box {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-icon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

.action-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-dark);
  text-align: center;
  line-height: 1.3;
}

/* Icon Box Colors (Curated Soft Paytm Style) */
.icon-blue    { background: #E3F2FD; color: #1565C0; }
.icon-green   { background: #E8F5E9; color: #2E7D32; }
.icon-orange  { background: #FFF3E0; color: #E65100; }
.icon-purple  { background: #F3E5F5; color: #6A1B9A; }
.icon-red     { background: #FFEBEE; color: #C62828; }
.icon-teal    { background: #E0F2F1; color: #00695C; }
.icon-pink    { background: #FCE4EC; color: #AD1457; }
.icon-indigo  { background: #E8EAF6; color: #283593; }

/* STANDARD CARD WIDGETS */
.card {
  background: var(--bg-white);
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  border: 1px solid rgba(0, 41, 112, 0.02);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--blue-dark);
}

.card-link {
  font-size: 12px;
  color: var(--blue-mid);
  text-decoration: none;
  font-weight: 600;
}

/* Tab systems */
.tab-container {
  display: flex;
  background: #E2E8F0;
  padding: 4px;
  border-radius: 12px;
  margin-bottom: 16px;
}

.tab-btn {
  flex: 1;
  padding: 10px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-grey);
  border-radius: 9px;
  cursor: pointer;
  border: none;
  background: transparent;
  transition: all 0.2s;
}

.tab-btn.active {
  background: white;
  color: var(--blue-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

/* INVESTMENT PLAN CARD */
.plan-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  border-left: 5px solid var(--blue-mid);
  margin-bottom: 14px;
  border-top: 1px solid rgba(0,0,0,0.01);
  border-right: 1px solid rgba(0,0,0,0.01);
  border-bottom: 1px solid rgba(0,0,0,0.01);
}

.plan-card.plan-gold { border-left-color: #FFB300; }
.plan-card.plan-diamond { border-left-color: #9C27B0; }

.plan-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

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

.plan-price-badge {
  background: var(--blue-gradient);
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.plan-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 16px;
}

.plan-stat {
  background: #F8FAFC;
  border-radius: 10px;
  padding: 8px 12px;
  border: 1px solid #E2E8F0;
}

.plan-stat label {
  display: block;
  font-size: 9px;
  color: var(--text-grey);
  margin-bottom: 2px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.plan-stat span {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-dark);
}

.plan-progress-bar {
  background: #E2E8F0;
  border-radius: 10px;
  height: 8px;
  margin: 12px 0 6px;
  overflow: hidden;
}

.plan-progress-fill {
  background: var(--blue-gradient);
  height: 100%;
  border-radius: 10px;
  transition: width 0.5s ease;
}

.plan-progress-text {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-grey);
  font-weight: 500;
}

/* TASK CARDS */
.task-card {
  background: white;
  border-radius: var(--radius-card);
  padding: 16px;
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  border: 1px solid #E2E8F0;
}

.task-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 8px;
}

.task-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  flex: 1;
  padding-right: 8px;
}

.task-reward {
  font-size: 14px;
  font-weight: 700;
  color: var(--success);
  white-space: nowrap;
}

.task-desc {
  font-size: 12px;
  color: var(--text-grey);
  margin-bottom: 14px;
  line-height: 1.5;
}

.task-actions {
  display: flex;
  gap: 8px;
}

/* WALLET LAYOUT & CARDS */
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.wallet-card {
  border-radius: var(--radius-card);
  padding: 16px;
  color: white;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.wallet-card::after {
  content: '';
  position: absolute;
  top: -24px;
  right: -24px;
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.wallet-card.main       { background: var(--wallet-main); }
.wallet-card.deposit    { background: var(--wallet-deposit); }
.wallet-card.bonus      { background: var(--wallet-bonus); }
.wallet-card.commission { background: var(--wallet-commission); }

.wallet-card-icon {
  font-size: 26px;
  margin-bottom: 8px;
  opacity: 0.9;
  display: inline-block;
}

.wallet-card-label {
  font-size: 10px;
  opacity: 0.85;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.wallet-card-amount {
  font-size: 19px;
  font-weight: 700;
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: var(--radius-btn);
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--blue-gradient);
  color: white;
  box-shadow: var(--shadow-btn);
}
.btn-primary:hover, .btn-primary:focus {
  opacity: 0.95;
}
.btn-primary:active {
  transform: scale(0.98);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--blue-mid);
  color: var(--blue-mid);
}
.btn-outline:active {
  background: rgba(0, 82, 204, 0.05);
}

.btn-success {
  background: var(--success);
  color: white;
}
.btn-success:active {
  transform: scale(0.98);
}

.btn-danger {
  background: var(--danger);
  color: white;
}
.btn-danger:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 12px;
  width: auto;
  border-radius: 8px;
}

.btn-icon {
  background: #E3F2FD;
  color: var(--blue-mid);
  border-radius: 10px;
  padding: 8px;
  border: none;
  cursor: pointer;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:active {
  background: #BBDEFB;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none !important;
}

/* INPUT FORMS */
.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: all 0.2s;
}

.form-control:focus {
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(0, 82, 204, 0.12);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control:disabled {
  background: #F1F5F9;
  color: var(--text-grey);
  cursor: not-allowed;
}

.input-group {
  position: relative;
}

.input-group .form-control {
  padding-left: 42px;
}

.input-group-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-grey);
  font-size: 18px;
  pointer-events: none;
}

/* Upload zone */
.upload-area {
  border: 2px dashed #CBD5E1;
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  cursor: pointer;
  background: #F8FAFC;
  transition: border-color 0.2s, background 0.2s;
}

.upload-area:hover {
  border-color: var(--blue-mid);
  background: #F0F9FF;
}

.upload-area input[type="file"] {
  display: none;
}

.upload-preview-img {
  max-width: 100%;
  max-height: 120px;
  margin-top: 10px;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
}

.upload-details {
  font-size: 11px;
  color: var(--text-grey);
  margin-top: 4px;
}

/* BADGES & STATS */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: capitalize;
}

.badge-pending  { background: #FFF3CD; color: #856404; }
.badge-approved { background: #D1FAE5; color: #065F46; }
.badge-verified { background: #D1FAE5; color: #065F46; }
.badge-rejected { background: #FEE2E2; color: #991B1B; }
.badge-active   { background: #DBEAFE; color: #1D4ED8; }
.badge-expired  { background: #F3F4F6; color: #6B7280; }
.badge-banned   { background: #FEE2E2; color: #991B1B; }

/* BOTTOM TAB NAVIGATION BAR */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 480px;
  background: white;
  display: flex;
  justify-content: space-around;
  align-items: center;
  height: var(--bottom-nav-height);
  border-top: 1px solid #E2E8F0;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.05);
  z-index: 1000;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 4px 0;
  cursor: pointer;
  text-decoration: none;
  flex: 1;
}

.nav-item i {
  font-size: 22px;
  color: var(--text-grey);
  transition: color 0.2s;
}

.nav-item span {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-grey);
  transition: color 0.2s;
}

.nav-item.active i,
.nav-item.active span {
  color: var(--blue-mid);
}

/* Specialized Center Button (Tasks page navigation) */
.nav-center-btn {
  position: relative;
  top: -16px;
  z-index: 1001;
}

.nav-center-btn .nav-icon-big {
  width: 52px;
  height: 52px;
  background: var(--blue-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 82, 204, 0.4);
  color: white;
  font-size: 24px;
  transition: transform 0.2s;
}

.nav-center-btn:active .nav-icon-big {
  transform: scale(0.9);
}

.nav-center-btn span {
  position: absolute;
  bottom: -18px;
  width: 100%;
  text-align: center;
}

/* NOTICE / MARQUEE BAR */
.notice-bar {
  background: #FFF8E1;
  border: 1px solid #FFE082;
  border-radius: 10px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  overflow: hidden;
  position: relative;
}

.notice-icon {
  color: #FFB300;
  font-size: 18px;
  flex-shrink: 0;
  background: #FFF8E1;
  position: relative;
  z-index: 5;
  padding-right: 4px;
}

.notice-wrapper {
  overflow: hidden;
  width: 100%;
  display: flex;
}

.notice-text {
  font-size: 12px;
  color: #856404;
  white-space: nowrap;
  font-weight: 500;
  display: inline-block;
  will-change: transform;
}

/* BANNER CAROUSEL */
.banner-carousel {
  border-radius: var(--radius-card);
  overflow: hidden;
  position: relative;
  margin-bottom: 16px;
  aspect-ratio: 16/6;
  background: #E3F2FD;
  box-shadow: var(--shadow-card);
}

.banner-slide {
  display: none;
  width: 100%;
  height: 100%;
}

.banner-slide.active {
  display: block;
}

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

.banner-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 5;
}

.banner-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.2s;
}

.banner-dot.active {
  background: white;
  width: 16px;
  border-radius: 3px;
}

/* TOAST NOTIFICATION STYLING */
#toast-container {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  width: calc(100% - 32px);
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: white;
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideDown 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border-left: 5px solid var(--success);
}

.toast.error  { border-left-color: var(--danger); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

.toast-icon {
  font-size: 20px;
}

.toast-text {
  font-size: 13px;
  font-weight: 600;
  flex: 1;
  color: var(--text-dark);
}

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

/* MODAL / SHEET LAYOUT */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal-box {
  background: white;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  padding: 20px 20px 30px;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
}

.modal-overlay.open .modal-box {
  transform: translateY(0);
}

.modal-handle {
  width: 40px;
  height: 4px;
  background: #E2E8F0;
  border-radius: 2px;
  margin: 0 auto 16px;
}

.modal-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 16px;
  text-align: center;
  color: var(--blue-dark);
}

.modal-body {
  margin-bottom: 20px;
}

.modal-footer {
  display: flex;
  gap: 10px;
}

/* AJAX LOADER SPINNER Overlay */
.loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5000;
}

.spinner {
  width: 44px;
  height: 44px;
  border: 4px solid #E3F2FD;
  border-top-color: var(--blue-mid);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* TRANSACTION LIST ITEM (Paytm Style Rows) */
.txn-list {
  display: flex;
  flex-direction: column;
}

.txn-item {
  background: white;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #F1F5F9;
  transition: background 0.15s;
}

.txn-item:active {
  background: #F8FAFC;
}

.txn-icon-box {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  flex-shrink: 0;
}

.txn-info {
  flex: 1;
}

.txn-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.txn-date {
  font-size: 11px;
  color: var(--text-grey);
}

.txn-amount {
  font-size: 15px;
  font-weight: 700;
  text-align: right;
}

.txn-amount.credit { color: var(--success); }
.txn-amount.debit  { color: var(--danger); }

/* Static Details / Announcements Row */
.announcement-card {
  background: white;
  border-radius: 12px;
  padding: 14px;
  border: 1px solid #E2E8F0;
  margin-bottom: 10px;
}
.announcement-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--blue-dark);
  margin-bottom: 4px;
}
.announcement-body {
  font-size: 12px;
  color: var(--text-grey);
  line-height: 1.4;
}

/* Team Grid Lists */
.team-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 10px;
  margin-bottom: 8px;
}
.team-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dark);
}
.team-date {
  font-size: 10px;
  color: var(--text-grey);
}
.team-commission {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
}

/* Floating WhatsApp / Telegram Support Shortcuts */
.support-shortcuts {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 16px 0;
}
.support-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 20px;
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.support-btn.whatsapp { background: #25D366; }
.support-btn.telegram { background: #0088cc; }

/* OTP Mock Verification Info */
.otp-display-helper {
  background: #EFF6FF;
  border: 1px dashed #3B82F6;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 12px;
  font-size: 12px;
  text-align: center;
  color: #1E40AF;
  font-weight: 600;
}

/* Pagination Styling */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
}
.pagination-btn {
  padding: 6px 12px;
  border: 1px solid #CBD5E1;
  background: white;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
}
.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pagination-info {
  font-size: 12px;
  color: var(--text-grey);
  font-weight: 500;
}

/* System Dark Mode Support - Responsive Futuristic Dark CSS */
@media (prefers-color-scheme: dark) {
  :root {
    --bg-grey: #0F172A;
    --bg-white: #1E293B;
    --bg-card: #1E293B;
    --text-dark: #F8FAFC;
    --text-grey: #94A3B8;
    --text-light: #64748B;
    --shadow-card: 0 4px 20px rgba(0, 0, 0, 0.25);
  }
  
  body {
    background: #0F172A;
    color: #F8FAFC;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.3);
  }

  .card, .admin-section-card {
    background: #1E293B;
    border-color: #334155;
  }

  .form-control, .admin-form-control {
    background: #0F172A !important;
    border-color: #334155 !important;
    color: #F8FAFC !important;
  }

  .form-control:focus, .admin-form-control:focus {
    border-color: var(--blue-light) !important;
  }

  .input-group-icon {
    background: #1E293B !important;
    border-color: #334155 !important;
    color: #94A3B8 !important;
  }

  /* Bottom navigation styling in dark mode */
  .bottom-nav {
    background: #1E293B;
    border-top-color: #334155;
  }
  .nav-item {
    color: #94A3B8;
  }
  .nav-item.active {
    color: var(--blue-light);
  }

  /* Quick-fill items */
  .otp-display-helper {
    background: rgba(59, 130, 246, 0.1);
    color: #60A5FA;
    border-color: #2563EB;
  }

  /* Modals */
  .modal-content {
    background: #1E293B;
    color: #F8FAFC;
  }

  /* Table styles */
  .admin-table th {
    background: #0F172A;
    color: #94A3B8;
    border-bottom-color: #334155;
  }
  .admin-table td {
    border-bottom-color: #334155;
    color: #F8FAFC;
  }

  /* Tabs */
  .tab-btn {
    color: #94A3B8;
    border-bottom-color: transparent;
  }
  .tab-btn.active {
    color: var(--blue-light);
    border-bottom-color: var(--blue-light);
  }

  /* Pagination button */
  .pagination-btn {
    background: #1E293B;
    border-color: #334155;
    color: #F8FAFC;
  }
}
