/* Al-Barakah Trading - Corporate Gold & Dark Blue Theme */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Playfair+Display:wght@700;800&family=Noto+Nastaliq+Urdu:wght@400;500;600;700&display=swap');

:root {
  /* Corporate Gold & Dark Blue Palette */
  --primary: #c9a84c;
  --primary-dark: #a8833a;
  --primary-light: #e8c97a;
  --secondary: #0a1628;
  --secondary-dark: #060e1a;
  --secondary-mid: #112240;
  --accent: #1a73e8;
  --accent-light: #4da3ff;
  --gold: #c9a84c;
  --gold-light: #f5e6b8;
  --gold-bright: #f0d070;
  --dark: #070d1a;
  --dark-2: #0d1b2e;
  --dark-3: #142035;
  --glass: rgba(255,255,255,0.06);
  --glass-border: rgba(201,168,76,0.2);
  --text-light: rgba(255,255,255,0.88);
  --text-muted: rgba(255,255,255,0.5);
  --danger: #ef4444;
  --success: #22c55e;
  --info: #1a73e8;
  --warning: #c9a84c;
  --shadow-gold: 0 0 30px rgba(201,168,76,0.35);
  --shadow-blue: 0 0 30px rgba(26,115,232,0.35);
  --urdu-font: 'Noto Nastaliq Urdu', serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Poppins', sans-serif;
  background: var(--dark);
  color: #fff;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ===== LOADER ===== */
#loader {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #0a0a0a 0%, #064e3b 50%, #0a0a0a 100%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

#loader .loader-logo {
  opacity: 0;
  transform: scale(0.5);
  animation: logoReveal 1.2s cubic-bezier(0.34,1.56,0.64,1) 0.3s forwards;
}

#loader .loader-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 0 30px rgba(245,158,11,0.8));
}

#loader .loader-logo .brand-text {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f59e0b, #fcd34d, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  text-shadow: none;
  letter-spacing: 2px;
  margin-top: 8px;
}

#loader .loader-subtitle {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0;
  animation: fadeInUp 0.8s ease 1.2s forwards;
}

#loader .loader-bar-wrap {
  width: 200px;
  height: 3px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  opacity: 0;
  animation: fadeInUp 0.5s ease 1.5s forwards;
}

#loader .loader-bar {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #fcd34d);
  border-radius: 10px;
  width: 0%;
  animation: loadBar 1.8s ease 1.6s forwards;
}

@keyframes logoReveal {
  to { opacity: 1; transform: scale(1); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(15px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loadBar {
  to { width: 100%; }
}
@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; pointer-events: none; }
}

.loader-hidden {
  animation: fadeOut 0.6s ease forwards !important;
}

/* ===== GLASS CARD ===== */
.glass-card {
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
}

.glass-card-gold {
  background: rgba(245,158,11,0.08);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(245,158,11,0.25);
  border-radius: 20px;
}

/* ===== BUTTONS ===== */
.btn-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #000;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(245,158,11,0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.btn-gold:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(245,158,11,0.6);
}

.btn-green {
  background: linear-gradient(135deg, #10b981, #065f46);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 36px;
  border-radius: 50px;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 20px rgba(16,185,129,0.4);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
}
.btn-green:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(16,185,129,0.6);
}

.btn-outline {
  background: transparent;
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 12px 30px;
  border-radius: 50px;
  border: 2px solid rgba(255,255,255,0.3);
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* ===== FORMS ===== */
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(255,255,255,0.06);
  border: 1.5px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  color: #fff;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
  transition: all 0.3s ease;
  outline: none;
}
.form-input:focus {
  border-color: var(--primary);
  background: rgba(245,158,11,0.06);
  box-shadow: 0 0 0 3px rgba(245,158,11,0.12);
}
.form-input::placeholder { color: rgba(255,255,255,0.35); }

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  margin-bottom: 6px;
}

.input-icon-wrap {
  position: relative;
}
.input-icon-wrap .icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--primary);
  font-size: 1rem;
}
.input-icon-wrap .form-input {
  padding-left: 44px;
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 500;
  background: rgba(10,10,10,0.95);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
}

.bottom-nav .nav-items {
  display: flex;
  justify-content: space-around;
  align-items: center;
  max-width: 500px;
  margin: 0 auto;
}

.bottom-nav .nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  color: rgba(255,255,255,0.45);
  min-width: 60px;
}
.bottom-nav .nav-item.active,
.bottom-nav .nav-item:hover {
  color: var(--primary);
}
.bottom-nav .nav-item .nav-icon {
  font-size: 1.4rem;
  transition: transform 0.3s ease;
  position: relative;
}
.bottom-nav .nav-item.active .nav-icon {
  transform: translateY(-3px);
}
.bottom-nav .nav-item .nav-icon .badge {
  position: absolute;
  top: -5px;
  right: -8px;
  background: var(--danger);
  color: #fff;
  font-size: 0.55rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.bottom-nav .nav-item .nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.3px;
}
.bottom-nav .nav-item.active .nav-label { font-weight: 700; }

.bottom-nav .nav-item .nav-dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.bottom-nav .nav-item.active .nav-dot { opacity: 1; }

/* ===== MODAL ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-box {
  max-width: 420px;
  width: 100%;
  transform: scale(0.85) translateY(30px);
  transition: all 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal-box {
  transform: scale(1) translateY(0);
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--dark); }
::-webkit-scrollbar-thumb { background: var(--primary-dark); border-radius: 10px; }

/* ===== GLOW TEXT ===== */
.glow-text {
  text-shadow: 0 0 20px rgba(245,158,11,0.6), 0 0 40px rgba(245,158,11,0.3);
}
.glow-green {
  text-shadow: 0 0 20px rgba(16,185,129,0.6), 0 0 40px rgba(16,185,129,0.3);
}

/* ===== GRADIENT TEXT ===== */
.grad-text {
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.grad-text-green {
  background: linear-gradient(135deg, #10b981, #6ee7b7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===== STAT CARD ===== */
.stat-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 16px;
  padding: 16px;
  transition: all 0.3s ease;
}
.stat-card:hover {
  border-color: rgba(245,158,11,0.3);
  background: rgba(245,158,11,0.05);
  transform: translateY(-2px);
}

/* ===== PLAN CARD ===== */
.plan-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 24px;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.plan-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.plan-card:hover {
  border-color: rgba(245,158,11,0.35);
  background: rgba(245,158,11,0.06);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.3), 0 0 30px rgba(245,158,11,0.1);
}
.plan-card:hover::before { opacity: 1; }
.plan-card.featured {
  border-color: rgba(245,158,11,0.4);
  background: rgba(245,158,11,0.06);
}
.plan-card.featured::before { opacity: 1; }

/* ===== TRANSACTION ROW ===== */
.tx-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.2s ease;
}
.tx-row:hover { background: rgba(255,255,255,0.06); }

/* ===== BADGE ===== */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-success { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-warning { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-danger  { background: rgba(239,68,68,0.15); color: #ef4444; border: 1px solid rgba(239,68,68,0.3); }
.badge-info    { background: rgba(59,130,246,0.15); color: #3b82f6; border: 1px solid rgba(59,130,246,0.3); }

/* ===== PAGE HEADER ===== */
.page-header {
  background: linear-gradient(135deg, rgba(6,79,70,0.5) 0%, rgba(10,10,10,0.8) 100%);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(20px);
}

/* ===== FLOATING PARTICLES ===== */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: float linear infinite;
  opacity: 0.15;
}
@keyframes float {
  0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.15; }
  90% { opacity: 0.15; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}

/* ===== PULSE RING ===== */
.pulse-ring {
  animation: pulseRing 2s ease-out infinite;
}
@keyframes pulseRing {
  0% { box-shadow: 0 0 0 0 rgba(245,158,11,0.4); }
  70% { box-shadow: 0 0 0 20px rgba(245,158,11,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,158,11,0); }
}

/* ===== ALERTS ===== */
.alert {
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.alert-success { background: rgba(16,185,129,0.1); border: 1px solid rgba(16,185,129,0.3); color: #10b981; }
.alert-danger { background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.3); color: #ef4444; }
.alert-warning { background: rgba(245,158,11,0.1); border: 1px solid rgba(245,158,11,0.3); color: #f59e0b; }
.alert-info { background: rgba(59,130,246,0.1); border: 1px solid rgba(59,130,246,0.3); color: #3b82f6; }

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
  padding: 16px;
  padding-bottom: 90px;
  max-width: 500px;
  margin: 0 auto;
}

/* ===== SECTION TITLE ===== */
.section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  background: linear-gradient(to bottom, #f59e0b, #10b981);
  border-radius: 10px;
  flex-shrink: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
  .btn-gold, .btn-green { padding: 12px 24px; font-size: 0.9rem; }
}

/* ===== ADMIN TABLE ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
}
.admin-table th {
  background: rgba(245,158,11,0.1);
  color: var(--primary);
  padding: 12px 16px;
  text-align: left;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid rgba(245,158,11,0.2);
}
.admin-table td {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.85);
}
.admin-table tr:hover td { background: rgba(255,255,255,0.03); }

/* ===== PROGRESS BAR ===== */
.progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #f59e0b, #10b981);
  border-radius: 10px;
  transition: width 0.5s ease;
}

/* ===== SHIMMER LOADING ===== */
.shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.1) 50%, rgba(255,255,255,0.05) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 8px;
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* ===== TICKER ===== */
.ticker-wrap {
  background: rgba(245,158,11,0.1);
  border: 1px solid rgba(245,158,11,0.2);
  border-radius: 8px;
  padding: 8px 16px;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  animation: ticker 20s linear infinite;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.75);
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}
