:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-panel: #0d0d14;
    --accent-cyan: #00f0ff;
    --accent-purple: #a855f7;
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --border-light: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(0, 240, 255, 0.3);
    --danger: #ef4444;
    --success: #4ade80;
    --transition-base: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    background-color: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    overflow-x: hidden;
}

.bg-effects {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.bg-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(150px);
    opacity: 0.15;
}

.glow-1 {
    top: -10%;
    left: -10%;
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
}

.glow-2 {
    bottom: -10%;
    right: -10%;
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
}

.grid-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 40px 40px;
}

.card-glass {
    width: 100%; 
    max-width: 420px;
    background: var(--bg-panel);
    border: 1px solid var(--border-light);
    border-radius: 24px;
    padding: 40px 30px;
    position: relative;
    z-index: 1;
    animation: slideUp 0.6s ease-out;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
    overflow: hidden;
}

.card-glass::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-purple));
}

@keyframes slideUp { 
    from { opacity: 0; transform: translateY(30px); } 
    to { opacity: 1; transform: translateY(0); } 
}

header { 
    text-align: center; 
    margin-bottom: 30px; 
    display: flex;
    flex-direction: column;
    align-items: center;
}

.logo { 
    height: 64px; 
    margin-bottom: 15px; 
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.3)); 
}

h1 { 
    font-size: 1.5rem; 
    font-weight: 800; 
    margin-bottom: 12px; 
    letter-spacing: -0.5px;
}

.accent { color: var(--accent-cyan); }

.status-pill {
    display: inline-flex; 
    align-items: center; 
    gap: 8px;
    background: rgba(0, 240, 255, 0.05); 
    padding: 6px 16px;
    border-radius: 100px; 
    border: 1px solid var(--border-light);
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.dot { 
    width: 6px; 
    height: 6px; 
    border-radius: 50%; 
    background: #666; 
    transition: 0.3s; 
}

.dot.online { 
    background: var(--accent-cyan); 
    box-shadow: 0 0 10px var(--accent-cyan); 
}

.dot.error { 
    background: var(--danger); 
    box-shadow: 0 0 10px var(--danger); 
}

.input-container { margin-bottom: 25px; }

.input-container label { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 600; 
    color: var(--text-secondary); 
    margin-bottom: 8px; 
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-wrapper {
    display: flex; 
    align-items: center; 
    background: var(--bg-secondary);
    border: 1px solid var(--border-light); 
    border-radius: 12px; 
    padding: 0 15px; 
    height: 55px; 
    transition: var(--transition-base);
}

.input-wrapper:focus-within { 
    border-color: var(--accent-cyan); 
}

.input-wrapper input {
    flex: 1; 
    background: transparent; 
    border: none; 
    outline: none;
    color: var(--text-primary); 
    font-size: 0.95rem; 
    font-family: 'Inter', monospace; 
    padding: 0 12px; 
    min-width: 0;
}

.input-wrapper input::placeholder {
    color: var(--text-secondary);
    opacity: 0.5;
}

.icon-left { color: var(--text-secondary); font-size: 1.2rem; }

.btn-eye { 
    background: none; 
    border: none; 
    color: var(--text-secondary); 
    cursor: pointer; 
    font-size: 1.2rem; 
    display: flex; 
    transition: 0.2s; 
}

.btn-eye:hover { color: var(--accent-cyan); }

.grid-2 { 
    display: grid; 
    grid-template-columns: 2fr 1fr; 
    gap: 12px; 
    margin-bottom: 15px; 
}

.btn {
    border: none; 
    padding: 0 15px; 
    height: 50px;
    border-radius: 12px; 
    font-weight: 700; 
    font-size: 0.85rem;
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    transition: var(--transition-base);
}

.btn:active { transform: translateY(2px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-primary { 
    background: var(--accent-cyan);
    color: #000; 
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.15); 
}

.btn-primary:hover:not(:disabled) { 
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.3); 
}

.btn-secondary { 
    background: var(--bg-secondary); 
    border: 1px solid var(--border-light); 
    color: var(--text-primary); 
}

.btn-secondary:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.05);
    border-color: var(--accent-cyan);
}

.btn-outline { 
    width: 100%; 
    background: transparent; 
    border: 1px dashed var(--border-light); 
    color: var(--text-secondary); 
    margin-bottom: 10px;
}

.btn-outline:hover:not(:disabled) { 
    border-color: var(--accent-purple); 
    color: var(--accent-purple); 
    background: rgba(168, 85, 247, 0.05); 
}

.btn-danger { 
    width: 100%; 
    background: rgba(239, 68, 68, 0.1); 
    border: 1px solid var(--danger);
    color: var(--danger); 
    margin-top: 15px; 
}

.btn-danger:hover:not(:disabled) {
    background: var(--danger);
    color: white;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.3);
}

.msg-box { 
    margin-top: 15px; 
    padding: 15px; 
    border-radius: 12px; 
    font-size: 0.85rem; 
    font-weight: 500;
    text-align: center; 
    border: 1px solid transparent; 
}

.msg-box.error { 
    background: rgba(239, 68, 68, 0.05); 
    border-color: rgba(239, 68, 68, 0.2); 
    color: #fca5a5; 
}

.msg-box.success { 
    background: rgba(0, 240, 255, 0.05); 
    border-color: rgba(0, 240, 255, 0.2); 
    color: var(--accent-cyan); 
}

.data-panel, .cd-panel { 
    margin-top: 25px; 
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 20px; 
}

.row { 
    display: flex; 
    justify-content: space-between; 
    padding: 10px 0; 
    font-size: 0.85rem; 
    border-bottom: 1px solid rgba(255, 255, 255, 0.03); 
}

.row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.row:first-child {
    padding-top: 0;
}

.row span:first-child { color: var(--text-secondary); }
.val { color: var(--accent-cyan); font-weight: 600; }

.cd-panel { text-align: center; }
.cd-header { color: var(--danger); font-weight: 700; font-size: 0.8rem; letter-spacing: 1px; }

footer { 
    margin-top: 30px; 
    text-align: center; 
    font-size: 0.75rem; 
    color: var(--text-secondary); 
    border-top: 1px solid var(--border-light);
    padding-top: 20px;
}