:root {
    --primary-color: #4285F4;
    --success-color: #7BC02A;
    --error-color: #EA4335;
    --bg-color: #f4f7fc;
    --text-color: #333;
    --glass-bg: rgba(255, 255, 255, 0.65);
    --glass-border: rgba(255, 255, 255, 0.5);
    --glass-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Outfit', 'Google Sans', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: var(--bg-color);
    background-image: linear-gradient(135deg, #e2e8f0 0%, #cbd5e1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--text-color);
}

.glass-container {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 50px;
    width: 95%;
    max-width: 600px;
    box-shadow: var(--glass-shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

.glass-container:hover {
    transform: translateY(-5px);
}

h1 {
    font-size: 32px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #4285F4 0%, #9b51e0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.subtitle {
    font-size: 15px;
    color: #555;
    margin-bottom: 35px;
    font-weight: 400;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 15px;
}

.row-inputs {
    display: flex;
    gap: 15px;
}

.row-inputs input {
    width: 50%;
    text-align: center;
}

input {
    width: 100%;
    padding: 16px;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.4);
    font-size: 18px;
    outline: none;
    transition: all 0.3s;
    letter-spacing: 2px;
    color: #333;
    font-weight: 500;
}

input::placeholder {
    color: #999;
    letter-spacing: normal;
}

input:focus {
    background: rgba(255, 255, 255, 0.9);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(66, 133, 244, 0.15);
}

button {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

button:hover {
    background: #3367d6;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(66, 133, 244, 0.3);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #a0c3ff;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.result-message {
    font-size: 14px;
    font-weight: 500;
    margin-top: 10px;
    min-height: 20px;
    transition: all 0.3s ease;
}

.success {
    color: var(--success-color);
}

.error {
    color: var(--error-color);
}

.bin-result {
    margin-top: 25px;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    padding: 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 12px;
    opacity: 1;
    transform: translateY(0);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.bin-result.hidden {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
}

.result-row {
    display: flex;
    justify-content: space-between;
    border-bottom: 1px solid rgba(0, 0, 0, 0.04);
    padding-bottom: 10px;
}

.result-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.label {
    font-weight: 500;
    color: #666;
    font-size: 14px;
}

.value {
    font-weight: 600;
    color: #222;
    font-size: 15px;
}

.divider {
    height: 1px;
    background: rgba(0, 0, 0, 0.08);
    margin: 8px 0;
}

.badge {
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.badge-success {
    background: rgba(123, 192, 42, 0.15);
    color: var(--success-color);
}

.badge-error {
    background: rgba(234, 67, 53, 0.15);
    color: var(--error-color);
}

/* Animations */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

.shake {
    animation: shake 0.3s ease-in-out;
}

/* Tabs */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tab-btn {
    background: transparent;
    color: #666;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(0,0,0,0.1);
    font-size: 14px;
    font-weight: 500;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

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

/* Bulk Check UI */
.file-upload-wrapper {
    margin-bottom: 15px;
}

#bulkFileLabel {
    display: block;
    padding: 15px;
    border: 2px dashed rgba(66, 133, 244, 0.4);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

#bulkFileLabel:hover {
    background: rgba(66, 133, 244, 0.1);
}

.bulk-progress {
    display: flex;
    justify-content: space-between;
    margin: 20px 0;
    gap: 10px;
}

.stat-box {
    flex: 1;
    background: rgba(255, 255, 255, 0.6);
    padding: 10px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.stat-label {
    font-size: 12px;
    color: #666;
    font-weight: 500;
}

.stat-box.live .stat-value { color: var(--success-color); }
.stat-box.dead .stat-value { color: var(--error-color); }

.live-cards-container {
    margin-bottom: 15px;
}

#liveCardsList {
    width: 100%;
    height: 180px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px;
    font-size: 14px;
    resize: none;
    background: rgba(17, 24, 39, 0.85); /* Dark terminal background */
    color: #4ade80; /* Hacker green */
    outline: none;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre;
    box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.5;
}

#downloadBtn {
    background: var(--success-color);
}
#downloadBtn:hover {
    background: #6ab020;
    box-shadow: 0 8px 20px rgba(123, 192, 42, 0.3);
}

.hidden {
    display: none !important;
}
