:root {
  --primary-gold: #D4AF37;
  --rich-gold: #B8941E;
  --deep-red: #8B0000;
  --crimson: #DC143C;
  --light-cream: #FFF8F0;
  --soft-white: #FAFAFA;
  --surface: #FFFFFF;
  --text-primary: #1A1A1A;
  --text-secondary: #666666;
  --text-muted: #999999;
  --divider: rgba(0,0,0,0.06);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
  --shadow-gold: 0 4px 20px rgba(212, 175, 55, 0.25);
  --radius: 16px;
  --radius-sm: 12px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;/* Removes tap highlight on Android WebView */
}


body {
  margin: 0;
  background: var(--light-cream);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Inter', sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--text-primary);
}

.app {
  max-width: 430px;
  margin: auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--soft-white);
}

/* ============ HEADER ============ */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 12px;
  background: linear-gradient(
    to bottom,
    rgba(212, 175, 55, 0.2) 0%,
    rgba(255, 248, 240, 0) 100%
  );
  position: relative;
  z-index: 1;
  border: none;
  box-shadow: none;
}


header h2 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.3px;
}

.app-logo {
  height: 28px;
  width: auto;
  object-fit: contain;
}


.avatar {
  font-size: 24px;
  color: var(--text-muted);
  min-width: 100%;
  text-align: center;
}

.avatar:hover {
    color: var(--deep-red);
}

/* ============ MAIN CONTENT ============ */
main {
  padding: 0 20px 100px;
  flex: 1;
}

/* Welcome Section - Keep as is */
.welcome {
  padding: 8px 0 16px;
}

.welcome h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 4px;
  letter-spacing: -0.5px;
}

.welcome h1 .highlight {
  color: var(--primary-gold);
}

.welcome p {
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0;
}

/* Gold Rate Card - Keep as is, it's perfect */
.gold-rate-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #D4AF37 0%, #F7D794 50%, #D4AF37 100%);
  padding: 24px;
  margin: 16px 0 24px;
  box-shadow: var(--shadow-gold);
}

.gold-rate-card::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle at 100% 0%, rgba(255,255,255,0.3) 0%, transparent 30%);
}

.gold-rate-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 150px;
  height: 150px;
  background: radial-gradient(circle at 0% 100%, rgba(255,255,255,0.2) 0%, transparent 25%);
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 300, "GRAD" 0, "opsz" 24;
  user-select: none;
}

.gold-rate-icon {
  position: absolute;
  right: -24px;
  top: -24px;
  font-size: 120px;
  color: rgba(255, 255, 255, 0.1);
  font-variation-settings: "FILL" 1, "wght" 200;
}

.gold-rate-content {
  position: relative;
  z-index: 1;
}

.rate-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.rate-header .material-symbols-outlined {
  color: white;
  font-size: 20px;
}

.rate-header p {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin: 0;
}

.rate-display {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.rate-amount {
  font-size: 36px;
  font-weight: 800;
  color: white;
  letter-spacing: -0.5px;
}

.rate-unit {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
}

/* ============ REDESIGNED CARDS ============ */
.card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--divider);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
}

.icon-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.icon-btn:hover {
  color: var(--primary-gold);
}

/* Holdings Card - Redesigned for long numbers */
.holdings-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.holding-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.holding-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.holding-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  word-break: break-all;
  line-height: 1.3;
}

.holding-value.currency {
  color: var(--deep-red);
}

.holding-value.gold {
  color: var(--primary-gold);
}

.holding-unit {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-left: 4px;
}

.holdings-divider {
  height: 1px;
  background: var(--divider);
  margin: 4px 0;
}

/* Referral Card - Compact Design */
.referral-content {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ref-code-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--light-cream);
  padding: 16px;
  border-radius: 10px;
  border: 1.5px dashed var(--primary-gold);
}

.ref-code-info {
  flex: 1;
  min-width: 0;
}

.ref-code-info .holding-label {
  margin-bottom: 4px;
}

.ref-code-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary-gold);
  letter-spacing: 1px;
  font-family: 'Courier New', monospace;
}

.ref-actions {
  display: flex;
  gap: 8px;
}

.ref-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--divider);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}

.ref-btn:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: var(--light-cream);
}

.ref-btn i {
  font-size: 16px;
}

/* Active Scheme Card - Improved Layout */
.scheme-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px;
  background: var(--light-cream);
  border-radius: 8px;
}

.stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-all;
  line-height: 1.2;
}

.stat-value.status-active {
  color: #059669;
}

.stat-value.status-complete {
  color: var(--primary-gold);
}


/* Button Styles */
.btn-primary {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--deep-red), var(--crimson));
  color: white;
  border: none;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 0, 0, 0.3);
  letter-spacing: 0.3px;
}

.btn-primary:hover:not(:disabled) {
  background: linear-gradient(135deg, var(--crimson), var(--deep-red));
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 0, 0, 0.4);
}

.btn-primary:active:not(:disabled) {
  transform: translateY(0);
}

.btn-primary:disabled:not(.btn-loading) {
  background: var(--divider);
  color: var(--text-muted);
  cursor: not-allowed;
  box-shadow: none;
}

/* Section Title */
.section-title {
  margin: 24px 0 16px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

/* Scheme Cards - Horizontal Scroll */
.scheme-container-wrapper {
  position: relative;
}

.scheme-container {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 20px 24px;
}

.scheme-container::-webkit-scrollbar {
  display: none;
}

/* Gradient Fades on the Left and Right Edges */
.scheme-container-wrapper::before,
.scheme-container-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  width: 40px;
  height: 100%;
  pointer-events: none;
  z-index: 2;
}

.scheme-container-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--soft-white) 0%, transparent 100%);
}

.scheme-container-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--soft-white) 0%, transparent 100%);
}


.scheme-card {
  min-width: 280px;
  max-width: 85%;
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 20px;
  box-shadow: var(--shadow-md);
  scroll-snap-align: center;
  border: 1px solid var(--divider);
  display: flex;
  flex-direction: column;
}

.scheme-card h3 {
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 12px;
  font-size: 17px;
  letter-spacing: -0.2px;
}

.scheme-card p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.scheme-card .btn-primary {
  margin-top: auto;
}


/* ======== CUSTOM SLIDE-UP MODAL ======== */
.custom-modal {
  position: fixed;
  inset: 0;
  display: none;
  justify-content: center;
  align-items: flex-end;
  z-index: 999;
}

.custom-modal.active {
  display: flex;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(6px);
  transition: opacity 0.3s ease;
  opacity: 0;
}

.custom-modal.active .modal-backdrop {
  opacity: 1;
}

.modal-sheet {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  transition: transform 0.35s ease;
  padding-bottom: env(safe-area-inset-bottom);
}

.custom-modal.active .modal-sheet {
  transform: translateY(0);
}

/* Small top handle (for aesthetics) */
.modal-handle {
  width: 50px;
  height: 5px;
  background: var(--divider);
  border-radius: 10px;
  margin: 10px auto;
}

/* Content styling */
.modal-title {
  text-align: center;
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 6px;
  margin-bottom: 10px;
}

.modal-body {
  padding: 12px 24px 6px;
  text-align: left;
}

.modal-icon {
  font-size: 42px;
  color: var(--primary-gold);
  margin: 0 auto 10px auto;
  text-align: center;
}

.modal-scheme-title {
  text-align: center;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

/* CLEAN SUMMARY ROWS – NO BACKGROUND */
.modal-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  margin: 3px 0;
  font-size: 14px;
  color: var(--text-secondary);
  background: none;
  border: none;
}

/* left label & right bold value */
.modal-info span {
  font-weight: 700;
  color: var(--text-primary);
}

/* dashed divider */
.modal-info.divider {
  padding: 0;
  margin: 10px 0;
  height: 1px;
  border-bottom: 1px dashed var(--divider);
}

/* highlight totals */
.modal-info:nth-last-child(3) span {
  color: var(--deep-red);
}

.modal-info:nth-last-child(2) span {
  color: var(--primary-gold);
  font-size: 18px;
}

.modal-info:last-child span {
  color: var(--primary-gold);
}

body:has(.custom-modal.active) {
  overflow: hidden;
  height: 100vh;
}

/* Footer */
.modal-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 18px 20px 28px;
  border-top: 1px solid var(--divider);
}

.btn-secondary {
  flex: 1;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 10px;
  color: var(--text-secondary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-secondary:hover {
  background: var(--light-cream);
  border-color: var(--primary-gold);
  color: var(--primary-gold);
}

.btn-primary {
  flex: 1;
}




/* ============ FOOTER NAVIGATION ============ */
nav {
  position: fixed;
  bottom: 0;
  width: 100%;
  max-width: 430px;
  background: var(--surface);
  border-top: 1px solid var(--divider);
  padding: 12px 0 max(12px, env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,0.04);
  z-index: 100;
}

.nav-row {
  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 12px;
  transition: all 0.2s;
  letter-spacing: 0.2px;
  text-decoration: none;
}

.nav-item i {
  font-size: 24px;
  transition: all 0.2s;
}

.nav-item:hover {
  color: var(--text-secondary);
}

.nav-active {
  color: var(--crimson) !important;
}

.nav-active i {
  font-variation-settings: "FILL" 1, "wght" 400;
}


/* ============ DATA CARD COMPONENTS  ============ */

/* Filter Card */
/* ============ FLAT FILTER CARD ============ */
.filter-card {
  background: var(--light-cream);
  border: 1px solid var(--divider);
  border-radius: 10px;
  padding: 12px ;
  margin-bottom: 16px;
  box-shadow: none; /* remove elevation */
}

.filter-card form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.filter-card input[type="date"],
.filter-card select {
  flex: 1;
  min-width: 130px;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text-primary);
}

.filter-card input:focus,
.filter-card select:focus {
  border-color: var(--primary-gold);
  outline: none;
}

.filter-group {
  width: 100%;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none; /* hide scrollbar on Firefox */
  -ms-overflow-style: none; /* hide scrollbar on Edge */
}

.filter-group::-webkit-scrollbar {
  display: none; /* hide scrollbar on WebKit */
}

.filter-group input,
.filter-group select {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--divider);
  background: var(--light-cream);
  font-size: 14px;
  color: var(--text-primary);
}

.btn-filter {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}



/* ============ ACTIVE SCHEME SUMMARY (Balanced Final) ============ */
.data-card {
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: var(--radius-sm);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-md); /* same as dashboard */
}

.data-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.data-header h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary); /* neutral */
  margin: 0;
  letter-spacing: -0.3px;
}

.data-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 12px;
}

.data-grid > .data-item:last-child:nth-child(odd) {
  grid-column: 1 / -1; /* make it stretch full width */
}


.data-item {
    border-bottom: 1px dashed var(--divider);
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding-bottom: 12px;
}

.data-item:last-child {
  border-bottom: none;
}

.data-label {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}

.data-value {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.data-value strong {
  color: var(--primary-gold);
}

.invoice-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--surface);
  border: 1px solid var(--divider);
  border-radius: 12px;
  padding: 14px 18px;
  margin-top: 20px;
  text-decoration: none;
  box-shadow: var(--shadow-md);
  color: var(--text-primary);
  transition: background 0.2s ease;
}

.invoice-row:hover {
  background: var(--light-cream);
}

.invoice-icon i {
  font-size: 22px;
  color: var(--primary-gold);
}

.invoice-text {
  flex: 1;
  margin-left: 14px;
  font-size: 15px;
  font-weight: 600;
}

.invoice-arrow {
  font-size: 20px;
  color: var(--text-muted);
}




/* ============ FLAT RECORD STYLE FOR TRANSACTION LIST ============ */
.record-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  /*margin-bottom: 80px;*/
}

.record-block {
  background: var(--light-cream);
  border-radius: 10px;
  border: 1px solid var(--divider);
  padding: 16px 14px;
  transition: background 0.2s ease;
}

.record-block:hover {
  background: #fff;
}

.record-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.record-header h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}
.record-header-right {
  display: flex;
  align-items: center;
  gap: 6px;
}

.record-arrow {
  font-size: 18px;
  color: var(--text-muted);
  margin-top: 1px; /* micro-adjust so it aligns perfectly */
}


.record-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
}

.record-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.record-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
}

.record-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.record-separator {
  height: 1px;
  background: var(--divider);
  margin: 6px 0;
}

/* Compact badge for transaction status */
.record-status {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-radius: 5px;
  padding: 3px 7px;
  color: white;
}

.record-status.success {
  background: #059669;
}

.record-status.failed {
  background: #DC2626;
}

.record-status.pending {
  background: #EAB308;
  color: #1A1A1A;
}



/* =================== CLEAN MOBILE PAGINATION =================== */
.pagination-card {
  text-align: center;
  padding: 12px 0 20px;
  border-radius: var(--radius-sm);
  background: transparent;
  box-shadow: none;
  margin: 8px 0 100px;
}

/* Target Laravel <nav> inside pagination */
.pagination-card nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  position: relative;
  z-index: 1;
  background: none;
  border: none;
  box-shadow: none;
}

/* Remove default list styling */
.pagination-card ul {
  list-style: none;
  display: flex;
  gap: 8px;
  margin: 0;
  padding: 0;
}

/* Pagination items */
.pagination-card li {
  display: inline-flex;
}

/* Links and disabled states */
.pagination-card a,
.pagination-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  border-radius: 10px;
  border: 1px solid var(--divider);
  background: var(--surface);
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.25s ease;
}
.pagination-card:hover {
    transform: none;
    box-shadow: none;
}

.pagination-card a:hover {
  background: var(--light-cream);
  color: var(--primary-gold);
  border-color: var(--primary-gold);
}

.pagination-card .active span {
  background: var(--primary-gold);
  color: #fff;
  border-color: var(--primary-gold);
}

.pagination-card .disabled span {
  opacity: 0.5;
  cursor: not-allowed;
}


/* ============ MOBILE LOGIN PAGE ============ */
.login-bg {
  min-height: 100vh;
  padding: 40px 20px;

  /* background: linear-gradient(*/
  /*  to bottom,*/
  /*  rgba(139, 0, 0, 0.15) 0%,*/
  /*  rgba(255, 255, 255, 1) 50%*/
  /*);*/
  
  /*background: #fff6f6;*/

  display: flex;
  justify-content: center;
  align-items: center; 
  flex-direction: column;
}


.login-card {
  width: 100%;
  max-width: 380px;
  background: var(--surface);
  border-radius: 20px;
  padding: 28px 22px;
  margin-top: -30px; /* slight lift */
  /*box-shadow: var(--shadow-md);*/
  box-shadow: 0 8px 32px rgba(139, 0, 0, 0.15); /* soft red glow */
}


.login-logo {
  text-align: center;
  margin-bottom: 20px;
}

.login-logo img {
  height: 50px;
  object-fit: contain;
}


.form-group-m {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.form-group-m label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.form-group-m input {
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--divider);
  background: var(--light-cream);
  font-size: 15px;
  color: var(--text-primary);
}

.form-group-m input:focus {
  border-color: var(--primary-gold);
  outline: none;
}

.login-btn {
  margin-top: 10px;
  padding: 14px;
}

.input-error {
  font-size: 12px;
  color: #DC2626;
  margin-top: 4px;
}

.register-note {
  margin-top: 18px;
  text-align: center;
  font-size: 14px;
  color: var(--text-secondary);
}

.register-note a {
  color: var(--deep-red);
  font-weight: 600;
  text-decoration: none;
}

.otp-resend-box {
  text-align: center;
  margin-top: 10px;
}

.otp-resend-btn {
  background: none;
  border: none;
  color: var(--primary-gold);
  font-weight: 600;
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  opacity: 0.7;
}

.otp-resend-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.otp-resend-btn:not(:disabled):hover {
  opacity: 1;
}


/*===LOGIN FOOTER===*/
.legal-footer {
    width: 100%;
    max-width: 380px;
    margin: 48px auto 0;
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-footer a {
    color: var(--deep-red);
    text-decoration: none;
    font-weight: 600;
}

.legal-footer a:hover {
    color: var(--primary-gold);
}

.legal-footer .sep {
    margin: 0 6px;
    color: var(--text-muted);
}

/* ======== LEGAL PAGES ======== */

.legal-container {
    padding: 20px;
    max-width: 430px;
    margin: auto;
    background: var(--soft-white);
    font-family: inherit;
}

.legal-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 16px;
    letter-spacing: -0.3px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.legal-content strong {
    color: var(--text-primary);
}

.legal-content a {
    color: var(--deep-red);
    font-weight: 600;
    text-decoration: none;
}

.legal-content a:hover {
    color: var(--primary-gold);
}

.legal-back-btn {
    background: none;
    border: none;
    font-size: 15px;
    color: var(--deep-red);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 18px;
}

.legal-back-btn span {
    font-size: 20px;
}






/* ============ RESPONSIVE ADJUSTMENTS ============ */
@media (max-width: 380px) {
  .holdings-grid {
    gap: 12px;
  }
  
  .holding-value {
    font-size: 18px;
  }
  
  .scheme-stats {
    grid-template-columns: 1fr;
  }
  
  .ref-actions {
    flex-direction: column;
    width: 100%;
  }
  
  .ref-btn {
    width: 100%;
  }
}

/* ============ SCROLLBAR STYLING ============ */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

