/* ============================================
   BLORPS App - Layout Styles
   Background, App Container, Sidebar, Header
   ============================================ */

/* ============================================
   Background — River / Underwater
   ============================================ */
.app-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

/* Underwater gradient: lighter teal at the top (toward the surface),
   deepening to dark river-bed blue below. Soft caustic-style glows
   simulate sun shafts filtering through the water. */
.bg-gradient {
    position: absolute;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse 120% 50% at 50% 0%, rgba(127, 234, 245, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 40% at 25% 25%, rgba(127, 234, 245, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse 50% 35% at 80% 35%, rgba(95, 168, 214, 0.10) 0%, transparent 60%),
        linear-gradient(180deg, var(--bg-gradient-2) 0%, var(--bg-gradient-1) 45%, var(--bg-dark) 100%);
}

/* Surface light flecks — like sunlight glinting on the water */
.bg-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(2px 2px at 20px 30px, rgba(180, 230, 240, 0.6), transparent),
        radial-gradient(1px 1px at 40px 70px, rgba(200, 240, 250, 0.4), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(180, 230, 240, 0.7), transparent),
        radial-gradient(2px 2px at 160px 120px, rgba(220, 240, 250, 0.5), transparent),
        radial-gradient(1px 1px at 230px 80px, rgba(180, 230, 240, 0.4), transparent),
        radial-gradient(1px 1px at 300px 150px, rgba(200, 240, 250, 0.5), transparent),
        radial-gradient(1px 1px at 350px 200px, rgba(180, 230, 240, 0.4), transparent);
    background-size: 400px 300px;
    opacity: 0.7;
    animation: surfaceShimmer 8s ease-in-out infinite;
}

@keyframes surfaceShimmer {
    0%, 100% { opacity: 0.7; transform: translateX(0); }
    50%      { opacity: 0.4; transform: translateX(8px); }
}

/* Drifting kelp / river reeds */
.floating-plants {
    position: absolute;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.plant {
    position: absolute;
    width: 22px;
    height: 320px;
    background: linear-gradient(180deg,
        rgba(143, 199, 148, 0) 0%,
        rgba(94, 154, 109, 0.35) 30%,
        rgba(58, 110, 74, 0.55) 100%);
    border-radius: 50% 50% 6px 6px / 80% 80% 6px 6px;
    transform-origin: bottom center;
    filter: blur(1.5px);
    opacity: 0.55;
}

.plant.p1 { left: 4%;   bottom: -40px; transform: scale(1.0);  animation: kelpSway 7s  ease-in-out infinite;       }
.plant.p2 { left: 16%;  bottom: -60px; transform: scale(0.7);  animation: kelpSway 9s  ease-in-out infinite 1.2s;  }
.plant.p3 { right: 8%;  bottom: -30px; transform: scale(1.15); animation: kelpSway 8s  ease-in-out infinite 0.5s;  }
.plant.p4 { right: 22%; bottom: -50px; transform: scale(0.55); animation: kelpSway 6s  ease-in-out infinite 2.4s;  }
.plant.p5 { left: 42%;  bottom: -70px; transform: scale(0.85); animation: kelpSway 10s ease-in-out infinite 1.8s;  }

@keyframes kelpSway {
    0%, 100% { transform: rotate(-4deg) scaleY(1); }
    50%      { transform: rotate( 5deg) scaleY(1.04); }
}

/* Rising bubble field */
.bubble-field {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.bubble {
    position: absolute;
    bottom: -40px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%,
        rgba(255, 255, 255, 0.55) 0%,
        rgba(180, 230, 240, 0.25) 35%,
        rgba(127, 234, 245, 0.05) 70%,
        transparent 100%);
    box-shadow: inset 0 0 4px rgba(255, 255, 255, 0.35);
    animation: bubbleRise linear infinite;
}

.bubble.b1 { left: 8%;  width: 14px; height: 14px; animation-duration: 14s; animation-delay: 0s;   }
.bubble.b2 { left: 22%; width: 8px;  height: 8px;  animation-duration: 11s; animation-delay: 3s;   }
.bubble.b3 { left: 38%; width: 18px; height: 18px; animation-duration: 17s; animation-delay: 1.5s; }
.bubble.b4 { left: 54%; width: 6px;  height: 6px;  animation-duration: 9s;  animation-delay: 5s;   }
.bubble.b5 { left: 67%; width: 12px; height: 12px; animation-duration: 13s; animation-delay: 2s;   }
.bubble.b6 { left: 78%; width: 10px; height: 10px; animation-duration: 15s; animation-delay: 6s;   }
.bubble.b7 { left: 90%; width: 16px; height: 16px; animation-duration: 18s; animation-delay: 0.5s; }
.bubble.b8 { left: 47%; width: 5px;  height: 5px;  animation-duration: 8s;  animation-delay: 7s;   }

@keyframes bubbleRise {
    0%   { transform: translate(0, 0)      scale(0.6);  opacity: 0;    }
    8%   { opacity: 0.85; transform: translate(0, -6vh) scale(0.9);    }
    50%  { transform: translate(20px, -55vh) scale(1);   opacity: 0.7; }
    90%  { opacity: 0.4; }
    100% { transform: translate(-15px, -110vh) scale(1.05); opacity: 0; }
}

/* ============================================
   App Container
   ============================================ */
.app-container {
    display: flex;
    min-height: 100vh;
}

/* ============================================
   Sidebar
   ============================================ */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-subtle);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 100;
    backdrop-filter: blur(20px);
}

.sidebar-logo {
    padding: 16px 24px;
    border-bottom: 1px solid var(--border-subtle);
}

.sidebar-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-icon {
    width: 40px;
    height: 40px;
}

.sidebar-logo span {
    font-family: var(--font-display);
    font-size: 24px;
    color: var(--green-light);
    letter-spacing: 1px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s var(--ease-out-expo);
    position: relative;
    overflow: hidden;
    --mouse-x: 50%;
    --mouse-y: 50%;
}

.nav-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        120px circle at var(--mouse-x) var(--mouse-y),
        rgba(74, 222, 128, 0.25) 0%,
        transparent 60%
    );
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 0;
}

.nav-item:hover::after {
    opacity: 1;
}

.nav-item svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    transition: all 0.3s var(--ease-bounce);
    filter: drop-shadow(0 0 0 transparent);
    position: relative;
    z-index: 1;
}

.nav-item span {
    position: relative;
    z-index: 1;
}

.nav-item:hover {
    background: rgba(74, 222, 128, 0.08);
    color: var(--text-main);
    transform: translateX(4px);
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.1);
}

.nav-item:hover svg {
    transform: scale(1.15);
    filter: drop-shadow(0 0 6px var(--green-glow));
}

.nav-item.active {
    background: linear-gradient(90deg, rgba(74, 222, 128, 0.2) 0%, rgba(74, 222, 128, 0.05) 100%);
    color: var(--green-light);
    box-shadow: inset 0 0 20px rgba(74, 222, 128, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 28px;
    background: linear-gradient(180deg, var(--green-light), var(--green-main));
    border-radius: 0 4px 4px 0;
    box-shadow: 0 0 12px var(--green-main);
}

.nav-item.active svg {
    filter: drop-shadow(0 0 4px var(--green-main));
}

.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

.nav-badge.active-badge {
    background: var(--green-main);
    color: var(--purple-dark);
}

.nav-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: 16px 0;
}

/* Section labels grouping the sidebar nav (Play / Collection / ...) */
.nav-section-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-dim);
    opacity: 0.6;
    padding: 0 16px;
    margin: 18px 0 6px;
    user-select: none;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-subtle);
}

.back-home {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.2s ease;
}

.back-home:hover {
    color: var(--green-main);
}

.back-home svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Main Content
   ============================================ */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 0;
}

/* ============================================
   Header
   ============================================ */
.app-header {
    height: var(--header-height);
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(13, 25, 38, 0.8);
    border-bottom: 1px solid var(--border-subtle);
    backdrop-filter: blur(10px);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    width: 300px;
    transition: all 0.2s ease;
}

.search-box:focus-within {
    border-color: var(--border-active);
    background: rgba(255, 255, 255, 0.08);
}

.search-box svg {
    width: 18px;
    height: 18px;
    color: var(--text-dim);
}

.search-box input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    color: var(--text-main);
    font-size: 14px;
}

.search-box input::placeholder {
    color: var(--text-dim);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.token-balances {
    display: flex;
    gap: 24px;
}

.token-balance {
    display: flex;
    align-items: center;
    gap: 10px;
}

.token-icon {
    width: 36px;
    height: 36px;
}

.token-icon svg,
.token-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.token-info {
    display: flex;
    flex-direction: column;
}

.token-amount {
    font-weight: 700;
    font-size: 15px;
    color: var(--text-main);
}

.token-name {
    font-size: 11px;
    color: var(--text-dim);
    font-weight: 600;
}

.header-divider {
    width: 1px;
    height: 32px;
    background: var(--border-subtle);
}

.wallet-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: rgba(74, 222, 128, 0.15);
    border: 1px solid var(--border-active);
    border-radius: 12px;
    color: var(--green-light);
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.wallet-btn:hover {
    background: rgba(74, 222, 128, 0.25);
}

.wallet-avatar {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--green-main), var(--blue-main));
    border-radius: 50%;
}

.wallet-btn svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   Content Area
   ============================================ */
.content-area {
    flex: 1;
    padding: 32px;
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    min-width: 0;
}

.tab-content {
    display: none;
    animation: slideInFade 0.5s var(--ease-out-expo);
}

.tab-content.active {
    display: block;
}

@keyframes slideInFade {
    from {
        opacity: 0;
        transform: translateY(20px);
        filter: blur(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

/* Staggered animation for children */
.tab-content.active .stat-card,
.tab-content.active .expedition-card,
.tab-content.active .blorp-mini-card {
    animation: cardReveal 0.6s var(--ease-out-expo) backwards;
}

.tab-content.active .stat-card:nth-child(1) { animation-delay: 0.05s; }
.tab-content.active .stat-card:nth-child(2) { animation-delay: 0.1s; }
.tab-content.active .stat-card:nth-child(3) { animation-delay: 0.15s; }
.tab-content.active .stat-card:nth-child(4) { animation-delay: 0.2s; }

.tab-content.active .expedition-card:nth-child(1) { animation-delay: 0.1s; }
.tab-content.active .expedition-card:nth-child(2) { animation-delay: 0.15s; }
.tab-content.active .expedition-card:nth-child(3) { animation-delay: 0.2s; }

.tab-content.active .blorp-mini-card:nth-child(1) { animation-delay: 0.05s; }
.tab-content.active .blorp-mini-card:nth-child(2) { animation-delay: 0.08s; }
.tab-content.active .blorp-mini-card:nth-child(3) { animation-delay: 0.11s; }
.tab-content.active .blorp-mini-card:nth-child(4) { animation-delay: 0.14s; }
.tab-content.active .blorp-mini-card:nth-child(5) { animation-delay: 0.17s; }
.tab-content.active .blorp-mini-card:nth-child(6) { animation-delay: 0.2s; }

@keyframes cardReveal {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 20px;
}

.page-title h1 {
    font-family: var(--font-display);
    font-size: 36px;
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--text-main) 0%, var(--green-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 40px rgba(74, 222, 128, 0.2);
}

.page-title p {
    color: var(--text-muted);
    font-size: 15px;
    letter-spacing: 0.3px;
}

.quick-actions {
    display: flex;
    gap: 12px;
}

/* ============================================
   Connect Wallet Button
   ============================================ */
.connect-wallet {
    background: linear-gradient(165deg,
        rgba(25, 30, 45, 0.95) 0%,
        rgba(15, 18, 30, 0.98) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Top accent line */
.connect-wallet::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(74, 222, 128, 0.5) 50%,
        transparent 100%);
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

/* Subtle glow effect */
.connect-wallet::after {
    content: '';
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    top: -30px;
    right: -30px;
    background: var(--green-main);
    opacity: 0.04;
    filter: blur(15px);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.connect-wallet:hover {
    background: linear-gradient(165deg,
        rgba(30, 35, 50, 0.98) 0%,
        rgba(20, 23, 35, 0.99) 100%);
    border-color: rgba(74, 222, 128, 0.25);
    transform: translateY(-2px);
    box-shadow:
        0 8px 20px rgba(0, 0, 0, 0.3),
        0 0 16px rgba(74, 222, 128, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.connect-wallet:hover::before {
    opacity: 1;
}

.connect-wallet:hover::after {
    opacity: 0.08;
}

/* Wallet chevron */
.connect-wallet .wallet-chevron {
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: -4px;
}

.connect-wallet.connected .wallet-chevron {
    opacity: 0.6;
}

.connect-wallet.connected:hover .wallet-chevron {
    opacity: 1;
}

.wallet-container.open .connect-wallet .wallet-chevron {
    transform: rotate(180deg);
}

/* ============================================
   Wallet Popup - Bioluminescent Style
   ============================================ */
.wallet-container {
    position: relative;
}

.wallet-popup {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.98);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    pointer-events: none;
}

.wallet-container.open .wallet-popup {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.wallet-popup-glow {
    position: absolute;
    inset: -1px;
    border-radius: 16px;
    background: linear-gradient(135deg,
        rgba(74, 222, 128, 0.4) 0%,
        rgba(34, 197, 94, 0.2) 50%,
        rgba(74, 222, 128, 0.3) 100%);
    opacity: 0;
    filter: blur(8px);
    transition: opacity 0.3s ease;
    z-index: -1;
}

.wallet-container.open .wallet-popup-glow {
    opacity: 1;
    animation: walletGlowPulse 3s ease-in-out infinite;
}

@keyframes walletGlowPulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 0.9; }
}

.wallet-popup-inner {
    background: linear-gradient(165deg,
        rgba(16, 24, 36, 0.98) 0%,
        rgba(10, 16, 28, 0.99) 100%);
    border: 1px solid rgba(74, 222, 128, 0.2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.5),
        0 0 40px rgba(74, 222, 128, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.wallet-popup-inner::before {
    content: '';
    position: absolute;
    top: -6px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: linear-gradient(135deg,
        rgba(16, 24, 36, 0.98) 0%,
        rgba(16, 24, 36, 0.98) 50%,
        transparent 50%);
    border-left: 1px solid rgba(74, 222, 128, 0.2);
    border-top: 1px solid rgba(74, 222, 128, 0.2);
    transform: rotate(45deg);
}

.wallet-popup-header {
    padding: 16px 18px;
    background: linear-gradient(180deg,
        rgba(74, 222, 128, 0.08) 0%,
        transparent 100%);
    border-bottom: 1px solid rgba(74, 222, 128, 0.1);
}

.wallet-popup-status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}

.status-orb {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-main);
    box-shadow: 0 0 10px var(--green-main), 0 0 20px rgba(74, 222, 128, 0.4);
    animation: orbPulse 2s ease-in-out infinite;
}

@keyframes orbPulse {
    0%, 100% {
        box-shadow: 0 0 10px var(--green-main), 0 0 20px rgba(74, 222, 128, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 15px var(--green-main), 0 0 30px rgba(74, 222, 128, 0.6);
        transform: scale(1.1);
    }
}

.wallet-popup-status span {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--green-main);
}

.wallet-address-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.wallet-full-address {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-main);
    letter-spacing: 0.02em;
}

.copy-address-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 6px;
    padding: 6px;
    cursor: pointer;
    color: var(--text-dim);
    transition: all 0.2s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.copy-address-btn:hover {
    background: rgba(74, 222, 128, 0.1);
    border-color: rgba(74, 222, 128, 0.3);
    color: var(--green-main);
    transform: scale(1.05);
}

.copy-address-btn:active {
    transform: scale(0.95);
}

.copy-tooltip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    background: var(--green-main);
    color: #0a0a12;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
}

.copy-address-btn.copied .copy-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Token Balances */
.wallet-balances {
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    transition: all 0.2s ease;
    cursor: default;
}

.balance-item:hover {
    background: rgba(255, 255, 255, 0.03);
}

.balance-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.balance-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 10px;
    opacity: 0.15;
}

.balance-icon.avax {
    background: linear-gradient(135deg, rgba(232, 65, 66, 0.2), rgba(232, 65, 66, 0.1));
    color: #e84142;
    border: 1px solid rgba(232, 65, 66, 0.3);
}

.balance-icon.avax::before {
    background: linear-gradient(135deg, #e84142, #ff6b6b);
}

.balance-icon.blorp {
    background: linear-gradient(135deg, rgba(74, 222, 128, 0.2), rgba(74, 222, 128, 0.1));
    color: var(--green-main);
    border: 1px solid rgba(74, 222, 128, 0.3);
}

.balance-icon.blorp::before {
    background: linear-gradient(135deg, var(--green-main), var(--green-light));
}

.balance-icon.roe {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(168, 85, 247, 0.1));
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.balance-icon.roe::before {
    background: linear-gradient(135deg, #a855f7, #c084fc);
}

.balance-icon.bands {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2), rgba(251, 191, 36, 0.1));
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.balance-icon.bands::before {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
}

.balance-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.balance-label {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-dim);
}

.balance-value {
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

/* Popup Actions */
.wallet-popup-actions {
    padding: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.wallet-action-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.wallet-action-btn.disconnect {
    background: rgba(248, 113, 113, 0.1);
    border: 1px solid rgba(248, 113, 113, 0.2);
    color: #f87171;
}

.wallet-action-btn.disconnect:hover {
    background: rgba(248, 113, 113, 0.2);
    border-color: rgba(248, 113, 113, 0.4);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(248, 113, 113, 0.15);
}

.wallet-action-btn.disconnect:active {
    transform: translateY(0);
}

.wallet-action-btn.disconnect svg {
    transition: transform 0.2s ease;
}

.wallet-action-btn.disconnect:hover svg {
    transform: translateX(2px);
}

/* Canonical focus + disabled for header/wallet buttons.
   Mirrors the shared .btn treatment in components.css (universal-safe props
   only) - size, shape and color of these icon/wallet buttons are preserved. */
.wallet-btn:focus-visible,
.wallet-action-btn:focus-visible,
.copy-address-btn:focus-visible {
    outline: 2px solid var(--green-main);
    outline-offset: 2px;
}

.wallet-btn:disabled,
.wallet-btn[aria-disabled="true"],
.wallet-action-btn:disabled,
.wallet-action-btn[aria-disabled="true"],
.copy-address-btn:disabled,
.copy-address-btn[aria-disabled="true"] {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Disabled Nav Items */
.nav-item.disabled {
    opacity: 0.4;
    pointer-events: none;
    cursor: not-allowed;
    position: relative;
}

.nav-item.disabled:hover {
    background: transparent;
    color: var(--text-dim);
}

.nav-item.disabled::after {
    display: none;
}

.coming-soon-badge {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255, 217, 61, 0.2);
    color: #ffd93d;
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: auto;
}
