:root {
    --bg-color: #111015;
    --card-bg-color: rgba(30, 29, 37, 0.5);
    --border-color: rgba(255, 255, 255, 0.1);
    --text-color: #E0E0E0;
    --text-secondary-color: #A0A0A0;
    --primary-accent-start: #A855F7;
    --primary-accent-end: #6366F1;
    --font-family: 'Poppins', sans-serif;
}

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

/* style.css */

/* ... (keep everything else the same) ... */

body {
    font-family: var(--font-family);
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex;
    justify-content: center;
    align-items: flex-start; /* CHANGED: Aligns content to the top for scrolling */
    min-height: 100vh;
    padding: 2rem;
    position: relative;
    /* REMOVED the "overflow: hidden;" line */
}

/* ... (keep everything else the same) ... */

/* Animated Background */
.background-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.background-shapes::before, .background-shapes::after {
    content: '';
    position: absolute;
    width: 30vw;
    height: 30vw;
    max-width: 400px;
    max-height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    z-index: -1;
}

.background-shapes::before {
    background-color: var(--primary-accent-end);
    top: 10%;
    left: 15%;
    animation: move-glow1 15s infinite alternate;
}

.background-shapes::after {
    background-color: var(--primary-accent-start);
    bottom: 10%;
    right: 15%;
    animation: move-glow2 15s infinite alternate;
}

@keyframes move-glow1 {
    to { transform: translate(50px, 100px); }
}
@keyframes move-glow2 {
    to { transform: translate(-50px, -100px); }
}

.container {
    width: 100%;
    max-width: 550px;
    text-align: center;
    z-index: 1;
}

header {
    margin-bottom: 2rem;
}

header .logo {
    margin-bottom: 1rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, var(--primary-accent-start), var(--primary-accent-end));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

.subtitle {
    color: var(--text-secondary-color);
    margin-top: 0.5rem;
    line-height: 1.6;
}

.card {
    background: var(--card-bg-color);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

.hidden {
    display: none !important;
}

/* Step 1: Uploader */
.drop-zone {
    width: 100%;
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.drop-zone.drag-over {
    border-color: var(--primary-accent-start);
    background-color: rgba(168, 85, 247, 0.1);
}

.drop-zone-prompt {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}
.drop-zone-prompt.hidden { display: none; }


.upload-icon {
    width: 48px;
    height: 48px;
    color: var(--text-secondary-color);
}
.small-text { font-size: 0.9rem; color: var(--text-secondary-color); }

.file-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    width: 100%;
}
.file-info.hidden { display: none; }
.file-info .file-icon { width: 24px; height: 24px; color: var(--primary-accent-start); }
#remove-file-btn { background: none; border: none; color: var(--text-secondary-color); font-size: 1.5rem; cursor: pointer; }

.file-requirements {
    font-size: 0.8rem;
    color: var(--text-secondary-color);
}

/* Buttons */
.button-primary, .button-secondary {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.button-primary {
    background: linear-gradient(90deg, var(--primary-accent-start), var(--primary-accent-end));
    color: white;
    position: relative;
    overflow: hidden;
}

.button-primary:hover:not(:disabled) {
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
    transform: translateY(-2px);
}
.button-primary:disabled {
    background: #444;
    color: #888;
    cursor: not-allowed;
}

.button-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid var(--border-color);
}
.button-secondary:hover { background: rgba(255, 255, 255, 0.15); }

/* Step 2: Loading */
.scanner {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-accent-start), transparent);
    animation: scan 2s infinite;
    position: absolute;
    top: 0;
    left: 0;
}
@keyframes scan {
    0% { transform: translateY(0); }
    50% { transform: translateY(280px); }
    100% { transform: translateY(0); }
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(0,0,0,0.3);
    border-radius: 4px;
    overflow: hidden;
}
.progress {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-accent-start), var(--primary-accent-end));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Step 3: Email Form */
.status-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 1rem;
    color: #f9a825; /* Warning color */
}
.status-icon.success {
    color: #2dd4bf; /* Success color */
}
.email-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    width: 100%;
}
#email-input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(0,0,0,0.2);
    color: var(--text-color);
    font-size: 1rem;
}
#email-input:focus {
    outline: none;
    border-color: var(--primary-accent-start);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

/* Step 4: Success */
#user-email-placeholder {
    color: var(--text-color);
}

footer {
    margin-top: 2rem;
    color: var(--text-secondary-color);
    font-size: 0.9rem;
}

/* Spinner for button */
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 600px) {
    body { padding: 1rem; }
    header h1 { font-size: 2rem; }
    .card { padding: 1.5rem; }
}