* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Inter", sans-serif;
}

html, body { height: 100%; }

body {
    background: linear-gradient(135deg, #1e1e2e, #181825);
    color: #cdd6f4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.title, form {
    width: 90%;
    max-width: 600px;
    background: rgba(30, 30, 46, 0.6);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 40px;
    margin-bottom: 25px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    text-align: center;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 15px;
    background: linear-gradient(90deg, #89b4fa, #cba6f7);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

h2 {
    font-size: 1.1rem;
    color: #bac2de;
    font-weight: 400;
    line-height: 1.6;
}

form > div {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

input[type="radio"] { display: none; }

label {
    padding: 8px 18px;
    border-radius: 50px;
    background: #313244;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

input[type="radio"]:checked + label {
    background: linear-gradient(90deg, #89b4fa, #cba6f7);
    color: #1e1e2e;
    font-weight: 600;
}

input[type="file"] {
    width: 100%;
    margin-bottom: 20px;
    padding: 10px;
    background: #313244;
    border: none;
    border-radius: 12px;
    color: #cdd6f4;
    cursor: pointer;
    text-align: center;
}

button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    background: linear-gradient(90deg, #89b4fa, #cba6f7);
    color: #1e1e2e;
    transition: all 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(203, 166, 247, 0.4);
}

footer {
    margin-top: 20px;
    padding: 1rem;
    text-align: center;
    font-size: 0.85rem;
    color: #7f849c;
}

footer a {
    color: #89b4fa;
    text-decoration: none;
}

footer a:hover { text-decoration: underline; }

#results {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.result-success {
    background: #313244;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(137, 180, 250, 0.3);
    transition: all 0.2s ease;
    word-break: break-all;
}

.result-success a {
    color: #89b4fa;
    text-decoration: none;
    font-weight: 500;
}

.result-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(137, 180, 250, 0.25);
}

.result-error {
    background: rgba(243, 139, 168, 0.1);
    border: 1px solid rgba(243, 139, 168, 0.4);
    color: #f38ba8;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.9rem;
    word-break: break-word;
}

@media (max-width: 500px) {
    .title, form { padding: 25px; }
    h1 { font-size: 2rem; }
}