/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #10B981;
    --primary-green: #10B981;
    --primary-hover: #059669;
    --secondary-color: #34D399;
    --accent-color: #6EE7B7;
    --bg-light: #F0FDF4;
    --bg-white: #FFFFFF;
    --bg-green: #059669;
    --text-dark: #1A1A1A;
    --text-gray: #6B7280;
    --border-color: #D1FAE5;
    --shadow: 0 2px 8px rgba(16, 185, 129, 0.1);
    --shadow-lg: 0 4px 12px rgba(16, 185, 129, 0.15);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #9d9d9d 0%, #07563c 25%, #006843 50%, #03724e 75%, #898989 100%);
    background-size: 400% 400%;
    animation: gradientShift 15s ease infinite;
    min-height: 100vh;
    color: var(--text-dark);
    overflow-x: hidden;
    position: relative;
}

/* Animated Gradient */
@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(110, 231, 183, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(52, 211, 153, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%);
    animation: particleFloat 20s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes particleFloat {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }

    50% {
        transform: translate(30px, -30px) scale(1.1);
        opacity: 0.5;
    }
}

/* Floating Circles */
body::after {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 10% 20%, rgba(110, 231, 183, 0.08) 1px, transparent 1px),
        radial-gradient(circle at 90% 80%, rgba(52, 211, 153, 0.06) 1px, transparent 1px),
        radial-gradient(circle at 50% 50%, rgba(16, 185, 129, 0.05) 2px, transparent 2px);
    background-size: 100px 100px, 150px 150px, 200px 200px;
    animation: floatingCircles 30s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes floatingCircles {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }

    100% {
        transform: translate(50px, 50px) rotate(360deg);
    }
}

/* Tech Grid Lines */
.container::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(110, 231, 183, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(110, 231, 183, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    z-index: 0;
    animation: gridMove 20s linear infinite;
}

@keyframes gridMove {
    0% {
        transform: translate(0, 0);
    }

    100% {
        transform: translate(50px, 50px);
    }
}

.container {
    max-width: 1510px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.nav {
    display: flex;
    gap: 24px;
}

.nav-link {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    transition: color 0.2s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link.active {
    color: var(--primary-color);
    font-weight: 600;
    position: relative;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px 2px 0 0;
}

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

.btn-network {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-network:hover {
    background: #E5E7EB;
}

.btn-primary {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-primary:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

/* Main Content */
.main {
    padding: 20px 0 40px;
    position: relative;
    z-index: 1;
}

/* Announcement */
.announcement {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 24px;
    box-shadow: var(--shadow);
    display: flex;
    gap: 12px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.announcement-icon {
    font-size: 24px;
    flex-shrink: 0;
}

.announcement-content h3 {
    margin-bottom: 6px;
    color: #1A1A1A;
    font-size: 15px;
}

.announcement-content p {
    margin-bottom: 6px;
    line-height: 1.5;
    color: #2A2A3A;
    font-size: 12px;
}

.announcement-content ul {
    margin: 6px 0;
    padding-left: 18px;
    font-size: 12px;
}

.announcement-content li {
    margin: 3px 0;
    color: #2A2A3A;
}

.announcement-footer {
    font-style: italic;
    font-size: 11px;
    color: #4A4A5A;
    margin-top: 4px;
}

.announcement-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #4A4A5A;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.announcement-close:hover {
    background: rgba(0, 0, 0, 0.2);
    color: #1A1A1A;
}

.announcement.hidden {
    display: none;
}

/* Swap Card */
.swap-card {
    background: var(--bg-white);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    max-width: 480px;
    margin: 0 auto;
    overflow: hidden;
    position: relative;
    z-index: 2;
}

.swap-header {
    background: var(--primary-color);
    color: white;
    padding: 18px 20px;
    position: relative;
}

.swap-header h2 {
    font-size: 22px;
    margin-bottom: 2px;
}

.swap-header p {
    opacity: 0.9;
    font-size: 13px;
}

.swap-actions {
    position: absolute;
    top: 18px;
    right: 20px;
    display: flex;
    gap: 6px;
}

.icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.swap-body {
    padding: 20px;
}

/* Token Input */
.token-input {
    background: #F5F5FA;
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 6px;
}

.token-input-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-gray);
}

.token-input-body {
    display: flex;
    gap: 12px;
    align-items: center;
}

.amount-input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 20px;
    font-weight: 600;
    outline: none;
}

.amount-input::placeholder {
    color: #C0C0D0;
}

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

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

.token-select {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.2s;
}

.token-select:hover {
    background: #FAFAFA;
}

.token-icon {
    font-size: 18px;
}

.token-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 50%;
}

.token-chip-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 50%;
}

.token-item-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    border-radius: 50%;
}

/* Swap Arrow */
.swap-arrow-container {
    display: flex;
    justify-content: center;
    margin: -6px 0;
    position: relative;
    z-index: 1;
}

.swap-arrow-btn {
    background: var(--primary-color);
    color: white;
    border: 3px solid white;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hide original double arrow by default */
.swap-arrow-btn span {
    opacity: 0;
    transition: opacity 0.3s;
}

/* Show only down arrow by default */
.swap-arrow-btn::after {
    content: '↓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 20px;
    opacity: 1;
    transition: opacity 0.3s;
}

/* Show both arrows on hover, hide down arrow */
.swap-arrow-btn:hover span {
    opacity: 1;
}

.swap-arrow-btn:hover::after {
    opacity: 0;
}

.swap-arrow-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

/* Swap Info */
.swap-info {
    margin: 12px 0;
    padding: 10px 12px;
    background: #F5F5FA;
    border-radius: 10px;
}

.info-row {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: var(--text-gray);
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

/* Conversion Details */
.conversion-details {
    margin: 12px 0;
    padding: 12px;
    background: #F0FDF4;
    border: 1px solid #D1FAE5;
    border-radius: 10px;
}

.conversion-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    font-size: 13px;
}

.conversion-row:not(:last-child) {
    border-bottom: 1px solid #E5E7EB;
}

.conversion-label {
    color: var(--text-gray);
    font-weight: 500;
}

.conversion-value {
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
}

/* Insufficient Balance Warning */
.price-impact-warning {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #FEF2F2;
    border: 1px solid #FCA5A5;
    border-radius: 10px;
    margin: 15px 0;
}

.warning-icon {
    font-size: 20px;
}

.warning-text {
    font-size: 13px;
    color: #DC2626;
    font-weight: 500;
}

.btn-connect-large {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-connect-large:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 16px;
    max-width: 520px;
    width: 100%;
    max-height: 85vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 10000;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.2);
}

.modal-header h2 {
    font-size: 20px;
    margin: 0;
}

.modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.modal-body {
    padding: 20px;
    max-height: calc(85vh - 60px);
    overflow-y: auto;
    background: white;
}

.modal-description {
    color: var(--text-gray);
    line-height: 1.5;
    margin-bottom: 20px;
    font-size: 14px;
}

/* Wallet Grid */
.wallet-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.wallet-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 16px;
    background: #F5F5FA;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.wallet-option:hover {
    border-color: var(--primary-color);
    background: white;
}

.wallet-icon {
    font-size: 28px;
}

.wallet-icon-img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.wallet-name {
    font-weight: 600;
    font-size: 13px;
}

.modal-footer-text {
    text-align: center;
    color: var(--text-gray);
}

.btn-link {
    background: none;
    border: none;
    color: var(--primary-color);
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
}

/* Search Input */
.search-input {
    width: 100%;
    padding: 10px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    margin-bottom: 16px;
    outline: none;
}

.search-input:focus {
    border-color: var(--primary-color);
}

/* Token Section */
.token-section {
    margin-bottom: 16px;
}

.token-section h4 {
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-gray);
    font-weight: 600;
}

.token-chips {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.token-chip {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 7px 12px;
    background: #F5F5FA;
    border: 2px solid transparent;
    border-radius: 18px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.token-chip:hover {
    border-color: var(--primary-color);
}

/* Token List */
.token-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.token-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: transparent;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    text-align: left;
    transition: all 0.2s;
}

.token-item:hover {
    background: #F5F5FA;
}

.token-info {
    flex: 1;
}

.token-name {
    font-weight: 600;
    margin-bottom: 2px;
    font-size: 14px;
}

.token-desc {
    font-size: 12px;
    color: var(--text-gray);
}

/* Settings */
.settings-section {
    margin-bottom: 20px;
}

.settings-label {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 14px;
}

.help-icon {
    font-size: 13px;
    opacity: 0.6;
}

.slippage-options {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.slippage-btn {
    padding: 8px 16px;
    background: #F5F5FA;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}

.slippage-btn.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.slippage-input {
    width: 70px;
    padding: 8px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    font-size: 13px;
}

/* Hide arrows in slippage input */
.slippage-input::-webkit-outer-spin-button,
.slippage-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

.settings-input {
    width: 100%;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
}

/* Hide arrows in settings input */
.settings-input::-webkit-outer-spin-button,
.settings-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

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

/* Toggle Switch */
.toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 28px;
}

.toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 28px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

.toggle input:checked+.toggle-slider {
    background-color: var(--primary-color);
}

.toggle input:checked+.toggle-slider:before {
    transform: translateX(22px);
}

/* Network List */
.network-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.network-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 4px 12px;
    background: transparent;
    border: 2px solid transparent;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-align: left;
    transition: all 0.2s;
}

.network-item:hover {
    background: #F5F5FA;
}

.network-item.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.network-icon {
    font-size: 20px;
}

/* .network-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
} */

/* Empty State */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-gray);
}

/* Responsive */
@media (max-width: 768px) {
    body {
        overflow-x: hidden;
        width: 100%;
        max-width: 100vw;
    }

    .container {
        padding: 0 16px;
        max-width: 100%;
        overflow-x: hidden;
    }

    header {
        padding: 12px 16px;
        min-height: 60px;
    }

    .header-content {
        flex-wrap: nowrap;
        gap: 8px;
    }

    .logo {
        font-size: 18px;
        flex-shrink: 0;
    }

    .nav {
        display: flex !important;
        flex-direction: row;
        gap: 8px;
        font-size: 12px;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .nav-link {
        padding: 6px 10px;
        font-size: 12px;
        white-space: nowrap;
    }

    .mobile-menu-btn {
        display: none !important;
    }

    .header-actions {
        flex-direction: row;
        width: auto;
        flex-shrink: 0;
    }

    .btn-network,
    .btn-primary {
        width: auto;
        justify-content: center;
        font-size: 12px;
        padding: 8px 12px;
    }

    .announcement {
        flex-direction: column;
        padding: 12px 16px;
    }

    .swap-card {
        margin: 0;
        max-width: 100%;
        width: 100%;
    }

    .wallet-grid {
        grid-template-columns: 1fr;
    }

    .slippage-options {
        flex-wrap: wrap;
    }

    .mobile-bottom-nav {
        width: 100%;
        max-width: 100vw;
        left: 0;
        right: 0;
    }

    * {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .header-content {
        flex-wrap: nowrap;
        gap: 6px;
    }

    .logo {
        font-size: 16px;
    }

    .nav {
        font-size: 11px;
        gap: 6px;
    }

    .nav-link {
        padding: 5px 8px;
        font-size: 11px;
    }

    .btn-network,
    .btn-primary {
        font-size: 11px;
        padding: 6px 10px;
    }

    .amount-input {
        font-size: 18px;
    }

    .modal-content {
        margin: 0;
        border-radius: 20px 20px 0 0;
        max-height: 80vh;
    }
}

/* 
Wallet Connected State */
.btn-primary.connected {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    border: 2px solid #34D399;
}

.btn-primary.connected:hover {
    background: linear-gradient(135deg, #047857 0%, #059669 100%);
}

.btn-connect-large.btn-swap {
    background: linear-gradient(135deg, #10B981 0%, #34D399 100%);
}

.btn-connect-large.btn-swap:hover {
    background: linear-gradient(135deg, #059669 0%, #10B981 100%);
    transform: translateY(-2px);
}

/* Walle
t Info in Network Modal */
.wallet-info {
    background: linear-gradient(135deg, #F0FDF4 0%, #D1FAE5 100%);
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
}

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

.wallet-address {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wallet-label {
    font-size: 12px;
    color: var(--text-gray);
    font-weight: 500;
}

.wallet-address-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Courier New', monospace;
}

.btn-disconnect {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-disconnect:hover {
    background: linear-gradient(135deg, #DC2626 0%, #B91C1C 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

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

@media (max-width: 768px) {
    .wallet-info-content {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-disconnect {
        width: 100%;
        justify-content: center;
    }
}

/*
 Wallet Dropdown */
.wallet-dropdown-container {
    position: relative;
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: white;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(16, 185, 129, 0.15);
    min-width: 280px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.wallet-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: default;
    transition: background 0.2s ease;
}

.wallet-dropdown-item.disconnect-item {
    cursor: pointer;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    color: #EF4444;
    font-weight: 600;
}

.wallet-dropdown-item.disconnect-item:hover {
    background: #FEE2E2;
}

.wallet-dropdown-item.disconnect-item:active {
    background: #FECACA;
}

.wallet-dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

.wallet-icon {
    font-size: 18px;
}

#walletAddressDropdown {
    font-family: 'Courier New', monospace;
    font-size: 13px;
    color: var(--text-gray);
    word-break: break-all;
}

@media (max-width: 768px) {
    .wallet-dropdown {
        min-width: 260px;
        right: -10px;
    }
}

/* Hero Section - 2 Column Layout */
.hero-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: 40px 0;
}

/* Hero Content (Left Side) */
.hero-content {
    padding-right: 40px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    color: white;
}

.hero-title-accent {
    background: linear-gradient(135deg, #e1fa8b 0%, #81f88a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 40px;
    font-weight: 500;
}

/* Supported Chains */
.supported-chains {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.chain-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    cursor: pointer;
}

.chain-icon:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 16px rgba(16, 185, 129, 0.2);
}

.chain-icon img {
    width: 55px;
    height: 55px;
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-section {
        grid-template-columns: 1fr;
        gap: 40px;
        min-height: auto;
    }

    .hero-content {
        padding-right: 0;
        text-align: center;
    }

    .hero-title {
        font-size: 48px;
    }

    .supported-chains {
        justify-content: center;
    }
}

@media (max-width: 768px) {

    /* Hide hero content on mobile */
    .hero-content {
        display: none;
    }

    .hero-section {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

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

    .chain-icon img {
        width: 28px;
        height: 28px;
    }
}

/* 
Header Wallet Details */
.wallet-balance {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-weight: 600;
    color: white;
}

.balance-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.icon-btn-header {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.icon-btn-header:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.network-icon-img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    margin-right: 8px;
}

/* W
allet Icon in Button */
.wallet-icon-small {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    margin-right: 8px;
}

.btn-primary.connected {
    display: flex;
    align-items: center;
    gap: 8px;
}



#networkModal .network-logo {
    width: 24px !important;
    height: 24px !important;
}


/* Notification Modal */
.notification-modal-content {
    max-width: 400px;
    border-radius: 20px;
    padding: 0;
}

.notification-modal-body {
    padding: 32px;
    text-align: center;
}

.notification-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.notification-modal-body h3 {
    color: var(--text-dark);
    font-size: 20px;
    margin: 0 0 12px 0;
    font-weight: 600;
}

.notification-modal-body p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 24px 0;
}

.btn-notification-ok {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-notification-ok:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* Confirmation Modal */
.confirmation-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.btn-confirmation-cancel,
.btn-confirmation-ok {
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-confirmation-cancel {
    background: #f0f0f0;
    color: var(--text-dark);
}

.btn-confirmation-cancel:hover {
    background: #e0e0e0;
    transform: translateY(-2px);
}

.btn-confirmation-ok {
    background: var(--primary-color);
    color: white;
}

.btn-confirmation-ok:hover {
    background: var(--primary-hover);
    transform: translateY(-2px);
}

/* 
Mobile Bottom Navigation */
.mobile-bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid #e0e0e0;
    padding: 8px 0;
    padding-bottom: calc(8px + env(safe-area-inset-bottom));
    z-index: 9999;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    width: 100%;
}

.mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 4px;
    text-decoration: none;
    color: #666;
    transition: all 0.3s ease;
    position: relative;
}

.mobile-nav-item.active {
    color: var(--primary-color);
}

.mobile-nav-item.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 0 0 3px 3px;
}

.mobile-nav-icon {
    font-size: 24px;
    margin-bottom: 4px;
}

.mobile-nav-label {
    font-size: 11px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .mobile-bottom-nav {
        display: flex;
    }

    /* Hide desktop navigation on mobile */
    .nav {
        display: none !important;
    }

    /* Add padding to body to account for bottom nav */
    body {
        padding-bottom: 70px;
        padding-bottom: calc(70px + env(safe-area-inset-bottom));
    }

    .container {
        /* padding-bottom: 20px; */
    }

    /* Adjust header for mobile - make it compact and inline */
    .header {
        padding: 10px 0;
    }

    .header-content {
        display: flex;
        justify-content: space-between;
        align-items: center;
        gap: 8px;
        flex-wrap: nowrap;
    }

    .logo {
        font-size: 18px;
        flex-shrink: 0;
        order: 1;
    }

    .nav {
        order: 2;
    }

    .header-actions {
        display: flex;
        gap: 6px;
        flex-shrink: 0;
        align-items: center;
        order: 3;
        margin-left: auto;
        justify-content: center;
    }

    /* Hide mobile menu button */
    .mobile-menu-btn {
        display: none !important;
    }

    /* Compact network button - show name */
    .btn-network {
        padding: 6px 8px;
        font-size: 10px;
        white-space: nowrap;
        max-width: 120px;
    }

    .btn-network .network-icon-img {
        width: 24px;
        height: 24px;
        flex-shrink: 0;
    }

    .btn-network #currentNetworkName {
        display: inline-block;
        max-width: 50px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-network .arrow {
        margin-left: 2px;
        font-size: 8px;
    }

    /* Compact wallet button - hide text, show only icon */
    .btn-primary {
        padding: 8px 12px;
        font-size: 13px;
        min-width: auto;
    }

    .btn-primary.connected span {
        display: none;
    }

    .btn-primary.connected {
        padding: 8px;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .btn-primary.connected .wallet-icon-small {
        margin: 0;
        width: 24px;
        height: 24px;
    }

    /* Wallet dropdown positioning */
    .wallet-dropdown-container {
        position: relative;
    }

    .wallet-dropdown {
        right: 0;
        left: auto;
    }
}

/* 
Blockchain Explorer Link Styles */
.explorer-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    font-size: 0.875rem;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.explorer-link:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.explorer-link i {
    font-size: 0.75rem;
}

/* Transaction Hash Display */
.tx-hash-container {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tx-hash-container .masked-data {
    flex: 1;
    min-width: 0;
}