/* ========================================================
   NextEdu Category Portal & Examination Hub Stylesheet
   Version: 2.0.0
   Responsive for 320px Mobile to 4K Displays
   Full Theme Sync (Light & Dark)
   ======================================================== */

/* --- 1. Dashboard Category Tiles Grid --- */
.exam-categories-section {
    background: var(--bg-card, var(--surface, #ffffff));
    border: 1px solid var(--border-subtle, var(--border, #e2e8f0));
    border-radius: var(--radius-xl, 24px);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-card, 0 4px 20px rgba(0, 0, 0, 0.04));
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .exam-categories-section {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.25);
}

.exam-categories-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .exam-categories-header {
    border-color: #1e293b;
}

.exam-categories-title-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1 1 240px;
    min-width: 0;
    max-width: 100%;
}

.exam-categories-title-group > div {
    flex: 1;
    min-width: 0;
}

.exam-cat-icon-badge {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
    flex-shrink: 0;
}

.exam-categories-heading,
.exam-categories-title {
    font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary, var(--text, #0f172a));
    margin: 0;
    letter-spacing: -0.3px;
    word-break: break-word;
    overflow-wrap: break-word;
}

[data-theme="dark"] .exam-categories-heading,
[data-theme="dark"] .exam-categories-title {
    color: #f8fafc;
}

.exam-categories-sub {
    font-size: 0.85rem;
    color: var(--text-muted, #64748b);
    margin: 2px 0 0;
    font-weight: 500;
    word-break: break-word;
    overflow-wrap: break-word;
}

.exam-cat-badge {
    display: inline-flex;
    align-items: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 3px 8px;
    border-radius: 6px;
    margin-bottom: 4px;
    width: fit-content;
}

.exam-cat-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-pill-counter {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.76rem;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--bg-input, #f1f5f9);
    color: var(--text-muted, #64748b);
    border: 1px solid var(--border-subtle, #e2e8f0);
    white-space: nowrap;
}

[data-theme="dark"] .cat-pill-counter {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.exam-all-pass-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: rgba(79, 70, 229, 0.08);
    border: 1px solid rgba(79, 70, 229, 0.25);
    border-radius: 999px;
    color: var(--primary, #4f46e5);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.exam-all-pass-link:hover {
    background: var(--primary, #4f46e5);
    color: #ffffff;
    transform: translateY(-1.5px);
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

/* Category Tiles Grid */
.exam-categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 14px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Individual Category Tile */
.exam-category-tile {
    background: var(--bg-input, var(--surface-soft, #f8fafc));
    border: 1.5px solid var(--border-subtle, var(--border, #e2e8f0));
    border-radius: 18px;
    padding: 16px 18px;
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    position: relative;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

[data-theme="dark"] .exam-category-tile {
    background: #1e293b;
    border-color: #334155;
}

.exam-category-tile:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--primary, #4f46e5);
}

[data-theme="dark"] .exam-category-tile:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
    border-color: #818cf8;
}

/* Category Icons */
.cat-tile-icon-wrap {
    width: 50px;
    height: 50px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.exam-category-tile:hover .cat-tile-icon-wrap {
    transform: scale(1.1);
}

.cat-tile-icon-wrap.cat-teaching { background: linear-gradient(135deg, #f59e0b, #d97706); color: #ffffff; box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35); }
.cat-tile-icon-wrap.cat-defense { background: linear-gradient(135deg, #3b82f6, #1d4ed8); color: #ffffff; box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35); }
.cat-tile-icon-wrap.cat-civil { background: linear-gradient(135deg, #10b981, #047857); color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
.cat-tile-icon-wrap.cat-ssc { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #ffffff; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35); }
.cat-tile-icon-wrap.cat-railway { background: linear-gradient(135deg, #ef4444, #b91c1c); color: #ffffff; box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35); }
.cat-tile-icon-wrap.cat-medical { background: linear-gradient(135deg, #06b6d4, #0e7490); color: #ffffff; box-shadow: 0 4px 14px rgba(6, 182, 212, 0.35); }
.cat-tile-icon-wrap.cat-engineering { background: linear-gradient(135deg, #f97316, #c2410c); color: #ffffff; box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35); }

/* Academic Board Icons */
.cat-tile-icon-wrap.cat-cbse { background: linear-gradient(135deg, #0284c7, #0369a1); color: #ffffff; box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35); }
.cat-tile-icon-wrap.cat-rbse { background: linear-gradient(135deg, #ea580c, #c2410c); color: #ffffff; box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35); }
.cat-tile-icon-wrap.cat-upboard { background: linear-gradient(135deg, #10b981, #047857); color: #ffffff; box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35); }
.cat-tile-icon-wrap.cat-bihar { background: linear-gradient(135deg, #ec4899, #be185d); color: #ffffff; box-shadow: 0 4px 14px rgba(236, 72, 153, 0.35); }
.cat-tile-icon-wrap.cat-mpboard { background: linear-gradient(135deg, #8b5cf6, #6d28d9); color: #ffffff; box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35); }
.cat-tile-icon-wrap.cat-icse { background: linear-gradient(135deg, #6366f1, #4338ca); color: #ffffff; box-shadow: 0 4px 14px rgba(99, 102, 241, 0.35); }

/* Tile Content */
.cat-tile-content {
    flex: 1;
    min-width: 0;
}

.cat-tile-name {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}

[data-theme="dark"] .cat-tile-name {
    color: #f8fafc;
}

.cat-tile-exams {
    display: block;
    font-size: 0.78rem;
    color: var(--text-muted, #64748b);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 6px;
    font-weight: 500;
}

.cat-tile-price-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
}

[data-theme="dark"] .cat-tile-price-tag {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.tag-price { font-weight: 800; }
.tag-divider { opacity: 0.5; }
.tag-lt { color: #f59e0b; }

.cat-tile-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted, #64748b);
    font-size: 1.1rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

[data-theme="dark"] .cat-tile-arrow {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
}

.exam-category-tile:hover .cat-tile-arrow {
    background: var(--primary, #4f46e5);
    color: #ffffff;
    transform: translateX(3px);
}

/* ========================================================
   --- 2. DEDICATED CATEGORY PORTAL PAGE STYLES ---
   (Used by teaching.html, defense.html, ssc.html, etc.)
   ======================================================== */

.category-portal-body {
    min-height: 100vh;
    background: var(--bg-base, var(--bg, #f8fafc));
    color: var(--text-primary, var(--text, #0f172a));
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    margin: 0;
    padding: 0;
}

[data-theme="dark"] .category-portal-body {
    background: #030712;
    color: #f9fafb;
}

/* Dedicated Top Navigation */
.cat-page-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border-subtle, #e2e8f0);
    padding: 12px 24px;
}

[data-theme="dark"] .cat-page-nav {
    background: rgba(15, 23, 42, 0.88);
    border-color: #1e293b;
}

.cat-nav-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cat-nav-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.btn-nav-back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 14px;
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-primary, #0f172a);
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="dark"] .btn-nav-back {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.btn-nav-back:hover {
    transform: translateX(-2px);
    border-color: var(--primary, #4f46e5);
    color: var(--primary, #4f46e5);
}

.cat-brand-logo-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.cat-brand-logo-wrap img {
    width: 34px;
    height: 34px;
    border-radius: 10px;
}

.cat-brand-title {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -0.2px;
}

.cat-nav-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.cat-theme-btn {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.2s;
}

[data-theme="dark"] .cat-theme-btn {
    background: #1e293b;
    border-color: #334155;
    color: #fbbf24;
}

/* Category Hero Banner */
.cat-hero-banner {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.cat-hero-card {
    border-radius: 26px;
    padding: 32px 30px;
    position: relative;
    overflow: hidden;
    color: #ffffff;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.12);
}

.cat-hero-card.theme-teaching { background: linear-gradient(135deg, #b45309 0%, #d97706 40%, #f59e0b 100%); }
.cat-hero-card.theme-defense { background: linear-gradient(135deg, #1e3a8a 0%, #1d4ed8 40%, #3b82f6 100%); }
.cat-hero-card.theme-civil { background: linear-gradient(135deg, #064e3b 0%, #047857 40%, #10b981 100%); }
.cat-hero-card.theme-ssc { background: linear-gradient(135deg, #4c1d95 0%, #6d28d9 40%, #8b5cf6 100%); }
.cat-hero-card.theme-railway { background: linear-gradient(135deg, #7f1d1d 0%, #b91c1c 40%, #ef4444 100%); }
.cat-hero-card.theme-medical { background: linear-gradient(135deg, #164e63 0%, #0e7490 40%, #06b6d4 100%); }
.cat-hero-card.theme-engineering { background: linear-gradient(135deg, #7c2d12 0%, #c2410c 40%, #f97316 100%); }

/* Board Theme Cards */
.cat-hero-card.theme-cbse { background: linear-gradient(135deg, #075985 0%, #0284c7 40%, #38bdf8 100%); }
.cat-hero-card.theme-rbse { background: linear-gradient(135deg, #9a3412 0%, #ea580c 40%, #f59e0b 100%); }
.cat-hero-card.theme-upboard { background: linear-gradient(135deg, #065f46 0%, #059669 40%, #10b981 100%); }
.cat-hero-card.theme-bihar { background: linear-gradient(135deg, #831843 0%, #db2777 40%, #f472b6 100%); }
.cat-hero-card.theme-mpboard { background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 40%, #a78bfa 100%); }
.cat-hero-card.theme-icse { background: linear-gradient(135deg, #3730a3 0%, #4f46e5 40%, #818cf8 100%); }

.cat-hero-content {
    position: relative;
    z-index: 2;
    max-width: 780px;
}

.cat-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
    backdrop-filter: blur(8px);
}

.cat-hero-title {
    font-size: 2.1rem;
    font-weight: 800;
    margin: 0 0 8px;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.cat-hero-desc {
    font-size: 0.98rem;
    opacity: 0.95;
    margin: 0 0 18px;
    line-height: 1.5;
}

.cat-hero-pass-bar {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
}

.cat-pass-info-group {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cat-pass-price-badge {
    font-size: 1.25rem;
    font-weight: 800;
    color: #fef08a;
}

.cat-pass-validity-chips {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 700;
}

.cat-pass-chip {
    background: rgba(255, 255, 255, 0.15);
    padding: 3px 9px;
    border-radius: 8px;
}

.cat-pass-chip.highlight {
    background: #10b981;
    color: #ffffff;
}

.btn-cat-unlock-pass {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 20px;
    background: #ffffff;
    color: #0f172a;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.btn-cat-unlock-pass:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.3);
}

/* Category Filter Bar */
.cat-filter-section {
    max-width: 1280px;
    margin: 24px auto 0;
    padding: 0 20px;
}

.cat-filter-wrapper {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 18px;
    padding: 14px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 14px;
}

[data-theme="dark"] .cat-filter-wrapper {
    background: #0f172a;
    border-color: #1e293b;
}

.cat-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 12px;
    padding: 0 14px;
    height: 42px;
    flex: 1;
    min-width: 240px;
}

[data-theme="dark"] .cat-search-box {
    background: #1e293b;
    border-color: #334155;
}

.cat-search-box input {
    border: none;
    background: transparent;
    color: var(--text-primary, #0f172a);
    font-size: 0.9rem;
    font-weight: 600;
    width: 100%;
    outline: none;
}

[data-theme="dark"] .cat-search-box input {
    color: #f8fafc;
}

.cat-filter-pills {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.cat-pill-btn {
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted, #64748b);
    cursor: pointer;
    transition: all 0.15s ease;
}

[data-theme="dark"] .cat-pill-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.cat-pill-btn.active {
    background: var(--primary, #4f46e5);
    border-color: var(--primary, #4f46e5);
    color: #ffffff;
}

/* Exam Cards Grid */
.cat-exams-grid-section {
    max-width: 1280px;
    margin: 24px auto 60px;
    padding: 0 20px;
}

.cat-exams-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 18px;
}

/* ========================================================
   ✨ MODERN BREATHABLE EXAM CARD DESIGN (Spacious & Clean)
   ======================================================== */
.single-exam-card {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 22px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 20px;
    transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
    position: relative;
    overflow: hidden;
}

[data-theme="dark"] .single-exam-card {
    background: #0f172a;
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

.single-exam-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    border-color: rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .single-exam-card:hover {
    border-color: rgba(129, 140, 248, 0.45);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
}

/* Card Header Zone */
.single-exam-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 0;
}

.single-exam-icon-box {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.45rem;
    flex-shrink: 0;
    transition: transform 0.25s ease;
}

.single-exam-card:hover .single-exam-icon-box {
    transform: scale(1.08) rotate(3deg);
}

.single-exam-info {
    flex: 1;
    min-width: 0;
}

.single-exam-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

[data-theme="dark"] .single-exam-title {
    color: #f8fafc;
}

.single-exam-sub {
    font-size: 0.84rem;
    color: var(--text-muted, #64748b);
    margin: 5px 0 0 0;
    line-height: 1.45;
}

[data-theme="dark"] .single-exam-sub {
    color: #94a3b8;
}

/* 2-Tier Modern Action Layout */
.exam-card-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}

/* Row 1: Primary Action Engines (Mock Test + Solved PYQ) */
.exam-primary-actions-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.exam-btn-primary-mock {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    border: none;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.3);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.exam-btn-primary-mock:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(79, 70, 229, 0.45);
    filter: brightness(1.05);
}

.exam-btn-primary-pyq {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #ef4444 !important;
    font-size: 0.88rem;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.exam-btn-primary-pyq:hover {
    background: #ef4444;
    color: #ffffff !important;
    border-color: #ef4444;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3);
}

.exam-btn-primary-pyq .pyq-price-chip {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    transition: all 0.2s ease;
}

.exam-btn-primary-pyq:hover .pyq-price-chip {
    background: #ffffff;
    color: #ef4444;
}

/* Row 2: Secondary Tool Pills (Quiz, Notes, Syllabus, Strategy) */
.exam-secondary-actions-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.exam-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 8px;
    border-radius: 12px;
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-secondary, #334155);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

[data-theme="dark"] .exam-btn-secondary {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.08);
    color: #cbd5e1;
}

.exam-btn-secondary:hover {
    transform: translateY(-2px);
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

[data-theme="dark"] .exam-btn-secondary:hover {
    background: #1e293b;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.exam-btn-secondary.btn-quiz:hover {
    border-color: #10b981;
    color: #10b981;
}

.exam-btn-secondary.btn-notes:hover {
    border-color: #0284c7;
    color: #0284c7;
}

.exam-btn-secondary.btn-syllabus:hover {
    border-color: #f59e0b;
    color: #f59e0b;
}

.exam-btn-secondary.btn-strategy:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
}

@media (max-width: 640px) {
    .exam-secondary-actions-row {
        grid-template-columns: repeat(2, 1fr);
    }
    .exam-primary-actions-row {
        grid-template-columns: 1fr;
    }
}

.single-exam-badge-row {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.single-exam-tag {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--primary, #4f46e5);
}

.single-exam-tag.pyq-tag {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.single-exam-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    margin: 0;
    line-height: 1.35;
}

[data-theme="dark"] .single-exam-title {
    color: #f8fafc;
}

.single-exam-icon,
.single-exam-icon-box {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    flex-shrink: 0;
}

.single-exam-sub {
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    margin: 4px 0 0 0;
    line-height: 1.4;
}

.single-exam-meta-pills {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

[data-theme="dark"] .meta-pill {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.meta-pill i {
    color: var(--primary, #4f46e5);
}

.single-exam-features {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 10px 0 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
}

[data-theme="dark"] .single-exam-features {
    background: rgba(30, 41, 59, 0.5);
    border-color: #1e293b;
}

.exam-feature-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary, #334155);
}

[data-theme="dark"] .exam-feature-row {
    color: #cbd5e1;
}

.exam-feature-row i {
    color: #10b981;
    font-size: 0.82rem;
    flex-shrink: 0;
}

/* Feature Metrics List */
.single-exam-metrics {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 12px 0;
    border-top: 1px dashed var(--border-subtle, #e2e8f0);
    border-bottom: 1px dashed var(--border-subtle, #e2e8f0);
    margin: 12px 0 16px;
}

[data-theme="dark"] .single-exam-metrics {
    border-color: #1e293b;
}

.metric-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted, #64748b);
}

.metric-item i {
    color: #10b981;
    font-size: 0.95rem;
}

/* Exam Card Actions */
.single-exam-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-exam-action {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-exam-action.primary {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.3);
}

.btn-exam-action.primary:hover {
    transform: translateY(-1.5px);
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

.btn-exam-action.secondary {
    background: var(--bg-input, #f1f5f9);
    border: 1px solid var(--border-subtle, #e2e8f0);
    color: var(--text-primary, #0f172a);
}

[data-theme="dark"] .btn-exam-action.secondary {
    background: #1e293b;
    border-color: #334155;
    color: #f8fafc;
}

.btn-exam-action.secondary:hover {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
    border-color: #f59e0b;
}

/* Multi-Action Grid in Exam Cards */
.exam-actions-multi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-subtle, #e2e8f0);
}

[data-theme="dark"] .exam-actions-multi-grid {
    border-color: #1e293b;
}

@media (max-width: 480px) {
    .exam-actions-multi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.exam-act-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--bg-input, #f8fafc);
    color: var(--text-primary, #0f172a);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
    white-space: nowrap;
}

[data-theme="dark"] .exam-act-pill {
    background: #1e293b;
    border-color: #334155;
    color: #f1f5f9;
}

.exam-act-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.exam-act-pill.mock-btn {
    background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
    border-color: transparent;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.28);
}

.exam-act-pill.mock-btn:hover {
    box-shadow: 0 6px 16px rgba(79, 70, 229, 0.45);
}

.exam-act-pill.pyq-btn {
    background: rgba(239, 68, 68, 0.08);
    border-color: rgba(239, 68, 68, 0.25);
    color: #ef4444;
}

.exam-act-pill.pyq-btn:hover {
    background: #ef4444;
    color: #ffffff;
    border-color: #ef4444;
}

.exam-act-pill .pill-price {
    background: #ef4444;
    color: #ffffff;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
}

.exam-act-pill.pyq-btn:hover .pill-price {
    background: #ffffff;
    color: #ef4444;
}

.exam-act-pill.quiz-btn:hover {
    border-color: #10b981;
    color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}

.exam-act-pill.notes-btn:hover {
    border-color: #0284c7;
    color: #0284c7;
    background: rgba(2, 132, 199, 0.08);
}

.exam-act-pill.syllabus-btn:hover {
    border-color: #f59e0b;
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.exam-act-pill.strategy-btn:hover {
    border-color: #8b5cf6;
    color: #8b5cf6;
    background: rgba(139, 92, 246, 0.08);
}

/* Modal Payment 2-Options Box */
.cat-modal-payment-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
}

.btn-pay-option {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-pay-option.wallet-opt {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.btn-pay-option.wallet-opt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
}

.btn-pay-option.razorpay-opt {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
}

.btn-pay-option.razorpay-opt:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

.modal-wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px dashed rgba(16, 185, 129, 0.3);
    border-radius: 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #10b981;
    margin-top: 10px;
}

/* Modal Pass Checkout Styles */
.cat-pass-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    z-index: 99999;
    animation: catModalFadeIn 0.25s ease-out;
}

@keyframes catModalFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.cat-pass-modal-backdrop.active {
    display: flex;
}

.cat-pass-modal-box {
    background: var(--bg-card, #ffffff);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 28px;
    max-width: 500px;
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 24px 22px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.35);
    position: relative;
    animation: catModalSlideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes catModalSlideUp {
    from { transform: translateY(20px) scale(0.97); opacity: 0; }
    to { transform: translateY(0) scale(1); opacity: 1; }
}

[data-theme="dark"] .cat-pass-modal-box {
    background: #0f172a;
    border-color: #1e293b;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* Modern Large Circular Close Button */
.cat-modal-close-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--border-subtle, #e2e8f0);
    background: var(--bg-input, #f1f5f9);
    color: var(--text-muted, #64748b);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 10;
}
.cat-modal-close-btn:hover {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.35);
    transform: rotate(90deg) scale(1.08);
}
[data-theme="dark"] .cat-modal-close-btn {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}

.cat-pass-tier-card {
    background: var(--bg-input, #f8fafc);
    border: 1.5px solid var(--border-subtle, #e2e8f0);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

[data-theme="dark"] .cat-pass-tier-card {
    background: #1e293b;
    border-color: #334155;
}

.cat-pass-tier-card.selected {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
    box-shadow: 0 0 0 1px #10b981;
}

/* Coupon Code Section */
.cat-modal-coupon-wrap {
    margin: 12px 0 10px;
}
.cat-modal-coupon-form {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-input, #f8fafc);
    border: 1.5px dashed var(--border-subtle, #cbd5e1);
    border-radius: 14px;
    padding: 10px 14px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}
[data-theme="dark"] .cat-modal-coupon-form {
    background: #1e293b;
    border-color: #475569;
}
.cat-modal-coupon-form:focus-within {
    border-color: #6366f1;
    background: rgba(99, 102, 241, 0.04);
}
.cat-modal-coupon-form input {
    flex: 1;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-primary, #0f172a);
    outline: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
[data-theme="dark"] .cat-modal-coupon-form input {
    color: #f8fafc;
}
.cat-modal-coupon-form input::placeholder {
    color: var(--text-muted, #94a3b8);
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}
.btn-apply-coupon {
    padding: 7px 16px;
    border-radius: 10px;
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}
.btn-apply-coupon:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}
.cat-coupon-status-pill {
    margin-top: 6px;
    font-size: 0.78rem;
    padding: 7px 12px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
}
.cat-coupon-status-pill.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.cat-coupon-status-pill.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Payment Method Switcher Tabs (Wallet: Tax-Free vs Razorpay: Tax-Included) */
.cat-pay-methods-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 12px;
}
.cat-pay-method-card {
    background: var(--bg-input, #f8fafc);
    border: 2px solid var(--border-subtle, #e2e8f0);
    border-radius: 14px;
    padding: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 4px;
    position: relative;
}
[data-theme="dark"] .cat-pay-method-card {
    background: #1e293b;
    border-color: #334155;
}
.cat-pay-method-card:hover {
    border-color: #94a3b8;
}
.cat-pay-method-card.selected.wallet-card {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.08);
}
.cat-pay-method-card.selected.razorpay-card {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.08);
}
.cat-pay-method-badge {
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    align-self: flex-start;
    margin-bottom: 2px;
    letter-spacing: 0.3px;
}
.cat-pay-method-badge.tax-free {
    background: #10b981;
    color: #fff;
}
.cat-pay-method-badge.tax-added {
    background: #3b82f6;
    color: #fff;
}
.cat-pay-method-title {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
    display: flex;
    align-items: center;
    gap: 6px;
}
[data-theme="dark"] .cat-pay-method-title {
    color: #f1f5f9;
}
.cat-pay-method-price {
    font-size: 1.15rem;
    font-weight: 900;
    color: var(--text-primary, #0f172a);
}
.cat-pay-method-card.selected.wallet-card .cat-pay-method-price {
    color: #10b981;
}
.cat-pay-method-card.selected.razorpay-card .cat-pay-method-price {
    color: #3b82f6;
}

/* Bill Summary Table */
.cat-bill-summary-box {
    background: var(--bg-input, #f8fafc);
    border: 1px solid var(--border-subtle, #e2e8f0);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 12px;
    font-size: 0.8rem;
    color: var(--text-muted, #64748b);
    display: flex;
    flex-direction: column;
    gap: 6px;
}
[data-theme="dark"] .cat-bill-summary-box {
    background: #1e293b;
    border-color: #334155;
    color: #94a3b8;
}
.cat-bill-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cat-bill-row.total-row {
    border-top: 1px dashed var(--border-subtle, #cbd5e1);
    padding-top: 6px;
    margin-top: 2px;
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-primary, #0f172a);
}
[data-theme="dark"] .cat-bill-row.total-row {
    border-top-color: #475569;
    color: #f8fafc;
}

/* Wallet Balance Bar */
.modal-wallet-balance-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    font-size: 0.8rem;
    font-weight: 700;
    margin-bottom: 12px;
}

/* Dynamic Action CTA Button */
.btn-cat-pay-action {
    width: 100%;
    height: 48px;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #fff;
    transition: all 0.2s ease;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}
.btn-cat-pay-action.wallet-btn {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35);
}
.btn-cat-pay-action.razorpay-btn {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.35);
}
.btn-cat-pay-action.insufficient-btn {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.35);
}
.btn-cat-pay-action:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
}

/* Responsive Breakpoints */
@media (max-width: 900px) {
    .exam-categories-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    }
}

@media (max-width: 768px) {
    .exam-categories-section {
        padding: 18px 14px;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .exam-categories-grid {
        grid-template-columns: 1fr;
        width: 100% !important;
    }
    .cat-hero-card {
        padding: 22px 18px;
    }
    .cat-hero-title {
        font-size: 1.6rem;
    }
    .cat-hero-pass-bar {
        flex-direction: column;
        align-items: stretch;
    }
    .btn-cat-unlock-pass {
        margin-left: 0;
        justify-content: center;
    }
    .cat-exams-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .exam-categories-section {
        padding: 16px 12px !important;
        border-radius: 18px !important;
        margin-bottom: 18px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
    .exam-categories-header {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 10px !important;
        margin-bottom: 14px !important;
        padding-bottom: 12px !important;
    }
    .exam-categories-title-group {
        width: 100% !important;
        min-width: 0 !important;
        gap: 10px !important;
    }
    .exam-cat-icon-badge {
        width: 38px !important;
        height: 38px !important;
        font-size: 1.15rem !important;
        border-radius: 12px !important;
    }
    .exam-categories-heading,
    .exam-categories-title {
        font-size: 1.05rem !important;
        line-height: 1.3 !important;
    }
    .exam-categories-sub {
        font-size: 0.76rem !important;
        line-height: 1.35 !important;
    }
    .exam-all-pass-link {
        width: 100% !important;
        justify-content: center !important;
        padding: 8px 12px !important;
        box-sizing: border-box !important;
    }
    .exam-cat-actions {
        width: 100% !important;
    }
    .cat-pill-counter {
        width: 100% !important;
        justify-content: center !important;
        box-sizing: border-box !important;
    }
    .exam-categories-grid {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
        width: 100% !important;
    }
    .exam-category-tile {
        padding: 12px 14px !important;
        gap: 10px !important;
        border-radius: 14px !important;
        width: 100% !important;
        min-width: 0 !important;
        box-sizing: border-box !important;
    }
    .cat-tile-icon-wrap {
        width: 42px !important;
        height: 42px !important;
        border-radius: 12px !important;
        font-size: 1.2rem !important;
        flex-shrink: 0 !important;
    }
    .cat-tile-content {
        min-width: 0 !important;
        flex: 1 !important;
        overflow: hidden;
    }
    .cat-tile-name {
        font-size: 0.96rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cat-tile-exams {
        font-size: 0.74rem !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .cat-tile-price-tag {
        font-size: 0.68rem !important;
        padding: 2px 6px !important;
    }
    .cat-tile-arrow {
        width: 28px !important;
        height: 28px !important;
        font-size: 0.75rem !important;
        flex-shrink: 0 !important;
    }
}

/* ========================================================
   🚀 "Lowest Price Ever" Deal Hub inside Hero Banner
   ======================================================== */
.hero-lowest-price-deal-hub {
    margin-top: 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 18px;
    padding: 14px 18px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
    gap: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

[data-theme="light"] .hero-lowest-price-deal-hub,
body:not([data-theme="dark"]) .hero-lowest-price-deal-hub {
    background: #ffffff !important;
    border: 1.5px solid rgba(245, 158, 11, 0.45) !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.12) !important;
}

.hero-deal-header-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-deal-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-deal-fire-orb {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(239, 68, 68, 0.4);
}

.hero-deal-headline {
    font-size: 0.95rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.2px;
}

[data-theme="light"] .hero-deal-headline,
body:not([data-theme="dark"]) .hero-deal-headline {
    color: #0f172a !important;
}

.hero-deal-badge-live {
    font-size: 0.7rem;
    font-weight: 800;
    color: #10b981;
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.35);
    padding: 3px 10px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-transform: uppercase;
}

.hero-deal-chips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
}

.hero-deal-chip {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s ease;
}

[data-theme="light"] .hero-deal-chip,
body:not([data-theme="dark"]) .hero-deal-chip {
    background: #f8fafc !important;
    border-color: #e2e8f0 !important;
}

.hero-deal-chip:hover {
    transform: translateY(-2px);
    border-color: rgba(245, 158, 11, 0.6);
    background: rgba(245, 158, 11, 0.08);
}

[data-theme="light"] .hero-deal-chip:hover,
body:not([data-theme="dark"]) .hero-deal-chip:hover {
    background: #fffbeb !important;
    border-color: #f59e0b !important;
}

.hero-chip-cat {
    font-size: 0.74rem;
    color: #94a3b8;
    font-weight: 700;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}

[data-theme="light"] .hero-chip-cat,
body:not([data-theme="dark"]) .hero-chip-cat {
    color: #64748b !important;
}

.hero-chip-price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.hero-chip-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #10b981;
}

.hero-chip-og {
    font-size: 0.8rem;
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 600;
}

[data-theme="light"] .hero-chip-og,
body:not([data-theme="dark"]) .hero-chip-og {
    color: #94a3b8 !important;
}

.hero-chip-tag {
    margin-left: auto;
    font-size: 0.7rem;
    font-weight: 800;
    color: #ffffff;
    background: linear-gradient(135deg, #ef4444, #f97316);
    padding: 2px 7px;
    border-radius: 6px;
}

.hero-deal-actions-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 4px;
}

.hero-deal-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.84rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.hero-deal-btn.primary {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}
.hero-deal-btn.primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(245, 158, 11, 0.55);
}

.hero-deal-btn.secondary {
    background: rgba(139, 92, 246, 0.15);
    border: 1px solid rgba(139, 92, 246, 0.4);
    color: #a855f7;
}
.hero-deal-btn.secondary:hover {
    background: rgba(139, 92, 246, 0.25);
    transform: translateY(-2px);
}
