:root {
    --primary: #6e8efb;
    --secondary: #a777e3;
    --glass: rgba(255, 255, 255, 0.15);
    --text: #ffffff;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: #0f0c29;
    background: linear-gradient(to right, #24243e, #302b63, #0f0c29);
    color: var(--text);
}

/* انیمیشن پس‌زمینه شناور */
.background-animation {
    position: absolute;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: radial-gradient(circle at 50% 50%, rgba(110, 142, 251, 0.2) 0%, transparent 50%);
    animation: pulse 8s infinite alternate;
}

@keyframes pulse {
    from { transform: scale(1); }
    to { transform: scale(1.5); }
}

.container {
    width: 90%;
    max-width: 450px;
    perspective: 1000px;
}

.card {
    background: var(--glass);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 30px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 25px 45px rgba(0,0,0,0.2);
    transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.hidden {
    display: none;
    opacity: 0;
    transform: translateY(50px);
}

h1 { font-size: 2rem; margin-bottom: 10px; }
p { opacity: 0.8; margin-bottom: 30px; }

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 25px;
}

input[type="text"] {
    padding: 15px;
    border-radius: 15px;
    border: none;
    background: rgba(255,255,255,0.1);
    color: white;
    font-size: 1rem;
    text-align: center;
    outline: none;
    border: 1px solid transparent;
    transition: 0.3s;
}

input[type="text"]:focus {
    border-color: var(--primary);
    background: rgba(255,255,255,0.2);
}

.file-input label {
    display: block;
    padding: 10px;
    background: var(--secondary);
    border-radius: 12px;
    cursor: pointer;
    font-size: 0.9rem;
}

input[type="file"] { display: none; }

.btn-main, .btn-search, .btn-reset {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 15px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Vazirmatn';
}

.btn-main {
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    color: white;
}

.btn-main:hover { transform: scale(1.05); box-shadow: 0 10px 20px rgba(110, 142, 251, 0.4); }

/* استایل پروفایل نهایی */
#displayPic {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--primary);
    margin-bottom: 20px;
    box-shadow: 0 0 20px var(--primary);
}

.btn-search { background: #4285F4; color: white; margin-bottom: 10px; }
.btn-reset { background: rgba(255,255,255,0.1); color: white; }

.show-card {
    display: block !important;
    animation: fadeIn 0.8s forwards;
}

@keyframes fadeIn {
    to { opacity: 1; transform: translateY(0); }
}
