/* =============================================
   VIC Investment — Premium Fintech UI
   ============================================= */

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

:root {
  --primary:      #1a3a6b;
  --primary-dark: #0f2347;
  --primary-light:#2455a0;
  --gold:         #c9a84c;
  --gold-light:   #f0d98b;
  --cyan:         #2176ae;
  --text-dark:    #0f1923;
  --text-mid:     #4a5568;
  --text-gray:    #8a97a8;
  --border:       #e2e8f0;
  --border-light: #f1f5f9;
  --red:          #c0392b;
  --green:        #0d9e6e;
  --bg:           #f0f4f8;
  --card-bg:      #ffffff;
  --warning:      #d4881a;
  --danger:       #c0392b;
  --success:      #0d9e6e;
  --shadow-sm:    0 1px 3px rgba(15,35,71,0.08), 0 1px 2px rgba(15,35,71,0.04);
  --shadow:       0 4px 12px rgba(15,35,71,0.10), 0 2px 4px rgba(15,35,71,0.06);
  --shadow-lg:    0 10px 30px rgba(15,35,71,0.14);
  --radius:       10px;
  --radius-sm:    6px;
  --transition:   0.18s ease;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  -webkit-font-smoothing: antialiased;
}

.app-wrapper {
  width: 100%;
  max-width: 430px;
  min-height: 100vh;
  background: var(--bg);
  position: relative;
  overflow-x: hidden;
  padding-bottom: 68px;
}

/* =============================================
   APP HEADER
   ============================================= */

.app-header {
  background: var(--primary);
  display: flex;
  align-items: center;
  padding: 0 16px;
  height: 54px;
  position: sticky;
  top: 0;
  z-index: 50;
  box-shadow: 0 2px 8px rgba(15,35,71,0.20);
}

.header-back {
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}

.header-back:active { background: rgba(255,255,255,0.12); }

.header-back svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.header-title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.header-action {
  width: 34px; height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

/* =============================================
   BOTTOM TAB BAR
   ============================================= */

.tab-bar {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 430px;
  height: 60px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  z-index: 100;
  box-shadow: 0 -2px 12px rgba(15,35,71,0.08);
}

.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  text-decoration: none;
  padding: 6px 0;
  color: var(--text-gray);
  transition: color var(--transition);
}

.tab-item.active { color: var(--primary); }

.tab-item svg {
  width: 22px; height: 22px;
  fill: none; stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tab-item span {
  font-size: 10px;
  font-weight: 600;
  color: inherit;
  letter-spacing: 0.2px;
}

/* =============================================
   MARQUEE
   ============================================= */

@keyframes marquee {
  from { transform: translateX(100%); }
  to   { transform: translateX(-100%); }
}

.marquee-text {
  display: inline-block;
  animation: marquee 22s linear infinite;
  white-space: nowrap;
}

/* =============================================
   FUND CARD
   ============================================= */

.fund-card {
  background: var(--card-bg);
  margin: 0 12px 12px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  border: 1px solid var(--border);
}

.fund-card-img {
  width: 100%;
  height: 175px;
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 100%);
  position: relative;
  overflow: hidden;
}

.fund-card-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,45,0.55) 0%, transparent 50%);
}

.fund-card-img-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 8px 12px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  z-index: 1;
  letter-spacing: 0.5px;
}

.fund-card-body {
  padding: 14px 16px;
}

.fund-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  letter-spacing: -0.1px;
}

.fund-stats-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 12px;
  background: var(--border-light);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.fund-stat-item .stat-val {
  font-size: 17px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

.fund-stat-item .stat-lbl {
  font-size: 10px;
  color: var(--text-gray);
  margin-top: 3px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.fund-scale-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.fund-scale-text {
  font-size: 12px;
  color: var(--text-mid);
  font-weight: 500;
}

.btn-invest {
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  border: none;
  cursor: pointer;
  display: inline-block;
  letter-spacing: 0.3px;
  transition: background var(--transition);
}

.btn-invest:active { background: var(--primary-dark); }

.fund-progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fund-progress-row span {
  font-size: 11px;
  color: var(--text-gray);
  white-space: nowrap;
  font-weight: 600;
}

.progress-wrap {
  flex: 1;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  border-radius: 99px;
}

/* =============================================
   SECTION TITLE
   ============================================= */

.section-title-bar {
  padding: 16px 16px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title-bar .title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-dark);
  border-left: 3px solid var(--gold);
  padding-left: 10px;
  letter-spacing: 0.1px;
}

.section-title-bar a {
  font-size: 12px;
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
}

/* =============================================
   ICON GRID
   ============================================= */

.icon-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  padding: 14px 12px;
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
}

.icon-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  padding: 8px 4px;
  border-radius: var(--radius);
  transition: background var(--transition);
}

.icon-cell:active { background: var(--border-light); }

.icon-circle {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 8px rgba(26,58,107,0.25);
}

.icon-circle svg {
  width: 22px; height: 22px;
  fill: none; stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-label {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-mid);
  text-align: center;
  line-height: 1.3;
}

/* =============================================
   ACCOUNT HERO
   ============================================= */

.account-hero {
  background: linear-gradient(160deg, var(--primary-dark) 0%, var(--primary) 70%, var(--primary-light) 100%);
  padding: 22px 18px 0;
  position: relative;
  overflow: hidden;
}

.account-hero::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.account-hero::after {
  content: '';
  position: absolute;
  bottom: 10px; left: -30px;
  width: 100px; height: 100px;
  background: rgba(255,255,255,0.03);
  border-radius: 50%;
}

.balance-num {
  font-size: 38px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1.5px;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.balance-label {
  color: rgba(255,255,255,0.7);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  margin-top: 5px;
  letter-spacing: 0.5px;
}

.balance-stats {
  display: flex;
  border-top: 1px solid rgba(255,255,255,0.15);
  padding: 14px 0;
  margin-top: 16px;
  position: relative;
  z-index: 1;
}

.balance-stat { flex: 1; text-align: center; }

.balance-stat:first-child {
  border-right: 1px solid rgba(255,255,255,0.15);
}

.balance-stat .bs-num {
  font-size: 19px;
  font-weight: 700;
  color: var(--gold-light);
  letter-spacing: -0.5px;
}

.balance-stat .bs-lbl {
  font-size: 10px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  line-height: 1.4;
  letter-spacing: 0.3px;
}

/* =============================================
   MENU LIST
   ============================================= */

.menu-list {
  background: var(--card-bg);
  margin: 10px 12px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.menu-item {
  display: flex;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  transition: background var(--transition);
}

.menu-item:last-child { border-bottom: none; }
.menu-item:active { background: var(--border-light); }

.menu-icon {
  width: 38px; height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 14px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.menu-icon svg {
  width: 18px; height: 18px;
  fill: none; stroke: #fff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu-title {
  flex: 1;
  font-size: 14px;
  color: var(--text-dark);
  font-weight: 500;
}

.menu-arrow {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--border);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* =============================================
   FINANCE TABLE
   ============================================= */

.finance-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.finance-table th {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  color: var(--text-mid);
  background: var(--border-light);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.finance-table th:nth-child(2) { text-align: right; }
.finance-table th:nth-child(3) { text-align: center; white-space: nowrap; }

.finance-table td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-dark);
  vertical-align: top;
}

.finance-table td:nth-child(2) {
  text-align: right;
  font-weight: 700;
  white-space: nowrap;
}

.finance-table td:nth-child(3) {
  text-align: center;
  color: var(--text-gray);
  font-size: 11px;
  white-space: nowrap;
}

/* =============================================
   DETAIL INFO BOXES
   ============================================= */

.detail-info-boxes {
  display: flex;
  gap: 10px;
  padding: 14px 14px 0;
}

.info-box {
  flex: 1;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.info-label {
  font-size: 11px;
  color: var(--text-gray);
  margin-bottom: 6px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.info-val {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.3px;
}

/* =============================================
   DETAIL TABLE
   ============================================= */

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-table tr { border-bottom: 1px solid var(--border); }
.detail-table tr:last-child { border-bottom: none; }

.detail-table td {
  padding: 12px 14px;
  vertical-align: top;
  line-height: 1.5;
}

.detail-table td:first-child {
  color: var(--text-mid);
  font-size: 12px;
  font-weight: 600;
  width: 45%;
  border-right: 1px solid var(--border);
  background: var(--border-light);
}

.detail-table td:last-child {
  color: var(--text-dark);
  font-size: 13px;
  font-weight: 500;
}

.detail-table td.red-val {
  color: var(--primary);
  font-weight: 700;
}

/* =============================================
   AUTH PAGES
   ============================================= */

.auth-page { min-height: 100vh; }

.auth-top-bar {
  background: var(--primary);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 2px 8px rgba(15,35,71,0.18);
}

.auth-top-bar a {
  width: 32px; height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: #fff;
}

.auth-top-bar a svg {
  width: 20px; height: 20px;
  fill: none; stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-top-bar .title {
  flex: 1;
  text-align: center;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  margin-right: 32px;
  letter-spacing: 0.2px;
}

.auth-body {
  padding: 24px 16px;
  background: var(--card-bg);
}

.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--text-dark);
  outline: none;
  background: var(--card-bg);
  transition: border-color var(--transition), box-shadow var(--transition);
  -webkit-appearance: none;
  font-family: inherit;
}

.form-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,58,107,0.10);
}

.btn-primary {
  display: block;
  width: 100%;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 15px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  margin-top: 8px;
  letter-spacing: 0.3px;
  box-shadow: 0 4px 14px rgba(26,58,107,0.30);
  transition: opacity var(--transition), transform var(--transition);
  font-family: inherit;
}

.btn-primary:active {
  opacity: 0.9;
  transform: scale(0.99);
}

.auth-footer {
  text-align: center;
  font-size: 13px;
  color: var(--text-gray);
  margin-top: 20px;
}

.auth-footer a {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}

.input-with-icon { position: relative; }

.input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px; height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-gray);
}

.input-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--text-gray);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-with-icon .form-input { padding-left: 44px; }

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-gray);
  cursor: pointer;
  padding: 4px;
}

/* =============================================
   PAYMENT PAGES
   ============================================= */

.payment-page { background: var(--bg); min-height: 100vh; }

.payment-form {
  background: var(--card-bg);
  margin: 10px 12px 10px;
  border-radius: var(--radius);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.payment-form h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-mid);
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.bank-info-card {
  background: linear-gradient(135deg, var(--border-light) 0%, #e8f0fb 100%);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 16px;
  border: 1px solid var(--border);
}

.bank-info-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.bank-info-row:last-child { border-bottom: none; }

.bir-label {
  color: var(--text-gray);
  flex-shrink: 0;
  margin-right: 8px;
  font-size: 12px;
  font-weight: 600;
}

.bir-value {
  color: var(--text-dark);
  font-weight: 700;
  text-align: right;
}

.copy-btn {
  display: inline-block;
  margin-left: 8px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 3px 9px;
  font-size: 10px;
  cursor: pointer;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.amount-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.preset-chip {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
  font-weight: 600;
  transition: all var(--transition);
}

.preset-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.upload-area {
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 22px;
  text-align: center;
  margin-bottom: 14px;
  background: var(--border-light);
  transition: border-color var(--transition);
}

.upload-area:hover { border-color: var(--primary); }

.upload-icon { display: block; margin-bottom: 8px; }

.upload-text {
  font-size: 13px;
  color: var(--text-mid);
  font-weight: 600;
}

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

.notice-box {
  display: flex;
  gap: 10px;
  background: #fef9ec;
  border: 1px solid #f5d87a;
  border-radius: var(--radius);
  padding: 12px 14px;
  margin-bottom: 14px;
}

.notice-icon {
  flex-shrink: 0;
  width: 18px; height: 18px;
  display: flex;
  align-items: flex-start;
  padding-top: 2px;
}

.notice-icon svg {
  width: 16px; height: 16px;
  fill: none;
  stroke: var(--warning);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notice-text {
  font-size: 12px;
  color: var(--text-mid);
  line-height: 1.6;
}

.add-bank-btn {
  display: block;
  text-align: center;
  border: 1.5px dashed var(--primary);
  border-radius: var(--radius);
  padding: 13px;
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  margin-bottom: 14px;
  transition: background var(--transition);
}

.add-bank-btn:active { background: var(--border-light); }

/* =============================================
   BADGE
   ============================================= */

.badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.badge-green  { background: rgba(13,158,110,0.10); color: var(--success); }
.badge-warning{ background: rgba(212,136,26,0.12); color: var(--warning); }
.badge-danger { background: rgba(192,57,43,0.10);  color: var(--danger);  }

/* =============================================
   FINANCE ITEMS
   ============================================= */

.finance-item {
  display: flex;
  align-items: center;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--card-bg);
}

.finance-item-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 13px;
  flex-shrink: 0;
}

.finance-item-icon svg {
  width: 18px; height: 18px;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.finance-item-icon.income { background: rgba(13,158,110,0.10); }
.finance-item-icon.income svg { stroke: var(--success); }
.finance-item-icon.expense { background: rgba(192,57,43,0.08); }
.finance-item-icon.expense svg { stroke: var(--danger); }

.finance-item-info { flex: 1; min-width: 0; }

.fi-title {
  font-size: 13px;
  color: var(--text-dark);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fi-date {
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 3px;
  font-weight: 500;
}

.finance-item-amount { text-align: right; flex-shrink: 0; }

.fi-amount {
  display: block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.fi-amount.positive { color: var(--success); }
.fi-amount.negative { color: var(--danger); }

.fi-status {
  display: block;
  font-size: 11px;
  color: var(--text-gray);
  margin-top: 3px;
  font-weight: 500;
}

/* =============================================
   PAYMENT BALANCE CARD
   ============================================= */

.payment-balance-card {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-light) 100%);
  margin: 14px 12px;
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
  box-shadow: 0 6px 20px rgba(15,35,71,0.22);
  position: relative;
  overflow: hidden;
}

.payment-balance-card::before {
  content: '';
  position: absolute;
  top: -30px; right: -30px;
  width: 120px; height: 120px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}

.pbc-label {
  color: rgba(255,255,255,0.7);
  font-size: 11px;
  margin-bottom: 8px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}

.pbc-amount {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -1px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.pbc-sub {
  color: rgba(255,255,255,0.65);
  font-size: 11px;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* =============================================
   MISC UTILITIES
   ============================================= */

.divider {
  text-align: center;
  margin: 18px 0;
  position: relative;
}

.divider::before {
  content: '';
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 1px;
  background: var(--border);
}

.divider span {
  position: relative;
  background: var(--card-bg);
  padding: 0 14px;
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 600;
}

.amount-input {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-dark);
}

.invest-section {
  background: var(--card-bg);
  padding: 16px;
  margin-bottom: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
}

.amount-chip {
  background: var(--card-bg);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--text-mid);
  cursor: pointer;
  user-select: none;
  display: inline-block;
  font-weight: 600;
  transition: all var(--transition);
}

.amount-chip.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

.invest-amount-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.invest-currency {
  position: absolute;
  right: 14px; top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--text-gray);
  font-weight: 700;
  pointer-events: none;
  letter-spacing: 0.5px;
}

/* =============================================
   TOAST NOTIFICATION
   ============================================= */

.toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--primary-dark);
  color: #fff;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.25s, transform 0.25s;
  white-space: nowrap;
  box-shadow: var(--shadow-lg);
  border-left: 3px solid var(--gold);
  letter-spacing: 0.2px;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
