* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    min-height: 100vh;
    background: #4a4a4a url('../img/bg_image.jpg') center/cover no-repeat fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-family: system-ui, -apple-system, sans-serif;
    padding: 1.5rem;
}
.instructions-wrap {
    width: 100%;
    max-width: 900px;
    margin-bottom: 1.5rem;
}
.instructions-glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 1.25rem 2rem;
    box-shadow: 0 0 20px rgba(180, 50, 50, 0.35), 0 0 40px rgba(150, 40, 40, 0.15);
    text-align: center;
    width: 100%;
    animation: instructions-glow-pulse 3s ease-in-out infinite;
}
@keyframes instructions-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(180, 50, 50, 0.25), 0 0 40px rgba(150, 40, 40, 0.1);
    }
    50% {
        box-shadow: 0 0 28px rgba(180, 50, 50, 0.5), 0 0 56px rgba(150, 40, 40, 0.25);
    }
}
.instructions-glass p {
    color: rgba(255, 255, 255, 0.95);
    font-size: 0.95rem;
    margin-bottom: 0.35rem;
}
.instructions-glass p:last-child {
    margin-bottom: 0;
}
.panes {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
}
.glass {
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 16px;
    padding: 2.5rem;
    box-shadow: 0 0 20px rgba(90, 60, 110, 0.35), 0 0 40px rgba(70, 50, 100, 0.15);
    text-align: center;
    min-width: 320px;
    max-width: 530px;
    width: 90%;
    position: relative;
    z-index: 1;
    transition: box-shadow 0.3s;
}
.glass-wrap.glass-left .glass,
.glass-wrap.glass-right .glass {
    min-width: 320px;
}
.glass-wrap:not(.uploading):not(.uploaded):not(.verifying):not(.verified) .glass {
    animation: glass-glow-pulse 3s ease-in-out infinite;
}
.glass-wrap.glass-left:not(.verifying):not(.verified) .glass {
    animation: glass-glow-pulse 3s ease-in-out infinite;
}
.glass-wrap.glass-left.verified .glass {
    box-shadow: 0 0 20px rgba(90, 60, 110, 0.5), 0 0 40px rgba(70, 50, 100, 0.25);
}
@keyframes glass-glow-pulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(90, 60, 110, 0.25), 0 0 40px rgba(70, 50, 100, 0.1);
    }
    50% {
        box-shadow: 0 0 28px rgba(90, 60, 110, 0.5), 0 0 56px rgba(70, 50, 100, 0.25);
    }
}
.glass h1,
.glass h2 {
    color: #fff;
    margin-bottom: 1.5rem;
    font-weight: 500;
}
.verify-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
    margin-top: 0.5rem;
}
.verify-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
#verify-output {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 0.9rem;
}
.form-group {
    margin-bottom: 1rem;
    text-align: left;
}
.form-group label {
    display: block;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    margin-bottom: 0.35rem;
}
.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 8px;
    color: #fff;
    font-size: 1rem;
}
.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}
.form-group select option {
    background: #4a4a4a;
    color: #fff;
}
.file-input-wrap {
    margin-bottom: 1rem;
}
.file-input-wrap input[type="file"] {
    display: none;
}
.file-label {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
}
.file-label:hover {
    background: rgba(255, 255, 255, 0.3);
}
.file-name {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-top: 0.5rem;
}
.upload-btn {
    padding: 0.75rem 2rem;
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.2s;
}
.upload-btn:hover {
    background: rgba(255, 255, 255, 0.35);
}
.upload-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
#output {
    color: rgba(255, 255, 255, 0.9);
    margin-top: 1rem;
    font-size: 0.9rem;
}
.glass-wrap {
    position: relative;
    padding: 4px;
    border-radius: 20px;
    overflow: hidden;
}
.progress-ring {
    position: absolute;
    inset: 0;
    border-radius: 16px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.2s;
    overflow: hidden;
    z-index: 0;
}
.glass > *:not(.progress-ring) {
    position: relative;
    z-index: 1;
}
.glass-wrap.uploading .progress-ring,
.glass-wrap.uploaded .progress-ring {
    opacity: 1;
}
.progress-ring svg {
    width: 100%;
    height: 100%;
    border-radius: 18px;
}
.progress-ring path {
    fill: none;
    stroke: rgba(0, 255, 0, 0.5);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: var(--path-len, 100);
    stroke-dashoffset: var(--path-offset, 100);
    filter: blur(0.5px) drop-shadow(0 0 4px rgba(0, 255, 0, 0.4));
    transition: stroke-dashoffset 0.1s linear;
}
.glass-wrap.uploaded .progress-ring path {
    stroke-dashoffset: 0;
    stroke: rgba(0, 255, 0, 0.6);
    filter: blur(0.5px) drop-shadow(0 0 6px rgba(0, 255, 0, 0.5));
    animation: neon-glow 1.5s ease-in-out infinite;
}
@keyframes neon-glow {
    0%, 100% { filter: blur(0.5px) drop-shadow(0 0 6px rgba(0, 255, 0, 0.5)); }
    50% { filter: blur(0.5px) drop-shadow(0 0 10px rgba(0, 255, 0, 0.65)); }
}
.glass-wrap.uploading .glass {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 6px 20px rgba(0, 255, 0, 0.4), 0 0 30px rgba(0, 255, 0, 0.3);
}
.glass-wrap.uploaded .glass {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2), 0 6px 24px lime, 0 0 40px rgba(0, 255, 0, 0.6), 0 0 80px rgba(0, 255, 0, 0.3);
}
.uploaded-msg {
    color: lime;
    text-shadow: 0 0 10px lime, 0 0 20px rgba(0, 255, 0, 0.8);
    font-weight: 600;
    animation: neon-pulse 1.5s ease-in-out infinite;
}
@keyframes neon-pulse {
    0%, 100% { opacity: 1; text-shadow: 0 0 10px lime, 0 0 20px rgba(0, 255, 0, 0.8); }
    50% { opacity: 0.9; text-shadow: 0 0 15px lime, 0 0 30px rgba(0, 255, 0, 0.9); }
}
