/* IB Portal — premium portal styles (navy + gold) */

:root {
    --ibp-navy: #0A1A2F;
    --ibp-navy-2: #10253f;
    --ibp-gold: #d4af37;
    --ibp-gold-2: #f0d878;
    --ibp-green: #0d7a4f;
    --ibp-green-2: #0a5c3c;
    --ibp-ink: #1c2b3a;
    --ibp-muted: #5b6b7c;
    --ibp-line: #e6ebf1;
}

/* ---------- Auth card ---------- */
.ibp-auth-card {
    background: #fff;
    border-radius: 20px;
    max-width: 430px;
    margin: 0 auto;
    padding: 36px 32px 28px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45), 0 4px 18px rgba(0, 0, 0, .25);
    text-align: center;
    color: var(--ibp-ink);
}
.ibp-logo img { max-height: 72px; width: auto; }
.ibp-logo-fallback {
    width: 72px; height: 72px; margin: 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--ibp-gold-2), var(--ibp-gold));
    color: var(--ibp-navy);
    font-size: 38px; font-weight: 800;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 8px 22px rgba(212, 175, 55, .35);
}
.ibp-brand { font-size: 26px; margin: 14px 0 6px; color: var(--ibp-navy); font-weight: 800; }
.ibp-tagline { font-size: 14px; color: var(--ibp-muted); margin: 0 0 20px; line-height: 1.7; }

/* CSS-only tabs */
.ibp-tabs { text-align: left; display: flex; flex-wrap: wrap; }
.ibp-tabs input[type="radio"] { display: none; }
.ibp-tab {
    display: block; width: 50%; box-sizing: border-box;
    text-align: center; padding: 11px 0;
    font-weight: 700; font-size: 15px; color: var(--ibp-muted);
    background: #eef1f6; cursor: pointer;
    transition: all .25s ease;
    margin-bottom: 18px;
}
.ibp-tab:first-of-type { border-radius: 999px 0 0 999px; }
.ibp-tab:last-of-type { border-radius: 0 999px 999px 0; }
#ibp_tab_login:checked ~ label[for="ibp_tab_login"],
#ibp_tab_register:checked ~ label[for="ibp_tab_register"] {
    background: #fff; color: var(--ibp-navy);
    box-shadow: 0 4px 14px rgba(10, 26, 47, .18);
}
.ibp-panels { width: 100%; }
.ibp-panels .ibp-panel { display: none; animation: ibpFade .3s ease; }
#ibp_tab_login:checked ~ .ibp-panels .ibp-panel-login { display: block; }
#ibp_tab_register:checked ~ .ibp-panels .ibp-panel-register { display: block; }
@keyframes ibpFade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ibp-ssl { margin-top: 18px; font-size: 12.5px; color: var(--ibp-muted); }
.ibp-lock { margin-right: 4px; }

/* ---------- Footer ---------- */
.ibp-footer {
    margin-top: 56px;
    background: linear-gradient(160deg, var(--ibp-navy) 0%, var(--ibp-navy-2) 60%, #0b1e36 100%);
    border-top: 3px solid var(--ibp-gold);
    color: #dbe4ee;
    padding: 34px 24px 0;
    border-radius: 18px 18px 0 0;
    position: relative; overflow: hidden;
}
.ibp-footer::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(600px 200px at 20% 0%, rgba(212, 175, 55, .12), transparent 70%);
}
.ibp-helpbar {
    display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: center;
    padding-bottom: 24px; margin-bottom: 26px;
    border-bottom: 1px solid rgba(255, 255, 255, .12);
    position: relative;
}
.ibp-pill {
    display: inline-block; padding: 10px 22px; border-radius: 999px;
    background: linear-gradient(135deg, var(--ibp-gold-2), var(--ibp-gold));
    color: var(--ibp-navy) !important; font-weight: 700; font-size: 14px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(212, 175, 55, .3);
    transition: transform .2s ease, box-shadow .2s ease;
    border: 1px solid rgba(255, 255, 255, .25);
}
.ibp-pill:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(212, 175, 55, .45); }
.ibp-disclosure-link { color: var(--ibp-gold-2) !important; font-weight: 600; font-size: 14px; text-decoration: none; }
.ibp-disclosure-link:hover { text-decoration: underline; }
.ibp-fcols {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
    max-width: 1100px; margin: 0 auto; position: relative;
}
.ibp-fcol h4 { color: var(--ibp-gold-2); font-size: 15px; margin: 0 0 12px; }
.ibp-fcol p { font-size: 13.5px; line-height: 1.8; color: #b9c6d6; margin: 0 0 10px; }
.ibp-fcol ul { list-style: none; margin: 0; padding: 0; }
.ibp-fcol ul li { font-size: 13.5px; line-height: 1.9; color: #b9c6d6; }
.ibp-fbrand { color: #fff !important; font-weight: 800; font-size: 16px !important; }
.ibp-fssl { font-size: 12.5px !important; color: #8fa1b5 !important; }
.ibp-fcol .ibp-logo img { max-height: 54px; }
.ibp-fcol .ibp-logo-fallback { width: 54px; height: 54px; font-size: 28px; margin: 0; }
.ibp-policy-btns { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ibp-policy-btns .ibp-pill { font-size: 13px; padding: 8px 18px; }
.ibp-contact .ibp-ci { margin-right: 6px; }
.ibp-contact a { color: var(--ibp-gold-2) !important; }
.ibp-bottombar {
    max-width: 1100px; margin: 26px auto 0; padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .12);
    display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center;
    font-size: 12.5px; color: #8fa1b5; position: relative;
}
.ibp-blinks a { color: #b9c6d6 !important; text-decoration: none; margin: 0 4px; }
.ibp-blinks a:hover { color: var(--ibp-gold-2) !important; }

/* ---------- Floating FAQ ---------- */
.ibp-fab {
    position: fixed; right: 20px; bottom: 96px; z-index: 9990;
    width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(135deg, var(--ibp-gold-2), var(--ibp-gold));
    color: var(--ibp-navy) !important;
    font-size: 30px; font-weight: 800; line-height: 58px; text-align: center; text-decoration: none;
    box-shadow: 0 10px 26px rgba(212, 175, 55, .45);
    transition: transform .2s ease;
}
.ibp-fab:hover { transform: scale(1.08); }

/* ---------- Modals (CSS :target, no JS) ---------- */
.ibp-modal {
    display: none;
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(4, 10, 20, .72);
    backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
    align-items: center; justify-content: center; padding: 20px;
}
.ibp-modal:target { display: flex; animation: ibpFade .25s ease; }
.ibp-modal-card {
    background: #fff; border-radius: 18px; max-width: 640px; width: 100%;
    max-height: 86vh; display: flex; flex-direction: column;
    border-top: 4px solid var(--ibp-gold);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .5);
    overflow: hidden;
    color: var(--ibp-ink);
}
.ibp-modal-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 22px; border-bottom: 1px solid var(--ibp-line);
}
.ibp-modal-head h3 { margin: 0; font-size: 19px; color: var(--ibp-navy); }
.ibp-close {
    width: 36px; height: 36px; border-radius: 50%;
    background: #eef1f6; color: var(--ibp-navy) !important;
    font-size: 22px; line-height: 36px; text-align: center; text-decoration: none;
    transition: transform .25s ease, background .2s ease;
    flex: 0 0 auto;
}
.ibp-close:hover { transform: rotate(90deg); background: var(--ibp-gold-2); }
.ibp-modal-body { padding: 22px; overflow-y: auto; font-size: 14.5px; line-height: 1.9; }
.ibp-modal-body ol, .ibp-modal-body ul { padding-right: 4px; padding-left: 20px; }
.ibp-modal-body li { margin-bottom: 8px; }
.ibp-modal-foot { padding: 16px 22px; border-top: 1px solid var(--ibp-line); text-align: center; }
.ibp-btn {
    display: inline-block; padding: 11px 30px; border-radius: 999px;
    background: linear-gradient(135deg, var(--ibp-green), var(--ibp-green-2));
    color: #fff !important; font-weight: 700; text-decoration: none;
    box-shadow: 0 8px 20px rgba(13, 122, 79, .35);
}
.ibp-btn:hover { transform: translateY(-2px); }

/* FAQ accordion */
.ibp-qa { border: 1px solid var(--ibp-line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.ibp-qa summary {
    padding: 13px 16px; cursor: pointer; font-weight: 700; font-size: 14.5px; color: var(--ibp-navy);
    list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 10px;
}
.ibp-qa summary::-webkit-details-marker { display: none; }
.ibp-qa summary::after { content: "▾"; color: var(--ibp-gold); font-size: 18px; transition: transform .2s; }
.ibp-qa[open] summary::after { transform: rotate(180deg); }
.ibp-qa[open] summary { border-bottom: 1px solid var(--ibp-line); background: #fafbfc; }
.ibp-qa-a { padding: 14px 16px; font-size: 14px; color: #3c4c5e; line-height: 1.9; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .ibp-fcols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
    .ibp-auth-card { padding: 28px 20px 22px; margin: 0 12px; }
    .ibp-fcols { grid-template-columns: 1fr; gap: 22px; }
    .ibp-bottombar { flex-direction: column; text-align: center; }
    .ibp-fab { right: 14px; bottom: 88px; width: 52px; height: 52px; font-size: 26px; line-height: 52px; }
    .ibp-modal { padding: 12px; }
}

/* ---------- Dashboard (v1.1) ---------- */
.ibd-wrap { max-width: 720px; margin: 0 auto; }
.ibd-hero {
    background: linear-gradient(150deg, #0A1A2F 0%, #14305a 55%, #1a2a6c 100%);
    border-radius: 22px;
    padding: 30px 26px 32px;
    color: #fff; text-align: center; position: relative; overflow: hidden;
    box-shadow: 0 18px 44px rgba(10, 26, 47, .35);
    margin-bottom: 22px;
}
.ibd-hero::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(420px 180px at 50% -40px, rgba(240, 216, 120, .16), transparent 70%);
}
.ibd-balance {
    display: inline-block; background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .25);
    color: #fff !important; font-size: 13.5px; font-weight: 700;
    padding: 8px 18px; border-radius: 999px; text-decoration: none;
    margin-bottom: 16px; position: relative;
}
.ibd-balance:hover { background: rgba(255, 255, 255, .22); }
.ibd-hero h2 { color: #fff; font-size: 23px; margin: 0 0 10px; font-weight: 800; position: relative; }
.ibd-hero p { color: #c4d2e4; font-size: 14px; line-height: 1.8; margin: 0 0 20px; position: relative; }
.ibd-cta {
    display: inline-block; background: #fff; color: #0A1A2F !important;
    font-weight: 800; font-size: 16px; padding: 13px 34px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .3); position: relative;
    transition: transform .2s ease;
}
.ibd-cta:hover { transform: translateY(-2px); }
.ibd-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px;
    margin-bottom: 26px;
}
.ibd-tile {
    background: #fff; border: 1px solid #e6ebf1; border-radius: 16px;
    padding: 16px 6px 12px; text-align: center; text-decoration: none;
    box-shadow: 0 4px 14px rgba(10, 26, 47, .06);
    transition: transform .18s ease, box-shadow .18s ease;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ibd-tile:hover { transform: translateY(-3px); box-shadow: 0 10px 22px rgba(10, 26, 47, .12); }
.ibd-ico {
    width: 52px; height: 52px; border-radius: 16px;
    display: flex; align-items: center; justify-content: center; font-size: 26px;
}
.ibd-lbl { font-size: 12.5px; font-weight: 700; color: #1c2b3a; line-height: 1.4; }
.ibd-section { margin-bottom: 22px; }
.ibd-section h3 {
    font-size: 16px; color: #0A1A2F; margin: 0 0 12px;
    display: flex; align-items: center; gap: 8px;
}
.ibd-bar { width: 4px; height: 18px; background: #d4af37; border-radius: 2px; display: inline-block; }
.ibd-partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ibd-partner {
    background: #fff; border: 1px solid #e6ebf1; border-radius: 14px;
    padding: 14px 8px 12px; font-size: 13px; font-weight: 700; color: #1c2b3a; text-align: center;
    box-shadow: 0 3px 10px rgba(10, 26, 47, .05);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
    min-height: 104px;
}
.ibd-plogo {
    width: 46px; height: 46px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; font-weight: 800;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}
.ibd-plogo-img {
    width: 46px; height: 46px; object-fit: contain;
    background: #fff; border-radius: 12px; padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
}
.ibd-pname { line-height: 1.45; }

/* ---------- Suggestions (v1.7) ---------- */
.ibd-sugs { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 8px; }
.ibd-sug {
    flex: 0 0 auto; min-width: 158px; max-width: 210px;
    background: linear-gradient(135deg, #ffffff, #f4f8fb);
    border: 1px solid #e6ebf1; border-radius: 14px; padding: 14px 14px;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    text-decoration: none; color: #1c2b3a; font-weight: 700; font-size: 13.5px;
    box-shadow: 0 3px 10px rgba(10, 26, 47, .05);
}
.ibd-sug-t { line-height: 1.5; }
.ibd-sug-a { color: #d4af37; font-weight: 800; font-size: 16px; }
.ibd-foot { text-align: center; font-size: 12px; color: #8fa1b5; margin: 8px 0 0; }

@media (max-width: 560px) {
    .ibd-hero { padding: 24px 18px 26px; border-radius: 18px; }
    .ibd-hero h2 { font-size: 19px; }
    .ibd-grid { gap: 10px; }
    .ibd-ico { width: 46px; height: 46px; font-size: 23px; border-radius: 14px; }
    .ibd-lbl { font-size: 11px; }
}

/* ---------- Promo banner (v1.3) ---------- */
.ibd-banner {
    background: linear-gradient(120deg, #0A1A2F 0%, #1a2a6c 60%, #243b8f 100%);
    border-radius: 18px;
    padding: 22px 24px;
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    margin-bottom: 26px; position: relative; overflow: hidden;
    box-shadow: 0 14px 34px rgba(10, 26, 47, .3);
    border: 1px solid rgba(212, 175, 55, .35);
}
.ibd-banner::before {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: radial-gradient(360px 160px at 85% 20%, rgba(212, 175, 55, .22), transparent 70%);
}
.ibd-banner-txt { position: relative; }
.ibd-banner-txt h3 { color: #fff; font-size: 18px; margin: 0 0 6px; font-weight: 800; }
.ibd-banner-txt p { color: #c4d2e4; font-size: 13px; margin: 0; line-height: 1.7; }
.ibd-banner-btn {
    flex: 0 0 auto; position: relative;
    background: linear-gradient(135deg, #f0d878, #d4af37);
    color: #0A1A2F !important; font-weight: 800; font-size: 14px;
    padding: 11px 24px; border-radius: 999px; text-decoration: none;
    box-shadow: 0 8px 20px rgba(212, 175, 55, .4);
    transition: transform .2s ease;
    white-space: nowrap;
}
.ibd-banner-btn:hover { transform: translateY(-2px); }

@media (max-width: 560px) {
    .ibd-banner { flex-direction: column; text-align: center; padding: 20px 18px; }
    .ibd-banner-txt h3 { font-size: 16px; }
}

/* ---------- Unified home: dashboard panel on navy (v1.4) ---------- */
.ibd-home {
    background: #f2f5f9;
    border-radius: 24px;
    padding: 26px 22px;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
}
.ibd-home .ibd-foot { margin-bottom: 0; }

@media (max-width: 560px) {
    .ibd-home { padding: 18px 14px; border-radius: 20px; }
}

/* ---------- Footer: full-width grounded, no floating gap (v1.5) ---------- */
body.page-id-236 { overflow-x: hidden; }
.ibp-footer {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    margin-top: 0;
    margin-bottom: 0;
    border-radius: 0;
}
/* No extra gap between the dashboard panel and the grounded footer */
.ibd-home { margin-bottom: 0; }

/* ---------- Portal header (v1.6) ---------- */
.ibp-pheader {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    max-width: 1100px; margin: 0 auto 22px; padding: 10px 14px 10px 20px;
    background: linear-gradient(120deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 18px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, .35);
}
.ibp-pbrand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ibp-pbrand .ibp-plogo-img { max-height: 38px; width: auto; border-radius: 8px; }
.ibp-pbrand .ibp-logo-fallback { width: 38px; height: 38px; font-size: 20px; margin: 0; }
.ibp-pbrand > span { color: #fff !important; font-weight: 800; font-size: 17px; letter-spacing: .2px; }
.ibp-pnav { display: flex; gap: 4px; align-items: center; }
.ibp-pnav a {
    color: #c4d2e4; text-decoration: none; font-size: 14px; font-weight: 600;
    padding: 8px 14px; border-radius: 999px; white-space: nowrap;
    transition: background .2s ease, color .2s ease;
}
.ibp-pnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.ibp-pnav a.ibp-cta {
    background: linear-gradient(135deg, #f0d878, #d4af37);
    color: #0A1A2F !important; font-weight: 800;
    padding: 9px 22px; box-shadow: 0 6px 18px rgba(212, 175, 55, .4);
}
.ibp-pnav a.ibp-cta:hover { transform: translateY(-1px); }

@media (max-width: 560px) {
    .ibp-pheader { padding: 8px 10px 8px 14px; margin-bottom: 14px; border-radius: 14px; }
    .ibp-pbrand > span { display: none; }
    .ibp-pbrand .ibp-plogo-img { max-height: 34px; }
    .ibp-pnav a { font-size: 12.5px; padding: 7px 10px; }
    .ibp-pnav a.ibp-cta { padding: 8px 14px; }
}
