/**
 * Mahasarav Design Replica Styles
 * - Auth Modal
 * - Header User Profile Dropdown Pill
 * - Student Dashboard & Tabs
 */

/* ==========================================================
   1. AUTH MODAL (Mahasarav Style)
   ========================================================== */
.majhi-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    box-sizing: border-box;
}

.majhi-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.mahasarav-card {
    background: #ffffff;
    width: 100%;
    max-width: 440px;
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.05);
    padding: 24px 28px;
    box-sizing: border-box;
    transform: translateY(12px) scale(0.97);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    max-height: 92vh;
    overflow-y: auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.majhi-modal-backdrop.is-open .mahasarav-card {
    transform: translateY(0) scale(1);
}

/* Modal Header */
.mahasarav-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 18px;
}

.mahasarav-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mahasarav-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mahasarav-header-titles h3 {
    margin: 0;
    font-size: 19px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.mahasarav-header-titles p {
    margin: 2px 0 0;
    font-size: 12.5px;
    color: #64748b;
}

.majhi-modal-close {
    background: transparent;
    border: none;
    font-size: 18px;
    color: #94a3b8;
    cursor: pointer;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.majhi-modal-close:hover {
    background: #f1f5f9;
    color: #0f172a;
}

/* Pill Tabs */
.mahasarav-pill-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    margin-bottom: 20px;
}

.mahasarav-tab-btn {
    border: none;
    background: transparent;
    padding: 9px 12px;
    border-radius: 9px;
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    text-align: center;
}

.mahasarav-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

/* Google OAuth Button */
.mahasarav-btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    background: #ffffff;
    color: #1e293b;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-sizing: border-box;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.mahasarav-btn-google:hover {
    border-color: #3b82f6;
    background: #f8fafc;
    color: #1d4ed8;
}

.mahasarav-subnote {
    font-size: 11.5px;
    color: #64748b;
    text-align: center;
    margin-top: 6px;
    margin-bottom: 14px;
    font-weight: 500;
}

/* Divider */
.mahasarav-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #94a3b8;
    font-size: 12px;
    margin: 14px 0 16px;
}

.mahasarav-divider::before,
.mahasarav-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e2e8f0;
}

.mahasarav-divider span {
    padding: 0 10px;
}

/* Form Fields */
.mahasarav-field {
    margin-bottom: 14px;
    text-align: left;
}

.mahasarav-field label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 5px;
}

.mahasarav-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.mahasarav-label-row label {
    margin-bottom: 0;
}

.mahasarav-link {
    font-size: 12px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.mahasarav-link:hover {
    text-decoration: underline;
}

.mahasarav-input {
    width: 100%;
    box-sizing: border-box;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 13.5px;
    color: #0f172a;
    font-family: inherit;
    transition: all 0.2s;
}

.mahasarav-input:focus {
    outline: none;
    background: #ffffff;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.mahasarav-grid-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.mahasarav-pass-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.mahasarav-pass-wrap .mahasarav-input {
    padding-right: 55px;
}

.mahasarav-toggle-btn {
    position: absolute;
    right: 8px;
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 6px;
    font-family: inherit;
}

.mahasarav-toggle-btn:hover {
    color: #0f172a;
}

/* Submit Buttons */
.mahasarav-btn-submit {
    width: 100%;
    border: none;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    margin-top: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
}

.mahasarav-btn-submit.login-blue {
    background: #2563eb;
}

.mahasarav-btn-submit.login-blue:hover {
    background: #1d4ed8;
}

.mahasarav-btn-submit.signup-green {
    background: #059669;
}

.mahasarav-btn-submit.signup-green:hover {
    background: #047857;
}

.mahasarav-btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Modal Footer */
.mahasarav-modal-foot {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
    text-align: center;
    font-size: 12px;
    color: #64748b;
}

.mahasarav-terms-link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.mahasarav-terms-link:hover {
    text-decoration: underline;
}

/* Tab display toggle */
.majhi-tab-pane {
    display: none;
}

.majhi-tab-pane.active {
    display: block;
}

.majhi-field-error {
    display: block;
    font-size: 11.5px;
    color: #dc2626;
    margin-top: 3px;
}

.majhi-form-general-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    margin-bottom: 12px;
    text-align: center;
}

/* ==========================================================
   2. HEADER USER BAR & DROPDOWN (Mahasarav Style)
   ========================================================== */
.mahasarav-header-login-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 7px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 13.5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
}

.mahasarav-header-login-btn:hover {
    background: #1d4ed8;
}

.mahasarav-user-dropdown-wrap {
    position: relative;
    display: inline-block;
}

.mahasarav-user-pill-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1.5px solid #e2e8f0;
    border-radius: 50px;
    padding: 4px 12px 4px 5px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.mahasarav-user-pill-btn:hover {
    border-color: #2563eb;
    background: #f8fafc;
}

.mahasarav-pill-avatar-letter {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.mahasarav-pill-avatar-img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.mahasarav-pill-name {
    font-size: 13.5px;
    font-weight: 700;
    color: #1e293b;
}

.mahasarav-pill-chevron {
    color: #64748b;
    transition: transform 0.2s;
}

.mahasarav-user-dropdown-wrap.is-open .mahasarav-pill-chevron {
    transform: rotate(180deg);
}

/* Floating Dropdown Card */
.mahasarav-dropdown-card {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 220px;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.12), 0 8px 10px -6px rgba(0, 0, 0, 0.08);
    z-index: 99999;
    overflow: hidden;
    animation: mahasaravFadeIn 0.15s ease-out;
}

@keyframes mahasaravFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

.mahasarav-dropdown-head {
    padding: 12px 16px;
    border-bottom: 1px solid #f1f5f9;
    background: #fafafa;
}

.mahasarav-dropdown-user-name {
    display: block;
    font-size: 13.5px;
    color: #0f172a;
    font-weight: 700;
}

.mahasarav-dropdown-user-email {
    display: block;
    font-size: 11.5px;
    color: #64748b;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mahasarav-dropdown-body {
    padding: 6px 0;
}

.mahasarav-drop-item {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    color: #334155;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.15s;
}

.mahasarav-drop-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.mahasarav-drop-item.active-green {
    color: #059669;
    font-weight: 700;
    background: #ecfdf5;
}

.mahasarav-drop-item.active-blue {
    color: #2563eb;
    font-weight: 700;
    background: #eff6ff;
}

.mahasarav-dropdown-foot {
    border-top: 1px solid #f1f5f9;
    padding: 6px 0;
    background: #ffffff;
}

.mahasarav-drop-logout {
    display: flex;
    align-items: center;
    padding: 9px 16px;
    color: #dc2626;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: background 0.15s;
}

.mahasarav-drop-logout:hover {
    background: #fef2f2;
}

/* ==========================================================
   3. STUDENT DASHBOARD (Mahasarav Style Replica)
   ========================================================== */
.mahasarav-dash-container {
    max-width: 1180px;
    margin: 28px auto 60px;
    padding: 0 16px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    box-sizing: border-box;
}

/* Breadcrumbs (Screenshots 1, 3, 4) */
.mahasarav-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12.5px;
    color: #64748b;
    margin-bottom: 14px;
}

.bc-link {
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.15s;
}

.bc-link:hover {
    color: #0f172a;
    text-decoration: underline;
}

.bc-sep {
    color: #94a3b8;
    font-size: 12px;
}

.bc-current {
    color: #0f172a;
    font-weight: 600;
}

.mahasarav-back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13.5px;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    margin-bottom: 14px;
    transition: color 0.15s;
}

.mahasarav-back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Page Heading Row */
.mahasarav-page-heading-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
}

.mahasarav-page-heading h3 {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.3px;
}

.mahasarav-page-heading p {
    margin: 4px 0 0;
    font-size: 13.5px;
    color: #64748b;
}

.mahasarav-top-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.mahasarav-top-action-btn.green-btn {
    background: #0d8a59;
    color: #ffffff;
}

.mahasarav-top-action-btn.green-btn:hover {
    background: #0b734a;
}

.mahasarav-top-action-btn.blue-btn {
    background: #2563eb;
    color: #ffffff;
}

.mahasarav-top-action-btn.blue-btn:hover {
    background: #1d4ed8;
}

/* Greeting Banner (Screenshot 2) */
.mahasarav-greeting-banner {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.mahasarav-greeting-text h2 {
    margin: 0;
    font-size: 23px;
    font-weight: 800;
    color: #0f172a;
}

.mahasarav-greeting-text p {
    margin: 5px 0 0;
    font-size: 13.5px;
    color: #64748b;
}

.mahasarav-greeting-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.mahasarav-pill-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 15px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.15s;
}

.mahasarav-pill-link.rose {
    background: #fff1f2;
    border: 1px solid #fecdd3;
    color: #e11d48;
}

.mahasarav-pill-link.rose:hover {
    background: #ffe4e6;
}

.mahasarav-pill-link.green {
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    color: #059669;
}

.mahasarav-pill-link.green:hover {
    background: #d1fae5;
}

.mahasarav-pill-link.blue {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #2563eb;
}

.mahasarav-pill-link.blue:hover {
    background: #dbeafe;
}

/* 4 KPI Cards (Screenshot 2) */
.mahasarav-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.mahasarav-kpi-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.kpi-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.kpi-label {
    font-size: 13.5px;
    font-weight: 600;
    color: #64748b;
}

.kpi-icon-wrap {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
}

.kpi-icon-wrap.purple {
    background: #f5f3ff;
    color: #7c3aed;
}

.kpi-icon-wrap.teal {
    background: #f0fdfa;
    color: #0d9488;
}

.kpi-icon-wrap.rose {
    background: #fff1f2;
    color: #e11d48;
}

.kpi-val {
    font-size: 28px;
    font-weight: 800;
    color: #0f172a;
}

/* Sub-section with vertical accent bar */
.mahasarav-sub-section {
    margin-top: 24px;
}

.mahasarav-sub-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}

.blue-accent-bar {
    width: 4px;
    height: 18px;
    background: #2563eb;
    border-radius: 2px;
}

.mahasarav-sub-title h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

/* Sub-tabs / Filters (Screenshot 1: Free Tests) */
.mahasarav-free-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.free-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    transition: all 0.2s;
}

.free-tab.active {
    background: #0d8a59;
    border-color: #0d8a59;
    color: #ffffff;
}

.free-tab .tab-badge {
    background: #e2e8f0;
    color: #334155;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11.5px;
    font-weight: 800;
}

.free-tab.active .tab-badge {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* Attempt Card (Screenshot 1) */
.mahasarav-attempts-cards-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.mahasarav-attempt-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 18px 22px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    transition: border-color 0.2s;
}

.mahasarav-attempt-card:hover {
    border-color: #cbd5e1;
}

.attempt-card-tags {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.tag-pill {
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
}

.tag-pill.tag-green {
    background: #ecfdf5;
    color: #059669;
}

.tag-pill.tag-blue {
    background: #eff6ff;
    color: #2563eb;
}

.tag-date {
    font-size: 12.5px;
    color: #94a3b8;
    margin-left: auto;
}

.attempt-card-title {
    margin: 0 0 14px;
    font-size: 16.5px;
    font-weight: 800;
    color: #0f172a;
}

.attempt-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid #f8fafc;
    padding-top: 14px;
}

.attempt-card-score-pill {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 13px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
}

.attempt-card-score-pill strong {
    font-size: 14px;
}

.attempt-card-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.mahasarav-action-pill {
    padding: 7px 14px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.mahasarav-action-pill.gray-btn {
    background: #f8fafc;
    color: #334155;
    border: 1px solid #e2e8f0;
}

.mahasarav-action-pill.gray-btn:hover {
    background: #f1f5f9;
}

.mahasarav-action-icon-btn.green-bolt {
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: #0d8a59;
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    text-decoration: none;
    transition: background 0.2s;
}

.mahasarav-action-icon-btn.green-bolt:hover {
    background: #0b734a;
}

/* Empty States (Screenshots 2, 3, 4) */
.mahasarav-empty-state {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 48px 20px;
    text-align: center;
    margin: 16px 0;
}

.mahasarav-empty-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 14px;
}

.mahasarav-empty-state h4 {
    margin: 0 0 6px;
    font-size: 18px;
    color: #0f172a;
    font-weight: 800;
}

.mahasarav-empty-state p {
    margin: 0 0 18px;
    font-size: 13.5px;
    color: #64748b;
}

.mahasarav-primary-btn {
    background: #2563eb;
    color: #ffffff;
    padding: 10px 22px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    border: none;
    cursor: pointer;
    transition: background 0.2s;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.15);
}

.mahasarav-primary-btn:hover {
    background: #1d4ed8;
}

.mahasarav-primary-btn.orange-btn {
    background: #ea580c;
    box-shadow: 0 2px 4px rgba(234, 88, 12, 0.15);
}

.mahasarav-primary-btn.orange-btn:hover {
    background: #c2410c;
}

.mahasarav-primary-btn.blue-pill-btn {
    background: #2563eb;
}

/* Support Tabs & Form (Screenshot 5) */
.mahasarav-support-subtabs {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.support-tab {
    padding: 9px 18px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    border: 1.5px solid #e2e8f0;
    background: #ffffff;
    color: #475569;
    cursor: pointer;
}

.support-tab.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

.mahasarav-support-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 20px;
    align-items: flex-start;
}

.mahasarav-support-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
}

.mahasarav-support-card h4 {
    margin: 0 0 6px;
    font-size: 18px;
    font-weight: 800;
    color: #0f172a;
}

.support-card-desc {
    font-size: 13px;
    color: #64748b;
    margin: 0 0 18px;
}

.support-cat-heading {
    display: block;
    font-size: 12.5px;
    font-weight: 700;
    color: #475569;
    margin-bottom: 8px;
}

.support-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.cat-pill-card {
    border: 1.5px solid #e2e8f0;
    padding: 12px 14px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    transition: all 0.2s;
}

.cat-pill-card input[type="radio"] {
    display: none;
}

.cat-pill-card.active,
.cat-pill-card:has(input[type="radio"]:checked) {
    border-color: #3b82f6;
    background: #eff6ff;
    color: #1d4ed8;
    font-weight: 700;
}

.cat-icon {
    font-size: 15px;
}

.cat-title {
    font-size: 12.5px;
    font-weight: 600;
}

.support-side-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
}

.support-side-box h4 {
    margin: 0 0 8px;
    font-size: 16px;
    color: #0f172a;
}

.support-side-box p {
    margin: 0 0 14px;
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

.mahasarav-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #10b981;
    color: #ffffff;
    font-weight: 700;
    font-size: 14px;
    padding: 11px;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.2s;
}

.mahasarav-whatsapp-btn:hover {
    background: #059669;
}

.support-rules-box {
    background: #0f172a;
    color: #cbd5e1;
    border-radius: 14px;
    padding: 18px 20px;
}

.support-rules-box h5 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
}

.support-rules-box ul {
    margin: 0;
    padding-left: 18px;
    font-size: 12.5px;
    line-height: 1.6;
}

/* Tables */
.mahasarav-section-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 22px;
}

.box-head-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.mahasarav-box-title {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    color: #0f172a;
}

.view-all-link {
    font-size: 13px;
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.mahasarav-table-responsive {
    overflow-x: auto;
}

.mahasarav-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13.5px;
}

.mahasarav-table th {
    background: #f8fafc;
    padding: 10px 14px;
    font-weight: 700;
    color: #475569;
    border-bottom: 1px solid #e2e8f0;
}

.mahasarav-table td {
    padding: 12px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
}

.pct-badge {
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 12px;
}

.pct-badge.good { background: #dcfce7; color: #16a34a; }
.pct-badge.avg { background: #fef3c7; color: #d97706; }
.pct-badge.low { background: #fee2e2; color: #dc2626; }

.mode-badge {
    background: #e2e8f0;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 700;
}

.table-view-btn {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.table-view-btn:hover {
    text-decoration: underline;
}


/* Toast */
.majhi-toast {
    position: fixed;
    bottom: 24px;
    right: 24px;
    background: #1e293b;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 10px;
    font-size: 13.5px;
    z-index: 999999;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.2);
}

.majhi-toast.show {
    opacity: 1;
    transform: translateY(0);
}

.majhi-toast.success { background: #15803d; }
.majhi-toast.error { background: #b91c1c; }

@media (max-width: 768px) {
    .mahasarav-support-grid {
        grid-template-columns: 1fr;
    }
    .mahasarav-grid-2col {
        grid-template-columns: 1fr;
    }
    .support-cat-grid {
        grid-template-columns: 1fr;
    }
}
