/* COA Crypto — Twitter-style board */
#coa-crypto-view,
.coa-crypto-view {
    display: none;
    min-height: 100vh;
    padding: 80px 0 2.5rem;
    box-sizing: border-box;
    background: transparent;
    color: #fff;
}

html.xn-route-crypto #coa-crypto-view,
html.xn-route-crypto .coa-crypto-view,
body.view-crypto #coa-crypto-view,
body.view-crypto .coa-crypto-view,
#coa-crypto-view.is-active,
.coa-crypto-view.is-active {
    display: block !important;
}

.coa-panel { display: none; }
.coa-panel.active { display: block; }

.coa-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20000;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #16161a;
    border: 1px solid #2a2a32;
    border-radius: 999px;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.45);
}

.coa-toast img { width: 22px; height: 22px; object-fit: contain; }

.coa-pump-btn {
    display: inline-flex;
    margin-top: 8px;
    margin-right: 6px;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.coa-pump-btn.neon { background: rgba(0, 186, 124, 0.12); color: #00ba7c; }
.coa-pump-btn.solid { background: #00ba7c; color: #042; }
.coa-pump-btn.outline { border: 1px solid #00ba7c; color: #00ba7c; }
.coa-pump-btn.telegram {
    background: rgba(38, 165, 228, 0.16);
    color: #6ec8f5;
    border: 1px solid rgba(38, 165, 228, 0.45);
}

.coa-hub-wrap {
    padding: 0 0 4rem;
    overflow: visible;
}

.coa-hub {
    min-width: 0;
    overflow: visible;
}

.coa-hub-head {
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.coa-hub-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.coa-hub-nav-btn {
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: rgba(12, 12, 16, 0.75);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 700;
    padding: 0.4rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.coa-hub-nav-btn.is-on,
.coa-hub-nav-btn:hover {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    border-color: transparent;
    color: #000;
}

.coa-hub-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding-bottom: 3rem;
    overflow: visible;
}

.coa-hub-section {
    scroll-margin-top: 100px;
}

.coa-hub-hero {
    padding: 1.25rem 1.35rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid var(--coa-border);
    background: var(--coa-hero-bg);
}

.coa-hub-kicker {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #ffa500;
    margin-bottom: 6px;
}

.coa-hub-hero h3 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-weight: 900;
}

.coa-hub-hero p {
    margin: 0;
    color: var(--coa-muted);
    font-size: 0.88rem;
    line-height: 1.45;
}

.coa-hub-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.coa-hub-step {
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 28, 0.75);
}

.coa-hub-step--buy { border-color: rgba(76, 175, 80, 0.35); }
.coa-hub-step--trade { border-color: rgba(59, 130, 246, 0.35); }
.coa-hub-step--social { border-color: rgba(0, 136, 204, 0.35); }

.coa-hub-step-head {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 12px;
}

.coa-hub-step-head h4 {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 800;
}

.coa-hub-step-head p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-hub-badge {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 0.8rem;
    font-weight: 900;
    color: #fff;
}

.coa-hub-badge--buy { background: #4caf50; }
.coa-hub-badge--trade { background: #3b82f6; }
.coa-hub-badge--social { background: #0088cc; }

.coa-hub-card-row,
.coa-hub-social-grid {
    display: grid;
    gap: 8px;
}

.coa-hub-card-row { grid-template-columns: 1fr 1fr; }

.coa-hub-social-grid { grid-template-columns: 1fr 1fr; }

.coa-hub-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    background: rgba(12, 12, 16, 0.65);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.2s, transform 0.15s;
}

.coa-hub-card:hover {
    border-color: rgba(255, 165, 0, 0.55);
    transform: translateY(-1px);
}

.coa-hub-card--pump { border-color: rgba(76, 175, 80, 0.4); }
.coa-hub-card--axiom { border-color: rgba(59, 130, 246, 0.4); }
.coa-hub-card--telegram { border-color: rgba(0, 136, 204, 0.45); }
.coa-hub-card--featured { margin-bottom: 8px; flex-wrap: wrap; }

.coa-hub-card-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 8px;
}

.coa-hub-card-emoji {
    font-size: 1.4rem;
    width: 32px;
    text-align: center;
    flex-shrink: 0;
}

.coa-hub-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.coa-hub-card-text strong {
    font-size: 0.88rem;
    font-weight: 800;
}

.coa-hub-card-text span {
    font-size: 0.72rem;
    color: var(--coa-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.coa-hub-card-arrow {
    color: rgba(255, 165, 0, 0.8);
    font-weight: 800;
    flex-shrink: 0;
}

.coa-hub-official {
    font-size: 0.62rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
}

.coa-hub-highlight {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.04) 100%);
}

.coa-hub-highlight-icon { font-size: 1.5rem; flex-shrink: 0; }

.coa-hub-highlight h4 {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffa500;
}

.coa-hub-highlight p {
    margin: 0;
    font-size: 0.82rem;
    color: var(--coa-muted);
    line-height: 1.45;
}

.coa-hub-section-title {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-weight: 900;
}

.coa-hub-section-desc {
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--coa-muted);
    line-height: 1.45;
}

.coa-hub-story {
    padding: 1rem 1.15rem;
    margin-bottom: 1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 165, 0, 0.22);
    background: rgba(24, 24, 28, 0.75);
}

.coa-hub-story h4 {
    margin: 0 0 8px;
    font-size: 1rem;
    font-weight: 800;
}

.coa-hub-story p {
    margin: 0 0 8px;
    font-size: 0.84rem;
    color: var(--coa-muted);
    line-height: 1.5;
}

.coa-hub-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.coa-hub-phase {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 165, 0, 0.18);
    background: rgba(28, 28, 32, 0.8);
}

.coa-hub-phase-num {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
    font-size: 0.75rem;
    font-weight: 900;
}

.coa-hub-phase-body h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 800;
}

.coa-hub-phase-body p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-hub-flow {
    display: grid;
    gap: 10px;
}

.coa-hub-flow-step {
    padding: 1rem 1.1rem;
    border-radius: 14px;
    border: 1px solid rgba(255, 165, 0, 0.2);
    background: rgba(24, 24, 28, 0.75);
}

.coa-hub-flow-pct {
    display: inline-block;
    font-size: 1.1rem;
    font-weight: 900;
    color: #ffa500;
    margin-bottom: 4px;
}

.coa-hub-flow-step strong {
    display: block;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.coa-hub-flow-step p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-hub-flow-target {
    text-align: center;
    padding: 1rem;
    border-radius: 14px;
    border: 2px dashed rgba(255, 165, 0, 0.4);
    background: rgba(255, 165, 0, 0.06);
    font-size: 0.88rem;
    font-weight: 700;
}

.coa-hub-earn-steps {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 1rem;
}

.coa-hub-earn-step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 165, 0, 0.18);
    background: rgba(28, 28, 32, 0.8);
}

.coa-hub-earn-step > span {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.2);
    color: #ffa500;
    font-weight: 900;
    font-size: 0.8rem;
}

.coa-hub-earn-step h4 {
    margin: 0 0 4px;
    font-size: 0.9rem;
    font-weight: 800;
}

.coa-hub-earn-step p {
    margin: 0;
    font-size: 0.8rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-hub-board-hint {
    font-size: 0.8rem;
    color: var(--coa-muted);
    line-height: 1.45;
    margin: 0 0 1rem;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.15);
    background: rgba(12, 12, 16, 0.5);
}

.coa-hub-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    border-radius: 999px;
    padding: 10px 18px;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
    font-size: 0.88rem;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s, box-shadow 0.2s;
}

.coa-hub-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.35);
}

.coa-hub-cta--large {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
}

@media (max-width: 600px) {
    .coa-hub-card-row,
    .coa-hub-social-grid {
        grid-template-columns: 1fr;
    }

    .coa-hub-nav {
        width: 100%;
    }

    .coa-hub-nav-btn {
        flex: 1 1 auto;
        text-align: center;
        min-width: 0;
    }
}

.coa-rail-backdrop {
    display: none;
}

#coa-crypto-view,
.coa-crypto-view,
.coa-modal {
    --coa-bg: transparent;
    --coa-panel: rgba(22, 22, 26, 0.72);
    --coa-card: rgba(28, 28, 34, 0.88);
    --coa-border: rgba(255, 255, 255, 0.08);
    --coa-border-strong: rgba(255, 255, 255, 0.12);
    --coa-text: #fff;
    --coa-muted: rgba(255, 255, 255, 0.58);
    --coa-accent: #ffa500;
    --coa-accent-2: #ff8c00;
    --coa-up: #4caf50;
    --coa-down: #f44336;
    --coa-gold: #ffc107;
    --coa-radius: 16px;
    --coa-radius-sm: 12px;
    --coa-hero-bg:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 165, 0, 0.12), transparent 55%),
        linear-gradient(160deg, rgba(32, 32, 38, 0.95) 0%, rgba(16, 16, 20, 0.9) 100%);
}

.coa-modal *,
.coa-modal *::before,
.coa-modal *::after { box-sizing: border-box; }

.coa-page-shell {
    min-height: calc(100vh - 80px);
    background: transparent;
    color: #fff;
}

.coa-page-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(0.75rem, 2vw, 1.5rem);
}

.coa-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: clamp(0.75rem, 2vw, 1.75rem);
    min-height: calc(100vh - 100px);
    align-items: start;
}

/* Left rail — slim / modern */
.coa-rail {
    position: sticky;
    top: 88px;
    padding: 0.85rem 0.75rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(16, 16, 20, 0.55);
    border-radius: 14px;
    box-shadow: none;
    backdrop-filter: blur(10px);
    min-height: 0;
}

.coa-rail-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
    padding: 0 4px;
}

.coa-rail-brand-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.coa-rail-close {
    display: none;
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}

.coa-rail-nav-label {
    margin: 10px 4px 6px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.coa-rail-logo {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: -0.04em;
    color: #fff;
    text-decoration: none;
}

.coa-lang {
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}

.coa-lang button {
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.72rem;
    font-weight: 800;
    padding: 6px 10px;
    cursor: pointer;
}

.coa-lang button.is-on {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
}

.coa-level-slim {
    margin-bottom: 8px;
    padding: 10px 11px;
    background: rgba(8, 8, 10, 0.45);
    border: 1px solid var(--coa-border);
    border-radius: var(--coa-radius-sm, 12px);
}

.coa-level-slim.is-capped { border-color: rgba(251, 191, 36, 0.35); }

.coa-level-slim-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    font-size: 0.72rem;
    font-weight: 700;
}

.coa-level-slim-row strong { color: var(--coa-gold); font-size: 0.8rem; }

.coa-level-slim-row span { color: var(--coa-muted); font-size: 0.65rem; font-weight: 600; }

.coa-progress.slim {
    height: 4px;
    background: rgba(255, 255, 255, 0.12);
    border-radius: 99px;
    overflow: hidden;
    margin-top: 6px;
}

.coa-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #ffa500, #ffc107);
    border-radius: 99px;
}

.coa-wallet-slim {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 0;
    padding: 10px 11px;
    background: rgba(8, 8, 10, 0.45);
    border: 1px solid var(--coa-border);
    border-radius: var(--coa-radius-sm, 12px);
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    width: 100%;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s, background 0.15s;
}

.coa-wallet-slim:hover {
    border-color: rgba(255, 165, 0, 0.3);
    background: rgba(8, 8, 10, 0.6);
}

.coa-wallet-bal {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 4px 6px;
    min-width: 0;
    color: #ffa500;
    line-height: 1.25;
}

.coa-wallet-bal img {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    align-self: center;
}

.coa-wallet-amt {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    color: #ffa500;
}

.coa-wallet-unit {
    font-size: 0.78rem;
    font-weight: 800;
    color: rgba(255, 165, 0, 0.92);
}

.coa-wallet-cap {
    flex-basis: 100%;
    margin: 0;
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 650;
    color: var(--coa-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.coa-wallet-slim > em,
.coa-wallet-more,
.coa-wallet-boost {
    font-style: normal;
    color: var(--coa-muted);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
}

.coa-wallet-card { margin-bottom: 12px; }

.coa-goals-link-note {
    margin: 0 0 0.55rem;
    font-size: 0.72rem;
    color: var(--coa-muted);
    line-height: 1.35;
}

.coa-wallet-hint {
    margin: 0 0 0.45rem;
    font-size: 0.72rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-wallet-min {
    margin: 0 0 0.65rem;
    font-size: 0.72rem;
    font-weight: 750;
    color: rgba(255, 165, 0, 0.9);
}

.coa-wallet-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: none;
}

.coa-wallet-panel {
    display: none;
    margin-top: 8px;
    padding: 12px;
    background: rgba(8, 8, 10, 0.5);
    border: 1px solid var(--coa-border);
    border-radius: var(--coa-radius-sm, 12px);
}

.coa-wallet-panel.is-open { display: block; }

.coa-wallet-panel input {
    width: 100%;
    margin-bottom: 8px;
    padding: 9px 11px;
    border-radius: 10px;
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: rgba(8, 8, 10, 0.65);
    color: #fff;
    font: inherit;
    font-size: 0.75rem;
}

.coa-wallet-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
}

.coa-wallet-btn {
    flex: 1;
    min-height: 36px;
    border-radius: 999px;
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
}

.coa-wallet-btn.primary {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
    border-color: transparent;
}

.coa-payout-chip {
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 8px;
    font-size: 0.68rem;
    font-weight: 700;
}

.coa-payout-chip.is-pending {
    background: rgba(255, 165, 0, 0.12);
    color: #ffb84d;
}

.coa-tx-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--coa-muted);
    font-size: 0.68rem;
    font-weight: 700;
    text-align: left;
    padding: 4px 0;
    cursor: pointer;
}

.coa-tx-list {
    display: none;
    margin-top: 6px;
}

.coa-tx-list.is-open { display: block; }

.coa-tx-row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.66rem;
}

.coa-tx-row.is-sent .coa-tx-amt,
.coa-tx-row.is-sent .coa-tx-status { color: #3ddc84; }

.coa-tx-row.is-pending .coa-tx-status { color: #ffb84d; }

.coa-tx-wallet {
    grid-column: 1 / -1;
    color: var(--coa-muted);
    word-break: break-all;
}

.coa-goals { padding: 8px 16px 24px; }

/* —— Shared page system (Home / Goals / Rank / Team) —— */
.coa-page {
    padding: 0 0 2.5rem;
    max-width: 760px;
    display: grid;
    gap: 0.85rem;
}

.coa-page--feed { max-width: none; gap: 0.75rem; }

.coa-page-hero,
.coa-team-hero,
.coa-team-dash-head {
    margin: 0;
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: var(--coa-radius, 16px);
    border: 1px solid var(--coa-border);
    background: var(--coa-hero-bg);
}

.coa-page-hero--row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.coa-kicker,
.coa-team-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 165, 0, 0.85);
}

.coa-page-title,
.coa-team-title,
.coa-feed-head h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.coa-page-intro,
.coa-team-intro {
    margin: 0.45rem 0 0;
    color: var(--coa-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 46ch;
}

.coa-surface {
    padding: 1rem 1.1rem;
    border-radius: var(--coa-radius, 16px);
    border: 1px solid var(--coa-border);
    background: rgba(22, 22, 26, 0.72);
}

.coa-section-title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--coa-muted);
}

.coa-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
}

.coa-stat-chip {
    padding: 0.7rem 0.75rem;
    border-radius: var(--coa-radius-sm, 12px);
    background: rgba(8, 8, 10, 0.4);
    border: 1px solid var(--coa-border);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.coa-stat-chip em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.coa-stat-chip strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.coa-goals-reward-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background:
        radial-gradient(100% 120% at 100% 0%, rgba(255, 165, 0, 0.16), transparent 50%),
        rgba(22, 22, 26, 0.72);
}

.coa-goals-reward-card strong {
    font-size: 1.55rem;
    color: #ffa500;
    letter-spacing: -0.02em;
}

.coa-goals-link-card .coa-field-label,
.coa-field-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.coa-btn {
    appearance: none;
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    white-space: nowrap;
}

.coa-btn.primary,
.coa-team-btn.primary {
    border-color: transparent;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
}

.coa-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.coa-pill-row--sub { margin-top: -0.15rem; }

.coa-pill {
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.76rem;
    font-weight: 650;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    cursor: pointer;
}

.coa-pill.is-on {
    background: rgba(255, 165, 0, 0.16);
    border-color: rgba(255, 165, 0, 0.35);
    color: #ffa500;
}

.coa-goals-intro {
    margin: 0 0 14px;
    color: var(--coa-muted);
    font-size: 0.9rem;
    line-height: 1.45;
}

.coa-goals-reward {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.18), rgba(255, 140, 0, 0.06));
    border: 1px solid rgba(255, 165, 0, 0.35);
}

.coa-goals-reward strong {
    font-size: 1.35rem;
    color: #ffa500;
}

.coa-goals-reward span {
    font-size: 0.78rem;
    color: var(--coa-muted);
}

.coa-goals-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 16px;
}

.coa-goals-stats > div {
    padding: 10px;
    border-radius: 12px;
    background: rgba(18, 18, 22, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.06);
    text-align: center;
}

.coa-goals-stats em {
    display: block;
    font-style: normal;
    font-size: 0.65rem;
    color: var(--coa-muted);
    margin-bottom: 4px;
}

.coa-goals-stats strong {
    font-size: 1.05rem;
    color: #fff;
}

.coa-goals-link label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.coa-goals-link-row {
    display: flex;
    gap: 8px;
    margin: 0;
}

.coa-goals-link-row input {
    flex: 1;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: rgba(8, 8, 10, 0.55);
    color: #fff;
    font-size: 0.82rem;
}

.coa-goals-link-row button,
.coa-goals-link-row .coa-btn {
    border: 0;
    border-radius: 999px;
    padding: 0 1rem;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
    font-weight: 800;
    cursor: pointer;
    white-space: nowrap;
}

.coa-goals-sub {
    margin: 0 0 8px;
    font-size: 0.92rem;
    font-weight: 800;
}

.coa-rank-hint {
    margin: 0;
    padding: 4px 16px 10px;
    color: var(--coa-muted);
    font-size: 0.8rem;
    line-height: 1.4;
}

.coa-rank-row .name { font-weight: 700; }

.coa-rank-row .meta {
    color: var(--coa-muted);
    font-size: 0.78rem;
}

.coa-community-tx {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.coa-community-tx.coa-team-acc {
    border: 1px solid var(--coa-border);
    border-radius: 14px;
    background: rgba(22, 22, 26, 0.65);
    overflow: hidden;
}

.coa-social-dash {
    margin-bottom: 12px;
    padding: 10px;
    border-radius: var(--coa-radius-sm, 12px);
    border: 1px solid var(--coa-border);
    background: rgba(8, 8, 10, 0.4);
}

.coa-community-tx .coa-tx-list { margin-top: 8px; }

.coa-create-btns {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 12px;
}

.coa-create-btns button {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 40px;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    white-space: nowrap;
    visibility: visible !important;
}

.coa-create-btns button.primary {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
    border: 1px solid transparent;
    box-shadow: none;
}

.coa-create-btns button:not(.primary) {
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--coa-border);
}

.coa-create-btns button:hover {
    transform: translateY(-1px);
    filter: brightness(1.08);
}

.coa-create-btns button.is-open {
    outline: 2px solid rgba(255, 165, 0, 0.55);
    outline-offset: 1px;
}

.coa-expand {
    display: none;
    margin-bottom: 12px;
    padding: 12px;
    background: rgba(8, 8, 10, 0.5);
    border: 1px solid var(--coa-border);
    border-radius: var(--coa-radius-sm, 12px);
}

.coa-expand.is-open { display: block; }

.coa-expand h4 {
    margin: 0 0 8px;
    font-size: 0.78rem;
    font-weight: 800;
}

.coa-expand input,
.coa-expand textarea,
.coa-expand select {
    width: 100%;
    margin-bottom: 7px;
    padding: 8px 10px;
    border-radius: 12px;
    border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
    background: rgba(8, 8, 10, 0.55);
    color: #fff;
    font: inherit;
    font-size: 0.82rem;
}

.coa-expand textarea { min-height: 88px; resize: vertical; }

.coa-expand .row { display: flex; gap: 6px; }

.coa-expand .submit {
    width: 100%;
    border: 0;
    border-radius: 999px;
    padding: 10px;
    min-height: 42px;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
    font-weight: 800;
    cursor: pointer;
    box-shadow: none;
}

.coa-nav {
    display: flex;
    flex-direction: column;
    gap: 3px;
    margin-top: 2px;
}

.coa-nav a,
.coa-nav button {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 12px;
    background: transparent;
    color: var(--coa-muted);
    font-size: 0.88rem;
    font-weight: 650;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.coa-nav a:hover,
.coa-nav button:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
}

.coa-nav a.is-on,
.coa-nav button.is-on {
    font-weight: 750;
    background: rgba(255, 255, 255, 0.07);
    color: #fff;
    border-color: var(--coa-border);
}

.coa-nav .dot {
    width: 22px;
    text-align: center;
    font-size: 1.05rem;
}

.coa-guest {
    margin-top: 12px;
    padding: 10px;
    font-size: 0.78rem;
    color: var(--coa-muted);
    line-height: 1.4;
}

.coa-guest a { color: #ffa500; font-weight: 800; }

.coa-mobile-bar {
    display: none;
}

.coa-mobile-tabs {
    display: none;
}

body.coa-rail-open {
    overflow: hidden;
}

/* Stage */
.coa-stage {
    min-width: 0;
    border-left: 0;
}

.coa-feed-head {
    position: sticky;
    top: 80px;
    z-index: 4;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    padding: 1rem 1.1rem;
    background: var(--coa-hero-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--coa-border);
    border-radius: var(--coa-radius, 16px);
    box-shadow: none;
}

.coa-feed-head .coa-kicker { margin-bottom: 0.2rem; }

.coa-feed-head h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.coa-sort {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}

.coa-feed-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.coa-feed-ticker-wrap { display: inline-flex; }

.coa-feed-ticker {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.78rem;
    font-weight: 650;
    padding: 0.35rem 1.7rem 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    max-width: 140px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='rgba(255,255,255,0.55)' d='M0 0l5 6 5-6z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.65rem center;
}

.coa-feed-ticker:focus {
    outline: none;
    border-color: rgba(255, 165, 0, 0.45);
}

.coa-tweet-meta .tick[data-act="filter-ticker"] {
    cursor: pointer;
}

.coa-tweet-meta .tick[data-act="filter-ticker"]:hover {
    text-decoration: underline;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.coa-sort button {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.78rem;
    font-weight: 650;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    cursor: pointer;
    min-height: 34px;
}

.coa-sort button.is-on {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

.coa-feed {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0 0 1rem;
}

.coa-tweet {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    padding: 0.9rem 1rem;
    margin-bottom: 0.45rem;
    background: rgba(22, 22, 26, 0.62);
    border: 1px solid var(--coa-border);
    border-radius: 14px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.coa-tweet:hover {
    transform: none;
    box-shadow: none;
    background: rgba(28, 28, 34, 0.85);
    border-color: var(--coa-border-strong, rgba(255,255,255,0.12));
}

.coa-av {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 165, 0, 0.85);
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 0.8rem;
    color: #1a1a1a;
}

.coa-tweet-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px;
    font-size: 0.92rem;
}

.coa-tweet-meta strong { font-weight: 800; }

.coa-tweet-meta .handle { color: var(--coa-muted); }

.coa-tweet-meta .tick {
    color: var(--coa-accent);
    font-weight: 800;
    font-size: 0.8rem;
}

.coa-tweet h3 {
    margin: 4px 0 2px;
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.3;
}

.coa-tweet p {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.95rem;
    line-height: 1.4;
    white-space: pre-wrap;
}

.coa-tweet-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    max-width: 380px;
}

.coa-tweet-actions button {
    border: 0;
    background: transparent;
    color: var(--coa-muted);
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    padding: 4px 6px;
    border-radius: 999px;
}

.coa-tweet-actions button:hover { background: rgba(255, 165, 0, 0.14); color: #ffa500; }

.coa-tweet-actions button.up.is-on { color: var(--coa-up); }
.coa-tweet-actions button.down.is-on { color: var(--coa-down); }

.coa-buy {
    display: inline-flex;
    margin-top: 8px;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(0, 186, 124, 0.12);
    color: var(--coa-up);
    font-size: 0.75rem;
    font-weight: 800;
    text-decoration: none;
}

.coa-empty {
    padding: 48px 20px;
    text-align: center;
    color: var(--coa-muted);
}

.coa-rank-list { padding: 0; display: grid; gap: 0.45rem; }

.coa-rank-row {
    display: grid;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
    align-items: center;
    padding: 0.75rem 0.85rem;
    background: rgba(8, 8, 10, 0.35);
    border: 1px solid var(--coa-border);
    border-radius: 12px;
    margin-bottom: 0;
}

.coa-rank-row.is-top {
    background: rgba(255, 165, 0, 0.08);
    border-color: rgba(255, 165, 0, 0.22);
}

.coa-rank-row .pos { font-weight: 900; color: var(--coa-gold); }

.coa-overlay {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 24px 12px;
    overflow: auto;
}

.coa-overlay.is-open { display: flex; }

.coa-thread {
    width: min(600px, 100%);
    background: var(--coa-bg);
    border: 1px solid var(--coa-border);
    border-radius: 16px;
    padding: 16px;
}

.coa-thread .close {
    border: 0;
    background: #1a1a20;
    color: #fff;
    border-radius: 999px;
    padding: 6px 12px;
    cursor: pointer;
    font-weight: 800;
}

.coa-cmt {
    padding: 10px 0;
    border-top: 1px solid var(--coa-border);
    font-size: 0.9rem;
}

.coa-cmt-form {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.coa-cmt-composer {
    margin-top: 12px;
}

.coa-cmt-profile-wrap {
    margin-bottom: 8px;
}

.coa-cmt-profile-label {
    display: block;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 4px;
}

.coa-cmt-profile-select {
    width: 100%;
    max-width: 220px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid var(--coa-border, #2a2a32);
    background: #111;
    color: #fff;
    font-size: 0.85rem;
}

.coa-cmt-form input {
    flex: 1;
    padding: 10px 12px;
    border-radius: 999px;
    border: 1px solid var(--coa-border);
    background: #111;
    color: #fff;
}

.coa-cmt-form button {
    border: 2px solid rgba(255, 165, 0, 0.85);
    border-radius: 12px;
    padding: 10px 16px;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
    font-weight: 800;
    cursor: pointer;
}

@media (max-width: 860px) {
    #coa-crypto-view,
    .coa-crypto-view {
        padding-top: 64px;
        padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px));
        padding-left: env(safe-area-inset-left, 0px);
        padding-right: env(safe-area-inset-right, 0px);
    }

    .coa-page-inner {
        padding: 0 0.55rem;
        padding-bottom: 0.5rem;
    }

    .coa-layout {
        display: block;
        min-height: auto;
    }

    .coa-rail-backdrop {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 12040;
        background: rgba(0, 0, 0, 0.6);
        -webkit-tap-highlight-color: transparent;
        border: 0;
        padding: 0;
        margin: 0;
    }

    .coa-rail-backdrop.is-on {
        display: block;
    }

    .coa-rail {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: auto !important;
        z-index: 12050 !important;
        display: flex !important;
        flex-direction: column;
        width: min(340px, 88vw);
        max-width: 340px;
        margin: 0;
        padding: calc(12px + env(safe-area-inset-top, 0px)) 14px calc(24px + env(safe-area-inset-bottom, 0px));
        border: 0;
        border-right: 1px solid var(--coa-border);
        border-radius: 0 18px 18px 0;
        background: rgba(12, 12, 16, 0.99) !important;
        backdrop-filter: blur(18px);
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
        box-shadow: 16px 0 48px rgba(0, 0, 0, 0.55);
        transform: translateX(-108%);
        transition: transform 0.22s ease;
        visibility: hidden;
        pointer-events: none;
    }

    .coa-rail.is-mobile-open {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    .coa-rail-close {
        display: inline-flex !important;
        align-items: center;
        justify-content: center;
    }

    .coa-rail .coa-create-btns {
        display: flex !important;
        flex-direction: column;
        gap: 8px;
        margin: 10px 0 4px;
    }

    .coa-rail .coa-nav {
        gap: 4px;
        margin-bottom: 12px;
    }

    .coa-rail .coa-nav button {
        min-height: 48px;
        font-size: 0.95rem;
        padding: 0.7rem 0.85rem;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.03);
        border-color: rgba(255, 255, 255, 0.06);
    }

    .coa-rail .coa-nav button.is-on {
        background: rgba(255, 165, 0, 0.14);
        border-color: rgba(255, 165, 0, 0.35);
        color: #ffa500;
    }

    .coa-mobile-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        position: sticky;
        top: calc(52px + env(safe-area-inset-top, 0px));
        z-index: 900;
        padding: 8px 10px;
        background: rgba(16, 16, 20, 0.96);
        backdrop-filter: blur(14px);
        border: 1px solid var(--coa-border);
        border-radius: 14px;
        margin-bottom: 0.65rem;
    }

    .coa-mobile-brand {
        font-size: 1.05rem;
        font-weight: 900;
        color: #fff;
        letter-spacing: -0.03em;
    }

    .coa-mobile-menu-btn {
        display: inline-flex !important;
        align-items: center;
        gap: 0.35rem;
        min-height: 40px;
        padding: 0 0.7rem !important;
        border-radius: 999px !important;
        font-size: 0.75rem !important;
        font-weight: 750 !important;
        border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12)) !important;
        background: rgba(255, 255, 255, 0.05) !important;
        color: #fff !important;
        box-shadow: none !important;
    }

    .coa-mobile-menu-icon {
        width: 14px;
        height: 10px;
        display: inline-block;
        background:
            linear-gradient(#fff, #fff) 0 0 / 100% 2px no-repeat,
            linear-gradient(#fff, #fff) 0 4px / 100% 2px no-repeat,
            linear-gradient(#fff, #fff) 0 8px / 100% 2px no-repeat;
    }

    .coa-mobile-bar .actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
    }

    .coa-mobile-bar .actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 40px;
        min-width: 44px;
        padding: 0 0.75rem;
        border-radius: 999px;
        font-size: 0.75rem;
        font-weight: 800;
        cursor: pointer;
        border: 1px solid var(--coa-border-strong, rgba(255,255,255,0.12));
        background: rgba(255, 255, 255, 0.05);
        color: #fff;
        box-shadow: none;
    }

    .coa-mobile-bar .actions button.primary {
        background: linear-gradient(45deg, #ffa500, #ff8c00);
        color: #111;
        border-color: transparent;
    }

    .coa-mobile-tabs {
        display: grid !important;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 2px;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 12030;
        padding: 6px max(4px, env(safe-area-inset-left, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(4px, env(safe-area-inset-right, 0px));
        background: rgba(10, 10, 14, 0.98);
        backdrop-filter: blur(16px);
        border-top: 1px solid var(--coa-border);
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.35);
    }

    .coa-mobile-tabs button {
        appearance: none;
        border: 0;
        background: transparent;
        color: rgba(255, 255, 255, 0.55);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 2px;
        min-height: 52px;
        min-width: 0;
        padding: 4px 2px;
        border-radius: 12px;
        cursor: pointer;
        -webkit-tap-highlight-color: transparent;
    }

    .coa-mobile-tabs button span {
        font-size: 1.15rem;
        line-height: 1;
    }

    .coa-mobile-tabs button em {
        font-style: normal;
        font-size: 0.68rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .coa-mobile-tabs button.is-on {
        color: #ffa500;
        background: rgba(255, 165, 0, 0.12);
    }

    html.xn-route-crypto .mobile-nav-buttons,
    body.view-crypto .mobile-nav-buttons {
        display: none !important;
    }

    .coa-feed-head {
        position: static;
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
        padding: 0.9rem 0.95rem;
    }

    .coa-feed-tools {
        width: 100%;
        justify-content: stretch;
        gap: 0.55rem;
    }

    .coa-feed-ticker-wrap { flex: 1; min-width: 0; }

    .coa-feed-ticker {
        width: 100%;
        max-width: none;
        min-height: 40px;
        font-size: 0.82rem;
        padding: 0.45rem 1.8rem 0.45rem 0.8rem;
    }

    .coa-sort {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }

    .coa-sort button {
        width: 100%;
        min-height: 40px;
        justify-content: center;
        padding: 0.4rem 0.35rem;
        font-size: 0.74rem;
    }

    .coa-tweet {
        grid-template-columns: 36px minmax(0, 1fr);
        padding: 12px;
        margin-bottom: 0.4rem;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .coa-av { width: 36px; height: 36px; font-size: 0.75rem; }

    .coa-tweet-meta {
        flex-wrap: wrap;
        gap: 4px 6px;
        row-gap: 4px;
    }

    .coa-tweet-actions {
        flex-wrap: wrap;
        gap: 4px;
    }

    .coa-tweet-actions button {
        min-height: 36px;
        padding: 0.3rem 0.55rem;
    }

    .coa-page-hero,
    .coa-team-hero,
    .coa-team-dash-head,
    .coa-surface,
    .coa-team-create {
        padding-left: 0.95rem;
        padding-right: 0.95rem;
    }

    .coa-page-title,
    .coa-team-title,
    .coa-feed-head h2 {
        font-size: 1.2rem;
    }

    .coa-goals-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .coa-goals-link-row .coa-btn,
    .coa-goals-link-row button {
        width: 100%;
        min-height: 44px;
    }

    .coa-goals-link-row input {
        font-size: 0.8rem;
        min-height: 44px;
    }

    .coa-stat-row {
        grid-template-columns: 1fr;
    }

    .coa-pill-row {
        width: 100%;
    }

    .coa-pill {
        min-height: 40px;
        flex: 1 1 auto;
        text-align: center;
    }

    .coa-rank-row {
        grid-template-columns: 28px 1fr;
        gap: 8px;
    }

    .coa-rank-row .meta {
        grid-column: 2;
        font-size: 0.72rem;
    }

    .coa-team-row {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .coa-team-row-actions {
        width: 100%;
    }

    .coa-team-row-actions .coa-team-btn {
        flex: 1;
        min-height: 40px;
        justify-content: center;
    }

    .coa-team-goals-grid {
        grid-template-columns: 1fr !important;
    }

    .coa-hub-card-row,
    .coa-hub-social-grid {
        grid-template-columns: 1fr !important;
    }

    .coa-hub-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
    }

    .coa-hub-nav-btn {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .coa-compose-modal,
    .coa-thread-modal,
    .coa-overlay {
        padding: calc(12px + env(safe-area-inset-top, 0px)) 10px calc(16px + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
    }

    .coa-compose-panel,
    .coa-thread-panel,
    .coa-overlay > * {
        width: 100%;
        max-width: none;
        margin: auto 0;
        border-radius: 16px;
        max-height: calc(100dvh - 32px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }

    .coa-compose-submit,
    .coa-team-btn.block,
    .coa-btn.primary {
        min-height: 46px;
    }

    .coa-toast {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        max-width: calc(100vw - 24px);
        left: 50%;
    }
}

@media (max-width: 480px) {
    .coa-mobile-bar {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .coa-mobile-menu-btn span[data-i18n],
    .coa-mobile-menu-btn > span:not(.coa-mobile-menu-icon) {
        display: none;
    }

    .coa-mobile-bar .actions button {
        padding: 0 0.65rem;
        font-size: 0.72rem;
    }

    .coa-mobile-tabs button em {
        font-size: 0.58rem;
    }

    .coa-tweet h3 { font-size: 0.92rem; }

    .coa-tweet-img { max-height: 220px; border-radius: 10px; }

    .coa-page,
    .coa-team {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 640px) {
    .coa-page-hero--row { flex-direction: column; align-items: stretch; }
    .coa-team { padding: 0 0 1.25rem; max-width: none; }
    .coa-team-dash-head { flex-direction: column; align-items: stretch; }
    .coa-team-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .coa-team-stat { min-width: 0; }
    .coa-page { max-width: none; }
}

.coa-thread-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    background: rgba(0, 0, 0, 0.55);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 88px 12px 24px;
    overflow: auto;
}

.coa-thread-modal.is-open { display: flex; }

.coa-compose-modal {
    position: fixed;
    inset: 0;
    z-index: 12001;
    background: rgba(0, 0, 0, 0.65);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px 12px;
    overflow: auto;
}

.coa-compose-modal.is-open { display: flex; }

body.coa-compose-open { overflow: hidden; }

.coa-compose-panel {
    width: min(480px, 100%);
    background: linear-gradient(145deg, rgba(36, 36, 40, 0.98) 0%, rgba(22, 22, 26, 0.98) 100%);
    border: 1px solid rgba(255, 165, 0, 0.28);
    border-radius: 16px;
    padding: 18px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.5);
}

.coa-compose-panel h3 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
}

.coa-compose-body {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.coa-compose-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.72);
    margin-top: 4px;
}

.coa-compose-body input,
.coa-compose-body textarea,
.coa-compose-body select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 165, 0, 0.28);
    background: rgba(18, 18, 22, 0.95);
    color: #fff;
    font: inherit;
    font-size: 0.88rem;
}

.coa-compose-body textarea {
    min-height: 120px;
    resize: vertical;
}

.coa-compose-submit {
    width: 100%;
    margin-top: 8px;
    border: 2px solid rgba(255, 165, 0, 0.85);
    border-radius: 12px;
    padding: 12px;
    min-height: 44px;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #000;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
}

.coa-compose-submit:hover { filter: brightness(1.08); }

.coa-thread-panel {
    width: min(600px, 100%);
    background: linear-gradient(145deg, rgba(36, 36, 40, 0.98) 0%, rgba(22, 22, 26, 0.98) 100%);
    border: 1px solid rgba(255, 165, 0, 0.28);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}

/* Mobile: modal/input polish must live AFTER base modal rules (cascade) */
@media (max-width: 860px) {
    body.coa-compose-open .coa-mobile-tabs,
    body.coa-thread-open .coa-mobile-tabs {
        visibility: hidden;
        pointer-events: none;
    }

    .coa-compose-modal,
    .coa-thread-modal {
        padding: calc(10px + env(safe-area-inset-top, 0px)) 8px calc(12px + env(safe-area-inset-bottom, 0px));
        align-items: stretch;
        justify-content: flex-start;
    }

    .coa-compose-panel,
    .coa-thread-panel {
        width: 100%;
        max-width: none;
        margin: auto 0;
        border-radius: 14px;
        max-height: calc(100dvh - 24px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    .coa-compose-body input,
    .coa-compose-body textarea,
    .coa-compose-body select,
    .coa-cmt-form input,
    .coa-feed-ticker,
    .coa-goals-link-row input,
    .coa-team-field input,
    .coa-team-acc-body input,
    .coa-team-acc-body select {
        font-size: 16px; /* prevent iOS focus zoom */
    }

    .coa-cmt-form {
        flex-direction: column;
        position: sticky;
        bottom: 0;
        padding-top: 8px;
        background: linear-gradient(180deg, transparent, rgba(22, 22, 26, 0.98) 18%);
    }

    .coa-cmt-form input,
    .coa-cmt-form button {
        width: 100%;
        min-height: 46px;
        border-radius: 12px;
    }

    .coa-tweet-actions button {
        min-height: 40px;
        min-width: 40px;
    }

    .coa-modal-close {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .coa-team-create .coa-team-btn,
    .coa-team-acc-body .coa-team-btn {
        min-height: 44px;
    }
}

.coa-thread-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.coa-modal-close {
    border: 0;
    background: #1a1a20;
    color: #fff;
    border-radius: 999px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.coa-rank-period {
    display: flex;
    gap: 6px;
}

.coa-rank-period button {
    border: 1px solid rgba(255, 165, 0, 0.35);
    background: rgba(12, 12, 16, 0.75);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 0.78rem;
    font-weight: 800;
    cursor: pointer;
}

.coa-rank-period button.is-on {
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    border-color: rgba(255, 165, 0, 0.85);
    color: #000;
}

.coa-expand .hint {
    margin: 0 0 8px;
    font-size: 0.72rem;
    color: #8b8b96;
    line-height: 1.35;
}

/* Image posts + social */
.coa-tweet-img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 12px;
    margin: 8px 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.coa-follow-btn {
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 999px;
    cursor: pointer;
    margin-left: 6px;
}

.coa-follow-btn.is-on {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.coa-social-dash-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.coa-social-dash-row button {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: transparent;
    color: #fff;
    border-radius: 10px;
    padding: 8px 6px;
    cursor: pointer;
    text-align: center;
}

.coa-social-dash-row strong {
    display: block;
    font-size: 1rem;
}

.coa-social-dash-row span {
    display: block;
    font-size: 0.65rem;
    color: var(--coa-muted);
}

.coa-social-list {
    margin-top: 8px;
    max-height: 220px;
    overflow: auto;
}

.coa-social-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 6px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.78rem;
}

.coa-compose-preview {
    margin: 8px 0;
    max-height: 160px;
    border-radius: 10px;
    overflow: hidden;
    display: none;
}

.coa-compose-preview.is-on { display: block; }

.coa-compose-preview img {
    width: 100%;
    max-height: 160px;
    object-fit: cover;
}

.coa-image-cost {
    margin: 0 0 8px;
    font-size: 0.72rem;
    color: var(--coa-muted);
}

@media (min-width: 1100px) {
    .coa-layout {
        grid-template-columns: 240px minmax(0, 1fr);
        gap: 2rem;
    }
    .coa-page-inner { max-width: 1320px; }
}

/* —— Team —— */
.coa-team-tag {
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0.15rem 0.5rem;
    border-radius: 999px;
    cursor: pointer;
    line-height: 1.25;
    transition: background 0.15s, border-color 0.15s;
}
.coa-team-tag:hover {
    background: rgba(255, 165, 0, 0.12);
    border-color: rgba(255, 165, 0, 0.35);
    color: #ffa500;
}

.coa-team {
    padding: 4px 4px 2.5rem;
    max-width: 760px;
    display: grid;
    gap: 0.85rem;
}

.coa-team-hero,
.coa-team-dash-head {
    margin: 0;
}

.coa-team-hero,
.coa-team-dash-head {
    margin-bottom: 1.15rem;
    padding: 1.15rem 1.2rem 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        radial-gradient(120% 80% at 0% 0%, rgba(255, 165, 0, 0.12), transparent 55%),
        linear-gradient(160deg, rgba(32, 32, 38, 0.95) 0%, rgba(16, 16, 20, 0.9) 100%);
}

.coa-team-kicker {
    margin: 0 0 0.35rem;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 165, 0, 0.85);
}

.coa-team-title,
.coa-team-name {
    margin: 0 0 0.4rem;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.coa-team-intro {
    margin: 0;
    color: var(--coa-muted);
    font-size: 0.9rem;
    line-height: 1.5;
    max-width: 42ch;
}

.coa-team-create {
    display: grid;
    gap: 0.85rem;
    padding: 1.15rem 1.2rem 1.25rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(24, 24, 28, 0.72);
}

.coa-team-create-top h3 {
    margin: 0 0 0.3rem;
    font-size: 1.05rem;
    font-weight: 750;
}

.coa-team-create-top p {
    margin: 0;
    color: var(--coa-muted);
    font-size: 0.84rem;
    line-height: 1.45;
}

.coa-team-field {
    display: grid;
    gap: 0.35rem;
}

.coa-team-field label,
.coa-team-acc-body label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.48);
}

.coa-team-field input,
.coa-team-field select,
.coa-team-acc-body input,
.coa-team-acc-body select {
    width: 100%;
    box-sizing: border-box;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(8, 8, 10, 0.55);
    color: #fff;
    font-size: 0.92rem;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
}

.coa-team-field input:focus,
.coa-team-field select:focus,
.coa-team-acc-body input:focus,
.coa-team-acc-body select:focus {
    border-color: rgba(255, 165, 0, 0.45);
    background: rgba(8, 8, 10, 0.75);
}

.coa-team-create-foot {
    display: grid;
    gap: 0.75rem;
    margin-top: 0.15rem;
}

.coa-team-cost-pill {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.9rem;
    border-radius: 12px;
    background: rgba(255, 165, 0, 0.08);
    border: 1px solid rgba(255, 165, 0, 0.22);
}

.coa-team-cost-pill span {
    font-size: 0.8rem;
    color: var(--coa-muted);
}

.coa-team-cost-pill strong {
    font-size: 0.95rem;
    color: #ffa500;
    font-variant-numeric: tabular-nums;
}

.coa-team-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    color: #fff;
    font-size: 0.84rem;
    font-weight: 700;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}

.coa-team-btn:hover { background: rgba(255, 255, 255, 0.09); }
.coa-team-btn:active { transform: scale(0.98); }

.coa-team-btn.primary {
    border-color: transparent;
    background: linear-gradient(45deg, #ffa500, #ff8c00);
    color: #111;
}

.coa-team-btn.primary:hover {
    filter: brightness(1.05);
    background: linear-gradient(45deg, #ffa500, #ff8c00);
}

.coa-team-btn.ghost {
    background: transparent;
    color: var(--coa-muted);
}

.coa-team-btn.sm {
    padding: 0.35rem 0.75rem;
    font-size: 0.78rem;
}

.coa-team-btn.block {
    width: 100%;
    justify-self: stretch;
    padding: 0.75rem 1rem;
}

.coa-team-dash-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
}

.coa-team-dash-main { min-width: 0; flex: 1; }

.coa-team-ticker-chip {
    display: inline-flex;
    margin-top: 0.35rem;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.75);
}

.coa-team-stats {
    display: flex;
    gap: 0.55rem;
}

.coa-team-stat {
    min-width: 88px;
    padding: 0.55rem 0.7rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.coa-team-stat em {
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.coa-team-stat strong {
    font-size: 1.15rem;
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.coa-team-stat span {
    font-size: 0.68rem;
    color: var(--coa-muted);
}

.coa-team-acc {
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    margin-bottom: 0.55rem;
    background: rgba(22, 22, 26, 0.65);
    overflow: hidden;
    transition: border-color 0.15s;
}

.coa-team-acc[open] {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(26, 26, 30, 0.82);
}

.coa-team-acc > summary {
    list-style: none;
    cursor: pointer;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    user-select: none;
}

.coa-team-acc > summary::-webkit-details-marker { display: none; }

.coa-team-acc > summary::after {
    content: '';
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    transform: rotate(45deg);
    transition: transform 0.18s ease;
    flex-shrink: 0;
    margin-top: -0.15rem;
}

.coa-team-acc[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: 0.15rem;
}

.coa-team-acc-body {
    padding: 0 1rem 1rem;
    display: grid;
    gap: 0.65rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.85rem;
}

.coa-team-goals-grid {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 640px) {
    .coa-team-goals-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }
}

.coa-team-goal {
    padding: 0.75rem 0.8rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.coa-team-goal-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    font-size: 0.84rem;
    margin-bottom: 0.45rem;
}

.coa-team-goal-head span {
    color: var(--coa-muted);
    font-variant-numeric: tabular-nums;
    font-size: 0.78rem;
}

.coa-team-goal .coa-progress.slim {
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
}

.coa-team-goal .coa-progress-fill {
    border-radius: 999px;
    background: linear-gradient(90deg, #ffa500, #ffc107);
}

.coa-team-goal-meta {
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: var(--coa-muted);
}

.coa-team-goal-meta strong { color: #ffa500; }

.coa-team-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.55rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    font-size: 0.9rem;
}

.coa-team-row:last-child { border-bottom: 0; padding-bottom: 0; }
.coa-team-row:first-child { padding-top: 0; }

.coa-team-row-actions {
    display: flex;
    gap: 0.4rem;
    flex-shrink: 0;
}

.coa-team-member {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
}

.coa-team-av {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    background: rgba(255, 165, 0, 0.15);
    color: #ffa500;
    flex-shrink: 0;
}

.coa-team-role {
    display: inline-block;
    margin-left: 0.4rem;
    font-style: normal;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 165, 0, 0.85);
}

.coa-team-pending {
    font-style: normal;
    font-size: 0.72rem;
    color: var(--coa-muted);
}

.coa-team .muted { color: var(--coa-muted); font-size: 0.82rem; }

.coa-team-sub {
    margin: 0.65rem 0 0.15rem;
    font-size: 0.72rem;
    color: var(--coa-muted);
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.coa-team-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

@media (max-width: 640px) {
    .coa-page-hero--row { flex-direction: column; align-items: stretch; }
    .coa-team { padding: 0 0 1.25rem; max-width: none; }
    .coa-team-dash-head { flex-direction: column; align-items: stretch; }
    .coa-team-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
    .coa-team-stat { min-width: 0; }
    .coa-page { max-width: none; }
}
