/* ========================================================
   ১. অথেনটিকেশন মডাল (Popup)
======================================================== */
.hm-auth-modal-overlay { display: none; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(15, 23, 42, 0.8); backdrop-filter: blur(5px); z-index: 999999; justify-content: center; align-items: center; font-family: inherit; padding: 15px; box-sizing: border-box; }

.hm-auth-modal-box { background: #ffffff; width: 100%; max-width: 420px; border-radius: 16px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3); animation: hmScaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; display: flex; flex-direction: column; max-height: 90vh; overflow: hidden; position: relative; margin: auto; }

@keyframes hmScaleUp { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.hm-modal-header { padding: 20px 25px; border-bottom: 1px solid #f1f5f9; display: flex; justify-content: space-between; align-items: center; position: sticky; top: 0; background: #ffffff; z-index: 10; flex-shrink: 0; }
.hm-modal-header h3 { margin: 0; color: #0f172a; font-size: 22px; font-weight: 800; }
.hm-modal-close { font-size: 28px; color: #94a3b8; cursor: pointer; line-height: 1; transition: 0.2s; }
.hm-modal-close:hover { color: #ef4444; transform: scale(1.1); }

/* বডিতে স্ক্রলবার যোগ করা হয়েছে */
.hm-modal-body { padding: 25px; overflow-y: auto; }

.hm-social-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 12px; border: 1px solid #cbd5e1; border-radius: 8px; text-decoration: none; color: #334155; font-weight: 600; font-size: 15px; transition: 0.3s; box-sizing: border-box; margin-bottom: 20px; }
.hm-social-btn img, .hm-social-btn svg { width: 20px; height: 20px; }
.hm-social-btn:hover { background: #f8fafc; border-color: #94a3b8; }
.hm-divider { text-align: center; margin: 25px 0; position: relative; }
.hm-divider::before { content: ""; position: absolute; top: 50%; left: 0; width: 100%; height: 1px; background: #e2e8f0; z-index: 1; }
.hm-divider span { background: #fff; padding: 0 15px; color: #64748b; font-size: 13px; font-weight: 600; position: relative; z-index: 2; }
.hm-auth-footer { margin-top: 25px; font-size: 12px; color: #94a3b8; text-align: center; }
.hm-auth-footer a { color: #0f766e; text-decoration: none; font-weight: 600; }
.hm-login-trigger, a[href="#hm-login"], a[href$="#hm-login"] { cursor: pointer !important; pointer-events: auto !important; }
/* ========================================================
   ২. প্রিমিয়াম ড্যাশবোর্ড লেআউট (100% Conflict Free)
======================================================== */
.hm-dashboard-wrapper { 
    display: flex !important; 
    flex-wrap: wrap !important; 
    gap: 30px !important; 
    margin: 50px auto !important; /* ড্যাশবোর্ড সেন্টারে রাখার জন্য */
    max-width: 1100px !important; /* ম্যাক্সিমাম উইডথ ফিক্স */
    width: 100% !important; 
    box-sizing: border-box !important; 
    align-items: flex-start !important; 
    padding: 0 15px !important;
    font-family: inherit !important;
}

/* সাইডবার */
.hm-dash-sidebar { 
    flex: 0 0 280px !important; /* সাইডবারের উইডথ ফিক্সড করা হলো */
    max-width: 280px !important; 
    width: 100% !important;
    background: #ffffff !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 12px !important; 
    padding: 30px 25px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; 
    box-sizing: border-box !important; 
    position: sticky !important; 
    top: 30px !important; 
}

.hm-dash-user-profile { 
    text-align: center !important; 
    margin-bottom: 25px !important; 
    padding-bottom: 20px !important; 
    border-bottom: 1px dashed #e2e8f0 !important; 
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}

.hm-avatar { 
    width: 80px !important; 
    height: 80px !important; 
    background: #0f766e !important; 
    color: #fff !important; 
    font-size: 32px !important; 
    font-weight: 700 !important; 
    border-radius: 50% !important; 
    display: flex !important; 
    align-items: center !important; 
    justify-content: center !important; 
    margin: 0 auto 15px !important; 
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2) !important;
}

.hm-user-name { 
    margin: 5px 0 10px 0 !important; 
    color: #0f172a !important; 
    font-size: 18px !important; 
    font-weight: 700 !important; 
    line-height: 1.4 !important; 
    word-break: break-all !important; 
}

.hm-membership-badge { 
    display: inline-block !important; 
    background: #f8fafc !important; 
    color: #475569 !important; 
    padding: 6px 14px !important; 
    border-radius: 20px !important; 
    font-size: 12px !important; 
    font-weight: 600 !important; 
    border: 1px solid #e2e8f0 !important; 
    margin: 0 !important;
}

/* ন্যাভ মেনু */
.hm-dash-nav { 
    list-style: none !important; 
    padding: 0 !important; 
    margin: 0 !important; 
    display: block !important;
}

.hm-dash-nav li { 
    margin: 0 0 10px 0 !important; 
    padding: 0 !important; 
    line-height: normal !important;
    list-style-type: none !important;
}

.hm-dash-nav li::before, .hm-dash-nav li::after {
    display: none !important; /* থিমের ডিফল্ট বুলেট পয়েন্ট রিমুভ */
}

.hm-dash-nav a { 
    display: flex !important; 
    align-items: center !important; 
    gap: 12px !important; 
    padding: 14px 18px !important; 
    color: #475569 !important; 
    text-decoration: none !important; 
    border-radius: 8px !important; 
    font-weight: 600 !important; 
    font-size: 15px !important; 
    transition: 0.3s ease !important; 
    border: 1px solid transparent !important; 
    width: 100% !important;
    box-sizing: border-box !important;
    background: transparent !important;
    line-height: 1 !important;
}

.hm-dash-nav a:hover { 
    background: #f8fafc !important; 
    color: #0f766e !important; 
}

.hm-dash-nav a.active { 
    background: #0f766e !important; 
    color: #ffffff !important; 
    border-color: #0d9488 !important; 
    box-shadow: 0 4px 10px rgba(15, 118, 110, 0.2) !important; 
}

/* মেইন কন্টেন্ট */
.hm-dash-main-content { 
    flex: 1 1 0 !important; 
    min-width: 0 !important; 
    background: #ffffff !important; 
    border: 1px solid #e2e8f0 !important; 
    border-radius: 12px !important; 
    padding: 40px !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; 
    box-sizing: border-box !important; 
    min-height: 500px !important; 
}

.hm-section-title { 
    margin: 0 0 30px 0 !important; 
    color: #0f172a !important; 
    font-size: 22px !important; 
    font-weight: 700 !important; 
    border-bottom: 2px solid #f8fafc !important; 
    padding-bottom: 15px !important; 
}

/* স্ট্যাটস গ্রিড */
.hm-stats-grid { display: flex !important; flex-wrap: wrap !important; gap: 20px !important; }
.hm-stat-card { flex: 1 1 180px !important; background: #ffffff !important; border: 1px solid #e2e8f0 !important; border-top: 3px solid #0f766e !important; padding: 25px 20px !important; border-radius: 10px !important; text-align: center !important; transition: 0.3s !important; box-shadow: 0 2px 8px rgba(0,0,0,0.02) !important; }
.hm-stat-card:hover { transform: translateY(-3px) !important; box-shadow: 0 8px 15px rgba(0,0,0,0.05) !important; }
.hm-stat-title { color: #64748b !important; font-size: 14px !important; font-weight: 600 !important; margin-bottom: 12px !important; }
.hm-stat-value { color: #0f172a !important; font-size: 38px !important; font-weight: 800 !important; line-height: 1 !important; }

/* কোর্স লিস্ট */
.hm-course-item { display: flex !important; flex-wrap: wrap !important; justify-content: space-between !important; align-items: center !important; padding: 20px !important; background: #f8fafc !important; border: 1px solid #e2e8f0 !important; border-radius: 10px !important; margin-bottom: 15px !important; transition: 0.2s !important; gap: 15px !important; }
.hm-course-item:hover { border-color: #cbd5e1 !important; background: #ffffff !important; box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important; }
.hm-course-item h4 { margin: 0 !important; color: #1e293b !important; font-size: 16px !important; font-weight: 600 !important; flex: 1 1 50% !important; line-height: 1.4 !important; }

/* বাটন ও টেবিল */
.hm-btn-primary, .hm-btn-submit { background: #0f766e !important; color: #fff !important; padding: 12px 24px !important; border-radius: 8px !important; text-decoration: none !important; font-weight: 600 !important; font-size: 14px !important; transition: 0.2s !important; border: none !important; cursor: pointer !important; display: inline-block !important; text-align: center !important; }
.hm-btn-primary:hover, .hm-btn-submit:hover { background: #0d9488 !important; box-shadow: 0 4px 10px rgba(15,118,110,0.2) !important; transform: translateY(-2px) !important; }
.hm-btn-secondary { background: #f1f5f9 !important; color: #475569 !important; padding: 8px 16px !important; border-radius: 6px !important; text-decoration: none !important; font-weight: 600 !important; font-size: 13px !important; transition: 0.2s !important; display: inline-block !important; border: 1px solid transparent !important; }
.hm-btn-secondary:hover { background: #e2e8f0 !important; color: #0f172a !important; border-color: #cbd5e1 !important; }

.hm-table-responsive { width: 100% !important; overflow-x: auto !important; border: 1px solid #e2e8f0 !important; border-radius: 10px !important; }
.hm-order-table { width: 100% !important; border-collapse: collapse !important; min-width: 550px !important; }
.hm-order-table th { background: #f8fafc !important; color: #475569 !important; font-size: 14px !important; font-weight: 600 !important; padding: 16px 20px !important; text-align: left !important; border-bottom: 1px solid #e2e8f0 !important; }
.hm-order-table td { padding: 16px 20px !important; color: #334155 !important; font-size: 15px !important; border-bottom: 1px solid #e2e8f0 !important; vertical-align: middle !important; }
.hm-order-table tr:last-child td { border-bottom: none !important; }
.hm-order-status { padding: 6px 12px !important; border-radius: 20px !important; font-size: 12px !important; font-weight: 600 !important; display: inline-block !important; }
.status-completed { background: #dcfce7 !important; color: #166534 !important; }
.status-processing { background: #fef9c3 !important; color: #b45309 !important; }

/* এম্পটি স্টেট */
.hm-empty-state { text-align: center !important; padding: 50px 20px !important; background: #f8fafc !important; border: 1px dashed #cbd5e1 !important; border-radius: 10px !important; color: #64748b !important; font-size: 15px !important; }
.hm-empty-state a { color: #0f766e !important; font-weight: 600 !important; text-decoration: none !important; }

/* সেটিংস ফর্ম */
#hm-profile-update-form { display: block !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
#hm-profile-update-form .hm-form-row { display: flex !important; flex-wrap: wrap !important; gap: 20px !important; margin-bottom: 20px !important; width: 100% !important; }
#hm-profile-update-form .hm-form-col { flex: 1 1 200px !important; width: 100% !important; margin: 0 !important; padding: 0 !important; }
label.hm-input-label { display: block !important; width: 100% !important; text-align: left !important; color: #475569 !important; font-size: 14px !important; font-weight: 600 !important; margin: 0 0 8px 0 !important; padding: 0 !important; }
input.hm-auth-input { 
    display: block !important; 
    width: 100% !important; 
    max-width: 100% !important; 
    min-height: 48px !important; /* থিমের চ্যাপ্টা হওয়া ঠেকাতে */
    height: auto !important; 
    margin: 0 0 20px 0 !important; 
    padding: 12px 18px !important; 
    background: #ffffff !important; 
    border: 1px solid #cbd5e1 !important; 
    border-radius: 8px !important; 
    font-size: 15px !important; 
    color: #1e293b !important; 
    box-sizing: border-box !important; 
    outline: none !important; 
    transition: 0.2s !important; 
    line-height: normal !important; /* লেখার এলাইনমেন্ট ঠিক করতে */
}
input.hm-auth-input:focus { border-color: #0f766e !important; box-shadow: 0 0 0 3px rgba(15,118,110,0.1) !important; }

/* রেস্পন্সিভ (মোবাইল ও সরু স্ক্রিন) */
@media (max-width: 991px) {
    .hm-dashboard-wrapper { flex-direction: column !important; }
    .hm-dash-sidebar { flex: 1 1 100% !important; max-width: 100% !important; width: 100% !important; position: static !important; }
    .hm-dash-main-content { flex: 1 1 100% !important; width: 100% !important; padding: 25px !important; }
}