/* ==========================================
   GLOBAL RESET & VARIANT ARCHITECTURE
   ========================================== */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Inter', sans-serif; 
}

:root {
    --bg-dark: #0a0a0c; 
    --text-main: #ffffff; 
    --text-muted: #888892;
    --glass-bg: rgba(20, 20, 25, 0.6); 
    --glass-border: rgba(255, 255, 255, 0.08);
    --flat-grey-bg: #141416; 
    --flat-grey-panel: #1c1c1f; 
    --flat-grey-border: #2a2a2e; 
    --flat-grey-input: #232326;
    --btn-theme: linear-gradient(-45deg, #9333ea, #6b21a8, #4ade80, #9333ea);
    --btn-green: #4ade80;
    --theme-purple: #9333ea;
    --up: #4ade80; 
    --up-bg: rgba(74, 222, 128, 0.15); 
    --down: #ef4444; 
    --down-bg: rgba(239, 68, 68, 0.15);
}

body { background-color: var(--bg-dark); color: var(--text-main); overflow-x: hidden; line-height: 1.6; }
html { scroll-behavior: smooth; }
.content-wrapper { width: 86%; max-width: 1800px; margin: 0 auto; }

/* ==========================================
   BACKGROUND ENGINE & TRANSITION OVERLAYS
   ========================================== */
#three-container { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -2; pointer-events: none; }
#hex-stream-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; pointer-events: none; overflow: hidden; }

.view-container { display: none; }
.view-container.active { display: block; animation: fadeIn 0.4s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.loader-spinner { display: inline-block; width: 30px; height: 30px; border: 3px solid rgba(255,255,255,0.1); border-radius: 50%; border-top-color: var(--theme-purple); animation: spin 1s ease-in-out infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.loader-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: var(--bg-dark); z-index: 9999; display: none; align-items: center; justify-content: center; opacity: 0; transition: opacity 0.3s ease; }
.loader-overlay.active { display: flex; opacity: 1; }
.loader-content { display: flex; flex-direction: column; align-items: center; gap: 30px; }

.block-loader { position: relative; width: 78px; height: 78px; transform: rotateX(-35deg) rotateY(45deg); transform-style: preserve-3d; }
.block-item { position: absolute; width: 24px; height: 24px; background: #a855f7; transform-style: preserve-3d; animation: blockBuild 3s ease-in-out infinite; }
.block-item::before { content: ''; position: absolute; top: 100%; left: 0; width: 24px; height: 24px; background: #7e22ce; transform-origin: top; transform: rotateX(-90deg); }
.block-item::after { content: ''; position: absolute; top: 0; left: 100%; width: 24px; height: 24px; background: #581c87; transform-origin: left; transform: rotateY(90deg); }
.b1 { top: 0; left: 0; animation-delay: 0s; } .b2 { top: 0; left: 26px; animation-delay: 0.15s; } .b3 { top: 0; left: 52px; animation-delay: 0.3s; }
.b4 { top: 26px; left: 0; animation-delay: 0.15s; } .b5 { top: 26px; left: 26px; animation-delay: 0.3s; } .b6 { top: 26px; left: 52px; animation-delay: 0.45s; }
.b7 { top: 52px; left: 0; animation-delay: 0.3s; } .b8 { top: 52px; left: 26px; animation-delay: 0.45s; } .b9 { top: 52px; left: 52px; animation-delay: 0.6s; }
@keyframes blockBuild { 0% { transform: translateZ(120px); opacity: 0; } 20%, 80% { transform: translateZ(0px); opacity: 1; } 100% { transform: translateZ(-120px); opacity: 0; } }

/* ==========================================
   PERSISTENT FIXED HEADER LAYOUT
   ========================================== */
.top-header { position: fixed; top: 0; left: 0; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 15px 2%; z-index: 1000; background: rgba(10, 10, 12, 0.85); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--glass-border); }
#main-content { padding-top: 80px; } 
.logo-container img { height: 44px; display: block; }

.nav-links { position: fixed; top: 0; left: 50%; transform: translateX(-50%); height: 75px; display: flex; align-items: center; gap: 30px; z-index: 1001; }
.nav-links a { color: var(--text-muted); text-decoration: none; font-size: 13px; font-weight: 600; transition: color 0.2s; display: flex; align-items: center; gap: 8px;}
.nav-links a svg { display: none; }
.nav-links a:hover, .nav-links a.active { color: var(--text-main); }

.flat-btn { background: transparent; color: var(--text-main); border: 1px solid var(--text-main); padding: 12px 24px; font-weight: 600; font-size: 13px; cursor: pointer; transition: transform 0.2s, opacity 0.2s; border-radius: 8px; text-align: center; }
.flat-btn.primary, .theme-gradient-btn, .execution-btn { background: var(--btn-theme); background-size: 300% 300%; animation: btnFlow 12s ease infinite; color: #fff; border: none; font-weight: 700; box-shadow: 0 4px 15px rgba(147, 51, 234, 0.2); }
.flat-btn.primary:hover, .theme-gradient-btn:hover, .execution-btn:hover { opacity: 0.9; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(74, 222, 128, 0.3); }

@keyframes btnFlow { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

/* ==========================================
   HERO DISPLAY (SPLIT LAYER CONFIG)
   ========================================== */
.hero-section { padding: 40px 0 60px 0; } 
.hero-layout { display: flex; align-items: center; gap: 50px; }
.hero-text-summary { flex: 0.8; padding-right: 20px; }
.hero-title { font-size: 42px; font-weight: 900; line-height: 1.1; margin-bottom: 16px; color: #fff; letter-spacing: -1px; }
.hero-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 30px; line-height: 1.6; }

.hero-visuals { flex: 1.2; display: flex; flex-direction: column; align-items: center; width: 100%; overflow: hidden; }
.hero-image-scroller { position: relative; width: 100%; height: auto; aspect-ratio: 6 / 1; border-radius: 20px; overflow: hidden; border: 1px solid var(--glass-border); background: var(--bg-dark); }
.scroller-track { display: flex; width: 300%; height: 100%; transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1); }
.scroller-slide { width: 33.3333%; height: 100%; }
.ad-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; } 

.slider-dots { display: flex; gap: 8px; margin-top: 16px; justify-content: center; width: 100%; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: rgba(255, 255, 255, 0.2); cursor: pointer; transition: 0.3s; }
.dot.active { background: var(--btn-green); width: 24px; border-radius: 4px; }

/* ==========================================
   TERMINAL INTERFACES & MARKET GRIDS
   ========================================== */
.terminal-preview-section { padding: 20px 0 40px 0; }
.section-heading { font-size: 32px; font-weight: 800; letter-spacing: -1px; }

.token-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.token-card { background: var(--flat-grey-panel); border: 1px solid var(--flat-grey-border); border-radius: 12px; padding: 20px; transition: 0.2s; position: relative; display: flex; flex-direction: column; justify-content: space-between; cursor: pointer; }
.token-card:hover { border-color: rgba(255,255,255,0.3); transform: translateY(-3px); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.token-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 20px;}
.token-card-left { display: flex; gap: 15px; align-items: center; }
.token-card .token-logo-wrap { width:48px; height:48px; min-width:48px; border-radius:10px; background:#1a1a20; overflow:hidden; display:flex; align-items:center; justify-content:center; }
.token-card .token-logo-wrap img { width:100%; height:100%; object-fit:cover; }
.token-card-title { font-weight: 800; font-size: 15px; line-height: 1.2; display: flex; flex-direction: column; align-items: flex-start;}
.token-card-badge { display: inline-block; background: rgba(255, 255, 255, 0.1); color: #fff; font-size: 10px; padding: 2px 6px; border-radius: 4px; margin-top: 5px; font-weight: 600;}
.token-card-change { font-size: 11px; font-family: 'JetBrains Mono', monospace; font-weight: 700; padding: 4px 8px; border-radius: 4px; }
.token-card-change.up { background: var(--up-bg); color: var(--up); }
.token-card-change.down { background: var(--down-bg); color: var(--down); }
.token-card-stats { margin-bottom: 15px; }
.stat-row { display: flex; justify-content: space-between; font-size: 12px; margin-bottom: 8px; color: var(--text-muted); }
.stat-row .val { color: var(--text-main); font-family: 'JetBrains Mono', monospace; font-size: 11px; }
.token-progress-bar { width: 100%; height: 6px; background: rgba(255,255,255,0.05); border-radius: 3px; overflow: hidden; margin-bottom: 6px;}
.token-progress-fill { height: 100%; background: var(--up); border-radius: 3px;}
.token-progress-text { text-align: right; font-size: 10px; color: var(--up); font-family: 'JetBrains Mono', monospace; }

/* ==========================================
   DYNAMIC LIQUIDITY PANELS & MATRIX DATA
   ========================================== */
.gradient-text { background: linear-gradient(135deg, #9333ea, #4ade80); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.liquidity-row { cursor: pointer; transition: background-color 0.2s; }
.liquidity-row:hover { background-color: rgba(255,255,255,0.03); }
.double-logo { display: inline-block; position: relative; width: 44px; height: 28px; vertical-align: middle; }
.double-logo img { width: 28px; height: 28px; border-radius: 50%; position: absolute; top: 0; background: #1a1a20; border: 2px solid var(--flat-grey-panel); object-fit: cover; }
.double-logo img:first-child { left: 0; z-index: 2; }
.double-logo img:last-child { left: 16px; z-index: 1; }

.glass-table-wrapper { background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 12px; overflow-x: auto; -webkit-overflow-scrolling: touch; backdrop-filter: blur(10px); margin-bottom: 30px; }
.preview-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 700px; }
.preview-table th { padding: 20px; font-size: 12px; color: var(--text-muted); text-transform: uppercase; border-bottom: 1px solid var(--glass-border); }
.preview-table td { padding: 16px 20px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.02); vertical-align: middle;}
.val-mono { font-family: 'JetBrains Mono', monospace; font-size: 13px;}
.text-up { color: var(--up); } .text-down { color: var(--down); }

/* ==========================================
   PANEL MODULES & ATOMIC INPUTS
   ========================================== */
.flat-grey-panel { width: 100%; background-color: var(--flat-grey-panel); border: 1px solid var(--flat-grey-border); padding: 50px; border-radius: 16px;}
.form-group { margin-bottom: 25px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.flat-input { width: 100%; background: var(--flat-grey-input); color: var(--text-main); border: 1px solid var(--flat-grey-border); padding: 14px; font-size: 14px; outline: none; border-radius: 8px;}

/* ==========================================
   LAUNCHPAD ARCHITECT
   ========================================== */
.launch-fullscreen-wrapper { min-height: calc(100vh - 80px); display: flex; align-items: center; justify-content: center; padding: 20px 0; }
.launch-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; background: var(--flat-grey-panel); padding: 50px; border-radius: 16px; border: 1px solid var(--flat-grey-border); max-width: 1200px; width: 100%; box-shadow: 0 20px 40px rgba(0,0,0,0.5); }
.panel-header h2 { font-size: 28px; font-weight: 900; }
.panel-subtitle { color: var(--text-muted); font-size: 14px; margin-bottom: 20px; }
.warning-banner { background: rgba(239, 68, 68, 0.1); border: 1px solid rgba(239, 68, 68, 0.3); color: #ff8a8a; padding: 12px; font-size: 12px; border-radius: 8px; margin-bottom: 30px; font-weight: 600;}

.upload-preview { width: 100%; height: 200px; background: var(--flat-grey-input); border: 2px dashed var(--flat-grey-border); border-radius: 12px; display: flex; align-items: center; justify-content: center; cursor: pointer; position: relative; margin-bottom: 25px; transition: 0.2s; overflow: hidden; }
.upload-preview:hover { border-color: var(--btn-green); background: rgba(74, 222, 128, 0.05); }
.upload-preview span { color: var(--text-muted); font-size: 14px; font-weight: 600; pointer-events: none; z-index: 2; position: absolute;}

.toggles-wrapper { display: flex; flex-direction: column; gap: 15px; margin-bottom: 30px; }
.flat-toggle-card { display: flex; justify-content: space-between; align-items: center; background: var(--flat-grey-input); padding: 15px 20px; border-radius: 8px; border: 1px solid var(--flat-grey-border); }
.toggle-info strong { display: block; font-size: 14px; margin-bottom: 4px; color: var(--text-main); }
.toggle-info p { font-size: 12px; color: var(--text-muted); margin: 0; }
.tag-coming-soon { background: rgba(234, 179, 8, 0.15); color: #facc15; font-size: 9px; padding: 3px 6px; border-radius: 4px; margin-left: 8px; vertical-align: middle; font-weight: 700; border: 1px solid rgba(234, 179, 8, 0.3); }

.flat-switch { position: relative; display: inline-block; width: 44px; height: 24px; flex-shrink: 0; }
.flat-switch input { opacity: 0; width: 0; height: 0; }
.flat-switch .switch-slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: var(--bg-dark); transition: .4s; border-radius: 24px; border: 1px solid var(--flat-grey-border); }
.flat-switch .switch-slider:before { position: absolute; content: ""; height: 16px; width: 16px; left: 3px; bottom: 3px; background-color: var(--text-muted); transition: .4s; border-radius: 50%; }
.flat-switch input:checked + .switch-slider { background: var(--btn-theme); background-size: 300% 300%; animation: btnFlow 12s ease infinite; border-color: transparent; }
.flat-switch input:checked + .switch-slider:before { transform: translateX(20px); background-color: #fff; }

.launch-btn { margin-top: 15px; font-size: 18px; padding: 20px; }

/* Custom Slider for Launchpad */
.custom-slider {
    -webkit-appearance: none;
    appearance: none;
    background: var(--flat-grey-border);
    height: 6px;
    border-radius: 3px;
    outline: none;
}
.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--btn-theme);
    cursor: pointer;
}

/* Tag Button Interactions */
.detail-tab { display: flex; align-items: center; gap: 8px; background: transparent; border: none; color: var(--text-muted); padding: 10px 20px; font-size: 14px; font-weight: 600; border-radius: 8px; cursor: pointer; transition: 0.2s; white-space: nowrap; }
.detail-tab:hover { background: rgba(255,255,255,0.03); }
.tag-btn { border: 1px solid var(--flat-grey-border); }
.tag-btn.hidden { display: none !important; }

/* Interactive Tag Input Field */
.tag-input-container { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 8px 14px; min-height: 46px; background: var(--flat-grey-input); border: 1px solid var(--flat-grey-border); border-radius: 8px; transition: border-color 0.2s; }
.tag-input-container:focus-within { border-color: var(--btn-green); }
.tag-input-container input { background: transparent; border: none; color: #fff; outline: none; font-size: 13px; flex: 1; min-width: 80px; }

.tag-chip { display: inline-flex; align-items: center; gap: 6px; background: rgba(147, 51, 234, 0.15); color: #d8b4fe; border: 1px solid rgba(147, 51, 234, 0.3); padding: 4px 10px; border-radius: 6px; font-size: 12px; font-weight: 600; }
.tag-chip .remove-tag { cursor: pointer; font-weight: bold; font-size: 14px; line-height: 1; opacity: 0.7; transition: opacity 0.2s; }
.tag-chip .remove-tag:hover { opacity: 1; }

/* ==========================================
   FOOTER SCROLLER & DISCLAIMER
   ========================================== */
.main-footer { margin-top: 20px; padding-bottom: 40px; }

.partner-scroller { 
    overflow: hidden; 
    white-space: nowrap; 
    width: 100%; 
    border-top: 1px solid var(--glass-border); 
    border-bottom: 1px solid var(--glass-border);
    padding: 30px 0; 
    background: #0d0d10; 
    margin-bottom: 40px;
}
.partner-track { display: inline-block; animation: scrollMarquee 25s linear infinite; }
.partner-item { 
    display: inline-flex; 
    align-items: center; 
    gap: 12px; 
    margin: 0 40px; 
    font-weight: 700; 
    color: var(--text-muted); 
    font-size: 14px; 
    text-transform: uppercase; 
    letter-spacing: 1px; 
    transition: 0.3s;
}
.partner-item img, .partner-item svg { height: 26px; filter: grayscale(100%) opacity(0.5); transition: 0.3s; }
.partner-item:hover img, .partner-item:hover svg { filter: grayscale(0%) opacity(1); }
.partner-item:hover { color: #fff; }

@keyframes scrollMarquee { 
    0% { transform: translateX(0); } 
    100% { transform: translateX(-50%); } 
}

/* ==========================================
   MODAL PLATFORMS
   ========================================== */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.9); z-index: 2000; display: none; justify-content: center; align-items: center; padding: 20px;}
.modal-overlay.active { display: flex; }

/* Reown-style Connect Wallet modal */
.connect-wallet-overlay {
    z-index: 3100;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    padding: 24px;
}
.connect-wallet-panel {
    width: 100%;
    max-width: 400px;
    background: #141414;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.65);
    overflow: hidden;
    font-family: 'Inter', system-ui, sans-serif;
}
.connect-wallet-top {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    padding: 18px 14px 12px;
    gap: 8px;
}
.connect-wallet-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
}
.connect-wallet-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}
.connect-wallet-close {
    font-size: 22px;
    font-weight: 300;
}
.connect-wallet-title {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
    text-align: center;
    color: #fff;
    letter-spacing: -0.02em;
}
.connect-wallet-list {
    list-style: none;
    margin: 0;
    padding: 4px 12px 8px;
}
.connect-wallet-list li {
    margin: 0;
    padding: 0;
}
.connect-wallet-row {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 12px;
    margin: 2px 0;
    border: none;
    border-radius: 18px;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.15s;
}
.connect-wallet-row:focus-visible {
    outline: 2px solid #3396ff;
    outline-offset: 2px;
}
.connect-wallet-icon-wrap {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #1f1f22;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.connect-wallet-icon-wrap img {
    width: 28px;
    height: 28px;
    object-fit: contain;
}
.connect-wallet-icon-ledger {
    color: rgba(255, 255, 255, 0.85);
}
.connect-wallet-name {
    flex: 1;
    min-width: 0;
}
.connect-wallet-tag {
    flex-shrink: 0;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 5px 9px;
    border-radius: 8px;
    background: #3396ff;
    color: #fff;
}
.connect-wallet-tag--hardware {
    background: #3396ff;
}
.connect-wallet-search-wrap {
    padding: 0 16px 14px;
}
.connect-wallet-search {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #1a1a1c;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 18px;
}
.connect-wallet-search-icon {
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.35);
}
.connect-wallet-search-input {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-family: inherit;
    outline: none;
}
.connect-wallet-search-input::placeholder {
    color: rgba(255, 255, 255, 0.35);
}
.connect-wallet-search-count {
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    font-variant-numeric: tabular-nums;
}
.connect-wallet-status {
    margin: 0 16px 12px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.connect-wallet-status[hidden] {
    display: none !important;
}
.connect-wallet-status--error {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}
.connect-wallet-status--warn {
    background: rgba(250, 204, 21, 0.1);
    border-color: rgba(250, 204, 21, 0.25);
    color: #fef08a;
}
.connect-wallet-status a {
    color: #7dd3fc;
    font-weight: 600;
    text-decoration: underline;
}
.connect-wallet-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 16px 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 13px;
    color: rgba(255, 255, 255, 0.38);
}
.connect-wallet-footer-ux {
    font-weight: 400;
}
.connect-wallet-reown {
    font-weight: 700;
    font-size: 15px;
    letter-spacing: -0.01em;
    background: linear-gradient(90deg, #3396ff 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Simulated wallet extension approval (Phantom / Solflare style) */
.wallet-sign-panel {
    width: 100%;
    max-width: 360px;
    background: #1c1c1e;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 28px 24px 22px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7);
    font-family: 'Inter', system-ui, sans-serif;
}
.wallet-sign-brands {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 22px;
}
.wallet-sign-brand-img {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    object-fit: cover;
}
.wallet-sign-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    color: #fff;
}
.wallet-sign-desc {
    margin: 0 0 18px;
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
}
.wallet-sign-perms {
    list-style: none;
    margin: 0 0 22px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.6;
}
.wallet-sign-perms li {
    padding: 4px 0;
    padding-left: 18px;
    position: relative;
}
.wallet-sign-perms li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #4ade80;
    font-size: 11px;
}
.wallet-sign-actions {
    display: flex;
    gap: 10px;
}
.wallet-sign-cancel,
.wallet-sign-approve {
    flex: 1;
    padding: 12px 16px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.wallet-sign-cancel {
    border-color: rgba(255, 255, 255, 0.2) !important;
    background: transparent !important;
}
.modal-content { width: 100%; max-width: 1600px; height: 95vh; background: var(--glass-bg); border: 1px solid var(--glass-border); border-radius: 8px; display: flex; flex-direction: column; backdrop-filter: blur(20px);}
.modal-header { padding: 15px 20px; border-bottom: 1px solid var(--glass-border); display: flex; justify-content: space-between; align-items: center; }
.close-btn { background: transparent; border: none; color: #fff; font-size: 28px; cursor: pointer; line-height: 1;}
.iframe-container { flex: 1; width: 100%; height: 100%; }
.iframe-container iframe { width: 100%; height: 100%; border: none; border-bottom-left-radius: 8px; border-bottom-right-radius: 8px; }

.chart-modal-content {
    max-width: 1100px;
    width: 100%;
    height: min(88vh, 820px);
    max-height: 88vh;
}
.chart-modal-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}
.chart-modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}
.chart-modal-title img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a20;
}
.chart-modal-symbol {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}
.chart-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 20px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.25);
}
.chart-toolbar-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.chart-toolbar-label {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}
.chart-segment {
    display: flex;
    gap: 4px;
    padding: 3px;
    background: #1a1a1c;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.chart-segment-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 7px;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, color 0.15s;
}
.chart-segment-btn:hover {
    color: #fff;
}
.chart-segment-btn.active {
    background: rgba(168, 85, 247, 0.25);
    color: #e9d5ff;
}
.chart-toolbar-group--tf .chart-segment-btn {
    padding: 6px 8px;
    min-width: 36px;
}
.chart-live-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-left: auto;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}
.chart-live-stats span {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.chart-live-stats label {
    font-size: 9px;
    text-transform: uppercase;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}
.chart-live-stats b.up { color: var(--btn-green); }
.chart-live-stats b.down { color: #ef4444; }
.internal-chart-container {
    flex: 1;
    min-height: 320px;
    width: 100%;
    position: relative;
}

/* ==========================================
   RESPONSIVE OVERRIDES
   ========================================== */
@media (max-width: 992px) {
    .hero-search-bar { max-width: 500px; margin: 0 auto; }
}

@media (max-width: 768px) {
    .top-header { position: fixed; } 
    #main-content { padding-bottom: 0px; } 

    .nav-links { position: fixed; top: auto; bottom: 0; left: 0; width: 100%; height: auto; transform: none; background: rgba(10, 10, 12, 0.95); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-top: 1px solid var(--glass-border); padding: 10px 4% calc(10px + env(safe-area-inset-bottom, 15px)); display: flex; justify-content: space-between; align-items: flex-end; gap: 0; z-index: 2000; }
    .nav-links a { flex: 1; flex-direction: column; align-items: center; justify-content: center; font-size: 10px; gap: 5px; min-width: 0; padding: 4px 2px; text-align: center; }
    .nav-links a svg { display: block; width: 22px; height: 22px; flex-shrink: 0; opacity: 0.55; transition: opacity 0.2s, color 0.2s; }
    .nav-links a span { line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
    .nav-links a:hover svg,
    .nav-links a.active svg { opacity: 1; }
    .nav-links a.active { color: var(--btn-green); }
    .nav-links a.active svg { color: var(--btn-green); }
    .nav-links a.nav-settings-link { display: none; }
    
    .hero-layout { display: block; }
    .hero-section { padding: 20px 0 10px 0; } 
    .hero-text-summary { display: none; } 
    .hero-visuals { flex: 1; width: 100%; }
    .hero-image-scroller { aspect-ratio: 6 / 1; border-radius: 12px; margin-top: 10px; } 

    .terminal-preview-section { padding: 10px 0 25px 0; }
    
    .token-grid { grid-template-columns: 1fr; gap: 10px; } 
    .token-card { padding: 12px; display: grid; grid-template-columns: 44px 1fr auto; grid-template-rows: auto auto auto; grid-template-areas: "logo title change" "logo stats stats" "logo progress progress"; gap: 4px 12px; align-items: center; border-radius: 8px; }
    .token-card-header, .token-card-left { display: contents; }
    .token-card .token-logo-wrap { grid-area: logo; width: 44px; height: 44px; min-width: 44px; border-radius: 8px; align-self: start; }
    .token-card-title { grid-area: title; flex-direction: row; gap: 8px; align-items: center; margin-bottom: 0;} 
    .token-card-title span { font-size: 13px; }
    .token-card-badge { margin-top: 0; font-size: 8px; padding: 2px 4px; }
    .token-card-change { grid-area: change; align-self: start; font-size: 10px; padding: 2px 6px; }
    .token-card-stats { grid-area: stats; margin-bottom: 0; }
    .stat-row { margin-bottom: 2px; font-size: 10px; }
    .stat-row .val { font-size: 10px; }
    .token-progress-container { grid-area: progress; display: flex; align-items: center; gap: 8px; margin-top: 4px; margin-bottom: 0;}
    .token-progress-bar { flex: 1; margin-bottom: 0; height: 4px; }
    .token-progress-text { font-size: 9px; display: inline-block; margin-bottom: 0; }

    .modal-content { height: 95vh; margin-top: 10px;}
    .chart-modal-content { height: 92vh; }
    .chart-toolbar { flex-direction: column; align-items: stretch; }
    .chart-live-stats { margin-left: 0; width: 100%; }
    .chart-toolbar-group--tf .chart-segment { flex-wrap: wrap; }
    .internal-chart-container { min-height: 240px; }
    .content-wrapper { width: 92%; } 
    .launch-grid { grid-template-columns: 1fr; gap: 30px; padding: 25px; margin-bottom: 40px; }
    .upload-preview { height: 160px; }
    .social-links-grid { grid-template-columns: 1fr !important; gap: 0 !important; }
    .flat-toggle-card { align-items: flex-start; gap: 12px; padding: 12px 15px;}
    .flat-switch { align-self: flex-end; margin-top: -24px; }
    
    .main-footer { margin-top: 0px; padding-bottom: 100px; }
    .partner-scroller { padding: 15px 0; margin-bottom: 20px; }
    .partner-item { margin: 0 20px; font-size: 12px; }
    .partner-item img, .partner-item svg { height: 20px; }
}

.wallet-sign-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ==========================================
   WALLET DROPDOWN — PHANTOM PANEL
   ========================================== */
.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1002;
    overflow: visible;
}
.wallet-dropdown-container {
    position: relative;
    display: inline-block;
    z-index: 1002;
    overflow: visible;
}
.top-header {
    overflow: visible;
}
.wallet-btn-connected {
    background: #1a1a20; 
    border: 1px solid #333; 
    padding: 6px 14px 6px 6px; 
    border-radius: 24px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    cursor: pointer; 
    transition: 0.2s;
}
.phantom-wallet-pill {
    background: #1c1c1f;
    border: 1px solid #2e2e34;
    padding: 5px 12px 5px 5px;
    border-radius: 999px;
    gap: 8px;
}
.phantom-wallet-pill:hover {
    background: #252528;
    border-color: #3d3d45;
}
.phantom-ghost-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ab9ff2 0%, #7c6ee4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
}
.phantom-ghost-badge img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}
.phantom-pill-chevron {
    color: #888;
    flex-shrink: 0;
}
.wallet-btn-connected:hover {
    background: #232326;
}
.phantom-wallet-pill:hover {
    background: #252528;
}
.wallet-icon-wrap {
    width: 28px; 
    height: 28px; 
    background: transparent;
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center;
}
.wallet-address-txt {
    font-family: 'JetBrains Mono', monospace; 
    font-size: 13px; 
    color: #fff; 
    font-weight: 600;
}
/* --- Phantom wallet panel (screenshot palette) --- */
#walletDropdownMenu.phantom-wallet-panel {
    --pw-bg: #111111;
    --pw-surface: #1c1c1c;
    --pw-surface-2: #222222;
    --pw-accent: #ab9ff2;
    --pw-muted: #999999;
    --pw-muted-icon: #6e6e78;
    --pw-green: #30d158;
    --pw-text: #ffffff;
    --pw-border: #1f1f1f;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 390px;
    min-width: 390px;
    max-width: 390px;
    max-height: min(92vh, 820px);
    padding: 16px;
    background: var(--pw-bg);
    border: 1px solid var(--pw-border);
    border-radius: 20px;
    box-shadow: 0 20px 56px rgba(0, 0, 0, 0.72);
    display: none;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    z-index: 5000;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--pw-text);
    isolation: isolate;
}
#walletDropdownMenu.phantom-wallet-panel.active {
    display: flex;
    animation: fadeIn 0.2s ease-out;
}
#walletDropdownMenu.phantom-wallet-panel,
#walletDropdownMenu.phantom-wallet-panel * {
    box-sizing: border-box;
}
#walletDropdownMenu.phantom-wallet-panel button {
    font-family: inherit;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu.phantom-wallet-panel img {
    display: block;
    flex-shrink: 0;
    border: none;
    filter: none;
    max-width: 100%;
}
#walletDropdownMenu .phantom-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
    padding: 0 0 12px;
    gap: 10px;
}
#walletDropdownMenu .phantom-account-pill {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
    color: #fff;
    font-family: inherit;
    cursor: pointer;
    min-width: 0;
    flex: 1;
    text-align: left;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu .phantom-account-avatar {
    width: 40px;
    height: 40px;
    min-width: 40px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a2a2a;
}
#walletDropdownMenu .phantom-account-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
#walletDropdownMenu .phantom-account-handle {
    font-size: 12px;
    color: var(--pw-muted);
    font-weight: 500;
    line-height: 1.2;
}
#walletDropdownMenu .phantom-account-sub,
#walletDropdownMenu .phantom-account-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pw-text);
    line-height: 1.2;
}
#walletDropdownMenu .phantom-account-name-row {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
#walletDropdownMenu .phantom-copy-icon {
    width: 14px;
    height: 14px;
    object-fit: contain;
    opacity: 0.55;
}
/* Header utility icons — muted grey (not purple) */
#walletDropdownMenu .phantom-header-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    opacity: 0.7;
}
#walletDropdownMenu .phantom-icon-btn svg {
    color: var(--pw-muted-icon);
    stroke: currentColor;
}
#walletDropdownMenu .phantom-header-icons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}
#walletDropdownMenu .phantom-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu .phantom-icon-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    transform: none;
}
#walletDropdownMenu .phantom-balance-block {
    text-align: center;
    flex-shrink: 0;
    padding: 0 0 18px;
}
#walletDropdownMenu .phantom-total-balance {
    display: block;
    font-size: 48px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: -0.03em;
    line-height: 1.05;
}
#walletDropdownMenu .phantom-balance-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
}
#walletDropdownMenu .phantom-balance-change-abs {
    font-size: 14px;
    font-weight: 500;
    color: var(--pw-green);
}
#walletDropdownMenu .phantom-balance-change-pill {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-green);
    background: rgba(48, 209, 88, 0.14);
    padding: 3px 8px;
    border-radius: 999px;
}
/* Action buttons — 4-column grid */
#walletDropdownMenu .phantom-action-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 0 0 16px;
    flex-shrink: 0;
    width: 100%;
}
#walletDropdownMenu .phantom-action-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-width: 0;
    min-height: 72px;
    padding: 12px 6px;
    margin: 0;
    background: var(--pw-surface);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: background 0.15s;
}
#walletDropdownMenu .phantom-action-btn:hover {
    background: #252525;
    transform: none;
    opacity: 1;
}
/* Action icons — show PNGs as-is (no CSS filter; filters caused white boxes) */
#walletDropdownMenu .phantom-action-btn .action-icon {
    width: 24px;
    height: 24px;
    min-width: 24px;
    min-height: 24px;
    margin-bottom: 6px;
    object-fit: contain;
    background: transparent;
    filter: none;
}
#walletDropdownMenu .phantom-action-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--pw-text);
    line-height: 1.2;
}
#walletDropdownMenu .phantom-terminal-banner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 12px;
    margin: 0 0 16px;
    padding: 12px 14px;
    background: var(--pw-surface);
    border-radius: 16px;
    flex-shrink: 0;
}
#walletDropdownMenu .phantom-terminal-banner.is-hidden {
    display: none;
}
#walletDropdownMenu .terminal-banner-icon {
    width: 40px;
    height: 40px;
    min-width: 40px;
    object-fit: contain;
    border-radius: 10px;
}
#walletDropdownMenu .terminal-banner-text {
    flex: 1;
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    line-height: 1.35;
}
#walletDropdownMenu .terminal-banner-close {
    background: none;
    border: none;
    color: #888;
    font-size: 18px;
    line-height: 1;
    padding: 4px;
    cursor: pointer;
    box-shadow: none;
    animation: none;
}
/* Tabs */
#walletDropdownMenu .phantom-tabs {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 0 12px;
    flex-shrink: 0;
    width: 100%;
}
#walletDropdownMenu .phantom-tabs-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 18px;
}
#walletDropdownMenu .phantom-tab {
    background: none;
    border: none;
    color: var(--pw-muted);
    font-size: 15px;
    font-weight: 600;
    padding: 6px 0;
    margin: 0;
    cursor: pointer;
    font-family: inherit;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu .phantom-tab.active {
    color: var(--pw-text);
}
#walletDropdownMenu .phantom-tab-menu {
    background: none;
    border: none;
    color: var(--pw-muted);
    font-size: 20px;
    line-height: 1;
    padding: 0 4px;
    cursor: pointer;
    box-shadow: none;
    animation: none;
}

/* Token list */
#walletDropdownMenu .phantom-asset-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1 1 auto;
    overflow-x: hidden;
    overflow-y: auto;
    padding: 0;
    min-height: 0;
    max-height: 300px;
    width: 100%;
    scrollbar-width: thin;
    scrollbar-color: #333333 transparent;
}
#walletDropdownMenu .phantom-asset-list::-webkit-scrollbar {
    width: 4px;
}
#walletDropdownMenu .phantom-asset-list::-webkit-scrollbar-thumb {
    background: #333333;
    border-radius: 4px;
}

/* Token row — rounded card, flex space-between */
#walletDropdownMenu .phantom-asset-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 12px 14px;
    background: var(--pw-surface);
    border-radius: 16px;
    flex-shrink: 0;
}
#walletDropdownMenu .phantom-asset-left {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1 1 auto;
    min-width: 0;
    margin-right: 12px;
}
#walletDropdownMenu .token-logo,
#walletDropdownMenu .phantom-asset-logo {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 12px;
    flex-shrink: 0;
    background: #2a2a2a;
}
#walletDropdownMenu .phantom-asset-mid {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 4px;
    min-width: 0;
    overflow: hidden;
}
#walletDropdownMenu .phantom-asset-name-row {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 5px;
    min-width: 0;
    max-width: 100%;
}
#walletDropdownMenu .phantom-asset-name {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
#walletDropdownMenu .phantom-verified-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    object-fit: contain;
    flex-shrink: 0;
}
#walletDropdownMenu .phantom-asset-amt {
    font-size: 13px;
    font-weight: 500;
    color: var(--pw-muted);
    line-height: 1.2;
}
#walletDropdownMenu .phantom-asset-usd-sub {
    font-size: 13px;
    font-weight: 500;
    color: var(--pw-green);
    line-height: 1.2;
}
#walletDropdownMenu .phantom-asset-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 4px;
    flex: 0 0 auto;
    text-align: right;
}
#walletDropdownMenu .phantom-asset-usd {
    font-size: 15px;
    font-weight: 700;
    color: #ffffff;
    white-space: nowrap;
    line-height: 1.2;
}
#walletDropdownMenu .phantom-asset-change {
    font-size: 13px;
    font-weight: 500;
    color: var(--pw-green);
    white-space: nowrap;
    line-height: 1.2;
}
#walletDropdownMenu .phantom-asset-change.is-flat {
    color: var(--pw-muted);
}
/* Purple verified badge — CSS fallback when PNG missing */
#walletDropdownMenu .phantom-verified,
#walletDropdownMenu .phantom-verified-icon {
    width: 14px;
    height: 14px;
    min-width: 14px;
    min-height: 14px;
    flex-shrink: 0;
    object-fit: contain;
}
#walletDropdownMenu .phantom-verified {
    display: inline-block;
    border-radius: 50%;
    background: var(--pw-accent);
    position: relative;
}
#walletDropdownMenu .phantom-verified::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 2px;
    width: 4px;
    height: 7px;
    border: solid #111111;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
#walletDropdownMenu .phantom-bottom-nav {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    flex-shrink: 0;
    padding: 14px 8px 4px;
    margin-top: 8px;
    border-top: 1px solid #1a1a1a;
    background: #111111;
    width: 100%;
}
#walletDropdownMenu .phantom-nav-item {
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    padding: 6px 12px;
    margin: 0;
    cursor: pointer;
    border-radius: 10px;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu .phantom-nav-icon {
    width: 26px;
    height: 26px;
    min-width: 26px;
    min-height: 26px;
    object-fit: contain;
    background: transparent;
    filter: none;
    opacity: 0.55;
}
#walletDropdownMenu .phantom-nav-item.active .phantom-nav-icon {
    opacity: 1;
}
#walletDropdownMenu .phantom-nav-item:hover {
    background: transparent;
    transform: none;
}
#walletDropdownMenu .phantom-disconnect-row {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    flex-shrink: 0;
    padding: 12px 0 0;
    margin: 0;
    background: transparent;
    border: none;
    border-top: none;
    color: #999999;
    font-size: 12px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    box-shadow: none;
    animation: none;
}
#walletDropdownMenu .phantom-disconnect-row:hover {
    color: #ef4444;
    background: transparent;
    transform: none;
}

@media (max-width: 480px) {
    #walletDropdownMenu.phantom-wallet-panel {
        width: min(390px, calc(100vw - 20px));
        min-width: min(390px, calc(100vw - 20px));
        max-width: min(390px, calc(100vw - 20px));
        right: -8px;
    }
}

/* Settings Page Styling */
#view-settings h3 { font-size: 18px; margin-bottom: 15px; }

.wallet-card { 
    display: flex; align-items: center; justify-content: space-between; 
    padding: 15px; background: #232326; border: 1px solid #2a2a2e; 
    border-radius: 8px; cursor: pointer; transition: 0.2s; 
}
.wallet-card:hover { border-color: var(--btn-green); }
.wallet-card.active { border-color: var(--btn-green); background: rgba(74, 222, 128, 0.05); }

/* Phantom extension-style modals */
.phantom-modal-overlay {
    z-index: 3100;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(4px);
}
.phantom-popup {
    width: 100%;
    max-width: 360px;
    background: #1a1a20;
    border: 1px solid #2a2a32;
    border-radius: 16px;
    padding: 20px 20px 16px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.75);
    font-family: 'Inter', system-ui, sans-serif;
}
.phantom-popup-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}
.phantom-popup-logo {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}
.phantom-popup-brand-name {
    font-size: 15px;
    font-weight: 600;
    color: #fff;
}
.phantom-popup-title {
    margin: 0 0 16px;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
}
.phantom-account-select {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 40px 14px 14px;
    background: #252530;
    border: 2px solid #ab9ff2;
    border-radius: 12px;
    cursor: pointer;
    position: relative;
    text-align: left;
    font-family: inherit;
    margin-bottom: 14px;
}
.phantom-account-select svg {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #888;
}
.phantom-account-handle {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}
.phantom-account-label {
    font-size: 12px;
    color: #888;
}
.phantom-trust-warning {
    margin: 0 0 20px;
    font-size: 13px;
    color: #888;
    line-height: 1.4;
}
.phantom-field-box {
    background: #121218;
    border: 1px solid #2a2a32;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
}
.phantom-field-label {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
}
.phantom-field-value {
    margin: 0;
    font-size: 13px;
    color: #e5e5e5;
    line-height: 1.45;
    word-break: break-word;
}
.phantom-field-value--network {
    color: #ab9ff2;
    font-weight: 600;
}
.phantom-popup-actions {
    display: flex;
    gap: 10px;
    margin-top: 8px;
}
.phantom-btn {
    flex: 1;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}
.phantom-btn--ghost {
    background: #2a2a32;
    color: #fff;
}
.phantom-btn--ghost:hover {
    background: #35353f;
}
.phantom-btn--primary {
    background: #ab9ff2;
    color: #1a1028;
}
.phantom-btn--primary:hover {
    background: #bdb3f7;
}

/* DexScreener-style terminal (My Tokens) */
.dex-view-wrapper {
    padding-top: 75px;
    padding-bottom: 100px;
    max-width: 1400px;
}
.dex-terminal[hidden] {
    display: none !important;
}
.dex-back-btn {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 16px;
    padding: 0;
    font-family: inherit;
}
.dex-back-btn:hover {
    color: #fff;
}
.dex-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 16px;
    align-items: start;
}
.dex-main {
    background: #0e0e10;
    border: 1px solid #1f1f24;
    border-radius: 8px;
    overflow: hidden;
    min-width: 0;
}
.dex-ds-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-bottom: 1px solid #1f1f24;
    background: #0e0e10;
    flex-wrap: wrap;
}
.dex-ds-toolbar-left,
.dex-ds-toolbar-right {
    display: flex;
    align-items: center;
    gap: 4px;
}
.dex-ds-toolbar-center {
    display: flex;
    align-items: center;
    gap: 2px;
    flex: 1;
    justify-content: center;
    flex-wrap: wrap;
}
.dex-ds-icon-btn {
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 6px;
    background: #1a1a1e;
    color: #888;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dex-ds-icon-btn:hover { color: #fff; background: #252528; }
.dex-ds-tf-btn {
    border: none;
    background: transparent;
    color: #888;
    font-size: 11px;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'JetBrains Mono', monospace;
}
.dex-ds-tf-btn:hover { color: #ccc; }
.dex-ds-tf-btn.active {
    background: #2962ff;
    color: #fff;
}
.dex-ds-toggle-group {
    display: flex;
    background: #1a1a1e;
    border-radius: 6px;
    padding: 2px;
    border: 1px solid #2a2a2e;
}
.dex-ds-toggle-btn {
    border: none;
    background: transparent;
    color: #888;
    font-size: 10px;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 4px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dex-ds-toggle-btn.active {
    background: #2962ff;
    color: #fff;
}
.dex-ds-toolbar-right {
    margin-left: auto;
    gap: 8px;
}
.dex-chart-wrap {
    height: 340px;
    width: 100%;
    position: relative;
}
.chart-scroll-wrapper {
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    background: #0d0d12;
    cursor: crosshair;
}
#tokenChartCanvas {
    display: block;
    height: 320px;
    max-height: 100%;
}
.chart-tooltip {
    position: absolute;
    z-index: 20;
    pointer-events: none;
    min-width: 168px;
    padding: 10px 12px;
    background: rgba(18, 18, 22, 0.96);
    border: 1px solid #2a2a2e;
    border-radius: 6px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    line-height: 1.55;
    color: #ccc;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}
.chart-tooltip strong {
    display: block;
    color: #fff;
    font-size: 11px;
    margin-bottom: 6px;
    font-weight: 700;
}
.chart-tooltip .tt-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
}
.chart-tooltip .tt-bull { color: #4ade80; }
.chart-tooltip .tt-bear { color: #ef4444; }
.dex-withdraw-panel {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #1f1f24;
}
.dex-withdraw-label {
    display: block;
    font-size: 11px;
    color: #888;
    font-weight: 600;
    margin-bottom: 10px;
}
.rug-slider {
    width: 100%;
    margin: 8px 0 12px;
    accent-color: #ef4444;
}
.rug-withdraw-wrap {
    margin-top: 10px;
}
.rug-withdraw-wrap label {
    font-size: 11px;
    color: #888;
    display: block;
    margin-bottom: 6px;
}
.rug-confirm-btn {
    width: 100%;
    margin-top: 8px;
    padding: 8px;
    font-size: 11px;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}
.dex-withdraw-confirm {
    width: 100%;
    padding: 10px;
    font-size: 12px;
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
}
.dex-buy { color: #4ade80; font-weight: 700; }
.dex-sell { color: #f87171; font-weight: 700; }
.dex-empty { text-align: center; color: #666; padding: 24px; }
.token-card.rugged { opacity: 0.75; }
.dex-trades-panel {
    border-top: 1px solid #1f1f24;
}
.dex-trades-tabs {
    padding: 10px 12px 0;
    border-bottom: 1px solid #1f1f24;
}
.dex-trades-tab {
    font-size: 12px;
    font-weight: 700;
    color: #fff;
    padding-bottom: 8px;
    border-bottom: 2px solid #4ade80;
    display: inline-block;
}
.dex-trades-scroll {
    max-height: 220px;
    overflow: auto;
}
.dex-trades-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
    font-family: 'JetBrains Mono', monospace;
}
.dex-trades-table th {
    position: sticky;
    top: 0;
    background: #121214;
    color: #666;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    font-size: 10px;
    letter-spacing: 0.04em;
    z-index: 1;
}
.dex-trades-table td {
    padding: 7px 10px;
    border-bottom: 1px solid #1a1a1e;
    color: #ccc;
    white-space: nowrap;
}
.dex-terminal,
.dex-terminal .dex-trades-table,
.dex-terminal .dex-ds-tf-btn,
.dex-terminal .dex-stat-val {
    font-weight: 600;
}
.dex-trades-table th {
    font-weight: 700;
}
.dex-trades-table td {
    font-weight: 600;
}
.dex-trades-table tr.dex-trade-buy td,
.dex-trades-table td.dex-buy {
    color: #26a69a !important;
}
.dex-trades-table tr.dex-trade-sell td,
.dex-trades-table td.dex-sell {
    color: #ef5350 !important;
}
.dex-buy { color: #26a69a !important; font-weight: 700; }
.dex-sell { color: #ef5350 !important; font-weight: 700; }
.chart-scroll-wrapper {
    background: #131722;
}
.dex-sidebar {
    background: #0e0e10;
    border: 1px solid #1f1f24;
    border-radius: 8px;
    padding: 16px;
    position: sticky;
    top: 85px;
}
.dex-token-hero {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 16px;
    border-bottom: 1px solid #1f1f24;
}
.dex-token-logo {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    background: #1a1a20;
}
.dex-token-hero h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}
.dex-token-symbol {
    font-size: 12px;
    color: #888;
    font-weight: 600;
}
.dex-stat-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 8px 0;
    border-bottom: 1px solid #1a1a1e;
    gap: 12px;
}
.dex-stat-label {
    font-size: 11px;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.dex-stat-val {
    font-size: 12px;
    color: #fff;
    font-weight: 600;
    text-align: right;
}
.dex-stat-row--price .dex-stat-val {
    font-size: 18px;
    color: #4ade80;
}
.dex-buysell-bar {
    margin-top: 14px;
}
.dex-buysell-labels {
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: #888;
    margin-bottom: 6px;
}
.dex-buysell-track {
    height: 6px;
    background: #f87171;
    border-radius: 3px;
    overflow: hidden;
}
.dex-buysell-buy {
    height: 100%;
    background: #4ade80;
    border-radius: 3px 0 0 3px;
    transition: width 0.3s;
}
#myTokensListPanel[hidden],
#myTokensListPanel.hidden {
    display: none !important;
}

@media (max-width: 992px) {
    .dex-grid {
        grid-template-columns: 1fr;
    }
    .dex-sidebar {
        position: static;
    }
    .dex-chart-wrap {
        height: 260px;
    }
}

.token-price-display { font-family: 'JetBrains Mono', monospace; }

/* Phantom wallet — override homepage rules (load last) */
#walletDropdownMenu .phantom-asset-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}
#walletDropdownMenu .phantom-asset-left {
    display: flex !important;
    align-items: center !important;
}
#walletDropdownMenu .phantom-asset-mid,
#walletDropdownMenu .phantom-asset-right {
    display: flex !important;
}
#walletDropdownMenu .phantom-asset-mid {
    flex-direction: column !important;
    align-items: flex-start !important;
}
#walletDropdownMenu .phantom-asset-right {
    flex-direction: column !important;
    align-items: flex-end !important;
}
#walletDropdownMenu .phantom-action-grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px !important;
}
#walletDropdownMenu .phantom-action-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
}
#walletDropdownMenu .phantom-tabs,
#walletDropdownMenu .phantom-tabs-inner,
#walletDropdownMenu .phantom-bottom-nav {
    display: flex !important;
}