:global(body) {
    margin: 0;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background:
        radial-gradient(circle at top left, rgba(70, 141, 255, 0.22), transparent 30%),
        radial-gradient(circle at bottom right, rgba(35, 110, 255, 0.14), transparent 26%),
        linear-gradient(180deg, #07111f 0%, #0d1a33 100%);
    color: #eef4ff;
}

.page-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.page-glow {
    position: absolute;
    border-radius: 999px;
    filter: blur(64px);
    pointer-events: none;
    opacity: 0.7;
}

.page-glow-left {
    width: 240px;
    height: 240px;
    left: 6%;
    top: 10%;
    background: rgba(45, 124, 255, 0.28);
}

.page-glow-right {
    width: 280px;
    height: 280px;
    right: 8%;
    bottom: 6%;
    background: rgba(0, 140, 255, 0.18);
}

.card {
    width: min(100%, 760px);
    position: relative;
    z-index: 1;
    padding: 32px;
    border-radius: 28px;
    border: 1px solid rgba(133, 175, 255, 0.18);
    background: rgba(9, 18, 36, 0.78);
    backdrop-filter: blur(18px);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.38);
}

.hero {
    margin-bottom: 26px;
}

.eyebrow {
    margin: 0 0 8px;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.78rem;
    color: #7cb0ff;
}

.hero h2 {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.05;
    color: #f8fbff;
}

.subtitle {
    margin: 12px 0 0;
    max-width: 62ch;
    color: rgba(232, 241, 255, 0.76);
    line-height: 1.6;
}

.form-panel {
    display: grid;
    gap: 16px;
}

.upload-panel,
.paste-panel {
    display: grid;
    gap: 10px;
}

.field-label {
    font-weight: 600;
    color: #d9e7ff;
}

input[type='file'],
.paste-target {
    width: calc(100% - 32px);
    border: 1px solid rgba(121, 168, 255, 0.22);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    color: #f5f8ff;
    padding: 14px 16px;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.paste-target {
    min-height: 126px;
    resize: vertical;
}

input[type='file']::file-selector-button {
    margin-right: 12px;
    border: 0;
    border-radius: 10px;
    padding: 10px 14px;
    background: linear-gradient(135deg, #3a82ff 0%, #185ce0 100%);
    color: white;
    font-weight: 600;
    cursor: pointer;
}

input[type='file']:focus,
.paste-target:focus {
    border-color: rgba(75, 145, 255, 0.95);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.18);
}

.info-label,
.result-label {
    font-size: 0.82rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8db8ff;
}

.result-block {
    margin-top: 22px;
    padding: 18px 20px;
    border-radius: 18px;
    border: 1px solid rgba(124, 173, 255, 0.18);
    background: linear-gradient(135deg, rgba(31, 86, 186, 0.18), rgba(11, 21, 41, 0.9));
}

.info {
    margin: 8px 0 0;
    font-size: clamp(1.6rem, 4vw, 2.4rem);
    color: #ffffff;
}

.error {
    margin: 0;
    color: #ffb3c1;
    background: rgba(255, 70, 109, 0.12);
    border: 1px solid rgba(255, 110, 145, 0.18);
    padding: 12px 14px;
    border-radius: 14px;
}

.loader-wrapper {
    display: grid;
    place-items: center;
    margin-top: 8px;
}

@media (max-width: 640px) {
    .card {
        padding: 20px;
        border-radius: 22px;
    }

    .primary-btn {
        width: 100%;
    }
}
/* HTML: <div class="loader"></div> */
.loader {
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 8px solid #ffffff;
  animation:
    l20-1 0.8s infinite linear alternate,
    l20-2 1.6s infinite linear;
}
@keyframes l20-1{
   0%    {clip-path: polygon(50% 50%,0       0,  50%   0%,  50%    0%, 50%    0%, 50%    0%, 50%    0% )}
   12.5% {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100%   0%, 100%   0%, 100%   0% )}
   25%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 100% 100%, 100% 100% )}
   50%   {clip-path: polygon(50% 50%,0       0,  50%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   62.5% {clip-path: polygon(50% 50%,100%    0, 100%   0%,  100%   0%, 100% 100%, 50%  100%, 0%   100% )}
   75%   {clip-path: polygon(50% 50%,100% 100%, 100% 100%,  100% 100%, 100% 100%, 50%  100%, 0%   100% )}
   100%  {clip-path: polygon(50% 50%,50%  100%,  50% 100%,   50% 100%,  50% 100%, 50%  100%, 0%   100% )}
}
@keyframes l20-2{ 
  0%    {transform:scaleY(1)  rotate(0deg)}
  49.99%{transform:scaleY(1)  rotate(135deg)}
  50%   {transform:scaleY(-1) rotate(0deg)}
  100%  {transform:scaleY(-1) rotate(-135deg)}
}
