/* Inclawbate — Dashboard (Single Overview Page) */

.dashboard {
    margin-top: var(--nav-height);
}

/* ── Overview Panel ── */
.dash-overview {
    overflow-y: auto;
    padding: var(--space-2xl);
}
.dash-overview.hidden { display: none; }
.dash-overview-inner {
    max-width: 800px;
    margin: 0 auto;
}

/* Profile card */
.overview-profile-card {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}
.overview-profile-avatar {
    width: 56px; height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--border-subtle);
    flex-shrink: 0;
}
.overview-profile-avatar-fallback {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; font-weight: 800;
    color: var(--lobster-400);
    flex-shrink: 0;
    border: 2px solid var(--border-subtle);
}
.overview-profile-info { flex: 1; min-width: 0; }
.overview-profile-name {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 2px;
}
.overview-profile-handle {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--text-dim);
}
.overview-profile-link {
    padding: 6px 16px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}
.overview-profile-link:hover {
    border-color: var(--lobster-400);
    color: var(--lobster-400);
}

/* Profile credits area */
.profile-credits-area {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
    flex-shrink: 0;
    margin-right: var(--space-md);
}
.profile-sub-row {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-sub-upgrade {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--lobster-300);
    text-decoration: none;
    transition: color 0.15s;
}
.profile-sub-upgrade:hover {
    color: var(--lobster-200);
}
.profile-sub-badge {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
    background: var(--bg-deepest);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-full);
    padding: 2px 10px;
}
.profile-sub-badge.active {
    color: var(--seafoam-300);
    border-color: hsla(172, 32%, 48%, 0.3);
    background: hsla(172, 32%, 48%, 0.08);
}
.profile-credits-row {
    display: flex;
    align-items: center;
    gap: 5px;
}
.profile-credits-count {
    font-family: var(--font-mono);
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--text-primary);
}
.profile-credits-label {
    font-size: 0.75rem;
    color: var(--text-dim);
    font-weight: 600;
}
.profile-credits-refresh {
    background: none;
    border: none;
    color: var(--text-dim);
    font-size: 1rem;
    cursor: pointer;
    padding: 0 2px;
    line-height: 1;
    transition: color 0.2s, transform 0.2s;
    flex-shrink: 0;
}
.profile-credits-refresh:hover { color: var(--seafoam-300); }
.profile-credits-refresh.spinning { animation: spin-refresh 0.6s linear infinite; color: var(--seafoam-300); }
@keyframes spin-refresh { to { transform: rotate(360deg); } }
.profile-credits-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px; height: 16px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
    font-size: 0.6rem;
    font-weight: 700;
    font-style: italic;
    color: var(--text-dim);
    cursor: help;
    position: relative;
    flex-shrink: 0;
}
.profile-credits-tooltip {
    display: none;
    position: absolute;
    bottom: calc(100% + 8px);
    right: -8px;
    width: 220px;
    padding: 10px 12px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 500;
    line-height: 1.45;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    z-index: 10;
    pointer-events: none;
}
.profile-credits-info:hover .profile-credits-tooltip,
.profile-credits-info:focus .profile-credits-tooltip {
    display: block;
}
.profile-buy-btn {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: var(--accent-gradient);
    border: none;
    color: #fff;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s, transform 0.1s;
    white-space: nowrap;
}
.profile-buy-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Stats grid — 3 cards */
.overview-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-2xl);
}
.overview-stat-card {
    text-align: center;
    padding: var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
}
.overview-stat-value {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
    margin-bottom: 4px;
}
.overview-stat-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
}

/* Sections */
.overview-section {
    margin-bottom: var(--space-2xl);
}
.overview-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}
.overview-section-header h3 {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 800;
}
.overview-section-action {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--lobster-400);
    text-decoration: none;
    transition: opacity 0.15s;
}
.overview-section-action:hover { opacity: 0.8; }

/* Claim All buttons in My Tokens header */
.token-header-actions {
    display: flex;
    gap: 6px;
    margin-left: auto;
    margin-right: var(--space-md);
}
.token-claim-all-btn {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    background: hsla(172, 40%, 42%, 0.12);
    border: 1px solid hsla(172, 40%, 42%, 0.35);
    color: var(--seafoam-400);
}
.token-claim-all-btn:hover {
    background: hsla(172, 40%, 42%, 0.22);
    border-color: var(--seafoam-400);
}
.token-claim-all-btn.sol {
    background: hsla(269, 100%, 64%, 0.1);
    border-color: hsla(269, 100%, 64%, 0.3);
    color: #9945ff;
}
.token-claim-all-btn.sol:hover {
    background: hsla(269, 100%, 64%, 0.2);
    border-color: #9945ff;
}
.token-claim-all-btn:disabled { opacity: 0.4; cursor: default; }

/* Tools grid */
.dash-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
}
.dash-tool-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: var(--space-lg) var(--space-md);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s, transform 0.12s;
    cursor: pointer;
}
.dash-tool-card:hover {
    border-color: var(--lobster-400);
    transform: translateY(-1px);
}
.dash-tool-icon {
    font-size: 1.4rem;
    line-height: 1;
}
.dash-tool-name {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-primary);
}
.dash-tool-desc {
    font-size: 0.65rem;
    color: var(--text-dim);
}

/* Items */
.overview-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-sm);
    transition: border-color 0.15s;
}
.overview-item:hover { border-color: var(--border-default); }
.overview-item-info { flex: 1; min-width: 0; }
.overview-item-title {
    font-weight: 700;
    font-size: 0.88rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.overview-item-sub {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 2px;
}
.overview-item-action {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}
.overview-item-action:hover {
    border-color: var(--lobster-400);
    color: var(--lobster-400);
}

/* App actions dropdown */
.app-actions {
    position: relative;
    flex-shrink: 0;
}
.app-actions-toggle {
    appearance: none;
    -webkit-appearance: none;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.app-actions-menu {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 4px);
    min-width: 160px;
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    padding: 4px;
    z-index: 20;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.app-actions-menu.open {
    display: flex;
    flex-direction: column;
}
.app-actions-menu a,
.app-actions-menu button {
    display: block;
    width: 100%;
    padding: 8px 12px;
    background: none;
    border: none;
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.12s, color 0.12s;
}
.app-actions-menu a:hover,
.app-actions-menu button:hover {
    background: var(--bg-card-hover);
    color: var(--text-primary);
}
.app-actions-menu .app-actions-delete:hover {
    color: #ef4444;
}
@media (max-width: 600px) {
    .app-actions-menu {
        position: fixed;
        right: var(--space-md);
        left: var(--space-md);
        top: auto;
        bottom: var(--space-md);
        min-width: auto;
        border-radius: var(--radius-xl);
        padding: var(--space-xs);
    }
    .app-actions-menu a,
    .app-actions-menu button {
        padding: 14px 16px;
        font-size: 0.82rem;
    }
    .edit-details-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .edit-details-modal {
        border-radius: var(--radius-xl) var(--radius-xl) 0 0;
        max-height: 85vh;
        max-width: 100%;
    }
}

/* Publish toggle */
.app-publish-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.app-publish-label {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--text-dim);
    white-space: nowrap;
}
.app-publish-label.is-published { color: var(--seafoam-300); }
.app-publish-switch {
    position: relative;
    width: 32px;
    height: 18px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
    flex-shrink: 0;
}
.app-publish-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--text-dim);
    transition: transform 0.2s, background 0.2s;
}
.app-publish-switch.on {
    background: var(--green-dim);
    border-color: hsla(172, 30%, 56%, 0.3);
}
.app-publish-switch.on::after {
    transform: translateX(14px);
    background: var(--seafoam-300);
}

/* Edit Details Modal */
.edit-details-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}
.edit-details-modal {
    background: var(--bg-elevated);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: var(--space-lg);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 16px 48px rgba(0,0,0,0.5);
    -webkit-overflow-scrolling: touch;
}
.edit-details-header {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}
.edit-details-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-sm);
}
.edit-details-input {
    display: block;
    width: 100%;
    margin-top: 4px;
    padding: 8px 12px;
    background: var(--bg-deepest);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.85rem;
    outline: none;
    transition: border-color 0.15s;
}
.edit-details-input:focus {
    border-color: var(--lobster-400);
}
.edit-details-textarea {
    min-height: 70px;
    resize: vertical;
}
select.edit-details-input {
    appearance: auto;
    cursor: pointer;
}
.edit-details-actions {
    display: flex;
    gap: var(--space-sm);
    justify-content: flex-end;
    margin-top: var(--space-md);
}
.edit-details-cancel,
.edit-details-save {
    padding: 7px 18px;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.edit-details-cancel {
    background: transparent;
    border: 1px solid var(--border-default);
    color: var(--text-secondary);
}
.edit-details-cancel:hover { opacity: 0.8; }
.edit-details-save {
    background: var(--lobster-400);
    color: #fff;
}
.edit-details-save:hover { opacity: 0.85; }
.edit-details-save:disabled { opacity: 0.5; cursor: default; }

/* Empty state */
.overview-empty {
    text-align: center;
    padding: var(--space-xl);
    color: var(--text-dim);
    font-size: 0.85rem;
}
.overview-empty a {
    color: var(--lobster-400);
    text-decoration: none;
    font-weight: 700;
}
.overview-empty a:hover { text-decoration: underline; }

/* ── Project Cards ── */
.project-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 8px 10px;
    margin-bottom: 4px;
    transition: border-color 0.15s;
}
.project-card:hover { border-color: var(--border-default); }

.project-card-header {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}
.project-card-icon {
    width: 22px; height: 22px;
    border-radius: 4px;
    background: linear-gradient(135deg, hsla(9, 40%, 40%, 0.2), hsla(172, 30%, 40%, 0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 0.7rem; font-weight: 800;
    color: var(--lobster-300);
    flex-shrink: 0;
}
.project-card-logo {
    width: 22px; height: 22px;
    border-radius: 4px;
    object-fit: cover;
    flex-shrink: 0;
}
.project-card-title {
    display: flex;
    align-items: baseline;
    gap: 4px;
    min-width: 0;
}
.project-card-name {
    font-weight: 800;
    font-size: 0.78rem;
    white-space: nowrap;
    line-height: 1;
}
.project-card-symbol {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    white-space: nowrap;
}
.project-card-addr-inline {
    font-family: var(--font-mono);
    font-size: 0.6rem;
    color: var(--text-dim);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 2px;
}
.project-card-time {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    color: var(--text-dim);
    flex-shrink: 0;
}
.project-card-badges {
    display: flex;
    gap: var(--space-xs);
    flex-shrink: 0;
}

.project-status-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.48rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 1px 5px;
    border-radius: var(--radius-full);
    line-height: 1.4;
}
.project-status-badge.active {
    color: var(--seafoam-400);
    background: hsla(172, 60%, 45%, 0.12);
}
.project-status-badge.pending {
    color: hsl(40, 80%, 55%);
    background: hsla(40, 80%, 55%, 0.12);
}
.project-status-badge.rejected {
    color: #ef4444;
    background: hsla(0, 70%, 50%, 0.12);
}

.chain-badge-base {
    color: #3b82f6;
    background: hsla(217, 91%, 60%, 0.12);
}
.chain-badge-solana {
    color: #9945ff;
    background: hsla(269, 100%, 64%, 0.12);
}

.project-tier-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    color: var(--text-dim);
    background: hsla(240, 10%, 50%, 0.1);
}

.project-card-meta {
    display: none; /* replaced by inline header layout */
}
.project-card-address {
    color: var(--lobster-400);
    text-decoration: none;
    transition: opacity 0.15s;
}
.project-card-address:hover { opacity: 0.8; }
.project-card-copy {
    background: none;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 0.55rem;
    padding: 0 1px;
    transition: color 0.15s;
}
.project-card-copy:hover { color: var(--text-primary); }

/* Price row */
.project-card-price {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 2px;
    font-family: var(--font-mono);
    font-size: 0.65rem;
}
.project-card-price .price-value {
    font-weight: 800;
    color: var(--text-primary);
    font-size: 0.72rem;
}
.project-card-price .price-change {
    font-weight: 700;
    font-size: 0.6rem;
}
.project-card-price .price-change.up {
    color: var(--seafoam-400, #34d399);
}
.project-card-price .price-change.down {
    color: #ef4444;
}
.project-card-price .price-liq {
    color: var(--text-dim);
    font-size: 0.58rem;
    margin-left: auto;
}

/* LP Fees banner (wallet-level) */
.lp-fees-banner {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    margin-bottom: 6px;
    padding: var(--space-sm) var(--space-md);
    background: hsla(172, 40%, 42%, 0.08);
    border: 1px solid hsla(172, 40%, 42%, 0.25);
    border-radius: var(--radius-md);
}
.lp-fees-icon {
    font-size: 0.95rem;
    line-height: 1;
}
.lp-fees-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.lp-fees-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--seafoam-400);
}
.lp-fees-amounts {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-primary);
}
.lp-fees-claim-btn {
    padding: 5px 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, hsl(172, 40%, 42%), hsl(172, 50%, 35%));
    color: #fff;
    border: none;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}
.lp-fees-claim-btn:hover { opacity: 0.85; }
.lp-fees-claim-btn:disabled { opacity: 0.4; cursor: default; }
.lp-fees-subtitle {
    font-size: 0.58rem;
    color: var(--text-dim);
    font-family: var(--font-mono);
}

/* Per-token fee estimate row */
.project-card-fee-estimate {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 3px 6px;
    font-family: var(--font-mono);
    font-size: 0.6rem;
    background: hsla(172, 30%, 40%, 0.06);
    border-radius: 4px;
    margin-bottom: 4px;
}
.fee-estimate-value {
    color: var(--seafoam-400, #34d399);
    font-weight: 700;
}
.fee-estimate-value.fee-none {
    color: var(--text-dim);
    font-weight: 400;
}
.fee-estimate-vol {
    color: var(--text-dim);
    font-size: 0.55rem;
    margin-left: auto;
}

/* Chart embed */
.project-card-chart {
    margin-top: 4px;
    border-radius: 4px;
    overflow: hidden;
}
.project-card-chart iframe {
    width: 100%;
    height: 220px;
    border: none;
    border-radius: 4px;
    background: var(--bg-card);
}

.project-card-actions {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    align-items: center;
    margin-top: 4px;
}
.user-project-chip {
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(255,255,255,0.06);
    color: var(--text-dim);
    border: 1px solid var(--border-subtle);
    font-family: var(--font-mono);
}
.project-card-action {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: 6px;
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    line-height: 1.2;
}
.project-card-action:hover {
    border-color: var(--lobster-400);
    color: var(--lobster-400);
}
.project-card-action.buy {
    border-color: hsla(145, 60%, 45%, 0.4);
    color: hsl(145, 60%, 55%);
}
.project-card-action.buy:hover {
    border-color: hsl(145, 60%, 55%);
    background: hsla(145, 60%, 45%, 0.1);
    color: hsl(145, 60%, 65%);
}
.project-card-action.primary {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
}
.project-card-action.primary:hover { opacity: 0.85; }
.project-card-action.claim-single-btn {
    border-color: hsla(172, 40%, 42%, 0.4);
    color: hsl(172, 40%, 55%);
    background: hsla(172, 40%, 42%, 0.08);
}
.project-card-action.claim-single-btn:hover {
    border-color: hsl(172, 40%, 55%);
    background: hsla(172, 40%, 42%, 0.18);
    color: hsl(172, 40%, 65%);
}

/* ── Allocation Section ── */
.project-allocation-section {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}
.allocation-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
}
.allocation-row .alloc-label {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-secondary);
}
.allocation-countdown {
    color: hsl(40, 80%, 55%);
    font-size: 0.72rem;
}
.allocation-claimable {
    color: var(--seafoam-400);
    font-size: 0.72rem;
}
.allocation-claimed-badge {
    color: var(--text-dim);
    font-size: 0.72rem;
    opacity: 0.7;
}
.allocation-claim-btn {
    display: block;
    width: 100%;
    margin-top: var(--space-sm);
    padding: 10px;
    background: linear-gradient(135deg, hsl(172, 40%, 42%), hsl(172, 50%, 35%));
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.allocation-claim-btn:hover { opacity: 0.85; }
.allocation-claim-btn:disabled { opacity: 0.4; cursor: default; }
.allocation-result {
    margin-top: var(--space-sm);
    font-size: 0.78rem;
    text-align: center;
}
.allocation-result.success { color: var(--seafoam-400); }
.allocation-result.error { color: #ef4444; }
.project-allocation-section.claimed {
    opacity: 0.6;
}

/* ── Staking Pool Cards ── */
.staking-pool-card {
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    margin-bottom: var(--space-sm);
    transition: border-color 0.15s;
}
.staking-pool-card:hover { border-color: var(--border-default); }

.staking-pool-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    margin-bottom: var(--space-md);
}
.staking-pool-icon {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, hsla(9, 40%, 40%, 0.2), hsla(172, 30%, 40%, 0.2));
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem; font-weight: 800;
    color: var(--lobster-300);
    flex-shrink: 0;
}
.staking-pool-logo {
    width: 40px; height: 40px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}
.staking-pool-title {
    flex: 1; min-width: 0;
}
.staking-pool-name {
    font-weight: 800;
    font-size: 0.92rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.staking-pool-symbol {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--text-dim);
}

.staking-pool-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}
.staking-pool-stat {
    text-align: center;
    padding: var(--space-sm);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}
.staking-pool-stat-val {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary);
}
.staking-pool-stat-label {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-top: 2px;
}

.staking-pool-actions {
    display: flex;
    gap: var(--space-sm);
}
.staking-pool-fund-btn {
    flex: 1;
    padding: var(--space-sm) var(--space-md);
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.staking-pool-fund-btn:hover { opacity: 0.85; }
.staking-pool-view-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
}
.staking-pool-view-btn:hover {
    border-color: var(--lobster-400);
    color: var(--lobster-400);
}

/* Fund Modal */
.fund-modal-overlay {
    position: fixed;
    inset: 0;
    background: hsla(240, 20%, 3%, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl);
    animation: dashFadeIn 0.2s ease;
}
.fund-modal {
    position: relative;
    z-index: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 460px;
    padding: var(--space-2xl) var(--space-xl);
    box-shadow: 0 16px 48px hsla(240, 10%, 3%, 0.7);
    animation: dashModalIn 0.25s cubic-bezier(0.22, 1, 0.36, 1);
    isolation: isolate;
}
.fund-modal-header {
    margin-bottom: var(--space-lg);
}
.fund-modal-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 2px;
}
.fund-modal-pool {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--text-dim);
    letter-spacing: 0.04em;
}
.fund-modal-balance-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 10px 14px;
    margin-bottom: var(--space-lg);
}
.fund-modal-balance-label {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.fund-modal-balance-val {
    font-family: var(--font-mono);
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--seafoam-300, #5eead4);
}
.fund-modal-field {
    margin-bottom: var(--space-md);
}
.fund-modal-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: 6px;
}
.fund-modal-input-wrap {
    position: relative;
}
.fund-modal-input {
    width: 100%;
    padding: 12px 80px 12px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 1.05rem;
    font-weight: 700;
    outline: none;
    -moz-appearance: textfield;
}
.fund-modal-input::-webkit-outer-spin-button,
.fund-modal-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.fund-modal-input:focus { border-color: var(--lobster-400); }
.fund-modal-input::placeholder { color: var(--text-dim); font-weight: 400; }
.fund-modal-input-suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-dim);
    pointer-events: none;
}
.fund-modal-usd {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
    min-height: 1.2em;
}
.fund-modal-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    appearance: none;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    margin-top: 10px;
    background-image: linear-gradient(var(--lobster-400, #f87171), var(--lobster-400, #f87171));
    background-size: var(--fill, 0%) 100%;
    background-repeat: no-repeat;
}
.fund-modal-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lobster-400, #f87171);
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 0 6px hsla(0, 70%, 60%, 0.4);
    cursor: grab;
    transition: transform 0.1s;
}
.fund-modal-slider::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}
.fund-modal-slider::-webkit-slider-thumb:active {
    cursor: grabbing;
    transform: scale(1.2);
}
.fund-modal-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--lobster-400, #f87171);
    border: 2px solid var(--bg-elevated);
    box-shadow: 0 0 6px hsla(0, 70%, 60%, 0.4);
    cursor: grab;
}
.fund-modal-slider::-moz-range-progress {
    background: var(--lobster-400, #f87171);
    border-radius: 3px;
    height: 100%;
}
.fund-modal-pct-row {
    display: flex;
    gap: 6px;
    margin-top: 8px;
}
.fund-modal-pct {
    flex: 1;
    padding: 6px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.fund-modal-pct:hover {
    border-color: var(--lobster-400);
    color: var(--text-primary);
}
.fund-modal-dur-row {
    display: flex;
    gap: 6px;
}
.fund-modal-dur {
    flex: 1;
    padding: 8px 0;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.fund-modal-dur:hover {
    border-color: var(--border-bright);
    color: var(--text-primary);
}
.fund-modal-dur.active {
    background: hsla(var(--lobster-hue, 12), 60%, 55%, 0.15);
    border-color: var(--lobster-400);
    color: var(--lobster-300, #fca5a5);
}
.fund-modal-summary {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--seafoam-300, #5eead4);
    text-align: center;
    min-height: 1.2em;
    margin-bottom: var(--space-sm);
}
.fund-modal-hint {
    font-size: 0.72rem;
    color: var(--text-dim);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
    text-align: center;
}
.fund-modal-actions {
    display: flex;
    gap: var(--space-sm);
}
.fund-modal-submit {
    flex: 1;
    padding: 12px;
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: opacity 0.15s;
}
.fund-modal-submit:hover { opacity: 0.85; }
.fund-modal-submit:disabled { opacity: 0.4; cursor: default; }
.fund-modal-cancel {
    padding: 12px var(--space-lg);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
}
.fund-modal-result {
    margin-top: var(--space-md);
    font-size: 0.82rem;
    text-align: center;
}
.fund-modal-result.success { color: var(--seafoam-400); }
.fund-modal-result.error { color: #ef4444; }

/* Paused badge */
.staking-pool-paused-badge {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: hsl(40, 80%, 55%);
    background: hsla(40, 80%, 55%, 0.12);
    padding: 2px 8px;
    border-radius: var(--radius-full);
    margin-left: var(--space-sm);
    vertical-align: middle;
}

/* Pause button */
.staking-pool-pause-btn {
    padding: var(--space-sm) var(--space-md);
    background: transparent;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s;
}
.staking-pool-pause-btn:hover {
    border-color: hsl(40, 80%, 55%);
    color: hsl(40, 80%, 55%);
}
.staking-pool-pause-btn.is-unpause:hover {
    border-color: var(--seafoam-400);
    color: var(--seafoam-400);
}
.staking-pool-pause-btn:disabled { opacity: 0.4; cursor: default; }

/* Pool Analytics */
.staking-pool-analytics {
    margin-bottom: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-card);
    border-radius: var(--radius-md);
}
.analytics-summary {
    display: flex;
    gap: var(--space-lg);
    margin-bottom: var(--space-sm);
}
.analytics-metric { flex: 1; }
.analytics-metric-val {
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--text-primary);
}
.analytics-metric-label {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-top: 1px;
}
.analytics-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    height: 48px;
}
.analytics-bar {
    flex: 1;
    min-height: 4px;
    background: var(--accent-gradient);
    border-radius: 2px 2px 0 0;
    transition: height 0.3s ease;
}

/* Distribution History */
.staking-pool-history {
    margin-top: var(--space-md);
    border-top: 1px solid var(--border-subtle);
    padding-top: var(--space-sm);
}
.staking-pool-history-toggle {
    background: none;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    font-weight: 700;
    cursor: pointer;
    padding: var(--space-xs) 0;
    transition: color 0.15s;
    width: 100%;
    text-align: left;
}
.staking-pool-history-toggle:hover { color: var(--text-secondary); }
.staking-pool-history-list {
    margin-top: var(--space-sm);
}
.staking-pool-history-item {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) 0;
    font-size: 0.78rem;
}
.staking-pool-history-item + .staking-pool-history-item {
    border-top: 1px solid var(--border-subtle);
}
.staking-pool-history-amount {
    font-family: var(--font-mono);
    font-weight: 700;
    color: var(--text-primary);
    font-size: 0.75rem;
}
.staking-pool-history-meta {
    flex: 1;
    color: var(--text-dim);
    font-size: 0.7rem;
}
.staking-pool-history-tx {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--lobster-400);
    text-decoration: none;
    padding: 2px 6px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    transition: all 0.15s;
}
.staking-pool-history-tx:hover {
    border-color: var(--lobster-400);
}

.staking-pool-reward-bar {
    height: 4px;
    background: var(--bg-card);
    border-radius: 2px;
    margin-bottom: var(--space-md);
    overflow: hidden;
}
.staking-pool-reward-fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 2px;
    transition: width 0.3s ease;
}

/* ── Claim All / Compound All buttons ── */
.mys-actions { display: flex; gap: 6px; }
.mys-action-btn {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 6px;
    border: 1px solid;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    transition: all 0.15s;
}
.mys-claim-all {
    background: rgba(74,222,128,0.1);
    color: #4ade80;
    border-color: rgba(74,222,128,0.2);
}
.mys-claim-all:hover { background: rgba(74,222,128,0.18); }
.mys-compound-all {
    background: rgba(99,102,241,0.1);
    color: #818cf8;
    border-color: rgba(99,102,241,0.2);
}
.mys-compound-all:hover { background: rgba(99,102,241,0.18); }
.mys-action-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── My Staking Position Cards ── */
/* Compact staking position rows */
.mys-row {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-subtle);
    text-decoration: none;
    color: inherit;
    transition: background 0.12s;
}
.mys-row:last-child { border-bottom: none; }
.mys-row:hover { background: var(--bg-elevated); }

.mys-token {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    min-width: 0;
}
.mys-logo {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.mys-token-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.mys-name {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}
.mys-ticker {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    color: var(--text-dim);
}
.my-staking-retired {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: hsl(40, 80%, 55%);
    background: hsla(40, 80%, 55%, 0.12);
    padding: 1px 6px;
    border-radius: var(--radius-full);
    margin-left: 4px;
    vertical-align: middle;
}

.mys-col {
    text-align: right;
    min-width: 80px;
}
.mys-val {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}
.mys-label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.55rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-dim);
}

.mys-col-rate {
    min-width: 70px;
}
.mys-rate {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    font-weight: 700;
    color: var(--seafoam-400, #34d399);
    white-space: nowrap;
}
.mys-rate.ended {
    color: var(--text-dim);
    font-weight: 600;
}

@media (max-width: 600px) {
    .mys-col-rate { display: none; }
    .mys-col { min-width: 60px; }
    .mys-val { font-size: 0.72rem; }
}

@keyframes dashFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes dashModalIn {
    from { opacity: 0; transform: translateY(20px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Credits (inline) ── */
.credits-panel-inner {
    max-width: 520px;
}
.credits-sub {
    color: var(--text-dim);
    font-size: 0.85rem;
    margin-bottom: var(--space-xl);
}

.credits-balance-box {
    text-align: center;
    padding: var(--space-2xl);
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-2xl);
}
.credits-balance-label {
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}
.credits-balance-num {
    font-family: var(--font-mono);
    font-size: 3rem;
    font-weight: 700;
    color: var(--coral);
    line-height: 1;
}
.credits-balance-unit {
    font-size: 0.8rem;
    color: var(--text-dim);
    margin-top: var(--space-xs);
}

.credits-section {
    margin-bottom: var(--space-xl);
}
.credits-section label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-dim);
    margin-bottom: var(--space-sm);
}

.credits-key-row {
    display: flex;
    gap: var(--space-sm);
    align-items: center;
}
.credits-key-row input {
    flex: 1;
    background: var(--bg-elevated);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--text-primary);
    font-family: var(--font-mono);
    font-size: 0.8rem;
    outline: none;
}
.credits-key-row input:focus {
    border-color: var(--lobster-400);
}

.credits-hint {
    font-size: 0.8rem;
    color: var(--text-dim);
    line-height: 1.5;
    margin-top: var(--space-sm);
}

/* ── Connect banner ── */
.dash-connect-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-lg);
    padding: var(--space-xl);
    background: linear-gradient(135deg, hsla(9, 52%, 56%, 0.06), hsla(172, 32%, 48%, 0.04));
    border: 1px solid hsla(9, 52%, 56%, 0.15);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-xl);
}
.dash-connect-text {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}
@media (max-width: 480px) {
    .dash-connect-banner {
        flex-direction: column;
        text-align: center;
    }
    .dash-connect-inner {
        flex-direction: column;
    }
}

/* ── Mobile ── */
@media (max-width: 768px) {
    .overview-stats { grid-template-columns: repeat(3, 1fr); }
    .dash-tools-grid { grid-template-columns: repeat(2, 1fr); }
    .overview-profile-card {
        flex-direction: column;
        text-align: center;
        gap: var(--space-md);
    }
    .profile-credits-area {
        align-items: center;
        margin-right: 0;
    }
    .profile-credits-tooltip {
        right: auto;
        left: 50%;
        transform: translateX(-50%);
    }
    .dash-overview { padding: var(--space-lg); }
    .project-card-actions { flex-wrap: wrap; }
}

/* ── Token Settings Modal ── */
.ts-logo-row {
    display: flex; align-items: center; gap: var(--space-md); margin-bottom: var(--space-lg);
}
.ts-logo-preview {
    width: 56px; height: 56px; border-radius: var(--radius-md); overflow: hidden;
    background: linear-gradient(135deg, hsla(9, 40%, 40%, 0.2), hsla(172, 30%, 40%, 0.2));
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.ts-logo-img { width: 100%; height: 100%; object-fit: cover; }
.ts-logo-letter { font-size: 1.4rem; font-weight: 800; color: var(--lobster-300); }
.ts-logo-btn {
    background: hsla(172, 30%, 40%, 0.15); border: 1px solid hsla(172, 30%, 40%, 0.3);
    color: var(--seafoam-300); padding: 6px 14px; border-radius: var(--radius-sm);
    cursor: pointer; font-size: 0.82rem; font-family: var(--font-body);
    transition: background 0.2s;
}
.ts-logo-btn:hover { background: hsla(172, 30%, 40%, 0.25); }
.ts-logo-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.ts-color-row { display: flex; align-items: center; gap: var(--space-sm); margin-bottom: var(--space-md); }
.ts-color-row input[type="color"] {
    width: 40px; height: 34px; border: none; border-radius: var(--radius-sm);
    cursor: pointer; background: transparent; padding: 0;
}
.ts-color-hex { font-size: 0.85rem; color: var(--text-dim); font-family: var(--font-mono, monospace); }

/* ══════════════════════════════════════ */
/* INSIGHTS SECTION                       */
/* ══════════════════════════════════════ */
.insights-stats-grid {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}
.insight-card {
    background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md); padding: var(--space-md) var(--space-sm);
    text-align: center; transition: border-color 0.2s;
}
.insight-card:hover { border-color: var(--accent-primary); }
.insight-value {
    font-size: 1.6rem; font-weight: 800; color: var(--text-primary);
    font-family: var(--font-mono); letter-spacing: -0.02em;
}
.insight-label {
    font-size: 0.7rem; font-weight: 600; color: var(--text-dim);
    text-transform: uppercase; letter-spacing: 0.05em; margin-top: 2px;
}
.insights-apps-list { display: flex; flex-direction: column; gap: var(--space-xs); }
.insight-app-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 14px; background: var(--bg-elevated); border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm); transition: border-color 0.2s;
}
.insight-app-row:hover { border-color: var(--border-hover); }
.insight-app-name {
    font-size: 0.85rem; font-weight: 600; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 55%;
}
.insight-app-stats {
    display: flex; gap: var(--space-md); font-size: 0.78rem; color: var(--text-dim);
}
.insight-app-stat { display: flex; align-items: center; gap: 4px; }
.insight-app-stat .stat-icon { font-size: 0.85rem; }
@media (max-width: 600px) {
    .insights-stats-grid { grid-template-columns: repeat(2, 1fr); }
    .insight-value { font-size: 1.3rem; }
}
