/* Token Creator Web - Main Styles */

:root {
    --primary: #667eea;
    --primary-dark: #5a67d8;
    --secondary: #48bb78;
    --background: #0f0f23;
    --surface: #1a1a35;
    --surface-light: #2d2d4a;
    --text-primary: #ffffff;
    --text-secondary: #a0a0b8;
    --border: #3a3a5c;
    --success: #48bb78;
    --error: #f56565;
    --warning: #ed8936;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-success: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
}

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

body {
    font-family: 'Inter', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

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

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
}

/* Header */
.header {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background: rgba(26, 26, 53, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    gap: 1rem;
}

.menu-toggle {
    background: none;
    border: none;
    color: var(--text-primary);
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: background 0.3s;
}

.menu-toggle:hover {
    background: var(--surface-light);
}

.logo {
    display: flex;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    flex: 1;
    justify-content: center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.connect-text {
    display: inline;
}

@media (max-width: 480px) {
    .connect-text {
        display: none;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    /* Even smaller screens */
    .header-content {
        padding: 0.5rem 0;
    }
    
    .btn-primary {
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }
}

/* Side Menu */
.side-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    height: 100dvh; /* Dynamic viewport height for better mobile support */
    background: var(--surface);
    z-index: 1001;
    transition: left 0.3s ease;
    overflow-y: auto;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scrollbar-width: thin; /* Firefox */
    scrollbar-color: var(--border) transparent; /* Firefox */
}

/* Custom scrollbar for webkit browsers */
.side-menu::-webkit-scrollbar {
    width: 6px;
}

.side-menu::-webkit-scrollbar-track {
    background: transparent;
}

.side-menu::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.side-menu::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.side-menu.open {
    left: 0;
    box-shadow: 2px 0 20px rgba(0, 0, 0, 0.5);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    z-index: 1000;
}

.menu-overlay.show {
    display: block;
}

.side-menu-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    border-bottom: 1px solid var(--border);
    background: var(--surface-light);
    flex-shrink: 0; /* Prevent header from shrinking */
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo-small {
    display: flex;
    align-items: center;
    font-weight: 700;
    flex: 1;
    font-size: 1.125rem;
}

.close-menu {
    background: none;
    border: none;
    color: var(--text-secondary);
    padding: 0.5rem;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-menu:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

/* Side Menu User Section */
.side-menu-user {
    padding: 1.5rem 1rem;
    border-bottom: 1px solid var(--border);
}

.user-profile {
    margin-bottom: 1rem;
}

.user-details {
    overflow: hidden;
}

.user-details .user-email {
    font-size: 0.875rem;
    color: var(--text-secondary);
    display: block;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}

.user-balance-card {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.user-balance-card:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 12px rgba(72, 187, 120, 0.3);
}

.balance-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.balance-value {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
}

.balance-value i {
    font-size: 1.25rem;
    opacity: 0.9;
}

/* Side Navigation */
.side-nav {
    flex: 0 1 auto; /* Changed from flex: 1 to allow proper sizing */
    padding: 1rem 0;
    min-height: min-content;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.875rem 1.5rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.3s;
    position: relative;
    font-weight: 500;
}

.nav-item:hover {
    background: var(--surface-light);
    color: var(--text-primary);
}

.nav-item.active {
    color: var(--primary);
    background: rgba(102, 126, 234, 0.1);
}

.nav-item.active::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--primary);
}

.nav-item i {
    font-size: 1.25rem;
}

/* Side Menu Footer */
.side-menu-footer {
    padding: 1rem;
    border-top: 1px solid var(--border);
    margin-top: auto;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.sign-out-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: var(--surface-light);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.875rem;
    font-weight: 500;
}

.sign-out-btn:hover {
    background: var(--error);
    color: white;
    border-color: var(--error);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.875rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
}

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

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.btn-secondary {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--border);
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1rem;
}

/* Hero Section */
.hero-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--surface) 0%, var(--background) 100%);
    text-align: center;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Marketplace Section */
.marketplace-section {
    padding: 4rem 0;
}

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

.section-title {
    font-size: 2rem;
    margin-bottom: 2rem;
}

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

.search-box {
    position: relative;
    max-width: 400px;
}

.search-box i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.search-box input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.filter-chips {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.chip {
    padding: 0.5rem 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.chip:hover,
.chip.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Token Grid */
.token-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem;
}

/* Responsive grid for different screen sizes */
@media (min-width: 1400px) {
    .token-grid {
        grid-template-columns: repeat(4, minmax(280px, 320px));
        justify-content: center;
    }
}

@media (min-width: 1000px) and (max-width: 1399px) {
    .token-grid {
        grid-template-columns: repeat(3, minmax(280px, 350px));
        justify-content: center;
    }
}

@media (min-width: 700px) and (max-width: 999px) {
    .token-grid {
        grid-template-columns: repeat(2, minmax(280px, 400px));
        justify-content: center;
    }
}

@media (max-width: 699px) {
    .token-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
}

.token-card {
    background: var(--surface);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    position: relative;
    border: 1px solid var(--border);
}

.token-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

.promoted-star {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: gold;
    font-size: 1.25rem;
}

.token-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: bold;
}

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

.token-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.token-symbol {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.token-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.token-change {
    font-size: 0.875rem;
    font-weight: 600;
}

.token-change.positive {
    color: var(--success);
}

.token-change.negative {
    color: var(--error);
}

.token-stats {
    display: flex;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    font-size: 0.75rem;
    color: var(--text-secondary);
}



/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 2rem;
}

.modal-content {
    background: var(--surface);
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-large {
    max-width: 900px;
}

/* How It Works Modal Styles */
.how-it-works-content {
    max-height: 70vh;
    overflow-y: auto;
    padding: 1rem 0;
}

.info-section {
    background: var(--background);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.info-section h3 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.info-section p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.info-section ul {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0;
}

.info-section ul li {
    padding: 0.5rem 0;
    color: var(--text-primary);
    position: relative;
    padding-left: 1.5rem;
}

.info-section ul li:before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--primary);
}

.token-type {
    background: var(--surface-light);
    border-radius: 8px;
    padding: 1rem;
    margin: 0.75rem 0;
}

.token-type strong {
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.token-type p {
    font-size: 0.875rem;
    margin: 0;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
}

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

/* Form */
.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.form-group input::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Auth Modal Specific Styles */
#authModal .modal-content {
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

#authModal input[type="email"],
#authModal input[type="password"] {
    background: var(--background);
    transition: all 0.3s;
}

#authModal input[type="email"]:focus,
#authModal input[type="password"]:focus {
    background: var(--surface-light);
}

/* Google Sign In Button */
.btn-google {
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.btn-google::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s;
}

.btn-google:hover::before {
    left: 100%;
}

.liquidity-options,
.lock-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 0.5rem;
}

.liquidity-btn,
.lock-btn {
    padding: 0.75rem;
    background: var(--background);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s;
}

.liquidity-btn:hover,
.lock-btn:hover,
.liquidity-btn.active,
.lock-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}



/* Loading */
.loading-spinner {
    text-align: center;
    padding: 4rem;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

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

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.show {
    display: flex;
}

/* Transaction Styles */
.transaction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    transition: all 0.3s;
}

.transaction-item:hover {
    transform: translateX(4px);
    background: var(--surface-light);
}

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

.tx-icon.positive {
    background: rgba(72, 187, 120, 0.1);
    color: var(--success);
}

.tx-icon.negative {
    background: rgba(245, 101, 101, 0.1);
    color: var(--error);
}

.tx-details {
    flex: 1;
}

.tx-description {
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.tx-time {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.tx-amount {
    font-weight: 600;
    text-align: right;
}

.tx-amount.positive {
    color: var(--success);
}

.tx-amount.negative {
    color: var(--error);
}

/* Toast */
.toast {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--surface);
    color: var(--text-primary);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: all 0.3s;
    z-index: 10000;
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.toast.success {
    background: var(--success);
}

.toast.error {
    background: var(--error);
}

.toast.warning {
    background: var(--warning);
}

/* Promotion Modal Styles */
.promotion-token-info {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: var(--background);
    border-radius: 12px;
    margin-bottom: 1.5rem;
}

.promotion-token-info .token-icon {
    width: 60px;
    height: 60px;
    margin: 0;
}

.promotion-token-info .token-details h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.promotion-token-info .token-details p {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.promotion-description {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-align: center;
}

.promotion-options {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.promotion-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem;
    background: var(--background);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
}

.promotion-option:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.2);
}

.promotion-duration {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.promotion-duration i {
    color: var(--primary);
    font-size: 1.5rem;
}

.promotion-duration span {
    font-size: 1.125rem;
    font-weight: 600;
}

.promotion-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.user-balance-info {
    display: flex;
    justify-content: space-between;
    padding: 1rem;
    background: var(--background);
    border-radius: 8px;
    margin-bottom: 1rem;
}

.user-balance-info span:first-child {
    color: var(--text-secondary);
}

.user-balance-info span:last-child {
    font-weight: 600;
    color: var(--success);
}

/* My Tokens Section Styles */
.my-tokens-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.my-token-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.my-token-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.2);
    border-color: var(--primary);
}

.my-token-card .token-icon {
    width: 60px;
    height: 60px;
    margin: 0;
    flex-shrink: 0;
}

.my-token-card .token-info {
    flex: 1;
}

.my-token-card .token-name {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.my-token-card .token-symbol {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.my-token-card .token-price {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.my-token-card .token-stats {
    display: flex;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--text-secondary);
    border: none;
    padding: 0;
    margin: 0;
}

.my-token-card .token-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-promote,
.btn-share {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.75rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-promote {
    background: linear-gradient(135deg, #f59e0b 0%, #eab308 100%);
    color: white;
}

.btn-promote:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 10px rgba(245, 158, 11, 0.3);
}

.btn-share {
    background: var(--surface-light);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-share:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.btn-promote i,
.btn-share i {
    font-size: 1rem;
}

/* Add Funds Modal Styles */
.add-funds-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1rem;
}

.fund-option {
    padding: 1.5rem;
    background: var(--surface-light);
    border: 2px solid var(--border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    color: white;
}

.fund-option:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.3);
}

.fund-amount {
    font-size: 1.5rem;
    font-weight: 700;
    display: block;
    text-align: center;
}

@media (max-width: 480px) {
    .add-funds-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 4rem;
    color: var(--border);
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0.5rem 0;
}

.empty-state .text-secondary {
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Login Prompt */
.login-prompt {
    text-align: center;
    padding: 3rem;
    background: var(--surface);
    border-radius: 12px;
    margin: 2rem;
}

.login-prompt i {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.login-prompt p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* Portfolio Styles */
.portfolio-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 12px;
    margin: 1rem;
}

.portfolio-stat {
    text-align: center;
    padding: 1rem;
}

.portfolio-stat .stat-label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.portfolio-stat .stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.holdings-list {
    padding: 1rem;
}

.holding-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 8px;
    margin-bottom: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
}

.holding-card:hover {
    transform: translateX(4px);
    background: var(--surface-light);
}

.holding-icon {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: bold;
    color: white;
}

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

.holding-info {
    flex: 1;
}

.holding-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.holding-amount {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.holding-value {
    text-align: right;
}

.holding-price {
    font-weight: 600;
    color: var(--success);
}

/* Activity Styles */
.transactions-list {
    padding: 1rem;
}

/* Footer */
.footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 3rem 0 1rem;
    margin-top: 6rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--text-secondary);
    font-size: 0.875rem;
}

/* Responsive - Mobile Specific Fixes */
@media (max-width: 768px) {
    /* Side menu adjustments for mobile */
    .side-menu {
        width: 280px;
        left: -280px;
        max-height: 100vh;
        max-height: 100dvh; /* Dynamic viewport height for mobile browsers */
    }
    
    .side-menu.open {
        left: 0;
    }
    
    /* Ensure proper spacing in navigation */
    .nav-item {
        padding: 1rem 1.25rem;
        min-height: 48px;
        display: flex;
        align-items: center;
        gap: 1rem;
        border-bottom: 1px solid rgba(58, 58, 92, 0.3);
        flex-shrink: 0; /* Prevent nav items from shrinking */
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item span {
        font-size: 0.95rem;
    }
    
    .nav-item i {
        font-size: 1.25rem;
        width: 24px;
        text-align: center;
        flex-shrink: 0;
    }
    
    /* Fix user section on mobile */
    .side-menu-user {
        padding: 1.25rem 1rem;
        flex-shrink: 0; /* Prevent user section from shrinking */
    }
    
    .user-profile {
        margin-bottom: 1rem;
    }
    
    .user-balance-card {
        padding: 0.875rem;
    }
    
    .balance-value {
        font-size: 1.125rem;
    }
    
    /* Ensure header logo is visible */
    .logo-small {
        font-size: 1rem;
    }
    
    /* Sign out button mobile */
    .sign-out-btn {
        padding: 0.75rem;
        font-size: 0.875rem;
    }
    
    /* Download app section mobile fix */
    .download-app-menu {
        flex-shrink: 0; /* Prevent download section from shrinking */
        margin-top: 1rem !important; /* Override inline style */
        padding: 1rem !important;
    }
    
    /* Ensure menu footer is visible */
    .side-menu-footer {
        flex-shrink: 0;
        margin-top: 1rem;
    }
    
    /* Main header adjustments */
    .header-content {
        padding: 0.625rem 0;
    }
    
    .logo-text {
        font-size: 0.95rem;
    }
    
    /* Hero section mobile */
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Token grid mobile */
    .token-grid {
        grid-template-columns: 1fr;
    }
    
    /* Modal mobile */
    .modal-content {
        padding: 1.5rem;
        margin: 1rem;
        max-height: 85vh;
    }
    
    /* Add funds grid mobile */
    .add-funds-options {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Download App Section Styles */
.download-app-menu {
    flex-shrink: 0;
    padding: 1rem;
    margin-top: auto;
    background: var(--surface);
    border-top: 1px solid var(--border);
}

.download-app-menu h4 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: 8px;
    color: white;
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s;
}

.android-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.ios-btn {
    background: linear-gradient(135deg, #000000 0%, #333333 100%);
}

.download-btn:hover {
    opacity: 0.9;
    transform: translateX(4px);
}

.download-btn i {
    font-size: 1.25rem;
}

.download-btn span {
    font-weight: 500;
    font-size: 0.875rem;
}

/* Very small mobile screens */
@media (max-width: 360px) {
    .side-menu {
        width: 260px;
        left: -260px;
    }
    
    .nav-item {
        padding: 0.875rem 1rem;
    }
    
    .download-app-menu {
        padding: 0.875rem;
    }
    
    .download-btn {
        padding: 0.625rem;
        font-size: 0.8rem;
    }
}

/* Smaller mobile devices */
@media (max-width: 480px) {
    .connect-text {
        display: none;
    }
    
    .add-funds-options {
        grid-template-columns: repeat(2, 1fr);
    }
}
        padding: 0.5rem 0;
        gap: 0.5rem;
    }
    
    /* Style hamburger menu for mobile with three lines */
    .menu-toggle {
        width: 35px;
        height: 35px;
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 4px;
        background: transparent;
        border: none;
        order: 1;
        position: relative;
    }
    
    /* Hide material icon on mobile */
    .menu-toggle i {
        display: none;
    }
    
    /* Create three lines for hamburger menu */
    .menu-toggle::before {
        content: '';
        position: absolute;
        width: 22px;
        height: 2.5px;
        background: var(--text-primary);
        border-radius: 2px;
        top: 10px;
        transition: all 0.3s;
    }
    
    .menu-toggle span {
        display: block;
        width: 22px;
        height: 2.5px;
        background: var(--text-primary);
        border-radius: 2px;
        transition: all 0.3s;
    }
    
    .menu-toggle::after {
        content: '';
        position: absolute;
        width: 22px;
        height: 2.5px;
        background: var(--text-primary);
        border-radius: 2px;
        bottom: 10px;
        transition: all 0.3s;
    }
    
    /* Animate hamburger when menu is open */
    body.menu-open .menu-toggle::before {
        transform: rotate(45deg);
        top: 16px;
    }
    
    body.menu-open .menu-toggle span {
        opacity: 0;
    }
    
    body.menu-open .menu-toggle::after {
        transform: rotate(-45deg);
        bottom: 16px;
    }
    
    /* Logo styling for mobile */
    .logo {
        order: 2;
        flex: 1;
        justify-content: flex-start;
        margin-left: 0.5rem;
        font-size: 1rem;
    }
    
    /* Connect button on mobile */
    .header-actions {
        order: 3;
    }
    
    /* Side menu fixes for mobile */
    .side-menu {
        width: 280px;
        left: -280px;
    }
    
    .side-menu-header {
        padding: 1rem;
        background: var(--surface-light);
    }
    
    /* Fix navigation items spacing */
    .nav-item {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    }
    
    .nav-item:last-child {
        border-bottom: none;
    }
    
    .nav-item i {
        font-size: 1.1rem;
        min-width: 24px;
    }
    
    .nav-item span {
        font-size: 0.9rem;
    }
    
    /* User profile section on mobile */
    .side-menu-user {
        padding: 1rem;
    }
    
    .user-profile {
        margin-bottom: 0.75rem;
    }
    
    .user-avatar-large {
        width: 40px;
        height: 40px;
    }
    
    .user-balance-card {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .balance-value {
        font-size: 1.1rem;
    }
    
    /* Hero section mobile */
    .hero-section {
        padding: 3rem 0;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 0.75rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        width: 100%;
        max-width: 300px;
        margin: 0 auto 2rem;
    }
    
    .hero-actions .btn-large {
        width: 100%;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Token grid mobile */
    .token-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Modal on mobile */
    .modal {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.5rem;
        max-height: 85vh;
    }
    
    /* Marketplace section mobile */
    .marketplace-section {
        padding: 2rem 0;
    }
    
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    /* Search and filters mobile */
    .filters {
        gap: 0.75rem;
    }
    
    .search-box {
        max-width: 100%;
    }
    
    .filter-chips {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 0.5rem;
    }
    
    .chip {
        flex-shrink: 0;
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }
}
