     :root {
            --primary-color: #9945FF;
            --primary-hover: #8134e2;
            --primary-light: rgba(153, 69, 255, 0.15);
            --primary-dark: #6f23d0;
            --secondary-color: #14F195;
            --secondary-hover: #0cd985;
            --secondary-light: rgba(20, 241, 149, 0.15);
            --dark-bg: #121212;
            --darker-bg: #0a0a0a;
            --card-bg: #1e1e1e;
            --card-header: #272727;
            --card-header-gradient: linear-gradient(135deg, #272727 0%, #1a1a1a 100%);
            --text-color: #e6e6e6;
            --text-muted: #aaaaaa;
            --border-color: #383838;
            --input-bg: #2d2d2d;
            --success-color: #14F195;
            --warning-color: #FFD166;
            --danger-color: #FF6B6B;
            --info-color: #00C2FF;
            --panel-radius: 16px;
            --button-radius: 12px;
            --bottom-nav-height: 65px;
        }
        
        * {
            box-sizing: border-box;
            -webkit-tap-highlight-color: transparent;
        }
        
        body {
            background-color: var(--dark-bg);
            color: var(--text-color);
            font-family: 'Outfit', 'Segoe UI', sans-serif;
            transition: all 0.3s ease;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            line-height: 1.6;
            margin: 0;
            padding: 0;
            padding-bottom: var(--bottom-nav-height);
            overflow-x: hidden;
        }
        
        .app-container {
            max-width: 480px;
            margin: 0 auto;
            padding: 1rem 1rem 2rem;
            width: 100%;
        }
        
        /* Header and Navigation */
        .wallet-header {
            text-align: center;
            padding: 0px 0 0 0;
            margin-bottom: 1rem;
            position: relative;
        }
        
        .wallet-logo {
            font-size: 1.75rem;
            margin-bottom: 0.25rem;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            font-weight: 800;
            letter-spacing: -0.03em;
        }
        
        .wallet-tagline {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
        }
        
        /* Network Selector */
        .network-selector {
            display: inline-flex;
            align-items: center;
            background-color: var(--card-bg);
            border-radius: 20px;
            padding: 0.25rem 0.5rem;
            margin: 0 auto;
            border: 1px solid var(--border-color);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        }
        
        .network-selector select {
            background-color: transparent;
            border: none;
            color: var(--text-color);
            padding: 0.25rem 0.5rem;
            font-size: 0.85rem;
            cursor: pointer;
            appearance: none;
            -webkit-appearance: none;
            outline: none !important;
            box-shadow: none !important;
            width: auto;
        }
        
        .network-badge {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-size: 0.75rem;
            font-weight: 600;
            border-radius: 10px;
            padding: 0.1rem 0.5rem;
            margin-left: 0.5rem;
        }
        
        .network-badge.mainnet {
            background-color: rgba(20, 241, 149, 0.15);
            color: var(--secondary-color);
        }
        
        .network-badge.devnet {
            background-color: rgba(255, 209, 102, 0.15);
            color: var(--warning-color);
        }
        
        .network-badge.testnet {
            background-color: rgba(0, 194, 255, 0.15);
            color: var(--info-color);
        }
        
        /* Public Key Display */
        .public-key-card {
            background-color: var(--card-bg);
            border-radius: var(--panel-radius);
            padding: 1.25rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            position: relative;
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .key-title {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 0.85rem;
            margin-bottom: 0.75rem;
            color: var(--text-muted);
        }
        
        .address-row {
            position: relative;
        }
        
        .address-display {
            background-color: rgba(0,0,0,0.2);
            border-radius: 12px;
            padding: 12px;
            font-family: monospace;
            font-size: 0.825rem;
            word-break: break-all;
            position: relative;
            border: 1px solid var(--border-color);
            line-height: 1.5;
            margin-bottom: 0.75rem;
            text-align: center;
        }
        
        .wallet-action-btns {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-top: 0.75rem;
        }
        
        .wallet-action-btns .btn {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            font-size: 0.7rem;
            width: 25%;
            padding: 0.6rem 0.5rem;
            border-radius: 12px;
            white-space: nowrap;
            line-height: 1.2;
            color: var(--text-color);
            background-color: var(--card-header);
            border: 1px solid rgba(255, 255, 255, 0.1);
            transition: all 0.2s ease;
        }
        
        .wallet-action-btns .btn:hover,
        .wallet-action-btns .btn:focus {
            background-color: rgba(255, 255, 255, 0.1);
            color: var(--text-color);
        }
        
        .wallet-action-btns .btn i {
            font-size: 1.1rem;
            margin-bottom: 0.15rem;
        }
        
        /* Balance Card */
        .balance-card {
            background: linear-gradient(135deg, #2a1c44 0%, #1e1e1e 100%);
            border-radius: var(--panel-radius);
            padding: 1.5rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
            position: relative;
            overflow: hidden;
        }
        
        .balance-card::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 3px;
            background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
        }
        
        .balance-label {
            font-size: 0.85rem;
            color: var(--text-muted);
            margin-bottom: 0.5rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .balance-amount {
            display: flex;
            flex-direction: column;
            align-items: center;
            margin-bottom: 1.25rem;
        }
        
        #balance {
            font-size: 2.5rem;
            font-weight: 700;
            color: var(--text-color);
            letter-spacing: -0.02em;
            margin-right: 0.25rem;
        }
        
        .balance-symbol {
            font-size: 1rem;
            font-weight: 600;
            color: var(--secondary-color);
        }
        
        .balance-fiat {
            font-size: 2rem;
            color: var(--text-muted);
            margin-top: 0.25rem;
        }
        
        .balance-actions {
            display: flex;
            gap: 0.75rem;
            margin-top: 0.5rem;
        }
        
        .balance-actions .btn {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 6px;
            height: 64px;
            border-radius: var(--button-radius);
            font-size: 0.8rem;
            font-weight: 500;
            padding: 0.75rem;
            transition: all 0.2s ease;
        }
        
        .balance-actions .btn i {
            font-size: 1.2rem;
            margin-bottom: 0.25rem;
        }
        
        .balance-actions .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
        }
        
        .balance-actions .btn-primary:hover, 
        .balance-actions .btn-primary:focus {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
        }
        
        .balance-actions .btn-secondary {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            color: #000;
        }
        
        .balance-actions .btn-secondary:hover,
        .balance-actions .btn-secondary:focus {
            background-color: var(--secondary-hover);
            border-color: var(--secondary-hover);
            color: #000;
        }
        
        .balance-actions .btn-outline {
            background-color: rgba(255, 255, 255, 0.05);
            border: 1px solid rgba(255, 255, 255, 0.1);
            color: var(--text-color);
        }
        
        .balance-actions .btn-outline:hover,
        .balance-actions .btn-outline:focus {
            background-color: rgba(255, 255, 255, 0.1);
        }
        
        /* Actions Section */
        .actions-section {
            margin-bottom: 1rem;
        }
        
        .actions-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.75rem;
        }
        
        .action-item {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--button-radius);
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            padding: 0.75rem;
            text-align: center;
            gap: 8px;
            height: 80px;
            transition: all 0.2s ease;
        }
        
        .action-item:hover, 
        .action-item:focus {
            background-color: rgba(255, 255, 255, 0.05);
            text-decoration: none;
            color: var(--text-color);
        }
        
        .action-icon {
            font-size: 1.25rem;
            color: var(--primary-color);
            margin-bottom: 0.25rem;
        }
        
        .action-name {
            font-size: 0.8rem;
            color: var(--text-color);
            font-weight: 500;
        }
        
        /* Bottom Navigation */
        .bottom-nav {
            background-color: var(--card-bg);
            position: fixed;
            bottom: 0;
            left: 0;
            right: 0;
            height: var(--bottom-nav-height);
            display: flex;
            justify-content: space-around;
            align-items: center;
            border-top: 1px solid var(--border-color);
            z-index: 1000;
			text-decoration:none;
        }
        
        .nav-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 0.7rem;
            gap: 4px;
            width: 25%;
            padding: 0.5rem 0;
            transition: all 0.2s ease;
			text-decoration:none;
        }
        
        .nav-item.active {
            color: var(--primary-color);
        }
        
        .nav-icon {
            font-size: 1.25rem;
            margin-bottom: 2px;
        }
        
        /* Wallet Status */
        .wallet-status-card {
            background-color: var(--card-bg);
            border-radius: var(--panel-radius);
            padding: 1.25rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .wallet-status {
            display: flex;
            flex-wrap: wrap;
            align-items: center;
            gap: 0.75rem;
            margin-bottom: 1.25rem;
        }
        
        .status-label {
            color: var(--text-muted);
            font-weight: 500;
        }
        
        .badge {
            padding: 0.5em 0.85em;
            border-radius: 6px;
            font-weight: 500;
            font-size: 0.85rem;
            display: flex;
            align-items: center;
            gap: 6px;
        }
        
        .badge-success {
            background-color: var(--secondary-light);
            color: var(--secondary-color);
        }
        
        .badge-warning {
            background-color: rgba(255, 209, 102, 0.15);
            color: var(--warning-color);
        }
        
        /* Setup Section */
        .setup-card {
            background-color: var(--card-bg);
            border-radius: var(--panel-radius);
            padding: 1.5rem;
            margin-bottom: 1rem;
            border: 1px solid var(--border-color);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
        }
        
        .setup-title {
            font-size: 1.25rem;
            font-weight: 600;
            margin-bottom: 1rem;
            display: flex;
            align-items: center;
            gap: 8px;
        }
        
        .setup-desc {
            color: var(--text-muted);
            margin-bottom: 1.5rem;
            font-size: 0.9rem;
        }
        
        /* Cards and UI Elements */
        .card {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--panel-radius);
            box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
            margin-bottom: 1rem;
            transition: all 0.3s ease;
            overflow: hidden;
        }
        
        .card-header {
            background: var(--card-header-gradient);
            color: white;
            font-weight: 600;
            padding: 1rem 1.25rem;
            border-bottom: 1px solid var(--border-color);
            display: flex;
            align-items: center;
        }
        
        .card-header i, .card-header .fa {
            margin-right: 10px;
            font-size: 1.1rem;
        }
        
        .card-body {
            padding: 1.25rem;
        }
        
        .form-control, .form-select {
            background-color: var(--input-bg);
            border: 1px solid var(--border-color);
            color: var(--text-color);
            border-radius: 12px;
            padding: 0.65rem 1rem;
            transition: all 0.3s ease;
            font-size: 1rem;
        }
        
        .form-control:focus, .form-select:focus {
            background-color: var(--input-bg);
            border-color: var(--primary-color);
            color: white;
            box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.25);
        }
        
        .form-label {
            font-weight: 500;
            margin-bottom: 0.5rem;
            color: #c8c8c8;
        }
        
        .btn {
            font-weight: 500;
            padding: 0.65rem 1.25rem;
            border-radius: var(--button-radius);
            transition: all 0.2s ease;
            letter-spacing: 0.01em;
        }
        
        .btn-primary {
            background-color: var(--primary-color);
            border-color: var(--primary-color);
            color: white;
        }
        
        .btn-primary:hover, .btn-primary:focus {
            background-color: var(--primary-hover);
            border-color: var(--primary-hover);
        }
        
        .btn-success {
            background-color: var(--secondary-color);
            border-color: var(--secondary-color);
            color: #000;
        }
        
        .btn-success:hover {
            background-color: var(--secondary-hover);
            border-color: var(--secondary-hover);
            color: #000;
        }
        
        .btn-info {
            background-color: var(--info-color);
            border-color: var(--info-color);
            color: white;
        }
        
        .btn-info:hover {
            background-color: #00b0e6;
            border-color: #00b0e6;
        }
        
        .btn-danger {
            background-color: var(--danger-color);
            border-color: var(--danger-color);
        }
        
        .btn-danger:hover {
            background-color: #ff5252;
            border-color: #ff5252;
        }
        
        .btn-outline-secondary {
            color: #aaa;
            border-color: #444;
        }
        
        .btn-outline-secondary:hover {
            background-color: #333;
            border-color: #555;
            color: white;
        }
        
        .btn-sm {
            padding: 0.4rem 0.8rem;
            font-size: 0.875rem;
        }
        
        .hidden {
            display: none !important;
        }
        
        /* QR Code */
        .qrcode-container {
            margin-top: 1rem;
            padding: 1rem;
            background-color: white;
            border-radius: var(--button-radius);
            width: fit-content;
            margin: 0 auto;
        }
        
        /* Send Form */
        .send-form {
            padding: 0 1rem;
        }
        
        /* Loaders */
        #loader {
            border: 3px solid rgba(255, 255, 255, 0.1);
            border-top: 3px solid var(--primary-color);
            border-radius: 50%;
            width: 24px;
            height: 24px;
            animation: spin 1s linear infinite;
        }
        
        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        .spinner-border-sm {
            width: 1rem;
            height: 1rem;
            border-width: 0.2em;
        }
        
        /* Alerts and Notifications */
        .alert {
            border-radius: var(--button-radius);
            margin-bottom: 1rem;
            border: none;
            padding: 1rem;
        }
        
        .alert-success {
            background-color: var(--secondary-light);
            color: var(--secondary-color);
        }
        
        .alert-danger {
            background-color: rgba(255, 107, 107, 0.15);
            color: var(--danger-color);
        }
        
        .alert-warning {
            background-color: rgba(255, 209, 102, 0.15);
            color: var(--warning-color);
        }
        
        .alert-info {
            background-color: rgba(0, 194, 255, 0.15);
            color: var(--info-color);
        }
        
        /* Input groups */
        .input-group {
            border-radius: 12px;
            overflow: hidden;
        }
        
        .input-group .form-control {
            border-top-right-radius: 0;
            border-bottom-right-radius: 0;
        }
        
        .input-group .btn {
            border-top-left-radius: 0;
            border-bottom-left-radius: 0;
        }
        
        /* Transaction status */
        .transaction-status {
            text-align: center;
            padding: 1.5rem;
        }
        
        .status-icon {
            font-size: 2.5rem;
            margin-bottom: 1rem;
        }
        
        /* Fade-in animation for alerts */
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(-10px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        .fade-in {
            animation: fadeIn 0.3s ease-out forwards;
        }
        
        /* Modal Styling */
        .modal-content {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--panel-radius);
            color: var(--text-color);
        }
        
        .modal-header {
            border-bottom: 1px solid var(--border-color);
            padding: 1rem 1.25rem;
        }
        
        .modal-footer {
            border-top: 1px solid var(--border-color);
            padding: 1rem 1.25rem;
        }
        
        .modal-title {
            font-weight: 600;
        }
        
        .modal-backdrop {
            background-color: rgba(0, 0, 0, 0.7);
        }
        
        /* Toast Notification */
        .toast-container {
            position: fixed;
            top: 1rem;
            right: 1rem;
            z-index: 1100;
        }
        
        .toast {
            background-color: var(--card-bg);
            border: 1px solid var(--border-color);
            border-radius: var(--button-radius);
            color: var(--text-color);
            box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        }
        
        .toast-header {
            background-color: var(--card-header);
            color: var(--text-color);
            border-bottom: 1px solid var(--border-color);
        }
		
		/* DUNO Token Balance Card */
#duno-balance {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.02em;
    margin-right: 0.25rem;
}

#duno-balance-fiat {
    font-size: 2rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* DUNO Send Modal */
#sendDunoModal .modal-content {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--panel-radius);
}

#sendDunoModal .modal-header {
    border-bottom-color: var(--border-color);
}

#sendDunoModal .modal-footer {
    border-top-color: var(--border-color);
}

#sendDunoModal .form-control, 
#sendDunoModal .form-select {
    background-color: var(--input-bg);
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

#sendDunoModal .form-control:focus, 
#sendDunoModal .form-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.25);
}

/* For consistent button styling in both send modals */
#send-duno-status .transaction-status,
#send-status .transaction-status {
    text-align: center;
    padding: 1.5rem;
}

#send-duno-status .status-icon,
#send-status .status-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

/* Buy SOL button */
.btn-success {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    color: #000;
}

.btn-success:hover, 
.btn-success:focus {
    background-color: var(--secondary-hover);
    border-color: var(--secondary-hover);
    color: #000;
}

/* To ensure consistent button heights */
.balance-actions .btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 64px;
    border-radius: var(--button-radius);
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.75rem;
    transition: all 0.2s ease;
}

/* Override for when buttons need to wrap to multiple rows */
.balance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

/* When displaying 4 buttons, they need appropriate width */
.balance-actions .btn {
    flex: 1 1 calc(50% - 0.75rem/2);
    min-width: calc(50% - 0.75rem/2);
}

@media (min-width: 400px) {
    .balance-actions .btn {
        flex: 1;
        min-width: auto;
    }
}

/* Buy SOL button in header styling */
.buy-sol-button-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 0.5rem;
}

.buy-sol-btn {
    background: linear-gradient(90deg, #440e86 0%, #450bb6 100%);
    border: none;
    border-radius: 24px;
    padding: 0.5rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    margin-right: 0.75rem;
}

.buy-sol-btn:hover, 
.buy-sol-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

#current-network-badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
}

/* Button container at the top */
.d-flex.justify-content-between {

}

/* Buy button */
.buy-sol-btn {
    background:  linear-gradient(90deg, #440e86 0%, #450bb6 100%);
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Swap button */
.swap-duno-btn {
    background-color: #74077c;
    border: none;
    border-radius: 12px;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Button hover effects */
.buy-sol-btn:hover, 
.buy-sol-btn:focus,
.swap-duno-btn:hover,
.swap-duno-btn:focus {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

.blur-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.unlock-popup {
    background-color: var(--card-bg);
    border-radius: var(--panel-radius);
    padding: 2rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
}

.unlock-popup-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.unlock-popup-title i {
    font-size: 2.5rem;
    color: var(--primary-color);
}

/* Add this at the beginning of your body's script tag */

/* Add this to wallet.css */
.balance-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #e6e6e6;
}

.balance-title i {
    font-size: 1.2rem;
}

/* Address copied popup */
.address-copied-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 2100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.popup-content {
    background-color: var(--card-bg);
    border-radius: var(--panel-radius);
    padding: 1.5rem;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    border: 1px solid var(--border-color);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.popup-content h5 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.popup-content p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

.continue-btn {
    padding: 0.75rem 2rem;
    font-weight: 600;
}

.available-balances {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}

.available-balances span {
    font-weight: 500;
}

#swap-sol-available, #swap-duno-available {
    color: var(--text-color);
}

/* Swap Modal Styling */
.swap-container {
    padding: 0.5rem;
}

.swap-box {
    background-color: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.75rem;
    position: relative;
}

.swap-input-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
}

/* Token select styling */
.token-select {
    background-color: var(--input-bg);
    color: var(--text-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem;
    font-size: 0.9rem;
    width: 90px;
    height: 38px;
    appearance: auto; /* This is important to show the dropdown arrow */
    -webkit-appearance: auto;
    cursor: pointer;
    outline: none;
}

.token-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 1px var(--primary-color);
}

/* Input styling in swap box */
.swap-input-container input {
    flex-grow: 1;
    background-color: transparent;
    border: none;
    color: var(--text-color);
    font-size: 1rem;
    padding: 0.5rem;
    outline: none;
}

/* Max button */
.btn-max {
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 6px;
    color: var(--text-color);
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-max:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

/* Swap direction button */
.swap-direction-container {
    display: flex;
    justify-content: center;
    position: relative;
    margin: -12px 0;
    z-index: 10;
}

.swap-direction-btn {
    width: 32px;
    height: 32px;
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-color);
}

.swap-direction-btn:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: rotate(180deg);
}

/* Price info section */
.swap-price-info {
    background-color: rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    padding: 0.75rem;
    margin-top: 1rem;
    font-size: 0.8rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: 0.25rem 0;
}

.price-row span:first-child {
    color: var(--text-muted);
}

.price-row span:last-child {
    font-weight: 500;
}

/* Request Payment Link Button */
.request-payment-btn {
    background-color: rgba(20, 241, 149, 0.1);
    border: 1px solid rgba(20, 241, 149, 0.3);
    color: var(--secondary-color);
    border-radius: var(--button-radius);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem;
    margin-top: 0.5rem;
    margin-bottom: 1.25rem;
    transition: all 0.2s ease;
}

.request-payment-btn:hover {
    background-color: rgba(20, 241, 149, 0.2);
    border-color: var(--secondary-color);
    color: var(--secondary-color);
}

.disabled-input {
    opacity: 0.6;
    pointer-events: none;
}

.currency-converter {
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 12px;
    margin-top: 10px;
}

.share-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    padding: 10px 0;
    transition: all 0.2s;
}

.share-btn i {
    font-size: 20px;
}

.share-btn:hover {
    transform: translateY(-2px);
}

.telegram-btn:hover {
    background-color: #0088cc;
    color: white;
    border-color: #0088cc;
}

.whatsapp-btn:hover {
    background-color: #25D366;
    color: white;
    border-color: #25D366;
}

.facebook-btn:hover {
    background-color: #3b5998;
    color: white;
    border-color: #3b5998;
}

#share-options-container {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 15px;
    background-color: rgba(0, 0, 0, 0.1);
}

/* Add to wallet.css */


.total-balance-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.1rem;
}

.total-balance-label {
    font-size: 0.7rem;
    color: var(--text-muted);
}

@media (max-width: 400px) {
    .total-balance-amount {
        font-size: 1.2rem;
    }
}

.wallet-logo-image {
    height: 90px;
    width: auto;
    margin-right: 30px;
}

/* Adjust the layout for mobile screens */
@media (max-width: 480px) {
    .wallet-logo-image {
        height: 60px;
		 margin-right: 10px;
    }
    
    .wallet-logo {
	margin: 0px 10px 0px 0px;
		text-align:center;
        font-size: 1.4rem;
    }
}

/* Enhanced Onramp Service Popup Styling */
.address-copied-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 2100;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1rem;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.popup-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2a1c44 100%);
    border-radius: var(--panel-radius);
    padding: 1.75rem;
    width: 92%;
    max-width: 420px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(153, 69, 255, 0.3);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
    from { 
        opacity: 0; 
        transform: scale(0.95);
    }
    to { 
        opacity: 1; 
        transform: scale(1);
    }
}

.popup-content i.text-success {
    font-size: 2.5rem;
    margin-bottom: 1.25rem;
    color: var(--secondary-color) !important;
}

.popup-content h5 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    background: linear-gradient(90deg, var(--secondary-color), var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.popup-content p {
    color: #e6e6e6;
    margin-bottom: 1.5rem;
    line-height: 1.6;
    font-size: 0.95rem;
}

.onramp-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 15px;
    width: 100%;
}

.onramp-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.onramp-btn:hover {
    background: rgba(153, 69, 255, 0.15);
    border-color: rgba(153, 69, 255, 0.3);
    transform: translateY(-2px);
}

.onramp-logo {
    width: 24px;
    height: 24px;
    margin-right: 12px;
    border-radius: 4px;
}

.badge {
    margin-left: auto;
    font-size: 0.7rem;
    padding: 5px 8px;
    border-radius: 6px;
}

.badge.bg-success {
    background-color: rgba(20, 241, 149, 0.2) !important;
    color: var(--secondary-color);
    border: 1px solid rgba(20, 241, 149, 0.3);
}

.badge.bg-warning {
    background-color: rgba(255, 209, 102, 0.2) !important;
    color: var(--warning-color);
    border: 1px solid rgba(255, 209, 102, 0.3);
}

#close-onramp-popup {
    margin-top: 1.25rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #e6e6e6;
    font-weight: 500;
    padding: 10px 24px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

#close-onramp-popup:hover {
    background: rgba(255, 255, 255, 0.15);
}

.onramp-description {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 10px;
    padding: 12px 15px;
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #cccccc;
    text-align: left;
    border-left: 3px solid var(--secondary-color);
}

.onramp-description ul {
    text-align: left;
    padding-left: 20px;
    margin: 8px 0 0 0;
}

.onramp-description li {
    margin-bottom: 4px;
}

.address-copied-popup {
    overflow-y: auto;
    align-items: flex-start;
    padding: 20px 10px;
}

.popup-content {
    margin: 20px auto;
    max-height: 90vh;
    overflow-y: auto;
}

/* Ensure the onramp options section scrolls properly */
.popup-content {
    max-height: 100vh;
    overflow-y: auto;
    padding-right: 5px;
}

/* Additional mobile-specific fixes */
@media (max-width: 480px) {
    .popup-content {
        padding: 1.25rem;
    }
    
    .onramp-btn {
        padding: 12px;
        flex-wrap: wrap;
    }
    
    .badge {
        margin-left: 0;
        margin-top: 8px;
        font-size: 0.65rem;
    }
    
    .onramp-description {
        font-size: 0.8rem;
    }
}

.popup-content::-webkit-scrollbar {
    width: 8px; /* width of the scrollbar */
}

.popup-content::-webkit-scrollbar-track {
    background: transparent; /* or any track color */
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #888; /* scrollbar color */
    border-radius: 10px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #555; /* darker on hover */
}

.popup-content {
    scrollbar-width: thin; /* "auto" or "thin" */
    scrollbar-color: #888 transparent; /* thumb color and track color */
}

.scanner-container {
    position: relative;
    width: 100%;
    height: 300px;
    overflow: hidden;
    border-radius: 8px;
    background-color: #000;
}

#scanner-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#scanner-canvas {
    display: none;
}

#scanner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.scan-region-highlight {
    width: 200px;
    height: 200px;
    border: 2px solid #9945FF;
    border-radius: 10px;
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5);
}

.scanner-instructions {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    color: white;
    text-align: center;
    font-size: 14px;
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5);
}

/* Add to wallet.css */
/* Update the button styling for the ones after "Receive Money Link" */
#receive-money-qr,
#scan-qr-code,
#send-money {
    background-color: rgba(153, 69, 255, 0.1); 
    border: 1px solid rgba(153, 69, 255, 0.3);
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 500;
}

#receive-money-qr:hover,
#scan-qr-code:hover,
#send-money:hover {
    background-color: rgba(153, 69, 255, 0.2);
    border-color: rgba(153, 69, 255, 0.4);
    color: var(--primary-color);
}

/* Fix the icon spacing */
#receive-money-qr::before,
#send-money::after {
    content: none; /* Remove the existing pseudo-elements */
}


#scan-qr-code i,
#send-money i {
    margin-right: 8px;
}

/* Make buttons more consistent with other UI elements */
.btn-outline-secondary {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-color);
}

.btn-outline-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    color: var(--text-color);
}
.scanner-container video {
    object-fit: cover !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 5;
}

.scan-region-highlight {
    width: 70%;
    height: 70%;
    max-width: 200px;
    max-height: 200px;
    border: 2px solid #9945FF;
    border-radius: 10px;
    box-shadow: 0 0 0 5000px rgba(0, 0, 0, 0.5);
    position: relative;
    z-index: 10;
}

/* Add to wallet.css */
.header-qr {
    background-color: white;
  
    padding: 0px;

}

.header-qr-contain{
	  background-color: white;
	  padding:5px;
	  border-radius:8px;
}

/* Adjust total balance to be full width */
.total-balance-display {
    width: 100%;
    margin-top: 0.5rem;
    padding: 0.4rem 1.2rem 0.75rem 1.2rem;
    background: linear-gradient(135deg, rgba(153, 69, 255, 0.15) 0%, rgba(20, 241, 149, 0.15) 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

/* Wallet Lock Footer */
.wallet-lock-footer {
    position: fixed;
    bottom: var(--bottom-nav-height);
    left: 0;
    right: 0;
    background-color: var(--card-bg);
    border-top: 1px solid var(--border-color);
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 999;
    box-shadow: 0 -4px 10px rgba(0, 0, 0, 0.1);
}

.lock-status {
    display: flex;
    align-items: center;
}

.lock-actions {
    display: flex;
    gap: 10px;
}

.lock-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Adjust bottom padding to account for both nav and lock footer */
body {
    padding-bottom: calc(var(--bottom-nav-height) + 60px);
}

/* Make sure lock footer is visible on mobile */
@media (max-width: 480px) {
    .wallet-lock-footer {
        padding: 8px 10px;
    }
    
    .lock-btn {
        padding: 6px 12px;
        font-size: 0.8rem;
    }
}

.install-button {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            background: linear-gradient(90deg, #9945FF 0%, #14F195 100%);
            color: white;
            font-weight: bold;
            padding: 12px;
            text-align: center;
            border: none;
            width: 100%;
            z-index: 9999;
            cursor: pointer;
            font-family: 'Outfit', 'Segoe UI', sans-serif;
            box-shadow: 0 2px 10px rgba(0,0,0,0.2);
        }
        
        body.has-install-banner {
            padding-top: 48px; /* Add padding to body when banner is shown */
        }
		
		/* Balance breakdown styles */
.balance-breakdown {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    font-size: 1rem;
    color: var(--text-muted);
}

.token-balance {
    display: flex;
    gap: 4px;
    align-items: center;
    white-space: nowrap;
	
}

.token-value {
    color: var(--text-muted);
    font-size: 1rem;
    margin-left: 3px;
}

/* Make total balance left-aligned */
.total-balance-amount {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 0.1rem;
    text-align: left;
	
}

.total-balance-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: left;
}

@media (max-width: 380px) {
    .token-balance {
        font-size: 0.8rem;
    }
    
    .token-value {
        font-size: 0.8rem;
    }
    
    .total-balance-amount {
        font-size: 1.5rem;
    }
}

/* Add these CSS rules to wallet.css */
#duno-recipient, #duno-amount, .form-control, .text-muted, 
.modal-body small, .modal-body input, .modal-body textarea {
    color: var(--text-color) !important;
}

.form-control::placeholder, .form-select::placeholder {
    color: var(--text-muted) !important;
}

.text-muted {
    color: #aaaaaa !important;
}

/* Ensure text is visible in the send DUNO modal */
#sendDunoModal .modal-body small,
#sendDunoModal .text-muted,
#sendDunoModal .form-label {
    color: var(--text-color) !important;
    opacity: 0.8;
}

/* Fix dropdown text color */
.form-select option {
    background-color: var(--card-bg);
    color: var(--text-color);
}

/* Add to wallet.css */
/* Enhance the send DUNO modal styling */
#sendDunoModal .modal-content {
    background: linear-gradient(135deg, #1e1e1e 0%, #2a1c44 100%);
    border: 1px solid var(--primary-color);
}

#sendDunoModal .modal-header {
    border-bottom: 1px solid rgba(153, 69, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
}

#sendDunoModal .modal-footer {
    border-top: 1px solid rgba(153, 69, 255, 0.3);
    background-color: rgba(0, 0, 0, 0.2);
}

.usd-value-container {
    background-color: rgba(153, 69, 255, 0.1);
    padding: 6px 12px;
    border-radius: 8px;
    margin-top: 10px;
    border-left: 3px solid var(--primary-color);
}

#duno-amount-usd {
    font-weight: 600;
    color: var(--secondary-color) !important;
}

/* Improve the input field appearance */
#sendDunoModal .input-group {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

#sendDunoModal .form-control,
#sendDunoModal .input-group-text {
    background-color: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(153, 69, 255, 0.3);
}

#sendDunoModal .form-control:focus {
    box-shadow: 0 0 0 3px rgba(153, 69, 255, 0.25);
    border-color: var(--primary-color);
}

/* Animate the confirm button for better UX */
#confirm-send-duno {
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

#confirm-send-duno:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.2);
}

#confirm-send-duno::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 ease;
}

#confirm-send-duno:hover::before {
    left: 100%;
}

/* QR Scanner Styles */
#inline-duno-scanner-container {
  display: block !important;
}

.scanner-container {
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background-color: #000;
}

.scanner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.scan-region-highlight {
  border: 2px solid rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1000px rgba(0, 0, 0, 0.3);
  width: 230px;
  height: 230px;
  margin-bottom: 10px;
}

.scanner-instructions {
  color: white;
  text-shadow: 0 0 10px rgba(0,0,0,0.8);
  font-weight: bold;
}

/* Make the camera button more visible */
#scan-duno-address-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.375rem 0.75rem;
}

.address-input-success {
  border-color: #28a745 !important;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25) !important;
  padding-right: calc(1.5em + 0.75rem) !important;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%2328a745' d='M2.3 6.73L.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right calc(0.375em + 0.1875rem) center;
  background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
}

.address-input-group-success .input-group-text {
  color: #28a745;
  border-color: #28a745;
  background-color: #f8fff9;
}

.address-input-group-success .btn-outline-secondary {
  color: #28a745;
  border-color: #28a745;
}

.checkmark-animated {
  animation: fadeInCheckmark 0.5s ease-in-out;
}

@keyframes fadeInCheckmark {
  0% { opacity: 0; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}