/* ── IB Banner ── */
.ib-banner {
    position: relative;
    background: url("/images/banner%20bg.png") center center / 100% 100% no-repeat;
    margin-bottom: 24px;
    display: flex;
    align-items: stretch;
    aspect-ratio: 1459 / 362;
    min-height: 180px;
    padding-left: 24px;
    padding-right: 24px;
    overflow: hidden;
}
.ib-banner-overlay { display: none; }
.ib-banner-body {
    position: relative; z-index: 2;
    padding: 28px 32px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 60%;
}
.ib-banner-img { display: none; }
.ib-badge {
    display: inline-flex;
    align-items: center;
    background: #2563eb;
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 3px 12px;
    border-radius: 999px;
    margin-bottom: 10px;
    width: fit-content;
}
.ib-banner-title { font-weight: 600; color: #fff; line-height: 1.25; margin-bottom: 6px; }
@media (min-width: 1600px) {
    .ib-banner-title { font-size: 3.1rem !important; line-height: 1.15 !important; }
}
.ib-banner-sub { font-size: 0.83rem; color: rgba(255,255,255,0.65); margin-bottom: 16px; }
.ib-features { display: flex; gap: 20px; margin-bottom: 18px; flex-wrap: wrap; }
.ib-feature { display: flex; flex-direction: column; gap: 4px; font-size: 0.78rem; }
.ib-feature-icon { margin-bottom: 4px; }
.ib-feature-label { font-weight: 700; color: rgba(255,255,255,0.9); }
.ib-feature-sub { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.ib-banner-close {
    position: absolute; top: 20px; right: 24px; z-index: 10;
    background: rgba(0,0,0,0.35);
    border: 1.5px solid rgba(255,255,255,0.3);
    color: #fff;
    width: 32px; height: 32px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s;
    font-size: 1.1rem;
}
.ib-banner-close:hover { background: rgba(0,0,0,0.55); }
.ib-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-become-ib {
    background: #2563eb; color: #fff;
    border: none; border-radius: 8px;
    padding: 8px 20px;
    font-size: 0.85rem; font-weight: 600;
    cursor: pointer; transition: background 0.15s;
    white-space: nowrap;
}
.btn-become-ib:hover { background: #1d4ed8; }
.ib-cta-text { font-size: 0.78rem; color: rgba(255, 255, 255, 0.916); }

/* ── Trading Hub Banner (second banner) ── */
.th-banner {
    position: relative;
    background: url("/images/Trading%20Hub!%20banner.png") center center / 100% 100% no-repeat;
    margin-bottom: 24px;
    display: flex;
    align-items: stretch;
    min-height: 220px;
    border-radius: 22px;
    overflow: hidden;
}
.th-banner-body {
    position: relative; z-index: 2;
    padding: 24px 40px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 55%;
}
.th-banner-eyebrow { color: #0f172a; font-size: 1rem; font-weight: 500; margin-bottom: 4px; }
.th-banner-title {
    color: #0501DA;
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.05;
    margin-bottom: 14px;
    letter-spacing: -0.5px;
}
.th-banner-sub { color: #0f172a; font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.th-banner-desc { color: rgba(15,23,42,0.72); font-size: 0.86rem; margin-bottom: 18px; max-width: 460px; line-height: 1.5; }
.th-btn-explore {
    background: #0501DA; color: #fff;
    border: none; border-radius: 8px;
    padding: 10px 22px;
    font-size: 0.88rem; font-weight: 600;
    cursor: pointer; white-space: nowrap;
    transition: background 0.15s;
    width: fit-content;
}
.th-btn-explore:hover { background: #0400a8; }
.th-banner-dots { display: flex; gap: 8px; margin-top: 20px; align-items: center; }
.th-dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(15,23,42,0.30); transition: background 0.15s; cursor: pointer; }
.th-dot.active { background: #0501DA; }

/* ── Account Cards ── */
.hd-card {
    position: relative;
    background: linear-gradient(180deg, #0E1114 0%, #2F3947D1 50%, #111015 100%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 20px;
    padding: 16px 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
    overflow: hidden;
}
.hd-card::before {
    content: ""; position: absolute;
    inset: -120px -80px auto -80px;
    width: 320px; height: 260px;
    background: radial-gradient(circle at 35% 40%, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.06) 40%, rgba(255,255,255,0) 70%);
    pointer-events: none;
}
.hd-card::after {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(120% 100% at 50% 0%, rgba(63,49,99,0.28) 0%, rgba(0,0,0,0) 55%);
    pointer-events: none;
}
.hd-card > * { position: relative; z-index: 2; }
.hd-quad-wrap {
    background: linear-gradient(180deg, #3F3163 0%, #3F3163 68%, #171224 100%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 14px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
}
.hd-quad-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.hd-quad-item { min-height: 160px; }
.hd-quad-item > .hd-card,
.hd-quad-item > .bonus-card { height: 100%; }
.hd-quad-item .bonus-content { padding-right: 0; }
.hd-quad-item .bonus-img { width: clamp(110px, 38%, 200px); }
.hd-quad-item.download-terminals { min-height: 180px; }
@media (max-width: 767px) {
    .hd-quad-grid { grid-template-columns: 1fr; }
    .hd-quad-item { min-height: unset; }
    .hd-quad-item .bonus-content { padding-right: 200px; }
    .hd-quad-item .bonus-img { width: 245px; }
}
.hd-quad-wrap .hd-card,
.hd-quad-wrap .bonus-card { box-shadow: 0 16px 34px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10); }
.hd-quad-wrap .bonus-card { height: 100%; }
.hd-quad-wrap .hd-card { height: 100%; }
.hd-card-icon {
    width: 52px; height: 52px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 1.2rem; flex-shrink: 0;
}
.hd-card-icon.orange { background: rgba(245,158,11,0.85); color: #fff; }
.hd-card-icon.purple { background: rgba(139,92,246,0.85); color: #fff; }
.hd-card-icon.red { background: rgba(244,63,94,0.75); color: #fff; }
.hd-count { font-size: 1.85rem; font-weight: 800; color: rgba(255,255,255,0.92); line-height: 1; letter-spacing: 0.02em; }
.btn-open-acc {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.75);
    color: #2563eb;
    border-radius: 12px;
    padding: 10px 20px;
    font-size: 0.82rem; font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    white-space: nowrap;
    box-shadow: 0 10px 22px rgba(0,0,0,0.28);
}
.btn-open-acc:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 14px 28px rgba(0,0,0,0.34); }
.btn-open-acc .btn-plus { font-weight: 900; margin-right: 6px; }

/* ── Platform icons ── */
.platform-icon {
    width: 54px; height: 54px; border-radius: 999px;
    background: #DBE9FF;
    border: 1px solid rgba(219,233,255,0.75);
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #0f172a;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    box-shadow: 0 12px 24px rgba(0,0,0,0.28);
}
.platform-icon:hover { transform: translateY(-1px); background: #DBE9FF; box-shadow: 0 16px 28px rgba(0,0,0,0.34); }
.platform-icon.win i, .platform-icon.mac i, .platform-icon.ios i, .platform-icon.android i { color: #0A5BE2; }
.platform-label { font-size: 0.95rem; color: rgba(255,255,255,0.85); margin-top: 10px; text-align: center; font-weight: 700; letter-spacing: 0.01em; }
.platform-item { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; }
/* Pin the platform-icon row to the bottom of the Download Terminals card */
.dt-platforms{ margin-top: auto !important; }

/* Smaller platform icons inside Download Terminals card */
.dt-platforms .platform-icon{
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
    box-shadow: 0 10px 20px rgba(0,0,0,0.26);
}
.dt-platforms .platform-label{
    font-size: 0.78rem;
    margin-top: 6px;
    font-weight: 700;
}

/* ── Welcome Bonus ── */
.bonus-card {
    /* keep same bg style as other boxes (no green glow) */
    background: linear-gradient(180deg, #0E1114 0%, #2F3947D1 50%, #111015 100%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 16px;
    padding: 18px 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35), inset 0 1px 0 rgba(255,255,255,0.10);
}
/* Bonus card uses flex-row: text takes flex-grow, image is fixed-width flex item */
.bonus-card{
    display: flex !important;
    flex-direction: row !important;
    align-items: center;
    gap: 0;
}
.bonus-content {
    position: relative;
    z-index: 3;
    flex: 1 1 auto;
    min-width: 0;
    padding-right: 0;
    display: flex;
    flex-direction: column;
}
.bonus-content > div:last-child{ margin-top: auto; }
.bonus-img {
    position: absolute;
    right: 0;
    bottom: 0;
    top: 0;
    margin: 0;            /* no padding/space */
    padding: 0;
    width: auto;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;  /* keep image clean */
    pointer-events: none; user-select: none;
    filter: none;         /* simple image */
}
.bonus-content{ padding-right: 220px; }
.bonus-title {
    font-size: 1.05rem;
    font-weight: 400;
    color: #fff;
    line-height: 1.3;
    max-width: 100%;
}
/* Force any leftover <span> children to flow inline (not stacked block) */
.bonus-title span { display: inline; }
.bonus-label { font-size: 0.72rem; font-weight: 700; color: #22c55e; margin-bottom: 6px; letter-spacing: 0.04em; text-transform: uppercase; }
.btn-claim {
    background: #fff; color: #0A5BE2;
    border: none; border-radius: 12px;
    padding: 7px 15px;
    font-size: 0.95rem; font-weight: 500;
    cursor: pointer; margin-top: 18px;
    transition: opacity 0.15s;
}
.btn-claim:hover { opacity: 0.88; }

/* ── Wallet Overview ── */
.wallet-card {
    background: #0A5BE2;
    border-radius: 18px;
    padding: 16px 18px 14px;
    height: 100%;
    display: flex; flex-direction: column;
    border: 1px solid rgba(255,255,255,0.85);
    box-shadow: 0 26px 60px rgba(0,0,0,0.45);
    position: relative; overflow: hidden;
}
.wallet-layout {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto auto 1fr auto;
    grid-template-areas: "title icon" "balanceRow balanceRow" "stats stats" "spacer spacer" "actions actions";
    column-gap: 14px; row-gap: 14px; height: 100%;
}
.wallet-title { grid-area: title; font-size: 1.02rem; font-weight: 800; color: #fff; letter-spacing: 0.01em; }
.wallet-balance-row { grid-area: balanceRow; display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.wallet-balance { font-size: 1.95rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; line-height: 1.05; }
.wallet-hide-link { font-size: 0.88rem; color: rgba(255,255,255,0.92); text-decoration: underline; cursor: pointer; font-weight: 600; white-space: nowrap; }
.wallet-stats { grid-area: stats; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 78px; }
.wallet-actions { grid-area: actions; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.wallet-spacer { grid-area: spacer; }
.wallet-corner-illus { grid-area: icon; position: relative; right: 0; top: 0; opacity: 0.9; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0,0,0,0.25)); justify-self: end; align-self: start; }
.wallet-corner-illus img { width: 42px; height: 42px; object-fit: contain; }
.wallet-stat-box { background: #1F1CAA; border-radius: 12px; padding: 14px 16px; flex: 1; display: flex; align-items: center; justify-content: space-between; min-height: 0; gap: 8px; }
.wallet-stat-label { font-size: 0.80rem; color: rgba(255,255,255,0.92); margin-bottom: 0; font-weight: 600; }
.wallet-stat-val { font-size: 1.05rem; font-weight: 800; color: #fff; letter-spacing: -0.2px; white-space: nowrap; }
.wallet-stat-val.green { color: #86efac; }
.btn-wallet {
    background: rgba(255,255,255,0.96);
    border: 1px solid rgba(255,255,255,0.80);
    color: #0A5BE2;
    border-radius: 10px;
    padding: 10px 8px;
    font-size: 0.82rem; font-weight: 700;
    cursor: pointer; flex: 1;
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
    white-space: nowrap;
    box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}
.btn-wallet:hover { transform: translateY(-1px); background: #fff; box-shadow: 0 16px 28px rgba(0,0,0,0.30); }

/* ── TV widget wrappers ── */
.tv-card {
    background: linear-gradient(180deg, rgba(63,49,99,0.95) 0%, rgba(43,35,70,0.92) 38%, rgba(23,18,36,0.98) 100%);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 22px;
    padding: 22px 22px 18px;
    box-shadow: 0 28px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.10);
    overflow: hidden; height: 100%;
}
.tv-card-header { font-weight: 800; font-size: 1.35rem; color: rgba(255,255,255,0.92); margin-bottom: 14px; letter-spacing: 0.01em; }
@media (max-width: 575px) { .tv-card { padding: 18px 18px 16px; } .tv-card-header { font-size: 1.15rem; margin-bottom: 12px; } }

/* ── Technical Analysis (custom gauge) ── */
.ta-controls { display: flex; align-items: center; justify-content: space-between; margin-bottom: 28px; gap: 12px; flex-wrap: wrap; }
.ta-symbol-pill {
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 10px;
    padding: 12px 18px;
    color: #fff; font-weight: 700; font-size: 0.95rem;
    display: inline-flex; align-items: center; justify-content: space-between;
    min-width: 200px; gap: 30px; cursor: pointer;
}
.ta-symbol-pill i { color: rgba(255,255,255,0.75); font-size: 0.85rem; }
.ta-tabs { display: inline-flex; background: #f1f5f9; border-radius: 10px; padding: 4px; }
.ta-tab { background: transparent; border: none; padding: 9px 18px; color: #0f172a; font-weight: 600; font-size: 0.9rem; border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.ta-tab.active { background: #0a07d8; color: #fff; }
.ta-gauge-row { display: flex; align-items: center; gap: 24px; padding: 8px 0 16px; }
.ta-gauge { flex: 1; min-width: 0; max-width: 420px; }
.ta-gauge svg { width: 100%; height: auto; display: block; }
.ta-stats { display: flex; flex-direction: column; gap: 22px; padding-right: 8px; min-width: 110px; }
.ta-stat { display: flex; align-items: flex-start; gap: 12px; }
.ta-stat-dot { width: 14px; height: 14px; border-radius: 50%; flex-shrink: 0; margin-top: 5px; }
.ta-stat-dot.blue { background: #0a07d8; }
.ta-stat-dot.white { background: #ffffff; }
.ta-stat-dot.gray { background: #6e6e8a; }
.ta-stat-label { color: rgba(255,255,255,0.85); font-size: 1rem; font-weight: 500; line-height: 1.2; }
.ta-stat-value { color: #fff; font-size: 1.45rem; font-weight: 700; line-height: 1.1; margin-top: 4px; }
@media (max-width: 575px) { .ta-gauge-row { flex-direction: column; } .ta-stats { flex-direction: row; padding-right: 0; } }

/* ── Market Watch (custom) ── */
.mw-list { display: flex; flex-direction: column; gap: 8px; }
.mw-row { background: rgba(8,6,18,0.85); border: 1px solid rgba(255,255,255,0.10); border-radius: 12px; padding: 10px 14px; }
.mw-row.expanded { padding: 12px 14px; border: 1px solid #ffffff; }
.mw-row-header { display: grid; grid-template-columns: 1.4fr 1.8fr 0.9fr 0.7fr auto; align-items: center; gap: 10px; }
.mw-pair-name { color: #fff; font-weight: 700; font-size: 0.88rem; line-height: 1.2; margin-bottom: 2px; }
.mw-pair-subtitle { color: rgba(255,255,255,0.45); font-size: 0.7rem; }
.mw-spark { width: 100%; height: 28px; display: block; }
.mw-price { color: #22c55e; font-weight: 700; font-size: 0.88rem; text-align: right; }
.mw-change { color: #ef4444; font-weight: 700; font-size: 0.88rem; text-align: right; }
.mw-toggle-btn { width: 28px; height: 28px; border-radius: 50%; background: #0a07d8; border: none; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; font-size: 0.8rem; flex-shrink: 0; }
.mw-divider { height: 1px; background: rgba(255,255,255,0.12); margin: 10px 0 8px; }
.mw-period-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.mw-period-tabs { display: inline-flex; gap: 2px; }
.mw-period { background: transparent; border: none; color: rgba(255,255,255,0.65); padding: 4px 10px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; cursor: pointer; }
.mw-period.active { background: #0a07d8; color: #fff; }
.mw-legend { display: inline-flex; gap: 14px; color: rgba(255,255,255,0.85); font-size: 0.75rem; font-weight: 500; }
.mw-legend-item { display: inline-flex; align-items: center; gap: 5px; }
.mw-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.mw-dot.green { background: #22c55e; }
.mw-dot.blue { background: #0a07d8; }
.mw-chart { width: 100%; height: 70px; display: block; margin-top: 2px; }
.mw-dates { display: flex; justify-content: space-between; color: rgba(255,255,255,0.45); font-size: 0.72rem; margin-top: 2px; }

/* ── Global responsive safety ── */
html, body { overflow-x: hidden; }
#fx-dashboard, #fx-dashboard main { min-width: 0; max-width: 100%; }
#fx-dashboard main { overflow-x: hidden; }
.ib-banner, .th-banner, .hd-card, .bonus-card, .wallet-card, .tv-card, .dash-footer-inner { max-width: 100%; min-width: 0; }
.ta-gauge svg, .mw-spark, .mw-chart { max-width: 100%; }
.hd-quad-wrap, .hd-quad-grid, .hd-quad-item { min-width: 0; }
.row { --bs-gutter-x: 1rem; }

/* ── Responsive: Laptop / iPad Pro landscape (≤1399px) ── */
@media (max-width: 1399px) {
    .ib-banner { aspect-ratio: 1459 / 362; min-height: 0; padding-left: 16px; padding-right: 36px; }
    .ib-banner-body { max-width: 60%; padding: 16px 36px 16px 18px; }
    .ib-banner-title { font-size: 1.4rem !important; line-height: 1.18 !important; margin-bottom: 6px !important; }
    .ib-banner-sub { font-size: 0.72rem; margin-bottom: 10px; max-width: 420px; line-height: 1.4; }
    .ib-badge { margin-bottom: 8px; padding: 3px 10px; font-size: 0.66rem; }
    .ib-features { gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
    .ib-feature { min-width: 130px; }
    .ib-feature-icon { width: 36px !important; height: 36px !important; }
    .ib-feature-icon img { width: 22px !important; height: 22px !important; }
    .ib-feature-label { font-size: 0.7rem; }
    .ib-feature-sub { font-size: 0.66rem; }
    .btn-become-ib { padding: 6px 14px !important; font-size: 0.74rem !important; border-radius: 6px; }
    .ib-cta-text { font-size: 0.68rem; }

    .th-banner { min-height: 200px; }
    .th-banner-body { padding: 22px 28px; max-width: 55%; }
    .th-banner-eyebrow { font-size: 0.85rem; }
    .th-banner-title { font-size: 1.95rem; margin-bottom: 10px; }
    .th-banner-sub { font-size: 0.85rem; }
    .th-banner-desc { font-size: 0.76rem; margin-bottom: 14px; max-width: 360px; }
    .th-btn-explore { padding: 7px 18px; font-size: 0.8rem; }
    .th-banner-dots { margin-top: 14px; }

    .hd-quad-wrap { padding: 14px; border-radius: 20px; }
    .hd-quad-grid { gap: 12px; }
    .hd-card, .bonus-card { padding: 18px 18px; }
    .hd-card-icon { width: 46px; height: 46px; font-size: 1.05rem; border-radius: 12px; }
    .hd-count { font-size: 1.85rem; }
    .btn-open-acc { padding: 8px 14px; font-size: 0.8rem; }

    .platform-icon { width: 46px; height: 46px; font-size: 1.25rem; }
    .platform-label { font-size: 0.78rem; margin-top: 7px; }

    .hd-quad-item .bonus-img { width: 130px; }
    .hd-quad-item .bonus-content { padding-right: 0; }
    .bonus-label { font-size: 0.64rem; margin-bottom: 5px; }
    .bonus-title { font-size: 0.95rem; max-width: none; width: 100%; }
    .bonus-title span { display: inline; }
    .btn-claim { padding: 8px 16px; font-size: 0.82rem; margin-top: 12px; }

    .wallet-card { padding: 22px 22px 18px; }
    .wallet-title { font-size: 1.2rem; }
    .wallet-balance { font-size: 2.35rem; }
    .wallet-hide-link { font-size: 0.9rem; }
    .wallet-stats { margin-top: 36px; gap: 14px; }
    .wallet-stat-box { padding: 14px 16px; border-radius: 16px; }
    .wallet-stat-label { font-size: 0.9rem; }
    .wallet-stat-val { font-size: 1.1rem; }
    .wallet-actions { gap: 12px; }
    .btn-wallet { padding: 10px 10px; font-size: 0.85rem; }

    .tv-card { padding: 20px 20px 16px; }
    .tv-card-header { font-size: 1.15rem; }
}

/* ── Responsive: Large tablet & below (≤1199px) ── */
@media (max-width: 1199px) {
    .ib-banner { padding: 0 36px 0 14px; aspect-ratio: 1459 / 362; min-height: 0; }
    .ib-banner-body { padding: 14px 32px 14px 16px; max-width: 56%; }
    .ib-banner-title { font-size: 1.2rem !important; line-height: 1.18 !important; margin-bottom: 6px !important; }
    .ib-banner-sub { font-size: 0.68rem; margin-bottom: 10px; max-width: 320px; line-height: 1.4; }
    .ib-badge { margin-bottom: 8px; padding: 3px 10px; font-size: 0.62rem; }
    .ib-features { gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
    .ib-feature { font-size: 0.68rem; min-width: 110px; }
    .ib-feature-icon { width: 32px !important; height: 32px !important; }
    .ib-feature-icon img { width: 18px !important; height: 18px !important; }
    .ib-feature-label { font-size: 0.66rem; }
    .ib-feature-sub { font-size: 0.6rem; }
    .ib-features > div[style*="width:1px"] { display: none; }
    .ib-cta-row { gap: 8px; }
    .btn-become-ib { padding: 5px 12px !important; font-size: 0.7rem !important; border-radius: 6px; }
    .ib-cta-text { font-size: 0.64rem; }

    .th-banner-body { padding: 18px 22px; max-width: 55%; }
    .th-banner-eyebrow { font-size: 0.78rem; }
    .th-banner-title { font-size: 1.6rem; margin-bottom: 8px; }
    .th-banner-sub { font-size: 0.78rem; }
    .th-banner-desc { font-size: 0.7rem; margin-bottom: 12px; max-width: 320px; }
    .th-btn-explore { padding: 6px 14px; font-size: 0.74rem; }

    .hd-quad-wrap { padding: 12px; }
    .hd-quad-grid { gap: 10px; }
    .hd-quad-item, .hd-quad-item.download-terminals { min-height: 170px; }
    .hd-card, .bonus-card { padding: 14px 16px; }
    .hd-card-icon { width: 40px; height: 40px; font-size: 1rem; border-radius: 10px; }
    .hd-card .fw-semibold { font-size: 0.82rem !important; }
    .hd-count { font-size: 1.5rem; }
    .btn-open-acc { padding: 7px 12px; font-size: 0.76rem; border-radius: 10px; }
    .btn-open-acc .btn-plus { margin-right: 4px; }

    .platform-icon { width: 36px; height: 36px; font-size: 1rem; box-shadow: 0 6px 14px rgba(0,0,0,0.25); }
    .platform-label { font-size: 0.65rem; margin-top: 6px; font-weight: 600; }

    .hd-quad-item .bonus-img { width: 110px; }
    .hd-quad-item .bonus-content { padding-right: 0; }
    .bonus-title { font-size: 0.9rem; max-width: none; width: 100%; }
    .bonus-title span { display: inline; }
    .bonus-label { font-size: 0.65rem; }
    .btn-claim { padding: 7px 14px; font-size: 0.78rem; margin-top: 10px; }

    .wallet-card { padding: 18px 18px 16px; border-radius: 18px; }
    .wallet-title { font-size: 1.1rem; }
    .wallet-balance { font-size: 1.85rem; }
    .wallet-hide-link { font-size: 0.8rem; }
    .wallet-corner-illus img { width: 42px; height: 42px; }
    .wallet-stats { gap: 10px; margin-top: 28px; }
    .wallet-stat-box { flex-direction: row; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; min-height: auto; }
    .wallet-stat-label { font-size: 0.78rem; }
    .wallet-stat-val { font-size: 1.05rem; }
    .wallet-actions { grid-template-columns: repeat(4, 1fr); gap: 8px; }
    .btn-wallet { padding: 10px 6px; font-size: 0.78rem; }

    .tv-card { padding: 18px 18px 16px; }
    .tv-card-header { font-size: 1.15rem; margin-bottom: 12px; }
}

/* ── Responsive: iPad Pro portrait-ish widths (≤1100px) ── */
@media (max-width: 1100px) {
    .hd-quad-item .bonus-img { width: clamp(95px, 14vw, 130px); }
    .hd-quad-item .bonus-content { padding-right: 0; }
    .bonus-title { font-size: 0.88rem; line-height: 1.25; }
    .btn-claim { padding: 8px 14px; font-size: 0.8rem; }
}

/* ── iPad Pro 1024×1366 / 1366×1024 ── */
@media (min-width: 1024px) and (max-width: 1366px) and (min-height: 900px) {
    .hd-quad-item .bonus-content { padding-right: 0 !important; max-width: 100%; }
    .bonus-title { max-width: none !important; width: 100%; }
    .hd-quad-item .bonus-img { width: 140px; opacity: 1; z-index: 1; }
    .bonus-card .bonus-content { z-index: 2; }

    .ib-banner { aspect-ratio: auto !important; height: auto !important; min-height: 220px !important; background-size: cover !important; padding: 16px !important; }
    .ib-banner-body { max-width: 100% !important; padding: 18px 14px !important; }
    .ib-banner-title { font-size: 1.55rem !important; line-height: 1.18 !important; margin-bottom: 10px !important; }
    .ib-banner-sub { font-size: 0.78rem !important; margin-bottom: 12px !important; max-width: 100% !important; }
    .ib-features { flex-wrap: wrap !important; gap: 10px !important; margin-bottom: 12px !important; }
    .ib-feature { min-width: 160px; }
    .ib-features > div[style*="width:1px"] { display: none !important; }
}

/* ── Responsive: Tablet (≤991px) ── */
@media (max-width: 991px) {
    main.flex-grow-1 { padding: 12px !important; }
    .ib-banner { aspect-ratio: auto; padding: 18px; min-height: auto; background-size: cover; }
    .ib-banner-img { display: none; }
    .ib-banner-body { max-width: 100%; padding: 14px 28px 14px 12px; }
    .ib-banner-title { font-size: 1.6rem; }
    .ib-banner-sub { font-size: 0.78rem; }
    .ib-features { gap: 14px; }
    .ib-feature-icon { width: 38px !important; height: 38px !important; }
    .ib-feature-icon img { width: 22px !important; height: 22px !important; }

    .th-banner { aspect-ratio: auto; min-height: auto; background-size: cover; }
    .th-banner-body { max-width: 100%; padding: 22px 24px; }
    .th-banner-title { font-size: 1.6rem; }
    .th-banner-desc { max-width: 100%; }

    .hd-quad-wrap { padding: 14px; border-radius: 18px; }
    .hd-quad-grid { gap: 10px; }
    .hd-quad-item, .hd-quad-item.download-terminals { min-height: 180px; }
    .hd-card, .bonus-card { padding: 16px 18px; }
    .hd-card-icon { width: 44px; height: 44px; }
    .hd-quad-item .bonus-img { width: 160px; }
    .hd-quad-item .bonus-content { padding-right: 0; }

    .wallet-card { padding: 22px 22px 18px; }
    .wallet-balance { font-size: 2rem; }
    .wallet-stats { margin-top: 24px; gap: 14px; }
    .wallet-stat-box { flex-direction: row; align-items: center; justify-content: space-between; padding: 14px 18px; }
    .wallet-actions { grid-template-columns: repeat(4, 1fr); gap: 10px; }
    .btn-wallet { padding: 11px 10px; font-size: 0.88rem; }

    .tv-card { padding: 16px; border-radius: 18px; }
    .ta-symbol-pill { min-width: 150px; padding: 10px 14px; font-size: 0.88rem; }
    .ta-tab { padding: 8px 14px; font-size: 0.82rem; }
    .ta-stats { min-width: 90px; gap: 16px; }
    .ta-stat-value { font-size: 1.2rem; }

    .mw-row-header { grid-template-columns: 1.3fr 1.5fr 0.9fr 0.7fr auto; gap: 8px; }
}

/* ── Responsive: Small tablet & large mobile (≤767px) ── */
@media (max-width: 767px) {
    main.flex-grow-1 { padding: 10px !important; }
    .ib-banner-title { font-size: 1.35rem; }
    .ib-features { gap: 10px; }
    .ib-feature { font-size: 0.72rem; }
    .ib-cta-row { flex-wrap: wrap; }

    .th-banner-title { font-size: 1.4rem; }
    .th-banner-body { padding: 18px 18px; }

    .hd-quad-grid { grid-template-columns: 1fr; }
    .hd-quad-item, .hd-quad-item.download-terminals { min-height: auto; }
    .hd-card-icon { width: 40px; height: 40px; font-size: 1rem; }
    .hd-count { font-size: 1.6rem; }
    .btn-open-acc { padding: 8px 14px; font-size: 0.8rem; }
    .platform-icon { width: 42px; height: 42px; font-size: 1.15rem; }
    .platform-label { font-size: 0.75rem; }
    .bonus-img { width: 150px; }
    .bonus-content { padding-right: 0; }
    .bonus-title { font-size: 0.95rem; }

    .wallet-card { padding: 18px 18px 16px; border-radius: 18px; }
    .wallet-title { font-size: 1.15rem; }
    .wallet-balance { font-size: 1.85rem; }
    .wallet-hide-link { font-size: 0.85rem; }
    .wallet-stat-box { padding: 12px 14px; }
    .wallet-stat-label { font-size: 0.8rem; }
    .wallet-stat-val { font-size: 1rem; }
    .wallet-actions { grid-template-columns: repeat(2, 1fr); }
    .btn-wallet { padding: 10px 8px; font-size: 0.82rem; }

    .tv-card-header { font-size: 1.05rem; }
    .ta-controls { gap: 10px; }
    .ta-symbol-pill { min-width: auto; flex: 1; }
    .ta-tabs { width: 100%; justify-content: space-between; }
    .ta-tab { flex: 1; justify-content: center; padding: 7px 8px; font-size: 0.78rem; }
    .mw-row, .mw-row.expanded { padding: 10px 12px; }
    .mw-row-header { grid-template-columns: 1fr auto auto; gap: 8px; }
    .mw-spark { display: none; }
    .mw-period { padding: 4px 8px; font-size: 0.72rem; }

    .dash-footer-inner { padding: 18px 16px 20px; }
    .dash-footer-link { padding: 6px 14px; font-size: 0.92rem; }
    .dash-footer-disclaimer { font-size: 0.78rem; line-height: 1.7; }
}

/* ── Responsive: Mobile (≤575px) ── */
@media (max-width: 575px) {
    .ib-banner { padding: 14px; aspect-ratio: auto; min-height: auto; background-size: cover; }
    .ib-banner-body { padding: 16px 28px 16px 12px; max-width: 100%; }
    .ib-banner-title { font-size: 1.15rem; line-height: 1.25; }
    .ib-banner-sub { font-size: 0.72rem; margin-bottom: 12px; }
    .ib-features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 10px; margin-bottom: 12px; }
    .ib-feature { flex-direction: row; align-items: center; gap: 10px; font-size: 0.68rem; min-width: 0; }
    .ib-feature-icon { margin-bottom: 0; }
    .ib-feature-label { font-size: 0.72rem; }
    .ib-feature-sub { font-size: 0.64rem; }
    .ib-feature-icon { width: 32px !important; height: 32px !important; }
    .ib-feature-icon img { width: 18px !important; height: 18px !important; }
    .ib-features > div[style*="width:1px"] { display: none; }
    .ib-cta-row { flex-direction: column; align-items: flex-start; gap: 10px; }
    .btn-become-ib { padding: 8px 16px; font-size: 0.82rem; }
    .ib-cta-text { font-size: 0.72rem; line-height: 1.4; }
    .ib-banner-close { width: 28px; height: 28px; top: 12px; right: 14px; }

    .th-banner { padding: 0; }
    .th-banner-body { padding: 18px 16px; }
    .th-banner-eyebrow { font-size: 0.75rem; }
    .th-banner-title { font-size: 1.25rem; margin-bottom: 6px; }
    .th-banner-sub { font-size: 0.78rem; }
    .th-banner-desc { font-size: 0.72rem; margin-bottom: 12px; }
    .th-btn-explore { padding: 7px 16px; font-size: 0.78rem; }

    .hd-quad-wrap { padding: 10px; }
    .hd-quad-item, .hd-quad-item.download-terminals { min-height: auto; }
    .hd-card, .bonus-card { padding: 14px 16px; }
    .hd-card-icon { width: 36px; height: 36px; border-radius: 10px; }
    .hd-count { font-size: 1.45rem; }
    .platform-icon { width: 38px; height: 38px; font-size: 1.05rem; }
    .platform-label { font-size: 0.7rem; margin-top: 6px; }
    .bonus-img { width: 120px; }
    .bonus-content { padding-right: 0; }
    .bonus-title { font-size: 0.88rem; }
    .btn-claim { padding: 8px 16px; font-size: 0.82rem; margin-top: 10px; }

    .wallet-balance { font-size: 1.55rem; }
    .wallet-balance-row { gap: 10px; flex-wrap: wrap; }
    .wallet-stats { grid-template-columns: 1fr; gap: 10px; margin-top: 16px; }
    .wallet-corner-illus img { width: 40px; height: 40px; }
    .wallet-actions { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .btn-wallet { padding: 10px 10px; font-size: 0.82rem; }

    .tv-card { padding: 14px 14px 12px; border-radius: 16px; }
    .tv-card-header { font-size: 1rem; margin-bottom: 12px; }

    .ta-controls { flex-direction: column; align-items: stretch; }
    .ta-symbol-pill { width: 100%; }
    .ta-gauge-row { flex-direction: column; gap: 16px; }
    .ta-gauge { width: 100%; }
    .ta-gauge svg { width: 100%; height: auto; }
    .ta-stats { flex-direction: row; padding-right: 0; min-width: auto; justify-content: space-around; }
    .ta-stat-value { font-size: 1.1rem; }

    .mw-row-header { grid-template-columns: 1fr auto auto; }
    .mw-toggle-btn { width: 26px; height: 26px; font-size: 0.72rem; }
    .mw-period-row { flex-direction: column; align-items: flex-start; gap: 8px; }
    .mw-period-tabs { flex-wrap: nowrap; overflow-x: auto; width: 100%; }
    .mw-chart { height: 60px; }
    .mw-dates { font-size: 0.68rem; }

    .dash-footer-nav { padding-bottom: 12px; margin-bottom: 14px; gap: 4px; }
    .dash-footer-link { padding: 5px 10px; font-size: 0.85rem; gap: 5px; }
    .dash-footer-link i { font-size: 0.85rem; }
    .dash-footer-disclaimer { font-size: 0.74rem; line-height: 1.6; }
}

/* ── Responsive: Extra small mobile (≤400px) ── */
@media (max-width: 400px) {
    .ib-banner-title { font-size: 1rem; }
    .ib-features { grid-template-columns: 1fr; }
    .hd-count { font-size: 1.25rem; }
    .btn-open-acc { padding: 6px 10px; font-size: 0.72rem; }
    .platform-icon { width: 34px; height: 34px; font-size: 0.95rem; }
    .platform-label { font-size: 0.65rem; }
    .bonus-img { width: 100px; }
    .bonus-content { padding-right: 0; }
    .wallet-balance { font-size: 1.35rem; }
    .dash-footer-link { padding: 4px 8px; font-size: 0.8rem; }
    .th-banner-title { font-size: 1.1rem; }
}

/* ── Ultra-wide but short screens ── */
@media (min-width: 1600px) and (max-height: 800px) {
    .ib-banner-title { font-size: 3.4rem !important; line-height: 1.12 !important; }
}
