/* ========================================
   LOGIN REQUIRED MODAL (lrm- prefix)
   Clean design with no CSS conflicts
   ======================================== */

/* Modal Dialog */
.lrm-dialog {
    max-width: 520px;
    margin: 1.75rem auto;
}

/* Modal Content */
.lrm-content {
    background: #ffffff !important;
    border: none !important;
    border-radius: 18px !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
}

/* Header */
.lrm-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: #ffffff !important;
}

.lrm-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
}

.lrm-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4b8ef2, #27b578);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lrm-icon i {
    font-size: 24px;
    color: #ffffff !important;
}

.lrm-header-text {
    flex: 1;
}

.lrm-title {
    font-size: 20px;
    font-weight: 700;
    color: #202124 !important;
    margin: 0 0 4px 0;
    line-height: 1.2;
}

.lrm-subtitle {
    font-size: 13px;
    color: #5f6368 !important;
    margin: 0;
    line-height: 1.3;
}

.lrm-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.06);
    border: none;
    color: #5f6368 !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    flex-shrink: 0;
}

.lrm-close:hover {
    background: rgba(0, 0, 0, 0.12);
    color: #202124 !important;
    transform: scale(1.05);
}

.lrm-close i {
    font-size: 16px;
}

/* Body */
.lrm-body {
    padding: 24px !important;
    background: #ffffff !important;
    color: #202124 !important;
}

/* Info Box */
.lrm-info {
    background: rgba(66, 133, 244, 0.08);
    border: 1px solid rgba(66, 133, 244, 0.2);
    border-radius: 14px;
    padding: 18px;
    margin-bottom: 24px;
}

.lrm-info-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.lrm-info-header i {
    color: #4285f4 !important;
    font-size: 16px;
}

.lrm-info-header-text {
    font-size: 15px;
    font-weight: 600;
    color: #202124 !important;
}

.lrm-info-description {
    font-size: 13.5px;
    color: #5f6368 !important;
    margin: 0 0 14px 0;
    line-height: 1.5;
}

/* Features List */
.lrm-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lrm-feature {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.lrm-feature i {
    font-size: 14px;
    color: #4285f4 !important;
    margin-top: 2px;
    flex-shrink: 0;
}

.lrm-feature-text {
    font-size: 13px;
    color: #5f6368 !important;
    line-height: 1.5;
}

.lrm-feature-text strong {
    color: #202124 !important;
    font-weight: 600;
}

/* Action Buttons */
.lrm-actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.lrm-btn {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    width: 100%;
}

/* Primary Button (Login) */
.lrm-btn-primary {
    background: linear-gradient(135deg, #4b8ef2, #27b578) !important;
    box-shadow: 0 4px 12px rgba(75, 142, 242, 0.25);
}

.lrm-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 142, 242, 0.35);
}

/* Secondary Button (Register) */
.lrm-btn-secondary {
    background: #f1f3f4 !important;
    border: 1px solid #dadce0 !important;
}

.lrm-btn-secondary:hover {
    background: #e8eaed !important;
    transform: translateY(-2px);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

/* Button Icon */
.lrm-btn-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lrm-btn-primary .lrm-btn-icon {
    background: rgba(255, 255, 255, 0.2);
}

.lrm-btn-primary .lrm-btn-icon i {
    font-size: 18px;
    color: #ffffff !important;
}

.lrm-btn-secondary .lrm-btn-icon {
    background: rgba(66, 133, 244, 0.1);
}

.lrm-btn-secondary .lrm-btn-icon i {
    font-size: 18px;
    color: #4285f4 !important;
}

/* Button Text */
.lrm-btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.lrm-btn-title {
    font-size: 15px;
    font-weight: 600;
    line-height: 1.3;
}

.lrm-btn-primary .lrm-btn-title {
    color: #ffffff !important;
}

.lrm-btn-secondary .lrm-btn-title {
    color: #202124 !important;
}

.lrm-btn-desc {
    font-size: 12px;
    line-height: 1.3;
}

.lrm-btn-primary .lrm-btn-desc {
    color: rgba(255, 255, 255, 0.85) !important;
}

.lrm-btn-secondary .lrm-btn-desc {
    color: #5f6368 !important;
}

/* Button Arrow */
.lrm-btn-arrow {
    font-size: 16px;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.lrm-btn-primary .lrm-btn-arrow {
    color: rgba(255, 255, 255, 0.8) !important;
}

.lrm-btn-secondary .lrm-btn-arrow {
    color: #80868b !important;
}

.lrm-btn:hover .lrm-btn-arrow {
    transform: translateX(4px);
}

.lrm-btn-secondary:hover .lrm-btn-arrow {
    color: #5f6368 !important;
}

/* Trust Badge */
.lrm-trust {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background: rgba(52, 168, 83, 0.1);
    border: 1px solid rgba(52, 168, 83, 0.25);
    border-radius: 10px;
}

.lrm-trust i {
    color: #34a853 !important;
    font-size: 13px;
}

.lrm-trust-text {
    font-size: 12px;
    color: #5f6368 !important;
}

/* ==================== DARK THEME ==================== */

html[data-theme="dark"] .lrm-content {
    background: #2c3138 !important;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4), 0 4px 12px rgba(0, 0, 0, 0.25) !important;
}

html[data-theme="dark"] .lrm-header {
    background: #2c3138 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08);
}

html[data-theme="dark"] .lrm-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-subtitle {
    color: #dadce0 !important;
}

html[data-theme="dark"] .lrm-close {
    background: rgba(255, 255, 255, 0.08);
    color: #c7ccd1 !important;
}

html[data-theme="dark"] .lrm-close:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-body {
    background: #2c3138 !important;
}

html[data-theme="dark"] .lrm-info {
    background: rgba(75, 142, 242, 0.08);
    border-color: rgba(75, 142, 242, 0.2);
}

html[data-theme="dark"] .lrm-info-header i {
    color: #5b9aff !important;
}

html[data-theme="dark"] .lrm-info-header-text {
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-info-description {
    color: #e8eaed !important;
}

html[data-theme="dark"] .lrm-feature i {
    color: #5b9aff !important;
}

html[data-theme="dark"] .lrm-feature-text {
    color: #e8eaed !important;
}

html[data-theme="dark"] .lrm-feature-text strong {
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-btn-secondary {
    background: rgba(255, 255, 255, 0.08) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
}

html[data-theme="dark"] .lrm-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    border-color: rgba(255, 255, 255, 0.22) !important;
}

html[data-theme="dark"] .lrm-btn-secondary .lrm-btn-icon {
    background: rgba(255, 255, 255, 0.15);
}

html[data-theme="dark"] .lrm-btn-secondary .lrm-btn-icon i {
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-btn-secondary .lrm-btn-title {
    color: #ffffff !important;
}

html[data-theme="dark"] .lrm-btn-secondary .lrm-btn-desc {
    color: rgba(255, 255, 255, 0.75) !important;
}

html[data-theme="dark"] .lrm-btn-secondary .lrm-btn-arrow {
    color: rgba(255, 255, 255, 0.6) !important;
}

html[data-theme="dark"] .lrm-btn-secondary:hover .lrm-btn-arrow {
    color: rgba(255, 255, 255, 0.85) !important;
}

html[data-theme="dark"] .lrm-trust {
    background: rgba(39, 181, 120, 0.12);
    border-color: rgba(39, 181, 120, 0.25);
}

html[data-theme="dark"] .lrm-trust i {
    color: #50d890 !important;
}

html[data-theme="dark"] .lrm-trust-text {
    color: #e8eaed !important;
}

/* ==================== MOBILE ==================== */

@media (max-width: 576px) {
    .lrm-dialog {
        margin: 0.5rem;
    }
    
    .lrm-content {
        border-radius: 16px !important;
    }
    
    .lrm-header {
        padding: 20px 18px;
    }
    
    .lrm-body {
        padding: 20px 18px !important;
    }
    
    .lrm-icon {
        width: 48px;
        height: 48px;
    }
    
    .lrm-icon i {
        font-size: 20px;
    }
    
    .lrm-title {
        font-size: 18px;
    }
    
    .lrm-subtitle {
        font-size: 12px;
    }
    
    .lrm-info {
        padding: 16px;
    }
    
    .lrm-info-header-text {
        font-size: 14px;
    }
    
    .lrm-info-description {
        font-size: 13px;
    }
    
    .lrm-feature {
        font-size: 12.5px;
        gap: 10px;
    }
    
    .lrm-feature i {
        font-size: 13px;
    }
    
    .lrm-btn {
        padding: 14px 16px;
        gap: 12px;
    }
    
    .lrm-btn-icon {
        width: 38px;
        height: 38px;
    }
    
    .lrm-btn-icon i {
        font-size: 16px;
    }
    
    .lrm-btn-title {
        font-size: 14px;
    }
    
    .lrm-btn-desc {
        font-size: 11px;
    }
    
    .lrm-trust {
        font-size: 11px;
        padding: 10px;
    }
}
