/* ============================================
   Brikerbox v3 - Custom CSS (from upload)
   Brand-specific styles
   ============================================ */

:root {
    --bs-primary: #0891b2;
    --bs-primary-rgb: 8, 145, 178;
    --bs-indigo: #0e7490;
    --bs-accent: #06b6d4;
    --bs-dark: #111827;
    --bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--bs-body-font-family);
    color: #334155;
    overflow-x: hidden;
    background-color: #f8fafc;
}

/* Typography & Gradients */
.text-gradient {
    background: linear-gradient(135deg, var(--bs-primary), var(--bs-indigo));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
}

/* Navbar Sticky Effect */
.navbar {
    transition: all 0.3s ease;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.navbar.scrolled {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
}

.navbar-brand img {
    transition: all 0.3s ease;
}

.navbar.scrolled .navbar-brand img {
    height: 32px !important;
}

/* Buttons */
.btn-primary {
    background: #0891b2;
    background-color: #0891b2; /* fallback */
    border: none;
    font-weight: 600;
    padding: 0.75rem 1.75rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 14px -2px rgba(8, 145, 178, 0.35);
    transition: all 0.25s ease;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #0e7490 !important;
    border: none !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -4px rgba(8, 145, 178, 0.5);
}

.btn-outline-dark {
    border-radius: 0.5rem;
    padding: 0.75rem 1.75rem;
    font-weight: 600;
    border-width: 2px;
}

/* Hero Background Accents */
.hero-section {
    position: relative;
    padding-top: 110px;
    padding-bottom: 80px;
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
    overflow: hidden;
}

@media (max-width: 991.98px) {
    .hero-section {
        padding-top: 100px;
        padding-bottom: 56px;
    }
}

/* Grid Pattern Background */
.grid-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(#cbd5e1 1px, transparent 1px);
    background-size: 32px 32px;
    opacity: 0.4;
    z-index: 0;
}

/* UI Mockup (Hero Right Side) */
.mockup-container {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-5deg) rotateX(2deg);
    transition: transform 0.5s ease;
}

.mockup-container:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-card {
    background: white;
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.15);
    padding: 0.5rem;
}

.floating-card {
    position: absolute;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border: 1px solid #f1f5f9;
    z-index: 10;
    animation: float 5s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
    100% { transform: translateY(0px); }
}

/* Interactive Tabs (Corporate Solutions) */
.nav-pills-custom .nav-link {
    color: #64748b;
    background-color: transparent;
    font-weight: 600;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    text-align: left;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-bottom: 0.5rem;
}

.nav-pills-custom .nav-link.active {
    color: var(--bs-primary);
    background-color: white;
    border-color: #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.nav-pills-custom .nav-link:hover:not(.active) {
    background-color: #f1f5f9;
}

.tab-icon-box {
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    margin-right: 12px;
    background-color: #f1f5f9;
    transition: all 0.3s;
}

.nav-link.active .tab-icon-box {
    background-color: var(--bs-primary);
    color: white !important;
}

/* Cards & Features */
.feature-card {
    border-radius: 1rem;
    border: 1px solid #e2e8f0;
    background: white;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08);
}

.icon-box {
    width: 56px;
    height: 56px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

/* App Ecosystem Grid */
.app-grid .card {
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    background: #ffffff;
    transition: all 0.2s;
}

.app-grid .card:hover {
    border-color: var(--bs-primary);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

/* AI Section (Dark Mode) */
.ai-section {
    background-color: var(--bs-dark);
    color: white;
    position: relative;
    overflow: hidden;
    border-top: 1px solid #1e293b;
}

.ai-glow {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(8, 145, 178, 0.22) 0%, transparent 70%);
    pointer-events: none;
}

.ai-section h2 {
    color: white;
}

.ai-feature-row {
    padding: 1rem;
    border-radius: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.2s;
}

.ai-feature-row:hover {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.1);
}

/* Terminal/Code Section */
.terminal-box {
    background-color: #1e1e2e;
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid #334155;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.terminal-header {
    background-color: #181825;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #334155;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Grayscale logos */
.grayscale-logos {
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.grayscale-logos > div:hover {
    opacity: 1;
    filter: grayscale(0%);
    color: var(--bs-primary) !important;
}

/* Hover primary effect for footer links */
.hover-primary {
    transition: color 0.2s ease;
}

.hover-primary:hover {
    color: var(--bs-primary) !important;
}

/* Horizontal Corp Tabs Custom Style */
        .corp-tab-btn {
            flex-direction: row !important;
            align-items: flex-start !important;
            padding: 0.75rem 1rem !important;
            border-radius: 0.625rem !important;
            border: 1px solid rgba(0,0,0,0.08) !important;
            background: #fff !important;
            transition: all 0.2s ease;
            text-align: left !important;
            min-height: 60px;
        }
        .corp-tab-btn .tab-icon-box {
            width: 36px; height: 36px;
            min-width: 36px;
            display: flex; align-items: center; justify-content: center;
            border-radius: 0.5rem;
            background: rgba(8, 145, 178,0.08);
            transition: all 0.2s ease;
        }
        .corp-tab-btn .tab-icon-box i { font-size: 1.1rem; }
        .corp-tab-btn.nav-link.active,
        .corp-tab-btn.nav-link.show {
            background: #0891b2 !important;
            border-color: #0891b2 !important;
            color: #fff !important;
            box-shadow: 0 4px 12px rgba(8, 145, 178,0.25);
        }
        .corp-tab-btn.nav-link.active .fw-bold,
        .corp-tab-btn.nav-link.show .fw-bold { color: #fff !important; }
        .corp-tab-btn.nav-link.active .text-muted,
        .corp-tab-btn.nav-link.show .text-muted { color: rgba(255,255,255,0.7) !important; }
        .corp-tab-btn.nav-link.active .tab-icon-box,
        .corp-tab-btn.nav-link.show .tab-icon-box { background: rgba(255,255,255,0.2); }
        .corp-tab-btn.nav-link.active .tab-icon-box i,
        .corp-tab-btn.nav-link.show .tab-icon-box i { color: #fff !important; }
        .corp-tab-btn:hover:not(.active):not(.show) {
            background: #f8f9fa !important;
            border-color: rgba(8, 145, 178,0.3) !important;
        }

        :root {
    --bb-cyan: #0891b2;
    --bb-teal: #0e7490;
    --bb-cyan-soft: rgba(8,145,178,.08);
    --bb-cyan-line: rgba(8,145,178,.25);
    --bb-grad: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    --bb-bg: #f8fafc;
    --bb-card: #ffffff;
    --bb-text: #1e293b;
    --bb-muted: #64748b;
    --bb-border: #e2e8f0;
    --bb-wa: #25d366;
  }
  * { box-sizing: border-box; }
  body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bb-bg);
    color: var(--bb-text);
    margin: 0;
    padding: 0;
    line-height: 1.55;
  }
  /* ---------- HEADER ---------- */
  .bb-header-bar {
    background: var(--bb-grad);
    color: #fff;
    padding: 1.5rem 1rem 1rem;
    box-shadow: 0 4px 14px rgba(8,145,178,.18);
  }
  .bb-header-bar .container { max-width: 1180px; margin: 0 auto; }
  .bb-brand {
    display: flex; align-items: center; gap: .65rem;
    font-weight: 700; font-size: 1.15rem; letter-spacing: .02em;
  }
  .bb-brand .bb-logo-box {
    width: 36px; height: 36px; border-radius: 10px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
  }
  .bb-header-bar h1 {
    font-size: 1.6rem; font-weight: 700; margin: .35rem 0 .15rem;
    letter-spacing: -.01em;
  }
  .bb-header-bar p { margin: 0; opacity: .92; font-size: .95rem; }
  .bb-header-actions {
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    margin-top: .9rem;
  }
  .bb-lang-toggle {
    display: inline-flex; background: rgba(255,255,255,.15);
    border-radius: 999px; padding: .2rem; gap: .15rem;
  }
  .bb-lang-toggle button {
    border: none; background: transparent; color: #fff;
    padding: .35rem .9rem; border-radius: 999px; cursor: pointer;
    font-size: .82rem; font-weight: 600; transition: all .2s;
  }
  .bb-lang-toggle button.active { background: #fff; color: var(--bb-teal); }
  .bb-version-tabs {
    display: inline-flex; gap: .25rem; background: rgba(255,255,255,.12);
    padding: .25rem; border-radius: 14px;
  }
  .bb-version-tabs button {
    border: none; background: transparent; color: #fff;
    padding: .5rem 1rem; border-radius: 10px; cursor: pointer;
    font-size: .85rem; font-weight: 600; transition: all .2s;
    display: flex; align-items: center; gap: .4rem;
  }
  .bb-version-tabs button.active {
    background: #fff; color: var(--bb-teal);
    box-shadow: 0 4px 12px rgba(0,0,0,.15);
  }
  /* ---------- LAYOUT ---------- */
  .bb-main { max-width: 1180px; margin: 0 auto; padding: 2rem 1rem 4rem; }
  .bb-card {
    background: var(--bb-card); border-radius: 18px;
    box-shadow: 0 6px 24px rgba(15,23,42,.06);
    border: 1px solid var(--bb-border); padding: 2rem;
    margin-bottom: 1.5rem;
  }
  .bb-section-title {
    display: flex; align-items: center; gap: .65rem;
    color: var(--bb-teal); font-weight: 700; font-size: 1.2rem;
    margin-bottom: 1.25rem; padding-bottom: .6rem;
    border-bottom: 2px solid var(--bb-cyan-line);
  }
  .bb-section-title .bb-num {
    background: var(--bb-grad); color: #fff;
    width: 32px; height: 32px; border-radius: 10px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: .9rem; font-weight: 700;
  }
  .bb-section-sub {
    color: var(--bb-muted); font-size: .85rem;
    margin-top: -.5rem; margin-bottom: 1.25rem;
  }
  .bb-legend-title { font-size: 1.05rem; font-weight: 600; color: var(--bb-text); margin: 1rem 0 .5rem; }
  .bb-privacy {
    background: #f0fbff; border: 1px dashed #a5f3fc;
    border-radius: 12px; padding: 1rem 1.25rem;
    color: #0e7490; font-size: .9rem; margin-bottom: 1.5rem;
  }
  .bb-privacy .bi { color: var(--bb-cyan); margin-right: .35rem; }
  .bb-privacy strong { color: var(--bb-teal); }
  /* ---------- FORM CONTROLS ---------- */
  .form-label { font-weight: 500; font-size: .9rem; color: var(--bb-text); margin-bottom: .35rem; }
  .form-label .req { color: #ef4444; margin-left: 2px; }
  .form-text { font-size: .78rem; color: var(--bb-muted); margin-top: .2rem; }
  .form-control, .form-select {
    border-radius: 10px; border: 1px solid var(--bb-border);
    padding: .55rem .8rem; font-size: .92rem;
    transition: border-color .2s, box-shadow .2s;
  }
  .form-control:focus, .form-select:focus {
    border-color: var(--bb-cyan); box-shadow: 0 0 0 .2rem rgba(8,145,178,.15);
  }
  .form-check-input { width: 1.1em; height: 1.1em; margin-top: .2em; }
  .form-check-input:checked { background-color: var(--bb-cyan); border-color: var(--bb-cyan); }
  .form-check-label { font-size: .88rem; }
  .bb-check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem .75rem; }
  .bb-check-grid .form-check { margin-bottom: .25rem; }
  /* ---------- TABLES ---------- */
  .bb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .88rem; }
  .bb-table th, .bb-table td { padding: .65rem .75rem; vertical-align: middle; }
  .bb-table thead th {
    background: var(--bb-cyan-soft); color: var(--bb-teal);
    font-weight: 600; text-align: center; font-size: .85rem;
    border-bottom: 2px solid var(--bb-cyan-line);
  }
  .bb-table tbody td { border-bottom: 1px solid var(--bb-border); }
  .bb-table tbody tr:last-child td { border-bottom: none; }
  .bb-table .bb-row-label { font-weight: 500; text-align: left; background: #f8fafc; width: 28%; }
  .bb-table .form-control, .bb-table .form-select { font-size: .85rem; padding: .4rem .55rem; }
  /* ---------- NEW v3 BADGE ---------- */
  .bb-new-badge {
    display: inline-block; background: #fef3c7; color: #92400e;
    border: 1px solid #fde68a; border-radius: 6px;
    padding: 1px 6px; font-size: .68rem; font-weight: 700;
    margin-left: .35rem; vertical-align: middle;
    text-transform: uppercase; letter-spacing: .03em;
  }
  .bb-new-badge.ai { background: #ede9fe; color: #5b21b6; border-color: #c4b5fd; }
  .bb-new-badge.ha { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
  /* ---------- STICKY ACTIONS ---------- */
  .bb-actions-sticky {
    position: sticky; bottom: 0;
    background: rgba(255,255,255,.96); backdrop-filter: blur(8px);
    border-top: 1px solid var(--bb-border);
    padding: .75rem 1rem; margin: 1.5rem -2rem -2rem;
    border-radius: 0 0 18px 18px;
    display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
    z-index: 100;
  }
  .bb-btn {
    border: 1px solid var(--bb-border); background: #fff;
    color: var(--bb-text); padding: .55rem 1rem; border-radius: 10px;
    font-size: .88rem; font-weight: 600; cursor: pointer;
    display: inline-flex; align-items: center; gap: .4rem;
    transition: all .2s;
  }
  .bb-btn:hover { background: #f8fafc; border-color: var(--bb-cyan-line); }
  .bb-btn.primary { background: var(--bb-grad); color: #fff; border: none; }
  .bb-btn.primary:hover { box-shadow: 0 6px 18px rgba(8,145,178,.35); }
  .bb-btn.wa { background: var(--bb-wa); color: #fff; border: none; }
  .bb-btn.wa:hover { background: #1faa51; box-shadow: 0 6px 18px rgba(37,211,102,.35); }
  .bb-btn.ghost { background: transparent; }
  /* ---------- SNACKBAR ---------- */
  .bb-snackbar {
    visibility: hidden; min-width: 240px; max-width: 90vw;
    background: var(--bb-grad); color: #fff; text-align: center;
    border-radius: 10px; padding: 14px 18px;
    position: fixed; z-index: 1080; right: 24px; bottom: 24px;
    font-size: .92rem; opacity: 0; transition: opacity .35s, transform .35s;
    transform: translateY(10px);
  }
  .bb-snackbar.show { visibility: visible; opacity: 1; transform: translateY(0); }
  /* ---------- CAPTCHA ---------- */
  #captcha-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 2000; backdrop-filter: blur(4px);
  }
  #captcha-overlay.hidden { display: none; }
  #captcha-box {
    background: #fff; padding: 2rem 2.25rem; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25); text-align: center;
    max-width: 380px; width: 90%;
  }
  #captcha-box h3 { color: var(--bb-teal); font-size: 1.15rem; margin-bottom: .35rem; }
  #captcha-box p { color: var(--bb-muted); font-size: .85rem; margin-bottom: 1rem; }
  #captcha-canvas { border: 1px solid var(--bb-border); border-radius: 8px; margin-bottom: 1rem; }
  .bb-captcha-refresh {
    background: none; border: none; color: var(--bb-cyan);
    cursor: pointer; font-size: 1rem; margin-left: .25rem;
  }
  /* ---------- WIZARD (Langkah Awal FRQ) ---------- */
  #wiz-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    display: none; align-items: center; justify-content: center;
    z-index: 1990; backdrop-filter: blur(4px); padding: 1rem;
  }
  #wiz-overlay.show { display: flex; }
  #wiz-box {
    background: #fff; border-radius: 18px; width: 100%; max-width: 620px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25);
    padding: 1.75rem 1.9rem 1.5rem; max-height: 92vh; overflow-y: auto;
  }
  .wiz-head { display: flex; gap: .85rem; align-items: flex-start; margin-bottom: 1.25rem; }
  .wiz-head .wiz-logo {
    width: 42px; height: 42px; min-width: 42px; border-radius: 12px;
    background: var(--bb-grad); color: #fff;
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
  }
  .wiz-head h3 { color: var(--bb-teal); font-size: 1.2rem; font-weight: 700; margin: 0 0 .2rem; }
  .wiz-head p { color: var(--bb-muted); font-size: .86rem; margin: 0; }
  /* stepper */
  .wiz-steps { display: flex; align-items: center; gap: .4rem; margin-bottom: 1.4rem; }
  .wiz-step-dot { display: flex; align-items: center; gap: .4rem; }
  .wiz-step-dot span {
    width: 26px; height: 26px; border-radius: 50%;
    background: #e2e8f0; color: var(--bb-muted);
    display: flex; align-items: center; justify-content: center;
    font-size: .78rem; font-weight: 700; transition: all .25s;
  }
  .wiz-step-dot label { font-size: .78rem; color: var(--bb-muted); font-weight: 600; }
  .wiz-step-dot.active span { background: var(--bb-grad); color: #fff; }
  .wiz-step-dot.active label { color: var(--bb-teal); }
  .wiz-step-dot.done span { background: var(--bb-cyan); color: #fff; }
  .wiz-step-line { flex: 1; height: 2px; background: #e2e8f0; border-radius: 2px; }
  /* panes */
  .wiz-pane { display: none; }
  .wiz-pane.active { display: block; animation: wizFade .25s ease; }
  @keyframes wizFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .wiz-q { font-size: 1rem; font-weight: 700; color: var(--bb-text); margin: 0 0 .9rem; }
  .wiz-opts { display: flex; flex-direction: column; gap: .6rem; }
  .wiz-opt {
    display: flex; align-items: flex-start; gap: .75rem; width: 100%;
    border: 1.5px solid var(--bb-border); background: #fff;
    border-radius: 12px; padding: .85rem 1rem; cursor: pointer;
    text-align: left; transition: all .18s; font-family: inherit;
  }
  .wiz-opt:hover { border-color: var(--bb-cyan); background: #f8fdff; }
  .wiz-opt.selected {
    border-color: var(--bb-teal); background: #f0fbff;
    box-shadow: 0 3px 10px rgba(8,145,178,.13);
  }
  .wiz-opt .wiz-ic {
    width: 36px; height: 36px; min-width: 36px; border-radius: 10px;
    background: rgba(8,145,178,.10); color: var(--bb-teal);
    display: flex; align-items: center; justify-content: center; font-size: 1.05rem;
  }
  .wiz-opt.selected .wiz-ic { background: var(--bb-grad); color: #fff; }
  .wiz-opt-t { font-weight: 700; font-size: .93rem; color: var(--bb-text); display: block; }
  .wiz-opt-d { font-size: .8rem; color: var(--bb-muted); display: block; margin-top: .15rem; line-height: 1.45; }
  /* summary */
  .wiz-summary { display: flex; flex-direction: column; gap: .5rem; }
  .wiz-sum-row {
    display: flex; justify-content: space-between; gap: 1rem;
    padding: .7rem .9rem; border-radius: 10px; background: var(--bb-bg);
    border: 1px solid var(--bb-border); font-size: .87rem;
  }
  .wiz-sum-row b { color: var(--bb-teal); font-weight: 600; text-align: right; }
  .wiz-sum-k { color: var(--bb-muted); }
  .wiz-note {
    margin: .9rem 0 0; padding: .75rem .9rem; border-radius: 10px;
    background: #f0fbff; border: 1px dashed #a5f3fc;
    color: #0e7490; font-size: .82rem; line-height: 1.5;
  }
  #wiz-box { position: relative; }
  .wiz-close {
    position: absolute; top: .85rem; right: .85rem;
    width: 36px; height: 36px; border-radius: 10px;
    border: 2px solid #64748b; background: #f1f5f9;
    color: #1e293b; cursor: pointer;
    font-size: 1.5rem; line-height: 1; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    transition: all .18s; box-shadow: 0 1px 3px rgba(15,23,42,.10);
  }
  .wiz-close:hover {
    background: #dc2626; border-color: #dc2626; color: #fff;
    box-shadow: 0 4px 12px rgba(220,38,38,.35);
  }
  .wiz-close:focus-visible { outline: 3px solid rgba(8,145,178,.45); outline-offset: 2px; }
  .wiz-close[hidden] { display: none; }
  .wiz-recall {
    display: flex; gap: .5rem; align-items: flex-start;
    background: #f0fbff; border: 1px dashed #a5f3fc;
    border-radius: 10px; padding: .7rem .85rem; margin-bottom: 1.1rem;
    color: #0e7490; font-size: .82rem; line-height: 1.5;
  }
  .wiz-recall[hidden] { display: none; }
  .wiz-recall .bi { margin-top: .1rem; }
  .wiz-actions { display: flex; justify-content: space-between; gap: .6rem; margin-top: 1.4rem; }
  .wiz-actions .bb-btn:only-child { margin-left: auto; }
  #wiz-back[hidden] { visibility: hidden; }
  /* tombol ubah pilihan di header */
  .bb-wiz-reset {
    border: 1px solid #f59e0b; background: #f59e0b; color: #1f2937;
    padding: .5rem 1rem; border-radius: 10px; cursor: pointer;
    font-size: .82rem; font-weight: 700; transition: all .2s;
    display: inline-flex; align-items: center; gap: .4rem;
    box-shadow: 0 2px 8px rgba(245,158,11,.35);
  }
  .bb-wiz-reset:hover {
    background: #fbbf24; border-color: #fbbf24;
    transform: translateY(-1px); box-shadow: 0 4px 12px rgba(245,158,11,.45);
  }
  .bb-wiz-reset:active { transform: translateY(0); }
  @media (max-width: 575px) {
    #wiz-box { padding: 1.35rem 1.15rem 1.2rem; }
    .wiz-step-dot label { display: none; }
    .wiz-head h3 { font-size: 1.08rem; }
  }
  /* ---------- WHATSAPP MODAL ---------- */
  #wa-modal {
    position: fixed; inset: 0; background: rgba(15,23,42,.55);
    display: none; align-items: center; justify-content: center;
    z-index: 2000; backdrop-filter: blur(4px);
  }
  #wa-modal.show { display: flex; }
  #wa-box {
    background: #fff; padding: 1.75rem 2rem; border-radius: 18px;
    box-shadow: 0 24px 60px rgba(0,0,0,.25); max-width: 460px; width: 90%;
  }
  #wa-box h3 { color: var(--bb-teal); font-size: 1.1rem; margin-bottom: .5rem; }
  #wa-box p { color: var(--bb-muted); font-size: .88rem; margin-bottom: 1rem; }
  #wa-box .form-control { margin-bottom: .65rem; }
  .wa-channel-list { display: flex; flex-direction: column; gap: .5rem; margin: .5rem 0; }
  .wa-channel-list a {
    display: flex; align-items: center; gap: .65rem; text-decoration: none;
    padding: .7rem .85rem; border-radius: 10px; font-weight: 600;
    border: 1px solid var(--bb-border); background: #fff; color: var(--bb-text);
    transition: all .15s;
  }
  .wa-channel-list a:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(15,23,42,.08); }
  .wa-channel-list .ic-wa { background: var(--bb-wa); }
  .wa-channel-list .ic-call { background: var(--bb-cyan); }
  .wa-channel-list .ic-mail { background: #06b6d4; }
  .wa-channel-list .ic-wa, .wa-channel-list .ic-call, .wa-channel-list .ic-mail {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; color: #fff; font-size: .9rem;
  }
  /* ---------- HIDE NON-ACTIVE VERSION ---------- */
  .frq-version-pane { display: none; }
  .frq-version-pane.active { display: block; }
  /* ---------- PRINT ---------- */
  @media print {
    .no-print { display: none !important; }
    .bb-card { box-shadow: none !important; border: none !important; margin: 0 0 1rem 0 !important; padding: 0 !important; }
    body { background: #fff; }
    .bb-actions-sticky { position: static !important; border: none !important; padding: 0 !important; margin: 0 !important; }
    .frq-version-pane { display: none !important; }
    .frq-version-pane.active.print-target { display: block !important; }
    .bb-header-bar { background: #fff !important; color: #1e293b !important; box-shadow: none !important; }
    .bb-header-bar .bb-lang-toggle, .bb-header-bar .bb-version-tabs { display: none !important; }
    .bb-section-title { color: #0e7490 !important; }
    .pdf-page-break { page-break-before: always; padding-top: 1rem; }
  }
  /* ---------- RESPONSIVE ---------- */
  @media (max-width: 768px) {
    .bb-card { padding: 1.25rem; }
    .bb-table { display: block; overflow-x: auto; white-space: nowrap; }
    .bb-header-bar h1 { font-size: 1.25rem; }
    .bb-actions-sticky { margin-left: -1.25rem; margin-right: -1.25rem; padding: .65rem 1.25rem; }
  }
/* ============================================================
   PDF RENDERING — sembunyikan elemen UI saat html2pdf memotret
   halaman, supaya tombol & header tidak ikut masuk ke berkas PDF.
   ============================================================ */
body.pdf-rendering .no-print,
body.pdf-rendering .bb-actions-sticky,
body.pdf-rendering .bb-header-bar,
body.pdf-rendering #snackbar {
  display: none !important;
}
body.pdf-rendering .frq-version-pane.active {
  box-shadow: none !important;
}

/* ---------- MODAL INSTRUKSI PDF SEBELUM KIRIM WHATSAPP ---------- */
#wapdf-modal {
  position: fixed; inset: 0; background: rgba(15,23,42,.55);
  display: none; align-items: center; justify-content: center;
  z-index: 2100; backdrop-filter: blur(4px);
}
#wapdf-modal.show { display: flex; }
#wapdf-box {
  background: #fff; padding: 1.6rem 1.75rem 1.4rem; border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0,0,0,.25); max-width: 480px; width: 90%;
  max-height: 90vh; overflow-y: auto;
}
#wapdf-box h3 {
  color: var(--bb-teal); font-size: 1.08rem; margin-bottom: .5rem;
  display: flex; align-items: center; gap: .5rem;
}
#wapdf-box > p { color: var(--bb-muted); font-size: .88rem; margin-bottom: 1rem; }
.wapdf-steps { list-style: none; padding: 0; margin: 0 0 1rem; }
.wapdf-steps li {
  display: flex; align-items: flex-start; gap: .7rem;
  padding: .6rem .75rem; margin-bottom: .5rem;
  background: #f8fafc; border: 1px solid var(--bb-border); border-radius: 10px;
  font-size: .88rem; line-height: 1.45; color: var(--bb-text);
}
.wapdf-num {
  flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--bb-wa); color: #fff; font-weight: 700; font-size: .78rem;
  display: flex; align-items: center; justify-content: center;
}
.wapdf-note {
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 10px;
  padding: .6rem .75rem; font-size: .82rem; color: #92400e; margin: 0 0 1.1rem;
}
.wapdf-actions { display: flex; gap: .6rem; justify-content: flex-end; flex-wrap: wrap; }
.wapdf-actions .bb-btn { flex: 0 0 auto; }
@media (max-width: 575px) {
  #wapdf-box { padding: 1.3rem 1.1rem 1.15rem; }
  .wapdf-actions .bb-btn { flex: 1 1 100%; justify-content: center; }
}
