/* ============================================================
   BursaKu — Design System (Corporate Blue / Stock Theme)
   Hijau = Naik (UP) | Merah = Turun (DOWN)
   ============================================================ */

:root {
  --bk-blue: #2563eb;
  --bk-blue-700: #1d4ed8;
  --bk-blue-800: #1e40af;
  --bk-blue-500: #3b82f6;
  --bk-blue-100: #dbeafe;
  --bk-blue-50: #eff6ff;

  --bk-navy: #0b1f3a;
  --bk-navy-2: #13294b;

  --bk-bg: #f2f6fc;
  --bk-card: #ffffff;

  --bk-up: #16a34a;
  --bk-up-bg: #dcfce7;
  --bk-down: #dc2626;
  --bk-down-bg: #fee2e2;

  --bk-text: #0f1b2d;
  --bk-muted: #64748b;
  --bk-border: #e6edf6;

  --bk-radius: 20px;
  --bk-radius-sm: 14px;
  --bk-shadow: 0 10px 30px rgba(15, 31, 58, 0.07);
  --bk-shadow-sm: 0 4px 14px rgba(15, 31, 58, 0.06);

  --bk-gradient: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
  --bk-gradient-soft: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

* { box-sizing: border-box; }

body.bk-body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-color: var(--bk-bg);
  color: var(--bk-text);
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Logo ---------- */
.bk-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.5px;
  color: var(--bk-navy);
}
.bk-logo .bk-mark {
  width: 40px;
  height: 40px;
}
.bk-logo .bk-word {
  line-height: 1;
}
.bk-logo .bk-word small {
  display: block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2px;
  color: var(--bk-blue);
  text-transform: uppercase;
  margin-top: 2px;
}

/* ---------- Buttons ---------- */
.bk-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 16px 20px;
  border: none;
  border-radius: var(--bk-radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  text-decoration: none;
}
.bk-btn:active { transform: scale(0.97); }
.bk-btn-primary {
  background: var(--bk-gradient);
  color: #fff;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.28);
}
.bk-btn-primary:hover { box-shadow: 0 14px 28px rgba(37, 99, 235, 0.36); }
.bk-btn-outline {
  background: #fff;
  color: var(--bk-blue);
  border: 2px solid var(--bk-blue);
}
.bk-btn-ghost {
  background: transparent;
  color: var(--bk-blue);
  border: none;
  box-shadow: none;
  font-weight: 700;
}

/* ---------- Form Fields ---------- */
.bk-field { margin-bottom: 18px; }
.bk-field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--bk-muted);
  margin-bottom: 8px;
  margin-left: 4px;
}
.bk-input {
  width: 100%;
  padding: 16px 18px;
  background: #f8fbff;
  border: 2px solid transparent;
  border-radius: var(--bk-radius-sm);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--bk-text);
  transition: all .25s ease;
}
.bk-input::placeholder { color: #9fb0c7; font-weight: 500; }
.bk-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--bk-blue);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.10);
}

.bk-captcha {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.bk-captcha .bk-captcha-display {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bk-blue-50);
  border: 1px dashed var(--bk-blue-100);
  color: var(--bk-blue-800);
  padding: 12px 18px;
  border-radius: var(--bk-radius-sm);
  font-size: 20px;
  font-weight: 800;
}
.bk-captcha .bk-input { flex: 1; }

/* ---------- Cards ---------- */
.bk-card {
  background: var(--bk-card);
  border-radius: var(--bk-radius);
  box-shadow: var(--bk-shadow);
  border: 1px solid var(--bk-border);
}

/* ---------- Top Bar (mobile app header) ---------- */
.bk-topbar {
  background: var(--bk-gradient);
  color: #fff;
  padding: 22px 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 1000;
}
.bk-topbar .bk-topbar-title {
  font-weight: 800;
  font-size: 17px;
}
.bk-topbar .bk-icon-btn {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  color: #fff; cursor: pointer; border: none;
}
.bk-topbar .bk-icon-btn svg { width: 22px; height: 22px; }

/* ---------- Bottom Navigation ---------- */
.bk-bottom-nav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  height: 70px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 -2px 20px rgba(15, 31, 58, 0.10);
  z-index: 9999;
  padding-bottom: env(safe-area-inset-bottom);
}
.bk-nav-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-decoration: none; color: #9aa9bf;
  transition: .25s; flex: 1;
}
.bk-nav-item .bk-nav-icon { width: 23px; height: 23px; margin-bottom: 4px; }
.bk-nav-item .bk-nav-text { font-size: 11px; font-weight: 600; }
.bk-nav-item.active { color: var(--bk-blue); }
.bk-nav-center { position: relative; top: -14px; }
.bk-center-fab {
  width: 54px; height: 54px;
  background: var(--bk-gradient);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; box-shadow: 0 6px 18px rgba(37,99,235,0.45);
  border: 4px solid #fff;
}

/* ---------- Utility ---------- */
.bk-up { color: var(--bk-up) !important; }
.bk-down { color: var(--bk-down) !important; }
.bk-muted { color: var(--bk-muted) !important; }
.bk-text-center { text-align: center; }
.bk-spacer { height: 80px; }

/* ---------- Loading Overlay ---------- */
.bk-loading {
  position: fixed; inset: 0;
  background: rgba(255,255,255,0.92);
  display: none; align-items: center; justify-content: center;
  z-index: 99999;
}
.bk-spinner {
  width: 42px; height: 42px;
  border: 4px solid #e2e8f0; border-top-color: var(--bk-blue);
  border-radius: 50%; animation: bk-spin 0.9s linear infinite;
}
@keyframes bk-spin { to { transform: rotate(360deg); } }
