/* ══════════════════════════════════════════════════════════════════════════════
   RE-ADAPT — Shared Components
   Deduplicated CSS rules for Header, Profile Card, Profile Panel, and Theme Toggle.
   ══════════════════════════════════════════════════════════════════════════════ */

/* ── Theme Toggle Button ── */
.theme-toggle-wrap {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 100px;
    padding: 3px 3px 3px 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    user-select: none;
}

.theme-toggle-wrap:hover {
    border-color: rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
}

.theme-toggle-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
    white-space: nowrap;
    transition: color 0.25s;
}

.theme-toggle-pill {
    display: flex;
    align-items: center;
    gap: 2px;
    background: rgba(0,0,0,0.3);
    border-radius: 100px;
    padding: 2px;
}

.theme-toggle-pill .pill-opt {
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 100px;
    color: rgba(255,255,255,0.4);
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}

.theme-toggle-pill .pill-opt.active {
    background: rgba(255,255,255,0.12);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* Hike-mode overrides for the toggle */
[data-theme="hike"] .theme-toggle-wrap {
    background: rgba(255,255,255,0.06);
    border-color: rgba(255,255,255,0.12);
}

[data-theme="hike"] .theme-toggle-wrap:hover {
    border-color: rgba(255,255,255,0.22);
    background: rgba(255,255,255,0.1);
}

[data-theme="hike"] .theme-toggle-label {
    color: rgba(255,255,255,0.7);
}

[data-theme="hike"] .theme-toggle-pill {
    background: rgba(255,255,255,0.08);
}

[data-theme="hike"] .theme-toggle-pill .pill-opt {
    color: rgba(255,255,255,0.45);
}

[data-theme="hike"] .theme-toggle-pill .pill-opt.active {
    background: #FFFFFF;
    color: var(--hike-header, #1C1917);
}

/* ── Nav Profile Card (Header) ── */
.nav-profile-card {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.45rem 0.85rem 0.45rem 0.45rem;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(20, 16, 35, 0.95), rgba(14, 10, 26, 0.9));
    border: 1.5px solid rgba(139, 92, 246, 0.35);
    box-shadow:
        0 0 22px rgba(139, 92, 246, 0.08),
        0 0 0 1px rgba(139, 92, 246, 0.05) inset,
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.nav-profile-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 7px,
        rgba(139, 92, 246, 0.015) 7px,
        rgba(139, 92, 246, 0.015) 8px
    );
    pointer-events: none;
    border-radius: inherit;
}

.nav-profile-card::after {
    content: '';
    position: absolute;
    top: -1px;
    left: 20%;
    right: 20%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(139, 92, 246, 0.4), transparent);
    pointer-events: none;
}

.nav-profile-card:hover {
    border-color: rgba(139, 92, 246, 0.65);
    box-shadow:
        0 0 30px rgba(139, 92, 246, 0.18),
        0 0 60px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

[data-theme="hike"] .nav-profile-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
}

[data-theme="hike"] .nav-profile-card::before,
[data-theme="hike"] .nav-profile-card::after {
    display: none;
}

[data-theme="hike"] .nav-profile-card:hover {
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: var(--shadow-md);
}

.nav-profile-avatar-wrap {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.35);
    background: rgba(139, 92, 246, 0.08);
    overflow: hidden;
    flex-shrink: 0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.nav-profile-avatar-wrap:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 16px rgba(139, 92, 246, 0.25);
}

[data-theme="hike"] .nav-profile-avatar-wrap {
    border-color: rgba(0, 0, 0, 0.08);
    background: rgba(0, 0, 0, 0.03);
    box-shadow: none;
}

.nav-profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.nav-profile-fallback {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent, #b400ff);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.nav-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.nav-profile-name {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--text, #fff);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 130px;
    line-height: 1.2;
}

.nav-token-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.5rem;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.2), rgba(168, 85, 247, 0.15));
    border: 1px solid rgba(139, 92, 246, 0.3);
    width: fit-content;
}

[data-theme="hike"] .nav-token-badge {
    background: var(--hike-accent-gold-light);
    border-color: var(--hike-accent-gold-border);
}

.nav-token-text {
    font-size: 0.65rem;
    font-weight: 600;
    color: #c4b5fd;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

[data-theme="hike"] .nav-token-text {
    color: var(--hike-accent);
}

.nav-profile-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-admin-link {
    font-size: 0.65rem;
    color: var(--text-dim, #7a7a9a);
    text-decoration: none;
    transition: color 0.2s;
    white-space: nowrap;
}

.nav-admin-link:hover {
    color: var(--text, #fff);
}

.nav-signout-link {
    font-size: 0.65rem;
    color: var(--text-dim, #7a7a9a);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s;
    padding: 0;
    white-space: nowrap;
}

.nav-signout-link:hover {
    color: #ff6b6b;
}

/* ── Profile Avatar Button (Header Alt) ── */
.profile-avatar-btn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.3);
    background: rgba(139, 92, 246, 0.08);
    cursor: pointer;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-avatar-btn:hover {
    border-color: rgba(139, 92, 246, 0.6);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.2);
}

.profile-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.profile-avatar-fallback {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent, #b400ff);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

/* ── Profile Panel Overlay ── */
.profile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.profile-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

/* ── Profile Panel Card ── */
.profile-panel {
    background: linear-gradient(145deg, #0a0a12, #0e0e18);
    border: 1px solid rgba(139, 92, 246, 0.12);
    border-radius: 20px;
    padding: 2rem 2rem 1.75rem;
    width: 380px;
    max-width: 92vw;
    box-shadow:
        0 24px 80px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(139, 92, 246, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    position: relative;
    animation: profileSlideIn 0.3s ease;
}

[data-theme="hike"] .profile-panel {
    background: var(--surface);
    border-color: var(--border);
    box-shadow: var(--shadow-lg);
}

@keyframes profileSlideIn {
    from { opacity: 0; transform: translateY(16px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.profile-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: #666;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: color 0.2s, background 0.2s;
}

.profile-close:hover {
    color: #fff;
    background: rgba(255,255,255,0.06);
}

[data-theme="hike"] .profile-close:hover {
    color: var(--text-primary);
    background: var(--surface-hover);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

[data-theme="hike"] .profile-header {
    border-bottom-color: var(--border);
}

.profile-panel-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 2px solid rgba(139, 92, 246, 0.25);
    object-fit: cover;
    flex-shrink: 0;
}

[data-theme="hike"] .profile-panel-avatar {
    border-color: var(--border);
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.profile-name {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

[data-theme="hike"] .profile-name {
    color: var(--text-primary);
}

.profile-email {
    font-size: 0.78rem;
    color: var(--text-dim, #7a7a9a);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.profile-section {
    margin-bottom: 1.25rem;
}

.profile-section-title {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim, #7a7a9a);
    margin-bottom: 0.6rem;
}

.profile-sub-badge {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    border-radius: 20px;
    margin-bottom: 0.5rem;
}

.profile-sub-badge.active {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    text-shadow: 0 0 10px rgba(74, 222, 128, 0.3);
}

[data-theme="hike"] .profile-sub-badge.active {
    background: rgba(74, 222, 128, 0.08);
    border-color: rgba(74, 222, 128, 0.3);
    text-shadow: none;
}

.profile-sub-badge.inactive {
    background: rgba(255, 255, 255, 0.04);
    color: #666;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

[data-theme="hike"] .profile-sub-badge.inactive {
    background: var(--surface-hover);
    border-color: var(--border);
    color: var(--text-secondary);
}

.profile-sub-info {
    font-size: 0.78rem;
    color: var(--text-dim, #7a7a9a);
    margin-bottom: 0.75rem;
}

.profile-subscribe-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 600;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    background: linear-gradient(135deg, #8b5cf6, #a855f7);
    color: #fff;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.2);
}

.profile-subscribe-btn:hover:not(:disabled) {
    box-shadow: 0 6px 28px rgba(139, 92, 246, 0.35);
    transform: translateY(-1px);
}

[data-theme="hike"] .profile-subscribe-btn {
    background: var(--brand);
    color: var(--brand-fg);
    box-shadow: var(--shadow-sm);
}

[data-theme="hike"] .profile-subscribe-btn:hover:not(:disabled) {
    background: var(--brand-dark);
    box-shadow: var(--shadow-md);
}

.profile-subscribe-btn:disabled {
    opacity: 0.6;
    cursor: default;
}

.profile-subscribe-btn.subscribed {
    background: rgba(74, 222, 128, 0.1);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.2);
    box-shadow: none;
}

.token-breakdown {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 0.6rem 0.85rem;
}

[data-theme="hike"] .token-breakdown {
    background: var(--surface-hover);
    border-color: var(--border);
}

.token-breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.35rem 0;
}

.token-breakdown-row + .token-breakdown-row {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
}

[data-theme="hike"] .token-breakdown-row + .token-breakdown-row {
    border-top-color: var(--border);
}

.token-breakdown-row.total {
    border-top: 1px solid rgba(139, 92, 246, 0.15);
    margin-top: 0.15rem;
    padding-top: 0.5rem;
}

[data-theme="hike"] .token-breakdown-row.total {
    border-top-color: var(--hike-accent-gold-border);
}

.token-breakdown-label {
    font-size: 0.78rem;
    color: var(--text-dim, #7a7a9a);
}

.token-breakdown-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text, #e8e8f0);
}

[data-theme="hike"] .token-breakdown-value {
    color: var(--text-primary);
}

.token-breakdown-row.total .token-breakdown-value {
    color: var(--accent, #b400ff);
}

[data-theme="hike"] .token-breakdown-row.total .token-breakdown-value {
    color: var(--hike-accent);
}

.profile-msg {
    font-size: 0.78rem;
    min-height: 1em;
    text-align: center;
    margin-top: 0.5rem;
}

.profile-msg.error { color: #ff4444; }
.profile-msg.success { color: #4ade80; }

/* ── Auth Splash Screen ── */
#splash {
    position: fixed;
    inset: 0;
    background: #050508;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    transition: opacity 0.4s ease;
}
#splash.hiding { opacity: 0; pointer-events: none; }
.splash-logo {
    height: 52px;
    animation: splashPulse 1.4s ease-in-out infinite;
}
@keyframes splashPulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.06); }
}

/* Hike splash overrides */
[data-theme="hike"] .splash-logo,
[data-theme="hike"] #splash img[src*="hike_logo"],
[data-theme="hike"] .lobby-logo,
[data-theme="hike"] .lobby-container > div > img[src*="hike_logo"] {
    content: url('https://storage.googleapis.com/abn-assets/hike_logo_negro_1080x1080.png') !important;
    filter: none !important;
}

/* ── Unified Header & Tabs ── */
header {
    display: flex;
    align-items: center;
    padding: .6rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    flex-shrink: 0;
    gap: 1.25rem;
    background: rgba(7, 7, 13, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
}

.h-logo img {
    height: 26px;
    display: block;
}

.h-tabs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-left: 1rem;
}

.h-tab {
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    color: rgba(255, 255, 255, 0.6);
}

.h-tab:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.05);
}

.h-tab.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.h-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Hike Mode Overrides for Header */
[data-theme="hike"] header {
    background: var(--hike-dark, #1A0A2E) !important;
    border-bottom-color: rgba(126, 110, 148, 0.15) !important;
}

[data-theme="hike"] .h-tab {
    color: rgba(255, 255, 255, 0.55) !important;
}

[data-theme="hike"] .h-tab:hover {
    color: rgba(255, 255, 255, 0.85) !important;
    background: rgba(126, 110, 148, 0.12) !important;
}

[data-theme="hike"] .h-tab.active {
    color: #F4EB33 !important;
    background: rgba(244, 235, 51, 0.08) !important;
    border-color: rgba(244, 235, 51, 0.2) !important;
}

/* Logos stay white on dark header — no inversion needed */
[data-theme="hike"] .h-logo img,
[data-theme="hike"] .logo img {
    filter: none !important;
    opacity: 0.95 !important;
}
[data-theme="hike"] .h-logo div,
[data-theme="hike"] .logo div {
    background: rgba(255,255,255,0.15) !important;
}

/* ── Canvas Viewport Controls ── */
.canvas-view-controls {
    position: absolute;
    bottom: 1.5rem;
    right: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(17, 17, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 0.25rem;
    z-index: 100;
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

[data-theme="hike"] .canvas-view-controls {
    background: rgba(252, 249, 247, 0.9);
    border-color: rgba(26, 20, 32, 0.1);
    box-shadow: 0 4px 20px rgba(26, 20, 32, 0.08);
}

.canvas-vc-btn {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 500;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-theme="hike"] .canvas-vc-btn {
    color: rgba(26, 20, 32, 0.7);
}

.canvas-vc-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

[data-theme="hike"] .canvas-vc-btn:hover {
    background: rgba(26, 20, 32, 0.05);
    color: rgba(26, 20, 32, 0.95);
}

.canvas-vc-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.canvas-vc-text {
    font-size: 0.75rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    padding: 0 0.5rem;
    min-width: 42px;
    text-align: center;
    user-select: none;
}

[data-theme="hike"] .canvas-vc-text {
    color: rgba(26, 20, 32, 0.5);
}

.canvas-vc-divider {
    width: 1px;
    height: 16px;
    background: rgba(255, 255, 255, 0.15);
    margin: 0 4px;
}

[data-theme="hike"] .canvas-vc-divider {
    background: rgba(26, 20, 32, 0.1);
}

/* ── Help Modal ── */
.help-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(7, 7, 13, 0.6);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}

.help-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.help-box {
    background: rgba(18, 18, 28, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    width: 480px;
    max-width: 90%;
    padding: 2rem;
    position: relative;
    color: var(--text);
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    backdrop-filter: blur(16px);
}

.help-overlay.open .help-box {
    transform: scale(1);
}

[data-theme="hike"] .help-overlay {
    background: rgba(26, 20, 32, 0.4);
}

[data-theme="hike"] .help-box {
    background: rgba(252, 249, 247, 0.95);
    border-color: rgba(26, 20, 32, 0.08);
    box-shadow: 0 20px 50px rgba(26, 20, 32, 0.12);
    color: #1a1420;
}

.help-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    letter-spacing: 0.5px;
}

.help-close {
    position: absolute;
    top: 1.2rem;
    right: 1.2rem;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.15s;
}

.help-close:hover {
    color: var(--text);
}

[data-theme="hike"] .help-close {
    color: rgba(26, 20, 32, 0.5);
}
[data-theme="hike"] .help-close:hover {
    color: rgba(26, 20, 32, 0.9);
}

.help-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.help-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    padding-bottom: 0.5rem;
}

[data-theme="hike"] .help-item {
    border-bottom-color: rgba(26, 20, 32, 0.04);
}

.help-keys {
    display: flex;
    gap: 0.25rem;
    align-items: center;
}

.help-key {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 4px;
    padding: 0.15rem 0.4rem;
    font-family: monospace;
    font-size: 0.72rem;
    box-shadow: 0 2px 0 rgba(0,0,0,0.2);
    color: var(--text);
}

[data-theme="hike"] .help-key {
    background: rgba(26, 20, 32, 0.05);
    border-color: rgba(26, 20, 32, 0.12);
    box-shadow: 0 2px 0 rgba(26, 20, 32, 0.1);
    color: rgba(26, 20, 32, 0.8);
}

.help-desc {
    color: var(--text-dim);
}

[data-theme="hike"] .help-desc {
    color: rgba(26, 20, 32, 0.6);
}

/* ── Selection Pill ── */
.canvas-selection-pill {
    position: absolute;
    bottom: 4.8rem;
    right: 1.5rem;
    background: rgba(139, 92, 246, 0.85); /* Purple accent */
    color: #fff;
    border-radius: 30px;
    padding: 0.35rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
    z-index: 100;
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    gap: 0.35rem;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.canvas-selection-pill.visible {
    opacity: 1;
    transform: translateY(0);
}

[data-theme="hike"] .canvas-selection-pill {
    background: rgba(244, 235, 51, 0.95); /* Hike Gold */
    color: #1a1420;
    box-shadow: 0 4px 15px rgba(244, 235, 51, 0.2);
}

/* ── Lucide Icons Styling ── */
.lucide-icon {
    width: 16px;
    height: 16px;
    stroke-width: 2.2px;
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

/* Adjust size inside headers or buttons */
.btn .lucide-icon,
.pop-tool-btn .lucide-icon {
    width: 14px;
    height: 14px;
    margin-right: 5px;
    margin-top: -2px;
}

.node-type .lucide-icon {
    width: 14px;
    height: 14px;
    margin-right: 6px;
    margin-top: -2px;
}

.nm-icon .lucide-icon {
    width: 14px;
    height: 14px;
}

.pfm-close .lucide-icon,
.help-close .lucide-icon,
.pm-close .lucide-icon,
.profile-close .lucide-icon,
.node-del .lucide-icon,
.pop-node-del .lucide-icon {
    width: 14px;
    height: 14px;
    stroke-width: 2.5px;
    display: block;
}

.h-tab .lucide-icon {
    width: 15px;
    height: 15px;
    margin-right: 6px;
    margin-top: -2px;
}


