/* ==========================================================================
   Istiqomah Profit FX — Tema Forex Bull vs Bear (Overlay Hitam Lebih Pekat)
   ========================================================================== */

:root {
  --bg-base: #050706;
  --bg-elevated: rgba(9, 13, 12, 0.94);
  --bg-card: rgba(11, 16, 15, 0.90);
  --bg-input: rgba(6, 9, 8, 0.94);

  --border-subtle: rgba(16, 185, 129, 0.2);
  --border-strong: rgba(251, 191, 36, 0.3);
  --border-accent: rgba(16, 185, 129, 0.45);
  --border-gold: rgba(251, 191, 36, 0.55);

  --text-main: #f8fafc;
  --text-secondary: #e2e8f0;
  --text-muted: #94a3b8;

  --accent-primary: #10b981;
  --accent-primary-hover: #059669;
  --accent-cyan: #34d399;
  --accent-gold: #fbbf24;
  --accent-emerald: #10b981;
  --accent-rose: #f43f5e;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-card: 0 14px 36px rgba(0, 0, 0, 0.72);
  --shadow-glow: 0 0 30px rgba(16, 185, 129, 0.14);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

body {
  background-color: #050706;
  background-image:
    /* Lapisan hitam transparan dipertebal agar gambar banteng & beruang lebih kalem */
    linear-gradient(
      180deg,
      rgba(5, 7, 6, 0.88) 0%,
      rgba(5, 7, 6, 0.82) 48%,
      rgba(5, 7, 6, 0.94) 100%
    ),
    /* Gradasi gelap sisi kiri & kanan + fokus ke tengah */
    linear-gradient(
      90deg,
      rgba(5, 7, 6, 0.42) 0%,
      rgba(5, 7, 6, 0.78) 50%,
      rgba(5, 7, 6, 0.42) 100%
    ),
    url("/frontend/assets/bull-bear-bg.jpg");
  background-size:
    cover,
    cover,
    cover;
  background-position:
    center,
    center,
    center;
  background-repeat:
    no-repeat,
    no-repeat,
    no-repeat;
  background-attachment: fixed;
  color: var(--text-main);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.55;
  padding: 16px 14px 48px;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

code,
pre,
.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.ipf-wrap {
  max-width: 1180px;
  margin: 0 auto;
}

/* Topbar / Navigasi */
.ipf-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px);
  margin-bottom: 18px;
}

.ipf-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.01em;
}

.ipf-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.24), rgba(251, 191, 36, 0.24));
  border: 1px solid var(--border-gold);
  color: var(--accent-gold);
  font-size: 11px;
  font-weight: 800;
}

.ipf-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ipf-nav-link {
  padding: 7px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-input);
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.ipf-nav-link:hover {
  color: var(--text-main);
  border-color: var(--border-subtle);
}

.ipf-nav-link.active {
  color: var(--accent-cyan);
  border-color: var(--border-accent);
  background: rgba(16, 185, 129, 0.14);
}

.ipf-nav-link.cta {
  color: #04130d;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-gold));
}

/* Badge & Pill */
.ipf-badge-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 700;
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.38);
  color: #6ee7b7;
}

.ipf-dot-live {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}

/* Panel & Kartu */
.ipf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px);
}

.ipf-card-glow {
  background: var(--bg-card);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  backdrop-filter: blur(8px);
}

/* Tombol & Input */
.ipf-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  border: 0;
  background: linear-gradient(135deg, var(--accent-emerald), var(--accent-primary-hover));
  color: #ffffff;
  font-weight: 800;
  font-size: 13.5px;
  cursor: pointer;
  transition: filter 0.18s ease, transform 0.12s ease;
}

.ipf-btn-primary:hover {
  filter: brightness(1.08);
}

.ipf-btn-primary:active {
  transform: translateY(1px);
}

.ipf-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 15px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-main);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease;
}

.ipf-btn-ghost:hover {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
}

.ipf-input,
.ipf-select,
.ipf-textarea {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-strong);
  background: var(--bg-input);
  color: var(--text-main);
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.ipf-input:focus,
.ipf-select:focus,
.ipf-textarea:focus {
  border-color: var(--accent-emerald);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18);
}

/* Scrollbar halus di desktop */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-base);
}

::-webkit-scrollbar-thumb {
  background: rgba(16, 185, 129, 0.28);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(251, 191, 36, 0.45);
}