/* ============================================================
   eMockTest — Global styles
   Mobile-first, pastel background, clean card UI
   ============================================================ */

*,
*::before,
*::after {
    box-sizing: border-box;
}

:root {
    --brand: #4f6ef7;
    --brand-dark: #3b55d9;
    --bg-body: #f4f6fb;
    --bg-pastel-blue: #eef2ff;
    --bg-pastel-green: #ecfdf5;
    --bg-pastel-red: #fef2f2;
    --bg-pastel-amber: #fffbeb;
    --text-main: #1f2937;
    --text-muted: #6b7280;
    --card-radius: 16px;
    --card-shadow: 0 1px 3px rgba(16, 24, 40, 0.08), 0 4px 14px rgba(16, 24, 40, 0.05);
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    background: var(--bg-body);
    color: var(--text-main);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
        "Noto Sans Gujarati", "Helvetica Neue", Arial, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

main.app-main {
    flex: 1 0 auto;
    padding: 24px 0 48px;
}

/* ---------- Navbar ---------- */
.navbar-emt {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06);
}

.navbar-emt .navbar-brand {
    font-weight: 700;
    color: var(--brand);
    font-size: 1.25rem;
}

.navbar-emt .nav-link {
    color: var(--text-main);
    font-weight: 500;
}

.navbar-emt .nav-link:hover {
    color: var(--brand);
}

/* ---------- Cards ---------- */
.card-emt {
    background: #ffffff;
    border: 1px solid #eceff5;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.card-emt:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(16, 24, 40, 0.08), 0 10px 24px rgba(16, 24, 40, 0.08);
}

/* ---------- Buttons ---------- */
.btn-brand {
    background: var(--brand);
    border: none;
    color: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 20px;
}

.btn-brand:hover,
.btn-brand:focus {
    background: var(--brand-dark);
    color: #fff;
}

/* ---------- Auth card ---------- */
.auth-wrap {
    max-width: 440px;
    margin: 24px auto;
    padding: 0 8px;
}

.auth-card {
    background: #ffffff;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 32px 28px;
}

.auth-card h1 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.auth-card .sub {
    color: var(--text-muted);
    font-size: 0.92rem;
    margin-bottom: 20px;
}

.auth-card .form-label {
    font-weight: 600;
    font-size: 0.9rem;
}

.auth-card .form-control {
    border-radius: 10px;
    padding: 10px 14px;
    background: #f9fafb;
}

.auth-card .form-control:focus {
    background: #fff;
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(79, 110, 247, 0.15);
}

/* ---------- Badges ---------- */
.badge-free {
    background: var(--bg-pastel-green);
    color: #047857;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
}

.badge-paid {
    background: var(--bg-pastel-amber);
    color: #b45309;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.75rem;
}

/* ---------- Home: hero + exam sections + test cards ---------- */
.hero-emt {
    background: linear-gradient(135deg, var(--bg-pastel-blue) 0%, #f5f3ff 100%);
    border-radius: var(--card-radius);
    padding: 40px 20px;
    margin-bottom: 32px;
}

.hero-emt h1 {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.hero-emt p {
    color: var(--text-muted);
    margin-bottom: 0;
    font-size: 0.95rem;
}

.test-title {
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
}

.test-desc {
    color: var(--text-muted);
    font-size: 0.87rem;
    margin-bottom: 12px;
}

.test-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.test-meta li {
    white-space: nowrap;
}

@media (min-width: 768px) {
    .hero-emt h1 {
        font-size: 2.1rem;
    }

    .hero-emt {
        padding: 56px 32px;
    }
}

/* ---------- Test detail page ---------- */
.detail-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.detail-card:hover {
    transform: none; /* static card — no hover lift on detail page */
}

.detail-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.stat-box {
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    height: 100%;
}

.stat-box .stat-val {
    font-weight: 800;
    font-size: 1.05rem;
}

.stat-box .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 2px;
}

.stat-blue  { background: var(--bg-pastel-blue); }
.stat-green { background: var(--bg-pastel-green); }
.stat-amber { background: var(--bg-pastel-amber); }
.stat-red   { background: var(--bg-pastel-red); }

.rules-head {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 20px 0 10px;
}

.rules-list {
    padding-left: 20px;
    margin-bottom: 0;
}

.rules-list li {
    margin-bottom: 8px;
    font-size: 0.92rem;
}

/* ---------- Exam engine ---------- */
.exam-body {
    background: var(--bg-body);
    display: block;
}

.exam-topbar {
    background: #ffffff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    padding: 12px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.exam-topbar-title {
    font-size: 0.95rem;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exam-timer {
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    border-radius: 10px;
    padding: 6px 14px;
    font-size: 1.05rem;
    flex-shrink: 0;
}

.exam-timer.timer-danger {
    background: var(--bg-pastel-red);
    color: #dc2626;
    animation: pulse-red 1s infinite;
}

@keyframes pulse-red {
    50% { opacity: 0.6; }
}

.exam-main {
    padding: 20px 12px 60px;
}

.exam-qcard:hover {
    transform: none;
}

.exam-qnum {
    font-weight: 700;
    color: var(--brand);
}

.exam-qtext {
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.55;
}

.exam-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.exam-option {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 12px 14px;
    cursor: pointer;
    background: #fff;
    transition: border-color 0.12s ease, background 0.12s ease;
}

.exam-option:hover {
    border-color: var(--brand);
    background: var(--bg-pastel-blue);
}

.exam-option.selected {
    border-color: var(--brand);
    background: var(--bg-pastel-blue);
}

.exam-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.exam-option .opt-key {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--text-main);
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.exam-option.selected .opt-key {
    background: var(--brand);
    color: #fff;
}

.exam-option .opt-text {
    font-size: 0.95rem;
}

/* Palette */
.palette-head {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.palette-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 14px;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.palette-legend .pl {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    margin-right: 4px;
    vertical-align: -1px;
}

.pl-answered { background: #22c55e; }
.pl-blank    { background: #e5e7eb; }
.pl-current  { background: #fff; border: 2px solid var(--brand); }

.palette-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 8px;
}

.palette-btn {
    border: 2px solid #e5e7eb;
    background: #f3f4f6;
    border-radius: 8px;
    padding: 8px 0;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--text-main);
    cursor: pointer;
}

.palette-btn.answered {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.palette-btn.current {
    border-color: var(--brand);
    box-shadow: 0 0 0 2px rgba(79, 110, 247, 0.25);
}

.palette-summary {
    font-size: 0.85rem;
}

/* ---------- Report card ---------- */
.report-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.report-title {
    font-size: 1.35rem;
    font-weight: 800;
}

.report-hero {
    border-radius: var(--card-radius);
}

.report-hero:hover {
    transform: none;
}

.hero-pass { background: linear-gradient(135deg, var(--bg-pastel-green), #f0fdfa); }
.hero-fail { background: linear-gradient(135deg, var(--bg-pastel-amber), #fff7ed); }

.report-score {
    font-size: 2.4rem;
    font-weight: 800;
}

.report-score-total {
    font-size: 1.2rem;
    color: var(--text-muted);
    font-weight: 600;
}

.report-pct {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-dark);
}

.report-verdict {
    color: var(--text-muted);
    margin-top: 6px;
    font-size: 0.95rem;
}

.review-head {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.review-card:hover {
    transform: none;
}

.rv-badge {
    flex-shrink: 0;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    white-space: nowrap;
}

.rv-right { background: var(--bg-pastel-green); color: #047857; }
.rv-wrong { background: var(--bg-pastel-red);   color: #dc2626; }
.rv-skip  { background: #f3f4f6;                color: var(--text-muted); }

.review-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.review-option {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    border: 2px solid #eef0f4;
    border-radius: 10px;
    padding: 9px 12px;
    font-size: 0.92rem;
}

.review-option .opt-key {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #f3f4f6;
    font-weight: 700;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.review-option.opt-correct {
    border-color: #22c55e;
    background: var(--bg-pastel-green);
}

.review-option.opt-correct .opt-key {
    background: #22c55e;
    color: #fff;
}

.review-option.opt-user-wrong {
    border-color: #ef4444;
    background: var(--bg-pastel-red);
}

.review-option.opt-user-wrong .opt-key {
    background: #ef4444;
    color: #fff;
}

.review-option .opt-tag {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 700;
    color: #047857;
    white-space: nowrap;
}

.review-option .opt-tag-red {
    color: #dc2626;
}

.review-expl {
    margin-top: 12px;
    background: var(--bg-pastel-blue);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.88rem;
}

/* ---------- Dashboard (my attempts) ---------- */
.dash-wrap {
    max-width: 820px;
    margin: 0 auto;
}

.dash-title {
    font-size: 1.4rem;
    font-weight: 800;
}

.attempt-card:hover {
    transform: none;
}

.attempt-test {
    font-weight: 700;
    font-size: 1rem;
}

.attempt-meta {
    font-size: 0.82rem;
    margin: 2px 0 6px;
}

.attempt-counts {
    display: flex;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
}

.ac {
    border-radius: 999px;
    padding: 2px 10px;
}

.ac-green { background: var(--bg-pastel-green); color: #047857; }
.ac-red   { background: var(--bg-pastel-red);   color: #dc2626; }
.ac-gray  { background: #f3f4f6;                color: var(--text-muted); }

.attempt-score-val {
    font-size: 1.3rem;
    font-weight: 800;
}

.attempt-pct {
    font-size: 0.85rem;
    font-weight: 700;
}

.pct-good { color: #047857; }
.pct-low  { color: #b45309; }

@media (max-width: 575.98px) {
    .attempt-score {
        text-align: left !important;
        margin-left: 0 !important;
    }

    .attempt-actions {
        flex-direction: row !important;
        width: 100%;
    }

    .attempt-actions .btn {
        flex: 1;
    }
}

/* ---------- Admin ---------- */
.static-card:hover {
    transform: none;
}

.admin-card-head {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.admin-table {
    font-size: 0.87rem;
}

.admin-table th {
    color: var(--text-muted);
    font-weight: 600;
    border-bottom-width: 1px;
}

.navbar-emt .nav-link.active {
    color: var(--brand);
}

/* ---------- Footer ---------- */
.footer-emt {
    flex-shrink: 0;
    background: #ffffff;
    border-top: 1px solid #eceff5;
    padding: 16px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ---------- Utilities ---------- */
.text-muted-emt {
    color: var(--text-muted);
}

@media (max-width: 575.98px) {
    .auth-card {
        padding: 24px 18px;
    }
}

/* ============================================================
   ADDITIONS — Freemium redesign (hero search, exam cards,
   pricing, footer links). Everything above is untouched.
   ============================================================ */

.page-h1 {
    font-size: 1.5rem;
    font-weight: 800;
}

.btn-outline-brand {
    border: 2px solid var(--brand);
    color: var(--brand);
    background: #fff;
    font-weight: 600;
    border-radius: 10px;
    padding: 9px 18px;
}

.btn-outline-brand:hover,
.btn-outline-brand:focus {
    background: var(--brand);
    color: #fff;
}

.badge-premium {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #92400e;
    font-weight: 700;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 0.72rem;
    white-space: nowrap;
}

/* ---------- Hero search ---------- */
.hero-search {
    position: relative;
    max-width: 480px;
}

.hero-search .form-control {
    border-radius: 999px;
    padding: 12px 20px;
    border: 1px solid #e2e6f0;
    box-shadow: var(--card-shadow);
}

.hero-search .form-control:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(79, 110, 247, 0.15);
}

.hero-search-results {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(16, 24, 40, 0.14);
    overflow: hidden;
    z-index: 50;
    text-align: left;
}

.hsr-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.92rem;
    border-bottom: 1px solid #f1f3f9;
}

.hsr-item:last-child { border-bottom: none; }

.hsr-item:hover { background: var(--bg-pastel-blue); }

.hsr-kind {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    white-space: nowrap;
}

.hsr-empty {
    padding: 14px 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ---------- Section heads ---------- */
.section-head {
    margin-bottom: 16px;
}

.section-head h2 {
    font-size: 1.25rem;
    font-weight: 800;
    margin-bottom: 0;
}

.section-link {
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--brand);
}

/* ---------- Popular exam category cards ---------- */
.exam-scroll {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(160px, 1fr);
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 6px;
    -webkit-overflow-scrolling: touch;
}

.exam-cat-card {
    display: block;
    text-align: center;
    text-decoration: none;
    color: var(--text-main);
    padding: 20px 14px;
}

.exam-cat-icon { font-size: 2rem; }

.exam-cat-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.3;
}

.exam-cat-count {
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 4px;
}

/* ---------- Test card notes ---------- */
.tc-note {
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 10px;
}

.tc-note-green { background: var(--bg-pastel-green); color: #047857; }
.tc-note-blue  { background: var(--bg-pastel-blue);  color: var(--brand-dark); }
.tc-note-amber { background: var(--bg-pastel-amber); color: #b45309; }

/* ---------- Exam listing page ---------- */
.examlist-head {
    margin-bottom: 24px;
}

.examlist-icon { font-size: 2.4rem; }

.subcta-card:hover { transform: none; }

/* ---------- Pricing ---------- */
.pricing-wrap {
    max-width: 860px;
    margin: 0 auto;
}

.price-card {
    position: relative;
}

.price-card:hover { transform: none; }

.price-card-hl {
    border: 2px solid var(--brand);
    box-shadow: 0 8px 30px rgba(79, 110, 247, 0.18);
}

.price-ribbon {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 4px 14px;
    white-space: nowrap;
}

.price-plan {
    font-size: 1.05rem;
    font-weight: 800;
    margin-bottom: 6px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 14px;
}

.price-per {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
}

.price-features {
    margin-bottom: 20px;
}

.price-features li {
    padding: 6px 0;
    font-size: 0.93rem;
    border-bottom: 1px dashed #eef0f6;
}

.price-features li:last-child { border-bottom: none; }

/* ---------- Static pages ---------- */
.static-wrap {
    max-width: 760px;
    margin: 0 auto;
}

.static-content h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 18px 0 6px;
}

.static-content p {
    font-size: 0.94rem;
    margin-bottom: 10px;
}

/* ---------- Footer links ---------- */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    justify-content: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f2f8;
}

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.footer-links a:hover { color: var(--brand); }

.footer-copy { font-size: 0.82rem; }

/* ============================================================
   POLISH PASS — completes the redesign CSS.
   Consistent buttons/badges, equal card internals, anchor
   offsets, responsive + hover refinements, footer spacing.
   ============================================================ */

/* ---------- Anchor offset (sticky header overlap fix) ---------- */
section[id],
#tests {
    scroll-margin-top: 84px;
}

/* ---------- Consistent buttons ---------- */
.btn-brand,
.btn-outline-brand {
    font-size: 0.95rem;
    line-height: 1.5;
}

.btn-outline-brand {
    border-width: 1px;          /* was 2px — now same height as .btn-brand */
    padding: 10px 20px;
    background: transparent;
}

.btn-brand.btn-sm,
.btn-outline-brand.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

.btn-brand.btn-lg {
    padding: 13px 24px;
    font-size: 1.05rem;
}

/* ---------- Consistent badges ---------- */
.badge-free,
.badge-paid,
.badge-premium {
    font-size: 0.72rem;
    line-height: 1.5;
    padding: 4px 12px;
    letter-spacing: 0.02em;
}

/* ---------- Test cards: uniform internals ---------- */
.test-title {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.7em;          /* reserves 2 lines → aligned rows */
}

.test-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tc-note {
    line-height: 1.45;
}

/* ---------- Hero ---------- */
.hero-emt {
    margin-top: 4px;
}

.hero-emt p {
    line-height: 1.6;
}

.hero-search .form-control {
    font-size: 16px;            /* prevents iOS auto-zoom on focus */
}

.hero-search-results {
    max-height: 320px;
    overflow-y: auto;
}

.hsr-item span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.hero-emt .btn {
    min-width: 190px;
}

/* ---------- Popular exam cards ---------- */
.exam-scroll {
    scroll-snap-type: x proximity;
}

.exam-cat-card {
    scroll-snap-align: start;
}

.exam-cat-card:hover .exam-cat-name {
    color: var(--brand);
}

/* ---------- Typography scale ---------- */
@media (min-width: 768px) {
    .page-h1 {
        font-size: 1.85rem;
    }

    .section-head h2 {
        font-size: 1.4rem;
    }
}

/* ---------- Pricing ---------- */
.price-card-hl {
    margin-top: 12px;           /* room for the ribbon when stacked */
}

@media (max-width: 575.98px) {
    .price-amount {
        font-size: 1.7rem;
    }
}

/* ---------- Static pages ---------- */
.static-content > :last-child,
.static-content p:last-child {
    margin-bottom: 0;
}

.static-content a {
    color: var(--brand);
    font-weight: 600;
    text-decoration: none;
}

.static-content a:hover {
    text-decoration: underline;
}

/* ---------- Footer spacing ---------- */
.footer-emt {
    padding: 28px 0 20px;
    margin-top: 16px;
}

.footer-links {
    margin-bottom: 14px;
    padding-bottom: 14px;
}

/* ---------- Mobile nav & hover refinements ---------- */
@media (max-width: 991.98px) {
    .navbar-emt .navbar-collapse {
        padding: 10px 4px 6px;
    }

    .navbar-emt .nav-link {
        padding: 8px 4px;
    }

    .navbar-emt form .btn {
        margin: 6px 0 4px;
    }
}

@media (hover: none) {
    /* No lift/sticky-hover on touch devices */
    .card-emt:hover {
        transform: none;
        box-shadow: var(--card-shadow);
    }
}

/* ============================================================
   DASHBOARD (sidebar layout) — additive
   ============================================================ */

.dash-shell {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

@media (min-width: 992px) {
    .dash-shell {
        flex-direction: row;
        align-items: flex-start;
    }
}

/* Sidebar */
.dash-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .dash-sidebar {
        width: 260px;
        position: sticky;
        top: 84px;
    }
}

.dash-nav {
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: var(--card-radius);
    box-shadow: var(--card-shadow);
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.dash-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease;
}

.dash-nav-link:hover {
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
}

.dash-nav-link.active {
    background: var(--brand);
    color: #fff;
}

.dash-nav-ico {
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.dash-logout-form {
    margin: 6px 0 0;
    border-top: 1px solid #f0f2f8;
    padding-top: 6px;
}

.dash-nav-logout {
    color: #dc2626;
}

.dash-nav-logout:hover {
    background: var(--bg-pastel-red);
    color: #b91c1c;
}

/* Content */
.dash-content {
    flex: 1 1 auto;
    min-width: 0;
}

.dash-h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.dash-section-h {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0;
}

/* Stat cards */
.dash-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dash-stat:hover { transform: none; }

.dash-stat-ico {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.dash-stat-ico.bg-blue  { background: var(--bg-pastel-blue); }
.dash-stat-ico.bg-green { background: var(--bg-pastel-green); }
.dash-stat-ico.bg-amber { background: var(--bg-pastel-amber); }
.dash-stat-ico.bg-red   { background: var(--bg-pastel-red); }

.dash-stat-val {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.1;
}

.dash-stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 600;
}

/* My Tests rows */
.mytest-card:hover { transform: none; }

.mytest-title {
    font-weight: 700;
    font-size: 1rem;
}

/* Affiliate */
.ref-code {
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
    border-radius: 12px;
    padding: 12px 16px;
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: 0.04em;
    text-align: center;
}

/* ============================================================
   UNLOCK OPTIONS (test detail) + 3-plan pricing — additive
   ============================================================ */

.pricing-wrap-wide {
    max-width: 1080px;
}

.unlock-opt {
    position: relative;
    border: 1px solid #eceff5;
    border-radius: 14px;
    padding: 18px 16px;
    background: #fbfcfe;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.unlock-opt-hl {
    border: 2px solid var(--brand);
    background: var(--bg-pastel-blue);
}

.unlock-opt-badge {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--brand);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 3px 10px;
}

.unlock-opt-title {
    font-weight: 700;
    font-size: 0.98rem;
}

.unlock-opt-price {
    font-weight: 800;
    font-size: 1.35rem;
}

.unlock-opt-per {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.unlock-opt-desc {
    font-size: 0.84rem;
    color: var(--text-muted);
    flex: 1 1 auto;
    margin-bottom: 8px;
}

/* ============================================================
   UNLOCK OPTIONS v2 — primary buy card + compact alternatives
   ============================================================ */

.buy-main {
    background: linear-gradient(135deg, var(--bg-pastel-blue) 0%, #f5f3ff 100%);
    border: 1px solid #e2e6f7;
    border-radius: 16px;
    padding: 22px 20px;
    margin-bottom: 20px;
}

.buy-main-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.buy-main-title {
    font-weight: 800;
    font-size: 1.15rem;
}

.buy-main-desc {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 16px;
}

/* Premium price badge */
.price-badge {
    background: linear-gradient(135deg, var(--brand) 0%, #7c5cf0 100%);
    color: #fff;
    border-radius: 16px;
    padding: 10px 22px;
    text-align: center;
    box-shadow: 0 6px 18px rgba(79, 110, 247, 0.35);
    flex-shrink: 0;
}

.price-badge-amount {
    font-size: 1.65rem;
    font-weight: 800;
    line-height: 1.15;
}

.price-badge-sub {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.9;
}

/* Secondary options */
.buy-alt-label {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.buy-alt-label::before,
.buy-alt-label::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e7eaf3;
}

.buy-alt {
    border: 1px solid #eceff5;
    border-radius: 14px;
    background: #fbfcfe;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    text-align: center;
}

.buy-alt-title {
    font-weight: 700;
    font-size: 0.95rem;
}

.buy-alt-desc {
    color: var(--text-muted);
    font-size: 0.82rem;
    flex: 1 1 auto;
}

.buy-alt-price {
    font-weight: 800;
    font-size: 1.05rem;
    margin-bottom: 6px;
}

/* ============================================================
   HOMEPAGE v2 (EdTech redesign) — additive.
   Adds orange/green accents; nothing above is modified.
   ============================================================ */

:root {
    --accent: #f97316;
    --accent-soft: #fff7ed;
    --success: #16a34a;
}

/* ---------- Header refinements ---------- */
.nav-main .nav-link {
    font-size: 0.92rem;
    padding-left: 10px;
    padding-right: 10px;
}

.nav-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    text-decoration: none;
    font-size: 1.05rem;
    color: var(--text-main);
    background: var(--bg-pastel-blue);
}

.nav-icon-btn:hover {
    background: var(--brand);
}

/* ---------- 1. Hero v2 ---------- */
.hero-v2 {
    background: linear-gradient(135deg, var(--bg-pastel-blue) 0%, #f5f3ff 60%, var(--accent-soft) 100%);
    border-radius: 20px;
    padding: 36px 22px;
    margin-bottom: 40px;
    scroll-margin-top: 84px;
}

.hero-v2-title {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.22;
    margin-bottom: 10px;
}

.hero-v2-accent {
    color: var(--brand);
}

.hero-v2-sub {
    color: var(--text-muted);
    font-size: 0.98rem;
    margin-bottom: 18px;
    max-width: 520px;
}

.hero-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
}

.hero-chips-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
}

.hero-chip {
    background: #fff;
    border: 1px solid #e3e8f4;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
    white-space: nowrap;
}

.hero-chip:hover {
    border-color: var(--brand);
    color: var(--brand);
}

@media (min-width: 992px) {
    .hero-v2 { padding: 56px 44px; }
    .hero-v2-title { font-size: 2.5rem; }
}

/* ---------- 2. Continue learning ---------- */
.cont-learn {
    background: linear-gradient(135deg, var(--bg-pastel-green), #f0fdfa);
    border: 1px solid #d1fae5;
    border-radius: 16px;
    padding: 18px 20px;
}

.cont-learn-ico { font-size: 2rem; }

.cont-learn-label {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--success);
}

.cont-learn-title {
    font-weight: 800;
    font-size: 1.02rem;
}

/* ---------- 3. Exam cards v2 ---------- */
.exam-v2-card {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    padding: 20px 16px;
    text-align: center;
}

.exam-v2-ico { font-size: 2.1rem; }

.exam-v2-name {
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 8px;
    line-height: 1.3;
}

.exam-v2-meta {
    color: var(--text-muted);
    font-size: 0.78rem;
    margin-top: 2px;
}

.exam-v2-go {
    color: var(--brand);
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 8px;
}

.exam-v2-card:hover .exam-v2-go { text-decoration: underline; }

/* ---------- 4. Categories ---------- */
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
    scroll-margin-top: 84px;
}

#categories { scroll-margin-top: 84px; }

.cat-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 12px;
    padding: 12px 14px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    box-shadow: var(--card-shadow);
}

.cat-card:not(.cat-soon):hover {
    border-color: var(--brand);
    color: var(--brand);
}

.cat-ico { font-size: 1.2rem; }

.cat-soon {
    opacity: 0.55;
    cursor: default;
}

.cat-badge {
    position: absolute;
    top: -8px;
    right: 8px;
    background: var(--accent);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    border-radius: 999px;
    padding: 2px 8px;
}

/* ---------- 6. Premium band ---------- */
.premium-band {
    background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    border-radius: 20px;
    padding: 32px 20px;
}

.premium-band-title {
    font-size: 1.35rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.mini-plan {
    position: relative;
    background: #fff;
    border: 1px solid #e7eaf6;
    border-radius: 16px;
    padding: 22px 20px;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
}

.mini-plan-hl {
    border: 2px solid var(--brand);
    box-shadow: 0 8px 26px rgba(79, 110, 247, 0.2);
}

.mini-plan-badge {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: #fff;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    border-radius: 999px;
    padding: 3px 12px;
}

.mini-plan-name {
    font-weight: 800;
    font-size: 0.95rem;
    color: var(--text-muted);
}

.mini-plan-price {
    font-size: 1.7rem;
    font-weight: 800;
    margin: 4px 0 10px;
}

.mini-plan-price span {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
}

.mini-plan-feat {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
    flex: 1 1 auto;
}

.mini-plan-feat li {
    font-size: 0.87rem;
    padding: 4px 0;
}

/* ---------- 7. Pack cards ---------- */
.pack-card { position: relative; }

.pack-card:hover { transform: none; }

.pack-feat {
    position: absolute;
    top: -10px;
    right: 14px;
    background: var(--accent);
    color: #fff;
    font-size: 0.64rem;
    font-weight: 800;
    border-radius: 999px;
    padding: 3px 10px;
    letter-spacing: 0.05em;
}

.pack-title {
    font-weight: 800;
    font-size: 1.02rem;
}

.pack-price {
    font-weight: 800;
    font-size: 1.25rem;
}

/* ---------- 8. Current affairs ---------- */
#current-affairs { scroll-margin-top: 84px; }

.ca-card {
    position: relative;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 14px;
    padding: 20px 18px 26px;
    box-shadow: var(--card-shadow);
}

.ca-ico { font-size: 1.7rem; }

.ca-title {
    font-weight: 800;
    font-size: 0.98rem;
    margin-top: 6px;
}

.ca-desc {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 2px 0 6px;
}

.ca-card .cat-badge {
    top: auto;
    bottom: 10px;
    right: 12px;
    position: absolute;
}

/* ---------- 9. Stats band ---------- */
.stats-band {
    background: linear-gradient(135deg, var(--brand) 0%, #7c5cf0 100%);
    border-radius: 20px;
    padding: 30px 18px;
    color: #fff;
}

.stat-num {
    font-size: 1.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.stat-cap {
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.85;
}

@media (min-width: 768px) {
    .stat-num { font-size: 2.2rem; }
}

/* ---------- 10. Testimonials ---------- */
.testi-track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: min(85%, 340px);
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 4px 4px 14px;
    -webkit-overflow-scrolling: touch;
}

.testi-card {
    scroll-snap-align: start;
    background: #fff;
    border: 1px solid #eceff5;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
    padding: 20px;
    margin: 0;
    display: flex;
    flex-direction: column;
}

.testi-card blockquote {
    font-size: 0.9rem;
    color: var(--text-main);
    margin: 0 0 14px;
    flex: 1 1 auto;
}

.testi-card figcaption {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
}

.testi-av {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

/* ---------- 11. App band ---------- */
.app-band {
    background: var(--accent-soft);
    border: 1px solid #ffedd5;
    border-radius: 20px;
    padding: 26px 22px;
}

.app-band-title {
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 4px;
}

.store-btn {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    background: var(--text-main);
    color: #fff;
    border-radius: 12px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.2;
    opacity: 0.85;
}

.store-btn small {
    font-size: 0.62rem;
    font-weight: 600;
    opacity: 0.75;
    letter-spacing: 0.04em;
}

/* ---------- 12. FAQ ---------- */
.faq-acc .accordion-item {
    border: 1px solid #eceff5;
    border-radius: 12px !important;
    margin-bottom: 10px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
}

.faq-acc .accordion-button {
    font-weight: 700;
    font-size: 0.95rem;
    background: #fff;
    box-shadow: none;
}

.faq-acc .accordion-button:not(.collapsed) {
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
}

.faq-acc .accordion-body {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ---------- 13. Footer v2 ---------- */
.footer-v2 { padding: 36px 0 20px; }

.footer-brand {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--brand);
    margin-bottom: 8px;
}

.footer-blurb {
    font-size: 0.85rem;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 8px;
}

.footer-social .soc {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    text-decoration: none;
}

.footer-social .soc:hover {
    background: var(--brand);
    color: #fff;
}

.footer-h {
    font-weight: 800;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-main);
    margin-bottom: 10px;
}

.footer-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-list li { margin-bottom: 7px; }

.footer-list a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
}

.footer-list a:hover { color: var(--brand); }

.footer-cols {
    padding-bottom: 18px;
    border-bottom: 1px solid #f0f2f8;
    margin-bottom: 14px;
}

/* App-like bottom breathing room on phones */
@media (max-width: 575.98px) {
    main.app-main { padding-bottom: 64px; }
}

/* ============================================================
   MAINTENANCE UPDATE — compact exam cards, search form,
   Current Affairs. Additive; earlier rules untouched.
   ============================================================ */

/* --- Popular Exams: ~35% more compact --- */
.exam-v2-compact {
    padding: 13px 8px;
}

.exam-v2-compact .exam-v2-ico {
    font-size: 1.35rem;
    line-height: 1.1;
}

.exam-v2-compact .exam-v2-name {
    font-size: 0.8rem;
    margin-top: 5px;
    line-height: 1.25;
}

.exam-v2-compact .exam-v2-meta {
    font-size: 0.7rem;
    margin-top: 1px;
}

.exam-v2-compact .exam-v2-go {
    font-size: 0.7rem;
    margin-top: 5px;
}

/* --- Search form (submit-based; no dropdown) --- */
.hero-search-form {
    display: flex;
    align-items: center;
    gap: 0;
    position: relative;
}

.hero-search-form .form-control {
    padding-right: 54px;
}

.hero-search-btn {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: var(--brand);
    color: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.hero-search-btn:hover { background: var(--brand-dark); }

.search-page { max-width: 1080px; margin: 0 auto; }

/* --- Current Affairs --- */
.ca-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.ca-chip {
    background: #fff;
    border: 1px solid #e3e8f4;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-main);
    text-decoration: none;
}

.ca-chip.active,
.ca-chip:hover {
    background: var(--brand);
    border-color: var(--brand);
    color: #fff;
}

.ca-item {
    display: block;
    text-decoration: none;
    color: var(--text-main);
    overflow: hidden;
}

.ca-thumb {
    width: 100%;
    height: 160px;
    object-fit: cover;
    display: block;
    background: var(--bg-pastel-blue);
}

.ca-body { padding: 16px 18px 18px; }

.ca-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 0.74rem;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.ca-tag {
    background: var(--bg-pastel-blue);
    color: var(--brand-dark);
    border-radius: 999px;
    padding: 2px 10px;
    font-weight: 700;
    text-decoration: none;
}

.ca-tag-hot {
    background: var(--accent-soft);
    color: #b45309;
}

.ca-item-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ca-item-sum {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 6px 0 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.ca-read {
    color: var(--brand);
    font-size: 0.82rem;
    font-weight: 700;
}

.ca-crumb a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
}

.ca-hero-img {
    width: 100%;
    border-radius: 12px;
    max-height: 380px;
    object-fit: cover;
}

.ca-summary {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-main);
    background: var(--bg-pastel-blue);
    border-radius: 10px;
    padding: 12px 16px;
}

.ca-content { line-height: 1.75; }

/* ============================================================
   ACCESSIBILITY (Task 6) — applies everywhere, no visual change
   until focused / used by assistive tech.
   ============================================================ */

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 2000;
    background: var(--brand);
    color: #fff;
    padding: 10px 18px;
    border-radius: 0 0 10px 0;
    font-weight: 700;
    text-decoration: none;
}

.skip-link:focus {
    left: 0;
}

/* Visible keyboard focus (mouse users unaffected) */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.dash-nav-link:focus-visible,
.exam-v2-card:focus-visible,
.ca-item:focus-visible,
.cat-card:focus-visible {
    outline: 3px solid #1d4ed8;
    outline-offset: 2px;
    border-radius: 8px;
}

.app-main:focus {
    outline: none;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================================
   ANDROID APP (TWA / installed PWA) — Task 3
   EVERY rule below is scoped to html.app-mode, which is added
   client-side ONLY inside the app. Website visitors never match,
   so the website is byte-for-byte unchanged.
   ============================================================ */

/* The slim app bar is invisible on the website */
.app-bar { display: none; }

html.app-mode .app-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    position: sticky;
    top: 0;
    z-index: 1030;
    background: #fff;
    box-shadow: 0 1px 3px rgba(16, 24, 40, 0.08);
    padding: 8px 12px;
    padding-top: calc(8px + env(safe-area-inset-top));
}

html.app-mode .app-bar-title {
    font-weight: 800;
    color: var(--brand);
    text-decoration: none;
    font-size: 1.02rem;
}

html.app-mode .app-bar-btn {
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: var(--bg-pastel-blue);
    color: var(--text-main);
    font-size: 1.25rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
}

/* Hide website chrome inside the app */
html.app-mode .navbar-emt,
html.app-mode .footer-cols,
html.app-mode .skip-link {
    display: none !important;
}

html.app-mode .footer-emt {
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom));
    text-align: center;
}

/* Full-screen mobile layout + Android safe areas */
html.app-mode body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    overscroll-behavior-y: contain;   /* disables pull-to-refresh */
    overflow-x: hidden;               /* no horizontal scrolling */
    -webkit-text-size-adjust: 100%;   /* no text auto-zoom */
    text-size-adjust: 100%;
    touch-action: manipulation;       /* no double-tap zoom */
    -webkit-tap-highlight-color: transparent;
}

html.app-mode {
    overscroll-behavior-y: contain;
    overflow-x: hidden;
}

html.app-mode main.app-main {
    padding-top: 14px;
    padding-bottom: calc(48px + env(safe-area-inset-bottom));
}

/* Comfortable app tap targets (no colour or layout redesign) */
html.app-mode .btn {
    min-height: 44px;
}

html.app-mode .hero-v2 {
    border-radius: 16px;
    padding: 26px 16px;
}
