/**
 * Authentication & Profile Styles
 * ستايلات المصادقة والبروفايل
 *
 * @package Qedama
 */

/* =============================================
   Login Modal - محسّن لـ Safari
   ============================================= */
.login-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px); /* Safari support */
    z-index: 999999; /* أعلى من WordPress admin bar */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    /* تحسينات لـ iOS Safari */
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.login-modal.active {
    opacity: 1;
    visibility: visible;
}

/* منع scroll على body بطريقة آمنة لـ Safari */
body.modal-open {
    overflow: hidden !important;
    position: fixed;
    width: 100%;
    height: 100%;
}

.login-modal__content {
    background: var(--white);
    border-radius: 20px;
    width: 100%;
    max-width: 420px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.3);
}

.login-modal__close {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 36px;
    height: 36px;
    border: none;
    background: var(--light-gray);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.login-modal__close:hover {
    background: var(--lighter-gray);
    transform: rotate(90deg);
}

.login-modal__close svg {
    width: 18px;
    height: 18px;
    fill: var(--medium-gray);
}

.login-modal__logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin: 0 auto 25px;
    display: block;
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.2);
}

.login-modal__title {
    text-align: center;
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--dark-gray);
    line-height: 1.7;
    margin-bottom: 30px;
}

.login-modal__title strong {
    display: block;
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--linkedin-blue);
}

/* Login Buttons */
.login-modal__buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.login-modal__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.login-modal__btn svg {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

/* Google Button */
.login-modal__btn--google {
    background: #fff;
    color: var(--dark-gray);
    border-color: var(--lighter-gray);
}

.login-modal__btn--google:hover {
    background: #f8f9fa;
    border-color: #4285f4;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.2);
}

.login-modal__btn--google svg {
    /* Google colors */
}

/* Apple Button */
.login-modal__btn--apple {
    background: #000;
    color: #fff;
    border-color: #000;
}

.login-modal__btn--apple:hover:not(:disabled) {
    background: #333;
}

.login-modal__btn--apple:disabled {
    background: #ccc;
    border-color: #ccc;
    cursor: not-allowed;
    opacity: 0.7;
}

.login-modal__btn--apple svg {
    fill: #fff;
}

/* Loading State */
.login-modal__btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-modal__btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-right: 10px;
}

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

/* Privacy Text */
.login-modal__privacy {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: center;
    line-height: 1.7;
    border-top: 1px solid var(--light-gray);
    padding-top: 20px;
}

.login-modal__privacy a {
    color: var(--linkedin-blue);
    text-decoration: underline;
}

/* Coming Soon Badge */
.coming-soon-badge {
    font-size: 0.7rem;
    background: var(--linkedin-blue);
    color: #fff;
    padding: 2px 8px;
    border-radius: 10px;
    margin-right: 8px;
}

/* =============================================
   Header User Menu
   ============================================= */
.header__user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 12px;
    background: var(--light-gray);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.header__user:hover {
    border-color: var(--linkedin-blue);
}

.header__user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
}

.header__user-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
    max-width: 120px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header__user-badge {
    font-size: 0.65rem;
    background: #25D366;
    color: #fff;
    padding: 2px 6px;
    border-radius: 8px;
    margin-right: 5px;
}

/* Login Button in Header */
.header__login-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: var(--linkedin-blue);
    color: #fff !important;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.header__login-btn:hover {
    background: var(--linkedin-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.3);
}

.header__login-btn svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

/* Mobile Login Icon */
.header__login-icon {
    display: none;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    background: var(--linkedin-blue);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header__login-icon:hover {
    transform: scale(1.1);
}

.header__login-icon svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

@media (max-width: 768px) {
    .header__login-btn {
        display: none;
    }
    
    .header__login-icon {
        display: flex;
    }
    
    .header__user-name {
        display: none;
    }
    
    .header__user {
        padding: 4px;
        background: transparent;
    }
    
    .header__user-avatar {
        width: 40px;
        height: 40px;
    }
}

/* =============================================
   Toast Notifications
   ============================================= */
.qedama-toast {
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    background: var(--dark-gray);
    color: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    z-index: 10001;
    opacity: 0;
    transition: all 0.3s ease;
    max-width: 90%;
}

.qedama-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.qedama-toast--success {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.qedama-toast--error {
    background: linear-gradient(135deg, #dc3545, #e74c3c);
}

.qedama-toast--info {
    background: linear-gradient(135deg, var(--linkedin-blue), #0099cc);
}

.qedama-toast__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.qedama-toast__icon svg {
    width: 100%;
    height: 100%;
    fill: #fff;
}

.qedama-toast__message {
    font-size: 0.95rem;
    font-weight: 500;
}

/* =============================================
   Profile Page
   ============================================= */
.profile-page {
    padding-top: calc(var(--header-height) + 40px);
    padding-bottom: 100px;
    min-height: 100vh;
}

.admin-bar .profile-page {
    padding-top: calc(var(--header-height) + 32px + 40px);
}

.profile-page__header {
    text-align: center;
    margin-bottom: 40px;
}

.profile-page__title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.profile-page__subtitle {
    color: var(--medium-gray);
    font-size: 1rem;
}

.profile-page__content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}

/* Profile Card */
.profile-card {
    background: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 5px 20px var(--shadow-color);
    overflow: hidden;
}

.profile-card__header {
    background: linear-gradient(135deg, var(--linkedin-blue), #0099cc);
    padding: 40px;
    text-align: center;
    position: relative;
}

.profile-card__header::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--white);
    border-radius: 50% 50% 0 0;
}

.profile-avatar {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.profile-avatar__image {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #fff;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

.profile-avatar__upload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 36px;
    height: 36px;
    background: var(--linkedin-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 2px solid #fff;
}

.profile-avatar__upload:hover {
    transform: scale(1.1);
}

.profile-avatar__upload svg {
    width: 18px;
    height: 18px;
    fill: #fff;
}

.profile-avatar__upload input {
    display: none;
}

.profile-card__body {
    padding: 50px 40px 40px;
}

.profile-card__name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-gray);
    text-align: center;
    margin-bottom: 5px;
}

.profile-card__email {
    color: var(--medium-gray);
    text-align: center;
    margin-bottom: 20px;
}

.profile-card__provider {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--light-gray);
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin: 0 auto 30px;
}

.profile-card__provider svg {
    width: 16px;
    height: 16px;
}

/* Profile Info */
.profile-info {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.profile-info__item {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--light-gray);
}

.profile-info__item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.profile-info__label {
    font-size: 0.85rem;
    color: var(--medium-gray);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-info__label svg {
    width: 16px;
    height: 16px;
    fill: var(--linkedin-blue);
}

.profile-info__value {
    font-size: 1rem;
    color: var(--dark-gray);
    line-height: 1.6;
}

.profile-info__value a {
    color: var(--linkedin-blue);
}

.profile-info__value--empty {
    color: var(--medium-gray);
    font-style: italic;
}

/* Profile Form */
.profile-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.profile-form__group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.profile-form__label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-gray);
}

.profile-form__label span {
    color: var(--medium-gray);
    font-weight: 400;
    font-size: 0.85rem;
}

.profile-form__input,
.profile-form__textarea {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid var(--lighter-gray);
    border-radius: 12px;
    font-size: 1rem;
    font-family: inherit;
    transition: all 0.2s ease;
    background: var(--white);
}

.profile-form__input:focus,
.profile-form__textarea:focus {
    outline: none;
    border-color: var(--linkedin-blue);
    box-shadow: 0 0 0 3px rgba(0, 119, 181, 0.1);
}

.profile-form__input:disabled {
    background: var(--light-gray);
    cursor: not-allowed;
}

.profile-form__input.invalid {
    border-color: #dc3545;
}

.profile-form__textarea {
    min-height: 150px;
    resize: vertical;
}

.field-hint {
    font-size: 0.8rem;
    color: var(--medium-gray);
}

.field-hint.error {
    color: #dc3545;
}

.profile-form__char-count {
    font-size: 0.8rem;
    color: var(--medium-gray);
    text-align: left;
}

.profile-form__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    background: var(--linkedin-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    align-self: flex-start;
}

.profile-form__submit:hover {
    background: var(--linkedin-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0, 119, 181, 0.3);
}

.profile-form__submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Profile Sidebar */
.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.profile-sidebar__widget {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 8px;
    box-shadow: 0 5px 20px var(--shadow-color);
}

.profile-sidebar__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    border-radius: 10px;
    color: var(--dark-gray);
    font-weight: 500;
    transition: all 0.2s ease;
}

.profile-sidebar__link:hover {
    background: var(--light-gray);
    color: var(--linkedin-blue);
}

.profile-sidebar__link.active {
    background: rgba(0, 119, 181, 0.1);
    color: var(--linkedin-blue);
}

.profile-sidebar__link svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.profile-sidebar__link--danger {
    color: #dc3545;
}

.profile-sidebar__link--danger:hover {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

/* Delete Account Modal */
.delete-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.delete-modal.active {
    opacity: 1;
    visibility: visible;
}

.delete-modal__content {
    background: var(--white);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.delete-modal__icon {
    width: 60px;
    height: 60px;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.delete-modal__icon svg {
    width: 30px;
    height: 30px;
    fill: #dc3545;
}

.delete-modal__title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 10px;
}

.delete-modal__text {
    color: var(--medium-gray);
    margin-bottom: 20px;
    line-height: 1.6;
}

.delete-modal__input {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--lighter-gray);
    border-radius: 10px;
    text-align: center;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 20px;
}

.delete-modal__input:focus {
    outline: none;
    border-color: #dc3545;
}

.delete-modal__actions {
    display: flex;
    gap: 12px;
}

.delete-modal__btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.delete-modal__btn--cancel {
    background: var(--light-gray);
    color: var(--dark-gray);
}

.delete-modal__btn--cancel:hover {
    background: var(--lighter-gray);
}

.delete-modal__btn--delete {
    background: #dc3545;
    color: #fff;
}

.delete-modal__btn--delete:hover {
    background: #c82333;
}

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
    .profile-page__content {
        grid-template-columns: 1fr;
    }
    
    .profile-sidebar {
        order: -1;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .profile-sidebar__widget {
        flex: 1;
        min-width: 200px;
    }
}

@media (max-width: 768px) {
    .login-modal__content {
        padding: 30px 25px;
    }
    
    .login-modal__logo {
        width: 70px;
        height: 70px;
    }
    
    .login-modal__title {
        font-size: 1rem;
    }
    
    .login-modal__title strong {
        font-size: 1.1rem;
    }
    
    .profile-card__header {
        padding: 30px 20px;
    }
    
    .profile-card__body {
        padding: 40px 25px 30px;
    }
    
    .profile-avatar__image {
        width: 100px;
        height: 100px;
    }
    
    .profile-sidebar {
        flex-direction: column;
    }
    
    .profile-sidebar__widget {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .profile-form__submit {
        width: 100%;
    }
    
    .delete-modal__actions {
        flex-direction: column;
    }
}

/* =============================================
   Full Page Loading Overlay - جديد
   ============================================= */
.qedama-auth-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1000000; /* أعلى من كل شيء */
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-overflow-scrolling: touch;
}

.qedama-auth-loading.active {
    opacity: 1;
    visibility: visible;
}

.qedama-auth-loading__content {
    text-align: center;
    padding: 40px;
}

.qedama-auth-loading__spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto 25px;
    border: 4px solid var(--light-gray);
    border-top-color: var(--linkedin-blue);
    border-radius: 50%;
    animation: qedama-spin 0.8s linear infinite;
}

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

.qedama-auth-loading__message {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark-gray);
    animation: qedama-pulse 1.5s ease-in-out infinite;
}

@keyframes qedama-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.6; }
}

/* تحسينات إضافية للـ Modal على Mobile */
@media (max-width: 768px) {
    .qedama-auth-loading__spinner {
        width: 50px;
        height: 50px;
    }
    
    .qedama-auth-loading__message {
        font-size: 1rem;
    }
    
    /* إصلاح مشاكل scroll على iOS */
    .login-modal {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
    
    .login-modal__content {
        max-height: calc(100vh - 40px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* =============================================
   Retry & Cancel Buttons for Loading Overlay
   ============================================= */
.qedama-auth-retry,
.qedama-auth-cancel {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 15px auto 0;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.qedama-auth-retry {
    background: var(--linkedin-blue, #0077B5);
    color: #fff;
}

.qedama-auth-retry:hover {
    background: var(--linkedin-blue-hover, #005885);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 119, 181, 0.3);
}

.qedama-auth-cancel {
    background: transparent;
    color: var(--medium-gray, #666);
    border: 1px solid var(--lighter-gray, #ddd);
    margin-top: 10px;
}

.qedama-auth-cancel:hover {
    background: var(--light-gray, #f5f5f5);
    color: var(--dark-gray, #333);
}

/* Animation for retry buttons appearing */
.qedama-auth-retry,
.qedama-auth-cancel {
    animation: fadeInUp 0.3s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Error state styling for loading overlay */
.qedama-auth-loading--error .qedama-auth-loading__message {
    color: #dc3545;
    animation: none;
}

/* Dark mode support (اختياري) */
@media (prefers-color-scheme: dark) {
    .qedama-auth-loading {
        background: rgba(30, 30, 30, 0.98);
    }
    
    .qedama-auth-loading__message {
        color: #f0f0f0;
    }
    
    .qedama-auth-cancel {
        color: #ccc;
        border-color: #444;
    }
    
    .qedama-auth-cancel:hover {
        background: #333;
        color: #fff;
    }
}

/* =============================================
   Mobile Auth Helper - مساعد تسجيل الدخول للموبايل
   ============================================= */
.qedama-mobile-auth-helper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 1000001;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.qedama-mobile-auth-helper.active {
    opacity: 1;
    visibility: visible;
}

.qedama-mobile-auth-helper__content {
    background: #fff;
    border-radius: 20px;
    padding: 30px;
    max-width: 360px;
    width: 100%;
    text-align: center;
    position: relative;
    animation: mobileHelperSlideUp 0.3s ease;
}

@keyframes mobileHelperSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qedama-mobile-auth-helper__icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #ff9800, #f57c00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.qedama-mobile-auth-helper__icon svg {
    width: 30px;
    height: 30px;
    fill: #fff;
}

.qedama-mobile-auth-helper__content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-gray, #333);
    margin: 0 0 10px;
}

.qedama-mobile-auth-helper__content p {
    font-size: 0.9rem;
    color: var(--medium-gray, #666);
    line-height: 1.6;
    margin: 0 0 20px;
}

.qedama-mobile-auth-helper__options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.qedama-mobile-auth-helper__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 14px 20px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.qedama-mobile-auth-helper__btn--primary {
    background: var(--linkedin-blue, #0077B5);
    color: #fff;
}

.qedama-mobile-auth-helper__btn--primary:hover {
    background: var(--linkedin-blue-hover, #005885);
}

.qedama-mobile-auth-helper__btn--secondary {
    background: var(--light-gray, #f5f5f5);
    color: var(--dark-gray, #333);
}

.qedama-mobile-auth-helper__btn--secondary:hover {
    background: var(--lighter-gray, #eee);
}

.qedama-mobile-auth-helper__tip {
    font-size: 0.8rem !important;
    background: #fff8e1;
    border-radius: 10px;
    padding: 12px !important;
    margin: 0 !important;
    border: 1px solid #ffecb3;
}

.qedama-mobile-auth-helper__tip strong {
    color: #f57c00;
}

.qedama-mobile-auth-helper__close {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: var(--light-gray, #f5f5f5);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.qedama-mobile-auth-helper__close:hover {
    background: var(--lighter-gray, #eee);
    transform: rotate(90deg);
}

.qedama-mobile-auth-helper__close svg {
    width: 16px;
    height: 16px;
    fill: var(--medium-gray, #666);
}

/* Dark mode for mobile helper */
@media (prefers-color-scheme: dark) {
    .qedama-mobile-auth-helper__content {
        background: #1a1a1a;
    }
    
    .qedama-mobile-auth-helper__content h3 {
        color: #fff;
    }
    
    .qedama-mobile-auth-helper__content p {
        color: #aaa;
    }
    
    .qedama-mobile-auth-helper__btn--secondary {
        background: #333;
        color: #fff;
    }
    
    .qedama-mobile-auth-helper__tip {
        background: #2a2a1a;
        border-color: #444;
    }
    
    .qedama-mobile-auth-helper__close {
        background: #333;
    }
    
    .qedama-mobile-auth-helper__close svg {
        fill: #aaa;
    }
}
