@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
        
:root { 
    --accent: #0ea5e9; 
    --accent-light: #38bdf8;
    --accent-dark: #0284c7;
    --accent-secondary: #06b6d4;
    --accent-glow: rgba(14, 165, 233, 0.4);
    --bg: #1e1e22; 
    --bg-lighter: #2a2a30;
    --card: #26262c; 
    --card-border: #3a3a42;
    --card-border-light: #4a4a54;
    --text-primary: #ffffff;
    --text-secondary: #a0a0a8;
    --voxel-accent: #00ffcc;
    --voxel-glow: rgba(0, 255, 204, 0.4);
}

* { box-sizing: border-box; }

body { 
    font-family: 'Inter', sans-serif; 
    background: var(--bg); 
    background-image: 
        radial-gradient(ellipse at top, rgba(14, 165, 233, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(6, 182, 212, 0.05) 0%, transparent 50%),
        radial-gradient(ellipse at bottom left, rgba(59, 130, 246, 0.05) 0%, transparent 50%);
    color: var(--text-primary); 
    margin: 0; 
    min-height: 100vh;
    display: flex; 
    flex-direction: column; 
    align-items: center; 
}

.hero { text-align: center; padding: 40px 20px 20px; width: 100%; }

.brand-title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 5px 0;
    background: linear-gradient(135deg, #0ea5e9 0%, #38bdf8 30%, #06b6d4 60%, #22d3ee 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
    filter: drop-shadow(0 0 30px rgba(14, 165, 233, 0.4));
}

.brand-subtitle {
    font-size: 1rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin: 0 0 30px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.search-wrapper { position: relative; width: 100%; max-width: 600px; margin: 0 auto; }

.input-box { 
    width: 100%; 
    padding: 18px 25px; 
    border-radius: 16px; 
    border: 2px solid var(--card-border-light); 
    background: var(--bg-lighter);
    color: white; 
    font-size: 18px; 
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.input-box:focus {
    border-color: var(--accent);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3), 0 0 0 4px rgba(14, 165, 233, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.input-box::placeholder { color: #666; }

#suggestions { 
    position: absolute; 
    top: 100%; left: 0; right: 0; 
    background: var(--bg-lighter);
    border: 2px solid var(--accent); 
    border-radius: 16px; 
    display: none; 
    z-index: 1000; 
    margin-top: 10px;
    max-height: 400px; 
    overflow-y: auto;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.6);
    padding: 10px;
    grid-template-columns: 1fr 1fr; 
    gap: 8px;
}

/* Style for the new Close Button */
.sugg-close-btn {
    grid-column: span 2; /* Spans both columns of the grid */
    text-align: center;
    padding: 8px;
    margin-bottom: 5px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    font-size: 12px;
    font-weight: bold;
    color: var(--text-secondary);
    cursor: pointer;
    border: 1px dashed var(--card-border-light);
    transition: all 0.2s;
}

.sugg-close-btn:hover {
    background: rgba(239, 68, 68, 0.1);
    color: #f87171;
    border-color: #f87171;
}

.sugg-item { 
    padding: 10px 15px; 
    cursor: pointer; 
    border-radius: 8px;
    background: rgba(255,255,255,0.03);
    font-size: 14px;
    transition: all 0.2s;
    border: 1px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.sugg-item:hover { 
    background: rgba(14, 165, 233, 0.15);
    border-color: var(--accent);
    color: var(--accent-light);
}


.sugg-item:last-child { border-bottom: none; }

.pipeline { 
    display: grid; grid-template-columns: 1fr 1fr; gap: 30px; 
    margin-top: 30px; width: 90%; max-width: 1200px; padding-bottom: 100px; 
}

.preview-card { 
    background: var(--card);
    border-radius: 20px; padding: 25px; 
    border: 2px solid var(--card-border-light); 
    display: flex; flex-direction: column;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.image-container {
    position: relative; width: 100%; aspect-ratio: 1/1;
    border-radius: 12px; margin-bottom: 15px;
    background: var(--bg-lighter);
    border: 2px solid var(--card-border-light);
    overflow: hidden;
}

#display-img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.image-placeholder {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: #555; text-align: center; pointer-events: none;
}

.image-placeholder svg { width: 48px; height: 48px; margin-bottom: 10px; opacity: 0.4; }

.button-row { display: flex; gap: 12px; margin-top: 15px; }

.btn-3d { 
    padding: 14px 24px; border-radius: 12px; 
    background: linear-gradient(135deg, var(--accent), var(--accent-light));
    color: white; border: none; font-weight: 600; cursor: pointer; flex: 1;
    transition: all 0.3s ease; text-decoration: none; text-align: center; font-size: 14px;
    box-shadow: 0 4px 15px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px var(--accent-glow), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.btn-3d:active { transform: translateY(0); }
.btn-3d:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary { 
    background: var(--bg-lighter);
    border: 2px solid var(--card-border-light);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-secondary:hover {
    background: var(--card-border);
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-voxel {
    background: linear-gradient(135deg, #00ccaa, var(--voxel-accent));
    color: #000;
    box-shadow: 0 4px 15px var(--voxel-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.btn-voxel:hover {
    box-shadow: 0 8px 25px var(--voxel-glow), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ready-tag { 
    display: inline-block; padding: 8px 16px; border-radius: 10px; 
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-light); font-size: 13px; font-weight: 600;
    margin-bottom: 15px; align-self: center;
    border: 1px solid rgba(14, 165, 233, 0.25);
}

#mesh-container { 
    height: 400px; width: 100%; border-radius: 12px; 
    position: relative; overflow: hidden; 
    border: 2px solid var(--card-border-light);
    background: var(--bg-lighter);
}

#mesh-placeholder { 
    position: absolute; top: 50%; left: 50%; 
    transform: translate(-50%, -50%); 
    color: #555; pointer-events: none; text-align: center;
}

#mesh-placeholder svg { width: 48px; height: 48px; margin-bottom: 10px; opacity: 0.4; }

.voxel-controls {
    margin-top: 20px; padding: 20px;
    background: rgba(0, 255, 204, 0.05);
    border: 1px solid rgba(0, 255, 204, 0.2);
    border-radius: 12px;
}

.voxel-controls-header {
    display: flex; align-items: center; gap: 10px; margin-bottom: 15px;
}

.voxel-controls-header svg { width: 20px; height: 20px; color: var(--voxel-accent); }

.voxel-controls-header h3 {
    margin: 0; font-size: 14px; font-weight: 600;
    color: var(--voxel-accent);
    text-transform: uppercase; letter-spacing: 1px;
}

.slider-container { margin-bottom: 15px; }

.slider-label {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px; font-size: 12px; color: var(--text-secondary);
}

.slider-value { color: var(--voxel-accent); font-weight: 600; }

.voxel-slider {
    width: 100%; height: 6px; border-radius: 3px;
    background: var(--bg); outline: none;
    -webkit-appearance: none; appearance: none;
}

.voxel-slider::-webkit-slider-thumb {
    -webkit-appearance: none; appearance: none;
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--voxel-accent); cursor: pointer;
    box-shadow: 0 0 10px var(--voxel-glow);
    transition: transform 0.2s;
}

.voxel-slider::-webkit-slider-thumb:hover { transform: scale(1.1); }

.voxel-slider::-moz-range-thumb {
    width: 18px; height: 18px; border-radius: 50%;
    background: var(--voxel-accent); cursor: pointer;
    border: none; box-shadow: 0 0 10px var(--voxel-glow);
}

.voxel-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.voxel-stats {
    margin-top: 12px; font-size: 11px;
    color: var(--voxel-accent); line-height: 1.6;
}

.view-toggle {
    display: flex; gap: 5px;
    background: var(--bg); padding: 4px; border-radius: 8px;
}

.view-toggle-btn {
    padding: 8px 16px; border: none; background: transparent;
    color: var(--text-secondary); font-size: 12px; font-weight: 500;
    border-radius: 6px; cursor: pointer; transition: all 0.2s;
}

.view-toggle-btn.active { background: var(--accent); color: white; }
.view-toggle-btn:hover:not(.active) { background: rgba(255, 255, 255, 0.1); }

.loading-overlay {
    position: absolute; top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(30, 30, 34, 0.97);
    display: none; flex-direction: column;
    align-items: center; justify-content: center;
    z-index: 100; border-radius: 10px; backdrop-filter: blur(10px);
}

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

.spinner-container { position: relative; width: 80px; height: 80px; }

.spinner {
    width: 100%; height: 100%;
    border: 3px solid rgba(14, 165, 233, 0.1);
    border-radius: 50%; position: absolute;
}

.spinner-gradient {
    width: 100%; height: 100%;
    border: 3px solid transparent;
    border-top-color: var(--accent);
    border-right-color: var(--accent-secondary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    position: absolute;
}

.spinner-gradient.voxel-spinner {
    border-top-color: var(--voxel-accent);
    border-right-color: #00ccaa;
}

.spinner-inner {
    position: absolute; top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 60px; height: 60px;
    border: 2px solid transparent;
    border-top-color: rgba(56, 189, 248, 0.6);
    border-radius: 50%;
    animation: spin 1.5s linear infinite reverse;
}

.spinner-inner.voxel-spinner { border-top-color: rgba(0, 255, 204, 0.6); }

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

.loading-text { margin-top: 25px; color: #888; font-size: 14px; font-weight: 500; }

.loading-timer {
    margin-top: 8px; font-size: 32px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-timer.voxel-timer {
    background: linear-gradient(135deg, #00ccaa, var(--voxel-accent));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}

.progress-container {
    width: 200px; height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px; margin-top: 20px;
    overflow: hidden; display: none;
}

.progress-container.active { display: block; }

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--accent), var(--accent-secondary), var(--accent-light));
    background-size: 200% 100%;
    width: 0%; transition: width 0.5s ease;
    border-radius: 2px; animation: shimmer 2s linear infinite;
}

.progress-bar.voxel-progress {
    background: linear-gradient(90deg, #00aa88, var(--voxel-accent), #00ffee);
    background-size: 200% 100%;
}

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

.progress-text { margin-top: 10px; font-size: 12px; color: #666; }

#download-area { display: contents; }
#download-area:empty { display: none; }
#download-area .btn-3d { flex: 1; }

.mesh-actions { display: flex; gap: 12px; margin-top: 15px; }

#display-img.loaded + .image-placeholder { display: none; }

.status-success { background: rgba(34, 197, 94, 0.1); color: #4ade80; border-color: rgba(34, 197, 94, 0.25); }
.status-processing { background: rgba(251, 191, 36, 0.1); color: #fbbf24; border-color: rgba(251, 191, 36, 0.25); }
.status-error { background: rgba(239, 68, 68, 0.1); color: #f87171; border-color: rgba(239, 68, 68, 0.25); }
.status-voxel { background: rgba(0, 255, 204, 0.1); color: var(--voxel-accent); border-color: rgba(0, 255, 204, 0.25); }



.refinement-container {
    width: 100%;
    max-width: 600px;
    margin: 20px auto;
    background: var(--bg-lighter);
    border: 2px solid var(--accent);
    border-radius: 16px;
    padding: 20px;
    animation: slideDown 0.3s ease;
}

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

.refinement-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 14px;
    color: var(--accent-light);
    font-weight: 600;
}

.refinement-input {
    width: 100%;
    height: 100px;
    background: #111;
    border: 1px solid #333;
    border-radius: 8px;
    color: #ddd;
    padding: 12px;
    font-family: inherit;
    font-size: 14px;
    resize: none;
    margin-bottom: 15px;
}

.refinement-actions { display: flex; gap: 10px; }


/* === NEW PROMPT CONTAINER STYLES === */

/* Container for the textarea and buttons */
.prompt-container {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    background: var(--bg-lighter);
    border: 2px solid var(--card-border-light);
    border-radius: 20px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    transition: border-color 0.3s ease;
}

.prompt-container:focus-within {
    border-color: var(--accent);
}

.prompt-box-wrapper { 
    position: relative; 
    width: 100%; 
}

/* The textarea that expands */
.prompt-textarea {
    width: 100%;
    min-height: 50px;
    max-height: 200px;
    background: transparent;
    border: none;
    color: white;
    padding: 12px 15px;
    font-size: 16px;
    font-family: inherit;
    resize: none;
    outline: none;
    line-height: 1.5;
}

/* Actions row at the bottom of the box */
.prompt-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    padding: 8px;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.action-btn {
    padding: 8px 16px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.action-btn.refine {
    background: rgba(14, 165, 233, 0.1);
    color: var(--accent-light);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.action-btn.refine:hover {
    background: rgba(14, 165, 233, 0.2);
}

.action-btn.generate {
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    color: white;
}

.action-btn.generate:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--accent-glow);
}


/* 2x2 Grid Layout */
.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr; /* Force 2x2 */
    gap: 10px;
    padding: 10px;
    width: 100%;
    height: 100%;
    position: absolute; /* Stacked over placeholder */
    top: 0; left: 0;
}

.thumb-option {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s, border-color 0.2s;
}

.thumb-option:hover {
    transform: scale(1.02);
    border-color: var(--accent);
}

/* Tabs for switching between options */
.image-tabs {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding: 5px;
    overflow-x: auto;
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

.tab-item {
    width: 60px;
    height: 60px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    object-fit: cover;
}

.tab-item.active {
    opacity: 1;
    border: 2px solid var(--accent);
}

.upscaled-view {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: radial-gradient(circle, #333 0%, #111 100%); /* Helps see transparent edges */
    border-radius: 10px;
}

/* === Brightness Control (Updated to Blue) === */
.brightness-control {
    margin-top: 15px;
    padding: 15px;
    background: rgba(14, 165, 233, 0.05); /* Subtle blue tint */
    border-radius: 12px;
    border: 1px solid rgba(14, 165, 233, 0.2);
}

.brightness-control .slider-label span:first-child {
    color: var(--accent-light); /* Blue instead of yellow */
    font-weight: 700;
}

/* Make the track look more high-tech blue */
.brightness-control .voxel-slider::-webkit-slider-runnable-track {
    background: linear-gradient(to right, #1e293b, var(--accent), #f0f9ff);
    height: 6px;
    border-radius: 3px;
}

.brightness-control .voxel-slider::-webkit-slider-thumb {
    background: #ffffff;
    border: 2px solid var(--accent);
    box-shadow: 0 0 10px var(--accent-glow);
}





/* Add this to style.css */
.wireframe-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(30, 30, 34, 0.8);
    border: 1px solid var(--card-border-light);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 8px;
    cursor: pointer;
    display: none; /* Hidden until model loads */
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(4px);
    transition: all 0.2s;
    background: rgba(255, 255, 255, 0.9); /* Lighter background */
    color: #1a1a1f;
    border: 1px solid #ccc;
    display: none; 
}

/* Optional: add a specific color for the Low Poly button to make it stand out */
#texture-toggle.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent-light);
}

.wireframe-btn.active {
    background: #000000; /* Black background when active */
    color: #ffffff;
    border-color: #000000;
}

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

.wireframe-btn svg {
    width: 16px;
    height: 16px;
}


/* User Status Bar */
.user-status-bar {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 15px;
    font-family: 'Inter', sans-serif;
}

.balance-pill {
    background: rgba(30, 30, 34, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border-light);
    padding: 8px 16px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.coin {
    font-size: 18px;
    filter: drop-shadow(0 0 5px #ffd700);
}

#balance-amount {
    color: #4ade80; /* Neon Green */
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.save-btn {
    background: var(--accent);
    color: white;
    text-decoration: none;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 16px;
    border-radius: 50px;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px var(--accent-glow);
}

.save-btn:hover {
    transform: translateY(-2px);
    background: var(--accent-light);
    box-shadow: 0 6px 20px var(--accent-glow);
}

/* Logged in profile mini-view */
.user-profile-mini {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.05);
    padding: 4px 12px 4px 4px;
    border-radius: 50px;
    border: 1px solid rgba(255,255,255,0.1);
}

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


.thumb-skeleton {
    width: 100%;
    aspect-ratio: 1/1;
    border-radius: 8px;
    background: linear-gradient(90deg, #2a2a30 25%, #3a3a42 50%, #2a2a30 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border: 1px solid var(--card-border-light);
}

@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}


.amt-btn.active { border-color: #0ea5e9 !important; background: rgba(14, 165, 233, 0.2) !important; color: white !important; }

/* Tablet & Smaller Desktop */
@media (max-width: 1024px) {
    .pipeline { 
        grid-template-columns: 1fr; 
        width: 95%; 
        gap: 20px; 
        padding-bottom: 60px;
    }
}

/* Mobile Devices */
@media (max-width: 600px) {
    /* 1. Fix the Header Overlap */
    .user-status-bar {
        position: relative; /* Change from fixed to flow with page */
        top: 0;
        right: 0;
        padding: 15px;
        justify-content: center;
        width: 100%;
        background: rgba(0,0,0,0.2);
        margin-bottom: 10px;
    }

    .hero { padding: 10px 15px; }
    
    .brand-title { 
        font-size: 2.2rem; 
        margin-bottom: 2px;
    }
    
    .brand-subtitle { 
        font-size: 0.8rem; 
        letter-spacing: 1px;
    }

    /* 2. Make the Input Box easier to use */
    .prompt-container {
        border-radius: 12px;
        padding: 4px;
    }

    .prompt-actions {
        flex-wrap: wrap; /* Stack buttons if they don't fit */
        gap: 5px;
        justify-content: center;
    }

    .action-btn {
        flex: 1;
        min-width: 100px; /* Ensure buttons don't get too thin */
        font-size: 12px;
        padding: 10px 5px;
        justify-content: center;
    }

    /* 3. Card & 3D Viewer Optimization */
    .preview-card {
        padding: 15px;
        border-radius: 15px;
    }

    #mesh-container {
        height: 320px; /* Shorter for vertical scrolling */
    }

    /* 4. Make buttons full-width for thumbs */
    .button-row, .mesh-actions, .voxel-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-3d {
        width: 100%;
        padding: 16px; /* Larger hit area */
        font-size: 15px;
    }

    /* 5. Voxel/Optimization Sliders */
    .voxel-controls {
        padding: 15px;
    }

    /* 6. Fix Modals (ensure they are scrollable on short phones) */
    #payment-modal, #support-modal {
        align-items: flex-start;
        padding-top: 30px;
        overflow-y: auto;
    }

    #payment-modal > div {
        margin-bottom: 50px; /* Extra space at bottom */
    }

    /* 7. Floating Help Button adjustment */
    .user-status-bar div[style*="fixed"] {
        bottom: 10px !important;
        right: 10px !important;
    }
    
    .user-status-bar button[onclick*="showSupportModal"] {
        padding: 8px 12px !important;
        font-size: 11px !important;
    }
}

/* Very Small Phones */
@media (max-width: 380px) {
    .brand-title { font-size: 1.8rem; }
    #mesh-container { height: 280px; }
    .action-btn { font-size: 11px; }
}



/* Toast Notifications */
#toast-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10001;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.toast {
    background: var(--card);
    color: white;
    padding: 12px 20px;
    border-radius: 12px;
    border: 1px solid var(--card-border-light);
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 300px;
    animation: toastIn 0.3s ease-out forwards;
}

.toast.error { border-color: #f87171; background: #2d1a1a; }
.toast.warning { border-color: #fbbf24; background: #2d261a; }

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

/* Low Balance Pulse */
.low-balance-glow {
    animation: pulse-red 2s infinite;
    color: #f87171 !important;
}

@keyframes pulse-red {
    0% { filter: drop-shadow(0 0 2px #ef4444); }
    50% { filter: drop-shadow(0 0 8px #ef4444); }
    100% { filter: drop-shadow(0 0 2px #ef4444); }
}