/* Solidarity Hub — frontend app shell
 * Matches the client mockup: dark teal-navy app with left sidebar,
 * glass cards, glowing green accents. Light theme = clean equivalent.
 * Theme switches via [data-theme="dark|light"] on .shb-app. */

.shb-app {
    /* Dark (default) */
    --shb-bg:        #0b1d1c;
    --shb-side-bg:   rgba(0, 0, 0, .28);
    --shb-card:      rgba(255, 255, 255, .055);
    --shb-card-brd:  rgba(255, 255, 255, .09);
    --shb-text:      #e8f3f1;
    --shb-muted:     #8fb0ab;
    --shb-accent:    #34d399;
    --shb-accent-dk: #10b981;
    --shb-accent-tx: #06281f;
    --shb-bar-track: rgba(255, 255, 255, .10);
    --shb-input-bg:  rgba(255, 255, 255, .07);
    --shb-input-brd: rgba(255, 255, 255, .14);
    --shb-shadow:    0 14px 44px rgba(0, 0, 0, .5);
    --shb-radius:    16px;

    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    color: var(--shb-text);
    line-height: 1.55;
}
.shb-app[data-theme="light"] {
    --shb-bg:        #f4f7f6;
    --shb-side-bg:   #ffffff;
    --shb-card:      #ffffff;
    --shb-card-brd:  #e3eae8;
    --shb-text:      #11302c;
    --shb-muted:     #5d7a74;
    --shb-accent:    #10b981;
    --shb-accent-dk: #059669;
    --shb-accent-tx: #ffffff;
    --shb-bar-track: #e3eae8;
    --shb-input-bg:  #ffffff;
    --shb-input-brd: #d4dedb;
    --shb-shadow:    0 8px 28px rgba(17, 48, 44, .10);
}

.shb-app *, .shb-app *::before, .shb-app *::after { box-sizing: border-box; }
.shb-app img { max-width: 100%; height: auto; }
.shb-app a { color: var(--shb-accent); }
.shb-mt { margin-top: 18px; }
.shb-muted { color: var(--shb-muted); }

/* ─── App shell ─────────────────────────────────────────────────── */
.shb-shell {
    display: flex;
    background:
        radial-gradient(1200px 500px at 85% -10%, rgba(52, 211, 153, .07), transparent 60%),
        var(--shb-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shb-shadow);
    min-height: 560px;
    border: 1px solid var(--shb-card-brd);
}
.shb-app[data-theme="light"] .shb-shell {
    background: var(--shb-bg);
}

/* Sidebar */
.shb-side {
    width: 218px;
    flex-shrink: 0;
    background: var(--shb-side-bg);
    padding: 24px 14px;
    border-right: 1px solid var(--shb-card-brd);
}
.shb-brand {
    display: flex; align-items: center; gap: 9px;
    font-size: 16px; font-weight: 800; letter-spacing: -.01em;
    margin: 0 8px 26px; color: var(--shb-text);
}
.shb-brand-dot {
    width: 11px; height: 11px; border-radius: 50%;
    background: linear-gradient(135deg, var(--shb-accent-dk), var(--shb-accent));
    box-shadow: 0 0 10px var(--shb-accent);
    flex-shrink: 0;
}
.shb-nav-label {
    font-size: 10px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--shb-muted);
    margin: 0 10px 8px;
}
.shb-nav { display: flex; flex-direction: column; gap: 3px; }
.shb-nav a {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 11px;
    color: var(--shb-muted); text-decoration: none !important;
    font-size: 13.5px; font-weight: 600;
    transition: all .15s;
}
.shb-nav a svg { width: 17px; height: 17px; flex-shrink: 0; }
.shb-nav a:hover { color: var(--shb-text); background: var(--shb-card); }
.shb-nav a.on {
    color: var(--shb-accent);
    background: rgba(52, 211, 153, .10);
}

/* Main column */
.shb-main { flex: 1; min-width: 0; padding: 20px 26px 28px; }

/* Topbar */
.shb-topbar {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 20px;
}
.shb-topbar-spacer { flex: 1; }
.shb-camp-select {
    background: var(--shb-card); color: var(--shb-text);
    border: 1px solid var(--shb-card-brd); border-radius: 10px;
    padding: 7px 12px; font-size: 13px; font-weight: 600;
    font-family: inherit; cursor: pointer; max-width: 250px;
}
.shb-camp-select:focus { outline: none; border-color: var(--shb-accent); }
.shb-app[data-theme="dark"] .shb-camp-select option { background: #11302c; }
.shb-lang-switch {
    display: inline-flex; border: 1px solid var(--shb-card-brd);
    border-radius: 10px; overflow: hidden;
}
.shb-lang-switch button {
    background: transparent; color: var(--shb-muted); border: 0;
    padding: 6px 11px; font-size: 11.5px; font-weight: 800; cursor: pointer;
    letter-spacing: .04em; font-family: inherit;
}
.shb-lang-switch button.on { background: var(--shb-accent); color: var(--shb-accent-tx); }
.shb-theme-toggle {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: 10px; padding: 5px 10px; cursor: pointer; font-size: 14px;
    line-height: 1.4;
}
.shb-app[data-theme="dark"]  .shb-theme-icon-dark  { display: none; }
.shb-app[data-theme="light"] .shb-theme-icon-light { display: none; }
.shb-ava {
    width: 34px; height: 34px; border-radius: 50%;
    background: linear-gradient(135deg, var(--shb-accent-dk), var(--shb-accent));
    color: var(--shb-accent-tx); font-weight: 800; font-size: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.shb-ava svg { width: 17px; height: 17px; }

/* ─── Notices ───────────────────────────────────────────────────── */
.shb-notice {
    padding: 12px 16px; border-radius: 12px; margin-bottom: 18px;
    font-weight: 600; font-size: 14px;
}
.shb-notice-ok   { background: rgba(52, 211, 153, .15); color: var(--shb-accent); border: 1px solid rgba(52, 211, 153, .3); }
.shb-notice-warn { background: rgba(251, 191, 36, .12); color: #fbbf24; border: 1px solid rgba(251, 191, 36, .3); }
.shb-notice-err  { background: rgba(248, 113, 113, .12); color: #f87171; border: 1px solid rgba(248, 113, 113, .3); }

/* ─── Grid of campaign cards ───────────────────────────────────── */
.shb-h2 { font-size: 21px; font-weight: 800; margin: 0 0 16px; letter-spacing: -.02em; color: var(--shb-text); }
.shb-empty { color: var(--shb-muted); }
.shb-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
    margin-bottom: 26px;
}
.shb-cardc {
    background: var(--shb-card);
    border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius);
    overflow: hidden;
    transition: transform .2s, border-color .2s;
    display: flex; flex-direction: column;
}
.shb-cardc:hover { transform: translateY(-4px); border-color: rgba(52, 211, 153, .35); }
.shb-cardc-img { display: block; aspect-ratio: 16/9; overflow: hidden; }
.shb-cardc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.shb-cardc:hover .shb-cardc-img img { transform: scale(1.04); }
.shb-cardc-body { padding: 16px; display: flex; flex-direction: column; gap: 13px; flex: 1; }
.shb-cardc-title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.3; }
.shb-cardc-title a { color: var(--shb-text); text-decoration: none; }
.shb-cardc-title a:hover { color: var(--shb-accent); }
.shb-cardc-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shb-cardc-actions { display: flex; gap: 8px; }

/* ─── Progress bars ────────────────────────────────────────────── */
.shb-progress-bar {
    height: 10px; background: var(--shb-bar-track);
    border-radius: 999px; overflow: hidden;
}
.shb-progress-bar > span {
    display: block; height: 100%;
    background: linear-gradient(90deg, #2563eb, var(--shb-accent-dk) 55%, var(--shb-accent));
    border-radius: 999px;
    transition: width .6s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 0 14px color-mix(in srgb, var(--shb-accent) 60%, transparent);
}
.shb-progress-bar-lg { height: 13px; margin-bottom: 12px; }
.shb-progress-meta {
    display: flex; align-items: baseline; gap: 6px;
    margin-top: 8px; font-size: 13px; flex-wrap: wrap;
}
.shb-progress-meta strong { font-size: 15px; color: var(--shb-text); }
.shb-pct {
    margin-left: auto; font-weight: 800; color: var(--shb-accent);
    background: rgba(52, 211, 153, .12); padding: 2px 9px; border-radius: 999px;
    font-size: 12px;
}

/* ─── Single campaign (thermometer layout) ─────────────────────── */
.shb-back {
    display: inline-block; margin-bottom: 14px; font-size: 13px; font-weight: 600;
    text-decoration: none;
}
.shb-single { display: grid; grid-template-columns: 1.65fr 1fr; gap: 22px; }
.shb-single-main { min-width: 0; }
.shb-eyebrow {
    font-size: 10.5px; font-weight: 800; letter-spacing: .14em;
    text-transform: uppercase; color: var(--shb-muted);
    margin-bottom: 5px;
}
.shb-single-title {
    margin: 0 0 4px; font-size: 27px; font-weight: 800;
    letter-spacing: -.02em; line-height: 1.2; color: var(--shb-text);
}
.shb-single-sub { margin: 0 0 10px; font-size: 13.5px; color: var(--shb-muted); }
.shb-single-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-size: 13px; }
.shb-single-img { border-radius: var(--shb-radius); margin: 20px 0 0; width: 100%; object-fit: cover; max-height: 380px; }
.shb-video { margin: 18px 0 0; border-radius: var(--shb-radius); overflow: hidden; }
.shb-video iframe { width: 100%; aspect-ratio: 16/9; height: auto; display: block; }
.shb-desc { font-size: 14.5px; margin-top: 18px; }
.shb-gallery {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px; margin-top: 16px;
}
.shb-gallery img { border-radius: 10px; aspect-ratio: 1; object-fit: cover; width: 100%; transition: transform .2s; }
.shb-gallery a:hover img { transform: scale(1.04); }

/* Stats row — "Raised: $12,350 USD · Total Goal: $14,000 USD · Donors: 187" */
.shb-stats-row {
    display: flex; gap: 26px; flex-wrap: wrap;
    margin-bottom: 16px; font-size: 13.5px;
}
.shb-stat-l { color: var(--shb-muted); font-weight: 600; }
.shb-stat-n { color: var(--shb-text); font-weight: 800; }

/* Big green thermometer pill */
.shb-thermo-pill {
    display: inline-flex; align-items: center; justify-content: space-between; gap: 16px;
    background: linear-gradient(135deg, var(--shb-accent-dk), var(--shb-accent));
    color: var(--shb-accent-tx);
    border-radius: 999px; padding: 10px 20px;
    font-weight: 800; font-size: 14px;
    min-width: min(300px, 100%);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--shb-accent) 45%, transparent);
    margin-bottom: 20px;
}
.shb-thermo-pct { font-size: 16px; }

/* Badges */
.shb-badge {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.shb-badge-active    { background: rgba(52, 211, 153, .15); color: var(--shb-accent); }
.shb-badge-completed { background: rgba(96, 165, 250, .15); color: #60a5fa; }
.shb-badge-paused    { background: rgba(251, 191, 36, .15); color: #fbbf24; }
.shb-badge-closed,
.shb-badge-draft     { background: rgba(148, 163, 184, .15); color: #94a3b8; }

/* Share row */
.shb-share {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    margin-top: 20px; font-size: 13px; color: var(--shb-muted);
}
.shb-share-btn {
    display: inline-block; padding: 6px 12px; border-radius: 9px;
    font-size: 12px; font-weight: 700; text-decoration: none !important;
    border: 1px solid var(--shb-card-brd); color: var(--shb-text) !important;
    background: var(--shb-card); cursor: pointer; transition: all .15s;
    font-family: inherit;
}
.shb-share-btn:hover { border-color: var(--shb-accent); color: var(--shb-accent) !important; transform: translateY(-1px); }

/* ─── Buttons ──────────────────────────────────────────────────── */
.shb-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    border: 0; border-radius: 12px; padding: 10px 16px;
    font-size: 13.5px; font-weight: 700; cursor: pointer;
    text-decoration: none !important; transition: all .18s;
    font-family: inherit; line-height: 1.2;
}
.shb-btn-primary {
    background: linear-gradient(135deg, #3b82f6, var(--shb-accent-dk));
    color: #fff !important;
    box-shadow: 0 4px 16px rgba(59, 130, 246, .35);
}
.shb-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(59, 130, 246, .45); }
.shb-btn-ghost {
    background: transparent; color: var(--shb-text) !important;
    border: 1px solid var(--shb-card-brd);
}
.shb-btn-ghost:hover { border-color: var(--shb-accent); color: var(--shb-accent) !important; }
.shb-btn-block { width: 100%; }

/* ─── Donate widget ────────────────────────────────────────────── */
.shb-single-side { display: flex; flex-direction: column; gap: 18px; }
.shb-donate {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius); padding: 20px;
    position: sticky; top: 20px;
}
.shb-donate h3 { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--shb-text); }
.shb-donate-done { text-align: center; font-weight: 700; font-size: 15px; }
.shb-amounts {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px;
}
.shb-amount {
    background: var(--shb-input-bg); border: 1px solid var(--shb-input-brd);
    color: var(--shb-text); border-radius: 10px; padding: 10px 6px;
    font-size: 14px; font-weight: 700; cursor: pointer; transition: all .15s;
    font-family: inherit;
}
.shb-amount:hover { border-color: var(--shb-accent); }
.shb-amount.on {
    background: var(--shb-accent); color: var(--shb-accent-tx);
    border-color: var(--shb-accent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--shb-accent) 40%, transparent);
}
.shb-input {
    width: 100%; background: var(--shb-input-bg); border: 1px solid var(--shb-input-brd);
    color: var(--shb-text); border-radius: 10px; padding: 10px 12px;
    font-size: 14px; margin-bottom: 10px; font-family: inherit;
}
.shb-input:focus { outline: none; border-color: var(--shb-accent); }
.shb-input::placeholder { color: var(--shb-muted); }
.shb-anon {
    display: flex; align-items: center; gap: 8px; font-size: 13px;
    color: var(--shb-muted); margin-bottom: 12px; cursor: pointer;
}

/* Payment method toggle */
.shb-methods {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px;
}
.shb-method {
    background: var(--shb-input-bg); border: 1px solid var(--shb-input-brd);
    color: var(--shb-text); border-radius: 10px; padding: 9px 8px;
    font-size: 12.5px; font-weight: 700; cursor: pointer; transition: all .15s;
    font-family: inherit;
}
.shb-method.on {
    border-color: var(--shb-accent); color: var(--shb-accent);
    background: rgba(52, 211, 153, .10);
}
.shb-method-paypal.on { color: #ffc439; border-color: #ffc439; background: rgba(255, 196, 57, .08); }

/* Payment icons row (VISA / MC / AMEX / PayPal) */
.shb-pay-icons {
    display: flex; align-items: center; justify-content: center; gap: 7px;
    margin-top: 10px;
}
.shb-payicon {
    border: 1px solid var(--shb-input-brd); border-radius: 6px;
    padding: 3px 8px; font-size: 9.5px; font-weight: 800;
    color: var(--shb-muted); letter-spacing: .04em;
    display: inline-flex; align-items: center; gap: 2px;
    background: var(--shb-input-bg);
}
.shb-payicon-visa { color: #60a5fa; font-style: italic; }
.shb-payicon-mc i {
    width: 11px; height: 11px; border-radius: 50%; display: inline-block;
}
.shb-payicon-mc i:first-child { background: #eb001b; margin-right: -5px; opacity: .9; }
.shb-payicon-mc i:last-child  { background: #f79e1b; opacity: .9; }
.shb-payicon-amex { color: #93c5fd; }
.shb-payicon-pp   { color: #ffc439; }
.shb-secure-line {
    text-align: center; font-size: 11px; color: var(--shb-muted);
    margin: 8px 0 0;
}
.shb-pay-msg { font-size: 13px; min-height: 18px; color: #f87171; font-weight: 600; margin-top: 6px; }
.shb-signin-hint { font-size: 12px; margin: 10px 0 0; text-align: center; }

/* ─── Activity feed ────────────────────────────────────────────── */
.shb-feed {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius); padding: 16px 18px;
    margin-top: 4px;
}
.shb-feed-title {
    margin: 0 0 12px; font-size: 12px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; color: var(--shb-muted);
    display: flex; align-items: center; gap: 8px;
}
.shb-live-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--shb-accent); display: inline-block;
    animation: shb-blink 1.6s ease-in-out infinite;
    box-shadow: 0 0 8px var(--shb-accent);
}
@keyframes shb-blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.shb-feed-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.shb-feed-item {
    display: flex; align-items: center; gap: 11px;
    padding: 8px 11px; border-radius: 10px; font-size: 13.5px;
    background: var(--shb-input-bg);
    animation: shb-slide-in .35s ease;
}
.shb-feed-item.shb-new { border-left: 3px solid var(--shb-accent); }
@keyframes shb-slide-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.shb-feed-ava {
    width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 800; font-size: 13px; color: #06281f;
    background: var(--ava-bg, var(--shb-accent));
}
.shb-feed-text { flex: 1; min-width: 0; }
.shb-feed-who { font-weight: 700; color: var(--shb-accent); }
.shb-feed-when { color: var(--shb-muted); font-size: 12px; margin-left: 7px; }
.shb-feed-empty { color: var(--shb-muted); padding: 6px 0; }

/* ─── Members table ────────────────────────────────────────────── */
.shb-members {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius); overflow: hidden;
}
.shb-members-head, .shb-members-row {
    display: grid; grid-template-columns: 2.2fr 1fr 1fr 1.2fr;
    gap: 10px; padding: 12px 18px; align-items: center;
}
.shb-members-head {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: .07em; color: var(--shb-muted);
    border-bottom: 1px solid var(--shb-card-brd);
}
.shb-members-row { border-bottom: 1px solid var(--shb-card-brd); font-size: 13.5px; }
.shb-members-row:last-child { border-bottom: 0; }
.shb-members-row:hover { background: var(--shb-input-bg); }
.shb-member-id { display: flex; align-items: center; gap: 10px; min-width: 0; }
.shb-member-id strong { color: var(--shb-accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Responsive ───────────────────────────────────────────────── */
@media (max-width: 920px) {
    .shb-shell { flex-direction: column; }
    .shb-side {
        width: 100%; border-right: 0;
        border-bottom: 1px solid var(--shb-card-brd);
        padding: 14px 14px 10px;
    }
    .shb-brand { margin-bottom: 12px; }
    .shb-nav-label { display: none; }
    .shb-nav { flex-direction: row; overflow-x: auto; gap: 6px; }
    .shb-nav a { white-space: nowrap; padding: 8px 12px; }
    .shb-single { grid-template-columns: 1fr; }
    .shb-donate { position: static; }
}
@media (max-width: 560px) {
    .shb-main { padding: 14px 14px 20px; }
    .shb-grid { grid-template-columns: 1fr; }
    .shb-single-title { font-size: 22px; }
    .shb-stats-row { gap: 14px; font-size: 12.5px; }
    .shb-topbar { flex-wrap: wrap; }
    .shb-camp-select { max-width: 100%; width: 100%; order: 10; }
    .shb-members-head, .shb-members-row { grid-template-columns: 1.8fr 0.7fr 1fr; }
    .shb-members-head span:last-child, .shb-members-row > span:last-child { display: none; }
}

/* ════════════════════════════════════════════════════════════════
   v1.0.1 polish — mature typography, collapsible sidebar, settings
   ════════════════════════════════════════════════════════════════ */

/* ─── Typography refinement ────────────────────────────────────── */
.shb-app {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    font-feature-settings: "kern" 1, "liga" 1;
    font-size: 14.5px;
}
.shb-app[data-font="serif"]   { font-family: Georgia, 'Times New Roman', 'Palatino Linotype', serif; }
.shb-app[data-font="elegant"] { font-family: 'Segoe UI', Candara, 'Trebuchet MS', 'Gill Sans', sans-serif; font-weight: 400; }
.shb-app[data-font="serif"] .shb-single-title,
.shb-app[data-font="serif"] .shb-h2 { letter-spacing: 0; }

/* Large text mode — bumps the reading surfaces */
.shb-app[data-textsize="large"] { font-size: 16px; }
.shb-app[data-textsize="large"] .shb-desc          { font-size: 16.5px; }
.shb-app[data-textsize="large"] .shb-feed-item     { font-size: 15px; }
.shb-app[data-textsize="large"] .shb-input         { font-size: 15.5px; }
.shb-app[data-textsize="large"] .shb-btn           { font-size: 15px; }
.shb-app[data-textsize="large"] .shb-members-row   { font-size: 15px; }
.shb-app[data-textsize="large"] .shb-stats-row     { font-size: 15px; }
.shb-app[data-textsize="large"] .shb-single-title  { font-size: 30px; }
.shb-app[data-textsize="large"] .shb-nav a         { font-size: 15px; }

/* Smooth theme transition */
.shb-shell, .shb-side, .shb-cardc, .shb-donate, .shb-feed, .shb-members,
.shb-set-card, .shb-input, .shb-amount, .shb-method, .shb-opt,
.shb-camp-select, .shb-theme-toggle, .shb-share-btn {
    transition-property: background-color, border-color, color, box-shadow, transform, width, max-height;
    transition-duration: .28s;
    transition-timing-function: ease;
}

/* Accessible focus rings */
.shb-app :focus-visible {
    outline: 2px solid var(--shb-accent);
    outline-offset: 2px;
    border-radius: 8px;
}

/* ─── Sidebar header + collapse toggle ─────────────────────────── */
.shb-side-head {
    display: flex; align-items: center; justify-content: space-between;
    gap: 8px; margin: 0 4px 22px;
}
.shb-side-head .shb-brand { margin: 0; }
.shb-side-toggle {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    color: var(--shb-muted); border-radius: 9px; cursor: pointer;
    width: 28px; height: 28px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.shb-side-toggle svg { width: 14px; height: 14px; transition: transform .28s ease; }
.shb-side-toggle:hover { color: var(--shb-accent); border-color: var(--shb-accent); }
.shb-nav-label-lower { margin-top: 22px; }

/* Burger in topbar */
.shb-burger {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    color: var(--shb-muted); border-radius: 10px; cursor: pointer;
    width: 34px; height: 34px; flex-shrink: 0;
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0;
}
.shb-burger svg { width: 16px; height: 16px; }
.shb-burger:hover { color: var(--shb-accent); border-color: var(--shb-accent); }

/* Collapsed sidebar (desktop): icon rail */
.shb-shell.side-collapsed .shb-side {
    width: 66px;
    padding-left: 10px;
    padding-right: 10px;
}
.shb-shell.side-collapsed .shb-brand-name,
.shb-shell.side-collapsed .shb-nav-label,
.shb-shell.side-collapsed .shb-nav a span { display: none; }
.shb-shell.side-collapsed .shb-side-head { justify-content: center; }
.shb-shell.side-collapsed .shb-brand { display: none; }
.shb-shell.side-collapsed .shb-side-toggle svg { transform: rotate(180deg); }
.shb-shell.side-collapsed .shb-nav { margin-top: 14px; }
.shb-shell.side-collapsed .shb-nav a { justify-content: center; padding: 11px 0; }
.shb-shell.side-collapsed .shb-nav-label-lower { display: none; }

/* Avatar link */
.shb-ava-link { text-decoration: none !important; display: inline-flex; border-radius: 50%; }
.shb-ava-link:hover .shb-ava { box-shadow: 0 0 0 3px rgba(52, 211, 153, .3); }
.shb-ava { transition: box-shadow .2s; }

/* ─── Settings view ────────────────────────────────────────────── */
.shb-set-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
    gap: 18px;
    max-width: 980px;
}
.shb-set-card {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius); padding: 20px;
}
.shb-set-title {
    margin: 0 0 14px; font-size: 13px; font-weight: 800;
    text-transform: uppercase; letter-spacing: .08em; color: var(--shb-muted);
}
.shb-set-sub {
    font-size: 12px; font-weight: 700; color: var(--shb-muted);
    margin-bottom: 8px;
}
.shb-set-hint { font-size: 12px; color: var(--shb-muted); margin: 10px 0 0; }

/* Account row */
.shb-acct { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.shb-acct-ava {
    width: 52px; height: 52px; border-radius: 50%; flex-shrink: 0;
    background: linear-gradient(135deg, var(--shb-accent-dk), var(--shb-accent));
    color: var(--shb-accent-tx); font-weight: 800; font-size: 22px;
    display: inline-flex; align-items: center; justify-content: center;
}
.shb-acct-ava-guest { background: var(--shb-input-bg); color: var(--shb-muted); border: 1px solid var(--shb-input-brd); }
.shb-acct-ava-guest svg { width: 24px; height: 24px; }
.shb-acct-info { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.shb-acct-info strong { font-size: 15.5px; color: var(--shb-text); }
.shb-acct-info .shb-muted { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }

/* Option tiles (language / theme / font / size) */
.shb-opt-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.shb-opt-row-3 { grid-template-columns: repeat(3, 1fr); }
.shb-opt {
    background: var(--shb-input-bg); border: 1.5px solid var(--shb-input-brd);
    color: var(--shb-text); border-radius: 13px; padding: 13px 10px;
    cursor: pointer; font-family: inherit; text-align: center;
    display: flex; flex-direction: column; align-items: center; gap: 7px;
    position: relative;
}
.shb-opt:hover { border-color: var(--shb-accent); transform: translateY(-2px); }
.shb-opt.on {
    border-color: var(--shb-accent);
    background: rgba(52, 211, 153, .09);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--shb-accent) 22%, transparent);
}
.shb-opt.on::after {
    content: '✓';
    position: absolute; top: 7px; right: 9px;
    color: var(--shb-accent); font-weight: 800; font-size: 12px;
}
.shb-opt-main { font-size: 13.5px; font-weight: 700; }
.shb-opt-sub  { font-size: 11px; color: var(--shb-muted); font-weight: 700; letter-spacing: .06em; }

/* Theme preview tiles */
.shb-thm-prev {
    width: 100%; height: 46px; border-radius: 9px; overflow: hidden;
    position: relative; border: 1px solid var(--shb-card-brd);
}
.shb-thm-prev i {
    position: absolute; left: 10px; right: 10px; bottom: 10px; height: 6px;
    border-radius: 3px;
    background: linear-gradient(90deg, #2563eb, #34d399);
}
.shb-thm-prev-dark  { background: linear-gradient(135deg, #0b1d1c, #11302c); }
.shb-thm-prev-light { background: linear-gradient(135deg, #f4f7f6, #ffffff); }

/* Font preview */
.shb-font-prev {
    font-size: 24px; font-weight: 700; line-height: 1;
    color: var(--shb-text);
}

/* Collapsed-mobile behavior: burger hides the nav strip */
@media (max-width: 920px) {
    .shb-side {
        max-height: 220px;
        overflow: hidden;
        transition: max-height .3s ease, padding .3s ease, border-color .3s ease;
    }
    .shb-shell.side-collapsed .shb-side {
        max-height: 0;
        width: 100%;
        padding-top: 0;
        padding-bottom: 0;
        border-bottom-width: 0;
    }
    .shb-side-toggle { display: none; }
    .shb-side-head { margin-bottom: 10px; }
    .shb-shell.side-collapsed .shb-brand { display: flex; }
    .shb-shell.side-collapsed .shb-brand-name { display: inline; }
    .shb-shell.side-collapsed .shb-nav a span { display: inline; }
    .shb-set-grid { grid-template-columns: 1fr; }
    .shb-opt-row-3 { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 921px) {
    .shb-burger { display: none; }
}

/* ─── Auth (login / register) ──────────────────────────────────── */
.shb-auth { display: flex; justify-content: center; padding: 18px 0 26px; }
.shb-auth-card {
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    border-radius: var(--shb-radius); padding: 28px 26px;
    width: 100%; max-width: 400px;
    box-shadow: var(--shb-shadow);
}
.shb-auth-brand {
    display: flex; align-items: center; gap: 9px;
    font-size: 17px; font-weight: 800; color: var(--shb-text);
    justify-content: center; margin-bottom: 6px;
}
.shb-auth-sub {
    text-align: center; font-size: 13px; color: var(--shb-muted);
    margin: 0 0 18px;
}
.shb-auth-tabs {
    display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
    background: var(--shb-input-bg); border: 1px solid var(--shb-input-brd);
    border-radius: 12px; padding: 4px; margin-bottom: 18px;
}
.shb-auth-tabs:has(.shb-auth-tab:only-child) { grid-template-columns: 1fr; }
.shb-auth-tab {
    background: transparent; border: 0; color: var(--shb-muted);
    border-radius: 9px; padding: 8px; font-size: 13px; font-weight: 700;
    cursor: pointer; font-family: inherit; transition: all .18s;
}
.shb-auth-tab.on {
    background: var(--shb-accent); color: var(--shb-accent-tx);
    box-shadow: 0 3px 10px color-mix(in srgb, var(--shb-accent) 35%, transparent);
}
.shb-auth-label {
    display: block; font-size: 12px; font-weight: 700;
    color: var(--shb-muted); margin: 0 0 5px;
}
.shb-auth-pane .shb-input { margin-bottom: 13px; }
.shb-auth-submit { margin-top: 4px; }
.shb-auth-switch {
    text-align: center; font-size: 12.5px; color: var(--shb-muted);
    margin: 14px 0 0;
}
.shb-linklike {
    background: none; border: 0; padding: 0; cursor: pointer;
    color: var(--shb-accent); font-weight: 700; font-size: 12.5px;
    font-family: inherit; text-decoration: underline; text-underline-offset: 2px;
}
.shb-auth-msg {
    min-height: 18px; margin-top: 12px; text-align: center;
    font-size: 13px; font-weight: 600; color: #f87171;
}

/* ════════════════════════════════════════════════════════════════
   Full-page mode + custom dropdown + theme shield + mobile pass
   ════════════════════════════════════════════════════════════════ */

/* ─── Full-page mode (default for [solidarity_hub]) ────────────── */
/* Breaks out of the theme's content column to span the full viewport
   and removes the boxed border/radius so it reads as a real app page. */
.shb-app.shb-full {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}
.shb-app.shb-full .shb-shell {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    min-height: 100vh;
}
body.admin-bar .shb-app.shb-full .shb-shell { min-height: calc(100vh - 32px); }

/* Boxed mode gets a more modern finish */
.shb-app:not(.shb-full) .shb-shell { border-radius: 18px; }

/* ─── Custom campaign dropdown ─────────────────────────────────── */
.shb-dd { position: relative; min-width: 220px; }
.shb-dd-btn {
    width: 100%;
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--shb-card); border: 1px solid var(--shb-card-brd);
    color: var(--shb-text); border-radius: 11px;
    padding: 8px 13px; font-family: inherit;
    font-size: 13px; font-weight: 700; cursor: pointer;
    transition: border-color .18s, box-shadow .18s;
}
.shb-dd-btn:hover { border-color: var(--shb-accent); }
.shb-dd.open .shb-dd-btn {
    border-color: var(--shb-accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--shb-accent) 18%, transparent);
}
.shb-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shb-dd-chev { width: 14px; height: 14px; color: var(--shb-muted); transition: transform .2s; flex-shrink: 0; }
.shb-dd.open .shb-dd-chev { transform: rotate(180deg); }
.shb-dd-list {
    position: absolute; top: calc(100% + 6px); left: 0; right: 0;
    z-index: 80; margin: 0; padding: 6px; list-style: none;
    background: var(--shb-bg);
    border: 1px solid var(--shb-card-brd);
    border-radius: 13px;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
    max-height: 280px; overflow: auto;
    animation: shb-dd-in .16s ease;
}
.shb-app[data-theme="light"] .shb-dd-list { box-shadow: 0 14px 36px rgba(17, 48, 44, .18); background: #fff; }
@keyframes shb-dd-in { from { opacity: 0; transform: translateY(-5px); } to { opacity: 1; transform: none; } }
.shb-dd-list li {
    display: flex; justify-content: space-between; align-items: center; gap: 10px;
    padding: 9px 11px; border-radius: 9px; cursor: pointer;
    font-size: 13px; font-weight: 600; color: var(--shb-text);
    transition: background .14s, color .14s;
}
.shb-dd-list li:hover, .shb-dd-list li:focus-visible {
    background: rgba(52, 211, 153, .12);
    color: var(--shb-accent);
    outline: none;
}
.shb-dd-list li em {
    font-style: normal; font-size: 11px; font-weight: 800;
    color: var(--shb-muted); flex-shrink: 0;
}
.shb-dd-list li:hover em { color: var(--shb-accent); }
.shb-dd-list li.on { color: var(--shb-accent); }
.shb-dd-list li.on::before { content: '✓ '; font-weight: 800; }
.shb-dd-list li.on em { color: var(--shb-accent); }
.shb-dd-list::-webkit-scrollbar { width: 6px; }
.shb-dd-list::-webkit-scrollbar-thumb { background: var(--shb-card-brd); border-radius: 3px; }

/* ─── Theme-bleed shield (kills pink theme hovers inside the app) ─ */
/* WP themes often style a / a:hover globally (the pink). These rules
   lock every link state inside .shb-app to our palette. Specific
   component rules come AFTER the generic one so they win. */
.shb-app a,
.shb-app a:visited { color: var(--shb-accent); text-decoration: none; }
.shb-app a:hover,
.shb-app a:focus { color: var(--shb-accent) !important; }
.shb-app .shb-back:hover { color: var(--shb-accent) !important; }
.shb-app .shb-cardc-title a { color: var(--shb-text) !important; }
.shb-app .shb-cardc-title a:hover { color: var(--shb-accent) !important; }
.shb-app .shb-nav a { color: var(--shb-muted) !important; }
.shb-app .shb-nav a:hover { color: var(--shb-text) !important; background: var(--shb-card); }
.shb-app .shb-nav a.on,
.shb-app .shb-nav a.on:hover { color: var(--shb-accent) !important; background: rgba(52, 211, 153, .10); }
.shb-app .shb-btn-primary,
.shb-app .shb-btn-primary:hover,
.shb-app .shb-btn-primary:focus { color: #fff !important; }
.shb-app .shb-btn-ghost { color: var(--shb-text) !important; }
.shb-app .shb-btn-ghost:hover { color: var(--shb-accent) !important; }
.shb-app .shb-share-btn { color: var(--shb-text) !important; }
.shb-app .shb-share-btn:hover { color: var(--shb-accent) !important; }
.shb-app .shb-ava-link,
.shb-app .shb-ava-link:hover { color: inherit !important; }
.shb-app .shb-signin-hint a:hover { color: var(--shb-accent) !important; text-decoration: underline; }
.shb-app a:hover { box-shadow: none; }

/* ─── Mobile 110% pass ─────────────────────────────────────────── */
@media (max-width: 920px) {
    .shb-dd { flex: 1; min-width: 0; }
    .shb-dd-list { max-height: 240px; }
    .shb-full .shb-shell { min-height: 100dvh; }
}
@media (max-width: 560px) {
    /* iOS: inputs under 16px trigger auto-zoom — prevent it */
    .shb-input, .shb-custom-amount, .shb-dd-btn { font-size: 16px; }
    .shb-topbar { gap: 8px; }
    .shb-burger, .shb-theme-toggle { width: 38px; height: 38px; }
    .shb-ava { width: 38px; height: 38px; }
    .shb-h2 { font-size: 19px; }
    .shb-single-title { font-size: 21px; }
    .shb-single-meta { flex-wrap: wrap; gap: 8px; }
    .shb-thermo-pill { width: 100%; justify-content: space-between; min-width: 0; }
    .shb-stats-row { gap: 12px; font-size: 12.5px; }
    .shb-btn { padding: 12px 14px; }            /* bigger touch targets */
    .shb-amount { padding: 12px 6px; }
    .shb-cardc-actions { width: 100%; }
    .shb-cardc-actions .shb-btn { flex: 1; }
    .shb-share { font-size: 12px; gap: 6px; }
    .shb-share-btn { padding: 8px 11px; }
    .shb-pay-icons { flex-wrap: wrap; }
    .shb-feed { padding: 14px; }
    .shb-set-card { padding: 16px; }
    .shb-opt { padding: 11px 8px; }
    .shb-opt-main { font-size: 12.5px; }
    .shb-auth-card { padding: 22px 16px; max-width: 100%; }
    .shb-members-head, .shb-members-row { padding: 10px 12px; gap: 8px; font-size: 12.5px; }
    .shb-notice { font-size: 13px; padding: 10px 13px; }
    .shb-gallery { grid-template-columns: repeat(3, 1fr); gap: 7px; }
}
@media (max-width: 380px) {
    .shb-amounts { grid-template-columns: repeat(2, 1fr); }
    .shb-opt-row-3 { grid-template-columns: 1fr 1fr; }
    .shb-stats-row { flex-direction: column; gap: 6px; }
}

/* ─── v1.0.1 mobile polish ───────────────────────────────────────
   Production fixes: dropdown contrast, mobile spacing, kill pink Gravatar */

/* Dropdown panel on mobile — make it readable */
@media (max-width: 720px) {
    .shb-dd-list {
        position: fixed !important;
        left: 12px; right: 12px;
        top: auto !important;
        margin-top: 8px;
        min-width: 0;
        max-height: 60vh;
        background: #fff;
        border: 1px solid #cbd5e1;
        border-radius: 14px;
        box-shadow: 0 20px 50px rgba(11, 29, 28, .35);
        z-index: 10010;
        padding: 8px 0;
    }
    .shb-app[data-theme="dark"] .shb-dd-list {
        background: #122624;
        border-color: rgba(255, 255, 255, .15);
    }
    .shb-dd-list li {
        padding: 12px 18px;
        font-size: 15px;
        font-weight: 600;
        border-bottom: 1px solid rgba(0, 0, 0, .04);
    }
    .shb-app[data-theme="dark"] .shb-dd-list li {
        border-bottom-color: rgba(255, 255, 255, .06);
    }
    .shb-dd-list li:last-child { border-bottom: 0; }
    .shb-dd-list li:hover,
    .shb-dd-list li:focus-visible {
        background: rgba(52, 211, 153, .12);
        color: var(--shb-accent);
        outline: none;
    }
}

/* Any avatar (Gravatar img, third-party) defaults to green badge when sized */
.shb-app .avatar:not([src*="gravatar"]) { border-radius: 50%; }
.shb-app img.avatar[src*="d=mp"],
.shb-app img.avatar[src*="d=identicon"],
.shb-app img.avatar[src*="d=wavatar"],
.shb-app img.avatar[src*="d=retro"] {
    /* Stops the pink/colorful Gravatar identicon from leaking through */
    display: none !important;
}

/* Initials badge fallback rendered by SHB_Profile::override_avatar_html */
.shb-avatar-initials {
    background: linear-gradient(135deg, #10b981, #34d399) !important;
    color: #06281f !important;
}
