/* --- ESTETSKI DODACI I OPTIMIZACIJE --- */

/* Omogućava radijalni gradijent u pozadini */
body::before {
    content: '';
    position: fixed;
    top: 50%;
    left: 50%;
    width: 100vmax;
    height: 100vmax;
    background: radial-gradient(circle, rgba(0, 234, 255, 0.15), transparent 60%);
    transform-origin: center center;
    animation: aurora-spin 25s linear infinite;
    z-index: -2;
    filter: blur(120px);
    opacity: 0.7;
}

@keyframes aurora-spin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

/* Stil za scrollbar */
::-webkit-scrollbar {
    width: 8px;
}
::-webkit-scrollbar-track {
    background: #0f2027;
}
::-webkit-scrollbar-thumb {
    background: #00eaff;
    border-radius: 4px;
    border: 1px solid #0f2027;
}
::-webkit-scrollbar-thumb:hover {
    background: #00bcd4;
}

/* Stil za "stakleni" efekat i hover */
.glass {
    transition: all 0.4s ease;
}

.glass:hover {
    box-shadow: 0 0 40px rgba(0, 234, 255, 0.5);
    border-color: rgba(0, 234, 255, 0.5);
}

/* Overlay sa sken-linijama */
.scanlines-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
    background: repeating-linear-gradient(
        transparent,
        transparent 2px,
        rgba(0, 234, 255, 0.05) 3px,
        rgba(0, 234, 255, 0.05) 4px
    );
    opacity: 0.5;
}


/* --- POMOĆNE I PRISTUPAČNE KLASE --- */

/* Sakriva elemente vizuelno ali ih ostavlja dostupnim za screen-readere */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* Klasa za potpuno sakrivanje elemenata (display: none) */
.d-none {
    display: none !important;
}


/* --- OSNOVNI STILOVI (BODY, FONTOVI) --- */

body {
    font-family: 'Inter', sans-serif;
    background-color: #0f2027;
    color: #fff;
    margin: 0;
    overflow-x: hidden;
}

.audiowide {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2.2rem, 10vw, 3rem);
    margin-bottom: 10px;
    color: #00eaff;
    text-shadow: 0 0 15px rgba(0, 234, 255, 0.8), 0 0 25px rgba(0, 234, 255, 0.6);
}


/* --- ANIMACIJE --- */

@keyframes neonPulse {
    0% {
        text-shadow: 0 0 5px rgba(0, 234, 255, 0.7), 0 0 10px rgba(0, 234, 255, 0.5);
    }
    100% {
        text-shadow: 0 0 10px rgba(0, 234, 255, 1), 0 0 20px rgba(0, 234, 255, 0.8), 0 0 5px #fff;
    }
}

@keyframes glow {
    from {
        text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff, 0 0 30px #00eaff, 0 0 40px #00eaff;
    }
    to {
        text-shadow: 0 0 20px #00eaff, 0 0 40px #00eaff, 0 0 60px #00eaff, 0 0 80px #00eaff;
    }
}

@keyframes letterFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtle-slide-up-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake-animation {
    animation: shake 0.5s;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


/* --- LOADING SCREEN & ACCESS GATE --- */

#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f2027;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    flex-direction: column;
    opacity: 1;
    transition: opacity 1s ease-in-out, visibility 1s;
}

#loading-screen.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.loader-logo {
    font-family: 'Audiowide', cursive;
    font-size: clamp(2rem, 10vw, 3.5rem);
    color: #fff;
    display: flex;
}

.loader-logo span {
    opacity: 0;
    transform: translateY(20px);
    animation: letterFadeIn 0.5s forwards;
}

.loader-logo span:nth-child(1) { animation-delay: 0.1s; }
.loader-logo span:nth-child(2) { animation-delay: 0.2s; }
.loader-logo span:nth-child(3) { animation-delay: 0.3s; }
.loader-logo span:nth-child(4) { animation-delay: 0.4s; }
.loader-logo span:nth-child(5) { animation-delay: 0.5s; }
.loader-logo span:nth-child(6) { animation-delay: 0.6s; }
.loader-logo span:nth-child(7) { animation-delay: 0.7s; }
.loader-logo span:nth-child(8) { animation-delay: 0.8s; }
.loader-logo span:nth-child(9) { animation-delay: 0.9s; }
.loader-logo span:nth-child(10) { animation-delay: 1.0s; }
.loader-logo span:nth-child(11) { animation-delay: 1.1s; }

.loader-progress-container {
    width: 200px;
    height: 4px;
    background-color: rgba(0, 234, 255, 0.1);
    border-radius: 2px;
    margin-top: 25px;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background-color: #00eaff;
    border-radius: 2px;
    transition: width 0.5s ease-out;
}

#access-gate-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0f2027;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out;
}

#access-gate-modal.visible {
    opacity: 1;
    visibility: visible;
}

.access-gate-content {
    max-width: 450px;
    width: 90%;
    padding: 40px 0;
    text-align: center;
    animation: fadeIn 0.5s ease-out;
    background: none;
    border: none;
    box-shadow: none;
    backdrop-filter: none;
}

.lock-icon {
    font-size: 48px;
    color: #00eaff;
    text-shadow: 0 0 15px rgba(0, 234, 255, 0.7);
    margin-bottom: 20px;
    transition: transform 0.4s ease-in-out, color 0.4s ease;
}

.lock-icon.unlocked {
    transform: translateY(-10px) scale(1.1);
    color: #2cff2c;
    text-shadow: 0 0 15px #2cff2c;
}

.access-gate-content p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 30px;
}

#countdown-container {
    border-top: 1px solid rgba(0, 234, 255, 0.2);
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
    padding: 20px 0;
    margin: 20px 0;
}
#countdown-container p {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: #fff;
}
#countdown-timer {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-family: 'Audiowide', cursive;
}
#countdown-timer > div {
    display: flex;
    flex-direction: column;
}
#countdown-timer span {
    font-size: 2.25rem;
    color: #00eaff;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}
#countdown-timer label {
    font-size: 0.75rem;
    color: #ddd;
    font-family: 'Inter', sans-serif;
}

.access-key-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

#access-key-input {
    width: 100%;
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 234, 255, 0.1);
    text-align: center;
    font-size: 16px;
}

#access-key-input:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: inset 0 0 10px rgba(0, 234, 255, 0.3), 0 0 15px rgba(0, 234, 255, 0.5);
}

#access-error-message {
    color: #ff4d4d;
    margin-top: 15px;
    font-weight: bold;
}


/* --- GLAVNI SADRŽAJ (MAIN CONTENT) --- */

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

#main-content.hidden-content {
    visibility: hidden;
    opacity: 0;
}

#main-content.visible-content {
    visibility: visible;
    opacity: 1;
    transition: opacity 1s ease-in-out;
}

main {
    padding: 20px;
}

.section {
    padding: clamp(40px, 10vw, 80px);
}

.section.hidden {
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.section.visible {
    opacity: 1;
    transform: translateY(0);
}

.section h2 {
    font-size: clamp(1.5rem, 6vw, 1.75rem);
    margin-bottom: 20px;
    color: #00eaff;
    text-shadow: 0 0 8px rgba(0, 234, 255, 0.6);
    text-align: center;
}
.section-subtitle {
    text-align: center;
    max-width: 600px;
    margin: -10px auto 40px;
    color: #bbb;
    line-height: 1.6;
}


/* --- NAVIGACIJA --- */

.main-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 15px 4%;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
    background: rgba(15, 32, 39, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 234, 255, 0.1);
}

.nav-logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
}

.auth-status {
    padding: 8px;
    background: rgba(0, 234, 255, 0.08);
    border-radius: 15px;
    backdrop-filter: blur(12px);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.1), 0 0 8px rgba(255, 255, 255, 0.1) inset;
    border: 1px solid rgba(0, 234, 255, 0.3);
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.4s ease;
}

#user-display {
    color: #fff;
    font-weight: 500;
    padding: 0 15px;
}

.auth-status .cta-button {
    padding: 8px 18px;
    font-size: 0.95rem;
    border-radius: 10px;
    background-color: transparent;
    color: #fff;
    box-shadow: none;
    border: 1px solid rgba(0, 234, 255, 0.3);
}

.auth-status .cta-button:hover {
    background-color: rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.7);
    transform: none;
    box-shadow: none;
}


/* --- HERO SEKCIJA --- */

.hero {
    text-align: center;
    padding-top: 150px; 
    padding-bottom: 40px;
    padding-left: 20px;
    padding-right: 20px;
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 700px;
    margin: 0 auto;
}

.hero-content > * {
    opacity: 0;
    animation: subtle-slide-up-fade-in 0.8s forwards;
}

.hero-content h1 { animation-delay: 0.5s; }
.hero-content p#sloganText { animation-delay: 0.7s; }
.hero-content p#heroText { animation-delay: 0.9s; }

.animated-slogan {
    font-family: 'Inter', sans-serif;
    font-weight: 800;
    font-size: clamp(1rem, 5vw, 1.5rem);
    color: #fff;
    position: relative;
    margin-top: -15px;
    text-shadow: 0 0 10px #00eaff, 0 0 20px #00eaff, 0 0 30px #00eaff, 0 0 40px #00eaff;
    animation-name: glow, subtle-slide-up-fade-in;
    animation-duration: 1.5s, 0.8s;
    animation-timing-function: ease-in-out, forwards;
    animation-iteration-count: infinite, 1;
    animation-direction: alternate, normal;
    animation-delay: 0s, 0.7s;
}


/* --- DUGMIĆI I FORME (OPŠTI STILOVI) --- */

.cta-button {
    background-color: #00eaff;
    color: #0f2027;
    padding: 14px 28px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.4);
    display: inline-block;
    border: 1px solid #00eaff;
    cursor: pointer;
    opacity: 1;
    will-change: transform, box-shadow;
}
.cta-button:disabled { 
    opacity: 0.5; 
    cursor: not-allowed; 
    box-shadow: none; 
    transform: none; 
}
.cta-button:hover { 
    background-color: #00bcd4; 
    transform: scale(1.05); 
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.8); 
    border-color: #00bcd4; 
}
.cta-button:active { 
    transform: scale(0.95); 
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.3); 
}

form input,
form textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid rgba(0, 234, 255, 0.3);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
    transition: all 0.3s ease;
    box-shadow: inset 0 0 5px rgba(0, 234, 255, 0.1);
}
form input::placeholder,
form textarea::placeholder {
    color: rgba(255, 255, 255, 0.6);
}
form input:focus,
form textarea:focus {
    outline: none;
    border-color: #00eaff;
    box-shadow: inset 0 0 10px rgba(0, 234, 255, 0.3), 0 0 15px rgba(0, 234, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.12);
}
form input.invalid, 
form textarea.invalid {
    border-color: #ff4d4d;
    box-shadow: inset 0 0 10px rgba(255, 77, 77, 0.3), 0 0 15px rgba(255, 77, 77, 0.5);
}

.error-message {
    color: #ff4d4d;
    font-size: 14px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    margin-top: -10px;
    margin-bottom: 10px;
    text-align: left;
}


/* --- SEKCIJA: O APLIKACIJI --- */

#aboutText {
    line-height: 1.6;
    text-align: justify;
}

.feature-cards {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.feature-card {
    flex: 1;
    min-width: 250px;
    max-width: 300px;
    background-color: rgba(0, 234, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 0 10px rgba(0, 234, 255, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 234, 255, 0.3);
    will-change: transform, box-shadow;
}
.feature-card:hover { 
    transform: translateY(-8px) scale(1.02); 
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.5); 
    border-color: rgba(0, 234, 255, 0.8); 
}
.feature-card i { 
    font-size: 3em; 
    color: #fff; 
    margin-bottom: 20px; 
    transition: color 0.3s ease; 
    text-shadow: 0 0 10px #00eaff; 
    animation: neonPulse 2.5s infinite alternate ease-in-out; 
}
.feature-card:hover i { 
    color: #00eaff; 
    text-shadow: 0 0 20px #00eaff; 
}
.feature-card h3 { 
    font-size: 1.25rem; 
    color: #00eaff; 
    margin-bottom: 10px; 
    text-shadow: 0 0 5px rgba(0, 234, 255, 0.5); 
}
.feature-card p { 
    font-size: 0.9rem; 
    line-height: 1.5; 
}


/* --- SEKCIJA: PARTNERI --- */

#partners {
    text-align: center;
}

.partners-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 50px;
    margin-top: 40px;
}

.partner-logo {
    font-family: 'Audiowide', cursive;
    font-size: 1.5rem;
    color: #8899a6;
    opacity: 0.7;
    transition: all 0.3s ease-in-out;
    padding: 10px 20px;
    text-decoration: none;
}

.partner-logo:hover {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 15px currentColor;
}

/* Specifične boje za partnere */
.partner-logo[data-company="belgrade-waterfront"]:hover { color: #0055A5; }
.partner-logo[data-company="energoprojekt"]:hover { color: #F37021; }
.partner-logo[data-company="psp-farman"]:hover { color: #0047AB; }
.partner-logo[data-company="deka"]:hover { color: #D82027; }
.partner-logo[data-company="brigate"]:hover { color: #FF6600; }


/* --- SEKCIJA: PREUZIMANJE APLIKACIJE --- */

.download-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 40px;
}
.platform-card {
    background-color: rgba(0, 234, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.2);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: all 0.3s ease;
}
.platform-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 234, 255, 0.1);
    border-color: rgba(0, 234, 255, 0.4);
}
.platform-icon {
    font-size: 2.5rem;
    color: #00eaff;
    margin-bottom: 15px;
}
.platform-card h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
}
.os-download-btn {
    display: inline-block;
    background: #00eaff;
    color: #0f2027;
    padding: 12px 25px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}
.os-download-btn i {
    margin-right: 8px;
}
.os-download-btn:hover {
    background-color: #fff;
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}
.mobile-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
}
.mobile-buttons .os-download-btn {
    flex: 1;
}

.requirements-split {
    display: flex;
    gap: 20px;
    text-align: left;
    margin-top: 20px;
    border-top: 1px solid rgba(0, 234, 255, 0.1);
    padding-top: 20px;
}
.requirements-half {
    flex: 1;
}
.requirements-half h4 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #fff;
}
.requirements-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.requirements-list li {
    font-size: 14px;
    color: #bbb;
    margin-bottom: 5px;
}


/* --- SEKCIJA: FAQ (ČESTO POSTAVLJANA PITANJA) --- */

.faq-container {
    margin-top: 30px;
    border-top: 1px solid rgba(0, 234, 255, 0.2);
}

.faq-item {
    border-bottom: 1px solid rgba(0, 234, 255, 0.2);
}

.faq-question {
    width: 100%;
    background: transparent;
    border: none;
    color: #fff;
    padding: 20px;
    font-size: 1.1rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.faq-question:hover {
    background-color: rgba(0, 234, 255, 0.1);
}

.faq-question i {
    color: #00eaff;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.faq-question.active i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 20px;
}

.faq-answer p {
    padding: 10px 0 20px;
    margin: 0;
    line-height: 1.7;
    color: #ddd;
}


/* --- FOOTER I FIKSNI ELEMENTI --- */

footer {
    text-align: center;
    padding: 40px 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(0, 234, 255, 0.1);
}
.social-icon {
    color: #bbb;
    font-size: 1.5rem;
    margin: 0 15px;
    transition: color 0.3s, transform 0.3s;
}
.social-icon:hover {
    color: #00eaff;
    transform: translateY(-3px);
}
footer a {
    color: #bbb;
    text-decoration: none;
    transition: color 0.3s;
}
footer a:hover {
    color: #00eaff;
}
.email-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 15px 0;
}
#copy-email-btn {
    background: rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.3);
    color: #00eaff;
    border-radius: 5px;
    padding: 5px 8px;
    font-size: 14px;
    cursor: pointer;
}


#language-switcher {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
}

#language-select {
    background-color: rgba(0, 234, 255, 0.05);
    border: 1px solid rgba(0, 234, 255, 0.2);
    color: #fff;
    font-weight: 500;
    border-radius: 8px;
    padding: 8px 12px;
    outline: none;
    cursor: pointer;
}

#floating-contact-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    z-index: 999;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.2rem;
    padding: 0;
}


/* --- MODALI I POPUP-OVI --- */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #1a2a3a;
    max-width: 500px;
    width: 90%;
    padding: 30px;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.4);
    animation: fadeIn 0.5s ease-out;
    border: 1px solid rgba(0, 234, 255, 0.2);
}
.close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 10px;
    right: 20px;
    transition: color 0.3s ease;
    cursor: pointer;
}
.close-button:hover { color: #fff; }

/* Pre-registration Popup */
.prereg-popup {
    position: fixed;
    bottom: -100%; /* Početna pozicija van ekrana */
    right: 20px;
    z-index: 1001;
    width: 100%;
    max-width: 400px;
    padding: 25px;
    border-radius: 15px;
    background-color: rgba(26, 42, 58, 0.9);
    border: 1px solid rgba(0, 234, 255, 0.2);
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2);
    backdrop-filter: blur(10px);
    transition: bottom 0.5s ease-in-out;
    text-align: center;
}
.prereg-popup.visible {
    bottom: 20px; /* Krajnja pozicija na ekranu */
}
.prereg-popup h3 {
    font-family: 'Audiowide', cursive;
    color: #00eaff;
    margin-top: 0;
    margin-bottom: 10px;
}
.prereg-popup p {
    color: #ddd;
    line-height: 1.6;
    font-size: 15px;
    margin-bottom: 20px;
}
.prereg-popup .prereg-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.prereg-popup input[type="email"] {
    margin-bottom: 0;
    text-align: center;
}
.prereg-popup .role-selection p {
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 14px;
}
.prereg-popup .checkbox-group {
    display: flex;
    gap: 25px;
    justify-content: center;
}
.prereg-popup .checkbox-group label {
    cursor: pointer;
    padding-left: 5px;
    color: #ddd;
    transition: color 0.3s ease;
}
.prereg-popup .checkbox-group input[type="radio"] {
    cursor: pointer;
    accent-color: #00eaff;
}
.prereg-popup .checkbox-group input[type="radio"]:checked + label {
    color: #00eaff;
    font-weight: 600;
}
#prereg-message {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1rem;
    height: 20px;
    transition: color 0.3s ease;
}
#prereg-message.success {
    color: #2cff2c;
}
#prereg-message.error {
    color: #ff4d4d;
}

/* Login/Register Modal */
.tab-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 234, 255, 0.2);
}
.tab-button {
    background-color: transparent;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-weight: 500;
    transition: all 0.3s ease;
    flex: 1;
    cursor: pointer;
}
.tab-button.active {
    background-color: #00eaff;
    color: #0f2027;
}

.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-submit { width: 100%; margin-top: 10px; }
.password-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}
.password-wrapper input {
    margin-bottom: 0;
}
.toggle-password {
    position: absolute;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
    color: #aaa;
    cursor: pointer;
    margin-top: -7.5px;
}
#forgot-password-link, #back-to-login-link {
    display: block;
    text-align: right;
    font-size: 14px;
    color: #00eaff;
    text-decoration: none;
    margin-top: -10px;
    margin-bottom: 15px;
}
#back-to-login-link { text-align: center; margin-top: 15px; }
.password-strength-meter {
    margin-top: -5px;
    margin-bottom: 15px;
}
.strength-bar {
    height: 5px;
    width: 0%;
    background-color: #1e3a45;
    border-radius: 2px;
    transition: width 0.3s, background-color 0.3s;
}
.strength-bar.weak { background-color: #ff4d4d; width: 33%; }
.strength-bar.medium { background-color: #ffab00; width: 66%; }
.strength-bar.strong { background-color: #2cff2c; width: 100%; }
.strength-text {
    font-size: 12px;
    margin-top: 5px;
    text-align: right;
    height: 15px;
}

/* Edit Profile Modal */
.profile-edit-content {
    max-width: 600px;
}
.profile-edit-content p {
    text-align: center;
    margin-bottom: 20px;
}
.form-row {
    display: flex;
    gap: 15px;
}

/* Welcome "Toast" Notification */
#welcome-message-modal {
    position: fixed;
    z-index: 10001;
    top: 20px;
    left: 50%;
    background: linear-gradient(45deg, rgba(0, 234, 255, 0.1), rgba(44, 255, 44, 0.05));
    border: 1px solid rgba(0, 234, 255, 0.3);
    border-radius: 12px;
    padding: 15px 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3), 0 0 25px rgba(0, 234, 255, 0.2);
    display: flex;
    align-items: center;
    gap: 15px;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -100px);
    transition: opacity 0.5s ease, transform 0.5s ease, visibility 0.5s;
}
#welcome-message-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}
.welcome-bg-text {
    display: none;
}
.welcome-main-text {
    font-size: 1rem;
    font-weight: 500;
    color: #fff;
    text-shadow: none;
}
.welcome-main-text::before {
    content: '\f007'; /* Font Awesome ikonica za korisnika */
    font-family: "Font Awesome 5 Free";
    font-weight: 900; /* Solid ikonica */
    color: #2cff2c; /* Zelena boja za uspeh */
    margin-right: 12px;
    font-size: 1.1rem;
    text-shadow: 0 0 10px rgba(44, 255, 44, 0.7);
}

/* Beta Instructions Modal */
.instructions-post-modal {
    max-width: 650px;
    width: 90%;
    background: rgba(15, 32, 39, 0.9);
    border-radius: 15px;
    padding: 30px;
    backdrop-filter: blur(15px);
    box-shadow: 0 0 30px rgba(0, 234, 255, 0.2);
    border: 1px solid rgba(0, 234, 255, 0.2);
    animation: fadeIn 0.5s ease-out;
    max-height: 90vh;
    overflow-y: auto;
}
.instructions-content h2 { color: #fff; }
.instructions-content h3 { color: #00eaff; border-bottom: 1px solid rgba(0, 234, 255, 0.2); padding-bottom: 5px; margin-top: 30px; }
.instructions-content p { line-height: 1.7; color: #ddd; }
.instructions-content .test-hint { font-size: 14px; font-style: italic; color: #ffab00; padding: 10px; background: rgba(255, 171, 0, 0.05); border-left: 3px solid #ffab00; border-radius: 5px; margin-top: 10px; }
.instructions-content hr { border: none; border-top: 1px solid rgba(0, 234, 255, 0.2); margin: 30px 0; }
#close-instructions-btn { display: block; margin: 30px auto 0; }

/* Terms/Consent Modal */
.terms-modal-content {
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.05), rgba(0, 234, 255, 0.03));
    border-radius: 20px;
    padding: 30px;
    max-width: 550px;
    border: 1px solid rgba(0, 234, 255, 0.2);
    backdrop-filter: blur(15px);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.2), 0 0 40px rgba(0, 234, 255, 0.1);
    animation: fadeIn 0.5s ease-out;
    font-family: 'Space Mono', monospace;
    line-height: 1.8;
    color: #ddd;
}
.terms-modal-content h2 {
    font-family: 'Audiowide', cursive;
    font-size: 2.2rem;
    color: #00eaff;
    text-shadow: 0 0 10px #00eaff;
    margin-bottom: 25px;
}
.terms-modal-content p {
    font-size: 0.9rem;
    margin-bottom: 20px;
}
.button-group {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
}
.accept-button, .decline-button {
    padding: 12px 25px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 30px;
    border: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.accept-button {
    background: linear-gradient(45deg, #00eaff, #00bcd4);
    color: #0f2027;
    box-shadow: 0 0 15px rgba(0, 234, 255, 0.5);
}
.decline-button {
    background-color: transparent;
    color: #fff;
    border: 2px solid #ff4d4d;
    box-shadow: 0 0 10px rgba(255, 77, 77, 0.3);
}
.accept-button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 234, 255, 0.8);
}
.decline-button:hover {
    transform: scale(1.05);
    background-color: rgba(255, 77, 77, 0.2);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.5);
}
.decline-message {
    text-align: center;
    font-size: 1rem;
    color: #ff4d4d;
    margin-top: 20px;
    animation: fadeIn 0.5s ease-out;
}

/* Author/Developer Info Modal */
.developer-post-modal {
    max-width: 450px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 234, 255, 0.1);
    border: 1px solid rgba(0, 234, 255, 0.2);
}
.developer-post-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}
.developer-avatar {
    width: 50px;
    height: 50px;
    background-color: #00eaff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #0f2027;
}
.developer-username {
    font-size: 18px;
    font-weight: 600;
    color: #00eaff;
    text-shadow: 0 0 5px rgba(0, 234, 255, 0.6);
}
.developer-post-content {
    font-size: 16px;
    line-height: 1.6;
}
.developer-post-content p {
    font-family: 'Inter', sans-serif;
}
.developer-post-content a {
    color: #00eaff;
    text-decoration: none;
    transition: all 0.3s ease;
}
.developer-post-content a:hover {
    text-decoration: underline;
    text-shadow: 0 0 10px rgba(0, 234, 255, 0.8);
}


/* --- SEKCIJA: SANDUČE ZA PREDLOGE --- */
#suggestion-box {
    text-align: center;
}
#suggestion-form {
    max-width: 600px;
    margin: 30px auto 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
#suggestion-form textarea {
    resize: vertical; /* Dozvoljava korisniku da menja visinu polja */
    min-height: 80px;
}
#suggestion-message {
    margin-top: 15px;
    font-weight: bold;
    font-size: 1rem;
    height: 20px;
    transition: color 0.3s ease;
}
#suggestion-message.success {
    color: #2cff2c;
}
#suggestion-message.error {
    color: #ff4d4d;
}


/* --- RESPONSIVE DIZAJN (MEDIA QUERIES) --- */

/* Optimizacija za tablete i manje ekrane (do 768px) */
@media (max-width: 768px) {
    /* Uklanjanje "teških" vizuelnih efekata radi boljih performansi na mobilnim uređajima */
    body::before, .scanlines-overlay { 
        display: none; 
    }
    
    .glass,
    .auth-status,
    .hero-content,
    .developer-post-modal,
    #language-switcher,
    .instructions-post-modal,
    .terms-modal-content,
    .prereg-popup {
        backdrop-filter: none;
        background: rgba(23, 44, 56, 0.9);
    }
    .access-gate-content { 
        background: none; 
    }

    .animated-slogan,
    .feature-card i { 
        animation: none; 
    }

    .audiowide, .animated-slogan { 
        text-shadow: 0 0 8px rgba(0, 234, 255, 0.6); 
    }
    .download-grid { 
        grid-template-columns: 1fr; 
    }
}

/* Optimizacija za mobilne telefone (do 480px) */
@media (max-width: 480px) {
    .hero { 
        padding-top: 80px; 
    }
    .main-nav { 
        padding: 15px 5%; 
    }
    .glass, .hero-content, .modal-content, .instructions-post-modal {
        padding-left: 20px;
        padding-right: 20px;
    }
    .feature-cards, .requirements-container { 
        gap: 15px; 
    }
    #countdown-timer span { 
        font-size: 1.8rem; 
    }
    .cta-button { 
        padding: 12px 20px; 
    }
    .mobile-buttons { 
        flex-direction: column; 
    }
    .form-row { 
        flex-direction: column; 
        gap: 0; 
    }
    .prereg-popup {
        right: 0;
        bottom: -100%;
        max-width: 100%;
        border-radius: 15px 15px 0 0;
    }
    .prereg-popup.visible {
        bottom: 0;
    }
}