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

body {
    font-family: 'Inter', sans-serif;
    background: #0a0a0a;
    min-height: 100vh;
    color: #fff;
}

.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 50%, rgba(88, 28, 135, 0.3), transparent 50%),
                radial-gradient(circle at 80% 80%, rgba(59, 130, 246, 0.2), transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 30px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    color: #8b5cf6;
    font-size: 1.8rem;
}

.logo span {
    background: linear-gradient(135deg, #fff, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.logo .highlight {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.badge {
    background: rgba(34, 197, 94, 0.2);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 500;
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.badge i {
    margin-right: 6px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 40px 20px;
}

.hero h1 {
    font-size: 2.8rem;
    margin-bottom: 16px;
}

.hero h1 .glow {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 30px rgba(139, 92, 246, 0.3);
}

.hero p {
    color: #a1a1aa;
    margin-bottom: 30px;
}

.stats {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.stat {
    background: rgba(255,255,255,0.05);
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    backdrop-filter: blur(10px);
}

.stat i {
    margin-right: 8px;
    color: #8b5cf6;
}

/* Tabs */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 30px;
    background: rgba(255,255,255,0.05);
    padding: 8px;
    border-radius: 60px;
    backdrop-filter: blur(10px);
}

.tab-btn {
    flex: 1;
    padding: 12px 24px;
    background: transparent;
    border: none;
    color: #a1a1aa;
    font-weight: 600;
    cursor: pointer;
    border-radius: 50px;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.tab-btn i {
    margin-right: 8px;
}

.tab-btn.active {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

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

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

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

/* Cards */
.card {
    background: rgba(18, 18, 24, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    transition: transform 0.2s, box-shadow 0.2s;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.card-header i {
    font-size: 1.8rem;
    color: #8b5cf6;
}

.card-header h3 {
    font-size: 1.3rem;
    font-weight: 600;
}

/* Inputs */
.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: #a1a1aa;
}

.input-group input, .input-group textarea, .input-group select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(0,0,0,0.4);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 16px;
    color: white;
    font-size: 0.9rem;
    transition: all 0.2s;
    font-family: monospace;
}

.input-group input:focus, .input-group textarea:focus, .input-group select:focus {
    outline: none;
    border-color: #8b5cf6;
    box-shadow: 0 0 0 2px rgba(139, 92, 246, 0.2);
}

.input-group textarea {
    resize: vertical;
    font-family: 'Courier New', monospace;
}

.row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

/* Quantity Control */
.quantity-control {
    display: flex;
    align-items: center;
    gap: 10px;
}

.qty-btn {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.2s;
}

.qty-btn:hover {
    background: #8b5cf6;
}

.quantity-control input {
    width: 80px;
    text-align: center;
    font-size: 1rem;
}

/* Buttons */
.btn {
    width: 100%;
    padding: 14px;
    border: none;
    border-radius: 60px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(139, 92, 246, 0.4);
}

.btn-secondary {
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
    color: white;
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

.btn-info {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.btn-info:hover {
    transform: translateY(-2px);
}

/* Progress Bar */
.progress-bar {
    margin-top: 20px;
    background: rgba(255,255,255,0.1);
    border-radius: 30px;
    height: 8px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #8b5cf6, #ec4899);
    border-radius: 30px;
    transition: width 0.3s ease;
}

/* Results Section */
.results-section {
    margin-top: 30px;
    background: rgba(18, 18, 24, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    overflow: hidden;
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: rgba(0,0,0,0.3);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-wrap: wrap;
    gap: 15px;
}

.results-header h3 {
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.results-stats {
    display: flex;
    gap: 20px;
}

.stat-live { color: #22c55e; }
.stat-die { color: #ef4444; }
.stat-error { color: #f59e0b; }

.stat-live i, .stat-die i, .stat-error i {
    margin-right: 6px;
}

.btn-clear {
    background: rgba(239, 68, 68, 0.2);
    border: 1px solid rgba(239, 68, 68, 0.3);
    padding: 8px 16px;
    border-radius: 30px;
    color: #ef4444;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-clear:hover {
    background: rgba(239, 68, 68, 0.4);
}

.results-list {
    max-height: 500px;
    overflow-y: auto;
    padding: 16px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    font-family: monospace;
    font-size: 0.85rem;
    border-left: 3px solid;
    transition: all 0.2s;
}

.result-item:hover {
    background: rgba(255,255,255,0.06);
    transform: translateX(4px);
}

.result-item.live { border-left-color: #22c55e; }
.result-item.die { border-left-color: #ef4444; }
.result-item.error { border-left-color: #f59e0b; }

.result-status {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.result-badge {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-live { background: rgba(34, 197, 94, 0.2); color: #22c55e; }
.badge-die { background: rgba(239, 68, 68, 0.2); color: #ef4444; }
.badge-error { background: rgba(245, 158, 11, 0.2); color: #f59e0b; }

.result-card {
    color: #a1a1aa;
    font-family: monospace;
}

.result-return {
    color: #6b7280;
    font-size: 0.75rem;
}

/* BIN Result */
.bin-result {
    margin-top: 20px;
    padding: 20px;
    background: rgba(0,0,0,0.3);
    border-radius: 16px;
    border: 1px solid rgba(139, 92, 246, 0.3);
}

.bin-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.bin-field {
    padding: 10px;
    background: rgba(255,255,255,0.05);
    border-radius: 12px;
}

.bin-field label {
    font-size: 0.7rem;
    color: #8b5cf6;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bin-field .value {
    font-size: 1rem;
    font-weight: 600;
    margin-top: 5px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.stat-item {
    text-align: center;
    padding: 20px;
    background: rgba(255,255,255,0.03);
    border-radius: 16px;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #8b5cf6, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.stat-label {
    display: block;
    font-size: 0.8rem;
    color: #a1a1aa;
    margin-top: 8px;
}

/* Footer */
.footer {
    text-align: center;
    padding: 30px 0;
    color: #52525b;
    font-size: 0.8rem;
    border-top: 1px solid rgba(255,255,255,0.05);
    margin-top: 40px;
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #8b5cf6;
    border-radius: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .tabs {
        flex-wrap: wrap;
        border-radius: 20px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 0.8rem;
    }
    
    .row-3 {
        grid-template-columns: 1fr;
    }
    
    .results-stats {
        order: 2;
        width: 100%;
        justify-content: center;
    }
    
    .btn-clear {
        order: 1;
    }
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1s infinite;
}