@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-primary: #121212;
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --text-primary: rgba(255, 255, 255, 0.95);
    --text-secondary: rgba(255, 255, 255, 0.5);
    --accent: #00d1ff;
    --glow: rgba(255, 255, 255, 0.08);
    --glass: rgba(255, 255, 255, 0.03);
    --glass-panel: rgba(255, 255, 255, 0.85);
}

body {
    background: radial-gradient(ellipse at center, #1a1a1a 0%, #121212 100%);
    color: var(--text-primary);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Text', sans-serif;
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 1.5;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 32px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px var(--glow);
}

.btn:hover {
    background: rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(0, 209, 255, 0.15);
    color: var(--accent);
}

.btn-primary {
    background: rgba(0, 209, 255, 0.1);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    color: var(--accent);
    box-shadow: inset 0 0 0 1px rgba(0, 209, 255, 0.3);
}

.btn-primary:hover {
    background: rgba(0, 209, 255, 0.15);
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 32px rgba(0, 209, 255, 0.2);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.btn-danger {
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.6);
}

.btn-danger:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.15);
}

input[type="text"],
input[type="password"],
input[type="email"],
input[type="number"],
textarea,
select {
    width: 100%;
    padding: 14px 18px;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: none;
    border-radius: 10px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.4px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: inset 0 0 0 1px var(--glow);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-secondary);
    opacity: 0.6;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px var(--accent), 0 0 24px rgba(0, 209, 255, 0.1);
    background: rgba(18, 18, 18, 0.8);
}

.form-group {
    margin-bottom: 24px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.3px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    overflow: auto;
}

.modal-content {
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    margin: 8vh auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 520px;
    position: relative;
    box-shadow: inset 0 0 0 1px var(--glow), 0 0 64px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    right: 24px;
    top: 24px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.2s;
    border-radius: 8px;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--glow);
}

.modal-close svg {
    width: 18px;
    height: 18px;
}

.text-center {
    text-align: center;
}

.hidden {
    display: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    h2 {
        font-size: 20px;
    }
    
    h3 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 14px;
        padding: 12px 16px;
    }
    
    .btn {
        font-size: 14px;
        padding: 12px 20px;
    }
    
    .btn-sm {
        font-size: 12px;
        padding: 8px 14px;
    }
    
    .modal {
        padding: 20px;
    }
    
    .modal-content {
        max-width: 100%;
        padding: 24px 20px;
        margin: 0;
    }
    
    .modal-header {
        margin-bottom: 20px;
    }
    
    .modal-body {
        padding: 20px 0;
    }
    
    .modal-footer {
        margin-top: 20px;
        flex-direction: column;
        gap: 12px;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 13px;
    }
    
    h1 {
        font-size: 20px;
    }
    
    h2 {
        font-size: 18px;
    }
    
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    textarea,
    select {
        font-size: 13px;
        padding: 10px 14px;
    }
    
    .btn {
        font-size: 13px;
        padding: 10px 16px;
    }
    
    .modal {
        padding: 12px;
    }
    
    .modal-content {
        padding: 20px 16px;
    }
}
