/* Color Palette - Matching iOS App */
:root {
    --app-purple: rgb(127, 102, 255);
    --matte-black: rgb(36, 36, 38);
    --app-dark-gray: rgb(41, 41, 43);
    --medium-dark: rgb(31, 31, 33);
    --dark-background: rgb(23, 23, 24);
    --deep-background: rgb(18, 18, 20);
    --rounded-font: 'Avenir Next Rounded', 'SF Pro Rounded', 'Nunito', 'Quicksand', 'Avenir', 'Helvetica Neue', system-ui, sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

*:focus {
    outline: none;
}

/* GPU acceleration for smooth animations */
.swap-container-wrapper,
.swap-box,
.custom-select-dropdown,
.modal-content,
.profile-menu,
.flip-row,
.primary-btn,
.tab-btn,
.network-dropdown,
.connect-dropdown {
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Will-change hints for frequently animated elements */
.swap-slogan,
.swap-container-wrapper,
.custom-select-dropdown,
.modal,
.profile-menu {
    will-change: transform, opacity;
}

/* Optimized image loading for all coin logos */
img[src*="cryptocurrency-icons"],
img[src*="coincap.io"],
img[src*="coingecko.com"],
img[src*="coinmarketcap.com"],
.custom-select-option img,
.floating-coin-img,
.flip-token-logo,
.flip-token-dropdown-item img,
.join-flip-dropdown-item img,
.transaction-item img,
.profile-coin-logo {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    transform: translateZ(0);
    backface-visibility: hidden;
    will-change: opacity;
    contain: layout style paint;
}

/* Prevent layout shifts during image loading */
.custom-select-option img,
.floating-coin-img,
.flip-token-logo,
.flip-token-dropdown-item img,
.profile-coin-logo {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

html, body {
    height: 100%;
    overflow-x: hidden;
    background-color: #121214;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* iOS status bar background - extends to top edge */
@supports (padding-top: env(safe-area-inset-top)) {
    html::before {
        content: '';
        position: fixed;
        top: calc(-1 * env(safe-area-inset-top));
        left: 0;
        right: 0;
        height: calc(100vh + env(safe-area-inset-top));
        background: #121214;
        z-index: -1;
        pointer-events: none;
    }
}

html {
    padding: 0;
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    background: var(--deep-background);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: var(--deep-background);
    background-attachment: fixed;
    color: white;
    min-height: 100vh;
    min-height: 100dvh;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    position: relative;
    z-index: 0;
    /* Extend background into safe area */
    padding-top: env(safe-area-inset-top, 0px);
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    animation: backgroundFadeIn 1.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    transition: background 0.4s ease, color 0.3s ease;
}

/* Smooth theme transitions for all elements */
*, *::before, *::after {
    transition-property: background-color, border-color, box-shadow, color;
    transition-duration: 0.3s;
    transition-timing-function: ease;
}

/* Prevent layout shifts during theme change */
img, .profile-coin-logo, .coin-logo, .explore-coin-logo {
    transition: none !important;
}

/* Make token logos stand out on the flat background */
.custom-select-logo,
.custom-select-option img,
.profile-coin-logo,
.coin-logo,
.send-coin-logo,
.pool-input-logo,
.unpool-token-logo,
.explore-token-logo,
.flip-token-logo,
.coin-logo-select {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.12);
}

.profile-pool-logo {
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.45),
                0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Views */
.view {
    min-height: 100vh;
}

/* Buttons */
.primary-btn {
    width: 100%;
    min-height: 62px;
    border: none;
    border-radius: 16px;
    background: rgba(236, 72, 153, 1);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.15s ease;
    position: relative;
    box-shadow: 0 4px 0 rgba(3, 3, 4, 0.8);
}

.primary-btn:hover {
    background: rgba(246, 92, 173, 1);
    transform: translateY(-2px);
    box-shadow: 0 6px 0 rgba(3, 3, 4, 0.8);
}

.primary-btn:active {
    background: rgba(216, 52, 133, 1);
    transform: translateY(2px);
    box-shadow: 0 2px 0 rgba(3, 3, 4, 0.8);
}

/* Swap Button Animations */
.primary-btn.swapping {
    background: rgba(236, 72, 153, 1);
    color: white;
    pointer-events: none;
    box-shadow: 0 4px 0 rgba(3, 3, 4, 0.8);
    opacity: 1 !important;
}

.primary-btn.success {
    background: rgba(34, 197, 94, 1);
    color: white;
    pointer-events: none;
    box-shadow: 0 4px 0 rgba(3, 3, 4, 0.8);
    opacity: 1 !important;
    animation: successPop 0.35s ease-out;
}

@keyframes successPop {
    0% { transform: scale(0.97); }
    50% { transform: scale(1.02); }
    100% { transform: scale(1); }
}

.swap-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spinSmooth 0.8s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;
    vertical-align: middle;
    margin-right: 10px;
}

@keyframes spinSmooth {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Swap button processing states */
.swap-btn.swapping {
    animation: processingPulse 3.5s ease-in-out infinite;
}

@keyframes processingPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Animated text for button states */
.swap-btn-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: statusFadeIn 0.3s ease-out;
}

@keyframes statusFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Swap Success Animation */
.swap-success-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    height: 21px;
    animation: successContentIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.swap-success-content.fade-out {
    opacity: 0;
    transform: scale(0.85);
}

.swap-success-coin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}

.swap-success-coin.from-coin {
    animation: coinSlideFromLeft 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.swap-success-coin.to-coin {
    animation: coinSlideFromRight 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) 0.08s both;
}

.swap-success-arrow {
    width: 20px;
    height: 20px;
    color: rgba(255, 255, 255, 0.95);
    animation: arrowSlide 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.12s both;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.25));
}

.swap-success-text {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 500;
    letter-spacing: 0.4px;
    color: white;
    animation: successTextFadeIn 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.swap-success-text::before {
    content: '✓';
    font-size: 14px;
    font-weight: 600;
    animation: checkPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) 0.15s both;
}

@keyframes successContentIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes successTextFadeIn {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(2px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes checkPop {
    from {
        opacity: 0;
        transform: scale(0);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes arrowSlide {
    from {
        opacity: 0;
        transform: translateX(-10px) scale(0.8);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes successFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes coinSlideFromLeft {
    from {
        opacity: 0;
        transform: translateX(-20px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes coinSlideFromRight {
    from {
        opacity: 0;
        transform: translateX(20px) scale(0.5);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes arrowPulse {
    0% {
        opacity: 0;
        transform: scaleX(0);
    }
    50% {
        opacity: 1;
        transform: scaleX(1.2);
    }
    100% {
        transform: scaleX(1);
    }
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.primary-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.primary-btn:disabled.swapping,
.primary-btn:disabled.success {
    cursor: wait;
    opacity: 1;
}

.secondary-btn {
    width: 100%;
    min-height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.secondary-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
}

.loader {
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

/* Modals */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: modalBackdropIn 0.18s ease-out;
}

.modal-content {
    background: rgba(24, 24, 28, 0.98);
    padding: 40px;
    border-radius: 20px;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: modalPopIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    will-change: transform, opacity;
}

.modal-content h2 {
    margin-bottom: 20px;
    font-size: 28px;
}

.modal-content p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.recovery-phrase-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.recovery-phrase-header h2 {
    margin: 0;
}

.warning {
    background: rgba(255, 149, 0, 0.15);
    padding: 12px;
    border-radius: 12px;
    border-left: 4px solid rgb(255, 149, 0);
}

.recovery-phrase {
    background: transparent;
    padding: 0;
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.6;
    word-spacing: 6px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
    max-width: 320px;
}

@media (max-width: 600px) {
    .recovery-phrase-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .recovery-phrase {
        max-width: 100%;
        text-align: left;
    }
}

@keyframes modalBackdropIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes modalPopIn {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.import-input {
    width: 100%;
    min-height: 120px;
    background: var(--dark-background);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: white;
    padding: 16px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    resize: vertical;
    margin-bottom: 20px;
}

.modal-buttons {
    display: flex;
    gap: 16px;
}

.modal-buttons button {
    flex: 1;
}

/* Page Load Animations */
@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fadeInScale {
    0% {
        opacity: 0;
        transform: scale(0.94) translateY(16px);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.01) translateY(-2px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes sloganReveal {
    0% {
        opacity: 0;
        transform: translateY(20px) scale(0.96);
        letter-spacing: 4px;
        filter: blur(4px);
    }
    30% {
        opacity: 0.3;
        transform: translateY(12px) scale(0.98);
        letter-spacing: 2px;
        filter: blur(2px);
    }
    60% {
        opacity: 0.8;
        transform: translateY(2px) scale(1.005);
        letter-spacing: -0.5px;
        filter: blur(0px);
    }
    80% {
        opacity: 0.95;
        transform: translateY(-1px) scale(1.01);
        letter-spacing: -1.2px;
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        letter-spacing: -1.5px;
        filter: blur(0px);
    }
}

@keyframes glowIn {
    from {
        opacity: 0;
        filter: blur(10px);
    }
    to {
        opacity: 1;
        filter: blur(0);
    }
}

@keyframes backgroundFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

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

/* Scroll-triggered animations - Ultra smooth with spring physics */
.scroll-reveal {
    opacity: 0;
    transform: translateY(50px) scale(0.96);
    filter: blur(10px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
}

/* Smooth exit animation when scrolling back up */
.scroll-reveal:not(.revealed) {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-left {
    opacity: 0;
    transform: translateX(-70px) translateY(15px) scale(0.95);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal-left.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
}

.scroll-reveal-left:not(.revealed) {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-right {
    opacity: 0;
    transform: translateX(70px) translateY(15px) scale(0.95);
    filter: blur(8px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.5s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 1s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal-right.revealed {
    opacity: 1;
    transform: translateX(0) translateY(0) scale(1);
    filter: blur(0);
}

.scroll-reveal-right:not(.revealed) {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal-scale {
    opacity: 0;
    transform: scale(0.88);
    filter: blur(10px);
    transition: opacity 1.1s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.4s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 0.9s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform, filter;
}

.scroll-reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
}

.scroll-reveal-scale:not(.revealed) {
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Stagger delays for children - smoother cascade */
.scroll-stagger > *:nth-child(1) { transition-delay: 0s; }
.scroll-stagger > *:nth-child(2) { transition-delay: 0.08s; }
.scroll-stagger > *:nth-child(3) { transition-delay: 0.16s; }
.scroll-stagger > *:nth-child(4) { transition-delay: 0.24s; }
.scroll-stagger > *:nth-child(5) { transition-delay: 0.32s; }
.scroll-stagger > *:nth-child(6) { transition-delay: 0.4s; }

/* Info stats specific stagger - cascade effect */
.info-stats.scroll-stagger > .scroll-reveal:nth-child(1) { transition-delay: 0s; }
.info-stats.scroll-stagger > .scroll-reveal:nth-child(2) { transition-delay: 0.1s; }
.info-stats.scroll-stagger > .scroll-reveal:nth-child(3) { transition-delay: 0.2s; }
.info-stats.scroll-stagger > .scroll-reveal:nth-child(4) { transition-delay: 0.3s; }
.info-stats.scroll-stagger > .scroll-reveal:nth-child(5) { transition-delay: 0.4s; }

/* Reset delays for exit animation */
.info-stats.scroll-stagger > .scroll-reveal:not(.revealed) { transition-delay: 0s !important; }

/* Exchange View */
.app-header {
    background-color: rgb(18, 18, 20);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 16px 20px 0px 20px;
    padding-top: calc(16px + env(safe-area-inset-top));
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    opacity: 0;
    animation: fadeSlideIn 1s cubic-bezier(0.22, 1, 0.36, 1) 0.05s forwards;
    transition: all 0.05s linear;
}

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

.header-logo {
    width: 64px;
    height: 64px;
    flex-shrink: 0;
    display: inline-block;
    position: relative;
    object-fit: contain;
    margin-left: -12px;
    margin-top: -10px;
    filter: saturate(1.1) brightness(0.85);
}

.header-brand {
    font-size: clamp(16px, 2.1vw, 20px);
    font-weight: 800;
    color: rgb(210, 44, 124);
    margin-left: -18px;
    margin-right: 20px;
    margin-top: -14px;
    font-family: var(--rounded-font);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(120deg, rgb(210, 44, 124) 0%, rgb(226, 76, 150) 45%, rgb(238, 110, 176) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 2px 14px rgba(210, 44, 124, 0.3);
}

.header-tabs {
    display: flex;
    gap: 2px;
    align-items: center;
    margin-top: -11px;
    margin-left: 0;
}

.header-tabs .tab-btn {
    padding: 8px 14px;
    font-size: clamp(11px, 1.6vw, 13px);
    border-radius: 14px;
    font-weight: 600;
    border: none;
    outline: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: var(--rounded-font);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header-tabs .tab-btn:hover {
    color: rgba(255, 255, 255, 0.75);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-1px) scale(1.02);
}

.header-tabs .tab-btn.active {
    background: transparent;
    color: rgb(255, 255, 255);
    font-weight: 700;
    border: none;
    box-shadow: none;
    transform: scale(1.05);
    letter-spacing: 0.2em;
}

.header-tabs .tab-btn.active:hover {
    background: transparent;
    transform: translateY(-1px) scale(1.05);
}

.header-tabs .tab-btn.active:active {
    background: transparent;
    transform: scale(1.03);
}

/* Mobile Menu - Hidden on desktop */
.mobile-menu-wrapper {
    display: none;
    position: relative;
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    padding: 8px;
    transition: background 0.15s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hamburger-line {
    width: 18px;
    height: 2px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 1px;
    transition: all 0.2s ease;
}

.mobile-menu-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgb(20, 20, 24);
    border: none;
    border-radius: 12px;
    padding: 6px;
    padding-top: 14px;
    margin-top: 6px;
    min-width: 140px;
    z-index: 1000;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.mobile-menu-dropdown::before {
    content: '';
    position: absolute;
    top: -8px;
    left: 0;
    right: 0;
    height: 8px;
}

.mobile-menu-dropdown.open,
.mobile-menu-wrapper:hover .mobile-menu-dropdown:not(.force-closed) {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mobile-menu-dropdown.force-closed {
    display: none !important;
}

.mobile-menu-item {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    font-weight: 600;
    font-family: var(--rounded-font);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.mobile-menu-item:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.mobile-menu-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.header-buttons {
    display: flex;
    gap: 8px;
    align-items: center;
    margin-top: -14px;
    margin-right: -2px;
    flex-shrink: 0;
}

.wallet-network-wrapper {
    position: relative;
    z-index: 1001;
}

.wallet-network-btn {
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    box-shadow: none;
}

.wallet-network-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.16);
}

.wallet-network-btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.wallet-network-icon {
    width: 22px;
    height: 22px;
    border-radius: 7px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.wallet-network-label,
.wallet-network-arrow {
    display: none;
}

.wallet-network-icon img {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.wallet-network-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
}

.wallet-network-arrow {
    width: 12px;
    height: 12px;
    color: rgba(255, 255, 255, 0.6);
    transition: transform 0.15s ease;
}

.wallet-network-btn.open .wallet-network-arrow {
    transform: rotate(180deg);
}

.wallet-btn {
    padding: 9px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    font-size: clamp(15px, 2.5vw, 18px);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    color: white;
}

.connect-wrapper {
    position: relative;
    z-index: 1001;
}

.connect-btn {
    background: rgba(236, 72, 153, 1);
}

.connect-btn:hover {
    background: rgba(246, 92, 173, 1);
}

.connect-btn:active {
    background: rgba(216, 52, 133, 1);
}

#connectDropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 180px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    z-index: 1002;
    pointer-events: none;
}

#connectDropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

html[data-theme="light"] #connectDropdown {
    background: #ffffff;
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.connect-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 12, 0.6);
    backdrop-filter: blur(6px);
    z-index: 2000;
}

.connect-modal.active {
    display: flex;
    animation: fadeIn 0.15s ease;
}

.connect-modal-panel {
    width: min(360px, 92vw);
    background: rgba(28, 28, 30, 1);
    border-radius: 16px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.connect-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px 8px;
}

.connect-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.connect-modal-close {
    border: none;
    background: transparent;
    color: white;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    padding: 4px 8px;
}

.connect-modal-close:hover {
    opacity: 0.7;
}

.connect-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    cursor: pointer;
    transition: all 0.15s ease;
    border-radius: 8px;
    margin: 2px 6px;
}

.connect-option:hover {
    background: rgba(236, 72, 153, 0.15);
    transform: translateX(4px);
}

.connect-option:active {
    transform: translateX(4px) scale(0.98);
}

.connect-option img {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    transition: transform 0.15s ease;
}

.connect-option:hover img {
    transform: scale(1.08);
}

.connect-option span {
    font-size: 14px;
    font-weight: 500;
    color: white;
    transition: color 0.15s ease;
}

.connect-option:hover span {
    color: rgba(255, 255, 255, 1);
}

.connect-option.disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.connect-option.disabled:hover {
    background: transparent;
}

.coming-soon-badge {
    font-size: 10px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.5) !important;
    background: rgba(255, 255, 255, 0.1);
    padding: 3px 8px;
    border-radius: 4px;
    margin-left: auto;
}

.profile-btn {
    background: rgba(51, 102, 204, 0.15);
    width: 32px;
    height: 32px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    box-shadow: none;
    color: rgba(51, 102, 204, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    margin-top: -2px;
}

.profile-btn:hover {
    background: rgba(51, 102, 204, 0.25);
    color: rgba(51, 102, 204, 1);
}

.profile-btn:active,
.profile-btn:focus {
    background: rgba(51, 102, 204, 0.2);
    outline: none;
    box-shadow: none;
}

/* Profile Slide Out Menu */
.profile-menu {
    position: fixed;
    top: 12px;
    right: -470px;
    width: 450px;
    height: calc(100vh - 24px);
    background: #15171b;
    z-index: 1000;
    transition: right 0.22s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.16s ease-out,
                transform 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    opacity: 0;
    transform: translate3d(18px, 0, 0) scale(0.98);
    will-change: transform, opacity, right;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.profile-menu.open {
    right: -1px;
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.profile-menu-header {
    padding: 22px 22px 16px;
    border-bottom: none;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
    overflow: visible;
    flex: 1;
    min-height: 0;
}

/* Header icons */
.header-icons {
    position: absolute;
    top: 20px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.settings-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s ease;
}

.settings-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.05);
}

/* Settings button */
.settings-btn-wrapper {
    position: relative;
}

.settings-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(24, 24, 27, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 14px;
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1001;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
    padding: 8px;
}

.settings-btn-wrapper:hover .settings-dropdown,
.settings-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.settings-dropdown-item {
    width: 100%;
    padding: 12px 16px;
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
    transition: background 0.15s ease;
}

.settings-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* Theme toggle in settings */
.settings-section {
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    transition: background 0.2s ease;
}

.settings-section:not(:last-child) {
    margin-bottom: 8px;
}

.settings-section:hover {
    background: rgba(255, 255, 255, 0.04);
}

.settings-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.2px;
    text-transform: uppercase;
    font-size: 11px;
}

.theme-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.theme-option {
    width: 36px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.theme-option:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(236, 72, 153, 0.15);
}

.theme-option.active {
    background: rgb(236, 72, 153);
    color: white;
}

.theme-option.active:hover {
    background: rgb(246, 92, 173);
}

.theme-option svg {
    width: 16px;
    height: 16px;
    stroke-width: 2.5;
}

/* Network toggle */
.network-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 4px;
    gap: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.network-option {
    min-width: 60px;
    height: 32px;
    border: none;
    background: transparent;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0 10px;
}

.network-option:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(236, 72, 153, 0.15);
}

.network-option.active {
    background: rgb(236, 72, 153);
    color: white;
}

.network-option.active:hover {
    background: rgb(246, 92, 173);
}

.network-option svg {
    width: 14px;
    height: 14px;
    stroke-width: 2.5;
}

.network-option span {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

/* Power button */
.power-btn-wrapper {
    position: relative;
    overflow: visible;
}

.power-btn {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
    transition: all 0.15s ease;
}

.power-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.7);
}

.power-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(32, 32, 34, 1);
    border-radius: 10px;
    min-width: 140px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: all 0.15s ease;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Hover bridge - invisible area to keep dropdown open when moving cursor */
.power-dropdown::before {
    content: '';
    position: absolute;
    top: -12px;
    left: 0;
    right: 0;
    height: 12px;
}

.power-btn-wrapper:hover .power-dropdown,
.power-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.power-dropdown-item {
    width: 100%;
    padding: 14px 20px;
    background: transparent;
    border: none;
    color: rgba(220, 70, 60, 1);
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    cursor: pointer;
    text-align: left;
    border-radius: 10px;
    transition: background 0.15s ease;
    position: relative;
    z-index: 1;
}

.power-dropdown-item:hover {
    background: rgba(220, 70, 60, 0.15);
}

.power-dropdown-item:active {
    background: rgba(220, 70, 60, 0.25);
    transform: scale(0.98);
}

.power-dropdown-item:disabled {
    opacity: 0.6;
    cursor: wait;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    min-height: 48px;
    flex-shrink: 0;
    border-radius: 50%;
    background: linear-gradient(150deg, rgba(51, 102, 204, 0.22) 0%, rgba(236, 72, 153, 0.12) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(51, 102, 204, 1);
    margin-top: -8px;
}

.profile-avatar svg {
    width: 26px;
    height: 26px;
}

.profile-address-row {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    margin-left: -8px;
    border-radius: 6px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-address-row:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.08);
}

.profile-address {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
    letter-spacing: 0.3px;
    -webkit-font-smoothing: antialiased;
}

.profile-balance {
    font-size: 28px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
    margin-top: 6px;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    -webkit-font-smoothing: antialiased;
}

/* Buy Crypto Button */
/* Buy Crypto Button in Profile Header */
.header-icons .buy-crypto-btn,
.buy-crypto-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px;
    padding: 8px 14px;
    background: rgba(236, 72, 153, 0.15) !important;
    color: rgb(236, 72, 153) !important;
    border: 1px solid rgba(236, 72, 153, 0.35) !important;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
    -webkit-font-smoothing: antialiased;
    white-space: nowrap;
    height: 36px;
    box-sizing: border-box;
}

.header-icons .buy-crypto-btn:hover,
.buy-crypto-btn:hover {
    background: rgba(236, 72, 153, 0.25) !important;
    color: rgb(244, 114, 182) !important;
    border-color: rgba(236, 72, 153, 0.5) !important;
    transform: translateY(-1px);
}

.header-icons .buy-crypto-btn:active,
.buy-crypto-btn:active {
    background: rgba(236, 72, 153, 0.3) !important;
    transform: translateY(0);
}

.buy-crypto-btn svg {
    flex-shrink: 0;
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Stripe Crypto Onramp Modal */
.stripe-onramp-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: none;
    justify-content: center;
    align-items: center;
}

.stripe-onramp-modal.active {
    display: flex;
}

.stripe-onramp-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.stripe-onramp-content {
    position: relative;
    background: rgba(24, 24, 28, 0.98);
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.stripe-onramp-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.stripe-onramp-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.stripe-onramp-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: all 0.15s ease;
}

.stripe-onramp-close:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.1);
}

.stripe-onramp-container {
    min-height: 500px;
    width: 100%;
}

/* Light theme */
html[data-theme="light"] .stripe-onramp-content {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .stripe-onramp-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .stripe-onramp-header h3 {
    color: #000000;
}

html[data-theme="light"] .stripe-onramp-close {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .stripe-onramp-close:hover {
    color: rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.05);
}

.profile-divider {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 14px;
}

/* Profile Tabs */
.profile-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.04) 100%);
    border-radius: 10px;
    padding: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.profile-tab {
    flex: 1;
    padding: 7px 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    border-radius: 8px;
    transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.profile-tab:hover {
    color: rgba(255, 255, 255, 0.85);
    background: rgba(255, 255, 255, 0.07);
}

.profile-tab:focus-visible {
    outline: 2px solid rgba(236, 72, 153, 0.45);
    outline-offset: 1px;
}

.profile-tab:active {
    transform: none;
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95) 0%, rgba(219, 39, 119, 0.95) 100%);
    color: #ffffff;
}

.profile-tab.active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95) 0%, rgba(219, 39, 119, 0.95) 100%);
    color: #ffffff;
    box-shadow: 0 6px 16px rgba(236, 72, 153, 0.25);
}

/* Profile Tab Content */
.profile-tab-content {
    display: none;
    width: 100%;
    opacity: 0;
}

.profile-tab-content.active {
    display: flex;
    flex-direction: column;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
    opacity: 1;
    animation: tabSlideIn 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tabSlideIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#sendView.active {
    flex: 1;
    min-height: 0;
}

/* Transactions List */
.profile-transactions-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    padding-bottom: 20px;
    animation: txListFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes txListFadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.profile-transactions-list::-webkit-scrollbar {
    width: 3px;
}

.profile-transactions-list::-webkit-scrollbar-track {
    background: transparent;
}

.profile-transactions-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.profile-tx-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    border: 1px solid transparent;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: txItemSlideIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
    transform: translateX(-12px);
    will-change: transform, opacity;
}

@keyframes txItemSlideIn {
    from {
        opacity: 0;
        transform: translateX(-12px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Stagger animation delays for transaction items */
.profile-tx-item:nth-child(1) { animation-delay: 0.05s; }
.profile-tx-item:nth-child(2) { animation-delay: 0.08s; }
.profile-tx-item:nth-child(3) { animation-delay: 0.11s; }
.profile-tx-item:nth-child(4) { animation-delay: 0.14s; }
.profile-tx-item:nth-child(5) { animation-delay: 0.17s; }
.profile-tx-item:nth-child(6) { animation-delay: 0.2s; }
.profile-tx-item:nth-child(7) { animation-delay: 0.23s; }
.profile-tx-item:nth-child(8) { animation-delay: 0.26s; }
.profile-tx-item:nth-child(9) { animation-delay: 0.29s; }
.profile-tx-item:nth-child(10) { animation-delay: 0.32s; }
.profile-tx-item:nth-child(n+11) { animation-delay: 0.35s; }

.profile-tx-item:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: translateX(4px) scale(1.01);
}

.profile-tx-logos {
    position: relative;
    width: 56px;
    height: 48px;
    flex-shrink: 0;
}

.profile-tx-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    position: absolute;
    top: 4px;
    left: 0;
}

.profile-tx-logo.second {
    position: absolute;
    left: 22px;
    top: 4px;
    border: 2px solid rgb(20, 20, 24);
    width: 36px;
    height: 36px;
}

.profile-tx-logo.single {
    position: static;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Logo wrapper for single logos with network badge */
.profile-tx-logo-wrapper {
    position: relative;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

/* Network badge on transaction logos */
.network-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #1a1a2e;
    border: 2px solid #1a1a2e;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5;
}

.network-badge img {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    object-fit: cover;
}

.profile-tx-logos .network-badge {
    bottom: 0;
    right: 10px;
}

.profile-tx-icon-placeholder {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
}

.profile-tx-icon-placeholder.swap {
    background: rgba(139, 92, 246, 0.15);
}

.profile-tx-icon-placeholder.pool {
    background: rgba(236, 72, 153, 0.15);
}

.profile-tx-icon-placeholder.unpool {
    background: rgba(249, 115, 22, 0.15);
}

.profile-tx-icon-placeholder.send {
    background: rgba(239, 68, 68, 0.15);
}

.profile-tx-icon-placeholder.receive {
    background: rgba(34, 197, 94, 0.15);
}

.profile-tx-icon-placeholder.other {
    background: rgba(255, 255, 255, 0.1);
}

.profile-tx-icon-placeholder.reward {
    background: rgba(250, 204, 21, 0.15);
}

.profile-tx-icon-placeholder.flip-create {
    background: rgba(99, 102, 241, 0.15);
}

.profile-tx-icon-placeholder.flip-join {
    background: rgba(168, 85, 247, 0.15);
}

.profile-tx-icon-placeholder.flip-win {
    background: rgba(52, 211, 153, 0.15);
}

.profile-tx-icon-placeholder.flip-lose {
    background: rgba(248, 113, 113, 0.15);
}

.profile-tx-icon-placeholder.flip-cancel {
    background: rgba(251, 191, 36, 0.15);
}

.profile-tx-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-tx-title {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-tx-subtitle {
    font-size: 12px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-tx-amount {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    flex-shrink: 0;
}

.profile-tx-amount.positive {
    color: rgb(34, 197, 94);
}

.profile-tx-amount.negative {
    color: rgb(239, 68, 68);
}

.profile-no-transactions {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
}

.profile-coin-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 520px;
    overflow-y: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    transform: translateZ(0);
    contain: layout style paint;
}

.profile-coin-list::-webkit-scrollbar {
    width: 4px;
}

.profile-coin-list::-webkit-scrollbar-track {
    background: transparent;
}

.profile-coin-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.profile-coin-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
    contain: layout style paint;
    opacity: 0;
    animation: profileItemSlideIn 0.2s ease-out forwards;
    will-change: transform, opacity;
}

/* Staggered animation delays for smooth cascade */
.profile-coin-item:nth-child(1) { animation-delay: 0ms; }
.profile-coin-item:nth-child(2) { animation-delay: 25ms; }
.profile-coin-item:nth-child(3) { animation-delay: 50ms; }
.profile-coin-item:nth-child(4) { animation-delay: 75ms; }
.profile-coin-item:nth-child(5) { animation-delay: 100ms; }
.profile-coin-item:nth-child(6) { animation-delay: 125ms; }
.profile-coin-item:nth-child(7) { animation-delay: 150ms; }
.profile-coin-item:nth-child(n+8) { animation-delay: 160ms; }

@keyframes profileItemSlideIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-coin-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
}

.profile-coin-logo {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    flex-shrink: 0;
    transition: opacity 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-coin-logo[src]:not([src=""]) {
    background: transparent;
    animation: none;
}

.profile-coin-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-coin-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.2px;
}

.profile-coin-amount {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-coin-price {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-coin-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    flex-shrink: 0;
}

/* Profile Pool Section */
.profile-pools-section {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-section-header {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.55);
    text-transform: none;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.profile-pool-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: 240px;
    overflow-y: auto;
    margin-left: -20px;
    margin-right: -20px;
    padding-left: 20px;
    padding-right: 20px;
}

.profile-pool-list::-webkit-scrollbar {
    width: 4px;
}

.profile-pool-list::-webkit-scrollbar-track {
    background: transparent;
}

.profile-pool-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.profile-pool-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.02));
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
    transition: background 0.12s ease, border-color 0.12s ease;
    width: 100%;
    box-sizing: border-box;
}

.profile-pool-item:hover {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
    border-color: rgba(255, 255, 255, 0.14);
}

.profile-pool-logos {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.profile-pool-logo {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.06);
    border: 2px solid rgba(20, 20, 24, 0.9);
}

.profile-pool-logo:last-child {
    margin-left: -12px;
}

.profile-pool-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}

.profile-pool-name {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.2px;
}

.profile-pool-amounts {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-pool-amounts.is-closed {
    color: rgba(255, 255, 255, 0.35);
}

.profile-pool-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
    margin-left: auto;
}

.profile-pool-btn {
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.profile-pool-btn.pool-btn {
    background: rgba(236, 72, 153, 0.2);
    color: rgba(236, 72, 153, 0.95);
    border-color: rgba(236, 72, 153, 0.4);
}

.profile-pool-btn.pool-btn:hover {
    background: rgba(236, 72, 153, 0.24);
}

.profile-pool-btn.unpool-btn {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.75);
}

.profile-pool-btn.unpool-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.profile-pool-btn.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.profile-no-pools {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    text-align: center;
    padding: 20px;
}

/* Send View Styles */
.send-container {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding: 10px 0;
    gap: 10px;
    flex: 1;
    justify-content: flex-start;
}

.send-top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 20px 18px;
    margin-top: 0;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: none;
}

.send-bottom-section {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: auto;
    padding: 10px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: none;
}

.send-amount-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 2px;
}

.send-amount-value {
    font-size: 36px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.5px;
    line-height: 1;
}

.send-amount-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.send-amount-logo[src]:not([src=""]) {
    opacity: 1;
    object-fit: cover;
    flex-shrink: 0;
}

.send-amount-symbol {
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.55);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    line-height: 1;
    letter-spacing: 0.3px;
}

.send-usd-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.45);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.send-coin-wrapper {
    position: relative;
    width: 100%;
}

.send-coin-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 14px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
    width: 100%;
    box-sizing: border-box;
}

.send-coin-selector:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(255, 255, 255, 0.14);
}

.send-coin-selector:focus-within {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: none;
}

.send-coin-logo-wrap {
    position: relative;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
}

.send-coin-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.send-coin-logo[src]:not([src=""]) {
    opacity: 1;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.send-coin-network-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: none;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(18, 18, 20, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.send-coin-network-badge img {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.send-coin-name {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.send-coin-balance {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin-left: auto;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.send-coin-arrow {
    color: rgba(255, 255, 255, 0.4);
    flex-shrink: 0;
}

.send-coin-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(20, 20, 26, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    margin-top: 4px;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
}

.send-coin-dropdown.open {
    display: block;
}

.send-coin-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.send-coin-option:hover {
    background: rgba(255, 255, 255, 0.05);
}

.send-coin-option-logo-wrap {
    position: relative;
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.send-coin-option-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.05);
    opacity: 0;
    transition: opacity 0.2s ease;
    transform: translateZ(0);
    backface-visibility: hidden;
}

.send-coin-option-img[src]:not([src=""]) {
    opacity: 1;
}

.send-coin-option-network-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(18, 18, 20, 0.9);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.send-coin-option-network-badge img {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.send-coin-option span {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.send-coin-option .option-balance {
    margin-left: auto;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.send-address-wrapper {
    display: flex;
    align-items: center;
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    overflow: hidden;
    box-shadow: none;
    transition: border-color 0.15s ease, background 0.2s ease;
}

.send-address-wrapper:focus-within {
    border-color: rgba(236, 72, 153, 0.45);
    background: rgba(255, 255, 255, 0.06);
}

.send-address-input {
    flex: 1;
    padding: 18px 14px;
    background: transparent;
    border: none;
    outline: none;
    font-size: 14px;
    letter-spacing: 0.2px;
    color: rgba(255, 255, 255, 0.9);
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.send-address-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

.send-paste-btn {
    padding: 12px 14px;
    background: transparent;
    border: none;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
    transition: color 0.15s ease;
}

.send-paste-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.send-percent-row {
    display: flex;
    gap: 8px;
    width: 100%;
}

.send-percent-btn {
    flex: 1;
    padding: 8px 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    box-shadow: none;
}

.send-percent-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.14);
}

.send-percent-btn:active {
    transform: scale(0.98);
}

.send-keypad {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    padding: 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.send-key {
    padding: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 18px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    box-shadow: none;
}

.send-key:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.14);
}

.send-key:active {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(1px) scale(0.98);
}

.send-key-delete {
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.6);
}

.send-submit-btn {
    width: 100%;
    padding: 14px;
    background: rgba(236, 72, 153, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.3);
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    margin-top: 6px;
    box-shadow: none;
}

.send-submit-btn:hover {
    transform: none;
    background: rgba(236, 72, 153, 1);
    border-color: rgba(236, 72, 153, 0.5);
}

.send-submit-btn:active {
    transform: none;
    background: rgba(255, 110, 200, 0.95);
}

.send-submit-btn:focus-visible {
    outline: 2px solid rgba(236, 72, 153, 0.45);
    outline-offset: 2px;
}

.send-submit-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.3);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
    border-color: transparent;
}

/* Unpool Modal Styles */
#unpoolModal .pool-liquidity-modal {
    animation: unpoolPopIn 0.16s cubic-bezier(0.16, 1, 0.3, 1);
    transform-origin: center;
    will-change: transform, opacity;
}

@keyframes unpoolPopIn {
    from { opacity: 0; transform: translateY(6px) scale(0.995); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.unpool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-bottom: 10px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.unpool-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.75);
}

.unpool-pool-name {
    font-size: 12px;
    font-weight: 600;
    color: rgb(255, 120, 190);
    background: rgba(255, 120, 190, 0.14);
    border: 1px solid rgba(255, 120, 190, 0.2);
    padding: 5px 10px;
    border-radius: 999px;
}

.unpool-position-info {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: none;
}

.unpool-position-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 10px;
}

.unpool-position-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.unpool-token-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 10px;
    border-radius: 10px;
    background: rgba(14, 14, 18, 0.6);
    border: none;
}

.unpool-token-logo {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    object-fit: cover;
}

.unpool-token-symbol {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

.unpool-amount-section {
    margin-bottom: 14px;
}

.unpool-amount-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.unpool-percent-buttons {
    display: flex;
    gap: 6px;
    padding: 4px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.unpool-percent-btn {
    flex: 1;
    padding: 7px 6px;
    background: rgba(255, 255, 255, 0.05);
    border: none;
    border-radius: 9px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.6);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
}

.unpool-percent-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.unpool-percent-btn.active {
    background: rgba(255, 120, 190, 0.22);
    color: rgb(255, 120, 190);
}

.unpool-receive-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 11px;
    padding: 12px;
    margin-bottom: 14px;
    box-shadow: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.unpool-receive-label {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 12px;
}

.unpool-receive-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.unpool-receive-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.02);
    border: none;
}

.unpool-receive-logo {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    object-fit: cover;
}

.unpool-receive-amount {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    transition: opacity 0.16s ease, transform 0.16s ease;
    will-change: opacity, transform;
}

.unpool-receive-symbol {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.unpool-receipt {
    margin-top: 8px;
    padding: 8px 10px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: none;
}

.unpool-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.unpool-receipt-row span:last-child {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.16s ease, transform 0.16s ease;
    will-change: opacity, transform;
}

.unpool-value-pulse {
    opacity: 0.75;
    transform: translateY(-0.5px);
}

@media (prefers-reduced-motion: reduce) {
    #unpoolModal .pool-liquidity-modal {
        animation: none;
    }
    .pool-inputs-row,
    .unpool-receive-section {
        transition: none;
    }
    .pool-liquidity-modal.is-depositing .pool-deposit-steps,
    .pool-liquidity-modal.is-withdrawing .unpool-withdraw-steps {
        animation: none;
    }
    .unpool-receive-amount,
    .unpool-receipt-row span:last-child {
        transition: none;
    }
    .unpool-value-pulse {
        opacity: 1;
        transform: none;
    }
}

.address-copy-btn {
    width: 22px;
    height: 22px;
    border-radius: 5px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.15s ease;
    padding: 0;
    opacity: 0;
}

.profile-address-row:hover .address-copy-btn {
    opacity: 1;
}

.address-copy-btn:hover {
    color: rgba(255, 255, 255, 1);
    border-color: rgba(255, 255, 255, 0.3);
}


/* Profile menu backdrop */
.profile-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 460px;
    bottom: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease, background 0.25s ease;
}

.profile-backdrop.open {
    opacity: 1;
    visibility: visible;
    background: transparent;
}

.exchange-container {
    max-width: 560px;
    margin: 0 auto;
    padding: 120px 20px 30px 20px;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-x: hidden;
}

/* Balance Section */
.balance-section {
    background: linear-gradient(145deg, rgba(40, 40, 42, 1), rgba(32, 32, 34, 1));
    padding: 32px;
    border-radius: 24px;
    margin-bottom: 24px;
    text-align: center;
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.balance-section h2 {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1.2px;
}

.total-balance {
    font-size: 52px;
    font-weight: 600;
    margin-bottom: 18px;
    background: linear-gradient(135deg, rgb(120, 95, 255), rgb(150, 125, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wallet-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.wallet-address {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.copy-btn {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.copy-btn:hover {
    background: rgba(255, 255, 255, 0.15);
}

/* Tabs */
.tab-nav {
    display: flex;
    gap: 6px;
    margin-bottom: 24px;
    background: linear-gradient(145deg, rgba(20, 20, 22, 1), rgba(16, 16, 18, 1));
    padding: 6px;
    border-radius: 16px;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-size: 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: var(--rounded-font);
    letter-spacing: 0.02em;
}

.tab-btn:hover {
    color: rgba(255, 255, 255, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn.active {
    background: linear-gradient(135deg, rgb(102, 77, 230), rgb(127, 102, 255));
    color: white;
}

.tab-content {
    display: none;
    will-change: opacity, transform;
}

.tab-content.active {
    display: block;
    animation: tabFadeIn 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tabFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Floating Coins Background - hidden by default, shown on swap tab */
.floating-coins {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
    /* Extend into iOS safe area */
    margin-top: calc(-1 * env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    height: calc(100% + env(safe-area-inset-top, 0px));
    display: none;
}

.floating-coin-wrapper {
    position: absolute;
    pointer-events: none;
    opacity: 0;
    transform: scale(var(--size-multiplier, 1));
    transition: opacity 0.8s ease-out;
}

.floating-coin-wrapper.loaded {
    opacity: 1;
    animation: floatSimple 25s ease-in-out infinite;
}

/* Single simple float animation - GPU composited, no filter changes */
@keyframes floatSimple {
    0%, 100% { transform: scale(var(--size-multiplier, 1)) translateY(0); }
    50% { transform: scale(var(--size-multiplier, 1)) translateY(-8px); }
}

.floating-coin-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: none;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

/* Static depth layers - blur applied once via CSS, no transitions */
.floating-coin-wrapper.depth-far .floating-coin-img {
    opacity: 0.28;
    filter: blur(4.5px) saturate(1.02);
}

.floating-coin-wrapper.depth-mid .floating-coin-img {
    opacity: 0.45;
    filter: blur(2.8px) saturate(1.08);
}

.floating-coin-wrapper.depth-near .floating-coin-img {
    opacity: 0.65;
    filter: blur(1.2px) saturate(1.12);
}

@media (hover: hover) and (pointer: fine) {
    .floating-coin-wrapper {
        pointer-events: auto;
    }

    .floating-coin-wrapper:hover {
        z-index: 1;
    }

    .floating-coin-wrapper:hover .floating-coin-img {
        transform: scale(1.08);
        opacity: 0.9;
        filter: blur(0px) saturate(1.25) contrast(1.05) brightness(1.05);
        box-shadow: none;
    }
}

.floating-coin-tooltip {
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    white-space: nowrap;
}

.floating-coin-wrapper:hover .floating-coin-tooltip {
    opacity: 1;
    visibility: visible;
    transform: translateY(-50%) rotate(0deg);
}

.tooltip-symbol {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.tooltip-price {
    display: none;
}

/* Coin sizes - positions set by JS */
.coin-1 { width: 88px; height: 88px; }
.coin-2 { width: 80px; height: 80px; }
.coin-3 { width: 77px; height: 77px; }
.coin-4 { width: 83px; height: 83px; }
.coin-5 { width: 78px; height: 78px; }
.coin-6 { width: 82px; height: 82px; }
.coin-7 { width: 77px; height: 77px; }
.coin-8 { width: 83px; height: 83px; }
.coin-9 { width: 74px; height: 74px; }
.coin-10 { width: 86px; height: 86px; }

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-12px) rotate(2deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(12px) rotate(-2deg);
    }
}

@keyframes floatFar {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-6px) rotate(1deg);
    }
}

@keyframes floatNear {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-18px) rotate(3deg);
    }
    50% {
        transform: translateY(0) rotate(0deg);
    }
    75% {
        transform: translateY(18px) rotate(-3deg);
    }
}

/* Swap Container Wrapper */
.swap-container-wrapper {
    background: rgba(14, 14, 16, 0.95);
    border-radius: 24px;
    padding: 6px;
    position: relative;
    z-index: 2;
    opacity: 0;
    animation: fadeInScale 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.1s forwards;
    transition: margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Swap Slogan */
.swap-slogan {
    font-size: clamp(36px, 9vw, 64px);
    font-weight: 600;
    color: white;
    text-align: center;
    margin: 0 clamp(-20px, -10vw, -100px) 36px clamp(-20px, -10vw, -100px);
    padding: 0 10px;
    font-family: 'Avenir Next', 'Avenir', 'Helvetica Neue', 'Segoe UI', sans-serif;
    letter-spacing: -0.6px;
    white-space: normal;
    line-height: 1.08;
    opacity: 0;
    animation: sloganReveal 1.4s cubic-bezier(0.16, 1, 0.3, 1) 0s forwards;
    -webkit-font-smoothing: antialiased;
    transition: font-size 0.4s cubic-bezier(0.4, 0, 0.2, 1), margin 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Swap Boxes */
.swap-box {
    background: rgba(20, 20, 22, 0.92);
    padding: 20px;
    border-radius: 16px;
    margin-bottom: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: visible;
    box-shadow: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.swap-box:focus-within {
    background: rgba(18, 18, 20, 0.96);
    border-color: rgba(255, 255, 255, 0.14);
}

/* Percent Buttons */
.percent-buttons {
    position: absolute;
    top: 14px;
    right: 14px;
    display: flex;
    gap: 5px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
    z-index: 5;
}

#fromBox:hover .percent-buttons {
    opacity: 1;
    visibility: visible;
}

.percent-btn {
    padding: 4px 10px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.percent-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    border-color: rgba(236, 72, 153, 0.4);
    color: rgba(236, 72, 153, 1);
}

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

/* Quick Select Coins for Buy Box */
.quick-select-coins {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    gap: 6px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.15s ease, visibility 0.15s ease;
    z-index: 5;
}

#toBox:hover .quick-select-coins {
    opacity: 1;
    visibility: visible;
}

.quick-select-coin {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    border: none;
    outline: none;
    opacity: 0.6;
    -webkit-tap-highlight-color: transparent;
}

.quick-select-coin:hover {
    transform: scale(1.08);
    opacity: 1;
}

.quick-select-coin:focus {
    outline: none;
}

.quick-select-coin:active {
    transform: scale(1);
}

.swap-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin: 0;
    position: relative;
    z-index: 10;
    height: 0;
    top: 4px;
    margin-bottom: 4px;
    text-align: center;
    opacity: 0;
    animation: fadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.swap-controls + .swap-box {
    margin-top: 8px;
}

.swap-footer {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin-top: 10px;
    border: none;
    position: relative;
    opacity: 0;
    animation: buttonReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.send-card, .receive-card, .history-card {
    background: rgba(22, 22, 24, 1);
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    border: 0.5px solid rgba(255, 255, 255, 0.06);
    opacity: 0;
    animation: fadeSlideIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.input-group {
    margin-bottom: 0;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.coin-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.coin-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 140px;
}

.coin-logo-select {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    position: absolute;
    left: 12px;
    pointer-events: none;
    z-index: 1;
    object-fit: cover;
    display: none;
    background: rgba(255, 255, 255, 0.1);
}

.coin-select {
    background: rgba(28, 28, 30, 1);
    border: none;
    color: white;
    padding: 16px 14px 16px 52px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    min-width: 140px;
    width: 100%;
    transition: all 0.15s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
}

.coin-select:hover {
    background: rgba(36, 36, 38, 1);
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
    min-width: 140px;
    flex: 0 0 auto;
}

.custom-select-trigger {
    background: rgba(255, 255, 255, 0.06);
    border: none;
    color: white;
    padding: 10px 30px 10px 14px;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 400;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background 0.2s ease;
    letter-spacing: 0.5px;
    position: relative;
}

/* Outlined style for coin selector in outlined box */
.swap-box.outlined .custom-select-trigger {
    background: rgba(255, 255, 255, 0.04);
    border: none;
}

.custom-select-trigger::after {
    content: '';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid rgba(255, 255, 255, 0.35);
}

.custom-select-trigger:hover {
    background: rgba(255, 255, 255, 0.1);
}

.custom-select-logo {
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
    transform: scale(1);
    visibility: visible;
    /* Ensure logo loads smoothly */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.custom-select-logo[src]:not([src=""]) {
    display: block;
    opacity: 1;
    visibility: visible;
}

/* Smooth swap animation for logos */
.custom-select-logo.swapping {
    animation: logoSwapPulse 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes logoSwapPulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(0.85) rotate(10deg);
        opacity: 0.7;
    }
    100% {
        transform: scale(1) rotate(0deg);
        opacity: 1;
    }
}

/* Pink select token state */
.custom-select-trigger.select-token {
    background: rgba(236, 72, 153, 1);
    border-color: rgba(236, 72, 153, 1);
}

.custom-select-trigger.select-token:hover {
    background: rgba(246, 92, 173, 1);
}

.custom-select-trigger.select-token::after {
    border-top-color: white;
}

.custom-select-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.custom-select-text {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: 0.4px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.custom-select-price {
    display: none;
}

/* Dropdown backdrop overlay */
.dropdown-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 99998;
    display: none;
}

.dropdown-backdrop.active {
    display: block;
}

.custom-select-dropdown {
    position: fixed !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: 460px;
    background: rgba(16, 16, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    max-height: 620px;
    overflow: hidden;
    z-index: 99999 !important;
    display: none;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
}

.custom-select-dropdown.active {
    display: flex;
    flex-direction: column;
    animation: popupFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.92);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Dropdown Header with Search */
.dropdown-header {
    padding: 16px;
    flex-shrink: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.dropdown-header-title {
    display: none;
}

.dropdown-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.dropdown-search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
    z-index: 1;
}

.dropdown-search-input {
    width: 100%;
    height: 48px;
    padding: 0 70px 0 46px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 400;
    outline: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
}

.dropdown-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.dropdown-search-input:focus {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(236, 72, 153, 0.55);
}

/* Network Selector Button */
.network-selector-btn {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    box-sizing: border-box;
    z-index: 2;
}

.network-logo-box {
    width: 26px;
    height: 26px;
    background: white;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2px;
    overflow: hidden;
    flex-shrink: 0;
    box-sizing: border-box;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.dropdown-search-wrapper .network-selector-btn {
    padding: 4px 6px;
    border-radius: 10px;
    border: 1px solid transparent;
    box-sizing: border-box;
}

.dropdown-search-wrapper .network-logo-box {
    width: 28px;
    height: 28px;
    padding: 0;
    border-radius: 8px;
}

.all-networks-grid {
    box-sizing: border-box;
    overflow: visible;
}

.network-selector-btn:hover .network-logo-box {
    transform: scale(1.05);
}

.network-selector-arrow {
    width: 14px;
    height: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 10px;
    transition: transform 0.15s ease;
}

.network-selector-btn.open .network-selector-arrow {
    transform: rotate(180deg);
}

.network-logo-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Larger white box for dropdown options */
.network-option .network-logo-box {
    width: 38px;
    height: 38px;
    background: white;
    border: none;
    padding: 2px;
    border-radius: 9px;
}

/* Network Dropdown */
.network-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: rgba(16, 16, 18, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 6px;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px) scale(0.95);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    pointer-events: none;
}

#poolTab .network-dropdown,
#transactionsTab .network-dropdown {
    top: calc(100% + 26px);
}

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

.network-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.15s ease;
    margin: 2px 0;
}

.network-option:hover {
    background: rgba(255, 255, 255, 0.06);
}

.network-option.selected {
    background: rgba(255, 255, 255, 0.05);
}

.network-option .network-logo-box {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    transition: transform 0.15s ease;
}

.network-option:hover .network-logo-box {
    transform: scale(1.03);
}

.network-option-name {
    font-size: 14px;
    font-weight: 500;
    color: white;
    flex: 1;
}

.network-option-badge {
    font-size: 11px;
    color: rgba(120, 220, 120, 0.95);
    background: rgba(120, 220, 120, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 500;
    letter-spacing: 0.2px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.network-dropdown .network-option {
    padding: 10px 12px;
    margin: 2px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.network-dropdown .network-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.network-dropdown .network-option.selected {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
}

.network-dropdown .network-option[data-network="all"] {
    border-color: transparent;
}

.network-dropdown .network-option[data-network="all"].selected {
    border-color: transparent;
}

.network-dropdown .network-option[data-network="all"] .network-logo-box {
    width: 32px !important;
    height: 32px !important;
    padding: 0 !important;
    border-radius: 8px;
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
}

.network-dropdown .network-option[data-network="all"] .all-networks-grid {
    width: 28px !important;
    height: 28px !important;
    border-radius: 6px;
}

.network-dropdown .network-logo-box {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 2px;
}

.network-dropdown .network-option-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
}

.network-dropdown .network-option-badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 999px;
    border: 1px solid rgba(120, 220, 120, 0.25);
}

/* Token List Container */
.dropdown-tokens-list {
    flex: 1;
    min-height: 400px;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 8px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
    -webkit-overflow-scrolling: touch;
    contain: strict;
}

.dropdown-tokens-list::-webkit-scrollbar {
    width: 6px;
}

.dropdown-tokens-list::-webkit-scrollbar-track {
    background: transparent;
}

.dropdown-tokens-list::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.1);
    border-radius: 3px;
}

.dropdown-tokens-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255,255,255,0.2);
}

/* No Results Message */
.dropdown-no-results {
    padding: 48px 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
}

/* Staggered fade-in animation for coins */
@keyframes coinFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 4px 6px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid transparent;
    contain: layout style;
    opacity: 0;
    transform: translateY(6px);
    animation: optionSlideIn 0.2s ease-out forwards;
    transition: background 0.15s ease, border-color 0.15s ease;
    will-change: transform, opacity;
}

/* Staggered animation delays for smooth cascade effect */
.custom-select-option:nth-child(1) { animation-delay: 0ms; }
.custom-select-option:nth-child(2) { animation-delay: 20ms; }
.custom-select-option:nth-child(3) { animation-delay: 40ms; }
.custom-select-option:nth-child(4) { animation-delay: 60ms; }
.custom-select-option:nth-child(5) { animation-delay: 80ms; }
.custom-select-option:nth-child(6) { animation-delay: 100ms; }
.custom-select-option:nth-child(7) { animation-delay: 120ms; }
.custom-select-option:nth-child(8) { animation-delay: 140ms; }
.custom-select-option:nth-child(n+9) { animation-delay: 150ms; }

@keyframes optionSlideIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select-option:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.08);
}

.custom-select-option:active {
    background: rgba(255, 255, 255, 0.08);
}

.custom-select-option.selected {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
}

.custom-select-option.hidden {
    display: none;
}

.custom-select-option img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    background: linear-gradient(90deg, rgba(255,255,255,0.04) 25%, rgba(255,255,255,0.08) 50%, rgba(255,255,255,0.04) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.2s infinite;
    flex-shrink: 0;
    border: none;
    outline: none;
    transition: opacity 0.2s ease;
}

.custom-select-option img[src]:not([src=""]) {
    background: transparent;
    animation: none;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.custom-select-option-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}

.custom-select-option-left {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.custom-select-option-symbol {
    font-size: 14px;
    font-weight: 600;
    color: white;
    letter-spacing: 0.2px;
}

.custom-select-option-name {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.custom-select-option-price {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    text-align: right;
    flex-shrink: 0;
    letter-spacing: 0.2px;
}

.custom-select-option-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.custom-select-option-balance {
    font-size: 11px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.55);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.amount-input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: none;
    color: white;
    padding: 16px 8px 16px 0;
    border-radius: 12px;
    font-size: clamp(24px, 6vw, 34px);
    font-weight: 400;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    letter-spacing: 0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

/* Remove number input spinners */
.amount-input::-webkit-outer-spin-button,
.amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.amount-input[type=number] {
    -moz-appearance: textfield;
}

.amount-input:hover {
    background: transparent;
}

.amount-input:focus {
    outline: none;
    background: transparent;
}

.coin-select:focus, .text-input:focus, .import-input:focus {
    outline: none;
    border-color: rgba(46, 94, 170, 0.6);
}

.swap-box-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.balance-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.price-display {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.swap-direction-btn {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    background: rgba(20, 20, 22, 0.96);
    color: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 6px rgba(20, 20, 22, 0.92),
        0 0 0 7px rgba(255, 255, 255, 0.08);
}

.swap-direction-btn svg {
    display: block;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.swap-direction-btn svg path {
    stroke-width: 2.2;
}

.swap-direction-btn:hover {
    background: rgba(26, 26, 30, 0.98);
    border-color: rgba(255, 255, 255, 0.2);
}

.swap-direction-btn:hover svg {
    opacity: 1;
}

.swap-direction-btn:active {
    transform: none;
    background: rgba(28, 28, 32, 0.98);
}

.swap-info {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: block;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    padding: 0 14px;
    margin-top: 0;
    transform: translateY(-4px);
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.3s ease-out,
                padding 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                margin-top 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.swap-info.visible {
    max-height: 160px;
    opacity: 1;
    padding: 12px 14px;
    margin-top: 12px;
    transform: translateY(0);
}

.calculating {
    display: inline-flex;
    align-items: center;
    justify-content: flex-end;
    height: 16px;
}

.calc-dots {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 16px;
}

.calc-dots .dot {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: rgba(236, 72, 153, 1);
    animation: dotPulse 1.2s linear infinite;
}

.calc-dots .dot:nth-child(1) { animation-delay: 0s; }
.calc-dots .dot:nth-child(2) { animation-delay: 0.2s; }
.calc-dots .dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes dotPulse {
    0%, 20%, 100% { opacity: 0.2; }
    40%, 60% { opacity: 1; }
}

.info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.info-row:last-child {
    border-bottom: none;
}

.info-row span:first-child {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 500;
    font-size: 12px;
    letter-spacing: 0.3px;
}

.info-row span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    letter-spacing: 0.3px;
    font-variant-numeric: tabular-nums;
}

.swap-btn {
    width: 100%;
    background: rgba(236, 72, 153, 0.12);
    color: rgba(236, 72, 153, 0.65);
    border: 1px solid rgba(236, 72, 153, 0.25);
    padding: 0 16px;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', sans-serif;
    letter-spacing: 0.2px;
    cursor: not-allowed;
    box-shadow: none;
    min-height: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    transform: none;
}

.swap-btn:hover:not(.active) {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.3);
    cursor: not-allowed;
    transform: none;
}

.swap-btn:active {
    transform: none;
    box-shadow: none;
}

.swap-btn.active {
    background: rgba(236, 72, 153, 0.9);
    color: #ffffff;
    cursor: pointer;
    border-color: rgba(236, 72, 153, 0.6);
    transform: none;
}

.swap-btn.active:hover {
    background: rgba(219, 39, 119, 0.9);
    transform: none;
}

.swap-btn.active:active {
    background: rgba(255, 110, 200, 0.9);
    color: #ffffff;
    transform: none;
}

.swap-btn.calculating {
    background: rgba(236, 72, 153, 0.9);
    color: #ffffff;
    cursor: wait;
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: none;
    transition: background 0.2s ease, border-color 0.2s ease;
    transform: none;
}

.swap-btn.swapping {
    background: rgba(236, 72, 153, 0.9);
    color: #ffffff;
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: none;
    transform: none;
}

.swap-btn-calc {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 100%;
    line-height: 1;
    animation: fadeInCalc 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.calc-spinner {
    width: 16px;
    height: 16px;
    border: 2.5px solid rgba(255, 255, 255, 0.25);
    border-top-color: white;
    border-right-color: rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    animation: calcSpin 0.7s linear infinite;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.4));
    will-change: transform;
}

@keyframes calcSpin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes fadeInCalc {
    0% {
        opacity: 0;
        transform: scale(0.95);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

.swap-btn.success {
    background: rgba(236, 72, 153, 0.9);
    animation: none;
    border-color: rgba(236, 72, 153, 0.6);
}

@keyframes successGlow {
    0% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
    30% {
        box-shadow: 0 0 25px 4px rgba(236, 72, 153, 0.4);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(236, 72, 153, 0);
    }
}

.swap-btn.resetting {
    opacity: 0 !important;
    transform: scale(0.96) !important;
}

.swap-btn-text {
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
    display: inline-block;
}

.swap-btn-text.visible {
    opacity: 1;
    transform: translateY(0);
}

.toggle-mode-btn {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    outline: none;
    background: rgba(255, 255, 255, 0.04);
}

.toggle-mode-btn svg {
    display: block;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.toggle-mode-btn:hover {
    background: rgba(255, 255, 255, 0.08);
}

.toggle-mode-btn:hover svg {
    opacity: 0.8;
}

.toggle-mode-btn:active {
    transform: scale(0.96);
}

/* Send Tab */
.text-input {
    width: 100%;
    background: var(--dark-background);
    border: 2px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding: 14px;
    border-radius: 12px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
}

.usd-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 6px;
}

/* Receive Tab */
.receive-card h3 {
    margin-bottom: 10px;
}

.receive-card p {
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}

.receive-address {
    background: var(--dark-background);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    word-break: break-all;
    font-family: 'Courier New', monospace;
    font-size: 14px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    margin: 20px auto;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--dark-background);
}

/* History Tab */
.transaction-list {
    max-height: 400px;
    overflow-y: auto;
}

.no-transactions {
    text-align: center;
    color: rgba(255, 255, 255, 0.4);
    padding: 40px;
}

/* Old transaction styles removed - using new styles below */

.transaction-icon {
    font-size: 24px;
    margin-right: 12px;
}

.transaction-details {
    flex: 1;
}

.transaction-type {
    font-weight: 500;
    margin-bottom: 4px;
}

.transaction-time {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.transaction-amount {
    text-align: right;
    font-weight: 500;
}

.transaction-usd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

/* Coin List */
.coin-list {
    display: none;
}

.coin-list h3 {
    margin-bottom: 16px;
    font-size: 18px;
}

.coin-balances {
    display: grid;
    gap: 12px;
}

.coin-item {
    background: var(--matte-black);
    padding: 16px 20px;
    border-radius: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.2s;
    opacity: 0;
    animation: fadeSlideIn 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.coin-item:nth-child(1) { animation-delay: 0.14s; }
.coin-item:nth-child(2) { animation-delay: 0.16s; }
.coin-item:nth-child(3) { animation-delay: 0.18s; }
.coin-item:nth-child(4) { animation-delay: 0.2s; }
.coin-item:nth-child(5) { animation-delay: 0.22s; }
.coin-item:nth-child(6) { animation-delay: 0.24s; }
.coin-item:nth-child(7) { animation-delay: 0.26s; }
.coin-item:nth-child(8) { animation-delay: 0.28s; }

.coin-item:hover {
    background: var(--app-dark-gray);
    transform: translateX(4px);
}

.coin-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.coin-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    object-fit: cover;
}

.coin-name {
    font-weight: 500;
}

.coin-symbol {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

.coin-balance-info {
    text-align: right;
}

.coin-amount {
    font-weight: 500;
}

.coin-usd {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
}

/* Toast */
.toast {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(38, 38, 42, 0.95);
    color: white;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    display: none;
    max-width: 340px;
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(236, 72, 153, 0.4);
    letter-spacing: -0.1px;
}

.toast.show {
    display: flex;
    align-items: center;
    gap: 10px;
    animation: toastSlideIn 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}

.toast::before {
    display: none;
}

.toast.error {
    border-color: rgba(236, 72, 153, 0.4);
}

.toast.error::before {
    display: none;
}

.toast.success {
    border-color: rgba(236, 72, 153, 0.4);
}

.toast.success::before {
    display: none;
}

.toast.warning {
    border-color: rgba(236, 72, 153, 0.4);
}

.toast.warning::before {
    display: none;
}

@keyframes toastSlideIn {
    from {
        transform: translateX(120px) scale(0.9);
        opacity: 0;
    }
    to {
        transform: translateX(0) scale(1);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 640px) {
    html, body {
        overflow-x: hidden;
        overflow-y: auto;
        height: auto;
        overscroll-behavior: none;
    }

    body {
        position: relative;
        width: 100%;
        top: auto;
        left: auto;
        touch-action: pan-y;
    }

    html {
        padding-top: 0;
    }

    .floating-coins {
        top: calc(-1 * env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh + env(safe-area-inset-top, 0px));
        height: calc(100dvh + env(safe-area-inset-top, 0px));
    }

    /* Hide info section on mobile */
    .info-section {
        display: none;
    }

    #exchangeView {
        height: 100vh;
        height: 100dvh;
        overflow: hidden;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        touch-action: none;
        overscroll-behavior: none;
    }

    #swapTab {
        height: 100%;
        overflow: hidden;
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: calc(70px + env(safe-area-inset-top));
        padding-bottom: env(safe-area-inset-bottom);
        touch-action: none;
        margin-top: -35px;
    }

    /* Allow scrolling on explore tab */
    #exploreTab {
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding-top: calc(80px + env(safe-area-inset-top));
    }

    /* Pool tab keeps controls fixed; list scrolls */
    #poolTab {
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding-top: calc(48px + env(safe-area-inset-top));
    }

    #transactionsTab {
        padding-top: calc(48px + env(safe-area-inset-top)) !important;
    }


    #flipTab {
        overflow-y: auto;
        touch-action: pan-y;
        -webkit-overflow-scrolling: touch;
        background: transparent;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        padding-top: calc(80px + env(safe-area-inset-top));
    }

    /* Hide swap content when swap tab is not active */
    #swapTab:not(.active) .swap-slogan,
    #swapTab:not(.active) .swap-container-wrapper {
        display: none !important;
    }

    /* Pool stats row full width on mobile */
    .pool-stats-row {
        display: flex;
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
        width: 100%;
    }

    .pool-stat-box {
        border-radius: 0;
        border-left: none;
        border-right: none;
        width: 100%;
    }

    .pool-rewards-box {
        width: 100% !important;
    }

    .app-title {
        font-size: 32px;
    }

    .total-balance {
        font-size: 36px;
    }

    .modal-content {
        padding: 30px 20px;
    }

    .app-header {
        padding: 16px 20px 0px 20px;
        padding-top: calc(12px + env(safe-area-inset-top));
        flex-wrap: nowrap;
        gap: 10px;
        top: 0;
    }

    .header-left {
        gap: 8px;
        flex: 1;
        min-width: 0;
    }

    .header-brand {
        display: none;
    }

    .header-logo {
        width: 52px;
        height: 52px;
        margin-left: -10px;
        margin-top: -8px;
    }

    .header-tabs {
        display: none;
    }

    .mobile-menu-wrapper {
        display: block;
        margin-top: -10px;
    }

    .swap-slogan {
        font-size: 28px;
        margin: -30px 0 16px 0;
    }

    /* Coin selector popup - mobile sizing */
    .custom-select-dropdown {
        width: calc(100vw - 32px) !important;
        max-width: 360px !important;
        max-height: 65vh !important;
        top: 45% !important;
    }

    .dropdown-header {
        padding: 14px 14px 10px;
    }

    .dropdown-header-title {
        font-size: 14px;
        margin-bottom: 10px;
    }

    .dropdown-search-input {
        padding: 10px 12px 10px 36px;
        font-size: 14px;
        border-radius: 10px;
    }

    .dropdown-search-icon {
        left: 11px;
        width: 15px;
        height: 15px;
    }

    .custom-select-option {
        padding: 9px 12px;
        gap: 10px;
        margin: 2px 5px;
        border-radius: 8px;
    }

    .custom-select-option img {
        width: 32px;
        height: 32px;
    }

    .custom-select-option-symbol {
        font-size: 14px;
    }

    .custom-select-option-name {
        font-size: 11px;
    }

    .custom-select-option-price {
        font-size: 13px;
    }

    .header-buttons {
        gap: 4px;
        flex-shrink: 0;
        margin-top: -14px;
        margin-right: -2px;
    }

    .wallet-network-btn {
        padding: 0;
        gap: 0;
    }

    .wallet-network-label {
        display: none;
    }

    .profile-menu {
        width: calc(100vw - 24px);
        max-width: 400px;
        right: -420px;
        top: 8px;
        height: calc(100vh - 16px);
    }

    .profile-menu.open {
        right: 12px;
    }

    /* Make send page scrollable on mobile */
    .send-container {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px;
    }

    .send-bottom-section {
        flex-shrink: 0;
        padding: 10px;
        border-radius: 12px;
    }

    .send-top-section {
        padding: 18px 14px;
        border-radius: 12px;
    }

    .send-keypad {
        padding: 4px;
        gap: 5px;
    }

    .send-key {
        padding: 10px;
    }

    .profile-avatar {
        width: 40px;
        height: 40px;
        flex-shrink: 0;
    }

    .profile-avatar svg {
        width: 22px;
        height: 22px;
    }

    .profile-address {
        font-size: 13px;
    }

    .profile-balance {
        font-size: 22px;
        margin-top: 4px;
        margin-bottom: 8px;
    }

    .profile-tabs {
        gap: 2px;
        padding: 3px;
        margin-bottom: 12px;
    }

    .profile-tab {
        padding: 8px 10px;
        font-size: 11px;
    }

    .profile-pool-actions {
        flex-direction: column;
        gap: 6px;
    }

    .profile-pool-btn,
    .profile-pool-btn.pool-btn,
    .profile-pool-btn.unpool-btn,
    .profile-pool-actions .pool-btn,
    .profile-pool-actions .unpool-btn {
        padding: 5px 12px !important;
        font-size: 11px !important;
        width: 100%;
        text-align: center;
        line-height: 1.2;
        height: auto;
    }

    .profile-coin-name {
        font-size: 13px;
    }

    .profile-coin-amount {
        font-size: 10px;
    }

    .profile-coin-value {
        font-size: 12px;
    }

    .profile-tx-title {
        font-size: 13px;
    }

    .profile-tx-subtitle {
        font-size: 10px;
    }

    .profile-tx-amount {
        font-size: 12px;
    }

    .profile-pool-name {
        font-size: 13px;
    }

    .profile-pool-amounts {
        font-size: 10px;
    }

    .profile-coin-item {
        padding: 10px 12px;
        gap: 10px;
        border-radius: 12px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-coin-logo {
        width: 36px;
        height: 36px;
    }

    .profile-coin-list {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }


    .profile-pool-list {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .profile-pool-item {
        padding: 10px 12px;
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }

    .profile-pool-logo {
        width: 28px;
        height: 28px;
    }

    .wallet-btn {
        padding: 9px 20px;
        font-size: clamp(15px, 2.5vw, 18px);
        border-radius: 12px;
    }

    .logout-btn {
        width: 32px;
        height: 32px;
        background: none;
    }

    .exchange-container {
        padding: 120px 20px 30px 20px;
        min-height: 100vh;
        overflow: hidden;
    }

    .info-section {
        display: none;
    }

    .scroll-indicator {
        display: none;
    }

    /* Pool/Unpool Modal Mobile Styles */
    .pool-liquidity-modal {
        width: 95%;
        max-width: none;
        padding: 20px 16px;
        margin: 10px;
    }

    .pool-inputs-row {
        flex-direction: column;
        gap: 12px;
    }

    .pool-input-section {
        padding: 12px;
    }

    .pool-amount-input {
        font-size: 22px;
    }

    .pool-input-token {
        font-size: 14px;
    }

    .pool-input-logo {
        width: 28px;
        height: 28px;
    }

    .pool-percent-buttons-centered {
        gap: 8px;
    }

    .pool-percent-btn {
        padding: 8px 12px;
        font-size: 12px;
    }

    .pool-modal-submit {
        padding: 12px;
        font-size: 14px;
    }

    .pool-step {
        padding: 10px 12px;
    }

    .pool-step-title {
        font-size: 13px;
    }

    .pool-step-status {
        font-size: 11px;
    }

    .pool-steps-footnote {
        font-size: 11px;
    }

    /* Unpool Modal Mobile */
    .unpool-header {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 12px;
    }

    .unpool-title {
        font-size: 14px;
    }

    .unpool-pool-name {
        font-size: 14px;
    }

    .unpool-position-info {
        padding: 12px;
        margin-bottom: 12px;
    }

    .unpool-position-label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .unpool-position-row {
        flex-direction: column !important;
        gap: 8px;
        align-items: stretch;
    }

    .unpool-token-info {
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .unpool-token-logo {
        width: 24px;
        height: 24px;
    }

    .unpool-amount-section {
        margin-bottom: 12px;
    }

    .unpool-amount-label {
        font-size: 11px;
    }

    .unpool-percent-buttons {
        gap: 6px;
        justify-content: center;
    }

    .unpool-percent-btn {
        padding: 6px 12px;
        font-size: 11px;
        flex: 1;
    }

    .unpool-receive-section {
        padding: 12px;
    }

    .unpool-receive-label {
        font-size: 11px;
        margin-bottom: 8px;
    }

    .unpool-receive-row {
        flex-direction: column !important;
        gap: 8px;
        align-items: stretch;
    }

    .unpool-receive-item {
        padding: 0;
        background: none;
        border-radius: 0;
    }

    .unpool-receive-logo {
        width: 20px;
        height: 20px;
    }

    .unpool-receive-amount {
        font-size: 14px;
    }

    .unpool-receive-symbol {
        font-size: 11px;
    }

    .swap-controls {
        gap: 12px;
        margin: 0;
    }

    .swap-direction-btn {
        width: 38px;
        height: 38px;
    }

    .toggle-mode-btn {
        width: 38px;
        height: 38px;
    }

    .swap-box {
        padding: 14px 18px;
    }

    .swap-footer {
        padding: 0;
    }
}

@media (min-width: 641px) and (max-width: 900px) {
    #transactionsTab {
        padding-top: calc(54px + env(safe-area-inset-top)) !important;
    }

    #poolTab {
        padding-top: calc(54px + env(safe-area-inset-top));
    }

}

/* Info Section Responsive - Stack layout on smaller screens */
@media (max-width: 1100px) {
    .info-section {
        padding: 50px 24px 70px 24px;
    }

    .info-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 28px;
    }

    .info-text {
        min-height: auto;
        height: auto;
        order: 1;
        text-align: center;
        align-items: center;
        width: 100%;
        max-width: 900px;
    }

    .info-stats {
        order: 2;
    }

    .info-text h2 {
        max-width: 100%;
    }

    .info-text .info-bio {
        margin-bottom: 24px;
        max-width: 100%;
        font-size: 22px;
    }

    .supported-tokens-box {
        width: 100%;
        max-width: 100%;
        height: 220px;
        min-height: auto;
        flex: none;
    }

    .token-row img {
        width: 85px;
        height: 85px;
    }

    .info-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        justify-content: center;
        width: 100%;
        max-width: 900px;
        gap: 16px;
    }

    .info-stat-item {
        width: 100%;
        min-width: 0;
        max-width: none;
        aspect-ratio: 1 / 1;
    }

    .info-stat-label {
        font-size: 18px;
    }

    .info-stat-value {
        font-size: 32px;
    }
}

/* Tablet and smaller screens */
@media (max-width: 900px) {
    .info-section {
        padding: 40px 24px 60px 24px;
    }

    .info-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 40px;
    }

    .info-text {
        text-align: center;
        align-items: center;
        order: 1;
    }

    .info-stats {
        order: 2;
    }

    .info-text h2 {
        font-size: 36px;
        letter-spacing: -1px;
    }

    .info-text .info-bio {
        font-size: 24px;
        margin-bottom: 30px;
    }

    .supported-tokens-box {
        height: 200px;
        max-width: 500px;
    }

    .token-row img {
        width: 80px;
        height: 80px;
    }

    .info-stats {
        display: grid;
        grid-template-columns: 1fr;
        gap: 16px;
        width: 100%;
        max-width: 400px;
    }

    .info-stats-header {
        font-size: 18px;
        padding: 16px 20px;
    }

    .info-stat-item {
        width: 100%;
        min-width: 0;
        max-width: none;
        height: auto;
        min-height: 140px;
        max-height: none;
        padding: 20px;
    }

    .info-stat-label {
        font-size: 18px;
    }

    .info-stat-value {
        font-size: 36px;
    }
}

/* Mobile screens */
@media (max-width: 640px) {
    .info-section {
        padding: 30px 10px 50px 10px;
        overflow-x: hidden;
    }

    .info-layout {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        gap: 30px;
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding: 0;
    }

    .info-text {
        text-align: center;
        align-items: center;
        order: 1;
        width: 100%;
        max-width: 100%;
        padding: 0 10px;
    }

    .info-stats {
        order: 2;
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .info-text h2 {
        font-size: 28px;
        letter-spacing: -0.8px;
        margin-bottom: 16px;
    }

    .info-text p {
        font-size: 16px;
        margin-bottom: 20px;
    }

    .info-text .info-bio {
        font-size: 20px;
        letter-spacing: -0.5px;
        margin-bottom: 24px;
        line-height: 1.5;
    }

    .supported-tokens-box {
        height: 160px;
        padding: 20px 0;
        border-radius: 0;
        width: 100vw;
        max-width: 100vw;
        margin-left: -10px;
        margin-right: -10px;
    }

    .token-row {
        gap: 12px;
    }

    .token-row img {
        width: 60px;
        height: 60px;
    }

    .info-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        width: 100vw;
        max-width: 100vw;
        margin-left: -10px;
        margin-right: -10px;
        padding: 0;
    }

    .info-stats-header {
        font-size: 15px;
        padding: 14px 16px;
        gap: 10px;
        border-radius: 0;
    }

    .info-stat-item {
        border-radius: 0;
    }

    .stats-dot {
        width: 10px;
        height: 10px;
    }

    .info-stat-item {
        width: 100%;
        min-width: auto;
        max-width: none;
        height: auto;
        min-height: 120px;
        max-height: none;
        padding: 18px;
        border-radius: 12px;
    }

    .info-stat-label {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .info-stat-value {
        font-size: 32px;
    }

    .info-features {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .feature-card {
        padding: 24px 20px;
        border-radius: 12px;
    }

    .feature-icon {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .feature-card h3 {
        font-size: 16px;
    }

    .feature-card p {
        font-size: 13px;
    }

    .info-footer {
        padding: 30px 0;
    }

    .footer-links {
        flex-wrap: wrap;
        gap: 16px;
    }

    /* Explore/Pool list mobile */
    .explore-container {
        padding: 0 2%;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    .explore-tokens-grid {
        width: 100%;
        overflow-x: hidden;
    }

    .explore-token-header {
        display: none;
    }

    .explore-token-card {
        padding: 10px 12px;
        gap: 10px;
        min-width: unset;
        width: 100%;
    }

    .explore-token-logo {
        width: 32px;
        height: 32px;
    }

    .explore-token-info {
        grid-template-columns: 1fr auto auto;
        gap: 8px;
    }

    .explore-token-symbol {
        font-size: 13px;
    }

    .explore-token-price {
        font-size: 12px;
    }

    /* Hide header and unnecessary columns on mobile explore */
    .explore-token-stat,
    .explore-token-stat:first-of-type,
    #exploreTab .explore-token-change,
    #exploreTab .explore-token-header {
        display: none !important;
    }

    /* Explore card container on mobile */
    #exploreTab .explore-token-card {
        overflow: hidden !important;
        min-width: unset !important;
        width: 100% !important;
        padding: 10px 12px !important;
    }

    /* Explore row layout on mobile - price and chart to right */
    #exploreTab .explore-token-info {
        display: flex !important;
        align-items: center !important;
        gap: 8px !important;
        width: 100% !important;
        overflow: hidden !important;
    }

    #exploreTab .explore-token-symbol {
        flex: 1 1 auto !important;
        min-width: 60px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    #exploreTab .explore-token-price {
        flex: 0 0 auto !important;
        text-align: right !important;
        font-size: 12px !important;
    }

    /* Chart fixed width on mobile */
    #exploreTab .explore-token-chart {
        display: flex !important;
        flex: 0 0 60px !important;
        width: 60px !important;
        justify-content: flex-end !important;
    }

    #exploreTab .sparkline-canvas {
        width: 60px !important;
        height: 24px !important;
    }

    /* Hide Your Pools box on mobile and make rewards full width */
    .pool-stat-box:not(.pool-rewards-box) {
        display: none;
    }

    .pool-stats-row {
        display: block !important;
        width: 100% !important;
        margin-bottom: 0 !important;
    }

    .pool-rewards-box {
        width: 100% !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
        border-bottom: none !important;
    }

    /* Flip list mobile styles */
    #flipTab .explore-tokens-grid {
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    #flipTab .explore-token-header {
        display: none !important;
    }

    #flipTab .flip-row {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    #flipTab .flip-side-icon {
        width: 44px !important;
        height: 44px !important;
        min-width: 44px !important;
    }

    #flipTab .flip-side-icon img {
        width: 30px !important;
        height: 30px !important;
    }

    #flipTab .flip-info {
        gap: 12px !important;
    }

    #flipTab .flip-status {
        display: none !important;
    }

    #flipTab .flip-symbol {
        font-size: 15px !important;
    }

    #flipTab .flip-usd-sub {
        font-size: 12px !important;
    }

    #flipTab .flip-side-badge {
        padding: 5px 10px !important;
        font-size: 10px !important;
        min-width: 60px !important;
    }

    #flipTab .flip-join-btn {
        padding: 6px 12px !important;
        font-size: 11px !important;
    }

    #flipTab .flip-card-address,
    #flipTab .flip-card-joiner {
        max-width: 100% !important;
        white-space: nowrap !important;
        word-break: normal !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    #flipTab .flip-games-list {
        border-radius: 14px !important;
        margin-top: 14px !important;
    }

    #poolTab .explore-tokens-grid {
        border-radius: 0 !important;
        margin-top: 0 !important;
    }

    /* Pool list layout on mobile */
    #poolTab .explore-tokens-list {
        padding: 6px 2% 24px !important;
        gap: 10px !important;
    }

    #poolTab .pool-card {
        padding: 14px 16px !important;
        gap: 16px !important;
    }

    #poolTab .pool-card-meta {
        max-width: 100% !important;
    }

    #poolTab .pool-logos {
        width: 50px !important;
        height: 42px !important;
    }

    #poolTab .pool-logo-half {
        width: 30px !important;
        height: 30px !important;
    }

    #poolTab .pool-logo-half-right {
        left: 16px !important;
    }

    #poolTab .pool-network-badge {
        width: 16px !important;
        height: 16px !important;
        bottom: -3px !important;
        right: -3px !important;
    }

    #poolTab .pool-network-badge img {
        width: 10px !important;
        height: 10px !important;
    }

    #poolTab .pool-card-name {
        font-size: 14px !important;
    }

    #poolTab .pool-card-address {
        font-size: 11px !important;
    }

    #poolTab .pool-card-balance {
        flex-wrap: wrap !important;
        gap: 6px 10px !important;
        padding: 0 !important;
        font-size: 9px !important;
        max-width: 100% !important;
    }

    #poolTab .pool-card-balance-label {
        font-size: 7px !important;
    }

    #poolTab .pool-card-balance-value {
        font-size: 9px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
        max-width: 160px !important;
    }

    #poolTab .pool-card-actions {
        min-width: 120px !important;
        gap: 8px !important;
    }

    #poolTab .pool-btn {
        font-size: 11px !important;
        padding: 6px 10px !important;
    }

    #poolTab .pool-fee-badge {
        font-size: 9px !important;
        padding: 0 !important;
    }

    .pool-rewards-box {
        padding: 12px !important;
        min-height: unset !important;
        gap: 12px !important;
    }

    .pool-rewards-logo {
        width: 50px !important;
        height: 50px !important;
    }

    .pool-rewards-title {
        font-size: 11px !important;
    }

    .pool-rewards-value {
        font-size: 18px !important;
    }

    .claim-rewards-btn {
        font-size: 11px !important;
        padding: 6px 12px !important;
    }
}

/* Extra small mobile screens */
@media (max-width: 400px) {
    .header-buttons {
        gap: 2px;
        margin-right: -4px;
    }

    .info-section {
        padding: 24px 12px 40px 12px;
    }

    .info-text h2 {
        font-size: 24px;
    }

    .info-text .info-bio {
        font-size: 18px;
    }

    .supported-tokens-box {
        height: 140px;
    }

    .token-row img {
        width: 50px;
        height: 50px;
    }

    .info-stats-header {
        font-size: 14px;
        padding: 14px 16px;
    }

    .info-stat-item {
        min-height: 120px;
        padding: 16px;
    }

    .info-stat-label {
        font-size: 14px;
    }

    .info-stat-value {
        font-size: 28px;
    }
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 200px;
    color: rgba(255, 255, 255, 0.4);
    font-size: 14px;
    opacity: 0;
    animation: fadeSlideUp 1s cubic-bezier(0.22, 1, 0.36, 1) 1.2s forwards;
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.scroll-indicator span {
    display: block;
    margin-bottom: 8px;
}

.scroll-indicator .arrow {
    font-size: 20px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(6px);
    }
    60% {
        transform: translateY(3px);
    }
}

/* Info Section - hidden by default, shown on swap tab */
.info-section {
    background: rgb(18, 18, 20);
    margin: 0;
    padding: 60px 80px 80px 80px;
    position: relative;
    z-index: 1;
    display: none;
}

.info-section-inner {
    max-width: 1600px;
    margin: 0 auto;
}

.info-layout {
    display: grid;
    grid-template-columns: minmax(0, 440px) minmax(0, 420px);
    gap: 48px;
    margin-bottom: 60px;
    align-items: start;
    max-width: 960px;
    margin-left: auto;
    margin-right: auto;
    justify-content: center;
}

.info-text {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 100%;
    height: 100%;
    position: relative;
    text-align: left;
}

.info-text.scroll-reveal-left {
    transition: opacity 1.3s cubic-bezier(0.16, 1, 0.3, 1),
                transform 1.6s cubic-bezier(0.34, 1.56, 0.64, 1),
                filter 1.1s cubic-bezier(0.22, 1, 0.36, 1);
}

.info-text.scroll-reveal-left:not(.revealed) {
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.5s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-text h2 {
    font-size: 42px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 16px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -1px;
    -webkit-font-smoothing: antialiased;
    max-width: 500px;
    line-height: 1.1;
}

.info-text p {
    font-size: 16px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: -0.1px;
    -webkit-font-smoothing: antialiased;
}

.info-text .info-bio {
    font-size: 17px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    line-height: 1.6;
    margin-bottom: 28px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: -0.1px;
    -webkit-font-smoothing: antialiased;
    max-width: 420px;
}

.supported-tokens-box {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 20px;
    padding: 28px 0;
    position: relative;
    width: 100%;
    max-width: 100%;
    flex: 1;
    min-height: 190px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 18px;
    overflow: hidden;
    margin-top: auto;
}

.token-row {
    display: flex;
    gap: 12px;
    width: max-content;
}

.token-row.top {
    animation: scrollRight 50s linear infinite;
}

.token-row.bottom {
    animation: scrollLeft 50s linear infinite;
}

@keyframes scrollRight {
    from { transform: translateX(-50%); }
    to { transform: translateX(0%); }
}

@keyframes scrollLeft {
    from { transform: translateX(0%); }
    to { transform: translateX(-50%); }
}

.token-row img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.03);
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.token-row img:hover {
    opacity: 1;
    transform: scale(1.08);
}

.supported-tokens-label {
    display: none;
}

.supported-tokens-icons {
    display: none;
}

.info-highlights {
    display: flex;
    gap: 24px;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.highlight-icon {
    font-size: 18px;
}

.info-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.info-stats-header {
    grid-column: 1 / -1;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 500;
    color: rgba(34, 197, 94, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0;
    -webkit-font-smoothing: antialiased;
}

.stats-dot {
    width: 8px;
    height: 8px;
    background: rgba(34, 197, 94, 1);
    border-radius: 50%;
    flex-shrink: 0;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.info-stat-item {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 16px;
    padding: 18px;
    text-align: left;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    aspect-ratio: 1 / 0.8;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
    overflow: hidden;
}

.info-stat-label {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0;
}

.info-stat-value {
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-variant-numeric: tabular-nums;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -1px;
}

.info-stat-green {
    background: rgba(34, 197, 94, 0.06);
}

.info-stat-green .info-stat-label {
    color: rgba(34, 197, 94, 0.8);
}

.info-stat-green .info-stat-value {
    color: rgba(34, 197, 94, 1);
}

.info-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

.feature-card {
    background: rgba(22, 22, 24, 1);
    border-radius: 16px;
    padding: 30px;
    text-align: center;
}

.feature-icon {
    font-size: 40px;
    margin-bottom: 16px;
}

.feature-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.5;
}

.info-footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-footer p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 16px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: white;
}

/* Explore Page */
#exploreTab {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: calc(80px + 20px) 0 20px 0;
    overflow-y: auto;
    z-index: 50;
    background: transparent;
}

/* Make header solid when on explore, pool, or flip page */
body:has(#exploreTab.active) .app-header,
body:has(#poolTab.active) .app-header,
body:has(#flipTab.active) .app-header,
body:has(#stakeTab.active) .app-header {
    background-color: rgb(18, 18, 20) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body:has(#poolTab.active) .app-header {
    background-color: rgba(18, 18, 20, 0.45) !important;
    backdrop-filter: blur(10px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.05) !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

#exploreTab.active .explore-tokens-grid {
    animation: gridReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.explore-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 2% 1% 2%;
    box-sizing: border-box;
}

@keyframes gridReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.explore-title {
    font-size: clamp(32px, 8vw, 48px);
    font-weight: 500;
    color: white;
    text-align: center;
    margin-bottom: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -1px;
    -webkit-font-smoothing: antialiased;
}

.explore-subtitle {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-bottom: 30px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.explore-search {
    margin-bottom: 24px;
}

.search-input {
    width: 100%;
    background: rgba(28, 28, 30, 1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 16px 20px;
    font-size: 16px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    transition: all 0.2s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.search-input:focus {
    outline: none;
    border-color: rgba(236, 72, 153, 0.5);
    background: rgba(32, 32, 35, 1);
}

.explore-tokens-grid {
    background: rgba(20, 20, 24, 0.95);
    border-radius: 16px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.explore-token-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    min-width: 700px;
    opacity: 0;
    animation: headerReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s forwards;
}

@keyframes headerReveal {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.explore-header-spacer {
    width: 56px;
    flex-shrink: 0;
}

.explore-header-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1.4fr 90px 75px 80px 80px 85px;
    align-items: center;
    gap: 16px;
}

.explore-header-col {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: color 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.explore-header-col:hover {
    color: rgba(255, 255, 255, 0.7);
}

/* Price, Change, MCap, Vol columns - right aligned */
.explore-header-col:nth-child(2),
.explore-header-col:nth-child(3),
.explore-header-col:nth-child(4),
.explore-header-col:nth-child(5) {
    text-align: right;
}

/* Chart column (last) - centered */
.explore-header-col:nth-child(6) {
    text-align: center;
}

.explore-token-card {
    background: transparent;
    border-radius: 0;
    padding: 14px 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    transition: background 0.15s ease, opacity 0.2s ease, transform 0.2s ease;
    min-width: 700px;
    opacity: 0;
    transform: translateY(5px);
}

.explore-token-card.explore-card-loaded {
    opacity: 1;
    transform: translateY(0);
}

.explore-token-card:hover {
    background: rgba(255, 255, 255, 0.035);
}

.explore-token-card:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.explore-token-card:first-child {
    border-radius: 0;
}

.explore-token-card:last-child {
    border-radius: 0 0 15px 15px;
}

.explore-token-card:only-child {
    border-radius: 0 0 15px 15px;
}

.explore-token-logo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s ease;
    opacity: 0.3;
}

.explore-token-logo[src]:not([src=""]) {
    opacity: 1;
}

.explore-token-info {
    flex: 1;
    display: grid;
    grid-template-columns: 1.4fr 90px 75px 80px 80px 85px;
    align-items: center;
    gap: 16px;
}

.explore-token-symbol {
    font-size: 15px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.2px;
}

.explore-token-price {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.8);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-weight: 500;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.explore-token-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.explore-token-stat-label {
    display: none;
}

.explore-token-stat-value {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.55);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-weight: 400;
    font-variant-numeric: tabular-nums;
}

.explore-token-chart {
    display: flex;
    align-items: center;
    justify-content: center;
}

.sparkline-canvas {
    display: block;
}

.explore-token-change {
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.explore-token-change.up {
    color: rgb(34, 197, 94);
}

.explore-token-change.down {
    color: rgb(239, 68, 68);
}

/* Pool APY smooth transitions */
.pool-apy {
    transition: color 0.3s ease, transform 0.3s ease;
}

.pool-apy.apy-flash {
    animation: apyFlash 0.6s ease-out;
}

@keyframes apyFlash {
    0% {
        transform: scale(1);
        text-shadow: none;
    }
    30% {
        transform: scale(1.15);
        text-shadow: 0 0 8px rgba(34, 197, 94, 0.6);
    }
    100% {
        transform: scale(1);
        text-shadow: none;
    }
}

/* Pool stat smooth transitions */
.pool-tvl,
.pool-vol,
.pool-fees {
    transition: color 0.3s ease, transform 0.3s ease;
}

.pool-stat-flash {
    animation: statFlash 0.6s ease-out;
}

@keyframes statFlash {
    0% {
        transform: scale(1);
        color: inherit;
    }
    30% {
        transform: scale(1.1);
        color: rgb(34, 197, 94);
    }
    100% {
        transform: scale(1);
        color: inherit;
    }
}

/* Pool fee tier column */
.pool-fee-tier {
    font-size: 14px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.explore-header-chart {
    text-align: center !important;
    cursor: default !important;
}

/* Pool Page Stats Boxes */
.pool-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.pool-stat-box {
    background: rgba(20, 20, 24, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 32px;
    min-height: 160px;
}

.pool-stat-box-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.pool-stat-box-title {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.3px;
}

.pool-stat-box-value {
    font-size: 28px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.5px;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}

.pool-stat-box-subtitle {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

/* Rewards box horizontal layout */
.pool-rewards-box {
    display: flex;
    align-items: center;
    gap: 20px;
}

.pool-rewards-logo {
    width: 90px;
    height: 90px;
    object-fit: contain;
    flex-shrink: 0;
}

.pool-rewards-right {
    flex: 1;
    text-align: right;
}

.pool-rewards-title {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.6);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    margin-bottom: 6px;
}

.pool-rewards-value {
    font-size: 24px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.3px;
    margin-bottom: 10px;
    font-variant-numeric: tabular-nums;
}

.claim-rewards-btn {
    background: rgba(236, 72, 153, 0.12);
    color: rgba(236, 72, 153, 0.9);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.claim-rewards-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    color: rgb(236, 72, 153);
}

/* Claim Rewards Modal */
.claim-rewards-modal {
    max-width: 380px;
    width: 90%;
    padding: 32px;
    border-radius: 16px;
    background: rgba(24, 24, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    animation: claimModalIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes claimModalIn {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Claiming state animations */
.claim-modal-logo.claiming {
    animation: claimPulse 1s ease-in-out infinite;
}

@keyframes claimPulse {
    0%, 100% {
        transform: scale(1);
        filter: brightness(1);
    }
    50% {
        transform: scale(1.1);
        filter: brightness(1.3);
    }
}

.claim-modal-amount.claiming {
    animation: amountPulse 0.8s ease-in-out infinite;
}

@keyframes amountPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.claim-modal-btn.claiming {
    pointer-events: none;
    background: rgba(236, 72, 153, 0.5);
}

.claim-modal-btn.success {
    background: rgb(34, 197, 94);
    animation: successPop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.claim-modal-amount.success {
    color: rgb(34, 197, 94);
    animation: successFade 0.5s ease-out;
}

@keyframes successFade {
    0% {
        transform: scale(1.2);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Confetti burst effect */
.claim-confetti {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    pointer-events: none;
}

@keyframes confettiBurst {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(var(--tx), var(--ty)) scale(1);
        opacity: 0;
    }
}

.claim-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.35);
    cursor: pointer;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease;
}

.claim-close-btn:hover {
    color: rgba(255, 255, 255, 0.7);
}

.claim-modal-body {
    text-align: center;
    padding: 24px 0 40px;
}

.claim-logo-wrap {
    margin-bottom: 24px;
}

.claim-modal-logo {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.claim-label {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.claim-modal-amount {
    font-size: 36px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.claim-modal-btn {
    width: 100%;
    background: rgb(236, 72, 153);
    color: white;
    border: none;
    padding: 16px;
    font-size: 16px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease;
    border-radius: 12px;
}

.claim-modal-btn:hover {
    background: rgb(219, 55, 136);
}

/* Pool Page Styles */
.pool-logos {
    position: relative;
    width: 54px;
    height: 46px;
    flex-shrink: 0;
}

.pool-logo-half {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pool-logo-half-left {
    left: 0;
    z-index: 2;
}

.pool-logo-half-right {
    left: 18px;
    z-index: 1;
}

.pool-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.pool-network-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(18, 18, 20, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

.pool-network-badge img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

/* Pool page - same layout as explore */
#poolTab {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: calc(70px + 20px) 0 20px 0;
    overflow-y: auto;
    z-index: 50;
    background: transparent;
    box-sizing: border-box;
}

#poolTab.active .explore-tokens-grid {
    animation: gridReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

#poolTab .explore-tokens-grid {
    background: transparent;
    border: none;
    border-radius: 0;
}

#poolTab .explore-token-card {
    border-bottom: none !important;
}

#poolTab .explore-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#poolTab .explore-tokens-list {
    padding: 6px 2% 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    box-sizing: border-box;
}

#poolTab .pool-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border-radius: 14px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#poolTab .pool-card:hover {
    background: rgb(28, 28, 32);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
    box-shadow: none;
}

#poolTab .pool-card:active {
    transform: scale(0.99);
}

#poolTab .pool-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

#poolTab .pool-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#poolTab .pool-card-title-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: 100%;
}

#poolTab .pool-card-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
    flex: 1 1 auto;
}

#poolTab .pool-card-address {
    font-size: 12px;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
}

#poolTab .pool-card-balance {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.7);
    font-variant-numeric: tabular-nums;
}

#poolTab .pool-card-balance-label {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

#poolTab .pool-card-balance-value {
    color: rgba(255, 255, 255, 0.95);
}

#poolTab .pool-card-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 148px;
    white-space: nowrap;
    flex-wrap: nowrap;
}

#poolTab .pool-fee-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    color: rgba(255, 255, 255, 0.6);
    background: transparent;
    border: 0;
    padding: 0;
    border-radius: 0;
    justify-content: center;
    letter-spacing: 0.02em;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

#poolTab .pool-fee-label {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1;
}

#poolTab .pool-fee-value {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1;
}

/* Stake Page */
#stakeTab {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: calc(70px + 20px) 0 20px 0;
    overflow-y: auto;
    z-index: 50;
    background: transparent;
    box-sizing: border-box;
}

.stake-container {
    max-width: 980px;
    width: 100%;
    margin: 0 auto;
    padding: 0 2% 40px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.stake-embedded-wrapper {
    background: rgba(14, 14, 16, 0.95);
    border-radius: 24px;
    padding: 6px;
    margin: 24px auto 0;
    width: min(980px, 96%);
}

.stake-container.stake-embedded {
    max-width: 100%;
    padding: 14px 2% 24px;
}

.stake-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stake-title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
    margin: 0;
}

.stake-subtitle {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    margin: 6px 0 0;
}

.stake-network-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(20, 20, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 999px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    white-space: nowrap;
}

.stake-network-pill img {
    width: 16px;
    height: 16px;
    border-radius: 4px;
}

.stake-mini-grid,
.stake-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(160px, 1fr));
    gap: 12px;
}

.stake-stat {
    background: rgba(20, 20, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stake-stat-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
}

.stake-stat-value {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.stake-card {
    background: rgba(20, 20, 22, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    box-sizing: border-box;
}

.stake-graph-card {
    gap: 12px;
}

.stake-graph-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.stake-graph-value {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

.stake-graph-placeholder {
    height: 260px;
    width: 100%;
    border-radius: 14px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.06);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stake-graph-svg {
    width: 100%;
    height: 100%;
}

.stake-graph-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.55);
}

.stake-card-title {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.stake-card-subtitle {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 4px;
}

.stake-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.stake-available {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stake-available span {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stake-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 10px 12px;
}

.stake-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.95);
    font-size: 18px;
    font-weight: 600;
}

.stake-max-btn {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.stake-max-btn:hover {
    background: rgba(255, 255, 255, 0.14);
}

.stake-estimates {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.stake-estimate-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.stake-estimate-row span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

.stake-action-btn {
    margin-top: 2px;
}

.stake-note {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.45);
}

.stake-position-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
}

.stake-position-row span:last-child {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 600;
}

.stake-secondary-btn {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: not-allowed;
}

.stake-activity {
    margin-top: 4px;
}

.stake-empty {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    padding: 6px 0;
}

@media (max-width: 900px) {
    .stake-hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .stake-mini-grid,
    .stake-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .stake-container {
        padding: 0 4% 32px;
    }

    .stake-mini-grid,
    .stake-stats {
        grid-template-columns: 1fr;
    }

    .stake-graph-placeholder {
        height: 210px;
    }
}

/* Card Tab */
#cardTab {
    min-height: calc(100vh - 180px);
    align-items: center;
    justify-content: center;
}

#cardTab.active {
    display: flex;
}

.card-page {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0 60px;
}

.card-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 26px;
    width: 100%;
}

.black-card {
    width: min(420px, 88vw);
    aspect-ratio: 1.586;
    border-radius: 18px;
    padding: 24px;
    background:
        radial-gradient(140% 120% at 0% 0%, rgba(255, 255, 255, 0.035), transparent 60%),
        linear-gradient(140deg, #09090b 0%, #0b0b10 45%, #060608 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.92);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 42px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    font-variant-numeric: tabular-nums;
}

.black-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 35%, rgba(255, 255, 255, 0.01) 70%, transparent 100%),
        repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 7px);
    opacity: 0.45;
    pointer-events: none;
}

.black-card::after {
    content: "";
    position: absolute;
    inset: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.045);
    opacity: 0.6;
    pointer-events: none;
}

.black-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 1;
}

.black-card-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
}

.black-card-brand img {
    width: 28px;
    height: 28px;
    border-radius: 0;
    background: transparent;
    border: none;
    padding: 0;
    filter: none;
    opacity: 1;
}

.black-card-tier {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.32em;
    color: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
}

.black-card-chip {
    width: 56px;
    height: 42px;
    border-radius: 10px;
    background:
        linear-gradient(145deg, #0b0b10 0%, #14141c 45%, #08080d 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 0 12px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.03);
    margin-top: 22px;
    position: relative;
    z-index: 1;
}

.black-card-chip::before {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 6px;
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 45%),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 6px);
    opacity: 0.6;
}

.black-card-chip::after {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    opacity: 0.55;
}

.black-card-number {
    font-family: 'SF Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
    font-size: 15px;
    letter-spacing: 0.26em;
    color: rgba(255, 255, 255, 0.72);
    position: relative;
    z-index: 1;
}

.black-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    position: relative;
    z-index: 1;
}

.black-card-name {
    font-size: 12px;
    letter-spacing: 0.24em;
    color: rgba(255, 255, 255, 0.8);
}

@media (max-width: 640px) {
    #cardTab {
        min-height: calc(100vh - 160px);
    }

    .card-page {
        padding: 30px 0 50px;
    }

    .black-card {
        padding: 20px;
        border-radius: 16px;
    }

    .black-card-number {
        font-size: 14px;
        letter-spacing: 0.22em;
    }
}

/* Flip Tab */
#flipTab {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: calc(80px + 20px) 0 20px 0;
    overflow-y: auto;
    z-index: 50;
    background: transparent;
}

#flipTab .explore-container {
    max-width: 100%;
    width: 100%;
    margin: 0;
    padding: 0 2% 1% 2%;
    box-sizing: border-box;
}

/* Flip List Styles */
.flip-grid {
    margin-top: 0;
}

.flip-header {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 12px;
}

.flip-create-btn {
    border: none;
    border-radius: 8px;
    padding: 10px 18px;
    background: #19a857;
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.flip-create-btn:hover {
    background: #1cb462;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
}

.flip-create-btn:active {
    background: #169750;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transform: translateY(0);
}

#flipCreateSubmit {
    background: #19a857;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

#flipCreateSubmit:hover {
    background: #1cb462;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

#flipCreateSubmit:active {
    background: #169750;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.flip-empty-state {
    padding: 50px 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

/* Coin Flip Modal */
.coin-flip-modal {
    max-width: 440px;
    width: 94%;
    padding: 28px 32px;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.98) 0%, rgba(14, 14, 18, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.05) inset;
    backdrop-filter: blur(20px);
}

.flip-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    padding: 10px;
    border-radius: 10px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-modal-close:hover {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    border-color: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.flip-modal-title {
    font-size: 22px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 24px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.4px;
}

.flip-create-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 18px;
    margin-bottom: 20px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.flip-create-asset {
    display: flex;
    align-items: center;
    gap: 10px;
}

.flip-create-asset-logo {
    position: relative;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.flip-create-asset-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.flip-create-asset-network {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: #ffffff;
    border: 2px solid rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-create-asset-network img {
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

.flip-create-asset-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.flip-create-asset-label,
.flip-create-amount-label {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.flip-create-asset-symbol {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.flip-create-amount {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    text-align: right;
}

.flip-create-amount-value {
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
}

/* Side Selection */
.flip-side-section {
    margin-bottom: 20px;
}

.flip-side-label,
.flip-token-label,
.flip-amount-label {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-side-options {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.flip-side-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s ease;
    flex: 1;
    max-width: 140px;
}

.flip-side-option:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.flip-side-option.selected[data-side="heads"] {
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.5);
    box-shadow: 0 0 16px rgba(59, 130, 246, 0.15);
}

.flip-side-option.selected[data-side="tails"] {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.15);
}

.flip-side-option.selected .flip-coin-circle {
    transform: scale(1.05);
}

.flip-coin-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
    overflow: hidden;
    position: relative;
}

.flip-coin-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.heads-coin {
    background: linear-gradient(145deg, #2775CA 0%, #1a5aa0 100%);
    box-shadow: 0 4px 12px rgba(39, 117, 202, 0.25);
}

.tails-coin {
    background: linear-gradient(145deg, #2d7fe3 0%, #1d5ab3 100%);
    box-shadow: 0 4px 12px rgba(45, 127, 227, 0.25);
}

.flip-side-name {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-side-token {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Token Selection */
.flip-token-section {
    margin-bottom: 16px;
    position: relative;
}

.flip-token-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    height: 48px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.flip-token-selector:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.flip-token-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.flip-token-symbol {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-token-arrow {
    color: rgba(255, 255, 255, 0.4);
    transition: transform 0.2s ease;
}

.flip-token-selector.open .flip-token-arrow {
    transform: rotate(180deg);
}

.flip-token-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: rgba(28, 28, 32, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
}

.flip-token-dropdown.show {
    display: block;
}

.flip-token-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.flip-token-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.06);
}

.flip-token-dropdown-item:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.flip-token-dropdown-item img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
}

.flip-dropdown-token-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.flip-dropdown-token-symbol {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-dropdown-token-name {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.flip-dropdown-token-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.flip-dropdown-balance-amount {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.flip-dropdown-balance-usd {
    font-size: 12px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    font-variant-numeric: tabular-nums;
}

.flip-token-balance {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

/* Amount Input */
.flip-amount-section {
    margin-bottom: 16px;
}


.flip-amount-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 4px 4px 4px 14px;
    height: 48px;
    box-sizing: border-box;
}

.flip-bet-token {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 10px 4px 4px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.flip-bet-token-logo {
    position: relative;
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.flip-bet-token-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.flip-bet-network {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(12, 12, 16, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
}

.flip-bet-network img {
    width: 9px;
    height: 9px;
    border-radius: 50%;
}

.flip-bet-token-symbol {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.flip-amount-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.95);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-amount-input::-webkit-outer-spin-button,
.flip-amount-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.flip-amount-input[type=number] {
    -moz-appearance: textfield;
}

.flip-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.flip-max-btn {
    background: rgba(236, 72, 153, 0.12);
    color: rgba(236, 72, 153, 0.9);
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    letter-spacing: 0.3px;
}

.flip-max-btn:hover {
    background: rgba(236, 72, 153, 0.2);
}

.flip-amount-usd {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    margin-top: 6px;
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-fee-panel {
    margin-top: 12px;
}

.flip-join-summary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 16px;
}

.flip-join-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    padding: 10px 12px;
    gap: 16px;
}

.flip-join-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-join-row span:first-child {
    flex-shrink: 0;
    font-weight: 500;
}

.flip-join-row span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    font-size: 11px;
    min-width: 0;
    flex: 1;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
}

.flip-steps {
    display: none;
    flex-direction: column;
    gap: 6px;
    margin-top: 12px;
}

.flip-steps.visible {
    display: flex;
    animation: poolStepsIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-fee-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.flip-fee-icon {
    width: 18px;
    height: 18px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.flip-fee-icon img {
    width: 12px;
    height: 12px;
}

/* Payout Section */
.flip-payout-section {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.flip-payout-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    font-size: 13px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-payout-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.flip-payout-row span:first-child {
    color: rgba(255, 255, 255, 0.5);
}

.flip-payout-row span:last-child {
    color: rgba(255, 255, 255, 0.95);
    font-weight: 500;
}

.flip-multiplier-value {
    color: rgba(34, 197, 94, 0.9) !important;
}

.flip-potential-win {
    color: rgba(34, 197, 94, 0.9) !important;
    font-weight: 600 !important;
}

/* Submit Button */
.flip-modal-submit {
    width: 100%;
    padding: 16px 20px;
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 600;
    color: white;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    box-shadow: 0 4px 20px rgba(236, 72, 153, 0.3);
    margin-top: 8px;
}

.flip-modal-submit:hover {
    background: linear-gradient(135deg, #f472b6 0%, #ec4899 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 28px rgba(236, 72, 153, 0.4);
}

.flip-modal-submit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Split Coin for Total Winnings */
.flip-split-coin {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.flip-split-left,
.flip-split-right {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.flip-split-left[src]:not([src=""]),
.flip-split-right[src]:not([src=""]) {
    opacity: 1;
}

.flip-split-right {
    margin-left: 6px;
}

/* Smooth logo loading for modal */
.flip-coin-circle img,
.flip-token-logo,
.flip-token-dropdown-item img {
    opacity: 0;
    transition: opacity 0.15s ease;
}

.flip-coin-circle img[src]:not([src=""]),
.flip-token-logo[src]:not([src=""]),
.flip-token-dropdown-item img[src]:not([src=""]) {
    opacity: 1;
}

/* Flip tab stat boxes */
#flipTab .pool-stat-box {
    background: rgba(22, 22, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* Flip games list */
.flip-games-list {
    background: transparent;
    border-radius: 0;
    border: none;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 6px 0 24px;
    box-shadow: none;
    animation: fadeInUp 0.25s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    animation-delay: 0.05s;
    opacity: 0;
    transform: translateY(8px);
    max-height: none;
    overflow: visible;
}

/* Flip card rows styled like pool rows */
#flipTab .flip-card {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    margin: 0;
    border-radius: 14px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    cursor: pointer;
    transition: background 0.12s ease, border-color 0.12s ease, transform 0.12s ease;
    animation: flipRowFadeIn 0.18s cubic-bezier(0.22, 1, 0.36, 1) forwards;
    opacity: 0;
    will-change: transform, opacity;
}

#flipTab .flip-card:hover {
    background: rgb(28, 28, 32);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

#flipTab .flip-card:active {
    transform: scale(0.99);
}

#flipTab .flip-card-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
    flex: 1;
}

#flipTab .flip-card-logo {
    position: relative;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}

#flipTab .flip-card-network {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 16px;
    height: 16px;
    border-radius: 6px;
    background: #ffffff;
    border: 2px solid rgba(26, 26, 46, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
}

#flipTab .flip-card-network img {
    width: 10px;
    height: 10px;
    border-radius: 4px;
}

#flipTab .flip-card-logo {
    perspective: 800px;
}

#flipTab .flip-card-logo .flip-coin {
    width: 100%;
    height: 100%;
    position: relative;
    border-radius: 50%;
    transform-style: preserve-3d;
    will-change: transform;
}

#flipTab .flip-card-logo .flip-coin.flip-winner-heads,
#flipTab .flip-card-logo .flip-coin.flip-winner-tails {
    transform: rotateY(0deg);
}

#flipTab .flip-card-logo .flip-coin.flip-winner-ready {
    transition: transform 0.45s ease;
}

#flipTab .flip-card-logo .flip-coin.flip-winner-ready.flip-winner-tails {
    transform: rotateY(180deg);
}

#flipTab .flip-card-logo .flip-coin.flip-pending {
    animation-name: flipCoinPending;
    animation-duration: 1.8s;
    animation-timing-function: cubic-bezier(0.4, 0, 0.6, 1);
    animation-iteration-count: infinite;
}

#flipTab .flip-card-logo .flip-coin-face {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    backface-visibility: hidden;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
}

#flipTab .flip-card-logo .flip-coin-face img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

#flipTab .flip-card-logo .flip-coin-face.flip-coin-back {
    transform: rotateY(180deg);
}

#flipTab .flip-card-logo .flip-coin.is-flipping {
    animation-duration: 1.4s;
    animation-timing-function: cubic-bezier(0.25, 0.1, 0.25, 1);
    animation-fill-mode: forwards;
}

#flipTab .flip-card-logo .flip-coin.is-flipping.flip-land-heads {
    animation-name: flipCoinHeadsPro;
}

#flipTab .flip-card-logo .flip-coin.is-flipping.flip-land-tails {
    animation-name: flipCoinTailsPro;
}

@keyframes flipCoinHeadsPro {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(1440deg);
    }
}

@keyframes flipCoinTailsPro {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(1620deg);
    }
}

@keyframes flipCoinPending {
    0% {
        transform: rotateY(0deg);
    }
    100% {
        transform: rotateY(720deg);
    }
}

#flipTab .flip-card-meta {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

#flipTab .flip-card-name {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

#flipTab .flip-card-addresses {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

#flipTab .flip-card-address,
#flipTab .flip-card-joiner {
    font-size: 10px;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.35;
    white-space: normal;
    word-break: break-all;
}

#flipTab .flip-card-joiner.is-empty {
    color: rgba(255, 255, 255, 0.45);
}

#flipTab .flip-address-winner {
    color: rgba(34, 197, 94, 0.95);
}

#flipTab .flip-winner-tx {
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

#flipTab .flip-winner-tx a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

#flipTab .flip-winner-tx a:hover {
    color: rgba(255, 255, 255, 0.75);
}

#flipJoinCreator {
    font-family: 'SF Mono', monospace;
    font-size: 12px;
    word-break: break-all;
    text-align: right;
}

#flipTab .flip-card-actions {
    margin-left: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    min-width: 96px;
    white-space: nowrap;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Flip list row styling */
.flip-row {
    background: transparent;
    padding: 18px 24px;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    animation: flipRowFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

@keyframes flipRowFadeIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Skeleton loading for flip cards */
.flip-skeleton {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.06);
    animation: skeletonPulse 1.2s ease-in-out infinite;
}

.flip-skeleton-coin {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.flip-skeleton-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.flip-skeleton-line {
    height: 12px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.06);
}

.flip-skeleton-line.short {
    width: 40%;
}

.flip-skeleton-line.medium {
    width: 70%;
}

.flip-skeleton-btn {
    width: 60px;
    height: 32px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    flex-shrink: 0;
}

@keyframes skeletonPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

/* Stagger animation delays for flip rows - faster stagger */
.flip-row:nth-child(1) { animation-delay: 0.02s; }
.flip-row:nth-child(2) { animation-delay: 0.04s; }
.flip-row:nth-child(3) { animation-delay: 0.06s; }
.flip-row:nth-child(4) { animation-delay: 0.08s; }
.flip-row:nth-child(5) { animation-delay: 0.1s; }
.flip-row:nth-child(6) { animation-delay: 0.12s; }
.flip-row:nth-child(7) { animation-delay: 0.14s; }
.flip-row:nth-child(8) { animation-delay: 0.16s; }
.flip-row:nth-child(9) { animation-delay: 0.18s; }
.flip-row:nth-child(10) { animation-delay: 0.2s; }

.flip-row:hover {
    background: rgba(255, 255, 255, 0.045);
    transform: translateX(4px);
}

.flip-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Side icon (USDC on Ethereum) */
.flip-side-icon {
    width: 52px;
    height: 52px;
    min-width: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flip-row:hover .flip-side-icon {
    transform: scale(1.05);
}

.flip-side-icon.heads {
    background: linear-gradient(145deg, rgba(39, 117, 202, 0.25), rgba(39, 117, 202, 0.08));
    box-shadow: 0 0 20px rgba(39, 117, 202, 0.2), inset 0 0 12px rgba(39, 117, 202, 0.1);
    border: 1px solid rgba(39, 117, 202, 0.2);
}

.flip-side-icon.tails {
    background: linear-gradient(145deg, rgba(38, 161, 123, 0.25), rgba(38, 161, 123, 0.08));
    box-shadow: 0 0 20px rgba(38, 161, 123, 0.2), inset 0 0 12px rgba(38, 161, 123, 0.1);
    border: 1px solid rgba(38, 161, 123, 0.2);
}

.flip-side-icon.cancelled {
    opacity: 0.6;
}

.flip-side-icon img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.flip-cancelled-x {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(239, 68, 68);
    z-index: 2;
    pointer-events: none;
}

.flip-cancelled-x svg {
    filter: drop-shadow(0 0 3px rgba(0, 0, 0, 0.5));
}

/* Animation for flip being cancelled */
@keyframes flipCancelOut {
    0% {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
    30% {
        opacity: 0.7;
        transform: translateX(-10px) scale(0.98);
    }
    100% {
        opacity: 0;
        transform: translateX(30px) scale(0.95);
        max-height: 0;
        padding: 0;
        margin: 0;
    }
}

.flip-row.cancelling {
    animation: flipCancelOut 0.5s ease-out forwards;
    pointer-events: none;
}

/* Red X animation appearing */
@keyframes xAppear {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0) rotate(-90deg);
    }
    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1.2) rotate(0deg);
    }
    100% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
    }
}

.flip-cancelled-x.animate {
    animation: xAppear 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.flip-info {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.flip-info .flip-token-name {
    margin-right: auto;
}

.flip-token-name {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.flip-symbol {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-usd-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-side-badge {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 6px 0;
    border-radius: 8px;
    text-align: center;
    width: 70px;
}

.flip-side-badge.heads {
    background: rgba(39, 117, 202, 0.12);
    color: rgb(110, 170, 230);
    border: 1px solid rgba(39, 117, 202, 0.15);
}

.flip-side-badge.tails {
    background: rgba(38, 161, 123, 0.12);
    color: rgb(90, 200, 160);
    border: 1px solid rgba(38, 161, 123, 0.15);
}

.flip-side-badge.cancelled-badge {
    opacity: 0.5;
}

.flip-status {
    font-size: 12px;
    font-weight: 500;
    text-align: center;
    padding: 5px 12px;
    border-radius: 6px;
    min-width: 90px;
    width: 90px;
}

.flip-status.pending {
    color: rgb(250, 200, 80);
    background: rgba(251, 191, 36, 0.1);
}

.flip-status.cancelled {
    color: rgb(160, 160, 170);
    background: rgba(160, 160, 170, 0.1);
}

.flip-action {
    display: flex;
    justify-content: flex-end;
    min-width: 75px;
}

.flip-join-btn {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(236, 72, 153, 0.1));
    color: rgb(240, 130, 180);
    border: 1px solid rgba(236, 72, 153, 0.2);
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.3px;
}

.flip-join-btn:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.3), rgba(236, 72, 153, 0.15));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(236, 72, 153, 0.2);
}

.flip-joined-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    color: rgba(34, 197, 94, 0.95);
    background: rgba(34, 197, 94, 0.12);
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.flip-winner-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 14px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.flip-winner-pill.heads {
    color: rgba(147, 197, 253, 0.95);
    background: rgba(59, 130, 246, 0.18);
    border: 1px solid rgba(59, 130, 246, 0.35);
}

.flip-winner-pill.tails {
    color: rgba(110, 231, 183, 0.95);
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
}

.flip-cancel-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: rgb(250, 100, 100);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flip-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.25);
    border-color: rgba(239, 68, 68, 0.4);
    transform: scale(1.08);
    box-shadow: 0 0 12px rgba(239, 68, 68, 0.3);
}

.flip-cancel-btn svg {
    width: 12px;
    height: 12px;
}

/* Modal Animation */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: scale(0.92) translateY(10px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Join Flip Modal */
.join-flip-modal {
    max-width: 440px;
    width: 94%;
    padding: 0;
    text-align: center;
    background: linear-gradient(180deg, rgba(24, 24, 30, 0.98) 0%, rgba(14, 14, 18, 0.99) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    animation: modalSlideIn 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.join-flip-header {
    padding: 32px 28px 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
}

.join-flip-sides {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 20px;
}

.join-flip-side-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.join-flip-side-coin {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.join-flip-side-coin.heads {
    background: linear-gradient(145deg, rgba(39, 117, 202, 0.3), rgba(39, 117, 202, 0.1));
    border: 2px solid rgba(39, 117, 202, 0.35);
    box-shadow: 0 4px 20px rgba(39, 117, 202, 0.2);
}

.join-flip-side-coin.tails {
    background: linear-gradient(145deg, rgba(38, 161, 123, 0.3), rgba(38, 161, 123, 0.1));
    border: 2px solid rgba(38, 161, 123, 0.35);
    box-shadow: 0 4px 20px rgba(38, 161, 123, 0.2);
}

.join-flip-side-coin img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
}

.join-flip-side-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.join-flip-side-label.heads {
    color: rgb(100, 160, 220);
}

.join-flip-side-label.tails {
    color: rgb(80, 190, 150);
}

.join-flip-vs-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 12px;
}

.join-flip-vs {
    font-size: 14px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
    letter-spacing: 2px;
}

.join-flip-odds-badge {
    font-size: 11px;
    font-weight: 700;
    color: rgba(34, 197, 94, 0.9);
    background: rgba(34, 197, 94, 0.12);
    padding: 4px 10px;
    border-radius: 20px;
    letter-spacing: 0.5px;
}

.join-flip-coin-select {
    padding: 0 20px;
    margin-bottom: 16px;
}

.join-flip-coin-select label {
    display: block;
    text-align: left;
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.35);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.join-flip-dropdown {
    position: relative;
}

.join-flip-dropdown-selected {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.join-flip-dropdown-selected:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.join-flip-dropdown-selected img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

.join-flip-selected-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.join-flip-selected-info span:first-child {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.join-flip-selected-info span:last-child {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.join-flip-dropdown-selected > span:not(.dropdown-arrow) {
    flex: 1;
    text-align: right;
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.join-flip-dropdown-selected .dropdown-arrow {
    color: rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

.join-flip-dropdown.open .dropdown-arrow {
    transform: rotate(180deg);
}

.join-flip-dropdown-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: rgba(24, 24, 28, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 100;
    display: none;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}

.join-flip-dropdown.open .join-flip-dropdown-list {
    display: block;
}

.join-flip-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.join-flip-dropdown-item:first-child {
    border-radius: 13px 13px 0 0;
}

.join-flip-dropdown-item:last-child {
    border-radius: 0 0 13px 13px;
}

.join-flip-dropdown-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

.join-flip-dropdown-item.selected {
    background: rgba(34, 197, 94, 0.1);
}

.join-flip-dropdown-item.insufficient {
    opacity: 0.35;
    cursor: not-allowed;
}

.join-flip-dropdown-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.join-flip-dropdown-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.join-flip-dropdown-item-symbol {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.join-flip-dropdown-item-amount {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
}

.join-flip-balance {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
    padding: 0 4px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
}

.join-flip-balance span:last-child {
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.join-flip-details {
    background: rgba(255, 255, 255, 0.02);
    margin: 0 20px;
    border-radius: 14px;
    padding: 4px;
}

.join-flip-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 14px;
}

.join-flip-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.join-flip-row.highlight {
    background: rgba(34, 197, 94, 0.06);
    border-radius: 10px;
    margin: 2px;
}

.join-flip-row span:first-child {
    color: rgba(255, 255, 255, 0.4);
    font-size: 13px;
    font-weight: 500;
}

.join-flip-row span:last-child {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 600;
}

.join-flip-side-badge {
    padding: 5px 14px;
    border-radius: 8px;
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.join-flip-side-badge.heads {
    background: rgba(39, 117, 202, 0.15);
    color: rgb(110, 170, 230) !important;
}

.join-flip-side-badge.tails {
    background: rgba(38, 161, 123, 0.15);
    color: rgb(90, 200, 160) !important;
}

.join-flip-potential {
    color: rgb(50, 210, 120) !important;
    font-size: 16px !important;
}

.join-flip-note {
    font-size: 13px;
    margin: 18px 20px 0;
    padding: 14px 18px;
    background: rgba(34, 197, 94, 0.08);
    border-radius: 12px;
    color: rgba(34, 197, 94, 0.9);
    font-weight: 500;
}

.join-flip-confirm {
    width: calc(100% - 40px);
    margin: 20px;
    padding: 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgb(34, 197, 94), rgb(28, 160, 80));
    border: none;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.3);
}

.join-flip-confirm:hover {
    background: linear-gradient(135deg, rgb(45, 210, 105), rgb(34, 180, 90));
    transform: translateY(-1px);
    box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4);
}

.join-flip-confirm:active {
    transform: translateY(0) scale(0.99);
}

.join-flip-confirm:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.flip-token-fullname {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
}

.flip-price {
    text-align: right;
}

.flip-bet {
    font-size: 13px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.7);
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.flip-multiplier {
    font-size: 14px;
    font-weight: 600;
    color: rgba(34, 197, 94, 0.9);
    text-align: right;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-btn {
    background: rgba(236, 72, 153, 0.08);
    color: rgba(236, 72, 153, 0.85);
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.flip-btn:hover {
    background: rgba(236, 72, 153, 0.15);
    color: rgb(236, 72, 153);
}

#flipTab.active .explore-tokens-grid {
    animation: gridReveal 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    opacity: 0;
}

.pool-header .explore-header-spacer {
    width: 64px;
}

.pool-header-info {
    grid-template-columns: 1fr 120px 120px 65px;
}

.pool-info {
    grid-template-columns: 1fr 120px 120px 65px;
}

.pool-btn {
    background: rgba(236, 72, 153, 0.12);
    color: rgba(236, 72, 153, 0.9);
    border: 1px solid rgba(236, 72, 153, 0.25);
    padding: 7px 14px;
    border-radius: 9px;
    font-size: 13px;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    box-shadow: none;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.pool-btn:hover {
    background: rgba(236, 72, 153, 0.2);
    color: rgb(236, 72, 153);
    border-color: rgba(236, 72, 153, 0.4);
}

.pool-loading,
.pool-no-data {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.pool-loading {
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

/* Pool Liquidity Modal - Subtle blur */
#poolLiquidityModal {
    background: rgba(0,0,0,0.15);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.pool-liquidity-modal {
    max-width: 480px;
    width: 92%;
    padding: 20px;
    border-radius: 16px;
    background: #15171c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    box-shadow: 0 16px 32px -18px rgba(0, 0, 0, 0.65);
    animation: modalPopIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pool-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.06);
    border: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.pool-modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

.pool-inputs-row {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: opacity, transform;
}

.pool-modal-title {
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 0 24px 0;
    text-align: center;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-input-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 11px;
    padding: 10px 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
}

.pool-input-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.pool-input-token {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #fff;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-input-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.pool-input-balance {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    padding: 2px 0;
    font-size: 21px;
    font-weight: 500;
    color: #fff;
    outline: none;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.pool-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

.pool-usd-value {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-percent-buttons-centered {
    display: flex;
    gap: 5px;
    margin-top: 10px;
}

.pool-percent-btn {
    flex: 1;
    background: rgba(255, 255, 255, 0.07);
    border: none;
    border-radius: 10px;
    padding: 8px 6px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, transform 0.12s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-percent-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
}

.pool-percent-btn.active {
    background: #E91E8C;
    color: #fff;
}

.pool-percent-btn.disabled {
    opacity: 0.3;
    pointer-events: none;
}

.pool-receipt {
    margin-top: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-shadow: none;
}

.pool-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.02em;
}

.pool-receipt-label {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pool-receipt-network {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.pool-receipt-network img {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.pool-receipt-row span:last-child {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.pool-deposit-steps {
    display: none;
    flex-direction: column;
    gap: 5px;
    margin-top: 10px;
}

.pool-steps-title {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: none;
    color: rgba(255, 255, 255, 0.6);
}

.pool-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: none;
    transition: background 0.12s ease, border-color 0.12s ease;
}

.pool-step-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.pool-step-index {
    width: 18px;
    height: 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.75);
    font-size: 10px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pool-step-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pool-step-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.92);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pool-step-subtitle {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
}

.pool-step-status {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.pool-step-status .pool-spinner {
    width: 12px;
    height: 12px;
    border-width: 2px;
}

.pool-step.is-active {
    background: rgba(236, 72, 153, 0.06);
    border-color: rgba(236, 72, 153, 0.3);
}

.pool-step.is-active .pool-step-status {
    color: rgba(236, 72, 153, 0.9);
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.35);
}

.pool-step.is-done {
    background: rgba(120, 220, 120, 0.06);
    border-color: rgba(120, 220, 120, 0.25);
}

.pool-step.is-done .pool-step-status {
    color: rgba(120, 220, 120, 0.9);
    background: rgba(120, 220, 120, 0.12);
    border-color: rgba(120, 220, 120, 0.3);
}

.pool-step.is-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
}

.pool-step.is-error .pool-step-status {
    color: rgba(239, 68, 68, 0.9);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
}

.pool-steps-footnote {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-align: center;
}

.pool-liquidity-modal.is-depositing .pool-percent-buttons-centered,
.pool-liquidity-modal.is-depositing #addLiquidityBtn {
    display: none;
}

.pool-liquidity-modal.is-depositing .pool-inputs-row {
    opacity: 0.72;
    pointer-events: none;
    transform: translateY(-2px);
}

.pool-liquidity-modal.is-depositing .pool-deposit-steps {
    display: flex;
    animation: poolStepsIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

.pool-liquidity-modal.is-withdrawing #unpoolContent .unpool-position-info,
.pool-liquidity-modal.is-withdrawing #unpoolContent .unpool-amount-section,
.pool-liquidity-modal.is-withdrawing #unpoolContent #removeLiquidityBtn {
    display: none;
}

.pool-liquidity-modal.is-withdrawing .unpool-receive-section {
    transform: translateY(-2px);
}

.pool-liquidity-modal.is-withdrawing .unpool-withdraw-steps {
    display: flex;
    animation: unpoolStepsIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes poolStepsIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes unpoolStepsIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pool-modal-submit {
    width: 100%;
    background: #E91E8C;
    border: none;
    border-radius: 10px;
    padding: 11px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    transition: transform 0.12s ease, background 0.12s ease;
    margin-top: 10px;
    box-shadow: none;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.pool-modal-submit:hover {
    background: #D91A7F;
    transform: translateY(-0.5px);
}

.pool-modal-submit.insufficient {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    cursor: not-allowed;
}

.pool-modal-submit.insufficient:hover {
    background: rgba(255, 255, 255, 0.1);
}

.pool-modal-submit.loading {
    background: rgba(236, 72, 153, 0.7);
    cursor: wait;
}

.pool-modal-submit:disabled {
    cursor: not-allowed;
}

.pool-btn-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pool-spinner {
    display: inline-block;
    width: 15px;
    height: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-top-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    animation: spinSmooth 0.7s cubic-bezier(0.4, 0.15, 0.6, 0.85) infinite;
}

.pool-modal-submit.success {
    background: rgb(34, 197, 94);
    cursor: default;
}

.pool-checkmark {
    width: 18px;
    height: 18px;
    animation: checkmarkDraw 0.4s ease-out forwards;
}

.pool-checkmark path {
    stroke-dasharray: 24;
    stroke-dashoffset: 24;
    animation: checkmarkStroke 0.4s ease-out forwards;
}

@keyframes checkmarkStroke {
    to {
        stroke-dashoffset: 0;
    }
}

/* Chart Modal */
.chart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    padding: 20px;
}

.chart-modal.active {
    opacity: 1;
}

.chart-modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.chart-modal-content {
    position: relative;
    background: rgb(12, 12, 15);
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    max-width: 700px;
    width: 100%;
    overflow: hidden;
    transform: scale(0.95);
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
}

.chart-modal.active .chart-modal-content {
    transform: scale(1);
}

.chart-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: none;
}

.chart-modal-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chart-modal-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.1);
}

.chart-modal-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.chart-modal-symbol {
    font-size: 20px;
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.chart-modal-price-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chart-modal-price {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.7);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.chart-modal-meta {
    display: flex;
    gap: 12px;
    margin-top: 4px;
}

.chart-meta-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

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

.chart-time-range {
    display: flex;
    gap: 4px;
}

.time-range-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
    font-weight: 600;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    cursor: pointer;
    transition: all 0.15s ease;
}

.time-range-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.time-range-btn.active {
    background: #FF1493;
    color: white;
}

.chart-modal-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chart-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 14px 10px;
    background: rgb(18, 18, 20);
}

.chart-stat-label {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.chart-stat-value {
    font-size: 14px;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    font-weight: 500;
}

.chart-modal-body {
    padding: 0;
    background: transparent;
    position: relative;
}

.chart-canvas-container {
    position: relative;
    width: 100%;
    height: 240px;
}

.chart-canvas-container canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.chart-canvas-container #fullChart {
    background: transparent;
    cursor: crosshair;
}

.chart-canvas-container #chartOverlay {
    pointer-events: none;
}

.coin-detail-chart-container {
    border-radius: 20px;
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), inset 0 -12px 20px rgba(0, 0, 0, 0.18);
}

.coin-detail-chart-stage {
    position: relative;
    width: 100%;
    height: 350px;
}

.coin-detail-chart-stage canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

#coinDetailChart {
    cursor: crosshair;
}

#coinDetailOverlay {
    pointer-events: none;
}

.chart-tooltip {
    position: absolute;
    background: rgba(10, 10, 12, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: clamp(10px, 2vw, 14px) clamp(12px, 2.4vw, 18px);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.15s ease-out;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(180%);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.05);
    min-width: 160px;
    max-width: min(260px, 70vw);
}

.coin-detail-chart-container .chart-load-progress {
    display: none;
    align-items: center;
    gap: 10px;
}

.coin-detail-chart-container .chart-load-progress.is-visible {
    display: flex;
}

.coin-detail-chart-container .chart-load-track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.coin-detail-chart-container .chart-load-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.95));
    transition: width 0.2s ease;
}

.coin-detail-chart-container .chart-load-percent {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    min-width: 36px;
    text-align: right;
}

.chart-tooltip .tooltip-price {
    font-size: clamp(15px, 2.2vw, 20px);
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    letter-spacing: -0.3px;
    display: block;
}

.chart-tooltip .tooltip-change {
    font-size: clamp(11px, 1.4vw, 13px);
    font-weight: 600;
    margin-top: 3px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
}

.chart-tooltip .tooltip-change.up {
    color: #22c55e;
}

.chart-tooltip .tooltip-change.down {
    color: #ef4444;
}

.chart-tooltip .tooltip-time {
    font-size: clamp(10px, 1.2vw, 12px);
    color: rgba(255, 255, 255, 0.5);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    margin-top: 4px;
}

.chart-tooltip .tooltip-date {
    font-size: clamp(9px, 1.1vw, 11px);
    color: rgba(255, 255, 255, 0.4);
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', system-ui, sans-serif;
    margin-top: 2px;
    font-weight: 500;
}

.chart-modal-footer {
    display: flex;
    justify-content: center;
    padding: 16px 24px 24px;
}

.chart-trade-btn {
    padding: 14px 40px;
    border-radius: 10px;
    border: none;
    background: rgb(236, 72, 153);
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    transition: background 0.15s ease;
    width: 100%;
    max-width: 260px;
}

.chart-trade-btn:hover {
    background: rgb(246, 92, 173);
}

/* Tab content animations - smooth fade transitions */
/* Generic tab fade - for swap tab only */
#swapTab.active {
    animation: smoothFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Explore and Pool tabs have their own custom animations */
#exploreTab.active,
#poolTab.active,
#flipTab.active,
#stakeTab.active {
    animation: none;
}

@keyframes smoothFadeIn {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Hide Scrollbar */
::-webkit-scrollbar {
    display: none;
}

html, body {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

/* Flip Countdown and Animation - Apple Style Modal */
.flip-status.joined {
    background: rgba(59, 130, 246, 0.15);
    color: rgb(147, 197, 253);
    font-weight: 600;
}

.flip-status.countdown {
    min-width: 50px;
    text-align: center;
    background: rgba(99, 102, 241, 0.2);
    color: rgb(165, 180, 252);
}

/* Modal Backdrop */
.flip-coin-animation {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    animation: flipModalFadeIn 0.3s ease forwards;
}

@keyframes flipModalFadeIn {
    to { opacity: 1; }
}

/* Modal Card */
.flip-modal-card {
    background: linear-gradient(180deg, rgba(38, 38, 44, 0.98), rgba(24, 24, 28, 0.98));
    border-radius: 28px;
    padding: 32px 28px;
    width: 88%;
    max-width: 340px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: scale(0.92) translateY(15px);
    opacity: 0;
    animation: flipModalSlideIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    position: relative;
}

/* Close Button */
.flip-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    transition: all 0.2s ease;
    z-index: 10;
}

.flip-modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.flip-modal-close:active {
    transform: scale(0.95);
}

@keyframes flipModalSlideIn {
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

/* Header */
.flip-modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.flip-modal-title {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 6px;
}

.flip-modal-prize {
    font-size: 36px;
    font-weight: 700;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    background: linear-gradient(135deg, #fff 0%, rgba(255,255,255,0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Players Display */
.flip-players-display {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 28px;
    width: 100%;
    justify-content: center;
}

.flip-player {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.flip-player-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

.flip-player-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 50%;
    padding: 2px;
    background: linear-gradient(145deg, rgba(255,255,255,0.3), rgba(255,255,255,0.05));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
}

.flip-player-icon.heads {
    background: linear-gradient(145deg, rgb(59, 130, 246), rgb(37, 99, 235));
}

.flip-player-icon.tails {
    background: linear-gradient(145deg, rgb(16, 185, 129), rgb(5, 150, 105));
}

.flip-player-icon img {
    width: 80%;
    height: 80%;
    border-radius: 50%;
    object-fit: cover;
}

.flip-player-label {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
}

.flip-player-role {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.3);
}

.flip-vs-badge {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.05);
    padding: 6px 10px;
    border-radius: 8px;
}

/* Coin Container */
.flip-coin-container {
    perspective: 600px;
    width: 88px;
    height: 88px;
    margin: 8px 0 24px;
}

.flip-coin {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    border-radius: 50%;
}

.flip-coin.flipping-heads {
    animation: coinFlipHeads 2s ease-out forwards;
}

.flip-coin.flipping-tails {
    animation: coinFlipTails 2s ease-out forwards;
}

@keyframes coinFlipHeads {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(1800deg); }
}

@keyframes coinFlipTails {
    0% { transform: rotateX(0deg); }
    100% { transform: rotateX(1980deg); }
}

.flip-coin-face {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1);
}

.flip-coin-face img {
    width: 65%;
    height: 65%;
    border-radius: 50%;
    object-fit: cover;
}

.flip-coin-face.heads {
    background: linear-gradient(165deg, rgb(96, 165, 250), rgb(37, 99, 235));
}

.flip-coin-face.tails {
    background: linear-gradient(165deg, rgb(52, 211, 153), rgb(5, 150, 105));
    transform: rotateX(180deg);
}

/* Countdown Display */
.flip-countdown-display {
    text-align: center;
    min-height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.flip-countdown-number {
    font-size: 48px;
    font-weight: 600;
    color: white;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.flip-countdown-label {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.flip-flipping-text {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    letter-spacing: 0.3px;
}

/* Result Display */
.flip-result-text {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 2px;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
}

.flip-result-text.winner {
    color: rgb(52, 211, 153);
}

.flip-result-text.loser {
    color: rgb(248, 113, 113);
}

.flip-side-result {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
}

/* Winner/Loser States */
.flip-player.winner .flip-player-icon {
    box-shadow: 0 0 0 2px rgb(52, 211, 153);
    transform: scale(1.05);
}

.flip-player.winner .flip-player-label {
    color: rgb(52, 211, 153);
}

.flip-player.loser {
    opacity: 0.35;
    transform: scale(0.92);
}

/* Completed Flip Row Status */
.flip-status.completed {
    background: rgba(52, 211, 153, 0.15);
    color: rgb(52, 211, 153);
    font-weight: 600;
}

.flip-status.resolved {
    background: rgba(148, 163, 184, 0.15);
    color: rgb(148, 163, 184);
    font-weight: 500;
}

/* Completed flip row styling */
.flip-row.completed {
    opacity: 0.7;
}

.flip-row.completed .flip-join-btn,
.flip-row.completed .flip-cancel-btn {
    display: none;
}

/* Winner badge for completed flips */
.flip-side-badge.winner-badge {
    background: rgba(52, 211, 153, 0.15);
    color: rgb(52, 211, 153);
    font-weight: 600;
}

.flip-side-badge.heads.winner-badge {
    background: rgba(96, 165, 250, 0.15);
    color: rgb(96, 165, 250);
}

.flip-side-badge.tails.winner-badge {
    background: rgba(52, 211, 153, 0.15);
    color: rgb(52, 211, 153);
}

/* Mini Row Countdown & Spin Animation */
.flip-row.flipping {
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.flip-row.flipping .flip-side-icon {
    animation: miniCoinSpin 2s ease-out forwards;
    transform-style: preserve-3d;
}

@keyframes miniCoinSpin {
    0% { transform: rotateY(0deg); }
    100% { transform: rotateY(1800deg); }
}

.flip-row .flip-countdown-mini {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 14px;
    font-weight: 700;
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    z-index: 5;
}

.flip-side-icon {
    position: relative;
}

.flip-side-icon.counting .flip-countdown-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
}

.flip-row.counting {
    background: rgba(99, 102, 241, 0.06);
}

.flip-row.counting .flip-status {
    background: rgba(99, 102, 241, 0.2);
    color: rgb(165, 180, 252);
    min-width: 40px;
    text-align: center;
}

/* Result flash on row */
.flip-row.result-winner {
    animation: rowWinFlash 0.5s ease;
    background: rgba(52, 211, 153, 0.1);
}

.flip-row.result-loser {
    animation: rowLoseFlash 0.5s ease;
}

@keyframes rowWinFlash {
    0%, 100% { background: rgba(52, 211, 153, 0.1); }
    50% { background: rgba(52, 211, 153, 0.25); }
}

@keyframes rowLoseFlash {
    0%, 100% { background: transparent; }
    50% { background: rgba(248, 113, 113, 0.15); }
}

/* Spinning state for active flips visible to all users */
.flip-side-icon.spinning {
    animation: miniCoinSpin 2s ease-out forwards;
    transform-style: preserve-3d;
}

.flip-status.spinning {
    background: rgba(251, 191, 36, 0.2);
    color: rgb(251, 191, 36);
    animation: pulseGlow 0.5s ease infinite;
}

.flip-status.countdown {
    background: rgba(99, 102, 241, 0.2);
    color: rgb(165, 180, 252);
    min-width: 40px;
    text-align: center;
    font-weight: 700;
}

@keyframes pulseGlow {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* ========================================
   LIGHT MODE THEME
   ======================================== */

html[data-theme="light"] {
    --app-purple: rgb(127, 102, 255);
    --matte-black: rgb(250, 250, 252);
    --app-dark-gray: rgb(245, 245, 247);
    --medium-dark: rgb(240, 240, 242);
    --dark-background: rgb(235, 235, 238);
    --deep-background: rgb(248, 248, 250);
}

html[data-theme="light"] {
    background: #f5f5f7 !important;
}

html[data-theme="light"] body {
    background:
        /* Soft light vignette */
        radial-gradient(ellipse 80% 80% at 50% 50%, transparent 40%, rgba(0, 0, 0, 0.03) 100%),
        /* Subtle purple accent */
        radial-gradient(ellipse 60% 50% at 20% 30%, rgba(127, 102, 255, 0.06) 0%, transparent 50%),
        /* Soft blue accent */
        radial-gradient(ellipse 70% 60% at 80% 70%, rgba(100, 150, 220, 0.05) 0%, transparent 50%),
        /* Base gradient */
        linear-gradient(180deg, #f8f8fa 0%, #f0f0f4 50%, #e8e8ec 100%) !important;
    background-attachment: fixed !important;
    color: #1d1d1f !important;
}

html[data-theme="light"]::before {
    background: #f5f5f7;
}

html[data-theme="light"] .app-container {
    background: transparent !important;
}

/* Header */
html[data-theme="light"] .app-header {
    background-color: rgb(248, 248, 250);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom-color: rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Explore, Pool, Flip tabs solid background in light mode */
html[data-theme="light"] #exploreTab,
html[data-theme="light"] #poolTab,
html[data-theme="light"] #flipTab,
html[data-theme="light"] #transactionsTab {
    background: #ffffff;
}

html[data-theme="light"] #poolTab {
    background: transparent;
}

/* Make header solid when on explore, pool, or flip page in light mode */
html[data-theme="light"] body:has(#exploreTab.active) .app-header,
html[data-theme="light"] body:has(#poolTab.active) .app-header,
html[data-theme="light"] body:has(#flipTab.active) .app-header,
html[data-theme="light"] body:has(#transactionsTab.active) .app-header {
    background-color: #ffffff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(0, 0, 0, 0.1) !important;
}

html[data-theme="light"] body:has(#poolTab.active) .app-header {
    background-color: rgba(255, 255, 255, 0.65) !important;
    backdrop-filter: blur(10px) saturate(1.05) !important;
    -webkit-backdrop-filter: blur(10px) saturate(1.05) !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}

html[data-theme="light"] #transactionsTab .explore-container {
    background: #ffffff;
}


html[data-theme="light"] #transactionsTab .chart-load-label {
    color: rgba(15, 23, 42, 0.75);
}

html[data-theme="light"] #transactionsTab .chart-load-track {
    background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #transactionsTab .chart-load-fill {
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.95));
}

html[data-theme="light"] #transactionsTab .chart-load-percent {
    color: rgba(15, 23, 42, 0.85);
}


html[data-theme="light"] #transactionsTab,
html[data-theme="light"] #transactionsTab .chrome-prices-container,
html[data-theme="light"] #transactionsTab .chrome-prices-grid {
    background: #ffffff !important;
}

html[data-theme="light"] #transactionsTab .chrome-price-row {
    background: #e4e7ec;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #transactionsTab .chrome-price-row:hover {
    background: #dde2ea;
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] #transactionsTab .chrome-coin-logo {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #transactionsTab .chrome-coin-symbol {
    color: #0f172a;
}

html[data-theme="light"] #transactionsTab .chrome-price {
    color: #111111 !important;
}

html[data-theme="light"] #transactionsTab .coin-mini-chart {
    background: #ffffff;
    border-color: rgba(219, 39, 119, 0.55);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] #transactionsTab .chrome-network-badge {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] #poolTab .pool-card {
    background: #e4e7ec;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #poolTab .pool-card:hover {
    background: #dde2ea;
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] #poolTab .pool-logo {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #poolTab .pool-card-name {
    color: #0f172a;
}

html[data-theme="light"] #poolTab .pool-card-address {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] #poolTab .pool-card-balance {
    color: rgba(15, 23, 42, 0.75);
    border-color: transparent;
    background: transparent;
}

html[data-theme="light"] #poolTab .pool-card-balance-label {
    color: rgba(15, 23, 42, 0.55);
}

html[data-theme="light"] #poolTab .pool-card-balance-value {
    color: rgba(15, 23, 42, 0.95);
}

html[data-theme="light"] #poolTab .pool-fee-badge {
    color: rgba(15, 23, 42, 0.6);
    background: transparent;
    border-color: transparent;
}

html[data-theme="light"] #poolTab .pool-fee-label {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] #poolTab .pool-fee-value {
    color: rgba(15, 23, 42, 0.75);
}

html[data-theme="light"] #poolTab .pool-network-badge {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.15);
}

html[data-theme="light"] #stakeTab {
    background: transparent;
}

html[data-theme="light"] .stake-card,
html[data-theme="light"] .stake-stat {
    background: #e9edf2;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .stake-embedded-wrapper {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .stake-graph-placeholder {
    background: #e1e6ed;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .stake-title,
html[data-theme="light"] .stake-card-title,
html[data-theme="light"] .stake-graph-value,
html[data-theme="light"] .stake-stat-value {
    color: #0f172a;
}

html[data-theme="light"] .stake-subtitle,
html[data-theme="light"] .stake-card-subtitle,
html[data-theme="light"] .stake-stat-label,
html[data-theme="light"] .stake-graph-meta,
html[data-theme="light"] .stake-network-pill {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] .stake-network-pill {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
}

/* Mobile hamburger menu - make lines visible in light mode */
html[data-theme="light"] .hamburger-line {
    background: rgba(0, 0, 0, 0.8);
}

/* Tabs - match dark mode style */
html[data-theme="light"] .tab-btn {
    color: rgba(0, 0, 0, 0.4);
    background: transparent;
}

html[data-theme="light"] .tab-btn:hover {
    color: rgba(0, 0, 0, 0.6);
    background: transparent;
}

html[data-theme="light"] .tab-btn.active {
    color: #000000;
    background: transparent;
    font-weight: 600;
}

/* Connect button - keep pink like dark mode */
html[data-theme="light"] .connect-btn {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .connect-btn:hover {
    background: rgb(219, 39, 119);
}

html[data-theme="light"] .connect-modal {
    background: rgba(240, 242, 246, 0.65);
}

html[data-theme="light"] .connect-modal-panel {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .connect-modal-header h3,
html[data-theme="light"] .connect-modal-close {
    color: #1d1d1f;
}

html[data-theme="light"] .connect-option {
    color: #1d1d1f;
}

html[data-theme="light"] .connect-option span {
    color: #1d1d1f !important;
}

html[data-theme="light"] .coming-soon-badge {
    color: rgba(0, 0, 0, 0.5) !important;
    background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .connect-option:hover {
    background: rgba(236, 72, 153, 0.1);
}

html[data-theme="light"] .wallet-network-btn {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #111111;
}

html[data-theme="light"] .wallet-network-btn:hover {
    background: #dde2ea;
    border-color: rgba(236, 72, 153, 0.35);
}

html[data-theme="light"] .wallet-network-icon {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .wallet-network-arrow {
    color: #111111;
}

/* Swap container */
html[data-theme="light"] .swap-container-wrapper {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .swap-box {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .swap-box:focus-within {
    border-color: rgba(236, 72, 153, 0.6);
    background: #dde2ea;
    box-shadow: none;
}

html[data-theme="light"] .swap-label {
    color: #333333;
    font-weight: 600;
}

html[data-theme="light"] .input-group label {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .price-display {
    color: #111111 !important;
}

html[data-theme="light"] .coin-unit-price {
    color: #111111 !important;
}

html[data-theme="light"] .amount-input {
    color: #000000;
    font-weight: 500;
}

html[data-theme="light"] .amount-input::placeholder {
    color: #999999;
}

html[data-theme="light"] .balance-display {
    color: #555555;
}

html[data-theme="light"] .usd-value {
    color: #444444;
    font-weight: 500;
}

/* Custom select */
html[data-theme="light"] .custom-select-trigger {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.25);
    color: #000000;
    box-shadow: none;
}

html[data-theme="light"] .custom-select-trigger:hover {
    background: white;
    border-color: rgb(236, 72, 153);
    box-shadow: none;
}

html[data-theme="light"] .swap-box.outlined .custom-select-trigger {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .swap-box.outlined .custom-select-trigger:hover {
    border-color: rgb(236, 72, 153);
}

html[data-theme="light"] .custom-select-trigger.select-token {
    background: white;
    border: 2px solid rgba(0, 0, 0, 0.25);
    color: #000000;
}

html[data-theme="light"] .custom-select-trigger.select-token:hover {
    background: white;
    border-color: rgb(236, 72, 153);
}

html[data-theme="light"] .custom-select-trigger.select-token::after {
    border-top-color: #000000;
}

html[data-theme="light"] .custom-select-trigger::after {
    border-top-color: #000000;
}

html[data-theme="light"] .dropdown-search-icon {
    color: #000000;
}

html[data-theme="light"] .dropdown-search-input {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #111111;
}

html[data-theme="light"] .dropdown-search-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .dropdown-search-wrapper .network-selector-btn {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dropdown-search-wrapper .network-selector-btn:hover {
    background: #dde2ea;
    border-color: rgba(236, 72, 153, 0.35);
}


html[data-theme="light"] .custom-select-trigger .coin-symbol {
    color: #000000;
}

html[data-theme="light"] .custom-select-dropdown {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .dropdown-header {
    background: #e4e7ec;
    border-bottom: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .dropdown-header-title {
    color: #1d1d1f;
}

html[data-theme="light"] .dropdown-search-input {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    color: #111111;
}

html[data-theme="light"] .dropdown-search-input:focus {
    background: #dde2ea;
    border-color: rgba(236, 72, 153, 0.45);
}

html[data-theme="light"] .dropdown-search-input::placeholder {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .custom-select-option {
    color: #000000;
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .custom-select-option:hover {
    background: #dde2ea;
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .custom-select-option.selected {
    background: rgba(236, 72, 153, 0.14);
    border-color: rgba(236, 72, 153, 0.35);
}

html[data-theme="light"] .coin-symbol {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .coin-name {
    color: #555555;
}

html[data-theme="light"] .coin-balance {
    color: #333333;
}

html[data-theme="light"] .custom-select-option-symbol {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .custom-select-option-name {
    color: #666666;
}

html[data-theme="light"] .custom-select-option-price {
    color: #111111 !important;
    font-weight: 600;
}

html[data-theme="light"] .custom-select-option-value {
    color: #111111 !important;
}

html[data-theme="light"] .custom-select-option-balance {
    color: #111111 !important;
}

/* Percent buttons */
html[data-theme="light"] .percent-btn {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .percent-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
    border-color: rgb(236, 72, 153);
}

/* Swap direction button */
html[data-theme="light"] .swap-direction-btn {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #111111;
    box-shadow:
        0 0 0 6px #ffffff,
        0 0 0 7px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .swap-direction-btn svg {
    opacity: 1;
}

html[data-theme="light"] .swap-direction-btn:hover {
    border-color: rgba(236, 72, 153, 0.6);
    color: rgb(236, 72, 153);
    background: white;
    box-shadow:
        0 0 0 6px #ffffff,
        0 0 0 7px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .swap-direction-btn:hover svg {
    color: rgb(236, 72, 153);
}

/* Swap details / Slippage box */
html[data-theme="light"] .swap-details {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .detail-row {
    color: #333333;
}

html[data-theme="light"] .detail-label {
    color: #444444;
}

html[data-theme="light"] .detail-value {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .swap-info {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .swap-info .info-row {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .swap-info .info-row span:first-child {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .swap-info .info-row span:last-child {
    color: #111111;
}

/* Primary button - keep pink, remove 3D effect */
html[data-theme="light"] .primary-btn {
    background: rgb(236, 72, 153);
    color: white;
    box-shadow: none;
}

html[data-theme="light"] .primary-btn:hover {
    background: rgb(219, 39, 119);
    box-shadow: none;
    transform: none;
}

html[data-theme="light"] .primary-btn:active {
    box-shadow: none;
    transform: none;
}

html[data-theme="light"] .primary-btn:disabled {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.3);
    box-shadow: none;
}

html[data-theme="light"] .primary-btn.swapping,
html[data-theme="light"] .primary-btn.success {
    background: rgb(236, 72, 153);
    box-shadow: none;
}

html[data-theme="light"] .swap-btn {
    background: rgba(236, 72, 153, 0.12);
    color: rgba(236, 72, 153, 0.65);
    border: 1px solid rgba(236, 72, 153, 0.25);
    box-shadow: none;
    transform: none;
}

html[data-theme="light"] .swap-btn:hover:not(.active) {
    background: rgba(236, 72, 153, 0.16);
    border-color: rgba(236, 72, 153, 0.3);
    transform: none;
}

html[data-theme="light"] .swap-btn.active {
    background: rgba(236, 72, 153, 0.9);
    color: #ffffff;
    border-color: rgba(236, 72, 153, 0.6);
    transform: none;
}

html[data-theme="light"] .swap-btn.active:hover {
    background: rgba(219, 39, 119, 0.9);
}

html[data-theme="light"] .swap-btn.active:active {
    background: rgba(255, 110, 200, 0.9);
}

html[data-theme="light"] .swap-btn.calculating,
html[data-theme="light"] .swap-btn.swapping,
html[data-theme="light"] .swap-btn.success {
    background: rgba(236, 72, 153, 0.9);
    border-color: rgba(236, 72, 153, 0.6);
    box-shadow: none;
}

/* Slogan */
html[data-theme="light"] .swap-slogan {
    color: #000000;
}

/* Profile menu */
html[data-theme="light"] .profile-menu {
    background: #f5f6f8;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-divider {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .profile-backdrop {
    background: transparent;
}

html[data-theme="light"] .settings-btn,
html[data-theme="light"] .power-btn {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .settings-btn:hover,
html[data-theme="light"] .power-btn:hover {
    background: rgba(0, 0, 0, 0.05);
    color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .settings-dropdown,
html[data-theme="light"] .power-dropdown {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .settings-section {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .settings-section:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .settings-label {
    color: rgba(0, 0, 0, 0.7);
}

html[data-theme="light"] .theme-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .theme-option {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .theme-option:hover {
    color: rgb(236, 72, 153);
    background: rgba(236, 72, 153, 0.1);
}

html[data-theme="light"] .theme-option.active {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .theme-option.active:hover {
    background: rgb(246, 92, 173);
}

html[data-theme="light"] .network-toggle {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .network-option {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .network-option:hover {
    color: rgb(236, 72, 153);
    background: rgba(236, 72, 153, 0.1);
}

html[data-theme="light"] .network-option.active {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .network-option.active:hover {
    background: rgb(246, 92, 173);
}

html[data-theme="light"] .power-dropdown-item {
    color: #1d1d1f;
}

html[data-theme="light"] .power-dropdown-item:hover {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .profile-avatar {
    background: linear-gradient(135deg, rgba(127, 102, 255, 0.15) 0%, rgba(127, 102, 255, 0.08) 100%);
    color: var(--app-purple);
}

html[data-theme="light"] .profile-address {
    color: #000000;
    font-weight: 500;
}

html[data-theme="light"] .address-copy-btn {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .address-copy-btn:hover {
    color: var(--app-purple);
}

html[data-theme="light"] .profile-balance {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .header-icons .buy-crypto-btn,
html[data-theme="light"] .buy-crypto-btn {
    background: rgba(236, 72, 153, 0.12) !important;
    color: rgb(219, 39, 119) !important;
    border: 1px solid rgba(236, 72, 153, 0.25) !important;
}

html[data-theme="light"] .header-icons .buy-crypto-btn:hover,
html[data-theme="light"] .buy-crypto-btn:hover {
    background: rgba(236, 72, 153, 0.2) !important;
    border-color: rgba(236, 72, 153, 0.4) !important;
}

html[data-theme="light"] .profile-tabs {
    background: linear-gradient(180deg, #f6f6f9 0%, #eef0f4 100%);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

html[data-theme="light"] .profile-tab {
    color: #5b5b66;
    background: transparent;
    border: none;
    font-weight: 600;
}

html[data-theme="light"] .profile-tab:hover {
    color: rgb(236, 72, 153);
    background: rgba(236, 72, 153, 0.08);
}

html[data-theme="light"] .profile-tab:focus-visible {
    outline: 2px solid rgba(236, 72, 153, 0.35);
    outline-offset: 1px;
}

html[data-theme="light"] .profile-tab:active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95) 0%, rgba(219, 39, 119, 0.95) 100%);
    color: #ffffff;
}

html[data-theme="light"] .profile-tab.active {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.95) 0%, rgba(219, 39, 119, 0.95) 100%);
    color: #ffffff;
    font-weight: 600;
}

html[data-theme="light"] .profile-avatar {
    background: rgba(59, 130, 246, 0.15);
}

html[data-theme="light"] .profile-avatar svg {
    fill: rgb(59, 130, 246);
}

html[data-theme="light"] .profile-btn {
    background: rgba(59, 130, 246, 0.15);
}

html[data-theme="light"] .profile-btn svg {
    fill: rgb(59, 130, 246);
}

html[data-theme="light"] .profile-btn:hover {
    background: rgba(59, 130, 246, 0.25);
}

html[data-theme="light"] .profile-coin-item {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: none;
}

html[data-theme="light"] .profile-coin-item:hover {
    background: #dde2ea;
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] .profile-coin-logo {
    background: rgba(15, 23, 42, 0.04);
    border: 1px solid rgba(15, 23, 42, 0.08);
    flex-shrink: 0;
}

html[data-theme="light"] .custom-select-logo,
html[data-theme="light"] .custom-select-option img,
html[data-theme="light"] .profile-coin-logo,
html[data-theme="light"] .coin-logo,
html[data-theme="light"] .send-coin-logo,
html[data-theme="light"] .pool-input-logo,
html[data-theme="light"] .unpool-token-logo,
html[data-theme="light"] .explore-token-logo,
html[data-theme="light"] .flip-token-logo,
html[data-theme="light"] .coin-logo-select {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15),
                0 0 0 1px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-pool-logo {
    box-shadow: 0 4px 10px rgba(15, 23, 42, 0.15),
                0 0 0 1px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-coin-name {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .profile-coin-price {
    color: #111111;
}

html[data-theme="light"] .profile-coin-amount {
    color: #1f2937;
}

html[data-theme="light"] .profile-coin-value {
    color: #111111;
    font-weight: 600;
}

html[data-theme="light"] .profile-menu .profile-coin-name,
html[data-theme="light"] .profile-menu .profile-coin-price,
html[data-theme="light"] .profile-menu .profile-coin-amount,
html[data-theme="light"] .profile-menu .profile-coin-value,
html[data-theme="light"] .profile-menu .profile-coin-info {
    color: #111111 !important;
}

html[data-theme="light"] .profile-coin-info {
    color: #000000;
}

html[data-theme="light"] .profile-coin-list {
    background: transparent;
}

html[data-theme="light"] .profile-transactions-list {
    background: transparent;
}

/* Transaction items */
html[data-theme="light"] .profile-tx-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .profile-tx-item:hover {
    background: rgba(236, 72, 153, 0.04);
    border-color: rgba(236, 72, 153, 0.2);
}

html[data-theme="light"] .profile-tx-title {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .profile-tx-subtitle {
    color: #555555;
}

html[data-theme="light"] .profile-tx-amount {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .profile-tx-amount.positive {
    color: #22c55e;
}

html[data-theme="light"] .profile-tx-amount.negative {
    color: #ef4444;
}

html[data-theme="light"] .profile-tx-logo {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .profile-tx-icon-placeholder {
    background: rgba(127, 102, 255, 0.1);
    color: var(--app-purple);
}

html[data-theme="light"] .network-badge {
    background: #ffffff;
    border-color: #ffffff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Modals */
html[data-theme="light"] .modal {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(4px);
}

html[data-theme="light"] .modal-content {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.15), 0 10px 30px rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .modal-header h3 {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .modal-close {
    color: #666666;
}

html[data-theme="light"] .modal-close:hover {
    color: #000000;
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .modal-body {
    color: #333333;
}

/* Explore page - title and subtitle */
html[data-theme="light"] .explore-title {
    color: #000000;
}

html[data-theme="light"] .explore-subtitle {
    color: #666666;
}

/* Explore page - search input */
html[data-theme="light"] .search-input {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.12);
    color: #000000;
}

html[data-theme="light"] .search-input::placeholder {
    color: #888888;
}

html[data-theme="light"] .search-input:focus {
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1);
}

/* Explore page - main grid container */
html[data-theme="light"] .explore-tokens-grid {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

/* Explore page - header row */
html[data-theme="light"] .explore-token-header {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

/* Explore page - header columns */
html[data-theme="light"] .explore-header-col {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .explore-header-col:hover {
    color: rgba(0, 0, 0, 0.8);
}

/* Explore page - token cards */
html[data-theme="light"] .explore-token-card {
    background: white;
}

html[data-theme="light"] .explore-token-card:hover {
    background: rgba(236, 72, 153, 0.04);
}

html[data-theme="light"] .explore-token-card:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* Explore page - token symbol (name) */
html[data-theme="light"] .explore-token-symbol {
    color: #000000;
    font-weight: 600;
}

/* Explore page - token price */
html[data-theme="light"] .explore-token-price {
    color: #000000;
    font-weight: 500;
}

/* Explore page - stat values (mcap, volume) */
html[data-theme="light"] .explore-token-stat-value {
    color: #333333;
}

/* Explore page - change percentage */
html[data-theme="light"] .explore-token-change {
    font-weight: 500;
}

/* Explore page - logo background */
html[data-theme="light"] .explore-token-logo {
    background: rgba(0, 0, 0, 0.04);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

/* Pool page - stat boxes */
html[data-theme="light"] .pool-stat-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .pool-stat-box-title {
    color: #666666;
}

html[data-theme="light"] .pool-stat-box-value {
    color: #000000;
}

html[data-theme="light"] .pool-stat-box-change {
    color: #333333;
}

/* Pool page - pool list uses explore-tokens-grid (already styled above) */
/* Pool-specific text colors */
html[data-theme="light"] .pool-pair-name {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .pool-fee-tier {
    color: #333333;
}

html[data-theme="light"] .pool-tvl,
html[data-theme="light"] .pool-vol,
html[data-theme="light"] .pool-fees {
    color: #333333;
}

html[data-theme="light"] .pool-apy {
    color: #000000;
    font-weight: 600;
}

html[data-theme="light"] .pool-btn {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
    border: 1px solid rgba(236, 72, 153, 0.2);
}

html[data-theme="light"] .pool-btn:hover {
    background: rgba(236, 72, 153, 0.15);
    border-color: rgba(236, 72, 153, 0.3);
}

/* Pool page - rewards box */
html[data-theme="light"] .pool-rewards-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pool-rewards-title {
    color: #666666;
}

html[data-theme="light"] .pool-rewards-value {
    color: #000000;
}

/* Flip page - stat boxes (Total Winnings, Your Flips) */
html[data-theme="light"] #flipTab .pool-stat-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Pool/Unpool Modal - light mode */
html[data-theme="light"] .pool-modal,
html[data-theme="light"] .unpool-modal,
html[data-theme="light"] .pool-liquidity-modal {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.14);
}

html[data-theme="light"] .pool-modal-title {
    color: #111111;
}

html[data-theme="light"] .pool-input-section {
    background: #d8dde5;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .pool-input-token {
    color: #111111;
}

html[data-theme="light"] .pool-input-balance {
    color: #4b5563;
}

html[data-theme="light"] .pool-amount-input {
    color: #111111;
}

html[data-theme="light"] .pool-amount-input::placeholder {
    color: #9ca3af;
}

html[data-theme="light"] .pool-usd-value {
    color: #4b5563;
}

html[data-theme="light"] .pool-steps-title {
    color: #374151;
}

html[data-theme="light"] .pool-step {
    background: #d8dde5;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .pool-step-title {
    color: #111111;
}

html[data-theme="light"] .pool-step-subtitle {
    color: #4b5563;
}

html[data-theme="light"] .pool-step-status {
    color: #374151;
    background: rgba(15, 23, 42, 0.08);
    border-color: rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .pool-steps-footnote {
    color: #6b7280;
}

/* Unpool modal specific elements */
html[data-theme="light"] .unpool-title {
    color: #000000;
}

html[data-theme="light"] .unpool-position-info {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .unpool-position-label {
    color: #666666;
}

html[data-theme="light"] .unpool-token-info {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .unpool-token-info span:not(.unpool-token-symbol) {
    color: #111111;
}

html[data-theme="light"] .unpool-token-symbol {
    color: #333333;
}

html[data-theme="light"] .unpool-amount-label {
    color: #666666;
}

html[data-theme="light"] .unpool-percent-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
}

html[data-theme="light"] .unpool-percent-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
}

html[data-theme="light"] .unpool-percent-btn.active {
    background: rgba(236, 72, 153, 0.15);
    color: rgb(236, 72, 153);
}

html[data-theme="light"] .unpool-receive-section {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .unpool-receive-label {
    color: #666666;
}

html[data-theme="light"] .unpool-receive-item {
    background: #e4e7ec;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .unpool-receive-amount {
    color: #000000;
}

html[data-theme="light"] .unpool-receive-symbol {
    color: #333333;
}

html[data-theme="light"] .unpool-receipt {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .unpool-receipt-row {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .unpool-receipt-row span:last-child {
    color: rgba(0, 0, 0, 0.8);
}

html[data-theme="light"] .pool-receipt {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .pool-receipt-row {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .pool-receipt-network {
    border-color: rgba(0, 0, 0, 0.12);
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .pool-receipt-row span:last-child {
    color: rgba(0, 0, 0, 0.8);
}

/* Pool/Unpool modal submit button - light mode */
html[data-theme="light"] .pool-modal-submit {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .pool-modal-submit:hover {
    background: #D91A7F;
    transform: translateY(-1px);
}

html[data-theme="light"] .pool-modal-submit.insufficient {
    background: rgba(0, 0, 0, 0.08);
    color: rgba(0, 0, 0, 0.35);
}

html[data-theme="light"] .pool-modal-submit.insufficient:hover {
    background: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .pool-modal-submit.loading {
    background: rgba(236, 72, 153, 0.7);
}

html[data-theme="light"] .pool-steps-title {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .pool-step {
    background: #d8dde5;
    border-color: rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .pool-step-index {
    border-color: rgba(15, 23, 42, 0.2);
    background: #e4e7ec;
    color: #4b5563;
}

html[data-theme="light"] .pool-step-title {
    color: rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] .pool-step-subtitle {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .pool-step-status {
    color: #374151;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(15, 23, 42, 0.16);
}

html[data-theme="light"] .pool-step.is-active {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.3);
}

html[data-theme="light"] .pool-step.is-active .pool-step-status {
    color: rgba(236, 72, 153, 0.9);
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.35);
}

html[data-theme="light"] .pool-step.is-done {
    background: rgba(22, 163, 74, 0.08);
    border-color: rgba(22, 163, 74, 0.3);
}

html[data-theme="light"] .pool-step.is-done .pool-step-status {
    color: rgba(22, 163, 74, 0.9);
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.3);
}

html[data-theme="light"] .pool-step.is-error {
    background: rgba(239, 68, 68, 0.06);
    border-color: rgba(239, 68, 68, 0.3);
}

html[data-theme="light"] .pool-step.is-error .pool-step-status {
    color: rgba(239, 68, 68, 0.9);
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.3);
}

html[data-theme="light"] .pool-steps-footnote {
    color: rgba(0, 0, 0, 0.5);
}

/* Chart modal - light mode */
html[data-theme="light"] .chart-modal-backdrop {
    background: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .chart-modal-content {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

html[data-theme="light"] .coin-detail-chart-container {
    background: transparent;
    box-shadow: inset 0 1px 0 rgba(15, 23, 42, 0.08), inset 0 -12px 20px rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .coin-detail-chart-container .chart-load-track {
    background: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .coin-detail-chart-container .chart-load-percent {
    color: rgba(15, 23, 42, 0.8);
}

html[data-theme="light"] .chart-modal-symbol {
    color: #000000;
}

html[data-theme="light"] .chart-modal-price {
    color: #333333;
}

html[data-theme="light"] .chart-meta-item {
    color: #666666;
}

html[data-theme="light"] .time-range-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #666666;
}

html[data-theme="light"] .time-range-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #000000;
}

html[data-theme="light"] .time-range-btn.active {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .chart-modal-stats {
    background: rgba(0, 0, 0, 0.04);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .chart-stat {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .chart-stat-label {
    color: #666666;
}

html[data-theme="light"] .chart-stat-value {
    color: #000000;
}

html[data-theme="light"] .chart-tooltip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .chart-tooltip .tooltip-price {
    color: #000000;
}

html[data-theme="light"] .chart-tooltip .tooltip-time {
    color: #666666;
}

html[data-theme="light"] .chart-tooltip .tooltip-date {
    color: #8a8a8a;
}

html[data-theme="light"] .chart-modal-logo {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .pool-modal-title {
    color: #000000;
}

html[data-theme="light"] .pool-input-section {
    background: #d8dde5;
    border: 1px solid rgba(15, 23, 42, 0.1);
}

html[data-theme="light"] .pool-input-token {
    color: #000000;
}

html[data-theme="light"] .pool-input-balance {
    color: #666666;
}

html[data-theme="light"] .pool-amount-input {
    color: #000000;
}

html[data-theme="light"] .pool-amount-input::placeholder {
    color: #999999;
}

html[data-theme="light"] .pool-usd-value {
    color: #666666;
}

html[data-theme="light"] .pool-percent-btn {
    background: rgba(0, 0, 0, 0.05);
    color: #333333;
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .pool-percent-btn:hover {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
    border-color: rgba(236, 72, 153, 0.3);
}

html[data-theme="light"] .pool-percent-btn.active {
    background: rgba(236, 72, 153, 0.15);
    color: rgb(236, 72, 153);
    border-color: rgba(236, 72, 153, 0.4);
}

/* Flip page - uses explore-tokens-grid (already styled above) */
/* Flip-specific styles */
html[data-theme="light"] .flip-row {
    background: white;
    border: none;
}

html[data-theme="light"] .flip-row:hover {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .flip-row:not(:last-child) {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .flip-symbol {
    color: #1a1a1a;
    font-weight: 700;
}

html[data-theme="light"] .flip-info {
    color: #333333;
}

html[data-theme="light"] .flip-usd-sub {
    color: #888888;
    font-weight: 500;
}

html[data-theme="light"] .flip-status {
    color: #1a1a1a;
    font-weight: 600;
    background: rgba(236, 72, 153, 0.08);
    border: 1px solid rgba(236, 72, 153, 0.15);
}

html[data-theme="light"] .flip-status.pending {
    background: rgba(251, 191, 36, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.25);
    color: #d97706;
}

html[data-theme="light"] .flip-status.cancelled {
    background: rgba(160, 160, 170, 0.12);
    border: 1px solid rgba(160, 160, 170, 0.2);
    color: #6b7280;
}

html[data-theme="light"] .flip-side-badge {
    background: rgba(236, 72, 153, 0.08);
    color: rgb(219, 55, 136);
    border: 1px solid rgba(236, 72, 153, 0.2);
    font-weight: 700;
}

html[data-theme="light"] .flip-side-badge.heads {
    background: rgba(59, 130, 246, 0.1);
    color: rgb(37, 99, 235);
    border: 1px solid rgba(59, 130, 246, 0.25);
}

html[data-theme="light"] .flip-side-badge.tails {
    background: rgba(16, 185, 129, 0.1);
    color: rgb(5, 150, 105);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

html[data-theme="light"] .flip-join-btn {
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.12) 0%,
        rgba(236, 72, 153, 0.08) 100%);
    color: rgb(219, 55, 136);
    border: 1.5px solid rgba(236, 72, 153, 0.3);
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(236, 72, 153, 0.12);
}

html[data-theme="light"] .flip-join-btn:hover {
    background: linear-gradient(135deg,
        rgba(236, 72, 153, 0.18) 0%,
        rgba(236, 72, 153, 0.14) 100%);
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}

html[data-theme="light"] .flip-joined-pill {
    color: rgb(22, 163, 74);
    background: rgba(22, 163, 74, 0.12);
    border-color: rgba(22, 163, 74, 0.25);
}

html[data-theme="light"] .flip-winner-pill.heads {
    color: rgb(37, 99, 235);
    background: rgba(59, 130, 246, 0.14);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

html[data-theme="light"] .flip-winner-pill.tails {
    color: rgb(5, 150, 105);
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .flip-games-list {
    background: transparent;
    border: none;
    box-shadow: none;
}

html[data-theme="light"] #flipTab .flip-card {
    background: #e4e7ec;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] #flipTab .flip-card:hover {
    background: #dde2ea;
    border-color: rgba(15, 23, 42, 0.18);
}

html[data-theme="light"] #flipTab .flip-card-name {
    color: #0f172a;
}

html[data-theme="light"] #flipTab .flip-card-address {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] #flipTab .flip-card-joiner {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] #flipTab .flip-card-joiner.is-empty {
    color: rgba(15, 23, 42, 0.45);
}

html[data-theme="light"] #flipTab .flip-address-winner {
    color: rgb(22, 163, 74);
}

html[data-theme="light"] #flipTab .flip-winner-tx {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] #flipTab .flip-winner-tx a {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] #flipTab .flip-card-logo {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .flip-skeleton {
    background: #e4e7ec;
    border-color: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .flip-skeleton-coin,
html[data-theme="light"] .flip-skeleton-line,
html[data-theme="light"] .flip-skeleton-btn {
    background: rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] #flipTab .flip-card-network {
    border-color: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .flip-side-icon.heads {
    background: linear-gradient(145deg,
        rgba(59, 130, 246, 0.15) 0%,
        rgba(59, 130, 246, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.2),
                inset 0 0 20px rgba(59, 130, 246, 0.1);
    border: 1.5px solid rgba(59, 130, 246, 0.3);
}

html[data-theme="light"] .flip-side-icon.tails {
    background: linear-gradient(145deg,
        rgba(16, 185, 129, 0.15) 0%,
        rgba(16, 185, 129, 0.08) 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2),
                inset 0 0 20px rgba(16, 185, 129, 0.1);
    border: 1.5px solid rgba(16, 185, 129, 0.3);
}

html[data-theme="light"] .flip-creator-address {
    color: #1a1a1a;
    font-weight: 600;
}

html[data-theme="light"] .flip-amount {
    color: #1a1a1a;
    font-weight: 700;
}

html[data-theme="light"] .flip-coin-symbol {
    color: #333333;
    font-weight: 600;
}

html[data-theme="light"] .flip-cancel-btn {
    background: rgba(239, 68, 68, 0.1);
    border: 1.5px solid rgba(239, 68, 68, 0.25);
    color: rgb(220, 38, 38);
}

html[data-theme="light"] .flip-cancel-btn:hover {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.15);
}

/* Flip page - empty state */
html[data-theme="light"] .flip-empty-state {
    color: #999999;
    font-weight: 500;
    background: rgba(236, 72, 153, 0.02);
    border-radius: 16px;
    padding: 40px 20px;
}

/* Flip page - modal */
html[data-theme="light"] .coin-flip-modal {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .flip-modal-close {
    background: rgba(0, 0, 0, 0.05);
    color: #666666;
}

html[data-theme="light"] .flip-modal-close:hover {
    background: rgba(0, 0, 0, 0.1);
    color: #333333;
}

html[data-theme="light"] .flip-modal-title {
    color: #000000;
}

html[data-theme="light"] .flip-create-summary {
    background: #f1f3f6;
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .flip-create-asset-logo {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .flip-create-asset-network {
    border-color: rgba(15, 23, 42, 0.2);
}

html[data-theme="light"] .flip-create-asset-label,
html[data-theme="light"] .flip-create-amount-label {
    color: rgba(15, 23, 42, 0.6);
}

html[data-theme="light"] .flip-create-asset-symbol,
html[data-theme="light"] .flip-create-amount-value {
    color: #0f172a;
}

html[data-theme="light"] .flip-side-label,
html[data-theme="light"] .flip-token-label,
html[data-theme="light"] .flip-amount-label {
    color: #666666;
}

html[data-theme="light"] .flip-side-option {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .flip-side-option:hover {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .flip-side-option.selected[data-side="heads"] {
    background: rgba(59, 130, 246, 0.1);
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 12px rgba(59, 130, 246, 0.12);
}

html[data-theme="light"] .flip-side-option.selected[data-side="tails"] {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.45);
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.12);
}

html[data-theme="light"] .flip-side-name {
    color: #000000;
}

html[data-theme="light"] .flip-side-token {
    color: #666666;
}

html[data-theme="light"] .flip-token-selector {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .flip-token-selector:hover {
    background: rgba(0, 0, 0, 0.05);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .flip-token-symbol {
    color: #000000;
}

html[data-theme="light"] .flip-token-arrow {
    color: #666666;
}

html[data-theme="light"] .flip-token-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .flip-token-dropdown-item:hover {
    background: rgba(236, 72, 153, 0.05);
}

html[data-theme="light"] .flip-token-dropdown-item:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .flip-dropdown-token-symbol {
    color: #000000;
}

html[data-theme="light"] .flip-dropdown-token-name {
    color: #666666;
}

html[data-theme="light"] .flip-dropdown-balance-amount {
    color: #000000;
}

html[data-theme="light"] .flip-dropdown-balance-usd {
    color: #666666;
}

html[data-theme="light"] .flip-token-balance {
    color: #666666;
}

html[data-theme="light"] .flip-amount-input-wrap {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .flip-bet-token {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .flip-bet-token-symbol {
    color: #111111;
}

html[data-theme="light"] .flip-bet-network {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.2);
}

html[data-theme="light"] .flip-amount-input {
    color: #000000;
}

html[data-theme="light"] .flip-amount-input::placeholder {
    color: #999999;
}

html[data-theme="light"] .flip-amount-usd {
    color: #666666;
}

html[data-theme="light"] .flip-join-summary {
    background: rgba(0, 0, 0, 0.03);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .flip-join-row {
    color: #666666;
}

html[data-theme="light"] .flip-join-row:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .flip-join-row span:last-child {
    color: #111111;
}

html[data-theme="light"] .flip-fee-icon {
    background: #ffffff;
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .flip-payout-section {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .flip-payout-row:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .flip-payout-row span:first-child {
    color: #666666;
}

html[data-theme="light"] .flip-payout-row span:last-child {
    color: #000000;
}

html[data-theme="light"] .flip-row:not(:last-child) {
    border-bottom-color: rgba(0, 0, 0, 0.06);
}

/* Toast */
html[data-theme="light"] .toast {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(250, 250, 252, 0.98) 100%);
    color: #1d1d1f;
    border: 1px solid rgba(236, 72, 153, 0.15);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(236, 72, 153, 0.1);
}

html[data-theme="light"] .toast::before {
    background: linear-gradient(90deg, transparent, rgba(236, 72, 153, 0.4), transparent);
}

html[data-theme="light"] .toast.error {
    border-color: rgba(239, 68, 68, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(239, 68, 68, 0.1);
}

html[data-theme="light"] .toast.error::before {
    background: linear-gradient(90deg, transparent, rgba(239, 68, 68, 0.5), transparent);
}

html[data-theme="light"] .toast.success {
    border-color: rgba(34, 197, 94, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

html[data-theme="light"] .toast.success::before {
    background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.5), transparent);
}

html[data-theme="light"] .toast.warning {
    border-color: rgba(251, 191, 36, 0.2);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(251, 191, 36, 0.1);
}

html[data-theme="light"] .toast.warning::before {
    background: linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.5), transparent);
}

/* Scrollbar */
html[data-theme="light"] ::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Network dropdown */
html[data-theme="light"] .network-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 14px;
    padding: 6px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .network-option {
    color: #1d1d1f;
}

html[data-theme="light"] .network-option:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .network-option.selected {
    background: rgba(0, 0, 0, 0.06);
}

html[data-theme="light"] .network-option-name {
    color: #000000;
}

html[data-theme="light"] .network-option-badge {
    color: rgb(22, 163, 74);
    background: rgba(22, 163, 74, 0.12);
}

html[data-theme="light"] .network-logo-box {
    border: 1px solid rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .network-selector-arrow {
    color: #000000;
}

html[data-theme="light"] .network-dropdown .network-option {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid transparent;
}

html[data-theme="light"] .network-dropdown .network-option:hover {
    background: rgba(236, 72, 153, 0.08);
    border-color: rgba(236, 72, 153, 0.25);
}

html[data-theme="light"] .network-dropdown .network-option.selected {
    background: rgba(236, 72, 153, 0.12);
    border-color: rgba(236, 72, 153, 0.35);
}

html[data-theme="light"] .network-dropdown .network-option-name {
    font-weight: 600;
    color: #111111;
}

html[data-theme="light"] .network-dropdown .network-logo-box {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .network-dropdown .network-option-badge {
    border: 1px solid rgba(22, 163, 74, 0.2);
}

/* Mobile menu */
html[data-theme="light"] .mobile-menu-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .mobile-menu-item {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .mobile-menu-item:hover,
html[data-theme="light"] .mobile-menu-item.active {
    color: var(--app-purple);
    background: rgba(127, 102, 255, 0.08);
}

/* Claim rewards */
html[data-theme="light"] .claim-rewards-btn {
    background: rgba(236, 72, 153, 0.1);
    color: rgb(236, 72, 153);
}

html[data-theme="light"] .claim-rewards-btn:hover {
    background: rgba(236, 72, 153, 0.15);
}

/* Claim rewards modal - light mode */
html[data-theme="light"] .claim-rewards-modal {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .claim-close-btn {
    color: #666666;
}

html[data-theme="light"] .claim-close-btn:hover {
    color: #000000;
}

html[data-theme="light"] .claim-label {
    color: #666666;
}

html[data-theme="light"] .claim-modal-amount {
    color: #000000;
}

html[data-theme="light"] .claim-modal-btn {
    background: rgb(236, 72, 153);
    color: white;
}

html[data-theme="light"] .claim-modal-btn:hover {
    background: rgb(219, 55, 136);
}

html[data-theme="light"] .claim-modal-btn.claiming {
    background: rgba(236, 72, 153, 0.5);
}

html[data-theme="light"] .claim-modal-btn.success {
    background: rgb(34, 197, 94);
}

/* Send view - comprehensive light mode */
html[data-theme="light"] .send-container {
    color: #000000;
}

html[data-theme="light"] .send-top-section {
    background: #f6f6f8;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .send-bottom-section {
    background: #f9f9fb;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .send-amount-value {
    color: #000000;
}

html[data-theme="light"] .send-amount-symbol {
    color: #555555;
}

html[data-theme="light"] .send-usd-value {
    color: #666666;
}

html[data-theme="light"] .send-coin-selector {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

html[data-theme="light"] .send-coin-selector:hover {
    background: #f2f2f6;
    border-color: rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .send-coin-selector:focus-within {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: none;
}

html[data-theme="light"] .send-coin-logo {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .send-coin-name {
    color: #000000;
}

html[data-theme="light"] .send-coin-balance {
    color: #555555;
}

html[data-theme="light"] .send-coin-arrow {
    color: #666666;
}

html[data-theme="light"] .send-coin-dropdown {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .send-coin-option {
    color: #000000;
}

html[data-theme="light"] .send-coin-option:hover {
    background: rgba(127, 102, 255, 0.06);
}

html[data-theme="light"] .send-coin-option span {
    color: #000000;
}

html[data-theme="light"] .send-coin-option .option-balance {
    color: #555555;
}

html[data-theme="light"] .send-coin-network-badge,
html[data-theme="light"] .send-coin-option-network-badge {
    border-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .send-address-wrapper {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
}

html[data-theme="light"] .send-address-wrapper:focus-within {
    border-color: rgba(236, 72, 153, 0.45);
    box-shadow: none;
}

html[data-theme="light"] .send-address-input {
    color: #000000;
}

html[data-theme="light"] .send-address-input::placeholder {
    color: #999999;
}

html[data-theme="light"] .send-paste-btn {
    color: #666666;
    border-left: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .send-paste-btn:hover {
    color: var(--app-purple);
}

html[data-theme="light"] .send-percent-btn {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #333333;
    box-shadow: none;
}

html[data-theme="light"] .send-percent-btn:hover {
    background: #f2f2f6;
    border-color: rgba(0, 0, 0, 0.16);
    color: #111111;
}

html[data-theme="light"] .send-keypad {
    background: #f7f7fb;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .send-key {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #000000;
    box-shadow: none;
}

html[data-theme="light"] .send-key:hover {
    background: #f2f2f6;
    border-color: rgba(0, 0, 0, 0.16);
}

html[data-theme="light"] .send-key:active {
    background: #ededf2;
}

html[data-theme="light"] .send-key-delete {
    color: #666666;
}

html[data-theme="light"] .send-submit-btn {
    background: rgba(236, 72, 153, 0.9);
    color: white;
    border: 1px solid rgba(236, 72, 153, 0.3);
    box-shadow: none;
}

html[data-theme="light"] .send-submit-btn:hover {
    background: rgba(236, 72, 153, 1);
}

html[data-theme="light"] .send-submit-btn:active,
html[data-theme="light"] .send-submit-btn:focus-visible {
    background: rgba(255, 110, 200, 0.95);
}

html[data-theme="light"] .send-submit-btn:disabled {
    background: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.3);
}

html[data-theme="light"] .send-input-group {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .send-input {
    color: #000000;
}

html[data-theme="light"] .send-input::placeholder {
    color: #999999;
}

html[data-theme="light"] .send-label {
    color: #555555;
}

/* Quick select coins */
html[data-theme="light"] .quick-select-container {
    background: rgba(0, 0, 0, 0.02);
}

html[data-theme="light"] .quick-select-coin {
    background: rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .quick-select-coin:hover {
    background: rgba(127, 102, 255, 0.08);
    border-color: var(--app-purple);
}

/* Floating coins */
html[data-theme="light"] .floating-coin {
    opacity: 0.15;
}

/* Info Section - Swap with confidence */
html[data-theme="light"] .info-section {
    background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
}

html[data-theme="light"] .info-text h2 {
    color: #1a1a1a;
    text-shadow: none;
}

html[data-theme="light"] .info-text p,
html[data-theme="light"] .info-text .info-bio {
    color: #666666;
    line-height: 1.7;
}

html[data-theme="light"] .supported-tokens-box {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 249, 250, 0.9) 100%);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .info-stats-header {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.08) 0%, rgba(22, 163, 74, 0.04) 100%);
    color: rgb(22, 163, 74);
    border: 1px solid rgba(22, 163, 74, 0.12);
}

html[data-theme="light"] .stats-dot {
    background: rgb(22, 163, 74);
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4);
}

html[data-theme="light"] .info-stat-item {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .info-stat-label {
    color: #888888;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 12px;
}

html[data-theme="light"] .info-stat-value {
    color: #1a1a1a;
    font-weight: 700;
}

html[data-theme="light"] .info-stat-green {
    background: linear-gradient(135deg, rgba(22, 163, 74, 0.06) 0%, rgba(22, 163, 74, 0.02) 100%);
    border-color: rgba(22, 163, 74, 0.15);
}

html[data-theme="light"] .info-stat-green .info-stat-label {
    color: rgb(22, 163, 74);
}

html[data-theme="light"] .info-stat-green .info-stat-value {
    color: rgb(22, 163, 74);
}

html[data-theme="light"] .feature-card {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: none;
}

html[data-theme="light"] .feature-card h3 {
    color: #1a1a1a;
}

html[data-theme="light"] .feature-card p {
    color: #666666;
}

/* Profile Pools - Light Mode */
html[data-theme="light"] .profile-pools-section {
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

html[data-theme="light"] .profile-section-header {
    color: #1f2937;
}

html[data-theme="light"] .profile-pool-item {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-pool-item:hover {
    background: rgba(236, 72, 153, 0.05);
    border-color: rgba(236, 72, 153, 0.28);
}

html[data-theme="light"] .profile-pool-logo {
    border-color: rgba(255, 255, 255, 0.95);
    background: rgba(15, 23, 42, 0.04);
}

html[data-theme="light"] .profile-pool-name {
    color: #111111;
}

html[data-theme="light"] .profile-pool-amounts {
    color: #1f2937;
}

html[data-theme="light"] .profile-pool-amounts.is-closed {
    color: rgba(15, 23, 42, 0.5);
}

html[data-theme="light"] .profile-menu .profile-pool-name,
html[data-theme="light"] .profile-menu .profile-pool-amounts,
html[data-theme="light"] .profile-menu .profile-section-header,
html[data-theme="light"] .profile-menu .profile-no-pools,
html[data-theme="light"] .profile-menu .profile-no-transactions {
    color: #111111 !important;
}

html[data-theme="light"] .profile-pool-btn {
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.7);
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-pool-btn:hover {
    background: rgba(236, 72, 153, 0.12);
    color: rgb(236, 72, 153);
    border-color: rgba(236, 72, 153, 0.25);
}

html[data-theme="light"] .profile-pool-btn.pool-btn {
    background: rgba(236, 72, 153, 0.14);
    color: rgb(236, 72, 153);
    border-color: rgba(236, 72, 153, 0.35);
}

html[data-theme="light"] .profile-pool-btn.pool-btn:hover {
    background: rgba(236, 72, 153, 0.22);
}

html[data-theme="light"] .profile-pool-btn.unpool-btn {
    background: rgba(15, 23, 42, 0.04);
    color: rgba(15, 23, 42, 0.7);
    border-color: rgba(15, 23, 42, 0.12);
}

html[data-theme="light"] .profile-pool-btn.unpool-btn:hover {
    background: rgba(15, 23, 42, 0.08);
    color: rgba(15, 23, 42, 0.9);
}

html[data-theme="light"] .profile-no-pools {
    color: rgba(15, 23, 42, 0.45);
}

/* ============================================================================
   TRANSACTIONS PAGE
   ============================================================================ */

.transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding: 0 5px;
}

.transactions-header h2 {
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.transactions-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.transactions-stats .stat-item {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
}

.transactions-stats .stat-item strong {
    color: #ffffff;
    font-weight: 700;
    font-size: 16px;
}

.live-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #22c55e !important;
    font-weight: 600;
}

.live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* Median Prices View Box */
.median-view-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.15) 0%, rgba(124, 58, 237, 0.15) 100%);
    border: 2px solid rgba(236, 72, 153, 0.4);
    border-radius: 20px;
    padding: 28px;
    margin-bottom: 24px;
    backdrop-filter: blur(12px);
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.2);
    animation: fadeInUp 0.5s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.median-view-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.15);
}

.view-header-left h3 {
    margin: 0 0 6px 0;
    font-size: 24px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
}

.view-subtitle {
    margin: 0;
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.view-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #10b981;
}

.status-dot {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

.median-view-content {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.view-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.view-stat {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    transition: all 0.3s ease;
}

.view-stat:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.25);
}

.view-stat-icon {
    font-size: 28px;
    line-height: 1;
    opacity: 0.9;
}

.view-stat-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.view-stat-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.55);
    text-transform: uppercase;
    letter-spacing: 0.8px;
}

.view-stat-value {
    font-size: 18px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.98);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.view-top-section {
    margin-top: 24px;
}

.view-section-title {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-loading {
    text-align: center;
    padding: 20px;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.view-top-coins {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.view-coin-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.view-coin-item:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(236, 72, 153, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.2);
}

.view-coin-symbol {
    font-size: 15px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-coin-price {
    font-size: 15px;
    font-weight: 700;
    color: #10b981;
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

/* Light theme overrides for view box */
html[data-theme="light"] .median-view-box {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1) 0%, rgba(124, 58, 237, 0.1) 100%);
    border-color: rgba(236, 72, 153, 0.35);
    box-shadow: 0 8px 32px rgba(236, 72, 153, 0.15);
}

html[data-theme="light"] .median-view-header {
    border-bottom-color: rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .view-header-left h3 {
    color: #1d1d1f;
}

html[data-theme="light"] .view-subtitle {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .view-stat {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .view-stat:hover {
    background: white;
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.15);
}

html[data-theme="light"] .view-stat-label {
    color: rgba(0, 0, 0, 0.55);
}

html[data-theme="light"] .view-stat-value {
    color: #1d1d1f;
}

html[data-theme="light"] .view-section-title {
    color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .view-loading {
    color: rgba(0, 0, 0, 0.45);
}

html[data-theme="light"] .view-coin-item {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] .view-coin-item:hover {
    background: white;
    border-color: rgba(236, 72, 153, 0.4);
    box-shadow: 0 4px 16px rgba(236, 72, 153, 0.15);
}

html[data-theme="light"] .view-coin-symbol {
    color: rgba(0, 0, 0, 0.75);
}

html[data-theme="light"] .view-coin-price {
    color: #059669;
}

@media (max-width: 768px) {
    .median-view-box {
        padding: 20px 18px;
    }

    .view-header-left h3 {
        font-size: 20px;
    }

    .view-subtitle {
        font-size: 12px;
    }

    .view-stat-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .view-stat {
        padding: 16px;
    }

    .view-stat-icon {
        font-size: 24px;
    }

    .view-stat-value {
        font-size: 16px;
    }

    .view-section-title {
        font-size: 14px;
    }

    .view-top-coins {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .view-coin-item {
        padding: 14px 16px;
    }

    .view-coin-symbol,
    .view-coin-price {
        font-size: 14px;
    }
}

/* Median Prices Container on Transactions Page */
.median-prices-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.median-prices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.median-prices-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.last-updated {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.median-prices-grid {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.median-price-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 8px 12px;
    width: 100%;
    transition: all 0.15s ease;
    cursor: default;
}

.median-price-card:hover {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.1);
}

.median-price-symbol {
    font-size: 10px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-bottom: 3px;
}

.median-price-value {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

/* Price History Container */
.price-history-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 10;
}

.price-history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.price-history-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
}

.history-count {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 500;
}

.price-history-list {
    max-height: 400px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.price-history-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: all 0.2s ease;
}

.price-history-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.price-history-time {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.price-history-prices {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: flex-start;
}

.price-history-coin {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 110px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 4px;
}

.price-history-symbol {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    font-weight: 600;
    min-width: 35px;
}

.price-history-value {
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
}

.loading-history {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: rgba(255, 255, 255, 0.5);
}

.loading-history p {
    margin-top: 12px;
    font-size: 14px;
}

/* Light theme styles for price history */
html[data-theme="light"] .price-history-container {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .price-history-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .price-history-header h3 {
    color: #1d1d1f;
}

html[data-theme="light"] .history-count {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .price-history-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .price-history-item:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .price-history-time {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .price-history-coin {
    background: rgba(0, 0, 0, 0.03);
}

html[data-theme="light"] .price-history-symbol {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .price-history-value {
    color: #1d1d1f;
}

html[data-theme="light"] .loading-history {
    color: rgba(0, 0, 0, 0.5);
}

/* Light theme styles for median prices */
html[data-theme="light"] .median-prices-container {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .median-prices-header {
    border-bottom-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .median-prices-header h3 {
    color: #1d1d1f;
}

html[data-theme="light"] .last-updated {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .median-price-card {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .median-price-card:hover {
    background: rgba(0, 0, 0, 0.04);
}

html[data-theme="light"] .median-price-symbol {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .median-price-value {
    color: #1d1d1f;
}

@media (max-width: 768px) {
    .median-price-card {
        padding: 7px 10px;
    }

    .median-price-symbol {
        font-size: 9px;
    }

    .median-price-value {
        font-size: 13px;
    }
}

.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-height: 450px;
    max-height: 650px;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 28px 36px;
    position: relative;
    z-index: 100;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 18px;
    border: 1px solid rgba(236, 72, 153, 0.3);
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;

    will-change: scroll-position;
    -webkit-overflow-scrolling: touch;
    contain: layout style paint;
}

.transactions-list::-webkit-scrollbar {
    width: 6px;
}

.transactions-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
}

.transactions-list::-webkit-scrollbar-thumb {
    background: rgba(236, 72, 153, 0.3);
    border-radius: 10px;
    transition: background 0.3s ease;
}

.transactions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(236, 72, 153, 0.5);
}

/* Transactions footer with stats */
.transactions-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 36px;
    margin-top: 24px;
    max-width: 1800px;
    margin-left: auto;
    margin-right: auto;
    border-top: 1px solid rgba(236, 72, 153, 0.25);
    background: rgba(0, 0, 0, 0.25);
    border-radius: 14px;
}

.transactions-stat-left,
.transactions-stat-right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.transactions-footer .stat-item {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 500;
}

.transactions-footer .stat-item strong {
    color: #ec4899;
    font-size: 15px;
    font-weight: 700;
}

.transactions-footer .live-indicator {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 20px;
}

.transactions-footer .live-dot {
    width: 8px;
    height: 8px;
    background: #22c55e;
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

#transactionsTab .transaction-item {
    background: rgba(0, 0, 0, 0.2) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 14px 20px !important;
    display: block !important;
    width: 100% !important;
    transition: all 0.2s ease !important;
    position: relative !important;
    cursor: default !important;
    overflow: visible !important;
    margin-bottom: 0 !important;

    /* GPU acceleration for ultra-smooth performance */
    transform: translateZ(0);
    will-change: transform, opacity;
    backface-visibility: hidden;
    -webkit-font-smoothing: antialiased;
    contain: layout style paint;
}

/* Smooth animation for new transactions at top - optimized for infinite loading */
.transaction-item.new-transaction {
    animation: newTransactionSlideIn 0.6s cubic-bezier(0.23, 1, 0.32, 1) forwards;
    position: relative;
    z-index: 10;
    will-change: transform, opacity;
}

@keyframes newTransactionSlideIn {
    0% {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    60% {
        opacity: 1;
        transform: translateY(2px) scale(1.01);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

#transactionsTab .transaction-content {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    width: 100% !important;
}

#transactionsTab .transaction-item::after {
    content: '' !important;
    position: absolute !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 1px !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

#transactionsTab .transaction-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex: 1 !important;
    min-width: 0 !important;
}

#transactionsTab .transaction-time-main {
    font-size: 15px !important;
    font-weight: 600 !important;
    color: rgba(255, 255, 255, 0.95) !important;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace !important;
    letter-spacing: -0.5px !important;
    min-width: 240px !important;
}

#transactionsTab .transaction-summary {
    flex: 1 !important;
    font-size: 14px !important;
    color: rgba(255, 255, 255, 0.65) !important;
    font-weight: 500 !important;
    letter-spacing: 0.3px !important;
}

#transactionsTab .transaction-expand-icon {
    display: none !important;
}

#transactionsTab .transaction-item:hover .transaction-expand-icon {
    display: none !important;
}

#transactionsTab .transaction-item.expanded .transaction-expand-icon {
    display: none !important;
}

/* Inline price tags on right side */
#transactionsTab .transaction-prices-inline {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    flex-wrap: wrap !important;
    justify-content: flex-end !important;
}

#transactionsTab .tx-price-tag {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 4px 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border-radius: 8px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace !important;
}

#transactionsTab .tx-price-sym {
    color: rgba(236, 72, 153, 0.9) !important;
    font-weight: 600 !important;
}

#transactionsTab .transaction-prices {
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)) !important;
    gap: 10px !important;
    padding: 16px !important;
    width: 100% !important;
    max-width: 100% !important;
    background: rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 8px !important;
    margin-top: 12px !important;
    transform-origin: top !important;
    opacity: 0 !important;
    transform: translateY(-5px) scaleY(0.9) !important;
    transition: all 0.3s ease !important;
}

#transactionsTab .transaction-prices[style*="display: grid"] {
    opacity: 1 !important;
    transform: translateY(0) scaleY(1) !important;
}

@keyframes smoothSlideDown {
    from {
        opacity: 0;
        transform: scaleY(0.8) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: scaleY(1) translateY(0);
    }
}

#transactionsTab .price-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 10px 14px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    transition: all 0.2s ease !important;
    min-height: 40px !important;
    opacity: 0 !important;
    transform: translateX(-10px) scale(0.95) !important;
}

#transactionsTab .transaction-prices[style*="display: grid"] .price-row {
    opacity: 1 !important;
    transform: translateX(0) scale(1) !important;
}

#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(1) {
    transition-delay: 0.06s !important;
}
#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(2) {
    transition-delay: 0.09s !important;
}
#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(3) {
    transition-delay: 0.12s !important;
}
#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(4) {
    transition-delay: 0.15s !important;
}
#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(5) {
    transition-delay: 0.18s !important;
}
#transactionsTab .transaction-prices[style*="display: grid"] .price-row:nth-child(n+6) {
    transition-delay: 0.21s !important;
}

#transactionsTab .price-row:hover {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

#transactionsTab .price-symbol {
    font-weight: 700 !important;
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.7) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

#transactionsTab .price-value {
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    font-family: 'SF Mono', 'Courier New', monospace !important;
    font-weight: 600 !important;
}

@keyframes slideInTransaction {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* Smooth animated price update flash for explore page */
.price-update-flash {
    animation: priceFlash 0.8s ease-out;
}

@keyframes priceFlash {
    0% {
        background: rgba(236, 72, 153, 0.3);
        transform: scale(1);
    }
    50% {
        background: rgba(236, 72, 153, 0.15);
        transform: scale(1.05);
    }
    100% {
        background: transparent;
        transform: scale(1);
    }
}

#transactionsTab .transaction-item:hover {
    background: rgba(236, 72, 153, 0.1) !important;
    border-left-color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.25) !important;
    transform: translateX(2px) !important;
}

#transactionsTab .transaction-item.expanded {
    background: rgba(236, 72, 153, 0.12) !important;
    border-left-color: #ec4899 !important;
    border-color: rgba(236, 72, 153, 0.3) !important;
    padding-bottom: 22px !important;
}

.transaction-item.missing-transaction {
    background: rgba(239, 68, 68, 0.03);
    border-left-color: rgba(239, 68, 68, 0.5);
    opacity: 0.7;
}

.transaction-item.missing-transaction:hover {
    background: rgba(239, 68, 68, 0.05);
    border-left-color: rgba(239, 68, 68, 0.7);
    cursor: default;
}

.transaction-item.missing-transaction .transaction-time-main {
    color: rgba(239, 68, 68, 0.7);
}

.transaction-item.missing-transaction .missing-label {
    color: rgba(239, 68, 68, 0.6);
    font-weight: 500;
}

.transaction-id {
    font-size: 10px;
    font-weight: 700;
    color: #ec4899;
    background: rgba(236, 72, 153, 0.1);
    padding: 4px 8px;
    border-radius: 6px;
    min-width: 45px;
    text-align: center;
    font-family: 'Courier New', monospace;
}

.transaction-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.transaction-type-badge {
    display: inline-block;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    padding: 3px 8px;
    border-radius: 4px;
    margin-bottom: 2px;
    width: fit-content;
    letter-spacing: 0.3px;
}

.transaction-type-badge.price-update {
    background: rgba(34, 197, 94, 0.15);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.transaction-type-badge.swap {
    background: rgba(236, 72, 153, 0.15);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.3);
}

.transaction-type-badge.transfer {
    background: rgba(168, 85, 247, 0.15);
    color: #a855f7;
    border: 1px solid rgba(168, 85, 247, 0.3);
}

.transaction-type-badge.pool {
    background: rgba(59, 130, 246, 0.15);
    color: #3b82f6;
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.transaction-type-badge.flip {
    background: rgba(251, 191, 36, 0.15);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.transaction-type-badge.other {
    background: rgba(148, 163, 184, 0.15);
    color: #94a3b8;
    border: 1px solid rgba(148, 163, 184, 0.3);
}

.transaction-swap {
    font-size: 12px;
    line-height: 1.4;
    color: #ffffff;
    word-break: break-word;
}

.price-pair {
    display: inline-block;
    margin-right: 8px;
    margin-bottom: 2px;
}

.price-pair strong {
    color: #ec4899;
    font-weight: 700;
}

.more-prices {
    color: rgba(255, 255, 255, 0.4);
    font-size: 12px;
    font-style: italic;
}

.transaction-time {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Courier New', monospace;
}

.loading-transactions {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    gap: 20px;
}

.loading-transactions .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(236, 72, 153, 0.2);
    border-top-color: #ec4899;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-transactions p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.no-transactions {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.5);
}

.no-transactions p {
    font-size: 16px;
    margin: 0;
}

/* Ensure transactions tab is below header - FULL WIDTH GRAY BACKGROUND */
#transactionsTab {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    z-index: 50;
    background: transparent !important;
    min-height: 100vh;
    padding: 0 !important;
    padding-top: calc(70px + 20px) !important;
    overflow-y: auto;
    box-sizing: border-box;
}

/* Ensure header stays above transactions tab */
body:has(#transactionsTab.active) .app-header {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    z-index: 100 !important;
    background: rgb(18, 18, 20) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

#transactionsTab .explore-container {
    position: relative;
    z-index: 1;
    background: transparent !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    box-sizing: border-box;
}

#transactionsTab .chrome-prices-container {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
}

#transactionsTab .chrome-list-content {
    width: 100%;
}

#transactionsTab .chrome-list-content.is-hidden {
    display: none;
}


#transactionsTab .chart-load-progress {
    display: none;
    align-items: center;
    gap: 12px;
    padding: 6px 2% 10px;
    background: transparent;
}

#transactionsTab .chart-load-progress.is-visible {
    display: flex;
}

#transactionsTab .chart-load-label {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 0.01em;
    min-width: 110px;
}

#transactionsTab .chart-load-track {
    position: relative;
    flex: 1;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

#transactionsTab .chart-load-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, rgba(236, 72, 153, 0.35), rgba(236, 72, 153, 0.95));
    transition: width 0.2s ease;
}

#transactionsTab .chart-load-percent {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    min-width: 36px;
    text-align: right;
}

#transactionsTab .chrome-prices-grid {
    background: transparent !important;
    border: none !important;
    padding: 6px 2% 24px !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#transactionsTab .chrome-price-row {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    margin: 0;
    border-radius: 14px;
    background: rgb(20, 20, 24);
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

#transactionsTab .chrome-price-row:hover {
    background: rgb(28, 28, 32);
    border-color: rgba(255, 255, 255, 0.14);
    transform: translateY(-1px);
}

#transactionsTab .chrome-row-main {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

#transactionsTab .chrome-coin-wrap {
    position: relative;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
}

#transactionsTab .chrome-coin-logo {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

#transactionsTab .chrome-network-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    width: 18px;
    height: 18px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid rgba(18, 18, 20, 0.9);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
}

#transactionsTab .chrome-network-badge img {
    width: 12px;
    height: 12px;
    border-radius: 2px;
}

#transactionsTab .chrome-coin-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

#transactionsTab .chrome-coin-symbol {
    font-size: 15px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.02em;
}

#transactionsTab .chrome-price {
    font-size: 12px;
    font-weight: 500;
    font-family: 'SF Mono', monospace;
    color: rgba(255, 255, 255, 0.7);
}

#transactionsTab .chrome-price.is-loaded {
    color: rgba(255, 255, 255, 0.9);
}

#transactionsTab .coin-mini-chart {
    width: 120px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.chart-load-progress--inline {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(240px, 80vw);
}

.chart-load-progress--inline .chart-load-track {
    height: 6px;
}

.chart-load-progress--inline .chart-load-label {
    display: none;
}

.transactions-header {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.transactions-header h2 {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
}

.transactions-stats {
    display: flex;
    gap: 16px;
    align-items: center;
}

.stat-item {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
}

.stat-item strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
}

/* Light theme overrides */
html[data-theme="light"] .transactions-header h2 {
    background: linear-gradient(135deg, #ec4899, #a855f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

html[data-theme="light"] .transactions-stats .stat-item {
    color: rgba(0, 0, 0, 0.6);
}

html[data-theme="light"] .transactions-stats .stat-item strong {
    color: #000000;
}

html[data-theme="light"] .transaction-item {
    background: rgba(0, 0, 0, 0.02);
    border-color: rgba(0, 0, 0, 0.08);
}

html[data-theme="light"] .transaction-item:hover {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(236, 72, 153, 0.3);
}

html[data-theme="light"] .transaction-swap {
    color: #000000;
}

html[data-theme="light"] .price-pair strong {
    color: #ec4899;
}

html[data-theme="light"] .more-prices {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .transaction-time {
    color: rgba(0, 0, 0, 0.4);
}

html[data-theme="light"] .loading-transactions p,
html[data-theme="light"] .no-transactions {
    color: rgba(0, 0, 0, 0.5);
}

html[data-theme="light"] .transactions-list::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.05);
}

html[data-theme="light"] .transactions-list::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.1);
}

html[data-theme="light"] .transactions-list::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.15);
}

html[data-theme="light"] #transactionsTab .tx-price-tag {
    background: rgba(0, 0, 0, 0.06);
    color: rgba(0, 0, 0, 0.85);
}

html[data-theme="light"] #transactionsTab .tx-price-sym {
    color: rgba(236, 72, 153, 1);
}

/* Mobile responsive */
@media (max-width: 768px) {
    .transactions-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .transactions-stats {
        width: 100%;
        justify-content: space-between;
    }

    .transaction-item {
        padding: 16px;
    }

    .transaction-id {
        font-size: 11px;
        padding: 4px 8px;
        min-width: 50px;
    }

    .transaction-swap {
        font-size: 13px;
    }

    .transactions-list {
        max-height: calc(100vh - 350px);
    }
}

/* Chrome Prices Section - Full Width */
.chrome-prices-container {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-shadow: none !important;
    opacity: 1;
    transition: none;
}

.chrome-prices-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 100%;
}

.chrome-price-row {
    width: 100%;
    box-sizing: border-box;
}

.chrome-prices-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(66, 133, 244, 0.1);
}

.chrome-prices-header h3 {
    color: #4285f4;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    opacity: 1;
}

.chrome-sources {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.5);
    background: rgba(66, 133, 244, 0.05);
    padding: 4px 10px;
    border-radius: 12px;
    border: 1px solid rgba(66, 133, 244, 0.15);
    opacity: 1;
}

/* Chrome Prices progressive loading animation */
@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* Protocol Stats Section */
.protocol-stats-section {
    background: var(--dark-background);
    padding: 60px 20px 80px;
    margin-top: 40px;
}

.protocol-stats-title {
    font-size: 28px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    text-align: center;
    margin-bottom: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.status-dot {
    width: 10px;
    height: 10px;
    background: #00ff88;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.protocol-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.protocol-stat-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 32px 24px;
    transition: all 0.3s ease;
}

.protocol-stat-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-4px);
}

.protocol-stat-card.highlight {
    background: rgba(0, 255, 136, 0.05);
    border-color: rgba(0, 255, 136, 0.2);
}

.protocol-stat-card.highlight:hover {
    background: rgba(0, 255, 136, 0.08);
    border-color: rgba(0, 255, 136, 0.3);
}

.protocol-stat-label {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.protocol-stat-card.highlight .protocol-stat-label {
    color: rgba(0, 255, 136, 0.8);
}

.protocol-stat-value {
    font-size: 42px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.95);
    font-family: 'SF Mono', monospace;
}

.protocol-stat-card.highlight .protocol-stat-value {
    color: #00ff88;
}

@media (max-width: 768px) {
    .protocol-stats-grid {
        grid-template-columns: 1fr;
    }
    .protocol-stat-value {
        font-size: 36px;
    }
}

/* Smooth animations for coin detail page */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Optimize coin detail page transitions */
.coin-detail-page {
    will-change: opacity, transform;
}

.coin-detail-back {
    transition: all 0.15s ease-out;
}

.coin-detail-back:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    transform: translateX(-4px);
}

/* Smooth chrome price row transitions */
.chrome-price-row {
    transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out;
}

.chrome-price-row:hover {
    transform: translateY(-1px);
}

.chrome-price-row:active {
    transform: scale(0.99);
}

/* ========================================
   CROSS-BROWSER OPTIMIZATIONS FOR CHROME
   ======================================== */

/* Smooth animations - Chrome & Safari compatible */
@-webkit-keyframes fadeIn {
    from {
        opacity: 0;
        -webkit-transform: translateY(10px);
    }
    to {
        opacity: 1;
        -webkit-transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hardware acceleration for smooth 60fps on Chrome */
.coin-detail-page {
    will-change: opacity, transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.coin-detail-back {
    -webkit-transition: all 0.15s ease-out;
    transition: all 0.15s ease-out;
    -webkit-tap-highlight-color: transparent;
}

.coin-detail-back:hover {
    color: rgba(255, 255, 255, 0.9) !important;
    -webkit-transform: translateX(-4px);
    transform: translateX(-4px);
}

/* Chrome-optimized row transitions with GPU acceleration */
.chrome-price-row {
    -webkit-transition: background 0.2s ease-out, border-color 0.2s ease-out, -webkit-transform 0.15s ease-out;
    transition: background 0.2s ease-out, border-color 0.2s ease-out, transform 0.15s ease-out;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-tap-highlight-color: transparent;
}

.chrome-price-row:hover {
    -webkit-transform: translateY(-1px) translateZ(0);
    transform: translateY(-1px) translateZ(0);
}

.chrome-price-row:active {
    -webkit-transform: scale(0.99) translateZ(0);
    transform: scale(0.99) translateZ(0);
}

/* Optimize chart rendering on Chrome */
canvas.coin-mini-chart {
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
}
