.glass {
    background: rgba(20, 20, 20, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.tab-content:not(.active) { display: none; }

.tab-content.active {
    animation: fade-in 0.3s ease-out;
}

.tab-button {
    position: relative;
    transition: all 0.3s ease;
    padding-bottom: 8px;
}

.tab-button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.tab-button:hover::after, .tab-button.active::after {
    width: 70%;
}

.modern-btn {
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    font-weight: 600;
}

.modern-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.3),
        transparent
    );
    transition: 0.5s;
}

.modern-btn:hover::before {
    left: 100%;
}

.modern-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.4);
}

.modern-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.modern-btn.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 24px;
    border: 3px solid #fff;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    transform: translate(-50%, -50%);
}

@keyframes spin {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

.modern-btn.loading span {
    opacity: 0;
}

.modern-input {
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    border-radius: 10px;
    padding: 12px 16px;
}

.modern-input:focus {
    border-color: #4F46E5;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.3);
    transform: scale(1.01);
}

.input-container {
    position: relative;
}

.input-container label {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    color: #9CA3AF;
    transition: all 0.3s ease;
    pointer-events: none;
    font-size: 0.9rem;
}

.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: -12px;
    left: 12px;
    font-size: 0.7rem;
    color: #4F46E5;
    background: rgba(20, 20, 20, 0.95);
    padding: 0 6px;
    border-radius: 4px;
}

.password-container {
    position: relative;
}

.toggle-password-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease;
    width: 18px;
    height: 18px;
    z-index: 10;
    opacity: 0.7;
    user-select: none;
}

.toggle-password-icon:hover {
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.toggle-password-icon svg {
    width: 100%;
    height: 100%;
    fill: #ffffff;
}

.toggle-password-icon:hover svg {
    fill: #A855F7;
}

.discord-logo {
    position: fixed;
    bottom: 24px;
    left: 24px;
    z-index: 1000;
    transition: transform 0.3s ease;
}

.discord-logo:hover {
    transform: scale(1.15);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    animation: fade-in 0.3s ease-out;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 40px;
    max-width: 90%;
    width: 480px;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    transform: scale(0.8);
    animation: modalFadeIn 0.4s ease forwards;
}

@keyframes modalFadeIn {
    to { transform: scale(1); }
}

.modal-content h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 2rem;
    color: #fff;
    text-align: center;
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.modal-content .close-btn {
    background: linear-gradient(90deg, #EF4444, #B91C1C);
    padding: 12px 24px;
    border-radius: 10px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
    width: 100%;
    text-align: center;
    margin-top: 2rem;
}

.modal-content .close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4);
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 0;
}

.preview-btn {
    background: linear-gradient(90deg, rgb(99, 96, 96), rgb(150, 153, 158));
    color: #1A1A1A;
}

.preview-btn::before {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(0, 0, 0, 0.2),
        transparent
    );
}

.preview-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.preview-btn:hover::before {
    left: 100%;
}

.loading-overlay {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 16px;
}

.loading-overlay.active {
    display: flex;
}

.spinner {
    width: 48px;
    height: 48px;
    border: 5px solid #4F46E5;
    border-top: 5px solid transparent;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.error-message {
    animation: fade-in 0.3s ease-out;
}

.password-strength-container {
    margin-top: 8px;
}

.password-strength-text {
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 4px;
}

.password-strength-bar {
    height: 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.password-strength-fill {
    height: 100%;
    transition: width 0.3s ease, background-color 0.3s ease;
}

.weak { background-color: #EF4444; width: 33%; }
.medium { background-color: #FBBF24; width: 66%; }
.good { background-color: #22C55E; width: 100%; }

.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 16px;
    width: 250px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    animation: slide-in 0.5s ease-out;
    display: flex;
    align-items: center;
}

.notification-icon {
    width: 24px;
    height: 24px;
    margin-right: 12px;
}

.notification-text {
    color: #fff;
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-text strong {
    color: #4F46E5;
}

.chatbot-container {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 1000;
    width: 320px;
    max-height: 500px;
    display: none;
    animation: chatbot-pop 0.3s ease-out;
}

.chatbot-container.active {
    display: block;
}

.chatbot-header {
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    padding: 12px 16px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
    font-weight: 600;
}

.chatbot-body {
    background: rgba(20, 20, 20, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0 0 12px 12px;
    padding: 16px;
    max-height: 400px;
    overflow-y: auto;
}

.chatbot-message {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 0.9rem;
    line-height: 1.4;
}

.chatbot-message.bot {
    background: rgba(79, 70, 229, 0.2);
    color: #fff;
    margin-left: 10%;
}

.chatbot-message.user {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    margin-right: 10%;
    text-align: right;
}

.chatbot-input-container {
    display: flex;
    margin-top: 12px;
}

.chatbot-input {
    flex: 1;
    background: rgba(30, 30, 30, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 10px;
    color: white;
    font-size: 0.9rem;
}

.chatbot-input:focus {
    border-color: #4F46E5;
    outline: none;
}

.chatbot-send-btn {
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    padding: 10px 16px;
    border-radius: 8px;
    margin-left: 8px;
    color: white;
    font-weight: 600;
    transition: all 0.3s ease;
}

.chatbot-send-btn:hover {
    transform: translateY(-1px);
}

.chatbot-toggle {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: linear-gradient(90deg, #4F46E5, #A855F7);
    padding: 12px;
    border-radius: 50%;
    box-shadow: 0 4px 16px rgba(79, 70, 229, 0.4);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.chatbot-toggle:hover {
    transform: scale(1.1);
}

.faq-item {
    margin-bottom: 1.5rem;
}

.faq-question {
    font-weight: 600;
    color: #4F46E5;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-answer {
    color: #D1D5DB;
    font-size: 0.9rem;
    line-height: 1.5;
    display: none;
    margin-top: 0.5rem;
}

.faq-answer.active {
    display: block;
}

.faq-toggle-icon {
    width: 16px;
    height: 16px;
    transition: transform 0.3s ease;
}

.faq-toggle-icon.active {
    transform: rotate(180deg);
}

@media (max-width: 767px) {
    .glass {
        padding: 12px; /* Weniger Padding für kompakteres Layout */
        border-radius: 12px; /* Etwas kleinere Ecken */
    }

    .tab-button {
        font-size: 0.85rem; /* Kleinere Schrift */
        padding: 6px 10px; /* Weniger Padding */
    }

    .tab-button::after {
        height: 2px; /* Dünnerer Unterstrich */
    }

    .modern-btn {
        padding: 10px 16px; /* Weniger Padding */
        font-size: 0.9rem; /* Kleinere Schrift */
        border-radius: 10px; /* Kleinere Ecken */
    }

    .modern-btn.loading::after {
        width: 20px;
        height: 20px;
        border-width: 2px; /* Kleinere Spinner-Größe */
    }

    .modern-input {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 8px;
        width: 100%; /* Volle Breite */
    }

    .input-container label {
        font-size: 0.85rem; /* Kleinere Label-Schrift */
        left: 14px;
    }

    .input-container input:focus + label,
    .input-container input:not(:placeholder-shown) + label {
        top: -10px;
        left: 10px;
        font-size: 0.65rem;
        padding: 0 4px;
    }

    .toggle-password-icon {
        right: 14px;
        width: 16px;
        height: 16px;
    }

    .discord-logo {
        bottom: 16px;
        left: 16px; /* Anpassung für kleinere Bildschirme */
        width: 40px; /* Kleinere Größe */
        height: 40px;
    }

    .modal-content {
        padding: 24px;
        width: 95%;
        max-width: 100%;
        border-radius: 12px;
        max-height: 80vh;
    }

    .modal-content h2 {
        font-size: 1.5rem; /* Kleinere Überschrift */
        margin-bottom: 1.5rem;
    }

    .modal-content .close-btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        border-radius: 8px;
        margin-top: 1.5rem;
    }

    .loading-overlay {
        border-radius: 12px;
    }

    .spinner {
        width: 40px;
        height: 40px;
        border-width: 4px;
    }

    .password-strength-text {
        font-size: 0.75rem;
    }

    .password-strength-bar {
        height: 5px;
        border-radius: 2.5px;
    }

    .notification {
        top: 16px;
        right: 16px;
        width: 90%;
        max-width: 280px;
        padding: 12px;
        border-radius: 12px;
    }

    .notification-icon {
        width: 20px;
        height: 20px;
        margin-right: 8px;
    }

    .notification-text {
        font-size: 0.85rem;
    }

    .chatbot-container {
        width: 90%;
        max-width: 300px;
        bottom: 80px;
        right: 16px;
        max-height: 450px;
    }

    .chatbot-header {
        padding: 10px 14px;
        font-size: 0.9rem;
        border-radius: 10px 10px 0 0;
    }

    .chatbot-body {
        padding: 12px;
        max-height: 350px;
        border-radius: 0 0 10px 10px;
    }

    .chatbot-message {
        font-size: 0.85rem;
        padding: 8px 12px;
        margin-bottom: 8px;
    }

    .chatbot-input-container {
        margin-top: 8px;
    }

    .chatbot-input {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
    }

    .chatbot-send-btn {
        padding: 8px 12px;
        font-size: 0.85rem;
        border-radius: 6px;
        margin-left: 6px;
    }

    .chatbot-toggle {
        bottom: 16px;
        right: 16px;
        padding: 10px;
    }

    .faq-item {
        margin-bottom: 1rem;
    }

    .faq-question {
        font-size: 0.9rem;
    }

    .faq-answer {
        font-size: 0.85rem;
        margin-top: 0.3rem;
    }

    .faq-toggle-icon {
        width: 14px;
        height: 14px;
    }
}