:root {
    --bg-dark: #0a0a0a;
    --sidebar-bg: #0a0a0a;
    --card-bg: rgba(255, 255, 255, 0.03);
    --accent-color: #E2C690;
    --accent-hover: #D4AF37;
    --bg-card: #151515;
    --text-main: #ffffff;
    --text-muted: #a0a0a0;
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(255, 255, 255, 0.1);
    --shadow-premium: 0 20px 40px rgba(0, 0, 0, 0.4);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --border-color: rgba(226, 198, 144, 0.15);
    --message-user: #D4AF37;
    --message-ai: rgba(255, 255, 255, 0.05);
}

/* Auth Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.modal-content {
    background: var(--bg-card);
    width: 90%;
    max-width: 400px;
    padding: 40px;
    border-radius: 24px;
    border: 1px solid var(--glass-border);
    text-align: center;
    box-shadow: var(--shadow-premium);
    animation: modalFadeIn 0.4s ease-out;
}

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

.modal-header {
    margin-bottom: 24px;
}

.modal-logo {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 10px rgba(226, 198, 144, 0.3));
}

.modal-content h2 {
    font-family: 'Outfit', sans-serif;
    color: var(--accent-color);
    margin-bottom: 8px;
}

.modal-content p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
}

.modal-content input {
    width: 100%;
    padding: 14px 20px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    color: var(--text-main);
    font-size: 1rem;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

.modal-content input:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 2px rgba(226, 198, 144, 0.2);
}

.primary-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--accent-color), var(--accent-hover));
    border: none;
    border-radius: 12px;
    color: #000;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 16px;
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(226, 198, 144, 0.3);
}

.auth-switch {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.auth-switch a {
    color: var(--accent-color);
    text-decoration: none;
    font-weight: 500;
}

.api-key-box {
    background: #000;
    padding: 16px;
    border-radius: 12px;
    border: 1px dashed var(--accent-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.api-key-box span {
    font-family: monospace;
    color: var(--accent-color);
    word-break: break-all;
    font-size: 0.9rem;
}

#copyKeyBtn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
}

#copyKeyBtn:hover {
    color: var(--accent-color);
}

.warning-text {
    color: #ff6b6b !important;
    font-size: 0.8rem !important;
    font-weight: 500;
    margin-top: 8px;
}

.success-icon {
    font-size: 48px;
    color: #4caf50;
    margin-bottom: 16px;
}

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

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    height: 100vh;
    overflow: hidden;
}

.app-container {
    display: flex;
    height: 100vh;
    width: 100%;
}

/* Sidebar Styling */
.sidebar {
    width: 280px;
    background-color: var(--sidebar-bg);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    padding: 20px;
    transition: all 0.3s ease;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--accent);
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.new-chat-btn {
    width: 100%;
    padding: 12px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-weight: 500;
    margin-bottom: 20px;
}

.new-chat-btn:hover {
    background-color: var(--card-bg);
    border-color: var(--accent);
}

.sidebar-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 10px;
    margin-top: 10px;
}

/* Custom Scrollbar for Sidebar */
.sidebar-content::-webkit-scrollbar {
    width: 4px;
}
.sidebar-content::-webkit-scrollbar-track {
    background: transparent;
}
.sidebar-content::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

.history-section {
    margin-bottom: 24px;
}

.history-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    padding: 8px 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.history-item {
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    gap: 12px;
    position: relative;
    color: var(--text-secondary);
}

.history-item:hover {
    background: rgba(255, 255, 255, 0.03);
    color: #fff;
}

.history-item.active {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.history-item i {
    font-size: 14px;
    opacity: 0.5;
}

.chat-title {
    font-size: 13.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    font-weight: 500;
}

.delete-chat {
    background: none;
    border: none;
    color: var(--text-muted);
    padding: 2px 6px;
    cursor: pointer;
    opacity: 0.4;
    transition: all 0.2s;
    border-radius: 4px;
    font-size: 16px;
    line-height: 1;
    flex-shrink: 0;
}

.delete-chat:hover {
    opacity: 1;
    color: #ff4b2b;
    background: rgba(255, 75, 43, 0.12);
}

.sidebar-footer {
    margin-top: auto;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.user-profile {
    padding: 12px;
    background: var(--glass-bg);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.user-profile img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid var(--accent-color);
}

.user-profile span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-main);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.logout-btn {
    background: rgba(255, 107, 107, 0.1);
    border: none;
    color: #ff6b6b;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.logout-btn:hover {
    background: #ff6b6b;
    color: white;
    transform: scale(1.1);
}

/* Chat Area Styling */
.chat-area {
    flex: 1;
    display: flex;
    flex-direction: column;
    background-color: var(--bg-dark);
    position: relative;
}

.chat-header {
    height: 70px;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border-color);
    background-color: rgba(15, 17, 23, 0.8);
    backdrop-filter: blur(10px);
    z-index: 10;
}

.header-right {
    display: flex;
    align-items: center;
}

.balance-container {
    background: rgba(226, 198, 144, 0.1);
    border: 1px solid rgba(226, 198, 144, 0.2);
    padding: 6px 16px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    backdrop-filter: blur(5px);
}

.balance-label {
    font-size: 10px;
    font-weight: 700;
    color: var(--accent-color);
    letter-spacing: 1px;
}

.balance-value {
    font-family: 'Outfit', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 10px rgba(226, 198, 144, 0.3);
}

.model-info h2 {
    font-size: 18px;
    font-weight: 600;
}

.status-badge {
    font-size: 12px;
    color: #10b981;
    display: flex;
    align-items: center;
    gap: 5px;
}

.status-badge::before {
    content: '';
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
}

.icon-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s;
}

.icon-btn:hover {
    background-color: var(--card-bg);
    color: var(--text-primary);
}

/* Messages */
.messages-container {
    flex: 1;
    overflow-y: auto;
    padding: 40px 10%;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.welcome-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    text-align: center;
    animation: fadeIn 0.8s ease-out;
}

.welcome-icon {
    font-size: 64px;
    color: var(--accent);
    margin-bottom: 24px;
}

.welcome-screen h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    margin-bottom: 16px;
}

.welcome-screen p {
    color: var(--text-secondary);
    max-width: 500px;
}

.message {
    display: flex;
    gap: 16px;
    max-width: 85%;
    animation: slideUp 0.3s ease-out;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-avatar {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.message.ai .message-avatar {
    background-color: var(--accent);
    color: white;
}

.message.user .message-avatar {
    background-color: #334155;
    color: white;
}

.message-content {
    padding: 12px 18px;
    border-radius: 18px;
    line-height: 1.6;
    font-size: 15px;
}

.message-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.chat-image {
    max-width: 200px;
    max-height: 200px;
    border-radius: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.message.ai .message-content {
    background-color: var(--message-ai);
    border: 1px solid var(--border-color);
    border-top-left-radius: 4px;
}

.message.user .message-content {
    background-color: var(--message-user);
    color: white;
    border-top-right-radius: 4px;
}

/* Input Area */
.input-area {
    padding: 20px 10% 40px;
    background-color: var(--bg-dark);
}

.input-wrapper {
    background-color: var(--sidebar-bg);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 10px 15px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: border-color 0.3s;
}

.input-wrapper:focus-within {
    border-color: var(--accent);
}

#userInput {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 16px;
    outline: none;
    resize: none;
    max-height: 200px;
    padding: 5px 0;
}

.attach-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.attach-btn:hover {
    color: var(--accent);
}

.image-preview-container {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.image-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn {
    background-color: var(--accent);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.send-btn:hover {
    background-color: var(--accent-hover);
    transform: scale(1.05);
}

.disclaimer {
    text-align: center;
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

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

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

/* Mobile Responsiveness */
.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.menu-btn {
    display: none;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
}

@media (max-width: 768px) {
    .menu-btn {
        display: block;
    }

    .sidebar {
        position: absolute;
        left: -280px;
        top: 0;
        bottom: 0;
        z-index: 100;
        width: 280px;
        box-shadow: 20px 0 50px rgba(0, 0, 0, 0.5);
    }

    .app-container.show-sidebar .sidebar {
        left: 0;
    }

    .sidebar-overlay {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        backdrop-filter: blur(4px);
        z-index: 90;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.3s ease;
    }

    .app-container.show-sidebar .sidebar-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    .messages-container {
        padding: 20px 15px;
    }

    .input-area {
        padding: 10px 15px 30px;
    }

    .welcome-screen h1 {
        font-size: 24px;
    }

    .welcome-logo {
        width: 80px !important;
        height: 80px !important;
    }

    .message {
        max-width: 95%;
    }
}
.wallet-btn { background: var(--glass-bg); border: 1px solid var(--glass-border); color: var(--accent-color); width: 44px; height: 44px; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 18px; transition: all 0.3s ease; margin-right: 12px; } .wallet-btn:hover { background: var(--accent-color); color: #000; transform: translateY(-2px); box-shadow: 0 5px 15px rgba(226, 198, 144, 0.3); } .portfolio-modal { max-width: 450px !important; padding: 30px !important; } .portfolio-list { margin-top: 20px; max-height: 400px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; } .token-item { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--glass-border); padding: 16px; border-radius: 16px; display: flex; align-items: center; gap: 15px; transition: all 0.2s ease; } .token-item:hover { background: rgba(255, 255, 255, 0.05); border-color: var(--accent-color); } .token-logo { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; } .token-info { flex: 1; text-align: left; } .token-name { font-weight: 600; color: #fff; display: block; } .token-symbol { font-size: 0.8rem; color: var(--text-muted); } .token-balance { text-align: right; } .balance-amount { font-weight: 700; color: var(--accent-color); display: block; } .balance-type { font-size: 0.75rem; color: var(--text-muted); } .close-btn { background: none; border: none; color: var(--text-muted); font-size: 24px; cursor: pointer; } .close-btn:hover { color: #fff; } .portfolio-footer { margin-top: 20px; padding-top: 15px; border-top: 1px solid var(--glass-border); } .address-small { font-family: monospace; font-size: 0.75rem; color: var(--text-muted); word-break: break-all; } #portfolioAddress { color: var(--accent-color); }

/* Dashboard Modal Styles */
.full-screen-modal {
    padding: 0 !important;
}

.dashboard-container {
    width: 100vw;
    height: 100vh;
    background: #000;
    display: flex;
    overflow: hidden;
}

.dashboard-sidebar {
    width: 260px;
    background: #0a0a0a;
    border-right: 1px solid var(--glass-border);
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
}

.dashboard-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent-color);
    margin-bottom: 50px;
}

.dashboard-logo img {
    width: 32px;
    height: 32px;
}

.dashboard-nav {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.nav-item {
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 14px 20px;
    border-radius: 12px;
    text-align: left;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.3s ease;
}

.nav-item i {
    font-size: 1.1rem;
    width: 24px;
}

.nav-item:hover, .nav-item.active {
    background: rgba(226, 198, 144, 0.1);
    color: var(--accent-color);
}

.dashboard-sidebar-footer {
    margin-top: auto;
}

.dashboard-close-btn {
    width: 100%;
    background: rgba(255, 107, 107, 0.1);
    border: 1px solid rgba(255, 107, 107, 0.2);
    color: #ff6b6b;
    padding: 12px;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.dashboard-close-btn:hover {
    background: #ff6b6b;
    color: #fff;
}

.dashboard-content {
    flex: 1;
    padding: 60px 80px;
    overflow-y: auto;
    background: radial-gradient(circle at top right, rgba(226, 198, 144, 0.05), transparent);
}

.tab-content {
    display: none;
    max-width: 800px;
    animation: fadeIn 0.5s ease;
}

.tab-content.active {
    display: block;
}

.tab-header {
    margin-bottom: 40px;
}

.tab-header h2 {
    font-size: 32px;
    color: #fff;
    margin-bottom: 10px;
}

.address-display {
    font-family: monospace;
    background: rgba(255,255,255,0.05);
    padding: 8px 16px;
    border-radius: 8px;
    display: inline-block;
    color: var(--accent-color);
    font-size: 0.9rem;
}

.send-form, .swap-box {
    background: #0f0f0f;
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 30px 60px rgba(0,0,0,0.5);
}

.form-group {
    margin-bottom: 25px;
}

.form-group label {
    display: block;
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.form-group input, .form-group select {
    width: 100%;
    background: #000;
    border: 1px solid var(--glass-border);
    padding: 16px;
    border-radius: 12px;
    color: #fff;
    font-size: 1rem;
}

.input-with-max {
    position: relative;
    display: flex;
    align-items: center;
}

.max-btn {
    position: absolute;
    right: 12px;
    background: var(--accent-color);
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    color: #000;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: pointer;
}

.dashboard-btn {
    margin-top: 20px;
    height: 56px;
    font-size: 1.1rem;
}

/* Swap Styles */
.swap-input-group {
    background: #000;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid var(--glass-border);
}

.swap-input-row {
    display: flex;
    gap: 15px;
    align-items: center;
}

.swap-input-row input {
    flex: 1;
    background: transparent;
    border: none;
    font-size: 24px;
    color: #fff;
    outline: none;
}

.asset-selector {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 12px;
    color: #fff;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.swap-divider {
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-color);
    font-size: 20px;
}


/* Responsive & Alignment Fixes for Dashboard */
.dashboard-content {
    display: flex;
    justify-content: center;
    padding: 60px 40px;
}

.tab-content {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
}

.empty-state {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
    border: 1px dashed var(--glass-border);
    border-radius: 20px;
    margin-top: 20px;
}

@media (max-width: 768px) {
    .dashboard-container {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
        height: auto;
        padding: 15px;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        border-right: none;
        border-bottom: 1px solid var(--glass-border);
    }

    .dashboard-logo {
        margin-bottom: 0;
    }

    .dashboard-logo span {
        display: none;
    }

    .dashboard-nav {
        flex-direction: row;
        gap: 5px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 0.85rem;
        gap: 8px;
    }

    .nav-item span {
        display: none;
    }

    .dashboard-sidebar-footer {
        margin-top: 0;
    }

    .dashboard-close-btn {
        padding: 8px;
        font-size: 14px;
    }

    .dashboard-close-btn i {
        margin: 0;
    }

    .dashboard-close-btn span {
        display: none;
    }

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

    .tab-header h2 {
        font-size: 24px;
    }

    .send-form, .swap-box {
        padding: 20px;
    }

    .swap-input-row input {
        font-size: 18px;
    }
}

.asset-selector-dropdown { 
    background: rgba(255,255,255,0.05); 
    border: 1px solid var(--glass-border); 
    padding: 8px 12px; 
    border-radius: 12px; 
    color: #fff; 
    font-weight: 600; 
    outline: none; 
    cursor: pointer; 
} 

.asset-selector-dropdown option { 
    background: #000; 
    color: #fff; 
}


.help-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 8px;
}

/* ── Premium Swap Card ── */
.swap-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 480px;
    margin: 0 auto;
}

.swap-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 18px;
    padding: 16px 20px;
    transition: border-color 0.2s ease;
}

.swap-panel:focus-within {
    border-color: rgba(226, 198, 144, 0.4);
}

.swap-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.swap-panel-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.swap-panel-balance {
    font-size: 12px;
    color: var(--text-muted);
    cursor: pointer;
}

.swap-panel-body {
    display: flex;
    align-items: center;
    gap: 12px;
}

.swap-amount-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
    width: 0;
    min-width: 0;
}

.swap-amount-input:disabled {
    color: var(--text-muted);
}

.swap-amount-input::placeholder { color: rgba(255,255,255,0.2); }

.swap-token-selector { flex-shrink: 0; }

.swap-asset-select {
    background: rgba(226, 198, 144, 0.12);
    border: 1px solid rgba(226, 198, 144, 0.25);
    padding: 8px 14px;
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 15px;
    outline: none;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: 'Outfit', sans-serif;
}

.swap-asset-select:hover {
    background: rgba(226, 198, 144, 0.2);
    border-color: var(--accent-color);
}

.swap-asset-select option { background: #111; color: #fff; }

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

.swap-max-btn {
    background: rgba(226, 198, 144, 0.12);
    border: 1px solid rgba(226, 198, 144, 0.25);
    color: var(--accent-color);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 4px 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.swap-max-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.swap-usd-value {
    font-size: 12px;
    color: var(--text-muted);
}

/* Flip Button */
.swap-flip-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 6px 0;
    position: relative;
    z-index: 1;
}

.swap-flip-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #0a0a0a;
    border: 2px solid rgba(226, 198, 144, 0.35);
    color: var(--accent-color);
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s ease;
    box-shadow: 0 0 0 4px #000;
}

.swap-flip-btn:hover {
    background: var(--accent-color);
    color: #000;
    border-color: var(--accent-color);
    transform: rotate(180deg) scale(1.1);
    box-shadow: 0 0 20px rgba(226, 198, 144, 0.4), 0 0 0 4px #000;
}

.swap-flip-btn.flipping {
    animation: flipSpin 0.4s ease forwards;
}

@keyframes flipSpin {
    0%   { transform: rotate(0deg) scale(1); }
    50%  { transform: rotate(90deg) scale(0.85); }
    100% { transform: rotate(180deg) scale(1); }
}

/* Custom Token */
.swap-custom-token {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 8px;
    margin-top: 4px;
}

.swap-custom-token input {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 10px 14px;
    color: #fff;
    font-size: 13px;
    outline: none;
    transition: border-color 0.2s;
    font-family: monospace;
}

.swap-custom-token input:focus { border-color: rgba(226, 198, 144, 0.5); }

.custom-token-symbol {
    font-size: 13px;
    font-weight: 700;
    color: var(--accent-color);
    white-space: nowrap;
}

/* Info Row */
.swap-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    font-size: 12px;
    color: var(--text-muted);
}

.swap-info-value {
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

/* Execute Button */
.swap-execute-btn {
    width: 100%;
    padding: 16px;
    border-radius: 16px;
    border: none;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 4px;
}

.swap-execute-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(226, 198, 144, 0.4);
}

.swap-execute-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.swap-status {
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
    padding: 8px;
    min-height: 24px;
}

.swap-status.success { color: #4caf50; }
.swap-status.error { color: #ff6b6b; }
/* ── Premium Send Assets UI ── */
.premium-form-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    max-width: 500px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
    animation: slideUp 0.5s ease-out;
}

.form-panel {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 18px 22px;
    transition: all 0.3s ease;
}

.form-panel:focus-within {
    border-color: rgba(226, 198, 144, 0.4);
    background: rgba(255, 255, 255, 0.06);
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.panel-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.panel-balance {
    font-size: 12px;
    color: var(--accent-color);
    font-weight: 500;
}

.panel-body {
    display: flex;
    align-items: center;
    gap: 15px;
}

.token-select-wrapper {
    flex-shrink: 0;
}

.premium-select {
    background: rgba(226, 198, 144, 0.1);
    border: 1px solid rgba(226, 198, 144, 0.2);
    padding: 10px 16px;
    border-radius: 50px;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    outline: none;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s;
}

.premium-select:hover {
    background: rgba(226, 198, 144, 0.18);
    border-color: var(--accent-color);
}

.amount-input-wrapper {
    flex: 1;
    display: flex;
    align-items: center;
    position: relative;
}

.premium-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    outline: none;
    font-size: 26px;
    font-weight: 700;
    color: #fff;
    font-family: 'Outfit', sans-serif;
}

.premium-max-btn {
    background: rgba(226, 198, 144, 0.12);
    border: 1px solid rgba(226, 198, 144, 0.25);
    color: var(--accent-color);
    font-size: 10px;
    font-weight: 800;
    padding: 5px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
}

.premium-max-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.custom-address-panel {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    padding: 12px 18px;
    margin: 0 4px;
}

.custom-address-panel i {
    color: var(--text-muted);
    font-size: 14px;
}

.custom-address-panel input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-family: monospace;
    font-size: 13px;
    width: 100%;
}

.address-body {
    gap: 12px;
}

.recipient-icon {
    color: var(--accent-color);
    font-size: 18px;
    opacity: 0.6;
}

.premium-address-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 15px;
    color: #fff;
    font-family: monospace;
}

.premium-action-btn {
    width: 100%;
    padding: 18px;
    border-radius: 18px;
    border: none;
    background: linear-gradient(135deg, var(--accent-color), #c9a227);
    color: #000;
    font-size: 16px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 10px;
}

.premium-action-btn:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 15px 40px rgba(226, 198, 144, 0.3);
}

.form-info-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-muted);
    padding: 10px;
}

/* ── Slippage Settings UI ── */
.slippage-settings {
    padding: 12px 16px !important;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    margin: 8px 0;
}

.slippage-input-group {
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    border-radius: 10px;
    padding: 4px 10px;
    transition: all 0.2s;
}

.slippage-input-group:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(226, 198, 144, 0.1);
}

.slippage-input-group input {
    background: transparent;
    border: none;
    outline: none;
    color: var(--accent-color);
    font-weight: 700;
    font-size: 14px;
    width: 45px;
    text-align: right;
    -moz-appearance: textfield;
}

.slippage-input-group input::-webkit-outer-spin-button,
.slippage-input-group input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.percent-symbol {
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    margin-left: 4px;
}
/* ── Premium Assets Tab ── */
.premium-tab-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 40px;
}

.total-value-card {
    background: linear-gradient(135deg, rgba(226, 198, 144, 0.1), rgba(226, 198, 144, 0.05));
    border: 1px solid rgba(226, 198, 144, 0.2);
    padding: 20px 30px;
    border-radius: 20px;
    text-align: right;
    backdrop-filter: blur(10px);
}

.total-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 6px;
}

.total-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 15px rgba(226, 198, 144, 0.3);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.asset-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.asset-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--accent-color), transparent);
    opacity: 0;
    transition: opacity 0.3s;
    z-index: 0;
}

.asset-card:hover {
    transform: translateY(-8px);
    border-color: rgba(226, 198, 144, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.asset-card:hover::before {
    opacity: 0.03;
}

.asset-card-top {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.asset-card-logo {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: #000;
    border: 1px solid var(--glass-border);
    padding: 4px;
    object-fit: cover;
}

.asset-card-info {
    flex: 1;
}

.asset-card-name {
    display: block;
    font-weight: 700;
    color: #fff;
    font-size: 16px;
}

.asset-card-symbol {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.asset-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 1;
}

.asset-card-balance {
    display: flex;
    flex-direction: column;
}

.balance-large {
    font-family: 'Outfit', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: var(--accent-color);
}

.balance-usd {
    font-size: 12px;
    color: var(--text-muted);
}

.asset-type-badge {
    background: rgba(255, 255, 255, 0.05);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ── Premium Settings UI ── */
.premium-settings-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 40px 80px rgba(0, 0, 0, 0.4);
}

.settings-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.section-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title i {
    font-size: 16px;
}

.settings-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.settings-group label {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.input-with-icon {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #000;
    border: 1px solid var(--glass-border);
    border-radius: 14px;
    padding: 14px 20px;
    transition: all 0.3s;
}

.input-with-icon:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 20px rgba(226, 198, 144, 0.1);
}

.input-with-icon i {
    color: var(--text-muted);
    font-size: 16px;
}

.input-with-icon input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 15px;
    width: 100%;
}

.premium-settings-btn {
    background: rgba(226, 198, 144, 0.1);
    border: 1px solid rgba(226, 198, 144, 0.2);
    color: var(--accent-color);
    padding: 14px;
    border-radius: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.premium-settings-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.settings-divider {
    height: 1px;
    background: var(--glass-border);
    margin: 30px 0;
}

.settings-key-box {
    background: rgba(0, 0, 0, 0.4);
    padding: 20px;
    border: 1px solid var(--glass-border);
    border-radius: 16px;
}

.reveal-btn {
    background: rgba(226, 198, 144, 0.1);
    border: none;
    color: var(--accent-color);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.reveal-btn:hover {
    background: var(--accent-color);
    color: #000;
}

.danger-zone .section-title {
    color: #ff6b6b;
}

@media (max-width: 768px) {
    .premium-tab-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    
    .total-value-card {
        width: 100%;
        text-align: center;
    }
    
    .portfolio-grid {
        grid-template-columns: 1fr;
    }
}

.check-token-btn {
    background: var(--accent-color);
    color: black;
    border: none;
    border-radius: 6px;
    padding: 6px 15px;
    font-size: 12px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    white-space: nowrap;
}

.check-token-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(212, 175, 55, 0.3);
    filter: brightness(1.1);
}

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

/* Token Preview Card */
.token-preview-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px 15px;
    margin: 10px 0;
    display: flex;
    align-items: center;
    gap: 15px;
    animation: slideInDown 0.3s ease-out;
}

.token-preview-card img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.preview-info {
    flex: 1;
}

.preview-name {
    font-weight: 600;
    color: white;
    font-size: 14px;
}

.preview-symbol {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
}

.preview-price {
    font-weight: bold;
    color: var(--accent-color);
    font-size: 14px;
}

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

.token-preview-card.loading {
    position: relative;
    overflow: hidden;
}

.token-preview-card.loading::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: loading-shimmer 1.5s infinite;
}

@keyframes loading-shimmer {
    from { transform: translateX(0); }
    to { transform: translateX(50%); }
}

/* ── Rebuilt Send System ── */
.send-container-premium {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 650px;
    margin: 0 auto;
    padding: 20px;
}

.send-card-glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.send-card-glass:hover {
    border-color: rgba(212, 175, 55, 0.4);
    background: rgba(255, 255, 255, 0.05);
}

.send-card-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 20px;
}

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

.asset-dropdown-wrapper {
    flex: 1;
}

.modern-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 14px 18px;
    color: white;
    font-size: 17px;
    font-weight: 700;
    cursor: pointer;
    outline: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='rgba(212, 175, 55, 0.8)'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 18px;
    transition: border-color 0.3s;
}

.modern-select:focus {
    border-color: var(--accent-color);
}

.asset-balance-pill {
    background: rgba(212, 175, 55, 0.1);
    color: var(--accent-color);
    padding: 10px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: nowrap;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.pulse-dot {
    width: 10px;
    height: 10px;
    background: var(--accent-color);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-color);
    animation: pulse-ring 1.5s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes pulse-ring {
    0% { transform: scale(0.7); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 1; }
    100% { transform: scale(0.7); opacity: 0.5; }
}

.custom-token-panel {
    margin-top: 25px;
    padding-top: 25px;
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    animation: slide-in-down 0.4s ease-out;
}

.input-with-icon {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 16px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s;
}

.input-with-icon:focus-within {
    border-color: var(--accent-color);
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.1);
}

.input-with-icon i {
    color: rgba(212, 175, 55, 0.6);
    font-size: 18px;
}

.input-with-icon input {
    flex: 1;
    background: transparent;
    border: none;
    padding: 16px 14px;
    color: white;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 15px;
    outline: none;
}

.token-scan-btn {
    background: linear-gradient(135deg, var(--accent-color), #B8964C);
    color: black;
    border: none;
    padding: 8px 18px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}

.token-scan-btn:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3);
}

.send-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 20px;
}

.massive-amount-input {
    width: 100%;
    background: transparent;
    border: none;
    color: white;
    font-size: 38px;
    font-weight: 800;
    outline: none;
    padding: 10px 0;
    font-family: 'Outfit', sans-serif;
}

.massive-amount-input::placeholder {
    color: rgba(255, 255, 255, 0.05);
}

.amount-input-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.max-pill-btn {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 1px;
}

.max-pill-btn:hover {
    background: var(--accent-color);
    color: black;
    border-color: var(--accent-color);
}

.address-input-group {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0, 0, 0, 0.2);
    padding: 16px 20px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.modern-address-input {
    background: transparent;
    border: none;
    color: white;
    flex: 1;
    font-size: 15px;
    font-family: 'Monaco', monospace;
    outline: none;
}

.premium-send-btn {
    background: linear-gradient(135deg, var(--accent-color), #8a6d2b);
    color: black;
    border: none;
    border-radius: 20px;
    padding: 24px;
    font-size: 20px;
    font-weight: 800;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
    transition: all 0.4s;
    margin-top: 15px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.premium-send-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 50px rgba(212, 175, 55, 0.2);
    filter: brightness(1.1);
}

.network-badge-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.2);
    margin-top: 15px;
}

@keyframes slide-in-down {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 800px) {
    .send-grid {
        grid-template-columns: 1fr;
    }

}

.settings-overlay-new {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000;
}

.settings-mini-modal { 
    max-width: 400px; 
    padding: 30px; 
} 
.settings-mini-body { 
    margin-top: 25px; 
    display: flex; 
    flex-direction: column; 
    gap: 20px; 
} 
.key-item label { 
    display: block; 
    font-size: 12px; 
    color: var(--text-secondary); 
    margin-bottom: 8px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
} 
.settings-mini-modal .api-key-box { 
    background: rgba(0,0,0,0.3); 
    padding: 12px 15px; 
    border-radius: 12px; 
    border: 1px solid var(--border-color); 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    gap: 10px; 
} 
.settings-mini-modal .api-key-box span { 
    font-family: monospace; 
    font-size: 13px; 
    color: var(--accent); 
    overflow: hidden; 
    text-overflow: ellipsis; 
    white-space: nowrap; 
}
/* ── Premium Security Settings Modal ── */
.settings-premium-modal {
    max-width: 500px !important;
    padding: 40px !important;
    background: #0d0d0d !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    text-align: left !important;
}

.settings-header-new h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 32px;
    color: #fff;
    margin-bottom: 8px;
}

.settings-header-new p {
    color: var(--text-muted);
    font-size: 16px;
    margin-bottom: 40px;
}

.settings-card-new {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    padding: 30px;
}

.settings-group-new {
    margin-bottom: 24px;
}

.settings-group-new label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-muted);
    margin-bottom: 12px;
    letter-spacing: 0.05em;
}

.dashed-box {
    background: rgba(0, 0, 0, 0.4);
    border: 1px dashed var(--accent-color);
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
}

.dashed-box span {
    font-family: monospace;
    color: var(--accent-color);
    font-size: 14px;
    word-break: break-all;
}

.icon-only-btn {
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: all 0.2s;
}

.icon-only-btn:hover {
    opacity: 1;
    color: var(--accent-color);
}

.action-icons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.danger-warning {
    color: #ff4b2b;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.settings-premium-modal .primary-btn {
    margin-left: auto;
    margin-right: auto;
    display: block;
}
.balance-value {
    transition: all 0.3s ease;
}

.balance-pulse {
    animation: balancePulseEffect 1s ease-out;
}

@keyframes balancePulseEffect {
    0% {
        color: #fff;
        transform: scale(1);
        text-shadow: none;
    }
    50% {
        color: var(--accent-color);
        transform: scale(1.05);
        text-shadow: 0 0 15px var(--accent-color);
    }
    100% {
        color: #fff;
        transform: scale(1);
        text-shadow: none;
    }
}

/* ── Trading Loader Animation ── */
.trading-loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid rgba(212, 175, 55, 0.2);
    margin-top: 10px;
    width: fit-content;
}

.spinner-ring {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(212, 175, 55, 0.1);
    border-top: 3px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    box-shadow: 0 0 15px rgba(212, 175, 55, 0.2);
}

.loader-text {
    font-size: 14px;
    font-weight: 500;
    color: var(--accent-color);
    letter-spacing: 0.05em;
    animation: pulseText 1.5s ease-in-out infinite;
}

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

@keyframes pulseText {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}
