/* ===== MOBILE & TABLET OPTIMIERUNG AUTH ===== */
@media (max-width: 1024px) {
    .auth-container, .auth-header, .auth-content, .auth-card, .auth-modal {
        padding: 0.5rem !important;
        box-sizing: border-box;
    }
    .auth-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    .auth-card, .auth-modal {
        border-radius: 12px;
        box-shadow: 0 2px 12px rgba(108,99,255,0.06);
        margin-bottom: 10px;
        font-size: 0.97rem;
    }
    .auth-modal-header, .auth-modal-body, .auth-modal-footer {
        padding: 0.5rem 0.7rem;
    }
    .auth-modal-header h3 {
        font-size: 1.08rem;
    }
    .auth-btn {
        min-width: 44px;
        min-height: 44px;
        font-size: 1.05rem;
        border-radius: 10px;
        padding: 0.5rem 0.7rem;
    }
}
@media (max-width: 700px) {
    .auth-container, .auth-header, .auth-content, .auth-card, .auth-modal {
        padding: 0.2rem !important;
    }
    .auth-card, .auth-modal {
        padding: 7px 6px;
        font-size: 0.95rem;
        border-radius: 9px;
    }
    .auth-btn {
        font-size: 0.97rem;
        padding: 0.3rem 0.5rem;
        border-radius: 9px;
    }
}
/* === CSS for Auth & Pricing Page === */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body {
    font-family: 'Inter', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8fafc;
    color: #2d3748;
}

.pricing-page-wrapper {
    width: 100%;
    max-width: 1200px;
    padding: 60px 20px;
}

.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-header img { width: 64px; height: 64px; border-radius: 12px; margin-bottom: 16px; }
.pricing-header h1 { font-size: 2.5rem; margin-bottom: 12px; }
.pricing-header p { font-size: 1.1rem; color: #718096; }

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.pricing-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    position: relative;
}
.pricing-card:hover { transform: translateY(-8px); box-shadow: 0 20px 40px rgba(0,0,0,0.08); }
.pricing-card.recommended { border-color: #667eea; transform: scale(1.05); }

.popular-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 6px 16px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
}

.card-header { margin-bottom: 24px; text-align: center; }
.card-header h3 { font-size: 1.5rem; margin-bottom: 12px; }
.price { font-size: 3rem; font-weight: 700; }
.price span { font-size: 1rem; font-weight: 500; color: #718096; }
.card-description { color: #718096; margin-bottom: 32px; flex-grow: 1; }

.btn { display: block; width: 100%; padding: 14px; border-radius: 10px; font-size: 1rem; font-weight: 600; text-align: center; text-decoration: none; transition: all 0.3s ease; cursor: pointer; }
.btn-primary { background: #4c51bf; color: white; border: 1px solid #4c51bf; }
.btn-primary:hover { background: #434190; }
.btn-secondary { background: #ffffff; color: #4c51bf; border: 1px solid #e2e8f0; }
.btn-secondary:hover { border-color: #4c51bf; }

.feature-list { list-style: none; margin-top: 32px; display: flex; flex-direction: column; gap: 16px; }
.feature-list li { display: flex; align-items: center; gap: 12px; }
.feature-list i { color: #34d399; }

.login-existing-user { text-align: center; margin-top: 40px; }
.btn-link { background: none; border: none; color: #667eea; font-weight: 600; cursor: pointer; font-size: 1rem; }
.btn-link:hover { text-decoration: underline; }

/* Modal Styling */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.85); backdrop-filter: none; display: flex; justify-content: center; align-items: center; z-index: 100; opacity: 1; transition: opacity 0.3s ease; }
.modal-overlay.hidden { opacity: 0; pointer-events: none; }
.scene { width: 100%; max-width: 400px; height: 550px; perspective: 1500px; }
.card { width: 100%; height: 100%; position: relative; transform-style: preserve-3d; transition: transform 0.8s cubic-bezier(0.76, 0, 0.24, 1); }
.card.is-flipped { transform: rotateY(180deg); }
.card-face { position: absolute; width: 100%; height: 100%; backface-visibility: hidden; -webkit-backface-visibility: hidden; background: #fff; border-radius: 16px; padding: 40px; }
.card-back { transform: rotateY(180deg); }

.close-btn { position: absolute; top: 15px; right: 15px; background: none; border: none; font-size: 1.5rem; cursor: pointer; color: #a0aec0; }
.form-container h3 { font-size: 1.8rem; font-weight: 600; margin-bottom: 32px; text-align: center; }
.form-group { margin-bottom: 20px; text-align: left; }
.form-group label { display: block; margin-bottom: 8px; font-weight: 500; color: #4a5568; }
.form-group input { width: 100%; padding: 12px 16px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 1rem; }
.auth-btn { width: 100%; padding: 14px; border-radius: 10px; background: linear-gradient(45deg, #5a67d8, #764ba2); color: white; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
#loginStatus, #signupStatus { margin-top: 16px; min-height: 20px; font-weight: 500; text-align: center; }
.status-error { color: #e53e3e; }
.status-success { color: #28a745; }
.footer-link { margin-top: 24px; color: #718096; font-size: 0.9rem; text-align: center; }
.footer-link a { color: #667eea; font-weight: 500; text-decoration: none; cursor: pointer; }



@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; }
    .pricing-card.recommended { transform: scale(1); }
}