/* Profile completion overlay — shown on intro page before entering the app */

.pestering-screen {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 12, 0.72);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 3000;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.pestering-screen.show {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    align-items: center;
    justify-content: center;
    padding: max(24px, env(safe-area-inset-top, 0px)) 20px max(32px, env(safe-area-inset-bottom, 0px));
}

@supports (justify-content: safe center) {
    .pestering-screen.show {
        justify-content: safe center;
    }
}

.pestering-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 40px var(--shadow-hover);
    text-align: center;
    flex-shrink: 0;
}

.pestering-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pestering-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.pestering-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pestering-form .form-group {
    text-align: left;
}

.pestering-form .form-label {
    display: block;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.pestering-form .form-input,
.pestering-form .form-select {
    width: 100%;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 16px;
    font-family: var(--font-sans);
    font-size: 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.pestering-form .form-select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23B0B0B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.pestering-form .form-input:focus,
.pestering-form .form-select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 111, 97, 0.1);
}

.pestering-submit {
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 14px 24px;
    font-family: var(--font-sans);
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
}

.pestering-submit:hover:not(:disabled) {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px var(--shadow-hover);
}

.pestering-submit:disabled {
    background: var(--bg-tertiary);
    color: var(--text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.pestering-back-btn {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid transparent;
    border-radius: 8px;
    padding: 9px 14px;
    font-family: var(--font-sans);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    margin: 0 0 16px 0;
}

.pestering-back-btn:hover:not(:disabled) {
    color: var(--text-primary);
    border-color: var(--border);
    background: var(--bg-tertiary);
}

.pestering-back-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.intro-onboarding-active .intro-header,
body.intro-onboarding-active .intro-main,
body.intro-onboarding-active .intro-footer,
body.intro-onboarding-active .intro-mobile-cta {
    pointer-events: none;
}

.google-signin-pending {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(10, 10, 12, 0.55);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.google-signin-pending[hidden] {
    display: none !important;
}

.google-signin-pending__card {
    width: min(360px, 100%);
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid var(--border);
    background: var(--bg-secondary);
    text-align: center;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.google-signin-pending__spinner {
    width: 28px;
    height: 28px;
    margin: 0 auto 14px;
    border: 3px solid color-mix(in srgb, var(--text-primary) 12%, transparent);
    border-top-color: var(--accent, #ff6f61);
    border-radius: 50%;
    animation: google-signin-spin 0.75s linear infinite;
}

.google-signin-pending__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}

.google-signin-pending__hint {
    margin: 0;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.45;
}

@keyframes google-signin-spin {
    to { transform: rotate(360deg); }
}
