:root {
    --glass-bg: rgba(15, 15, 25, 0.65);
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.5);
    --text-color: #ffffff;
    --accent-color: #00f2ff;
    --success-color: #00ff88;
    --custom-color: #ffaa00; /* Yellow/Gold for Custom */
    --failed-color: #ff3355;
    --font-main: 'Inter', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000;
    overflow: hidden;
}

.background-animation {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; z-index: -1;
}

.app-wrapper {
    display: flex;
    gap: 20px;
    width: 85vw;
    height: 75vh;
    max-width: 1100px;
}

/* PANELS */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    padding: 25px;
}

/* --- LEFT PANEL --- */
.input-panel {
    flex: 1; min-width: 320px;
    display: flex; flex-direction: column; gap: 1.2rem;
}

.section-cards { flex: 1; display: flex; flex-direction: column; min-height: 0; }

.glass-input-wrapper {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    transition: 0.3s;
    overflow: hidden;
    width: 100%;
    position: relative; /* For absolute positioning of footer */
}

.glass-input-wrapper:focus-within {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.1);
}

.card-wrapper { height: 100%; display: flex; flex-direction: column; }

textarea {
    flex: 1; width: 100%;
    background: transparent; border: none;
    color: #fff; padding: 15px 15px 30px 15px; /* Extra bottom padding for footer */
    font-family: 'Inter', monospace;
    font-size: 0.85rem; resize: none; outline: none;
}

/* Card Stats Footer */
.card-footer {
    position: absolute;
    bottom: 5px; right: 10px;
    font-size: 0.7rem;
    font-family: monospace;
    color: rgba(255, 255, 255, 0.4);
    pointer-events: none;
}

/* Proxy */
/* REPLACE .section-proxy & .section-stats with this: */
.section-controls-row {
    height: 45px; 
    flex-shrink: 0; 
    display: flex; 
    gap: 15px; 
}

.settings-btn {
    flex: 0 0 60px; /* Fixed width for icon box */
    cursor: pointer; 
    transition: 0.3s;
    font-size: 1.5rem; 
    color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.05);
}

.settings-btn:hover {
    color: var(--accent-color);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
    border-color: rgba(0, 242, 255, 0.3);
}

.counter-box {
    flex: 1; /* Takes up remaining space next to settings */
}

.single-line-wrapper { height: 100%; display: flex; align-items: center; }
.single-line-wrapper input {
    width: 100%; height: 100%; background: transparent; border: none;
    color: #fff; padding: 0 50px 0 15px;
    font-family: monospace; font-size: 0.85rem; outline: none;
}

.verify-btn-icon {
    position: absolute; right: 5px; top: 5px; bottom: 5px; width: 35px;
    border: none; background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.7);
    border-radius: 8px; cursor: pointer; transition: 0.3s;
    display: flex; justify-content: center; align-items: center;
}
.verify-btn-icon:hover { background: var(--accent-color); color: #000; }
.verify-btn-icon.verified-success { color: var(--success-color); background: rgba(0, 255, 136, 0.1); }

/* Stats */

.glass-box {
    flex: 1; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.05);
    border-radius: 10px; display: flex; justify-content: center; align-items: center;
}
.value-lg { font-size: 1rem; font-weight: 700; font-family: monospace; letter-spacing: 1px; }
.glow-text { color: var(--accent-color); text-shadow: 0 0 10px rgba(0, 242, 255, 0.4); font-weight: 800; }
.divider { color: rgba(255,255,255,0.2); }

/* Start Button */
.section-action { height: 42px; flex-shrink: 0; }
.start-btn {
    width: 100%; height: 100%; background: #fff; color: #000;
    border: none; border-radius: 10px; font-weight: 800; font-size: 0.9rem;
    cursor: pointer; transition: 0.3s; text-transform: uppercase; letter-spacing: 2px;
}
.start-btn:hover { box-shadow: 0 0 20px rgba(255,255,255,0.3); transform: translateY(-1px); }
.start-btn.stop-btn { background: var(--failed-color); color: #fff; box-shadow: 0 0 15px rgba(255, 51, 85, 0.4); }

/* --- RIGHT PANEL --- */
.output-panel { flex: 2; padding: 0; overflow: hidden; }

.output-tabs { display: flex; border-bottom: 1px solid rgba(255,255,255,0.05); }

.tab-btn {
    flex: 1; background: transparent; border: none;
    color: rgba(255,255,255,0.4);
    padding: 18px; /* Increased padding */
    font-size: 1rem; /* Increased font size */
    font-weight: 700;
    cursor: pointer; transition: 0.3s;
    border-bottom: 2px solid transparent;
}
.tab-btn.active { color: #fff; background: rgba(255,255,255,0.02); }
/* Tab Colors */
.tab-btn[data-tab="success"].active { border-bottom-color: var(--success-color); color: var(--success-color); }
.tab-btn[data-tab="custom"].active { border-bottom-color: var(--custom-color); color: var(--custom-color); }
.tab-btn[data-tab="failed"].active { border-bottom-color: var(--failed-color); color: var(--failed-color); }

.badge {
    background: rgba(255,255,255,0.1); padding: 2px 6px; border-radius: 4px;
    font-size: 0.75rem; margin-left: 5px; color: #fff;
}

.output-content { flex: 1; position: relative; overflow: hidden; }
.tab-view {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    padding: 15px; opacity: 0; pointer-events: none;
}
.tab-view.active-view { opacity: 1; pointer-events: auto; }

.view-tools { display: flex; justify-content: flex-end; margin-bottom: 10px; }
.tool-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.6); padding: 5px 12px; border-radius: 6px;
    cursor: pointer; font-size: 0.75rem; display: flex; align-items: center; gap: 5px;
    transition: 0.3s;
}
.tool-btn:hover { background: rgba(255,255,255,0.1); color: #fff; }

.result-list { flex: 1; overflow-y: auto; font-family: monospace; font-size: 0.85rem; }
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.2); border-radius: 10px; }

.result-item { 
    padding: 10px; /* Increased padding */
    margin-bottom: 10px; /* Added spacing between results */
    background: rgba(255, 255, 255, 0.03); /* Subtle background to separate them */
    border-radius: 8px; /* Rounded edges for individual results */
    border-bottom: 1px solid rgba(255,255,255,0.05); 
}/* Result Colors */
/* Result Colors - adjusted for new background */
.success-item { border-left: 3px solid var(--success-color); }
.custom-item { border-left: 3px solid var(--custom-color); }
.failed-item { border-left: 3px solid var(--failed-color); }

/* --- CUSTOM NOTIFICATIONS (Modern Glass Toast) --- */
.notification-container {
    position: fixed; top: 20px; right: 20px; z-index: 99999; /* Increased to stay above the settings modal */
    display: flex; flex-direction: column; gap: 10px;
}

.glass-toast {
    background: rgba(20, 20, 35, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 15px 20px;
    border-radius: 12px;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 500;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: flex; align-items: center; gap: 10px;
    animation: slideIn 0.3s ease forwards;
    min-width: 250px;
}

.glass-toast.error { border-left: 4px solid var(--failed-color); }
.glass-toast.success { border-left: 4px solid var(--success-color); }
.glass-toast.info { border-left: 4px solid var(--accent-color); }

@keyframes slideIn {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes fadeOut {
    to { opacity: 0; transform: translateX(50px); }
}

/* --- TELEGRAM FAB --- */
.telegram-fab {
    position: fixed; bottom: 30px; right: 30px;
    width: 60px; height: 60px;
    background: linear-gradient(135deg, #0088cc, #00aaff);
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    color: #fff; 
    box-shadow: 0 10px 25px rgba(0, 136, 204, 0.5);
    transition: 0.3s; z-index: 999;
    text-decoration: none;
}

/* Made the icon significantly bigger */
.telegram-fab i {
    font-size: 2.2rem; 
}
.telegram-fab:hover { transform: translateY(-5px) scale(1.1); box-shadow: 0 15px 35px rgba(0, 136, 204, 0.7); }
/* Mobile */
@media (max-width: 768px) {
    .app-wrapper { flex-direction: column; width: 95%; height: 95vh; gap: 10px; }
    .input-panel { min-width: auto; flex: none; height: 50%; gap: 10px; }
    .output-panel { flex: 1; }
    .telegram-fab { width: 50px; height: 50px; font-size: 1.5rem; bottom: 20px; right: 20px; }
}





/* --- LOGIN PAGE STYLES --- */
/* ... keep your root variables ... */

/* --- LOGIN WRAPPER --- */
.login-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    z-index: 10;
    margin-top: -60px; /* Moved upwards as requested */
}

/* --- TITLE --- */
.pluto-main-title {
    font-size: 3.5rem;
    font-weight: 900;
    letter-spacing: 6px;
    text-transform: uppercase;
    background: linear-gradient(90deg, #00f2ff, #ffffff, #00f2ff);
    background-size: 200% auto;
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    animation: shineText 5s linear infinite;
    text-shadow: 0 0 30px rgba(0, 242, 255, 0.4);
}

@keyframes shineText {
    to { background-position: 200% center; }
}

/* --- GLASS CARD --- */
.glass-card {
    background: rgba(255, 255, 255, 0.02);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5), inset 0 0 30px rgba(255, 255, 255, 0.02);
    border-radius: 24px;
    padding: 40px;
    width: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.instruction-text {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
    font-weight: 600;
}

/* --- INPUT --- */
.input-container {
    width: 100%;
    position: relative;
    height: 55px; /* Large input */
}

.input-container input {
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 0 20px 0 50px;
    color: #fff;
    font-family: monospace;
    font-size: 1.1rem;
    outline: none;
    transition: 0.3s;
}

.input-container input:focus {
    border-color: #00f2ff;
    background: rgba(0, 0, 0, 0.4);
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.2);
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.3);
    font-size: 1.2rem;
}

/* --- LIQUID GLASS BUTTON --- */
.glass-action-btn {
    width: 100%;
    height: 50px; /* Slightly smaller than input */
    position: relative;
    background: transparent;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    overflow: hidden; /* Fixes the line glitch */
    transition: 0.3s;
    
    /* The Glass Effect */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-weight: 700;
    letter-spacing: 1px;
    z-index: 1;
}

/* Hover State: More "Liquid" */
.glass-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 0 20px rgba(0, 242, 255, 0.3), inset 0 0 20px rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

/* The Shine Animation (Separate Element to avoid glitch) */
.liquid-shine {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.5s;
    z-index: -1;
}

.glass-action-btn:hover .liquid-shine {
    left: 150%;
    transition: 0.7s;
}

.status-msg {
    min-height: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-align: center;
    margin-top: 5px;
}
.error-text { color: #ff3355; }
.success-text { color: #00ff88; }


.modal-overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 1; transition: opacity 0.3s ease;
}

.modal-overlay.hidden {
    opacity: 0; pointer-events: none;
}

.modal-content {
    width: 480px; /* Made modal wider */
    max-width: 95%;
    transform: translateY(0); transition: transform 0.3s ease;
    padding: 40px; /* Increased padding inside modal */
}

.modal-overlay.hidden .modal-content {
    transform: translateY(30px) scale(0.95);
}

.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 30px; /* More space below header */
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 15px;
}

.modal-header h2 { 
    font-size: 1.2rem; display: flex; align-items: center; gap: 8px;
    letter-spacing: 2px; font-weight: 800;
}

.close-icon {
    background: transparent; border: none; color: #fff; font-size: 1.8rem;
    cursor: pointer; transition: 0.3s; opacity: 0.6;
}

.close-icon:hover { opacity: 1; color: var(--failed-color); transform: scale(1.1); }

/* Remove congestion */
.modal-body { display: flex; flex-direction: column; gap: 25px; } /* Increased gap significantly */
.dynamic-group { display: flex; flex-direction: column; gap: 25px; }
.dynamic-group.hidden { display: none; }

.input-group label {
    display: block; font-size: 0.8rem; color: rgba(255,255,255,0.6);
    margin-bottom: 8px; text-transform: uppercase; letter-spacing: 1.5px; font-weight: 600;
}

/* Thicker inputs for better look */
.modal-body .glass-input-wrapper input,
.glass-select {
    width: 100%; background: transparent; border: none;
    color: #fff; padding: 15px 20px; font-family: monospace;
    font-size: 0.95rem; outline: none; appearance: none;
}

.glass-select { cursor: pointer; font-family: 'Inter', sans-serif; }
.glass-select option { background: #12121c; color: #fff; padding: 10px;}

/* Single Line Wrapper Adjustment */
.single-line-wrapper input {
    padding-right: 75px !important; /* Extra space so text doesn't hide behind big button */
}

/* --- PROMINENT VERIFY BUTTONS --- */
.verify-btn-icon.prominent-verify {
    background: rgba(0, 242, 255, 0.15); /* Light glowing blue background by default */
    color: var(--accent-color);
    border: 1px solid rgba(0, 242, 255, 0.3);
    width: 48px; /* Bigger width */
    right: 6px;
    top: 6px;
    bottom: 6px;
}

.verify-btn-icon.prominent-verify:hover {
    background: var(--accent-color);
    color: #000;
    box-shadow: 0 0 15px rgba(0, 242, 255, 0.5);
}

.verify-btn-icon.verified-success { 
    color: var(--success-color); 
    background: rgba(0, 255, 136, 0.15); 
    border-color: rgba(0, 255, 136, 0.4);
}

/* --- REDESIGNED BIG SAVE BUTTON --- */
/* --- REDESIGNED SAVE BUTTON (Black & White Glass Theme) --- */
.save-modal-btn {
    margin-top: 25px; /* Reduced from 35px */
    width: 100%;
    height: 50px; /* Reduced from 60px */
    background: rgba(255, 255, 255, 0.05); /* Subtle white glass */
    border: 1px solid rgba(255, 255, 255, 0.2); /* White border instead of blue */
    border-radius: 12px;
    color: #fff;
    font-size: 0.95rem; /* Slightly smaller text */
    font-weight: 700;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Dark shadow */
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}

.save-modal-btn:hover {
    background: #fff; /* Solid white on hover */
    color: #000; /* Black text */
    border-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2); /* Soft white glow */
    text-shadow: none;
    transform: translateY(-2px);
}