/* ============================================ */
/* === Global & General === */
/* ============================================ */

:root {
    width: 100%;
    height: 100%;
    font-size: 16px;

    --clr-background: #00133d;
    --clr-primary: #0172d1;
    --clr-secondary: #2fcefc;
    --clr-accent: #9fef00;
    --clr-surface: #001034;
    --clr-surface-layer: #000b25;
    --clr-surface-border: #001c5d;
    --clr-white: #fff;
    --clr-primary-glow: rgba(1, 114, 209, 0.3);
    --clr-primary-glow-strong: rgba(1, 114, 209, 0.6);
    --clr-secondary-glow: rgba(47, 206, 252, 0.2);
    --clr-accent-glow: rgba(159, 239, 0, 0.3);
    --clr-gradient-dark: #000814;
    --clr-gradient-mid: #001028;
    --clr-gradient-blue: #001440;

    --font-primary: "Karla", Helvetica, Arial, sans-serif;
    --font-mono: "Consolas", monospace;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    background-color: var(--clr-background);
    color: var(--clr-white);
}

* {
    box-sizing: border-box;
    font-family: var(--font-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Smooth scrolling for all devices */
html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
}

/* Prevent zoom on input focus on iOS */
input[type="text"],
input[type="password"],
input[type="file"],
textarea {
    font-size: 16px !important;
}

/* Optimize for mobile performance */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}


/* ============================================ */
/* === Header === */
/* ============================================ */

#header {
    width: 85%;
    height: 70px;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    display: flex;
    justify-content: unsafe;
    align-items: center;
    flex: row;
}

#header>a {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-left: 1rem;
}

#header>a>img:first-of-type {
    height: 35px;
}

#header>a>img:last-of-type {
    height: 55px;
}


/* ============================================ */
/* === Main Container === */
/* ============================================ */

#ui {
    width: 85%;
    height: 82vh;
    position: relative;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 1.5rem;
    background-color: var(--clr-surface);
    border: 2.5px solid var(--clr-surface-border);
    border-radius: 15px;
    overflow-y: auto;
}

#ui::-webkit-scrollbar {
    width: 10px;
}

#ui::-webkit-scrollbar-track {
    background: rgba(0, 11, 37, 0.5);
    border-radius: 10px;
}

#ui::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--clr-primary), var(--clr-secondary));
    border-radius: 10px;
}

#ui::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--clr-secondary), var(--clr-primary));
}

#ui>section {
    height: 100%;
}


/* ============================================ */
/* === Upload Section === */
/* ============================================ */

#upload-file {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    flex-direction: column;
}

#upload-file>h1 {
    font-family: var(--font-mono);
    margin-top: 5rem;
    font-size: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    position: relative;
}

/* Ghost Icon vor der Überschrift */
#upload-file>h1::before {
    content: '';
    width: 50px;
    height: 50px;
    background-image: url('../assets/img/app-icon/ghost-primary.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 10px var(--clr-primary-glow-strong));
    animation: titleGhostFloat 2.5s ease-in-out infinite;
}

#upload-file>h1 strong {
    font-family: var(--font-mono);
    color: var(--clr-primary);
    text-shadow: 1.5px 1.5px 3px var(--clr-secondary);
    transition: all 0.4s ease;
    cursor: pointer;
}

#upload-file>h1 strong:hover {
    color: var(--clr-accent);
    text-shadow:
        0 0 10px var(--clr-accent-glow),
        0 0 20px var(--clr-accent-glow),
        1.5px 1.5px 3px var(--clr-secondary);
    transform: translateY(-2px);
}

@keyframes titleGhostFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-2deg);
        filter: drop-shadow(0 0 8px var(--clr-primary-glow-strong));
    }

    50% {
        transform: translateY(-5px) rotate(2deg);
        filter: drop-shadow(0 0 12px var(--clr-primary-glow-strong));
    }
}

#upload-file>p {
    width: 75%;
    height: auto;
    text-align: center;
}

#upload-file .row {
    width: 85%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 2rem;
    row-gap: 3rem;
    margin-top: 0;
    margin-bottom: 2rem;
}

#upload-file .row div {
    flex: 1 1 calc(33.333% - 1.5rem);
    min-width: 220px;
    max-width: 320px;
    height: auto;
    padding: 2rem 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    background-color: var(--clr-surface-layer);
    border-radius: 15px;
    transition: all 0.3s ease;
    position: relative;
}

#upload-file .row div span {
    display: flex;
    font-size: 3.5rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

#upload-file .row h2 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0.5rem 0;
    font-family: var(--font-mono);
}

#upload-file .row p {
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
    opacity: 0.8;
}

/* Any File Box - Dotted Border */
#upload-file .row div:first-of-type {
    border: 3px dashed var(--clr-surface-border);
    background: linear-gradient(145deg, var(--clr-surface-layer), var(--clr-gradient-dark));
}

#upload-file .row div:first-of-type:hover {
    border-color: var(--clr-secondary);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--clr-secondary-glow);
}

#upload-file .row div:first-of-type span {
    color: var(--clr-secondary);
}

/* Password Box - Accent Glow */
#upload-file .row div:nth-of-type(2) {
    border: 2px solid var(--clr-surface-border);
    background: linear-gradient(145deg, var(--clr-surface-layer), var(--clr-gradient-mid));
}

#upload-file .row div:nth-of-type(2):hover {
    border-color: var(--clr-accent);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px var(--clr-accent-glow),
        inset 0 0 20px var(--clr-accent-glow);
}

#upload-file .row div:nth-of-type(2) span {
    color: var(--clr-accent);
}

/* Ghost Box - Epic Neon Effect with SVG */
#upload-file .row div:last-of-type {
    border: 2px solid var(--clr-primary);
    background: linear-gradient(145deg, var(--clr-gradient-blue), var(--clr-surface-layer));
    box-shadow: 0 0 30px var(--clr-primary-glow),
        0 5px 20px var(--clr-primary-glow),
        inset 0 0 20px var(--clr-primary-glow);
    animation: ghostPulseIdle 3s ease-in-out infinite;
}

#upload-file .row div:last-of-type:hover {
    border-color: var(--clr-primary);
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 0 60px var(--clr-primary-glow-strong),
        0 20px 50px var(--clr-primary-glow-strong),
        inset 0 0 40px var(--clr-primary-glow);
    animation: ghostPulse 1.5s ease-in-out infinite;
}

/* Action Buttons */
.action-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    margin-top: 2.5rem;
    margin-bottom: 3rem;
    width: 100%;
}

.action-buttons button {
    padding: 1.2rem 2.5rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

/* Primary Upload Button */
.btn-primary {
    background: linear-gradient(135deg,
            rgba(1, 114, 209, 0.65),
            rgba(47, 206, 252, 0.55),
            rgba(1, 114, 209, 0.65));
    backdrop-filter: blur(10px);
    color: var(--clr-white);
    box-shadow: 0 4px 15px rgba(1, 114, 209, 0.2);
    border: 2px solid rgba(47, 206, 252, 0.4);
    border-radius: 100px;
    animation: primaryPulse 2.5s ease-in-out infinite;
    font-weight: 600;
    letter-spacing: 0.5px;
    min-width: 400px;
    padding: 1rem 2.5rem;
    justify-content: flex-start;
}

.btn-primary .material-icon {
    font-size: 2.4rem;
    color: var(--clr-white);
    margin-right: 0.5rem;
}

.btn-primary::after {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
    z-index: -1;
    opacity: 0.3;
    filter: blur(20px);
    animation: glowPulse 2s ease-in-out infinite;
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    background: linear-gradient(135deg,
            rgba(1, 114, 209, 0.75),
            rgba(47, 206, 252, 0.65),
            rgba(1, 114, 209, 0.75));
    box-shadow: 0 8px 30px rgba(47, 206, 252, 0.3),
        0 0 50px rgba(47, 206, 252, 0.2);
    border-color: rgba(47, 206, 252, 0.6);
    animation: none;
}

.btn-primary:hover::after {
    opacity: 0.7;
    filter: blur(25px);
}

.btn-primary:active {
    transform: translateY(-1px);
}

.btn-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
}

.btn-primary .btn-text {
    font-family: var(--font-mono);
    font-weight: 700;
    letter-spacing: 0.8px;
}

.btn-subtext {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.8;
    letter-spacing: 0.3px;
}

/* Secondary GitHub Button */
.btn-secondary {
    background: rgba(36, 41, 46, 0.5);
    backdrop-filter: blur(10px);
    color: #ffffff;
    box-shadow: 0 3px 15px rgba(36, 41, 46, 0.3);
    border: 2px solid #1c2128;
    border-radius: 12px;
    padding: 1rem 2rem;
    min-height: 60px;
    align-items: center;
}

.btn-secondary .github-icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: all 0.3s ease;
    margin-right: 0.5rem;
    flex-shrink: 0;
}

.btn-secondary:hover {
    background: rgba(36, 41, 46, 0.7);
    backdrop-filter: blur(15px);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(36, 41, 46, 0.5);
    border-color: var(--clr-accent);
}

.btn-secondary:hover .github-icon {
    fill: var(--clr-accent);
    filter: drop-shadow(0 0 8px var(--clr-accent-glow));
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Info Button */
.btn-info {
    background: rgba(159, 239, 0, 0.15);
    backdrop-filter: blur(10px);
    color: var(--clr-accent);
    box-shadow: 0 3px 15px rgba(159, 239, 0, 0.2);
    border: 2px solid rgba(159, 239, 0, 0.3);
    border-radius: 12px;
    padding: 1rem 2rem;
    min-height: 60px;
    align-items: center;
}

.btn-info .material-icon {
    font-size: 1.5rem;
    color: var(--clr-accent);
}

.btn-info:hover {
    background: rgba(159, 239, 0, 0.25);
    backdrop-filter: blur(15px);
    transform: translateY(-2px);
    box-shadow: 0 5px 25px rgba(159, 239, 0, 0.4);
    border-color: var(--clr-accent);
}

.btn-info:hover .material-icon {
    filter: drop-shadow(0 0 10px var(--clr-accent-glow));
}

.btn-info:active {
    transform: translateY(0);
}

.btn-text {
    font-size: 1.1rem;
    letter-spacing: 0.5px;
}

#upload-file .row div:last-of-type span {
    display: none;
}

/* Ghost SVG Icon */
#upload-file .row div:last-of-type::before {
    content: '';
    width: 80px;
    height: 80px;
    margin-bottom: 1.5rem;
    background-image: url('../assets/img/app-icon/ghost-primary.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    filter: drop-shadow(0 0 15px var(--clr-primary-glow-strong));
    animation: ghostFloat 3s ease-in-out infinite;
}

#upload-file .row div:last-of-type:hover::before {
    filter: drop-shadow(0 0 25px var(--clr-primary-glow-strong)) drop-shadow(0 0 40px var(--clr-primary));
    animation: ghostFloatFast 2s ease-in-out infinite;
}

/* Animations */
@keyframes ghostPulseIdle {

    0%,
    100% {
        box-shadow: 0 0 30px var(--clr-primary-glow),
            0 5px 20px var(--clr-primary-glow),
            inset 0 0 20px var(--clr-primary-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--clr-primary-glow-strong),
            0 8px 30px var(--clr-primary-glow),
            inset 0 0 25px var(--clr-primary-glow);
    }
}

@keyframes ghostPulse {

    0%,
    100% {
        box-shadow: 0 0 60px var(--clr-primary-glow-strong),
            0 20px 50px var(--clr-primary-glow-strong),
            inset 0 0 40px var(--clr-primary-glow);
    }

    50% {
        box-shadow: 0 0 80px var(--clr-primary-glow-strong),
            0 25px 60px var(--clr-primary-glow-strong),
            inset 0 0 50px var(--clr-primary-glow);
    }
}

@keyframes ghostFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-8px);
    }
}

@keyframes ghostFloatFast {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

/* Button Animations */
@keyframes primaryPulse {

    0%,
    100% {
        box-shadow: 0 4px 15px rgba(1, 114, 209, 0.25);
    }

    50% {
        box-shadow: 0 4px 20px rgba(1, 114, 209, 0.35);
    }
}

@keyframes glowPulse {

    0%,
    100% {
        opacity: 0.5;
        filter: blur(15px);
    }

    50% {
        opacity: 0.7;
        filter: blur(20px);
    }
}

@keyframes iconBounce {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-3px);
    }
}


/* ============================================ */
/* === File View Section === */
/* ============================================ */

#file-view {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#file-view.hidden {
    display: none;
}

#upload-file {
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#upload-file.hidden {
    display: none;
}

.file-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(0, 16, 52, 0.6), rgba(0, 11, 37, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(1, 114, 209, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.file-card::-webkit-scrollbar {
    display: none;
}

.file-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(47, 206, 252, 0.2);
}

.file-icon-container {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.3), rgba(47, 206, 252, 0.2));
    border-radius: 20px;
    border: 2px solid rgba(47, 206, 252, 0.4);
}

.file-type-icon {
    font-size: 3rem !important;
    color: var(--clr-secondary);
    filter: drop-shadow(0 0 10px var(--clr-secondary-glow));
}

.file-info {
    flex: 1;
}

.file-name {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--clr-white);
    margin: 0 0 0.5rem 0;
    word-break: break-all;
}

.file-size {
    font-size: 1rem;
    color: var(--clr-secondary);
    margin: 0;
    opacity: 0.8;
}

.file-status {
    margin-bottom: 2rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    border-radius: 16px;
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 0.95rem;
}

.status-badge.ghost-file {
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.3), rgba(47, 206, 252, 0.2));
    border: 2px solid rgba(47, 206, 252, 0.5);
    color: var(--clr-secondary);
}

.status-badge.normal-file {
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.2), rgba(159, 239, 0, 0.1));
    border: 2px solid rgba(159, 239, 0, 0.4);
    color: var(--clr-accent);
}

.status-icon {
    font-size: 1.3rem !important;
}

.file-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 11, 37, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(1, 114, 209, 0.2);
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.detail-label {
    font-size: 0.8rem;
    color: var(--clr-secondary);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--clr-white);
    font-weight: 600;
}

.file-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn-process {
    flex: 2;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(1, 114, 209, 0.6);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.6), rgba(47, 206, 252, 0.5));
    backdrop-filter: blur(10px);
    color: var(--clr-white);
    box-shadow: 0 4px 20px rgba(1, 114, 209, 0.3);
}

.btn-process:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.75), rgba(47, 206, 252, 0.65));
    box-shadow: 0 6px 30px rgba(1, 114, 209, 0.4);
    border-color: rgba(47, 206, 252, 0.8);
}

.btn-process .material-icon {
    font-size: 1.4rem;
}

.btn-cancel {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: var(--clr-white);
}

.btn-cancel:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-cancel .material-icon {
    font-size: 1.2rem;
}


/* ============================================ */
/* === Auth Selection Section === */
/* ============================================ */

#auth-selection {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#auth-selection.hidden {
    display: none;
}

.auth-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(0, 16, 52, 0.6), rgba(0, 11, 37, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(1, 114, 209, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.auth-card::-webkit-scrollbar {
    display: none;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .material-icon {
    font-size: 3.5rem;
    color: var(--clr-secondary);
    filter: drop-shadow(0 0 15px var(--clr-secondary-glow));
    margin-bottom: 1rem;
}

.auth-header h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--clr-white);
    margin: 0 0 0.5rem 0;
}

.auth-header p {
    color: var(--clr-secondary);
    opacity: 0.8;
    margin: 0;
}

.auth-options {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
}

.auth-option {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(0, 11, 37, 0.5);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.auth-option:hover {
    background: rgba(1, 114, 209, 0.2);
    border-color: rgba(47, 206, 252, 0.5);
    transform: translateX(10px);
}

.auth-option .material-icon {
    font-size: 2.5rem;
    color: var(--clr-secondary);
    min-width: 50px;
}

.option-content h3 {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    color: #ffffff !important;
    margin: 0 0 0.5rem 0;
}

.option-content p {
    color: var(--clr-secondary);
    opacity: 0.7;
    margin: 0;
    font-size: 0.9rem;
}

.btn-back {
    width: 100%;
    padding: 0.75rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-white);
}

.btn-back:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}


/* ============================================ */
/* === Auth Input Section === */
/* ============================================ */

#auth-input {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#auth-input.hidden {
    display: none;
}

.input-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(0, 16, 52, 0.6), rgba(0, 11, 37, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(1, 114, 209, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.input-card::-webkit-scrollbar {
    display: none;
}

.input-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
}

.input-header .material-icon {
    font-size: 3rem;
    color: var(--clr-secondary);
    filter: drop-shadow(0 0 15px var(--clr-secondary-glow));
}

.input-header h2 {
    font-family: var(--font-mono);
    font-size: 1.5rem;
    color: var(--clr-white);
    margin: 0;
}

.input-group {
    position: relative;
    margin-bottom: 1rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    font-family: var(--font-mono);
    font-size: 1rem;
    background: rgba(0, 11, 37, 0.6);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 12px;
    color: var(--clr-white);
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: rgba(47, 206, 252, 0.6);
    box-shadow: 0 0 20px rgba(47, 206, 252, 0.2);
}

.toggle-password {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--clr-secondary);
    cursor: pointer;
    padding: 0.5rem;
    transition: all 0.3s ease;
}

.toggle-password:hover {
    color: var(--clr-white);
}

.password-strength {
    margin-bottom: 2rem;
}

.password-strength.hidden {
    display: none;
}

.strength-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    transition: width 0.3s ease, background 0.3s ease;
    width: 0%;
}

.strength-fill.weak {
    background: linear-gradient(90deg, #ff4444, #ff6666);
}

.strength-fill.medium {
    background: linear-gradient(90deg, #ffaa00, #ffcc00);
}

.strength-fill.strong {
    background: linear-gradient(90deg, var(--clr-accent), #77ff00);
}

.strength-text {
    font-size: 0.85rem;
    color: var(--clr-secondary);
    opacity: 0.8;
    line-height: 1.5;
    word-wrap: break-word;
}

.keyfile-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-keyfile {
    padding: 1rem 1.5rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(159, 239, 0, 0.4);
    border-radius: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: rgba(159, 239, 0, 0.1);
    color: var(--clr-accent);
}

.btn-keyfile.hidden {
    display: none;
}

.btn-keyfile:hover {
    background: rgba(159, 239, 0, 0.2);
    border-color: var(--clr-accent);
    transform: translateY(-2px);
}

.keyfile-status {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(159, 239, 0, 0.15);
    border: 2px solid rgba(159, 239, 0, 0.4);
    border-radius: 12px;
    color: var(--clr-accent);
    margin-bottom: 1.5rem;
}

.keyfile-status .material-icon {
    font-size: 1.5rem;
}

.input-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.btn-start {
    width: 100%;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(1, 114, 209, 0.6);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.6), rgba(47, 206, 252, 0.5));
    color: var(--clr-white);
    box-shadow: 0 4px 20px rgba(1, 114, 209, 0.3);
}

.btn-start:hover:not(:disabled) {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.75), rgba(47, 206, 252, 0.65));
    box-shadow: 0 6px 30px rgba(1, 114, 209, 0.4);
}

.btn-start:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}


/* ============================================ */
/* === Processing Section === */
/* ============================================ */

#processing {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#processing.hidden {
    display: none;
}

.processing-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(0, 16, 52, 0.6), rgba(0, 11, 37, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(1, 114, 209, 0.3);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(1, 114, 209, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.processing-card::-webkit-scrollbar {
    display: none;
}

.processing-header {
    text-align: center;
    margin-bottom: 2rem;
}

.processing-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(1, 114, 209, 0.3), rgba(47, 206, 252, 0.2));
    border-radius: 50%;
    border: 3px solid rgba(47, 206, 252, 0.5);
}

.processing-icon {
    font-size: 4rem !important;
    color: var(--clr-secondary);
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.processing-header h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--clr-white);
    margin: 0 0 0.5rem 0;
}

.processing-header p {
    color: var(--clr-secondary);
    opacity: 0.8;
    margin: 0;
}

.progress-container {
    margin-bottom: 2.5rem;
}

.progress-bar {
    height: 12px;
    background: rgba(0, 11, 37, 0.6);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(1, 114, 209, 0.3);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--clr-primary), var(--clr-secondary));
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 20px var(--clr-secondary-glow);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.progress-info span {
    font-family: var(--font-mono);
    color: var(--clr-white);
    font-weight: 600;
}

.processing-steps {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.step-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 11, 37, 0.4);
    border-radius: 12px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.step-item.active {
    border-color: rgba(47, 206, 252, 0.5);
    background: rgba(1, 114, 209, 0.15);
}

.step-item.complete {
    border-color: rgba(159, 239, 0, 0.5);
    background: rgba(159, 239, 0, 0.1);
}

.step-icon {
    font-size: 1.5rem !important;
    color: var(--clr-secondary);
}

.step-item.active .step-icon {
    color: var(--clr-secondary);
}

.step-item.complete .step-icon {
    color: var(--clr-accent);
}

.spinning {
    animation: rotate 1s linear infinite;
}

.step-text {
    color: var(--clr-white);
    font-family: var(--font-mono);
}

/* Complete Section */
#complete {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#complete.hidden {
    display: none;
}


/* ============================================ */
/* === Error Section === */
/* ============================================ */

#error {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}

#error.hidden {
    display: none;
}

.error-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(52, 0, 0, 0.6), rgba(37, 0, 0, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 77, 77, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(255, 77, 77, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.error-card::-webkit-scrollbar {
    display: none;
}

.error-header {
    text-align: center;
    margin-bottom: 2rem;
}

.error-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(255, 77, 77, 0.3), rgba(255, 77, 77, 0.2));
    border-radius: 50%;
    border: 3px solid #ff4d4d;
    animation: errorPulse 2s ease-in-out infinite;
}

@keyframes errorPulse {

    0%,
    100% {
        box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
    }

    50% {
        box-shadow: 0 0 40px rgba(255, 77, 77, 0.7);
    }
}

.error-icon {
    font-size: 4rem !important;
    color: #ff4d4d;
}

.error-header h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: #ff4d4d;
    margin: 0 0 0.5rem 0;
}

.error-header p {
    color: #ffb3b3;
    opacity: 0.9;
    margin: 0;
    font-size: 1.1rem;
    line-height: 1.6;
}

.error-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.error-actions .btn-primary {
    flex: 2;
}

.error-actions .btn-secondary {
    flex: 1;
}


/* ============================================ */
/* === Complete Section === */
/* ============================================ */

.complete-card {
    width: 85%;
    max-height: 85vh;
    padding: 2.5rem;
    background: linear-gradient(145deg, rgba(0, 16, 52, 0.6), rgba(0, 11, 37, 0.4));
    backdrop-filter: blur(15px);
    border: 2px solid rgba(159, 239, 0, 0.4);
    border-radius: 24px;
    box-shadow: 0 8px 40px rgba(159, 239, 0, 0.2);
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.complete-card::-webkit-scrollbar {
    display: none;
}

.complete-header {
    text-align: center;
    margin-bottom: 2rem;
}

.success-icon-container {
    width: 100px;
    height: 100px;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.3), rgba(159, 239, 0, 0.2));
    border-radius: 50%;
    border: 3px solid var(--clr-accent);
    animation: successPulse 2s ease-in-out infinite;
}

@keyframes successPulse {

    0%,
    100% {
        box-shadow: 0 0 20px var(--clr-accent-glow);
    }

    50% {
        box-shadow: 0 0 40px var(--clr-accent-glow);
    }
}

.success-icon {
    font-size: 4rem !important;
    color: var(--clr-accent);
}

.complete-header h2 {
    font-family: var(--font-mono);
    font-size: 1.8rem;
    color: var(--clr-accent);
    margin: 0 0 0.5rem 0;
}

.complete-header p {
    color: var(--clr-secondary);
    opacity: 0.8;
    margin: 0;
}

.complete-summary {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    background: rgba(0, 11, 37, 0.5);
    border-radius: 16px;
    border: 1px solid rgba(159, 239, 0, 0.3);
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-label {
    font-size: 0.8rem;
    color: var(--clr-accent);
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.summary-value {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--clr-white);
    font-weight: 600;
    word-break: break-all;
}

.complete-actions {
    display: flex;
    gap: 1rem;
}

.btn-download {
    flex: 2;
    padding: 1.2rem 2rem;
    font-size: 1.1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid var(--clr-accent);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.3), rgba(159, 239, 0, 0.2));
    color: var(--clr-accent);
    box-shadow: 0 4px 20px rgba(159, 239, 0, 0.3);
}

.btn-download:hover {
    transform: translateY(-3px);
    background: linear-gradient(135deg, rgba(159, 239, 0, 0.4), rgba(159, 239, 0, 0.3));
    box-shadow: 0 6px 30px rgba(159, 239, 0, 0.4);
}

.btn-download .material-icon {
    font-size: 1.4rem;
}

.btn-secondary-action {
    flex: 1;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    font-family: var(--font-mono);
    font-weight: 600;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.05);
    color: var(--clr-white);
}

.btn-secondary-action:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}


/* ============================================ */
/* === RESPONSIVE DESIGN === */
/* ============================================ */


/* ============================================ */
/* === Tablet Landscape (1024px - 1280px) === */
/* ============================================ */

@media screen and (max-width: 1280px) {
    :root {
        font-size: 15px;
    }

    #header {
        width: 90%;
        height: 60px;
        margin-top: 0.75rem;
        margin-bottom: 0.75rem;
    }

    #header>a {
        margin-left: 1.25rem;
    }

    #header>a>img:first-of-type {
        height: 32px;
    }

    #header>a>img:last-of-type {
        height: 50px;
    }

    #ui {
        width: 90%;
        height: 85vh;
        max-height: 95vh;
        margin-top: 0.5rem;
    }

    section {
        padding: 2rem 2.5rem;
    }

    .section-title {
        font-size: 2rem;
        margin-bottom: 0.75rem;
    }

    .section-subtitle {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    /* Welcome Screen Buttons */
    .action-buttons {
        gap: 1.5rem;
    }

    .action-buttons button {
        padding: 1.1rem 2.25rem;
        font-size: 1.05rem;
    }

    .btn-primary {
        min-width: 360px;
        padding: 0.95rem 2.25rem;
        border-radius: 90px;
    }

    .btn-primary .material-icon {
        font-size: 2.2rem;
    }

    .btn-secondary,
    .btn-info {
        min-height: 56px;
    }

    .btn-secondary .github-icon {
        width: 24px;
        height: 24px;
    }

    .btn-info .material-icon {
        font-size: 1.5rem;
    }

    .btn-text {
        font-size: 1.05rem;
    }

    /* Info Boxes */
    #upload-file .row {
        width: 90%;
        gap: 1.5rem;
        row-gap: 2.5rem;
    }

    #upload-file .row div {
        flex: 1 1 calc(33.333% - 1rem);
        min-width: 200px;
        max-width: 280px;
        padding: 1.75rem 1.25rem;
    }

    #upload-file .row div span {
        font-size: 3rem;
    }

    #upload-file .row h2 {
        font-size: 1.15rem;
    }

    #upload-file .row p {
        font-size: 0.85rem;
    }
}


/* ============================================ */
/* === Info Boxes Break (< 870px) === */
/* ============================================ */

@media screen and (max-width: 869px) {
    /* Info Boxes - Smaller and wrap */
    #upload-file .row {
        width: 95%;
        gap: 1.25rem;
        row-gap: 2.25rem;
    }

    #upload-file .row div {
        flex: 1 1 calc(50% - 0.65rem);
        min-width: 180px;
        max-width: 260px;
        padding: 1.5rem 1rem;
    }

    #upload-file .row div span {
        font-size: 2.75rem;
        margin-bottom: 0.85rem;
    }

    #upload-file .row h2 {
        font-size: 1.1rem;
        margin: 0.4rem 0;
    }

    #upload-file .row p {
        font-size: 0.8rem;
    }

    #upload-file .row div:last-of-type::before {
        width: 65px;
        height: 65px;
    }
}


/* ============================================ */
/* === Medium Screens - Wrap Buttons (< 1000px) === */
/* ============================================ */

@media screen and (max-width: 999px) {
    /* Wrap Welcome Buttons - Primary on top, Secondary + Info below */
    .action-buttons {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .btn-primary {
        flex: 1 1 100%;
        min-width: unset;
        width: 100%;
        justify-content: center;
        padding: 1.1rem 2rem;
        border-radius: 80px;
    }

    .btn-primary .material-icon {
        font-size: 2.3rem;
    }

    .btn-secondary,
    .btn-info {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 0;
        min-height: 54px;
        justify-content: center;
        padding: 1.1rem 1.5rem;
        border-radius: 16px;
    }

    .btn-secondary .github-icon {
        width: 24px;
        height: 24px;
    }

    .btn-info .material-icon {
        font-size: 1.5rem;
    }

    .btn-text {
        font-size: 1.05rem;
    }
}


/* ============================================ */
/* === Tablet Portrait (768px - 1023px) === */
/* ============================================ */

@media screen and (max-width: 1023px) {
    :root {
        font-size: 14px;
    }

    #header {
        width: 92%;
        height: 55px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    #header>a {
        margin-left: 1.5rem;
    }

    #header>a>img:first-of-type {
        height: 30px;
    }

    #header>a>img:last-of-type {
        height: 45px;
    }

    #ui {
        width: 92%;
        height: 88vh;
        max-height: 95vh;
        margin-top: 0.4rem;
        border-radius: 12px;
    }

    section {
        padding: 2rem 2rem;
    }

    .section-title {
        font-size: 1.85rem;
        margin-bottom: 0.7rem;
    }

    .section-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1.75rem;
    }

    /* File Upload Section */
    .file-drop-zone {
        padding: 2.5rem 1.5rem;
        min-height: 200px;
    }

    .drop-icon {
        width: 70px;
        height: 70px;
        font-size: 2rem;
    }

    .file-select-btn {
        padding: 0.9rem 2rem;
        font-size: 1rem;
    }

    /* File View Section */
    .file-info-box {
        padding: 1.5rem;
        gap: 1.25rem;
    }

    .file-icon-large {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .file-details h3 {
        font-size: 1.3rem;
    }

    /* Auth Options */
    .auth-options {
        gap: 1rem;
    }

    .auth-option {
        padding: 1.75rem 1.5rem;
    }

    .auth-option-icon {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .auth-option h3 {
        font-size: 1.2rem;
    }

    .auth-option p {
        font-size: 0.9rem;
    }

    /* Welcome Screen Buttons - Already wrapped from 999px */
    .action-buttons {
        gap: 1rem;
        max-width: 550px;
    }

    .btn-primary {
        padding: 0.95rem 1.85rem;
        border-radius: 28px;
    }

    .btn-primary .material-icon {
        font-size: 2.1rem;
    }

    .btn-secondary,
    .btn-info {
        padding: 0.95rem 1.4rem;
        border-radius: 14px;
    }

    .btn-secondary .github-icon {
        width: 36px;
        height: 36px;
    }

    .btn-info .material-icon {
        font-size: 1.9rem;
    }

    .btn-text {
        font-size: 1rem;
    }

    /* Info Boxes */
    #upload-file .row {
        width: 96%;
        gap: 1rem;
        row-gap: 2rem;
    }

    #upload-file .row div {
        flex: 1 1 calc(50% - 0.5rem);
        min-width: 160px;
        max-width: 240px;
        padding: 1.4rem 0.9rem;
    }

    #upload-file .row div span {
        font-size: 2.5rem;
        margin-bottom: 0.75rem;
    }

    #upload-file .row h2 {
        font-size: 1.05rem;
        margin: 0.35rem 0;
    }

    #upload-file .row p {
        font-size: 0.75rem;
    }

    #upload-file .row div:last-of-type::before {
        width: 60px;
        height: 60px;
    }

    /* Input Fields */
    .input-group {
        margin-bottom: 1.5rem;
    }

    .input-field input {
        padding: 1rem 1.25rem;
        font-size: 1rem;
    }

    /* Buttons */
    .btn-secondary {
        padding: 1rem 2rem;
        font-size: 1rem;
    }

    .btn-icon-only {
        padding: 1rem;
    }

    /* Progress Steps */
    .progress-steps {
        gap: 0.75rem;
        margin-bottom: 2rem;
    }

    .step-item {
        padding: 1rem;
    }

    .step-number {
        font-size: 0.8rem;
    }

    .step-icon {
        font-size: 1.5rem;
    }

    .step-label {
        font-size: 0.85rem;
    }

    /* Summary Cards */
    .summary-cards {
        gap: 1rem;
    }

    .summary-card {
        padding: 1.25rem 1.5rem;
    }

    .summary-card-icon {
        font-size: 1.75rem;
    }

    .summary-card-label {
        font-size: 0.85rem;
    }

    .summary-card-value {
        font-size: 1.1rem;
    }

    /* Welcome Buttons - Already wrapped from 999px */
    .action-buttons {
        gap: 0.9rem;
        max-width: 500px;
    }

    .btn-primary {
        padding: 0.95rem 1.75rem;
        border-radius: 26px;
    }

    .btn-primary .material-icon {
        font-size: 2rem;
    }

    .btn-secondary,
    .btn-info {
        padding: 0.95rem 1.3rem;
        border-radius: 13px;
    }

    .btn-secondary .github-icon {
        width: 34px;
        height: 34px;
    }

    .btn-info .material-icon {
        font-size: 1.8rem;
    }
}


/* ============================================ */
/* === Mobile Landscape (640px - 767px) === */
/* ============================================ */

@media screen and (max-width: 767px) {
    :root {
        font-size: 13px;
    }

    #header {
        width: 95%;
        height: 50px;
        margin-top: 0.4rem;
        margin-bottom: 0.4rem;
    }

    #header>a {
        margin-left: 1.25rem;
    }

    #header>a>img:first-of-type {
        height: 28px;
    }

    #header>a>img:last-of-type {
        height: 42px;
    }

    #ui {
        width: 95%;
        height: 90vh;
        max-height: 95vh;
        margin-top: 0.3rem;
        border-radius: 10px;
        border-width: 2px;
    }

    section {
        padding: 1.75rem 1.5rem;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 0.6rem;
    }

    .section-subtitle {
        font-size: 0.9rem;
        margin-bottom: 1.5rem;
    }

    /* File Upload Section */
    .file-drop-zone {
        padding: 2rem 1.25rem;
        min-height: 180px;
        border-radius: 10px;
    }

    .drop-icon {
        width: 60px;
        height: 60px;
        font-size: 1.75rem;
        margin-bottom: 1rem;
    }

    .file-drop-zone h3 {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .file-drop-zone p {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
    }

    .file-select-btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    /* File View Section */
    .file-info-box {
        padding: 1.25rem;
        gap: 1rem;
        border-radius: 10px;
    }

    .file-icon-large {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .file-details h3 {
        font-size: 1.2rem;
        margin-bottom: 0.4rem;
    }

    .file-details p {
        font-size: 0.85rem;
    }

    .file-actions {
        gap: 0.75rem;
    }

    /* Auth Options */
    .auth-options {
        gap: 0.9rem;
    }

    .auth-option {
        padding: 1.5rem 1.25rem;
        border-radius: 10px;
    }

    .auth-option-icon {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
        margin-bottom: 0.9rem;
    }

    .auth-option h3 {
        font-size: 1.1rem;
        margin-bottom: 0.4rem;
    }

    .auth-option p {
        font-size: 0.85rem;
    }

    /* Input Fields */
    .input-group {
        margin-bottom: 1.25rem;
    }

    .input-group label {
        font-size: 0.9rem;
        margin-bottom: 0.5rem;
    }

    .input-field {
        border-radius: 10px;
    }

    .input-field input {
        padding: 0.9rem 1.1rem;
        font-size: 0.95rem;
    }

    .input-field .material-icon {
        font-size: 1.3rem;
    }

    /* Strength Indicator */
    .strength-indicator {
        height: 6px;
        border-radius: 4px;
    }

    .strength-text {
        font-size: 0.8rem;
    }

    /* Keyfile Actions */
    .keyfile-actions {
        gap: 0.75rem;
    }

    .keyfile-btn {
        padding: 1rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 10px;
    }

    .keyfile-status {
        padding: 0.9rem 1.1rem;
        border-radius: 8px;
    }

    /* Info Boxes - Stack vertically on mobile */
    #upload-file .row {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        margin-bottom: 1.5rem;
    }

    #upload-file .row div {
        flex: 1 1 auto;
        width: 100%;
        max-width: 400px;
        min-width: unset;
        padding: 1.3rem 0.85rem;
    }

    #upload-file .row div span {
        font-size: 2.25rem;
        margin-bottom: 0.7rem;
    }

    #upload-file .row h2 {
        font-size: 1rem;
        margin: 0.3rem 0;
    }

    #upload-file .row p {
        font-size: 0.7rem;
    }

    #upload-file .row div:last-of-type::before {
        width: 55px;
        height: 55px;
    }

    /* Welcome Buttons - Wrapped layout */
    .action-buttons {
        max-width: 450px;
        gap: 0.85rem;
    }

    .btn-primary {
        padding: 0.9rem 1.6rem;
        border-radius: 70px;
    }

    .btn-primary .material-icon {
        font-size: 2.1rem;
    }

    .btn-secondary,
    .btn-info {
        min-height: 52px;
        padding: 0.9rem 1.25rem;
        border-radius: 12px;
    }

    .btn-secondary .github-icon {
        width: 24px;
        height: 24px;
    }

    .btn-info .material-icon {
        font-size: 1.5rem;
    }

    /* Buttons */
    .btn-secondary {
        padding: 0.9rem 1.75rem;
        font-size: 0.95rem;
        border-radius: 10px;
        gap: 0.5rem;
    }

    .btn-secondary .material-icon {
        font-size: 1.2rem;
    }

    .btn-icon-only {
        padding: 0.9rem;
        border-radius: 10px;
    }

    .btn-icon-only .material-icon {
        font-size: 1.3rem;
    }

    .action-buttons {
        gap: 0.75rem;
        margin-top: 1.75rem;
    }

    /* Progress Section */
    .progress-steps {
        gap: 0.6rem;
        margin-bottom: 1.75rem;
    }

    .step-item {
        padding: 0.85rem 0.75rem;
        border-radius: 8px;
    }

    .step-number {
        font-size: 0.75rem;
        margin-bottom: 0.4rem;
    }

    .step-icon {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .step-label {
        font-size: 0.8rem;
    }

    .progress-bar-container {
        height: 35px;
        border-radius: 12px;
        margin-bottom: 1rem;
    }

    .progress-percentage {
        font-size: 1rem;
    }

    .progress-status {
        font-size: 0.85rem;
    }

    /* Summary Cards */
    .summary-cards {
        gap: 0.85rem;
        margin-bottom: 2rem;
    }

    .summary-card {
        padding: 1.1rem 1.25rem;
        border-radius: 10px;
    }

    .summary-card-icon {
        font-size: 1.6rem;
    }

    .summary-card-label {
        font-size: 0.8rem;
    }

    .summary-card-value {
        font-size: 1rem;
    }

    /* Error Section */
    .error-container {
        padding: 1.5rem;
        border-radius: 10px;
    }

    .error-icon {
        width: 65px;
        height: 65px;
        font-size: 2rem;
    }

    .error-container h3 {
        font-size: 1.3rem;
    }

    /* Complete Section Actions */
    .complete-actions {
        gap: 0.75rem;
    }

    .btn-download {
        padding: 1.1rem 1.75rem;
        font-size: 1rem;
        border-radius: 12px;
    }

    .btn-secondary-action {
        padding: 0.9rem 1.25rem;
        font-size: 0.9rem;
        border-radius: 12px;
    }
}


/* ============================================ */
/* === Mobile Portrait (480px - 639px) === */
/* ============================================ */

@media screen and (max-width: 639px) {
    :root {
        font-size: 12px;
    }

    #header {
        width: 96%;
        height: 45px;
        margin-top: 0.3rem;
        margin-bottom: 0.3rem;
    }

    #header>a {
        gap: 0.6rem;
        margin-left: 1rem;
    }

    #header>a>img:first-of-type {
        height: 26px;
    }

    #header>a>img:last-of-type {
        height: 38px;
    }

    #ui {
        width: 96%;
        height: 92vh;
        max-height: 96vh;
        margin-top: 0.25rem;
        border-radius: 8px;
    }

    section {
        padding: 1.5rem 1.25rem;
    }

    .section-title {
        font-size: 1.6rem;
        margin-bottom: 0.5rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1.25rem;
        line-height: 1.4;
    }

    /* Info Boxes - Smaller on portrait mobile */
    #upload-file .row div {
        max-width: 380px;
        padding: 1.25rem 0.8rem;
    }

    #upload-file .row div span {
        font-size: 2.1rem;
        margin-bottom: 0.65rem;
    }

    #upload-file .row h2 {
        font-size: 0.95rem;
    }

    #upload-file .row p {
        font-size: 0.68rem;
    }

    #upload-file .row div:last-of-type::before {
        width: 52px;
        height: 52px;
    }

    /* File Upload Section */
    .file-drop-zone {
        padding: 1.75rem 1rem;
        min-height: 160px;
        border-radius: 8px;
    }

    .drop-icon {
        width: 55px;
        height: 55px;
        font-size: 1.6rem;
        margin-bottom: 0.85rem;
    }

    .file-drop-zone h3 {
        font-size: 1.05rem;
        margin-bottom: 0.4rem;
    }

    .file-drop-zone p {
        font-size: 0.8rem;
        margin-bottom: 1rem;
    }

    .file-select-btn {
        padding: 0.8rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
        gap: 0.4rem;
    }

    /* File View Section */
    .file-info-box {
        padding: 1.1rem;
        gap: 0.9rem;
        border-radius: 8px;
    }

    .file-icon-large {
        width: 50px;
        height: 50px;
        font-size: 1.6rem;
    }

    .file-details h3 {
        font-size: 1.1rem;
        margin-bottom: 0.35rem;
    }

    .file-details p {
        font-size: 0.8rem;
    }

    .file-actions {
        gap: 0.6rem;
        flex-wrap: wrap;
    }

    /* Welcome Buttons - Wrapped layout */
    .action-buttons {
        max-width: 400px;
        gap: 0.8rem;
    }

    .btn-primary {
        padding: 0.85rem 1.45rem;
        border-radius: 65px;
    }

    .btn-primary .material-icon {
        font-size: 2rem;
    }

    .btn-secondary,
    .btn-info {
        min-height: 50px;
        padding: 0.85rem 1.15rem;
        border-radius: 11px;
    }

    .btn-secondary .github-icon {
        width: 24px;
        height: 24px;
    }

    .btn-info .material-icon {
        font-size: 1.5rem;
    }

    .btn-text {
        font-size: 1rem;
    }

    /* Auth Options - Stack on Small Screens */
    .auth-options {
        flex-direction: column;
        gap: 0.85rem;
    }

    .auth-option {
        width: 100%;
        padding: 1.4rem 1.1rem;
        border-radius: 8px;
    }

    .auth-option-icon {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .auth-option h3 {
        font-size: 1.05rem;
        margin-bottom: 0.35rem;
    }

    .auth-option p {
        font-size: 0.8rem;
        line-height: 1.4;
    }

    /* Input Fields */
    .input-group {
        margin-bottom: 1.1rem;
    }

    .input-group label {
        font-size: 0.85rem;
        margin-bottom: 0.45rem;
    }

    .input-field {
        border-radius: 8px;
    }

    .input-field input {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }

    .input-field .material-icon {
        font-size: 1.2rem;
    }

    .input-field button {
        padding: 0.5rem;
    }

    /* Strength Indicator */
    .strength-indicator {
        height: 5px;
        border-radius: 3px;
        margin-top: 0.4rem;
    }

    .strength-text {
        font-size: 0.75rem;
        margin-top: 0.4rem;
    }

    /* Keyfile Actions - Stack on Small Screens */
    .keyfile-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    .keyfile-btn {
        width: 100%;
        padding: 0.95rem 1.1rem;
        font-size: 0.85rem;
        border-radius: 8px;
    }

    .keyfile-status {
        padding: 0.85rem 1rem;
        border-radius: 7px;
    }

    .keyfile-status .material-icon {
        font-size: 1.3rem;
    }

    .keyfile-status span {
        font-size: 0.8rem;
    }

    /* Buttons */
    .btn-secondary {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
        border-radius: 8px;
        gap: 0.4rem;
    }

    .btn-secondary .material-icon {
        font-size: 1.15rem;
    }

    .btn-icon-only {
        padding: 0.85rem;
        border-radius: 8px;
    }

    .btn-icon-only .material-icon {
        font-size: 1.2rem;
    }

    .action-buttons {
        gap: 0.65rem;
        margin-top: 1.5rem;
        flex-wrap: wrap;
    }

    /* Progress Section */
    .progress-steps {
        flex-wrap: wrap;
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }

    .step-item {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: calc(50% - 0.25rem);
        padding: 0.8rem 0.6rem;
        border-radius: 7px;
    }

    .step-number {
        font-size: 0.7rem;
        margin-bottom: 0.35rem;
    }

    .step-icon {
        font-size: 1.3rem;
        margin-bottom: 0.35rem;
    }

    .step-label {
        font-size: 0.75rem;
    }

    .progress-bar-container {
        height: 32px;
        border-radius: 10px;
        margin-bottom: 0.9rem;
    }

    .progress-percentage {
        font-size: 0.95rem;
    }

    .progress-status {
        font-size: 0.8rem;
        margin-top: 0.6rem;
    }

    /* Summary Cards - Stack on Small Screens */
    .summary-cards {
        flex-direction: column;
        gap: 0.75rem;
        margin-bottom: 1.75rem;
    }

    .summary-card {
        width: 100%;
        padding: 1rem 1.1rem;
        border-radius: 8px;
    }

    .summary-card-icon {
        font-size: 1.5rem;
    }

    .summary-card-label {
        font-size: 0.75rem;
    }

    .summary-card-value {
        font-size: 0.95rem;
    }

    /* Error Section */
    .error-container {
        padding: 1.35rem;
        border-radius: 8px;
    }

    .error-icon {
        width: 60px;
        height: 60px;
        font-size: 1.85rem;
        margin-bottom: 1rem;
    }

    .error-container h3 {
        font-size: 1.2rem;
        margin-bottom: 0.6rem;
    }

    .error-container p {
        font-size: 0.85rem;
        line-height: 1.5;
    }

    /* Complete Section */
    .complete-icon {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }

    .complete-actions {
        flex-direction: column;
        gap: 0.65rem;
    }

    .btn-download {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 10px;
    }

    .btn-secondary-action {
        width: 100%;
        padding: 0.85rem 1.1rem;
        font-size: 0.85rem;
        border-radius: 10px;
    }
}


/* ============================================ */
/* === Extra Small Mobile (< 434px) === */
/* ============================================ */

@media screen and (max-width: 433px) {
    /* What is GhostCrypt heading - smaller */
    #upload-file>h1 {
        font-size: 2rem;
        gap: 0.75rem;
        margin-top: 3.5rem;
    }

    #upload-file>h1::before {
        width: 42px;
        height: 42px;
    }
}


/* ============================================ */
/* === Small Mobile (320px - 479px) === */
/* ============================================ */

@media screen and (max-width: 479px) {
    :root {
        font-size: 11px;
    }

    #header {
        width: 98%;
        height: 42px;
        margin-top: 0.25rem;
        margin-bottom: 0.25rem;
    }

    #header>a {
        gap: 0.5rem;
        margin-left: 0.75rem;
    }

    #header>a>img:first-of-type {
        height: 24px;
    }

    #header>a>img:last-of-type {
        height: 36px;
    }

    #ui {
        width: 98%;
        height: 94vh;
        max-height: 97vh;
        margin-top: 0.2rem;
        border-radius: 6px;
        border-width: 1.5px;
    }

    section {
        padding: 1.25rem 1rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 0.4rem;
    }

    .section-subtitle {
        font-size: 0.8rem;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    /* What is GhostCrypt heading */
    #upload-file>h1 {
        font-size: 2.2rem;
        gap: 0.85rem;
        margin-top: 4rem;
    }

    #upload-file>h1::before {
        width: 45px;
        height: 45px;
    }

    /* Info Boxes - Even smaller on small mobile */
    #upload-file .row {
        gap: 0.85rem;
        margin-bottom: 1.25rem;
    }

    #upload-file .row div {
        max-width: 340px;
        padding: 1.15rem 0.75rem;
    }

    #upload-file .row div span {
        font-size: 2rem;
        margin-bottom: 0.6rem;
    }

    #upload-file .row h2 {
        font-size: 0.9rem;
    }

    #upload-file .row p {
        font-size: 0.65rem;
    }

    #upload-file .row div:last-of-type::before {
        width: 50px;
        height: 50px;
    }

    /* File Upload Section */
    .file-drop-zone {
        padding: 1.5rem 0.85rem;
        min-height: 140px;
        border-radius: 6px;
    }

    .drop-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
        margin-bottom: 0.75rem;
    }

    .file-drop-zone h3 {
        font-size: 1rem;
        margin-bottom: 0.35rem;
    }

    .file-drop-zone p {
        font-size: 0.75rem;
        margin-bottom: 0.85rem;
    }

    .file-select-btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    /* Welcome Buttons - Wrapped layout */
    .action-buttons {
        max-width: 360px;
        gap: 0.75rem;
    }

    .btn-primary {
        padding: 0.8rem 1.3rem;
        border-radius: 60px;
    }

    .btn-primary .material-icon {
        font-size: 1.9rem;
    }

    .btn-secondary,
    .btn-info {
        min-height: 48px;
        padding: 0.8rem 1.05rem;
        border-radius: 10px;
    }

    .btn-secondary .github-icon {
        width: 24px;
        height: 24px;
    }

    .btn-info .material-icon {
        font-size: 1.5rem;
    }

    .btn-text {
        font-size: 0.95rem;
    }

    .btn-subtext {
        font-size: 0.7rem;
    }

    /* File View Section */
    .file-info-box {
        padding: 1rem 0.9rem;
        gap: 0.8rem;
        border-radius: 6px;
    }

    .file-icon-large {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }

    .file-details h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .file-details p {
        font-size: 0.75rem;
    }

    /* Auth Options */
    .auth-option {
        padding: 1.25rem 1rem;
        border-radius: 6px;
    }

    .auth-option-icon {
        width: 45px;
        height: 45px;
        font-size: 1.4rem;
        margin-bottom: 0.7rem;
    }

    .auth-option h3 {
        font-size: 1rem;
        margin-bottom: 0.3rem;
    }

    .auth-option p {
        font-size: 0.75rem;
    }

    /* Input Fields */
    .input-group {
        margin-bottom: 1rem;
    }

    .input-group label {
        font-size: 0.8rem;
        margin-bottom: 0.4rem;
    }

    .input-field input {
        padding: 0.8rem 0.9rem;
        font-size: 0.85rem;
    }

    /* Keyfile Buttons */
    .keyfile-btn {
        padding: 0.9rem 1rem;
        font-size: 0.8rem;
    }

    .keyfile-btn .material-icon {
        font-size: 1.1rem;
    }

    /* Buttons */
    .btn-secondary {
        padding: 0.8rem 1.25rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .btn-secondary .material-icon {
        font-size: 1.1rem;
    }

    .action-buttons {
        gap: 0.6rem;
        margin-top: 1.25rem;
    }

    /* Progress Steps */
    .step-item {
        padding: 0.75rem 0.5rem;
        border-radius: 6px;
    }

    .step-number {
        font-size: 0.65rem;
    }

    .step-icon {
        font-size: 1.2rem;
    }

    .step-label {
        font-size: 0.7rem;
    }

    .progress-bar-container {
        height: 30px;
        border-radius: 8px;
    }

    .progress-percentage {
        font-size: 0.9rem;
    }

    .progress-status {
        font-size: 0.75rem;
    }

    /* Summary Cards */
    .summary-card {
        padding: 0.9rem 1rem;
    }

    .summary-card-icon {
        font-size: 1.4rem;
    }

    .summary-card-label {
        font-size: 0.7rem;
    }

    .summary-card-value {
        font-size: 0.9rem;
    }

    /* Error Section */
    .error-icon {
        width: 55px;
        height: 55px;
        font-size: 1.75rem;
    }

    .error-container h3 {
        font-size: 1.1rem;
    }

    /* Complete Section */
    .complete-icon {
        width: 70px;
        height: 70px;
        font-size: 2.25rem;
    }

    .btn-download {
        padding: 0.95rem 1.35rem;
        font-size: 0.9rem;
    }

    .btn-secondary-action {
        padding: 0.8rem 1rem;
        font-size: 0.8rem;
    }
}


/* ============================================ */
/* === Touch Device Optimizations === */
/* ============================================ */

@media (hover: none) and (pointer: coarse) {
    /* Increase touch targets for better mobile UX */
    .btn-primary,
    .btn-secondary,
    .btn-icon-only,
    .file-select-btn,
    .keyfile-btn,
    .auth-option {
        min-height: 44px;
        min-width: 44px;
    }

    /* Remove hover effects on touch devices */
    .btn-primary:hover,
    .btn-secondary:hover,
    .btn-icon-only:hover,
    .file-select-btn:hover,
    .keyfile-btn:hover,
    .auth-option:hover,
    .btn-download:hover,
    .btn-secondary-action:hover {
        transform: none;
    }

    /* Add active state for touch feedback */
    .btn-primary:active,
    .btn-secondary:active,
    .file-select-btn:active,
    .keyfile-btn:active {
        transform: scale(0.98);
        opacity: 0.9;
    }

    .auth-option:active {
        transform: scale(0.99);
    }

    /* Prevent text selection on touch */
    .btn-primary,
    .btn-secondary,
    .btn-icon-only,
    .auth-option,
    .file-select-btn {
        -webkit-user-select: none;
        user-select: none;
        -webkit-tap-highlight-color: transparent;
    }

    /* Larger hit areas for interactive elements */
    .input-field button {
        padding: 0.75rem;
    }

    /* Remove hover animations on cards */
    .file-drop-zone:hover {
        transform: none;
    }
}


/* ============================================ */
/* === Landscape Orientation Adjustments === */
/* ============================================ */

@media screen and (max-height: 600px) and (orientation: landscape) {
    #header {
        height: 45px;
        margin-top: 0.5rem;
        margin-bottom: 0.5rem;
    }

    #ui {
        height: auto;
        max-height: 85vh;
        margin-top: 0.5rem;
        overflow-y: auto;
    }

    section {
        padding: 1.25rem 1.5rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 0.4rem;
    }

    .section-subtitle {
        font-size: 0.85rem;
        margin-bottom: 1rem;
    }

    .file-drop-zone {
        padding: 1.5rem 1rem;
        min-height: 140px;
    }

    .drop-icon {
        width: 50px;
        height: 50px;
        margin-bottom: 0.75rem;
    }

    .auth-options {
        gap: 0.75rem;
    }

    .auth-option {
        padding: 1.25rem 1rem;
    }

    .auth-option-icon {
        width: 45px;
        height: 45px;
        margin-bottom: 0.7rem;
    }

    .progress-steps {
        margin-bottom: 1.25rem;
        gap: 0.5rem;
    }

    .step-item {
        padding: 0.7rem 0.5rem;
    }

    .summary-cards {
        margin-bottom: 1.5rem;
    }

    .action-buttons {
        margin-top: 1.25rem;
    }
}


/* ============================================ */
/* === High DPI Displays === */
/* ============================================ */

@media screen and (-webkit-min-device-pixel-ratio: 2),
       screen and (min-resolution: 192dpi) {
    /* Ensure crisp rendering on retina displays */
    * {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    /* Sharper borders */
    #ui,
    .file-drop-zone,
    .file-info-box,
    .auth-option,
    .input-field,
    .summary-card {
        border-width: 0.5px;
    }
}


/* ============================================ */
/* === Learn More Modal === */
/* ============================================ */

.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
    opacity: 0;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    cursor: pointer;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 800px;
    max-height: 85vh;
    background: linear-gradient(135deg, 
        rgba(15, 20, 35, 0.98), 
        rgba(20, 25, 40, 0.98));
    border: 2px solid rgba(47, 206, 252, 0.3);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
                0 0 40px rgba(47, 206, 252, 0.15);
    animation: modalSlideIn 0.4s ease;
    z-index: 10000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
}

.modal-close .material-icon {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.7);
}

.modal-close:hover {
    background: rgba(255, 50, 50, 0.15);
    border-color: rgba(255, 50, 50, 0.4);
    transform: scale(1.1);
}

.modal-close:hover .material-icon {
    color: #ff6b6b;
}

.modal-header {
    padding: 2rem 2rem 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    gap: 1rem;
}

.modal-header .material-icon {
    font-size: 2.5rem;
    color: var(--clr-secondary);
}

.modal-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--clr-white);
    margin: 0;
}

.modal-body {
    padding: 2rem;
    max-height: calc(85vh - 120px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(47, 206, 252, 0.3) rgba(255, 255, 255, 0.05);
}

.modal-body::-webkit-scrollbar {
    width: 8px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb {
    background: rgba(47, 206, 252, 0.3);
    border-radius: 4px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: rgba(47, 206, 252, 0.5);
}

.info-section {
    margin-bottom: 2rem;
}

.info-section:last-child {
    margin-bottom: 0;
}

.info-section h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--clr-secondary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-section p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
}

.info-section ul,
.info-section ol {
    list-style-position: outside;
    padding-left: 1.5rem;
    margin: 0.75rem 0;
}

.info-section ul {
    list-style-type: disc;
}

.info-section ol {
    list-style-type: decimal;
}

.info-section li {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.info-section li strong {
    color: var(--clr-white);
    font-weight: 600;
}

.modal-links {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
}

.modal-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.9rem 1.25rem;
    background: rgba(47, 206, 252, 0.08);
    border: 1px solid rgba(47, 206, 252, 0.2);
    border-radius: 10px;
    color: var(--clr-white);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.25s ease;
}

.modal-link .material-icon {
    font-size: 1.5rem;
    color: var(--clr-secondary);
}

.modal-link:hover {
    background: rgba(47, 206, 252, 0.15);
    border-color: rgba(47, 206, 252, 0.4);
    transform: translateX(5px);
}

/* Responsive Modal */
@media screen and (max-width: 767px) {
    .modal-content {
        width: 95%;
        max-height: 90vh;
        border-radius: 12px;
    }

    .modal-header {
        padding: 1.5rem 1.5rem 1rem;
    }

    .modal-header .material-icon {
        font-size: 2rem;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }

    .modal-body {
        padding: 1.5rem;
        max-height: calc(90vh - 100px);
    }

    .info-section h3 {
        font-size: 1.15rem;
    }

    .info-section p,
    .info-section li {
        font-size: 0.9rem;
    }

    .modal-close {
        width: 36px;
        height: 36px;
        top: 1rem;
        right: 1rem;
    }
}

@media screen and (max-width: 479px) {
    .modal-header h2 {
        font-size: 1.3rem;
    }

    .info-section h3 {
        font-size: 1.05rem;
    }

    .modal-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
}