/* Solomon Hub – public portal styles */

/* ══ New portal layout (sph-*) ══════════════════════════════════════════════ */

.sph-portal {
    display: grid;
    grid-template-columns: 240px 1fr;
    grid-template-rows: 1fr;
    gap: 0;
    flex: 1;           /* fills .se-portal-wrap's flex container */
    min-height: 480px; /* fallback when not in flex context */
    max-width: 1160px;
    margin: 0 auto;
    width: 100%;
    border: 1px solid #e2e4e7;
    border-radius: 10px;
    overflow: hidden;
    background: #f9f9fb;
    font-family: 'Inter', system-ui, sans-serif;
}

/* ── Sidebar ────────────────────────────────────────────────────────────── */
.sph-sidebar {
    background: #111827;
    color: #e5e7eb;
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100%;
}

.sph-user-card {
    padding: 28px 20px 20px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    text-align: center;
}
.sph-user-card .sph-avatar { border-radius: 50%; display: block; margin: 0 auto 12px; }
.sph-user-card__name  { font-size: 15px; font-weight: 700; color: #fff; line-height: 1.3; }
.sph-user-card__email { font-size: 12px; color: #9ca3af; margin-top: 2px; word-break: break-all; }
.sph-user-card__meta  {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-size: 12px; color: #9ca3af; margin-top: 6px;
}
.sph-user-card__meta svg { flex-shrink: 0; opacity: .7; }
.sph-user-card__since { font-size: 11px; color: #6b7280; margin-top: 10px; }

.sph-nav { padding: 16px 12px; display: flex; flex-direction: column; gap: 2px; }
.sph-nav__link {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 12px; border-radius: 6px;
    font-size: 13px; font-weight: 500; color: #d1d5db;
    text-decoration: none; transition: background .15s, color .15s;
}
.sph-nav__link:hover { background: rgba(255,255,255,.07); color: #fff; }
.sph-nav__link--active { background: rgba(200,16,46,.18); color: #f87171; }
.sph-nav__link--active:hover { background: rgba(200,16,46,.26); }
.sph-nav__link svg, .sph-nav__link .dashicons { flex-shrink: 0; opacity: .75; }
.sph-nav__link--active svg, .sph-nav__link--active .dashicons { opacity: 1; }

/* ── Main content ───────────────────────────────────────────────────────── */
.sph-main { padding: 28px 28px 40px; display: flex; flex-direction: column; gap: 28px; overflow: hidden; }

/* Greeting */
.sph-greeting { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.sph-greeting__title { margin: 0; font-size: 22px; font-weight: 700; color: #111827; }
.sph-greeting__sub   { margin: 4px 0 0; font-size: 13px; color: #6b7280; }

/* KPI stats row */
.sph-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.sph-kpi {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 18px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sph-kpi__icon {
    width: 44px; height: 44px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sph-kpi--blue  .sph-kpi__icon { background: #dbeafe; color: #1d4ed8; }
.sph-kpi--amber .sph-kpi__icon { background: #fef3c7; color: #b45309; }
.sph-kpi--green .sph-kpi__icon { background: #d1fae5; color: #065f46; }
.sph-kpi__value { display: block; font-size: 20px; font-weight: 700; color: #111827; line-height: 1.2; }
.sph-kpi__label { display: block; font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Section wrapper */
.sph-section { display: flex; flex-direction: column; gap: 14px; }
.sph-section__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.sph-section__title { margin: 0; font-size: 15px; font-weight: 700; color: #111827; }

/* Link-all (view all) */
.sph-link-all {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600; color: #C8102E; text-decoration: none;
}
.sph-link-all:hover { text-decoration: underline; }

/* Service cards */
.sph-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.sph-service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 20px 18px;
    display: flex; flex-direction: column; gap: 12px;
    position: relative; overflow: hidden;
}
.sph-service-card::before {
    content: '';
    position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.sph-service-card--mt::before  { background: #9b1f5e; }
.sph-service-card--smp::before { background: #7c5700; }
.sph-service-card__top { display: flex; align-items: center; gap: 10px; }
.sph-service-card__icon-wrap {
    width: 36px; height: 36px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.sph-service-card--mt  .sph-service-card__icon-wrap { background: #fdf2f8; }
.sph-service-card--mt  .sph-service-card__icon-wrap .dashicons { color: #9b1f5e; }
.sph-service-card--smp .sph-service-card__icon-wrap { background: #fef9f0; }
.sph-service-card--smp .sph-service-card__icon-wrap .dashicons { color: #7c5700; }
.sph-service-card__icon-wrap .dashicons { font-size: 20px; width: 20px; height: 20px; }
.sph-service-card__label { font-size: 13px; font-weight: 600; color: #374151; }
.sph-service-card__stat { display: flex; align-items: baseline; gap: 6px; }
.sph-service-card__stat-num  { font-size: 28px; font-weight: 800; color: #111827; line-height: 1; }
.sph-service-card__stat-text { font-size: 12px; color: #6b7280; }
.sph-service-card__pending {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 600; color: #b45309;
}
.sph-service-card__foot { margin-top: auto; }
.sph-service-card__btn {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 13px; font-weight: 600; text-decoration: none;
    padding: 7px 14px; border-radius: 6px;
    transition: background .15s, color .15s;
}
.sph-service-card--mt  .sph-service-card__btn { background: #fdf2f8; color: #9b1f5e; }
.sph-service-card--mt  .sph-service-card__btn:hover { background: #9b1f5e; color: #fff; }
.sph-service-card--smp .sph-service-card__btn { background: #fef9f0; color: #7c5700; }
.sph-service-card--smp .sph-service-card__btn:hover { background: #7c5700; color: #fff; }
.sph-service-card__soon { font-size: 12px; color: #9ca3af; }

/* Empty state */
.sph-empty { text-align: center; padding: 40px 20px; color: #6b7280; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.sph-empty svg { color: #d1d5db; margin-bottom: 12px; }
.sph-empty p { margin: 6px 0; font-size: 14px; }
.sph-muted { font-size: 12px; color: #9ca3af; }

/* Invoice table */
.sph-table-wrap { background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; overflow: hidden; }
.sph-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.sph-table th { background: #f9fafb; text-align: left; padding: 10px 14px; border-bottom: 1px solid #e5e7eb; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #6b7280; white-space: nowrap; }
.sph-table td { padding: 12px 14px; border-bottom: 1px solid #f3f4f6; color: #374151; }
.sph-table tbody tr:last-child td { border-bottom: none; }
.sph-table tbody tr:hover td { background: #f9fafb; }
.sph-table__inv { font-weight: 600; color: #111827; }
.sph-due  { color: #b45309; font-weight: 600; }
.sph-paid { color: #065f46; }
.sph-view-link { font-size: 13px; font-weight: 600; color: #C8102E; text-decoration: none; }
.sph-view-link:hover { text-decoration: underline; }

/* Scrollable table wrapper — add this div around any .smh-table on mobile */
.smh-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Responsive */
@media (max-width: 780px) {
    .sph-portal { grid-template-columns: 1fr; }
    .sph-sidebar { min-height: auto; }
    .sph-user-card { text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
    .sph-user-card .sph-avatar { margin: 0; width: 48px; height: 48px; }
    .sph-user-card__name, .sph-user-card__email, .sph-user-card__meta, .sph-user-card__since { text-align: left; }
    .sph-nav { flex-direction: row; flex-wrap: wrap; padding: 8px 12px; }
    .sph-nav__link { padding: 7px 10px; font-size: 12px; }
    .sph-main { padding: 20px 16px 32px; gap: 20px; }
    .sph-kpi-row { grid-template-columns: 1fr; }
    .sph-service-grid { grid-template-columns: 1fr; }
    /* Invoice table in hub dashboard */
    .sph-table-wrap { overflow-x: auto; }
}

/* ══ Legacy .smh-hub (kept for invoice/statement views) ═════════════════════ */

.smh-hub { max-width: 900px; margin: 0 auto; padding: 0 16px; }

/* Header */
.smh-hub__header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.smh-hub__header h2 { margin: 0; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.smh-hub__header-actions { display: flex; gap: 8px; }

/* Buttons */
.smh-btn { display: inline-block; padding: 8px 18px; border-radius: 4px; font-size: 14px; font-weight: 600; text-decoration: none; cursor: pointer; transition: background .15s, color .15s; border: none; }
.smh-btn--primary { background: #2271b1; color: #fff; }
.smh-btn--primary:hover { background: #135e96; color: #fff; }
.smh-btn--outline { background: transparent; color: #2271b1; border: 2px solid #2271b1; }
.smh-btn--outline:hover { background: #2271b1; color: #fff; }

/* Service cards */
.smh-service-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; margin-bottom: 32px; }
.smh-service-card {
  background: #fff; border: 1px solid #e2e4e7; border-radius: 6px;
  padding: 20px; display: flex; flex-direction: column; gap: 8px;
  border-top: 4px solid #e2e4e7; /* overridden per service below */
}
/* Per-service accent colours */
.smh-service-card--mt  { border-top-color: #9b1f5e; }
.smh-service-card--mt  .smh-service-card__icon .dashicons { color: #9b1f5e; }
.smh-service-card--smp { border-top-color: #7c5700; }
.smh-service-card--smp .smh-service-card__icon .dashicons { color: #7c5700; }
.smh-service-card--sds { border-top-color: #1a5276; }
.smh-service-card--sds .smh-service-card__icon .dashicons { color: #1a5276; }
.smh-service-card--sts { border-top-color: #0a6b2a; }
.smh-service-card--sts .smh-service-card__icon .dashicons { color: #0a6b2a; }

.smh-service-card__icon .dashicons { font-size: 28px; width: 28px; height: 28px; color: #2271b1; }
.smh-service-card__body h3 { margin: 0; font-size: 15px; }
.smh-service-card__count { margin: 0; color: #50575e; font-size: 13px; }
.smh-service-card__pending { margin: 0; font-size: 13px; color: #b45309; font-weight: 600; }
.smh-service-card__link { margin-top: auto; font-size: 13px; color: #2271b1; text-decoration: none; font-weight: 600; }
.smh-service-card__link:hover { text-decoration: underline; }
.smh-service-card__link--inactive { color: #a7aaad; cursor: default; }

/* Empty state */
.smh-empty-services { text-align: center; padding: 40px 20px; color: #50575e; }
.smh-empty-services .dashicons { font-size: 48px; width: 48px; height: 48px; color: #c3c4c7; margin-bottom: 12px; }
.smh-empty-services p { margin: 6px 0; }
.smh-muted { color: #646970; font-size: 13px; }

/* Tables */
.smh-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.smh-table th { background: #f6f7f7; text-align: left; padding: 9px 12px; border-bottom: 2px solid #ddd; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.smh-table td { padding: 9px 12px; border-bottom: 1px solid #eee; }
.smh-table tbody tr:last-child td { border-bottom: none; }
.smh-table tfoot td { border-top: 1px solid #ddd; border-bottom: none; }
.smh-table--invoice { margin-bottom: 0; }
.smh-right { text-align: right; }
.smh-total-row td { font-weight: 700; background: #f6f7f7; }
.smh-balance-row td { font-size: 15px; }

/* Section wrapper */
.smh-section { margin-top: 32px; }
.smh-section h3 { font-size: 16px; margin-bottom: 12px; }

/* Empty state */
.smh-empty { color: #646970; font-style: italic; padding: 16px 0; }

/* Badge */
.smh-badge { display: inline-block; padding: 2px 10px; border-radius: 12px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.smh-badge--smh_inv_draft        { background: #f0f0f1; color: #50575e; }
.smh-badge--smh_inv_sent         { background: #dce9f7; color: #2271b1; }
.smh-badge--smh_inv_deposit_paid { background: #fef9c3; color: #78600a; }
.smh-badge--smh_inv_paid         { background: #d8f1dc; color: #00672b; }
.smh-badge--smh_inv_overdue      { background: #fde8e8; color: #8a2424; }
.smh-badge--smh_inv_cancelled    { background: #f0f0f1; color: #a7aaad; }
.smh-badge--completed            { background: #d8f1dc; color: #00672b; }
.smh-badge--pending              { background: #fef9c3; color: #78600a; }
.smh-badge--failed               { background: #fde8e8; color: #8a2424; }

/* Balance strip */
.smh-balance-strip { display: flex; gap: 0; margin-bottom: 28px; border: 1px solid #e2e4e7; border-radius: 6px; overflow: hidden; }
.smh-balance-strip__item { flex: 1; padding: 18px 20px; background: #fff; text-align: center; border-right: 1px solid #e2e4e7; }
.smh-balance-strip__item:last-child { border-right: none; }
.smh-balance-strip__value { display: block; font-size: 20px; font-weight: 700; color: #1d2327; }
.smh-balance-strip__label { display: block; font-size: 12px; color: #646970; margin-top: 4px; }

/* Colors */
.smh-green { color: #00672b; font-weight: 600; }
.smh-red   { color: #8a2424; font-weight: 600; }

/* Invoice body (portal view) */
.smh-invoice-body { background: #fff; border: 1px solid #e2e4e7; border-radius: 6px; padding: 32px; margin-bottom: 24px; }
.smh-invoice-meta { display: flex; justify-content: space-between; margin-bottom: 28px; gap: 20px; }
.smh-invoice-meta__right { text-align: right; }
.smh-invoice-meta__right p { margin: 3px 0; font-size: 13px; }
.smh-invoice-bill { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 24px; font-size: 13px; line-height: 1.6; }

/* Payment panel */
.smh-pay-panel { background: #fff; border: 1px solid #e2e4e7; border-radius: 6px; padding: 24px; margin-top: 24px; }
.smh-pay-panel h3 { margin-top: 0; }
.smh-pay-panel__note { color: #50575e; margin-bottom: 16px; font-size: 13px; }

/* Gateway tabs */
.smh-gateway-tabs { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.smh-tab-btn { padding: 8px 20px; border: 2px solid #2271b1; border-radius: 4px; background: transparent; color: #2271b1; font-weight: 600; cursor: pointer; }
.smh-tab-btn--active { background: #2271b1; color: #fff; }
.smh-gateway-panel { padding: 12px 0; }

/* Payment message */
#smh-pay-message { padding: 12px 16px; border-radius: 4px; margin-top: 12px; font-weight: 600; }
.smh-msg--ok  { background: #d8f1dc; color: #00672b; }
.smh-msg--err { background: #fde8e8; color: #8a2424; }

/* Utility */
.smh-hidden { display: none; }
.smh-error  { color: #8a2424; padding: 16px; background: #fde8e8; border-radius: 4px; }

/* No-print */
@media print { .smh-no-print { display: none !important; } }

/* ── Mobile card-stacking for all client tables ──────────────────────────── */
@media (max-width: 600px) {

    /* ── sph-table: hub dashboard "Recent Invoices" ── */
    .sph-table-wrap { overflow: visible; border-radius: 8px; }
    .sph-table-wrap .sph-table thead { display: none; }
    .sph-table-wrap .sph-table,
    .sph-table-wrap .sph-table tbody { display: block; }
    .sph-table-wrap .sph-table tbody tr {
        display: block;
        padding: 12px 14px;
        border-bottom: 1px solid #f3f4f6;
    }
    .sph-table-wrap .sph-table tbody tr:last-child { border-bottom: none; }
    .sph-table-wrap .sph-table tbody tr:hover td { background: transparent; }
    .sph-table-wrap .sph-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border: none;
        font-size: 13px;
    }
    .sph-table-wrap .sph-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #9ca3af;
        flex-shrink: 0;
        margin-right: 12px;
        min-width: 80px;
    }
    .sph-table-wrap .sph-table tbody td[data-label=""] {
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #f3f4f6;
    }
    .sph-table-wrap .sph-table tbody td[data-label=""]::before { display: none; }

    /* ── smh-table: account statement + invoice payment history ── */
    .smh-table-scroll .smh-table { min-width: unset; }
    .smh-table-scroll .smh-table thead { display: none; }
    .smh-table-scroll .smh-table,
    .smh-table-scroll .smh-table tbody { display: block; }
    .smh-table-scroll .smh-table tbody tr {
        display: block;
        padding: 12px;
        border: 1px solid #e5e7eb;
        border-radius: 6px;
        margin-bottom: 8px;
        background: #fff;
    }
    .smh-table-scroll .smh-table tbody tr:hover td { background: transparent; }
    .smh-table-scroll .smh-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px 0;
        border: none;
        font-size: 13px;
        text-align: left !important;
    }
    .smh-table-scroll .smh-table tbody td::before {
        content: attr(data-label);
        font-size: 11px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: .04em;
        color: #9ca3af;
        flex-shrink: 0;
        margin-right: 12px;
        min-width: 80px;
    }
    .smh-table-scroll .smh-table tbody td[data-label=""] {
        justify-content: flex-end;
        padding-top: 8px;
        border-top: 1px solid #f3f4f6;
    }
    .smh-table-scroll .smh-table tbody td[data-label=""]::before { display: none; }

    /* tfoot summary rows (invoice line-items totals) */
    .smh-table-scroll .smh-table tfoot { display: block; padding: 0 12px; background: #fff; border: 1px solid #e5e7eb; border-radius: 0 0 6px 6px; border-top: 2px solid #ddd; }
    .smh-table-scroll .smh-table tfoot tr {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px 0;
        border-top: 1px solid #eee;
    }
    .smh-table-scroll .smh-table tfoot tr:first-child { border-top: none; }
    .smh-table-scroll .smh-table tfoot td {
        border: none !important;
        padding: 0 !important;
    }
    .smh-table-scroll .smh-table tfoot td[colspan] {
        flex: 1;
        text-align: left !important;
    }
    .smh-table-scroll .smh-table tfoot td:not([colspan]) {
        text-align: right !important;
        white-space: nowrap;
        font-weight: 600;
    }
    .smh-table-scroll .smh-table tfoot .smh-total-row td { background: transparent; font-weight: 700; }
}

@media (max-width: 600px) {
    .smh-hub { padding: 0 12px; }
    .smh-hub__header { flex-direction: column; align-items: flex-start; gap: 10px; }
    .smh-hub__header h2 { font-size: 18px; }
    .smh-hub__header-actions { flex-wrap: wrap; }

    .smh-balance-strip { flex-direction: column; }
    .smh-balance-strip__item { border-right: none; border-bottom: 1px solid #e2e4e7; }

    .smh-invoice-body { padding: 18px 14px; }
    .smh-invoice-meta,
    .smh-invoice-bill { flex-direction: column; }
    .smh-invoice-meta__right { text-align: left; }

}

/* ══ Client commission card ══════════════════════════════════════════════════ */

.sph-commission-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #064e3b 0%, #065f46 100%);
    color: #fff;
    border-radius: 8px;
    padding: 16px 20px;
}
.sph-commission-card__icon {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sph-commission-card__body { flex: 1; min-width: 0; }
.sph-commission-card__label {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.7);
    margin-bottom: 2px;
}
.sph-commission-card__value {
    font-size: 24px;
    font-weight: 800;
    line-height: 1.1;
    color: #6ee7b7;
    margin-bottom: 4px;
}
.sph-commission-card__note {
    font-size: 12px;
    color: rgba(255,255,255,.65);
    line-height: 1.4;
}

/* ══ Portal guide banner ═════════════════════════════════════════════════════ */

.sph-guide-banner {
    display: flex;
    align-items: center;
    gap: 14px;
    background: linear-gradient(135deg, #1e3a5f 0%, #0f2140 100%);
    color: #fff;
    border-radius: 8px;
    padding: 14px 18px;
    margin-bottom: 20px;
}
.sph-guide-banner__icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.sph-guide-banner__text {
    flex: 1;
    min-width: 0;
    line-height: 1.35;
}
.sph-guide-banner__text strong {
    display: block;
    font-size: 14px;
    font-weight: 700;
}
.sph-guide-banner__text span {
    font-size: 12px;
    color: rgba(255,255,255,.72);
}
.sph-guide-banner__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.3);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.sph-guide-banner__btn:hover { background: rgba(255,255,255,.28); }

/* ══ Portal guide modal ══════════════════════════════════════════════════════ */

.sph-gmodal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.sph-gmodal[hidden] { display: none; }
.sph-gmodal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.78);
}
.sph-gmodal__box {
    position: relative;
    z-index: 1;
    background: #111827;
    border-radius: 12px;
    width: 100%;
    max-width: 820px;
    box-shadow: 0 24px 64px rgba(0,0,0,.55);
    overflow: hidden;
}
.sph-gmodal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    background: rgba(255,255,255,.18);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: 5px 14px 5px 10px;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .03em;
    transition: background .15s;
    white-space: nowrap;
}
.sph-gmodal__close:hover { background: rgba(255,255,255,.3); }
.sph-gmodal__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 100px 14px 20px;
    flex-wrap: wrap;
    gap: 10px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.sph-gmodal__head h3 {
    margin: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
}
.sph-gmodal__tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.sph-gmodal__tab {
    padding: 5px 16px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,.3);
    background: transparent;
    color: rgba(255,255,255,.7);
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
}
.sph-gmodal__tab:hover { background: rgba(255,255,255,.12); color: #fff; }
.sph-gmodal__tab.is-active {
    background: #c8102e;
    border-color: #c8102e;
    color: #fff;
    font-weight: 600;
}
.sph-gmodal__player { line-height: 0; }
.sph-gmodal__iframe-wrap {
    position: relative;
    padding-bottom: 56.25%;
    background: #000;
}
.sph-gmodal__iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 500px) {
    .sph-guide-banner { flex-wrap: wrap; }
    .sph-guide-banner__btn { width: 100%; justify-content: center; }
    .sph-gmodal { padding: 8px; }
    .sph-gmodal__head { padding: 12px 48px 12px 14px; }
}
