﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    overscroll-behavior-y: none; /* Disable pull-to-refresh on html */
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #0b001a 0%, #2e1065 50%, #0b001a 100%);
    min-height: 100vh;
    color: #fff;
    overflow-x: hidden;
    position: relative;
    overscroll-behavior-y: none; /* Disable pull-to-refresh on body */
    touch-action: pan-x pan-y;   /* Disable default touch actions like double-tap zoom, but allow scrolling */
}

/* Animated Background Particles */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(130, 71, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(130, 71, 229, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(16, 185, 129, 0.05) 0%, transparent 50%);
    animation: backgroundPulse 15s ease-in-out infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes backgroundPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* Floating Particles */
.screen::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, rgba(255, 255, 255, 0.3), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(255, 255, 255, 0.2), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(255, 255, 255, 0.4), transparent),
        radial-gradient(1px 1px at 80% 10%, rgba(255, 255, 255, 0.3), transparent);
    background-size: 200% 200%;
    animation: floatingParticles 20s linear infinite;
    pointer-events: none;
    z-index: 1;
}

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

/* English (LTR) Support */
body.english {
    direction: ltr;
}

body.english .back-btn svg {
    transform: scaleX(-1);
}

/* Responsive Container */
.container {
    width: 100%;
    max-width: 100vw;
    padding: 1rem;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

@media (min-width: 480px) {
    .container {
        max-width: 480px;
    }
}

/* Screen Management */
.screen {
    display: none;
    min-height: 100vh;
    padding: 1rem;
    position: relative;
}

.screen.active {
    display: block;
    animation: fadeInUp 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Welcome Screen */
.logo-section {
    text-align: center;
    margin-bottom: 2rem;
    animation: scaleIn 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.logo-circle {
    display: inline-block;
    padding: 1rem;
    background: rgba(130, 71, 229, 0.2);
    border-radius: 50%;
    margin-bottom: 1rem;
    position: relative;
    animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.logo-circle::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    bottom: -5px;
    background: linear-gradient(45deg, #8247E5, #8247E5, #10b981);
    border-radius: 50%;
    opacity: 0;
    animation: logoGlow 2s ease-in-out infinite;
    z-index: -1;
}

@keyframes logoGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.logo-section h1 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a855f7, #c084fc, #34d399);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
    0%, 100% { filter: hue-rotate(0deg); }
    50% { filter: hue-rotate(20deg); }
}

.subtitle {
    color: #93c5fd;
    font-size: clamp(0.875rem, 3vw, 1rem);
    animation: fadeIn 1s ease 0.3s both;
}

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

.policy-box {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    max-height: 50vh;
    overflow-y: auto;
    animation: slideInLeft 0.6s ease 0.2s both;
    position: relative;
}

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

.policy-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(130, 71, 229, 0.1), rgba(130, 71, 229, 0.1));
    border-radius: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.policy-box:hover::before {
    opacity: 1;
}

.policy-box h2 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 0.75rem;
    color: #a855f7;
}

.policy-box p {
    color: #cbd5e1;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.agreement-box {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: slideInRight 0.6s ease 0.4s both;
}

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

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    cursor: pointer;
    font-size: clamp(0.875rem, 3vw, 1rem);
    transition: transform 0.2s ease;
}

.checkbox-label:hover {
    transform: translateX(5px);
}

.checkbox-label input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.checkbox-label input[type="checkbox"]:checked {
    transform: scale(1.1);
}

.welcome-text {
    text-align: center;
    margin-top: 2rem;
    animation: fadeIn 1s ease 0.6s both;
}

.welcome-text h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.welcome-text p {
    color: #9ca3af;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

/* Connect Screen */
.header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    animation: slideDown 0.6s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.back-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.back-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(130, 71, 229, 0.2);
    border-radius: 0.5rem;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.back-btn:hover {
    color: #fff;
    transform: translateX(-3px);
}

.back-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.header-title {
    flex: 1;
}

.header-title h1 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 0.25rem;
}

.header-title p {
    color: #9ca3af;
    font-size: clamp(0.75rem, 3vw, 0.875rem);
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.info-card {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    transition: all 0.3s ease;
    animation: fadeInUp 0.6s ease both;
}

.info-card:nth-child(1) { animation-delay: 0.1s; }
.info-card:nth-child(2) { animation-delay: 0.2s; }

.info-card:hover {
    transform: translateY(-5px);
    border-color: #8247E5;
    box-shadow: 0 10px 30px rgba(130, 71, 229, 0.3);
}

.info-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.info-icon::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: inherit;
    opacity: 0.3;
    animation: ripple 2s ease-out infinite;
}

@keyframes ripple {
    0% { transform: scale(1); opacity: 0.3; }
    100% { transform: scale(1.5); opacity: 0; }
}

.info-icon.blue { background: rgba(130, 71, 229, 0.2); }
.info-icon.purple { background: rgba(130, 71, 229, 0.2); }
.info-icon.green { background: rgba(16, 185, 129, 0.2); }
.info-icon.orange { background: rgba(249, 115, 22, 0.2); }
.info-icon.red { background: rgba(239, 68, 68, 0.2); }
.info-icon.cyan { background: rgba(6, 182, 212, 0.2); }
.info-icon.indigo { background: rgba(99, 102, 241, 0.2); }

.info-card h3 {
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.5rem;
}

.info-card p {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    line-height: 1.5;
}

.connect-form {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    background: rgba(15, 23, 42, 0.5);
    border-radius: 0.5rem;
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.tab {
    background: none;
    border: none;
    color: #9ca3af;
    padding: 0.75rem;
    border-radius: 0.5rem;
    cursor: pointer;
    font-size: clamp(0.875rem, 3vw, 1rem);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8247E5, #8247E5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.tab.active {
    color: #fff;
}

.tab.active::before {
    opacity: 1;
}

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

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.tab-content label {
    display: block;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.tab-content textarea {
    width: 100%;
    min-height: 120px;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #4c1d95;
    border-radius: 0.75rem;
    padding: 1rem;
    color: #fff;
    font-family: inherit;
    font-size: clamp(0.875rem, 3vw, 1rem);
    resize: none;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.tab-content textarea:focus {
    outline: none;
    border-color: #8247E5;
    box-shadow: 0 0 0 3px rgba(130, 71, 229, 0.1);
}

.tab-content textarea::placeholder {
    color: #6b7280;
}

/* Buttons */
.btn-primary {
    width: 100%;
    background: linear-gradient(135deg, #8247E5 0%, #8247E5 100%);
    border: none;
    color: #fff;
    padding: 1.25rem;
    border-radius: 0.75rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(130, 71, 229, 0.4);
}

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

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

.btn-secondary {
    width: 100%;
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    color: #fff;
    padding: 1rem;
    border-radius: 0.75rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

.btn-secondary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(130, 71, 229, 0.1), rgba(130, 71, 229, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-secondary:hover {
    border-color: #8247E5;
    transform: translateY(-2px);
}

.btn-secondary:hover::before {
    opacity: 1;
}

/* Loading Screen */
.loading-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    text-align: center;
}

.spinner {
    width: 60px;
    height: 60px;
    border: 4px solid rgba(130, 71, 229, 0.2);
    border-top-color: #8247E5;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 2rem;
    position: relative;
}

.spinner::after {
    content: '';
    position: absolute;
    inset: -8px;
    border: 2px solid rgba(130, 71, 229, 0.2);
    border-top-color: #8247E5;
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

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

.loading-content h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading-content p {
    color: #9ca3af;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

/* Dashboard */
.dashboard-header {
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--primary);
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    animation: slideDown 0.6s ease;
}

.dashboard-header h1 {
    font-size: clamp(1rem, 4vw, 1.25rem);
}

.icon-btn {
    background: none;
    border: none;
    color: #9ca3af;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.icon-btn::before {
    content: '';
    position: absolute;
    inset: -5px;
    background: rgba(130, 71, 229, 0.2);
    border-radius: 50%;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s ease;
}

.icon-btn:hover {
    color: #fff;
}

.icon-btn:hover::before {
    opacity: 1;
    transform: scale(1);
}

.notification-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    padding: 0.125rem 0.375rem;
    border-radius: 9999px;
    min-width: 16px;
    text-align: center;
    animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.balance-card {
    background: linear-gradient(135deg, #8247E5 0%, #8247E5 100%);
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 30px rgba(130, 71, 229, 0.3);
    animation: fadeInUp 0.6s ease;
    position: relative;
    overflow: hidden;
}

.balance-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: shimmer 3s linear infinite;
}

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

.balance-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.balance-label {
    font-size: clamp(0.75rem, 3vw, 0.875rem);
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-amount {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.converter-box {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease 0.1s both;
    transition: all 0.3s ease;
}

.converter-box:hover {
    border-color: #8247E5;
    box-shadow: 0 5px 20px rgba(130, 71, 229, 0.2);
}

.converter-box h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
}

.input-group {
    margin-bottom: 1rem;
}

.input-group label {
    display: block;
    color: #9ca3af;
    margin-bottom: 0.5rem;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.input-group input,
.input-group textarea {
    width: 100%;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #4c1d95;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem;
    color: #fff;
    font-family: inherit;
    font-size: clamp(0.875rem, 3vw, 1rem);
    transition: all 0.3s ease;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #8247E5;
    box-shadow: 0 0 0 3px rgba(130, 71, 229, 0.1);
}

.input-group input::placeholder,
.input-group textarea::placeholder {
    color: #6b7280;
}

.token-input {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid #4c1d95;
    border-radius: 0.75rem;
    padding: 1rem;
    transition: all 0.3s ease;
}

.token-input:hover {
    border-color: #8247E5;
}

.token-input.pay {
    background: linear-gradient(135deg, rgba(130, 71, 229, 0.12), rgba(30, 64, 175, 0.12));
    border-color: var(--primary);
}
.token-input.pay:hover {
    border-color: var(--primary-strong);
    box-shadow: var(--shadow);
}
.token-input.pay .token-select,
.token-input.pay input {
    color: #eaf2ff;
}

.token-input span {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.token-input input {
    flex: 1;
    background: none;
    border: none;
    color: #fff;
    text-align: right;
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 600;
    padding: 0;
}

.token-input input:focus {
    outline: none;
    border: none;
}
.token-select {
    background: none;
    border: none;
    color: var(--text);
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 600;
    cursor: pointer;
    outline: none;
    appearance: none;
    padding: 0 0.25rem;
    min-width: 100px;
    line-height: 1.2;
}
.token-select:focus {
    color: var(--text);
}
.token-select option {
    background-color: var(--bg-1);
    color: var(--text);
}
.token-select optgroup {
    background-color: var(--bg-1);
    color: var(--muted);
}
.template-select {
    background: none;
    border: 1px solid var(--border);
    color: #fff;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    padding: 0.35rem 0.5rem;
    border-radius: 999px;
    margin-left: auto;
}
.token-input:focus-within {
    border-color: #8247E5;
    box-shadow: 0 0 0 3px rgba(130, 71, 229, 0.1);
}

.swap-icon {
    display: flex;
    justify-content: center;
    margin: 1rem 0;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.action-btn {
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    color: #fff;
    padding: 1rem 0.5rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    position: relative;
    overflow: hidden;
}

.action-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(130, 71, 229, 0.2), rgba(130, 71, 229, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.action-btn:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow);
}

.action-btn:hover::before {
    opacity: 1;
}

/* Discover Tab */
.search-box {
    position: relative;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.search-box svg {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    transition: color 0.3s ease;
}

.search-box input {
    width: 100%;
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    border-radius: 0.75rem;
    padding: 0.75rem 1rem 0.75rem 3rem;
    color: #fff;
    font-size: clamp(0.875rem, 3vw, 1rem);
    transition: all 0.3s ease;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(130, 71, 229, 0.12);
}

.search-box input:focus + svg {
    color: var(--primary);
}

.search-box input::placeholder {
    color: #6b7280;
}

.filter-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    animation: fadeInUp 0.6s ease 0.1s both;
}

.filter-tab {
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    color: #9ca3af;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    cursor: pointer;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    white-space: nowrap;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.filter-tab::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, #8247E5, #8247E5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.filter-tab.active {
    color: #fff;
    border-color: var(--primary);
}

.filter-tab.active::before {
    opacity: 1;
}

.filter-tab span {
    position: relative;
    z-index: 1;
}

.filter-tab:hover {
    transform: translateY(-2px);
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    padding: 0 1rem;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.table-header span:nth-child(2) {
    text-align: center;
}

.tokens-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding-bottom: 5rem;
}

.token-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 1rem;
    align-items: center;
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    animation: fadeInUp 0.4s ease both;
}

.token-row:nth-child(1) { animation-delay: 0.05s; }
.token-row:nth-child(2) { animation-delay: 0.1s; }
.token-row:nth-child(3) { animation-delay: 0.15s; }
.token-row:nth-child(4) { animation-delay: 0.2s; }
.token-row:nth-child(5) { animation-delay: 0.25s; }

.token-row:hover {
    background: rgba(46, 16, 101, 0.6);
    border-color: var(--primary);
    transform: translateX(5px);
    box-shadow: var(--shadow);
}

.token-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.token-info svg {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.token-row:hover .token-info svg {
    transform: rotate(360deg);
}

.token-name {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.token-symbol {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

.token-price {
    text-align: center;
}

.price {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.change {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 500;
}

.change.up { 
    color: #10b981;
    animation: priceUp 0.5s ease;
}

.change.down { 
    color: #ef4444;
    animation: priceDown 0.5s ease;
}

.change.new { color: #8247E5; }

@keyframes priceUp {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

@keyframes priceDown {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(3px); }
}

.token-trend {
    display: flex;
    justify-content: flex-end;
}

/* Empty State */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem;
    text-align: center;
    color: #9ca3af;
    animation: fadeIn 0.6s ease;
}

.empty-state svg {
    margin-bottom: 1rem;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.empty-state h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 0.5rem;
    color: #cbd5e1;
}

.empty-state p {
    font-size: clamp(0.875rem, 3vw, 1rem);
}

/* Settings */
.settings-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease both;
}

.settings-section:nth-child(1) { animation-delay: 0.1s; }
.settings-section:nth-child(2) { animation-delay: 0.2s; }
.settings-section:nth-child(3) { animation-delay: 0.3s; }

.settings-section h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
    color: #a855f7;
}

.settings-item {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.settings-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(130, 71, 229, 0.1), rgba(130, 71, 229, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.settings-item:hover {
    background: rgba(46, 16, 101, 0.5);
    border-color: #8247E5;
    transform: translateX(5px);
}

.settings-item:hover::before {
    opacity: 1;
}

.settings-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.settings-text {
    flex: 1;
}

.settings-text h4 {
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.settings-text p {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 24px;
}

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

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

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #8247E5, #8247E5);
}

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

/* Transactions */
.transactions-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 5rem;
}

.transaction-item {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.4s ease both;
    transition: all 0.3s ease;
}

.transaction-item:nth-child(1) { animation-delay: 0.05s; }
.transaction-item:nth-child(2) { animation-delay: 0.1s; }
.transaction-item:nth-child(3) { animation-delay: 0.15s; }

.transaction-item:hover {
    background: rgba(46, 16, 101, 0.5);
    transform: translateX(5px);
}

.transaction-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.transaction-icon.sent { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.transaction-icon.received { background: rgba(16, 185, 129, 0.2); color: #10b981; }
.transaction-icon.swap { background: rgba(130, 71, 229, 0.2); color: #8247E5; }

.transaction-info {
    flex: 1;
}

.transaction-type {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.transaction-date {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

.transaction-amount {
    text-align: right;
}

.amount {
    font-weight: 700;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.amount.positive { color: #10b981; }
.amount.negative { color: #ef4444; }

.transaction-status {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

/* Profile */
.profile-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.profile-avatar {
    display: inline-block;
    margin-bottom: 1rem;
    position: relative;
}

.profile-avatar::after {
    content: '';
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    background: linear-gradient(135deg, #8247E5, #8247E5);
    opacity: 0;
    animation: avatarGlow 3s ease-in-out infinite;
    z-index: -1;
}

@keyframes avatarGlow {
    0%, 100% { opacity: 0; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.1); }
}

.profile-header h2 {
    font-size: clamp(1.25rem, 5vw, 1.5rem);
    margin-bottom: 0.5rem;
}

.wallet-address {
    color: #9ca3af;
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-family: monospace;
    margin-bottom: 1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.6s ease both;
    transition: all 0.3s ease;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }

.stat-card:hover {
    transform: translateY(-5px);
    border-color: #8247E5;
    box-shadow: 0 5px 20px rgba(130, 71, 229, 0.2);
}

.stat-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-label {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: clamp(1rem, 4vw, 1.25rem);
    font-weight: 700;
}

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

.profile-section h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
    color: #a855f7;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.activity-item {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    animation: fadeInUp 0.4s ease both;
    transition: all 0.3s ease;
}

.activity-item:nth-child(1) { animation-delay: 0.05s; }
.activity-item:nth-child(2) { animation-delay: 0.1s; }
.activity-item:nth-child(3) { animation-delay: 0.15s; }

.activity-item:hover {
    background: rgba(46, 16, 101, 0.5);
    transform: translateX(5px);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-details {
    flex: 1;
}

.activity-title {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.activity-time {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

.activity-amount {
    font-weight: 700;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.activity-amount.received {
    color: #10b981;
}

/* Help & Support */
.help-section {
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease both;
}

.help-section:nth-child(1) { animation-delay: 0.1s; }
.help-section:nth-child(2) { animation-delay: 0.2s; }
.help-section:nth-child(3) { animation-delay: 0.3s; }

.help-section h3 {
    font-size: clamp(1rem, 4vw, 1.25rem);
    margin-bottom: 1rem;
    color: #a855f7;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.faq-item {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: #8247E5;
}

.faq-question {
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    transition: background 0.3s ease;
}

.faq-question:hover {
    background: rgba(46, 16, 101, 0.5);
}

.faq-question h4 {
    font-size: clamp(0.875rem, 3vw, 1rem);
    font-weight: 600;
}

.faq-question svg {
    transition: transform 0.3s ease;
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 1rem 1rem;
    color: #cbd5e1;
    line-height: 1.6;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.contact-form {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
}

.contact-methods {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-method {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: rgba(46, 16, 101, 0.5);
    border-color: #8247E5;
    transform: translateX(5px);
}

.contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-method h4 {
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.contact-method p {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

/* Notifications */
.notifications-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding-bottom: 5rem;
}

.notification-item {
    background: rgba(46, 16, 101, 0.3);
    border: 1px solid rgba(51, 65, 85, 0.5);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    animation: fadeInUp 0.4s ease both;
    transition: all 0.3s ease;
}

.notification-item:nth-child(1) { animation-delay: 0.05s; }
.notification-item:nth-child(2) { animation-delay: 0.1s; }
.notification-item:nth-child(3) { animation-delay: 0.15s; }

.notification-item.unread {
    background: rgba(130, 71, 229, 0.1);
    border-color: rgba(130, 71, 229, 0.3);
}

.notification-item:hover {
    background: rgba(46, 16, 101, 0.5);
    transform: translateX(5px);
}

.notification-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.notification-content {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 0.25rem;
}

.notification-message {
    color: #cbd5e1;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    line-height: 1.5;
    margin-bottom: 0.5rem;
}

.notification-time {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
}

/* Add Token Form */
.add-token-form {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease;
}

.info-banner {
    background: rgba(130, 71, 229, 0.1);
    border: 1px solid rgba(130, 71, 229, 0.3);
    border-radius: 0.75rem;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    animation: pulse 2s ease-in-out infinite;
}

.info-banner svg {
    flex-shrink: 0;
    color: var(--primary);
}

.info-banner p {
    color: #cbd5e1;
    font-size: clamp(0.875rem, 3vw, 1rem);
    line-height: 1.5;
}

/* Token Details */
.token-details-header {
    text-align: center;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease;
}

.token-details-header svg {
    margin-bottom: 1rem;
    animation: logoFloat 3s ease-in-out infinite;
}

.token-details-header h2 {
    font-size: clamp(1.5rem, 5vw, 2rem);
    margin-bottom: 0.25rem;
}

.token-details-header p {
    color: #9ca3af;
    font-size: clamp(0.875rem, 3vw, 1rem);
    margin-bottom: 1rem;
}

.token-details-header h1 {
    font-size: clamp(2rem, 6vw, 3rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #a855f7, #c084fc);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.token-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.action-btn-large {
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    color: #fff;
    padding: 1.25rem 0.75rem;
    border-radius: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.875rem, 3vw, 1rem);
    animation: fadeInUp 0.4s ease both;
}

.action-btn-large:nth-child(1) { animation-delay: 0.1s; }
.action-btn-large:nth-child(2) { animation-delay: 0.2s; }
.action-btn-large:nth-child(3) { animation-delay: 0.3s; }

.action-btn-large:hover {
    background: rgba(46, 16, 101, 0.8);
    border-color: #8247E5;
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(130, 71, 229, 0.3);
}

.token-stats {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s ease 0.2s both;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--primary);
    transition: all 0.3s ease;
}

.stat-row:hover {
    padding-left: 0.5rem;
    background: rgba(130, 71, 229, 0.05);
}

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

.stat-row span:first-child {
    color: #9ca3af;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.stat-row span:last-child {
    font-weight: 600;
    font-size: clamp(0.875rem, 3vw, 1rem);
}

.chart-placeholder {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1.5rem;
    animation: fadeInUp 0.6s ease 0.3s both;
}

.chart-placeholder svg {
    animation: chartDraw 2s ease-in-out;
}

@keyframes chartDraw {
    from { stroke-dasharray: 1000; stroke-dashoffset: 1000; }
    to { stroke-dasharray: 1000; stroke-dashoffset: 0; }
}

/* Bottom Navigation */
/* Grid */
.grid-container {
    padding-top: 1rem;
}
.grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
@media (max-width: 420px) {
    .grid-layout { grid-template-columns: 1fr; }
}
.grid-card {
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    border-radius: 1rem;
    padding: 1rem;
    transition: all 0.3s ease;
}
.grid-card:hover {
    transform: translateY(-3px);
    border-color: #8247E5;
    box-shadow: 0 5px 20px rgba(130, 71, 229, 0.2);
}
.grid-card-title {
    font-weight: 700;
    font-size: clamp(0.9rem, 3vw, 1rem);
    margin-bottom: 0.75rem;
    color: #93c5fd;
}
.grid-card-content .mini-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: clamp(0.8rem, 3vw, 0.9rem);
}
.balance-hero {
    display: grid;
    gap: 0.25rem;
}
.balance-amount-lg {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
    font-weight: 800;
}
.balance-caption {
    color: #9ca3af;
    font-size: clamp(0.75rem, 2.5vw, 0.85rem);
}
.action-chip {
    background: rgba(46, 16, 101, 0.5);
    border: 1px solid #4c1d95;
    color: #fff;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.75rem;
    margin-right: 0.5rem;
}
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border-top: 1px solid #4c1d95;
    padding: 0.75rem;
    display: flex;
    justify-content: space-around;
    z-index: 20;
    animation: slideUp 0.6s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.nav-btn {
    background: none;
    border: none;
    color: #9ca3af;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    cursor: pointer;
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
    position: relative;
}

.nav-btn::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(135deg, #8247E5, #8247E5);
    transition: width 0.3s ease;
}

.nav-btn.active {
    color: #8247E5;
}

.nav-btn.active::before {
    width: 80%;
}

.nav-btn:hover {
    transform: translateY(-2px);
}

.nav-btn span {
    font-size: clamp(0.75rem, 2.5vw, 0.875rem);
    font-weight: 500;
}

/* Responsive adjustments */
@media (max-width: 374px) {
    html { font-size: 14px; }
}

@media (min-width: 375px) and (max-width: 413px) {
    html { font-size: 15px; }
}

@media (min-width: 414px) {
    html { font-size: 16px; }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(46, 16, 101, 0.5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #8247E5, #8247E5);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #7c3aed, #7c3aed);
}

/* Glassmorphism Effects */
.glass-effect {
    background: rgba(46, 16, 101, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Smooth Transitions */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
:root {
    --bg-1: #0b001a;
    --bg-2: #1a0b2e;
    --primary: #8247E5;
    --primary-strong: #7c3aed;
    --surface: rgba(20, 10, 30, 0.65);
    --border: #2d1b4e;
    --text: #e5e7eb;
    --muted: #9ca3af;
    --radius: 16px;
    --shadow: 0 10px 30px rgba(130, 71, 229, 0.18);
}
body {
    background:
      radial-gradient(1200px 600px at 20% 20%, rgba(130, 71, 229,0.12), transparent 60%),
      radial-gradient(900px 600px at 80% 80%, rgba(88, 28, 135,0.12), transparent 60%),
      linear-gradient(135deg, var(--bg-1) 0%, var(--bg-2) 100%) !important;
    color: var(--text);
}
.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-strong) 100%) !important;
    border-radius: var(--radius) !important;
    box-shadow: var(--shadow) !important;
}
.tab::before,
.filter-tab::before,
.action-btn::before,
.profile-avatar::after,
.nav-btn::before,
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary), var(--primary-strong)) !important;
}
.converter-box,
.token-input,
.search-box input,
.settings-item,
.activity-item,
.faq-item,
.stat-card,
.chart-placeholder,
.balance-card {
    background: var(--surface) !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius) !important;
}
.converter-box:hover,
.token-input:hover,
.search-box input:focus,
.filter-tab.active,
.token-row:hover,
.settings-item:hover,
.faq-item:hover,
.action-btn:hover,
.action-btn-large:hover,
.stat-card:hover,
.nav-btn.active {
    border-color: var(--primary) !important;
    box-shadow: var(--shadow) !important;
}
.tab-content textarea:focus,
.input-group input:focus,
.input-group textarea:focus,
.search-box input:focus {
    box-shadow: 0 0 0 3px rgba(130, 71, 229, 0.15) !important;
}
.icon-btn::before,
.action-btn:hover::before {
    background: rgba(130, 71, 229, 0.2) !important;
}
.notification-item.unread,
.info-banner {
    background: rgba(130, 71, 229, 0.1) !important;
    border-color: rgba(130, 71, 229, 0.3) !important;
}
.info-banner svg,
.search-box input:focus + svg,
.change.new,
.nav-btn.active {
    color: var(--primary) !important;
}
.stat-row:hover { background: rgba(130, 71, 229, 0.05) !important; }
.logo-section h1,
.token-details-header h1 { color: #ffffff !important; }
.logo-circle { background: transparent !important; }
/* Onboarding */
.onboard {
    display: grid;
    gap: 1.25rem;
    justify-items: center;
    text-align: center;
    padding-top: 3rem;
}
.onboard-hero h1 {
    font-size: clamp(1.25rem, 5vw, 1.75rem);
    font-weight: 800;
}
.onboard-hero p {
    color: var(--muted);
    max-width: 42ch;
}
.onboard-actions {
    display: flex;
    gap: 0.75rem;
}
.onboard-dots {
    display: flex;
    gap: 0.5rem;
}
.onboard-dots .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(148, 163, 184, 0.6);
}
.onboard-dots .dot.active {
    background: var(--primary);
}



