:root { --ie-primary: #1E3A8A; --ie-accent: #EA580C; --ie-ink: #0f172a; --ie-muted: #64748b; --ie-line: #e5e7ef; --ie-soft: #f5f7fc; }
body { background: var(--ie-soft); color: var(--ie-ink); font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
h1, h2, h3, .h1, .h2, .h3, .h4, .h5 { letter-spacing: -.01em; }
.ie-nav { background: rgba(255,255,255,.96); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--ie-line); }

/* Brand buttons: set through Bootstrap's button variables so hover / active / focus / disabled keep the colour */
.ie-btn-accent {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--ie-accent);
    --bs-btn-border-color: var(--ie-accent);
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: color-mix(in srgb, var(--ie-accent) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--ie-accent) 85%, #000);
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: color-mix(in srgb, var(--ie-accent) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--ie-accent) 75%, #000);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: var(--ie-accent);
    --bs-btn-disabled-border-color: var(--ie-accent);
    --bs-btn-focus-shadow-rgb: 234, 88, 12;
}
/* Primary buttons follow the network colour (deep blue) in every state too */
.btn-primary {
    --bs-btn-bg: var(--ie-primary);
    --bs-btn-border-color: var(--ie-primary);
    --bs-btn-hover-bg: color-mix(in srgb, var(--ie-primary) 85%, #000);
    --bs-btn-hover-border-color: color-mix(in srgb, var(--ie-primary) 85%, #000);
    --bs-btn-active-bg: color-mix(in srgb, var(--ie-primary) 75%, #000);
    --bs-btn-active-border-color: color-mix(in srgb, var(--ie-primary) 75%, #000);
    --bs-btn-disabled-bg: var(--ie-primary);
    --bs-btn-disabled-border-color: var(--ie-primary);
}
/* nav bar links stay readable on hover */
.ie-nav .nav-link { color: #334155; font-weight: 500; }
.ie-nav .nav-link:hover, .ie-nav .nav-link:focus { color: var(--ie-primary); }
.ie-card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.08); position: relative; }
.ie-featured { outline: 2px solid var(--ie-accent); }
.ie-thumb { display: block; position: relative; aspect-ratio: 4 / 3; background: #eef0f5; overflow: hidden; border-radius: .375rem .375rem 0 0; }
.ie-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ie-thumb-empty { display: flex; align-items: center; justify-content: center; height: 100%; font-size: 2rem; color: #b8bdc9; }
.ie-badge-featured { position: absolute; top: .5rem; left: .5rem; background: var(--ie-accent); }
.ie-title { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ie-cat { display: flex; align-items: center; gap: .6rem; padding: .75rem; background: #fff; border-radius: .5rem; text-decoration: none; color: inherit; box-shadow: 0 1px 2px rgba(0,0,0,.06); height: 100%; }
.ie-cat:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.ie-cat i { font-size: 1.5rem; color: var(--ie-primary); }
.ie-suggest { position: absolute; left: 0; right: 0; z-index: 1050; max-height: 300px; overflow-y: auto; }
.ie-multi { max-height: 200px; overflow-y: auto; }
.ie-gallery img { width: 100%; max-height: 480px; object-fit: contain; background: #111; }
.ie-msg { max-width: 75%; padding: .5rem .75rem; border-radius: .75rem; margin-bottom: .5rem; }
.ie-msg-me { background: var(--ie-primary); color: #fff; margin-left: auto; }
.ie-msg-them { background: #fff; border: 1px solid #e3e6ee; }
.ie-thread { max-height: 60vh; overflow-y: auto; }
.input-validation-error { border-color: #dc3545 !important; }
.field-validation-error { color: #dc3545; font-size: .875em; display: block; }
.validation-summary-valid { display: none; }
@media print {
    .ie-nav, footer, .no-print, .alert-dismissible { display: none !important; }
    body { background: #fff; }
}
.ie-badge-urgent { position: absolute; top: .5rem; right: .5rem; background: #dc3545; }

/* ---------- dashboard ---------- */
.ie-stat { display: flex; flex-direction: column; height: 100%; padding: .85rem 1rem; background: #fff; border-radius: .5rem;
           border-left: 4px solid #dee2e6; color: inherit; text-decoration: none; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
a.ie-stat:hover { box-shadow: 0 2px 8px rgba(0,0,0,.12); color: inherit; }
.ie-stat.border-success { border-left-color: var(--bs-success) !important; }
.ie-stat.border-warning { border-left-color: var(--bs-warning) !important; }
.ie-stat.border-danger  { border-left-color: var(--bs-danger) !important; }
.ie-stat.border-primary { border-left-color: var(--ie-primary) !important; }
.ie-stat.border-info    { border-left-color: var(--bs-info) !important; }
.ie-stat-label { font-size: .8rem; color: #6c757d; }
.ie-stat-value { font-size: 1.6rem; font-weight: 700; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ie-stat-sub { font-size: .75rem; color: #6c757d; }
.ie-todo li:first-child { border-top: 0 !important; }
.ie-badge-inline { background: var(--ie-accent); font-weight: 500; }
.ie-chart { display: flex; align-items: stretch; gap: .35rem; height: 180px; }
.ie-chart-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ie-chart-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid #dee2e6; }
.ie-chart-bars > div { width: 42%; max-width: 14px; min-height: 1px; border-radius: 2px 2px 0 0; }
.ie-chart-label { font-size: .68rem; color: #6c757d; text-align: center; margin-top: .25rem; white-space: nowrap; overflow: hidden; }
.ie-bar-posted { background: var(--ie-primary); }
.ie-bar-approved { background: var(--bs-success); }
.ie-key { display: inline-block; width: .7rem; height: .7rem; border-radius: 2px; vertical-align: -1px; }
.ie-hbar { display: grid; grid-template-columns: minmax(0, 40%) 1fr auto; align-items: center; gap: .5rem;
           padding: .3rem 0; color: inherit; text-decoration: none; font-size: .875rem; }
.ie-hbar:hover .ie-hbar-label { text-decoration: underline; }
.ie-hbar-track { height: .55rem; background: #eef0f5; border-radius: 1rem; overflow: hidden; }
.ie-hbar-fill { display: block; height: 100%; background: var(--ie-primary); border-radius: 1rem; }
.ie-hbar-value { font-variant-numeric: tabular-nums; color: #495057; min-width: 2.5rem; text-align: right; }
@media (max-width: 575.98px) { .ie-chart-col:nth-child(odd) .ie-chart-label { visibility: hidden; } }

/* =====================================================================
   Premium look: header, home page, requirement & lead pages, footer
   ===================================================================== */

.ie-nav-search { position: relative; max-width: 460px; }
.ie-nav-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ie-muted); }
.ie-nav-search .form-control { padding-left: 2.3rem; border-radius: 2rem; background: var(--ie-soft); border-color: var(--ie-line); }
.ie-nav-req { color: var(--ie-accent) !important; font-weight: 600 !important; }

/* hero */

.ie-stats-strip { position: relative; z-index: 2; margin-top: -2.75rem; display: grid; grid-template-columns: repeat(4, 1fr);
                  background: #fff; border-radius: 1rem; box-shadow: 0 18px 40px -25px rgba(2,6,23,.45); border: 1px solid var(--ie-line); }
.ie-stats-strip > div { padding: 1.2rem 1rem; text-align: center; }
.ie-stats-strip > div + div { border-left: 1px solid var(--ie-line); }
.ie-stats-strip strong { display: block; font-size: 1.6rem; font-weight: 800; color: var(--ie-primary); font-variant-numeric: tabular-nums; }
.ie-stats-strip span { font-size: .82rem; color: var(--ie-muted); }
@media (max-width: 767.98px) {
    .ie-stats-strip { grid-template-columns: repeat(2, 1fr); }
    .ie-stats-strip > div:nth-child(3) { border-left: 0; }
    .ie-stats-strip > div:nth-child(n+3) { border-top: 1px solid var(--ie-line); }
}

/* sections */
.ie-section { padding: 3.5rem 0; }
.ie-section-tint { background: #fff; }
.ie-section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 1rem; margin-bottom: 1.6rem; }
.ie-section-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; margin: .2rem 0 0; }
.ie-eyebrow { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ie-accent); }
.ie-link-arrow { font-weight: 600; text-decoration: none; color: var(--ie-primary); }
.ie-link-arrow i { transition: transform .15s; }
.ie-link-arrow:hover i { transform: translateX(3px); }

.ie-cat-card { --tint: var(--ie-primary); display: flex; gap: .9rem; height: 100%; padding: 1.1rem; border-radius: 1rem; background: #fff;
               border: 1px solid var(--ie-line); color: var(--ie-ink); text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.ie-cat-card:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(2,6,23,.35); border-color: color-mix(in srgb, var(--tint) 40%, #fff); color: var(--ie-ink); }
.ie-cat-icon { flex: 0 0 3rem; height: 3rem; border-radius: .85rem; display: grid; place-items: center; font-size: 1.35rem;
               color: var(--tint); background: color-mix(in srgb, var(--tint) 12%, #fff); }
.ie-cat-body { display: flex; flex-direction: column; min-width: 0; }
.ie-cat-body strong { font-size: .98rem; line-height: 1.25; }
.ie-cat-body small { color: var(--ie-muted); font-size: .8rem; margin-top: .2rem; }
.ie-cat-body em { font-style: normal; font-size: .75rem; font-weight: 700; color: var(--tint); margin-top: .45rem; }

.ie-switch { gap: .4rem; }
.ie-switch .nav-link { border-radius: 2rem; padding: .5rem 1.2rem; color: var(--ie-ink); background: #fff; border: 1px solid var(--ie-line); font-weight: 600; }
.ie-switch .nav-link.active { background: var(--ie-primary); color: #fff; border-color: var(--ie-primary); }
.ie-step { position: relative; height: 100%; padding: 1.6rem; border-radius: 1rem; background: #fff; border: 1px solid var(--ie-line); }
.ie-step > span { position: absolute; top: 1.2rem; right: 1.4rem; font-size: 2.6rem; font-weight: 800; color: color-mix(in srgb, var(--ie-primary) 10%, #fff); line-height: 1; }
.ie-step > i { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: .85rem; font-size: 1.3rem; color: #fff; background: var(--ie-primary); margin-bottom: 1rem; }
.ie-step h3 { font-size: 1.05rem; font-weight: 700; }
.ie-step p { color: var(--ie-muted); font-size: .9rem; margin: 0; }

.ie-band { border-radius: 1.5rem; padding: 2.5rem; color: rgba(255,255,255,.85);
           background: radial-gradient(600px 300px at 100% 0, rgba(255,255,255,.18), transparent 60%),
                       linear-gradient(120deg, var(--ie-accent), color-mix(in srgb, var(--ie-accent) 55%, var(--ie-primary))); }
.ie-band h2 { font-weight: 800; }
.ie-band-points { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; font-size: .9rem; }
.ie-band-points i { margin-right: .25rem; }

/* cards */
.ie-card { border-radius: .9rem; border: 1px solid var(--ie-line); box-shadow: none; transition: transform .15s, box-shadow .15s; }
.ie-card:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -18px rgba(2,6,23,.4); }
.ie-thumb { border-radius: .9rem .9rem 0 0; }
.ie-price { font-weight: 800; color: var(--ie-primary); }
.ie-featured { outline: 0; border-color: color-mix(in srgb, var(--ie-accent) 55%, #fff); box-shadow: 0 0 0 1px color-mix(in srgb, var(--ie-accent) 35%, #fff); }

/* generic panels & requirement pages */
.ie-panel { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; }
.ie-sticky { position: sticky; top: 5.5rem; }
.ie-step-title { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .9rem; }
.ie-step-title span { width: 1.7rem; height: 1.7rem; border-radius: 50%; display: grid; place-items: center; font-size: .85rem; color: #fff; background: var(--ie-primary); }
.ie-choice-group { display: flex; flex-wrap: wrap; gap: .5rem; }
.ie-choice input { position: absolute; opacity: 0; pointer-events: none; }
.ie-choice span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem 1rem; border-radius: .7rem; border: 1px solid var(--ie-line); background: #fff; cursor: pointer; font-weight: 500; }
.ie-choice input:checked + span { border-color: var(--ie-primary); background: color-mix(in srgb, var(--ie-primary) 8%, #fff); color: var(--ie-primary); box-shadow: inset 0 0 0 1px var(--ie-primary); }
.ie-choice input:focus-visible + span { outline: 2px solid var(--ie-accent); outline-offset: 2px; }
.ie-steps-list { padding-left: 1.2rem; margin: 0; }
.ie-steps-list li { margin-bottom: .8rem; }
.ie-steps-list li strong { display: block; }
.ie-steps-list li span { font-size: .85rem; color: var(--ie-muted); }
.ie-trust li { display: flex; gap: .5rem; margin-bottom: .55rem; color: #334155; }
.ie-trust i { color: #16a34a; }
.ie-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ie-mini-stats { display: flex; flex-wrap: wrap; gap: 1.2rem; font-size: .85rem; color: var(--ie-muted); }
.ie-mini-stats strong { color: var(--ie-ink); }
.ie-hero-mini { color: #fff; border-radius: 1.25rem; padding: 2.5rem 1.5rem; background: linear-gradient(135deg, color-mix(in srgb, var(--ie-primary) 92%, #000), var(--ie-primary)); }
.ie-check-circle { width: 3.5rem; height: 3.5rem; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem; background: #22c55e; color: #fff; }
.ie-req-cta, .ie-upsell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; border-radius: 1rem;
                          background: color-mix(in srgb, var(--ie-accent) 8%, #fff); border: 1px solid color-mix(in srgb, var(--ie-accent) 25%, #fff); }
.ie-req-cta span { display: block; font-size: .9rem; color: var(--ie-muted); }
.ie-lead-row { transition: box-shadow .15s; }
.ie-lead-row:hover { box-shadow: 0 10px 24px -16px rgba(2,6,23,.4); }
.ie-lead-row.is-new { border-left: 4px solid #dc3545; }
.ie-lead-facts { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--ie-muted); }
.ie-lead-facts i { color: var(--ie-primary); }

/* footer */
.ie-footer { background: #0b1220; color: rgba(255,255,255,.65); padding: 3.5rem 0 1.5rem; margin-top: 0; }
.ie-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.ie-footer a:hover { color: #fff; }
.ie-footer .btn { color: #fff; }
.ie-footer li { margin-bottom: .45rem; }
.ie-footer-h { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 1rem; }
.ie-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 2.5rem; padding-top: 1.2rem;
                    border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
main.container + .ie-footer, main + .ie-footer { margin-top: 2rem; }
@media print { .ie-footer { display: none !important; } }
/* headings take the page ink (hero / band set their own white) */
h1, h2, h3, h4, h5, h6 { color: inherit; }
.ie-section-head h2, .ie-step h3, .ie-panel h1, .ie-panel h2, .ie-panel h3 { color: var(--ie-ink); }

/* ---------- promote / packages page ---------- */
.min-w-0 { min-width: 0; }
.ie-pkg-ad { display: flex; align-items: center; gap: 1rem; }
.ie-pkg-ad-thumb { flex: 0 0 88px; height: 66px; border-radius: .6rem; overflow: hidden; background: var(--ie-soft); display: grid; place-items: center; color: #b8bdc9; font-size: 1.5rem; }
.ie-pkg-ad-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ie-pkg-group { letter-spacing: .08em; font-size: .75rem; }
.ie-plan { display: block; height: 100%; cursor: pointer; position: relative; }
.ie-plan input { position: absolute; opacity: 0; pointer-events: none; }
.ie-plan-card { position: relative; display: flex; flex-direction: column; height: 100%; padding: 1.25rem; border-radius: 1rem; background: #fff;
                border: 1.5px solid var(--ie-line); transition: border-color .15s, box-shadow .15s, transform .15s; }
.ie-plan:hover .ie-plan-card { border-color: color-mix(in srgb, var(--ie-primary) 35%, #fff); transform: translateY(-2px); }
.ie-plan input:checked + .ie-plan-card { border-color: var(--ie-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ie-primary) 15%, transparent), 0 16px 32px -20px rgba(2,6,23,.45); }
.ie-plan input:focus-visible + .ie-plan-card { outline: 2px solid var(--ie-accent); outline-offset: 2px; }
.ie-plan input:disabled + .ie-plan-card { cursor: default; opacity: .75; transform: none; }
.ie-plan.is-best .ie-plan-card { border-color: color-mix(in srgb, var(--ie-accent) 55%, #fff); }
.ie-plan-ribbon { position: absolute; top: -.75rem; left: 1.25rem; background: var(--ie-accent); color: #fff; font-size: .72rem; font-weight: 700;
                  letter-spacing: .04em; text-transform: uppercase; padding: .25rem .7rem; border-radius: 2rem; }
.ie-plan-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; }
.ie-plan-icon { width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: grid; place-items: center; font-size: 1.2rem;
                color: var(--ie-accent); background: color-mix(in srgb, var(--ie-accent) 12%, #fff); }
.ie-plan-check { width: 1.5rem; height: 1.5rem; border-radius: 50%; border: 1.5px solid var(--ie-line); display: grid; place-items: center; color: transparent; font-size: .9rem; }
.ie-plan input:checked + .ie-plan-card .ie-plan-check { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }
.ie-plan-name { font-size: 1.05rem; }
.ie-plan-tag { font-size: .85rem; color: var(--ie-muted); margin-top: .15rem; }
.ie-plan-price { font-size: 1.9rem; font-weight: 800; color: var(--ie-ink); margin-top: .8rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ie-plan-price small { font-size: .85rem; font-weight: 500; color: var(--ie-muted); }
.ie-plan-meta { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; font-size: .82rem; color: var(--ie-muted); margin-top: .3rem; }
.ie-plan-save { background: #dcfce7; color: #166534; font-weight: 700; padding: .1rem .5rem; border-radius: 2rem; }
.ie-plan-list { list-style: none; padding: 0; margin: 1rem 0 0; padding-top: 1rem; border-top: 1px dashed var(--ie-line); font-size: .87rem; }
.ie-plan-list li { display: flex; gap: .5rem; margin-bottom: .45rem; }
.ie-plan-list i { color: #16a34a; }
.ie-plan-sm .ie-plan-price { font-size: 1.35rem; }
.ie-compare th, .ie-compare td { padding: .65rem .75rem; font-size: .9rem; vertical-align: middle; }
.ie-compare-hl { background: color-mix(in srgb, var(--ie-primary) 5%, #fff) !important; }
.ie-compare thead .ie-compare-hl { color: var(--ie-primary); }
.ie-summary [data-sum="price"], .ie-summary [data-sum="total"] { font-variant-numeric: tabular-nums; }
.ie-pay-methods { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem; margin-top: .8rem; }
.ie-pay-methods span { font-size: .7rem; font-weight: 600; color: var(--ie-muted); border: 1px solid var(--ie-line); border-radius: .4rem; padding: .15rem .45rem; }

/* =====================================================================
   Near me map + student book exchange
   ===================================================================== */
.ie-books-hero { color: #fff; padding: 2.2rem 0; background: radial-gradient(700px 300px at 90% 0, rgba(255,255,255,.18), transparent 60%),
                 linear-gradient(120deg, #047857, #0f766e 55%, var(--ie-primary)); }
.ie-books-hero p { color: rgba(255,255,255,.85); max-width: 42rem; }
.ie-books-title { font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.3rem); margin: .8rem 0 .5rem; color: #fff; }

.ie-nb-bar { background: #fff; border-bottom: 1px solid var(--ie-line); padding: .75rem 0; }
.ie-nb-wrap { max-width: 1600px; }
.ie-nb-row { display: flex; gap: .4rem; background: var(--ie-soft); border: 1px solid var(--ie-line); border-radius: .9rem; padding: .3rem; }
.ie-nb-field { display: flex; align-items: center; gap: .45rem; padding: 0 .7rem; min-width: 0; background: transparent; border: 0; color: var(--ie-muted); }
.ie-nb-field + .ie-nb-field { border-left: 1px solid var(--ie-line); }
.ie-nb-field input, .ie-nb-field select { border: 0; outline: 0; background: transparent; width: 100%; padding: .6rem 0; color: var(--ie-ink); font: inherit; }
.ie-nb-q { flex: 1.6; } .ie-nb-cat { flex: 1.1; } .ie-nb-radius { flex: 0 0 9.5rem; }
.ie-nb-loc { flex: 0 1 15rem; color: var(--ie-ink); font-weight: 600; cursor: pointer; }
.ie-nb-loc i { color: var(--ie-accent); } .ie-nb-loc span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-nb-go { border-radius: .7rem; padding: .55rem 1.2rem; font-weight: 700; }
.ie-nb-filters { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: .6rem; }
.ie-nb-filters .form-select, .ie-nb-filters .form-control { width: auto; min-width: 9rem; }
.ie-nb-max { width: 11rem !important; }
.ie-seg { display: inline-flex; border: 1px solid var(--ie-line); border-radius: .6rem; overflow: hidden; background: #fff; }
.ie-seg input { position: absolute; opacity: 0; pointer-events: none; }
.ie-seg span { display: inline-block; padding: .3rem .8rem; font-size: .85rem; cursor: pointer; }
.ie-seg label + label span { border-left: 1px solid var(--ie-line); }
.ie-seg input:checked + span { background: var(--ie-primary); color: #fff; }
@media (max-width: 991.98px) {
    .ie-nb-row { flex-wrap: wrap; }
    .ie-nb-field { border-left: 0 !important; }
    .ie-nb-q { flex: 1 1 100%; border-bottom: 1px solid var(--ie-line); }
    .ie-nb-cat, .ie-nb-loc, .ie-nb-radius { flex: 1 1 45%; }
    .ie-nb-go { flex: 1 1 100%; }
    .ie-nb-filters { flex-wrap: nowrap; overflow-x: auto; padding-bottom: .25rem; }
    .ie-nb-filters > * { flex: 0 0 auto; }
}

.ie-nb-switch { position: sticky; top: 62px; z-index: 500; display: flex; gap: .3rem; padding: .5rem; background: var(--ie-soft); }
.ie-nb-switch button { flex: 1; border: 1px solid var(--ie-line); background: #fff; border-radius: .6rem; padding: .45rem; font-weight: 600; }
.ie-nb-switch button.active { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }

.ie-nb-body { display: grid; grid-template-columns: minmax(0, 1fr); max-width: 1600px; margin: 0 auto; }
.ie-nb-list { padding: 1rem; min-width: 0; }
.ie-nb-map-wrap { position: relative; }
.ie-nb-map { height: calc(100vh - 170px); min-height: 420px; }
@media (min-width: 992px) {
    .ie-nb-body { grid-template-columns: minmax(0, 46%) minmax(0, 54%); }
    .ie-nb-map-wrap { position: sticky; top: 64px; height: calc(100vh - 64px); }
    .ie-nb-map { height: 100%; }
}
@media (max-width: 991.98px) {
    .ie-nb .ie-nb-map-wrap { display: none; }
    .ie-nb.show-map .ie-nb-map-wrap { display: block; }
    .ie-nb.show-map .ie-nb-list { display: none; }
}

.ie-nb-status { font-size: .95rem; margin-bottom: .5rem; }
.ie-nb-chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: 1rem; }
.ie-nb-chips button { border: 1px solid var(--ie-line); background: #fff; border-radius: 2rem; padding: .2rem .7rem; font-size: .82rem; }
.ie-nb-chips button small { color: var(--ie-muted); margin-left: .2rem; }
.ie-nb-chips button.active { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }
.ie-nb-chips button.active small { color: rgba(255,255,255,.75); }
.ie-nb-prompt, .ie-nb-empty { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--ie-line); border-radius: 1rem; }
.ie-nb-prompt > i, .ie-nb-empty > i { font-size: 2.2rem; color: var(--ie-accent); }

.ie-nb-section-title { font-weight: 700; font-size: .9rem; margin-bottom: .5rem; }
.ie-sponsored-tag { display: inline-block; font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
                    color: #92400e; background: #fef3c7; border: 1px solid #fde68a; border-radius: .3rem; padding: .05rem .35rem; margin-right: .3rem; }
.ie-nb-sponsored { margin-bottom: 1rem; }
.ie-nb-strip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: .6rem; overflow-x: auto; padding-bottom: .3rem; scroll-snap-type: x mandatory; }
.ie-sp-card { display: flex; flex-direction: column; background: #fff; border: 1px solid #fde68a; border-radius: .8rem; overflow: hidden; color: var(--ie-ink); text-decoration: none; scroll-snap-align: start; }
.ie-sp-card:hover { box-shadow: 0 10px 22px -16px rgba(2,6,23,.5); color: var(--ie-ink); }
.ie-sp-photo { width: 100%; height: 96px; object-fit: cover; background: var(--ie-soft); display: grid; place-items: center; color: #b8bdc9; font-size: 1.6rem; }
.ie-sp-body { display: flex; flex-direction: column; padding: .55rem .65rem; gap: .1rem; min-width: 0; }
.ie-sp-title { font-weight: 600; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-sp-meta { font-size: .75rem; color: var(--ie-muted); }
.ie-sp-foot { display: flex; justify-content: space-between; font-size: .8rem; margin-top: .2rem; }
.ie-sp-foot span { color: var(--ie-muted); }

.ie-nb-results { display: grid; gap: .7rem; }
.ie-nb-card { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: .9rem; background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: .7rem; transition: box-shadow .15s, border-color .15s; }
.ie-nb-card:hover { box-shadow: 0 12px 24px -18px rgba(2,6,23,.45); border-color: color-mix(in srgb, var(--ie-primary) 30%, #fff); }
.ie-nb-card.is-sponsored { border-color: #fde68a; background: linear-gradient(#fffdf5, #fff); }
.ie-nb-photo { width: 132px; height: 110px; border-radius: .6rem; object-fit: cover; background: var(--ie-soft); }
.ie-nb-photo.is-empty, .ie-pop-photo.is-empty { display: grid; place-items: center; color: #b8bdc9; font-size: 1.8rem; }
.ie-nb-card-body { min-width: 0; display: flex; flex-direction: column; gap: .15rem; }
.ie-nb-card-top { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.ie-dist { margin-left: auto; font-size: .78rem; font-weight: 700; color: var(--ie-primary); white-space: nowrap; }
.ie-nb-card-title { font-weight: 700; color: var(--ie-ink); text-decoration: none; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ie-nb-card-title:hover { color: var(--ie-primary); }
.ie-nb-card-meta { font-size: .8rem; color: var(--ie-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-nb-card-foot { display: flex; justify-content: space-between; gap: .5rem; align-items: baseline; margin-top: .15rem; }
.ie-nb-price, .ie-pop-price { font-weight: 800; color: var(--ie-primary); }
.ie-nb-price.is-free, .ie-pop-price.is-free { color: #047857; }
.ie-nb-provider { font-size: .78rem; color: var(--ie-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-nb-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .45rem; }
.ie-chips-row { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .15rem; }
.ie-chip { font-size: .72rem; padding: .1rem .5rem; border-radius: 2rem; background: var(--ie-soft); border: 1px solid var(--ie-line); color: #334155; }
@media (max-width: 575.98px) {
    .ie-nb-card { grid-template-columns: 96px minmax(0, 1fr); gap: .6rem; }
    .ie-nb-photo { width: 96px; height: 96px; }
}
.ie-nb-card.is-skeleton { min-height: 126px; }
.ie-nb-card.is-skeleton > div:first-child, .ie-nb-card.is-skeleton span { background: linear-gradient(90deg, #eef0f5, #f6f7fb, #eef0f5); background-size: 200% 100%; animation: ie-shimmer 1.2s infinite; border-radius: .5rem; }
.ie-nb-card.is-skeleton span { display: block; height: .8rem; margin: .4rem 0; }
.ie-nb-card.is-skeleton span:nth-child(1) { width: 70%; } .ie-nb-card.is-skeleton span:nth-child(2) { width: 45%; } .ie-nb-card.is-skeleton span:nth-child(3) { width: 30%; }
@keyframes ie-shimmer { to { background-position: -200% 0; } }

/* map pieces */
.ie-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
               background: var(--ie-primary); border: 2px solid #fff; box-shadow: 0 4px 10px -3px rgba(2,6,23,.6); }
.ie-pin span i { transform: rotate(45deg); color: #fff; font-size: .8rem; }
.ie-pin.is-sponsored span { background: var(--ie-accent); }
.ie-pin.is-book span { background: #0f766e; }
.ie-pin.is-free span { background: #16a34a; }
.leaflet-marker-icon.is-hot span { transform: rotate(-45deg) scale(1.25); box-shadow: 0 0 0 4px rgba(234,88,12,.35); }
.ie-me span { display: block; width: 18px; height: 18px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37,99,235,.25); }
.ie-radius-ctl { display: flex; align-items: center; background: #fff; }
.ie-radius-ctl button { width: 34px; height: 34px; border: 0; background: #fff; font-size: 1.2rem; font-weight: 700; color: var(--ie-ink); }
.ie-radius-ctl button:hover { background: var(--ie-soft); }
.ie-radius-ctl span { min-width: 58px; text-align: center; font-weight: 700; font-size: .85rem; color: var(--ie-primary); }
.ie-locate-ctl { width: 34px; height: 34px; border: 0 !important; background: #fff; font-size: 1rem; color: var(--ie-primary); }
.ie-nb-here { position: absolute; z-index: 800; top: 12px; left: 50%; transform: translateX(-50%); border: 0; border-radius: 2rem;
              padding: .45rem 1rem; background: #fff; font-weight: 600; box-shadow: 0 6px 18px -6px rgba(2,6,23,.45); }
.ie-popup .leaflet-popup-content { margin: 0; width: 260px !important; }
.ie-popup .leaflet-popup-content-wrapper { padding: 0; border-radius: .9rem; overflow: hidden; }
.ie-pop-photo { width: 100%; height: 120px; object-fit: cover; background: var(--ie-soft); }
.ie-pop-body { padding: .6rem .75rem .75rem; font-family: "Plus Jakarta Sans", system-ui, sans-serif; }
.ie-pop-top { display: flex; align-items: center; gap: .3rem; flex-wrap: wrap; }
.ie-pop-title { display: block; font-weight: 700; color: var(--ie-ink); text-decoration: none; margin: .2rem 0; font-size: .92rem; line-height: 1.3; }
.ie-pop-meta { font-size: .76rem; color: var(--ie-muted); }
.ie-pop-price { margin-top: .3rem; }
.ie-pop-actions { display: flex; gap: .3rem; margin-top: .5rem; }
.ie-pop-actions .btn { flex: 1; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: color-mix(in srgb, var(--ie-primary) 25%, transparent); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: var(--ie-primary); color: #fff; font-weight: 700; }

.ie-or { display: flex; align-items: center; gap: .6rem; color: var(--ie-muted); font-size: .8rem; margin: .4rem 0 1rem; }
.ie-or::before, .ie-or::after { content: ""; flex: 1; border-top: 1px solid var(--ie-line); }

/* location card on the ad page + sponsored strip on listings */
.ie-ad-map { height: 220px; border-radius: .8rem; overflow: hidden; border: 1px solid var(--ie-line); }
.ie-near-strip:empty { display: none; }
.ie-near-cta { display: flex; align-items: center; gap: .6rem; padding: .7rem 1rem; border-radius: .8rem; background: #fff; border: 1px dashed color-mix(in srgb, var(--ie-primary) 35%, #fff);
               color: var(--ie-ink); text-decoration: none; font-size: .9rem; }
.ie-near-cta > i:first-child { color: var(--ie-accent); }
.ie-near-cta:hover { background: color-mix(in srgb, var(--ie-primary) 4%, #fff); color: var(--ie-ink); }

.ie-books-band { border-radius: 1.5rem; padding: 2.5rem; color: rgba(255,255,255,.88);
                 background: radial-gradient(600px 300px at 100% 0, rgba(255,255,255,.18), transparent 60%), linear-gradient(120deg, #047857, #0f766e 60%, var(--ie-primary)); }
.ie-books-band h2 { font-weight: 800; }
.ie-nb-filters .ie-nb-max { flex-wrap: nowrap; }
.ie-nb-filters .ie-nb-max .form-control { min-width: 0; width: 1%; flex: 1 1 auto; }

/* =====================================================================
   Browse page: All / Nearby, location chip, radius, List / Grid / Map
   ===================================================================== */
/* header items stay on one line */
.ie-nav .nav-link, .ie-nav .btn { white-space: nowrap; }
.ie-nav .navbar-nav { align-items: center; }
@media (min-width: 992px) { .ie-nav-search { min-width: 180px; } }

.ie-browse-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem; margin-bottom: 1rem;
                 background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; }
.ie-mode { display: inline-flex; padding: .2rem; border-radius: .7rem; background: var(--ie-soft); border: 1px solid var(--ie-line); }
.ie-mode button { border: 0; background: transparent; padding: .4rem .9rem; border-radius: .55rem; font-weight: 600; color: #475569; white-space: nowrap; }
.ie-mode button.active { background: #fff; color: var(--ie-primary); box-shadow: 0 1px 3px rgba(2,6,23,.15); }
.ie-mode button[data-mode="nearby"].active i { color: var(--ie-accent); }

.ie-loc-chip { display: inline-flex; align-items: center; gap: .5rem; max-width: 18rem; padding: .3rem .75rem; border-radius: .7rem;
               border: 1px solid var(--ie-line); background: #fff; color: var(--ie-ink); text-align: left; }
.ie-loc-chip:hover { border-color: color-mix(in srgb, var(--ie-primary) 40%, #fff); }
.ie-loc-chip > i:first-child { color: var(--ie-accent); }
.ie-loc-chip-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ie-loc-chip-text small { font-size: .68rem; color: var(--ie-muted); text-transform: uppercase; letter-spacing: .05em; }
.ie-loc-chip-text strong { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-loc-chip.is-empty strong { color: var(--ie-primary); }

.ie-radius-pick { display: inline-flex; align-items: center; gap: .35rem; padding: 0 .6rem; border: 1px solid var(--ie-line); border-radius: .7rem; background: #fff; margin: 0; }
.ie-radius-pick i { color: var(--ie-muted); }
.ie-radius-pick select { border: 0; background: transparent; padding: .45rem 0; font-weight: 600; color: var(--ie-ink); outline: 0; }

.ie-tool-btn { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--ie-line); background: #fff; border-radius: .7rem; padding: .4rem .75rem; font-weight: 600; }
.ie-view { display: inline-flex; border: 1px solid var(--ie-line); border-radius: .7rem; overflow: hidden; background: #fff; }
.ie-view button { border: 0; background: transparent; padding: .4rem .7rem; color: #475569; display: inline-flex; align-items: center; gap: .3rem; }
.ie-view button + button { border-left: 1px solid var(--ie-line); }
.ie-view button.active { background: var(--ie-primary); color: #fff; }
@media (max-width: 767.98px) {
    .ie-view button span { display: none; }
    .ie-loc-chip { flex: 1 1 100%; max-width: none; order: 3; }
    .ie-mode { order: 1; } .ie-radius-pick { order: 4; } .ie-tool-btn { order: 2; } .ie-view { order: 2; }
    .ie-browse-bar > .flex-grow-1 { display: none; }
}

.ie-subcats { display: flex; flex-wrap: wrap; gap: .4rem; }
.ie-browse-status { font-size: .92rem; margin: -.25rem 0 .75rem; }
.ie-browse-status > i { color: var(--ie-accent); }
.ie-filter-panel { background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: 1rem; }
@media (max-width: 991.98px) { .ie-filter-panel { border: 0; padding: 0; } }
.ie-empty { text-align: center; padding: 2.5rem 1rem; background: #fff; border: 1px dashed var(--ie-line); border-radius: 1rem; }
.ie-empty > i { font-size: 2rem; color: var(--ie-accent); display: block; margin-bottom: .4rem; }

/* distance on a card */
.ie-dist-pill { position: absolute; left: .5rem; bottom: .5rem; background: rgba(15,23,42,.78); color: #fff; font-size: .72rem; font-weight: 600;
                padding: .15rem .5rem; border-radius: 2rem; }
.ie-price.is-free { color: #047857; }
.ie-card.is-skeleton .ie-thumb, .ie-card.is-skeleton span { background: linear-gradient(90deg, #eef0f5, #f6f7fb, #eef0f5); background-size: 200% 100%; animation: ie-shimmer 1.2s infinite; }
.ie-card.is-skeleton span { display: block; height: .75rem; border-radius: .4rem; margin: .45rem 0; }
.ie-card.is-skeleton span:nth-child(1) { width: 40%; } .ie-card.is-skeleton span:nth-child(2) { width: 85%; } .ie-card.is-skeleton span:nth-child(3) { width: 60%; }

/* list view: the same cards, laid out in rows */
.ie-results.is-list .row > [class*="col-"] { flex: 0 0 100%; max-width: 100%; }
.ie-results.is-list .ie-card { flex-direction: row; }
.ie-results.is-list .ie-thumb { flex: 0 0 200px; aspect-ratio: 4 / 3; border-radius: .9rem 0 0 .9rem; }
.ie-results.is-list .card-body { display: flex; flex-direction: column; justify-content: center; }
.ie-results.is-list .ie-title { font-size: 1.05rem; font-weight: 600; }
@media (max-width: 575.98px) { .ie-results.is-list .ie-thumb { flex-basis: 120px; } }

/* map view */
.ie-map-view { position: relative; }
.ie-map { height: min(70vh, 640px); min-height: 380px; border-radius: 1rem; overflow: hidden; border: 1px solid var(--ie-line); }
.ie-map-note { margin-top: .5rem; }

/* location chooser */
.ie-loc-gps { display: flex; align-items: center; gap: .8rem; width: 100%; padding: .8rem 1rem; border-radius: .8rem; text-align: left;
              border: 1px solid color-mix(in srgb, var(--ie-primary) 30%, #fff); background: color-mix(in srgb, var(--ie-primary) 6%, #fff); color: var(--ie-ink); }
.ie-loc-gps > i { font-size: 1.3rem; color: var(--ie-primary); }
.ie-loc-gps span { display: flex; flex-direction: column; }
.ie-loc-gps small { color: var(--ie-muted); }
.ie-loc-search { position: relative; }
.ie-loc-search i { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--ie-muted); }
.ie-loc-search input { width: 100%; padding: .65rem .8rem .65rem 2.3rem; border: 1px solid var(--ie-line); border-radius: .7rem; outline: 0; }
.ie-loc-search input:focus { border-color: var(--ie-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ie-primary) 15%, transparent); }
.ie-loc-list { display: flex; flex-direction: column; margin-top: .4rem; }
.ie-loc-item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .4rem; border: 0; border-bottom: 1px solid var(--ie-line); background: none; text-align: left; color: var(--ie-ink); }
.ie-loc-item:hover, .ie-loc-item:focus { background: var(--ie-soft); }
.ie-loc-item > i { width: 2rem; height: 2rem; flex: 0 0 2rem; display: grid; place-items: center; border-radius: 50%; background: var(--ie-soft); color: var(--ie-primary); }
.ie-loc-item span { display: flex; flex-direction: column; min-width: 0; }
.ie-loc-item small { color: var(--ie-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-loc-heading { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ie-muted); margin: 1rem 0 .1rem; }
.ie-loc-hint { padding: .6rem .4rem; color: var(--ie-muted); font-size: .88rem; }

/* books heading on the browse page */
.ie-books-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem;
                 border-radius: 1rem; background: linear-gradient(120deg, #ecfdf5, #f0fdfa); border: 1px solid #a7f3d0; }
.ie-results.is-list .card-body { min-width: 0; }
/* toolbar fits one line on laptops: view labels only on wide screens */
@media (max-width: 1399.98px) { .ie-view button span { display: none; } }
@media (min-width: 768px) { .ie-loc-chip { max-width: 15rem; } }
@media (max-width: 767.98px) {
    .ie-browse-bar { gap: .4rem; }
    .ie-mode { order: 1; flex: 1 1 auto; } .ie-mode button { flex: 1; }
    .ie-tool-btn { order: 2; } .ie-view { order: 3; }
    .ie-loc-chip { order: 4; flex: 1 1 0; min-width: 0; max-width: none; }
    .ie-radius-pick { order: 5; }
}
@media (max-width: 767.98px) {
    .ie-loc-chip { order: 3; flex: 1 1 100%; }
    .ie-radius-pick { order: 4; flex: 1 1 auto; }
    .ie-radius-pick select { width: 100%; }
    .ie-view { order: 5; }
}
.ie-map-modal { height: min(75vh, 680px); }
@media (max-width: 767.98px) { .ie-map-modal { height: calc(100vh - 150px); } }
.ie-pin.is-this span { background: var(--ie-accent); }
.ie-legend { display: inline-flex; align-items: center; gap: .35rem; margin-right: 1rem; }
.ie-legend .ie-pin span { width: 18px; height: 18px; border-width: 1.5px; }
.ie-legend .ie-pin span i { font-size: .55rem; }
.ie-legend .ie-me span { width: 12px; height: 12px; border-width: 2px; box-shadow: 0 0 0 3px rgba(37,99,235,.25); }

/* ---------- current location in the header (all pages) ---------- */
.ie-nav-loc { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; max-width: 15rem; }
.ie-nav-loc > i:first-child { color: var(--ie-accent); }
.ie-nav-loc-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; font-weight: 600; }
.ie-nav-loc-caret { font-size: .7rem; opacity: .6; }
@media (min-width: 992px) and (max-width: 1199.98px) { .ie-nav-loc { max-width: 9.5rem; } }
@media (max-width: 991.98px) { .ie-nav-loc { max-width: none; width: 100%; } }
.ie-near-note { margin: .2rem 0 0; font-size: .88rem; color: var(--bs-secondary-color); }
.ie-near-note > i { color: var(--ie-accent); }
.ie-card .ie-dist { margin-left: auto; }
.min-w-0 { min-width: 0; }

/* ======================================================================
   Form fields - one standard everywhere (industry norm):
   16px text (no zoom-in on phones), 44px tall touch targets, light grey
   placeholder that is clearly lighter than typed text, clear focus ring.
   ====================================================================== */
.form-control, .form-select, .ie-loc-search input {
    font-size: 1rem; line-height: 1.5; min-height: 2.75rem;
    padding: .55rem .85rem; border: 1px solid #d5dae5; border-radius: .6rem;
    background-color: #fff; color: var(--ie-ink);
    transition: border-color .15s, box-shadow .15s;
}
.form-select { padding-right: 2.4rem; }
textarea.form-control { min-height: 6.5rem; resize: vertical; }
.form-control::placeholder, .ie-loc-search input::placeholder {
    color: #9aa3b5; opacity: 1; font-weight: 400; font-size: .95rem;
}
.form-control:hover, .form-select:hover { border-color: #b9c1d1; }
.form-control:focus, .form-select:focus, .ie-loc-search input:focus {
    border-color: var(--ie-primary); outline: 0;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--ie-primary) 14%, transparent);
}
.form-control:disabled, .form-select:disabled { background-color: var(--ie-soft); color: var(--ie-muted); }
.form-control-sm, .form-select-sm { font-size: .875rem; min-height: 2.25rem; padding: .35rem .7rem; border-radius: .5rem; }
.form-select-sm { padding-right: 2rem; }
.form-control-lg, .form-select-lg { font-size: 1.05rem; min-height: 3rem; }
.form-label { font-size: .9rem; font-weight: 600; color: #334155; margin-bottom: .35rem; }
.form-text { font-size: .8rem; color: var(--ie-muted); }
.input-group > .form-control, .input-group > .form-select { min-height: 2.75rem; }
.input-group-text { font-size: .95rem; border-color: #d5dae5; background: var(--ie-soft); }
input[type="number"].form-control { font-variant-numeric: tabular-nums; }

/* icon-in-field search boxes (header, location chooser) */
.ie-nav-search .form-control { min-height: 2.5rem; padding-left: 2.4rem; font-size: .95rem; background: var(--ie-soft); border-color: var(--ie-line); }
.ie-nav-search .form-control:focus { background: #fff; }
.ie-loc-search input { padding-left: 2.5rem; min-height: 3rem; border-radius: .7rem; }
.ie-loc-search i { left: .95rem; font-size: 1rem; }

/* location chooser: tidy spacing */
#ieLocModal .modal-header { padding: 1rem 1.25rem; }
#ieLocModal .modal-body { padding: 1rem 1.25rem 1.25rem; }
#ieLocModal .modal-title { font-weight: 700; }
#ieLocModal .ie-loc-item strong { font-size: .95rem; font-weight: 600; }
#ieLocModal .ie-loc-item small { font-size: .8rem; }
#ieLocModal .ie-loc-gps strong { font-size: .95rem; }

/* ======================================================================
   Books & Stationery: multiple books on the post-ad form, book-wise prices on the ad
   ====================================================================== */
.ie-items { display: flex; flex-direction: column; gap: .5rem; }
.ie-item, .ie-item-head { display: grid; grid-template-columns: minmax(0, 1fr) 7.5rem 8.5rem 2rem; gap: .5rem; align-items: start; }
.ie-item-head { font-size: .78rem; font-weight: 600; color: var(--ie-muted); text-transform: uppercase; letter-spacing: .03em; }
.ie-item > button { height: 2.75rem; display: grid; place-items: center; font-size: 1.15rem; }
.ie-item input:disabled { background: var(--ie-soft); }
@media (max-width: 575.98px) {
    .ie-item { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 2rem; padding: .6rem; border: 1px solid var(--ie-line); border-radius: .7rem; }
    .ie-item > div:first-child { grid-column: 1 / -1; }
    .ie-item > button { grid-row: 2; grid-column: 3; }
}
.ie-bundle { border: 1px solid var(--ie-line); border-radius: .8rem; overflow: hidden; background: #fff; }
.ie-bundle-head { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap;
                  padding: .55rem .8rem; background: var(--ie-soft); border-bottom: 1px solid var(--ie-line); }
.ie-bundle .table { --bs-table-bg: transparent; }
.ie-bundle .table > :not(caption) > * > * { padding: .45rem .8rem; }
.ie-bundle tfoot th { border-bottom: 0; }

/* moderator: changes to a live ad */
.ie-diff td { white-space: pre-line; word-break: break-word; font-size: .88rem; }
.ie-diff-old { background: #fef2f2; color: #7f1d1d; }
.ie-diff-new { background: #f0fdf4; color: #14532d; }

/* requirements */
.ie-req-item { display: block; padding: 1rem 1.1rem; border: 1px solid var(--ie-line); border-radius: .9rem; background: #fff;
               color: var(--ie-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.ie-req-item:hover { border-color: color-mix(in srgb, var(--ie-primary) 40%, var(--ie-line)); box-shadow: 0 6px 20px rgba(15, 23, 42, .06); color: var(--ie-ink); }
.ie-visibility { border: 1px solid var(--ie-line); border-radius: .8rem; padding: .8rem 1rem; background: var(--ie-soft); }
.ie-yesno { display: flex; align-items: center; justify-content: space-between; gap: .75rem; background: #fff;
            border: 1px solid var(--ie-line); border-radius: .6rem; padding: .45rem .6rem; font-size: .92rem; }

/* notifications */
.ie-bell-badge { position: absolute; top: .15rem; right: -.1rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 1rem;
                 background: var(--ie-accent); color: #fff; font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center; }
@media (max-width: 991.98px) { .ie-bell-badge { position: static; margin-left: .35rem; display: inline-block; } }
.ie-unread { background: color-mix(in srgb, var(--ie-primary) 5%, #fff); }
#goodsPrice .ie-seg span { padding: .6rem 1rem; font-size: .95rem; }
.ie-yesno > span { min-width: 0; }
.ie-yesno .ie-seg { flex-shrink: 0; }
.ie-bundle tfoot > tr > * { border-bottom: 0; }
[data-item-add] { white-space: nowrap; }

/* ======================================================================
   Requirements next to ads: Ads | Requirements tabs, "Wanted" cards
   ====================================================================== */
.ie-kind-tabs { display: flex; gap: .25rem; border-bottom: 1px solid var(--ie-line); margin-bottom: .9rem; overflow-x: auto; }
.ie-kind-tabs > a, .ie-kind-tabs > span { display: inline-flex; align-items: center; gap: .4rem; padding: .55rem .9rem; font-weight: 600;
    color: var(--ie-muted); text-decoration: none; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.ie-kind-tabs > a:hover { color: var(--ie-primary); }
.ie-kind-tabs > .active { color: var(--ie-primary); border-bottom-color: var(--ie-accent); }
.ie-kind-count { font-size: .75rem; font-weight: 700; padding: .05rem .45rem; border-radius: 1rem; background: var(--ie-soft); color: var(--ie-muted); }
.ie-kind-tabs > .active .ie-kind-count { background: color-mix(in srgb, var(--ie-accent) 15%, #fff); color: var(--ie-accent); }
.ie-req-item { width: 100%; }
.ie-req-tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
              color: var(--ie-accent); background: color-mix(in srgb, var(--ie-accent) 10%, #fff); border-radius: 1rem; padding: .15rem .55rem; }
.ie-req-strip { background: color-mix(in srgb, var(--ie-accent) 5%, #fff); border: 1px solid color-mix(in srgb, var(--ie-accent) 20%, var(--ie-line));
                border-radius: 1rem; padding: .85rem; }
.ie-req-strip .ie-req-item { padding: .75rem .85rem; }
.ie-req-strip .ie-req-item p { display: none; }
.ie-req-item h3 { color: var(--ie-ink); } .ie-req-item:hover h3 { color: var(--ie-primary); }
.ie-sugg-box { background: var(--ie-soft); border: 1px solid var(--ie-line); border-radius: .6rem; padding: .6rem; height: 100%; }

/* ======================================================================
   Header (v2): utility bar (location + quick links) · main bar (brand, search, account, post) · category bar
   The utility bar scrolls away; the main bar and the category bar stay at the top.
   ====================================================================== */
:root { --ie-topbar-h: 36px; }
.ie-header { position: sticky; top: calc(-1 * var(--ie-topbar-h)); z-index: 1030; background: #fff; box-shadow: 0 1px 0 var(--ie-line), 0 6px 18px rgba(15, 23, 42, .04); }
.ie-header .ie-nav { position: static; border-bottom: 0; backdrop-filter: none; background: #fff; padding: .6rem 0; }
.ie-sticky { top: 8.5rem; }

.ie-topbar { height: var(--ie-topbar-h); background: var(--ie-primary); color: rgba(255,255,255,.85); font-size: .82rem; }
.ie-topbar .container { height: 100%; }
.ie-top-loc { display: inline-flex; align-items: center; gap: .4rem; min-width: 0; background: none; border: 0; color: #fff; padding: 0; font-size: .82rem; }
.ie-top-loc i { color: #fdba74; }
.ie-top-loc-label { opacity: .75; }
.ie-top-loc-text { max-width: 16rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-top-loc-change { margin-left: .2rem; padding: .05rem .5rem; border: 1px solid rgba(255,255,255,.35); border-radius: 1rem; font-size: .72rem; }
.ie-top-loc:hover .ie-top-loc-change { background: #fff; color: var(--ie-primary); }
.ie-top-links { gap: 1.25rem; }
.ie-top-links a { color: rgba(255,255,255,.85); text-decoration: none; white-space: nowrap; }
.ie-top-links a:hover { color: #fff; }
@media (max-width: 575.98px) { .ie-top-loc-label { display: none; } .ie-top-loc-text { max-width: 12rem; } }

.ie-nav-row { display: flex; align-items: center; gap: 1rem; flex-wrap: nowrap; }
.ie-nav-row .navbar-brand { margin-right: 0; flex-shrink: 0; }
.ie-main-search { position: relative; flex: 1 1 auto; max-width: 640px; align-items: center; }
.ie-main-search > i { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--ie-muted); z-index: 2; }
.ie-main-search .form-control { padding-left: 2.5rem; border-radius: .7rem; background: var(--ie-soft); border-color: var(--ie-line); min-height: 2.75rem; }
.ie-nav-row .ie-main-search .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.ie-main-search .form-control:focus { background: #fff; }

.ie-nav-actions { display: flex; align-items: center; gap: .35rem; margin-left: auto; flex-shrink: 0; }
.ie-icon-btn { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .7rem; color: #334155; font-size: 1.2rem; text-decoration: none; }
.ie-icon-btn:hover { background: var(--ie-soft); color: var(--ie-primary); }
.ie-icon-btn .ie-bell-badge { top: .2rem; right: .15rem; position: absolute; }
.ie-account-btn { display: inline-flex; align-items: center; gap: .45rem; background: none; border: 1px solid var(--ie-line); border-radius: 2rem; padding: .25rem .6rem .25rem .25rem; color: var(--ie-ink); }
.ie-account-btn:hover { border-color: var(--ie-primary); }
.ie-account-name { font-weight: 600; font-size: .9rem; }
.ie-avatar { width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
             background: color-mix(in srgb, var(--ie-primary) 12%, #fff); color: var(--ie-primary); flex-shrink: 0; }
.ie-avatar-lg { width: 2.6rem; height: 2.6rem; font-size: 1.1rem; }

.ie-post-btn { white-space: nowrap; font-weight: 700; padding: .55rem 1rem; border-radius: .7rem; }
.ie-burger { border: 0; font-size: 1.6rem; padding: .2rem .4rem; color: var(--ie-ink); }
@media (min-width: 992px) { .ie-burger { display: none; } }
@media (max-width: 575.98px) {
    .ie-post-btn span { display: none; }
    .ie-post-btn { padding: .5rem .7rem; }
    
    
    .ie-nav-row { gap: .5rem; }
}

/* account menu: compact, two columns */
.ie-account-menu { width: 20rem; padding: 0; border-radius: .9rem; border-color: var(--ie-line); box-shadow: 0 16px 40px rgba(15, 23, 42, .14); overflow: hidden; }
.ie-account-head { display: flex; gap: .7rem; align-items: center; padding: .9rem 1rem; background: var(--ie-soft); border-bottom: 1px solid var(--ie-line); }
.ie-account-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .6rem; }
.ie-account-grid a, .ie-account-staff a { display: flex; align-items: center; gap: .45rem; padding: .5rem .55rem; border-radius: .55rem; color: var(--ie-ink);
                                         text-decoration: none; font-size: .87rem; font-weight: 500; white-space: nowrap; }
.ie-account-grid a i, .ie-account-staff a i { color: var(--ie-primary); }
.ie-account-grid a:hover, .ie-account-staff a:hover { background: var(--ie-soft); }
.ie-account-staff { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .4rem .6rem; border-top: 1px solid var(--ie-line); }
.ie-account-foot { padding: .6rem; border-top: 1px solid var(--ie-line); }

/* category bar + mega menu */
.ie-catbar { border-top: 1px solid var(--ie-line); background: #fff; }
.ie-catbar .container { min-height: 2.75rem; }
.ie-allcats-btn { display: inline-flex; align-items: center; gap: .45rem; height: 100%; padding: 0 1rem 0 0; margin-right: .5rem; border: 0; background: none;
                  font-weight: 700; color: var(--ie-primary); border-right: 1px solid var(--ie-line); white-space: nowrap; }
.ie-allcats { display: flex; }
.ie-catlinks { display: flex; align-items: stretch; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0;
               mask-image: linear-gradient(90deg, #000 92%, transparent); }
.ie-catlinks::-webkit-scrollbar { display: none; }
.ie-catlinks a { display: flex; align-items: center; padding: 0 .8rem; color: #334155; text-decoration: none; font-size: .88rem; font-weight: 500;
                 white-space: nowrap; border-bottom: 2px solid transparent; }
.ie-catlinks a:hover, .ie-catlinks a.active { color: var(--ie-primary); border-bottom-color: var(--ie-accent); }
.ie-catbar-req { display: flex; align-items: center; gap: .35rem; padding-left: 1rem; margin-left: .5rem; border-left: 1px solid var(--ie-line);
                 color: var(--ie-accent); font-weight: 700; font-size: .88rem; text-decoration: none; white-space: nowrap; }
.ie-catbar-req:hover { color: color-mix(in srgb, var(--ie-accent) 80%, #000); }
.ie-mega { width: min(1100px, 92vw); padding: 1.25rem; border-radius: 1rem; border-color: var(--ie-line); box-shadow: 0 20px 50px rgba(15, 23, 42, .16); margin-top: 0 !important; }
.ie-mega-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem 1.5rem; }
.ie-mega-col { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.ie-mega-col a { color: #475569; text-decoration: none; font-size: .86rem; padding: .1rem 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-mega-col a:hover { color: var(--ie-primary); }
.ie-mega-col .ie-mega-head { font-weight: 700; color: var(--ie-ink); font-size: .92rem; margin-bottom: .2rem; }
.ie-mega-head i { color: var(--ie-accent); margin-right: .2rem; }
.ie-mega-col .ie-mega-more { color: var(--ie-primary); font-weight: 600; font-size: .8rem; }
.ie-mega-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; margin-top: 1rem; padding-top: .8rem; border-top: 1px solid var(--ie-line); }
.ie-mega-foot a { font-weight: 700; text-decoration: none; }
@media (max-width: 1199.98px) { .ie-mega-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* mobile menu */
.ie-mobile-menu { width: min(340px, 88vw); }
.ie-mm-loc { display: flex; align-items: center; gap: .5rem; width: 100%; padding: .7rem .8rem; border: 1px solid var(--ie-line); border-radius: .7rem; background: var(--ie-soft); text-align: left; }
.ie-mm-loc i { color: var(--ie-accent); }
.ie-mm-loc span { flex: 1; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-mm-loc small { color: var(--ie-primary); font-weight: 600; }
.ie-mm-title { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ie-muted); margin: 1rem 0 .35rem; }
.ie-mm-link { display: flex; align-items: center; gap: .6rem; padding: .55rem .2rem; color: var(--ie-ink); text-decoration: none; font-weight: 500; background: none; border: 0; }
.ie-mm-link i { color: var(--ie-primary); width: 1.2rem; }
.ie-mm-cats { display: grid; grid-template-columns: 1fr; gap: .1rem; }
.ie-mm-cats a { display: flex; align-items: center; gap: .55rem; padding: .45rem .2rem; color: #334155; text-decoration: none; font-size: .92rem; }
.ie-mm-cats a i { color: var(--ie-accent); width: 1.2rem; }

/* all categories page */
.ie-allcats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1rem; }
.ie-allcats-card { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1rem 1.1rem; }
.ie-allcats-head { display: flex; gap: .7rem; align-items: center; text-decoration: none; color: var(--ie-ink); margin-bottom: .6rem; }
.ie-allcats-head small { display: block; color: var(--ie-muted); font-size: .78rem; }
.ie-allcats-card li { padding: .18rem 0; font-size: .9rem; }
.ie-allcats-card li a { color: #334155; text-decoration: none; }
.ie-allcats-card li a:hover { color: var(--ie-primary); }

/* "Other" category on the post-ad form */
.ie-other-cat { background: color-mix(in srgb, var(--ie-primary) 4%, #fff); border: 1px dashed color-mix(in srgb, var(--ie-primary) 35%, var(--ie-line)); border-radius: .8rem; padding: .8rem 1rem; }

/* ======================================================================
   Footer (v2)
   ====================================================================== */
.ie-footer { padding-top: 2.5rem; }
.ie-footer-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: 2.5rem;
                 border-radius: 1rem; background: linear-gradient(120deg, color-mix(in srgb, var(--ie-primary) 70%, #0b1220), #111a2e); border: 1px solid rgba(255,255,255,.08); }
.ie-footer-cta strong { display: block; color: #fff; font-size: 1.1rem; }
.ie-footer-cta span { font-size: .9rem; }
.ie-footer-trust li { display: flex; gap: .5rem; align-items: baseline; }
.ie-footer-trust i { color: #fdba74; }
.ie-footer-link { color: #fdba74 !important; text-decoration: none; }
.ie-footer-bottom a { color: rgba(255,255,255,.65); }

/* ======================================================================
   Polish: mega menu fits the screen, hero chip, band buttons, advertise page
   ====================================================================== */
.ie-mega { max-height: calc(100vh - 9rem); overflow-y: auto; overscroll-behavior: contain; }

.ie-band-actions { display: grid; grid-template-columns: 1fr; gap: .6rem; max-width: 340px; margin-left: auto; }
.ie-band-actions .btn { display: flex; align-items: center; justify-content: center; gap: .5rem; font-weight: 600; border-radius: .8rem; font-size: 1rem; padding: .7rem 1rem; }
.ie-band-actions .btn-outline-light { border-width: 1.5px; }
@media (max-width: 991.98px) { .ie-band-actions { margin-left: 0; max-width: none; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); } }
.ie-adv-plan { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ie-line); border-radius: 1.1rem; padding: 1.5rem; }
.ie-adv-best { border: 2px solid var(--ie-primary); box-shadow: 0 12px 30px rgba(30, 58, 138, .1); }
.ie-adv-name { font-weight: 700; color: var(--ie-primary); }
.ie-adv-name i { color: #f59e0b; }
.ie-adv-price { font-size: 2rem; font-weight: 800; margin: .3rem 0 1rem; }
.ie-adv-points { list-style: none; padding: 0; margin: 0 0 1.25rem; flex: 1; }
.ie-adv-points li { display: flex; gap: .5rem; padding: .3rem 0; font-size: .93rem; }
.ie-adv-points i { color: #16a34a; font-weight: 700; }

/* ---------- ad packs (database/11) ---------- */
.ie-pack-use { border: 1px solid color-mix(in srgb, var(--ie-accent) 35%, var(--ie-line)); background: color-mix(in srgb, var(--ie-accent) 7%, #fff);
               border-radius: .9rem; padding: 1rem 1.1rem; }
.ie-pack-use .form-check-input { margin-top: .3rem; }
.ie-pack { position: relative; height: 100%; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ie-line);
           border-radius: 1rem; padding: 1.4rem 1.25rem 1.25rem; transition: box-shadow .15s, border-color .15s; }
.ie-pack:hover { box-shadow: 0 .5rem 1.5rem rgba(15, 23, 42, .08); }
.ie-pack.is-best { border-color: var(--ie-accent); box-shadow: 0 .5rem 1.5rem color-mix(in srgb, var(--ie-accent) 18%, transparent); }
.ie-pack .ie-adv-points { flex: 1; }
.ie-pack-count { font-size: .95rem; color: var(--ie-muted); }
.ie-pack-count strong { font-size: 2rem; line-height: 1; color: var(--ie-primary); margin-right: .2rem; }
.ie-pack-name { font-weight: 600; margin: .35rem 0 .5rem; }
.ie-pack-price { font-size: 1.5rem; font-weight: 700; }
.ie-pack-balance { background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: 1rem 1.1rem; height: 100%; }
.ie-pack-balance-num { font-size: 2.4rem; font-weight: 700; line-height: 1.1; color: var(--ie-primary); }
.ie-pack-progress { width: 8rem; height: .4rem; margin-left: auto; margin-top: .3rem; }
.ie-pack-progress .progress-bar { background: var(--ie-accent); }
.ie-pack-uses li { padding: .2rem 0; border-top: 1px dashed var(--ie-line); }
.ie-pack-uses li:first-child { border-top: 0; }

/* =====================================================================
   Design v3 - one type scale, one spacing rhythm, new listing cards.
   Comes last on purpose: it settles the earlier layers.
   ===================================================================== */
:root {
    --ie-primary: #1E3A8A; --ie-accent: #EA580C; --ie-ink: #111827; --ie-ink-2: #374151; --ie-muted: #6B7280;
    --ie-line: #E5E7EB; --ie-soft: #F6F7F9; --ie-surface: #fff;
    --ie-r-sm: .5rem; --ie-r: .75rem; --ie-r-lg: 1rem;
    --ie-shadow-1: 0 1px 2px rgba(17, 24, 39, .05);
    --ie-shadow-2: 0 12px 28px -14px rgba(17, 24, 39, .22);
    --bs-body-font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --bs-body-font-size: .9375rem;
    --bs-body-line-height: 1.55;
    --bs-body-color: var(--ie-ink);
    --bs-border-color: var(--ie-line);
    --bs-link-color-rgb: 30, 58, 138;
    --bs-border-radius: .6rem;
}
body { font-family: var(--bs-body-font-family); font-size: var(--bs-body-font-size); line-height: var(--bs-body-line-height);
       -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "tnum" 0; }
h1, .h1 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.1rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
h2, .h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 750; letter-spacing: -.015em; line-height: 1.25; }
h3, .h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
h4, .h4 { font-size: 1.1rem; font-weight: 700; line-height: 1.35; }
h5, .h5 { font-size: 1rem; font-weight: 700; }
h6, .h6 { font-size: .9375rem; font-weight: 700; }
.small, small { font-size: .8125rem; }
.text-muted { color: var(--ie-muted) !important; }
p { margin-bottom: .85rem; }
a { text-underline-offset: .15em; }
.container { max-width: 1240px; }
@media (min-width: 1400px) { .container { max-width: 1280px; } }
main.container { padding-top: 1.5rem; padding-bottom: 2.5rem; }

/* buttons and fields: one height, one radius */
.btn { --bs-btn-font-weight: 600; --bs-btn-padding-x: 1rem; --bs-btn-padding-y: .5rem; --bs-btn-font-size: .9rem;
       --bs-btn-border-radius: var(--ie-r-sm); letter-spacing: .005em; }
.btn-sm { --bs-btn-padding-x: .7rem; --bs-btn-padding-y: .3rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: .45rem; }
.btn-lg { --bs-btn-padding-x: 1.4rem; --bs-btn-padding-y: .7rem; --bs-btn-font-size: 1rem; --bs-btn-border-radius: var(--ie-r); }
.btn-outline-primary { --bs-btn-color: var(--ie-primary); --bs-btn-border-color: color-mix(in srgb, var(--ie-primary) 35%, #fff);
                       --bs-btn-hover-bg: var(--ie-primary); --bs-btn-hover-border-color: var(--ie-primary);
                       --bs-btn-active-bg: var(--ie-primary); --bs-btn-active-border-color: var(--ie-primary); }
.btn-outline-secondary { --bs-btn-color: var(--ie-ink-2); --bs-btn-border-color: var(--ie-line); --bs-btn-hover-bg: var(--ie-soft);
                         --bs-btn-hover-color: var(--ie-ink); --bs-btn-hover-border-color: #d1d5db; --bs-btn-active-bg: #eef0f3;
                         --bs-btn-active-color: var(--ie-ink); --bs-btn-active-border-color: #d1d5db; }
.form-control, .form-select { border-radius: var(--ie-r-sm); border-color: #d9dce3; padding: .55rem .8rem; font-size: .9375rem; }
.form-control:focus, .form-select:focus { border-color: var(--ie-primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ie-primary) 15%, transparent); }
.form-label { font-weight: 600; font-size: .875rem; color: var(--ie-ink-2); margin-bottom: .35rem; }
.form-text { color: var(--ie-muted); font-size: .8125rem; }
.badge { font-weight: 600; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--ie-accent); outline-offset: 2px; }

/* surfaces */
.ie-panel, .bg-white.rounded { border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg) !important; box-shadow: var(--ie-shadow-1); }
.table { --bs-table-border-color: var(--ie-line); }
.table > thead th { font-size: .8125rem; font-weight: 600; color: var(--ie-muted); border-bottom-width: 1px; }

/* sections: one rhythm */
.ie-section { padding: 3rem 0; }
.ie-section-head { margin-bottom: 1.25rem; align-items: end; }
.ie-section-head h2 { font-size: clamp(1.3rem, 1.1rem + .8vw, 1.6rem); font-weight: 750; letter-spacing: -.015em; margin: 0; }
.ie-section-head p, .ie-near-note { margin: .25rem 0 0; color: var(--ie-muted); font-size: .875rem; }
.ie-eyebrow { font-size: .8125rem; letter-spacing: 0; text-transform: none; font-weight: 600; }
.ie-link-arrow { font-size: .9rem; }

/* ---------- listing card ---------- */
.ie-ad { position: relative; display: flex; flex-direction: column; height: 100%; background: var(--ie-surface);
         border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg); overflow: hidden; box-shadow: var(--ie-shadow-1);
         transition: box-shadow .18s ease, border-color .18s ease; }
.ie-ad:hover { box-shadow: var(--ie-shadow-2); border-color: #d6d9e0; }
.ie-ad:focus-within { border-color: var(--ie-primary); }
.ie-ad.is-featured { border-color: color-mix(in srgb, var(--ie-accent) 45%, var(--ie-line)); }
.ie-ad-media { --tint: var(--ie-primary); position: relative; display: block; aspect-ratio: 3 / 2; overflow: hidden;
               background: color-mix(in srgb, var(--tint) 7%, #f3f4f6); }
.ie-ad-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.ie-ad:hover .ie-ad-media img { transform: scale(1.03); }
.ie-ad-nophoto { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.1rem; color: color-mix(in srgb, var(--tint) 70%, #fff);
                 background: radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--tint) 14%, #fff), color-mix(in srgb, var(--tint) 6%, #f5f6f8) 70%); }
.ie-ad-tags { position: absolute; top: .6rem; left: .6rem; right: .6rem; display: flex; gap: .35rem; flex-wrap: wrap; pointer-events: none; }
.ie-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .2rem .5rem; border-radius: .4rem; font-size: .72rem; font-weight: 700;
          line-height: 1.2; color: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.15); }
.ie-tag-featured { background: var(--ie-accent); }
.ie-tag-urgent { background: #DC2626; }
.ie-ad-body { display: flex; flex-direction: column; flex: 1; padding: .8rem .9rem .85rem; min-width: 0; }
.ie-ad-cat { font-size: .75rem; font-weight: 600; color: var(--ie-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: .2rem; }
.ie-ad-title { font-size: .95rem; font-weight: 650; line-height: 1.35; letter-spacing: -.005em; margin: 0 0 .35rem;
               display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em; }
.ie-ad-title a { color: var(--ie-ink); text-decoration: none; }
.ie-ad-title a:hover { color: var(--ie-primary); }
.ie-ad-title a:focus-visible { outline: none; }
.ie-ad-price { margin-bottom: .7rem; font-size: 1.05rem; font-weight: 800; color: var(--ie-primary); letter-spacing: -.01em; font-variant-numeric: tabular-nums;
               white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-ad-price.is-free { color: #047857; }
.ie-ad-foot { display: flex; align-items: center; gap: .5rem; margin-top: auto; padding-top: .6rem; border-top: 1px solid #f0f1f4;
              font-size: .78rem; color: var(--ie-muted); min-width: 0; }
.ie-ad-place { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-ad-place i { color: #9CA3AF; }
.ie-ad-dist { flex-shrink: 0; font-weight: 700; color: var(--ie-primary); background: color-mix(in srgb, var(--ie-primary) 8%, #fff);
              padding: .1rem .45rem; border-radius: 1rem; }
.ie-ad-date { flex-shrink: 0; }
@media (max-width: 575.98px) {
    .ie-ad-body { padding: .65rem .7rem .7rem; }
    .ie-ad-title { font-size: .875rem; }
    .ie-ad-price { font-size: .95rem; white-space: normal; line-height: 1.3; }
    .ie-upg-grid { grid-template-columns: 1fr 1fr; gap: .75rem; }
    .ie-upg { padding: .9rem; }
    .ie-upg p { font-size: .8rem; }
    .ie-upg-price strong { font-size: 1.15rem; }
    .ie-ad-cat { display: none; }
}
/* list view of the browse page */
.ie-results.is-list .ie-ad { flex-direction: row; }
.ie-results.is-list .ie-ad-media { flex: 0 0 240px; aspect-ratio: auto; min-height: 160px; }
.ie-results.is-list .ie-ad-body { padding: 1rem 1.2rem; }
.ie-results.is-list .ie-ad-title { font-size: 1.05rem; min-height: 0; }
.ie-results.is-list .ie-ad-price { font-size: 1.15rem; }
@media (max-width: 575.98px) { .ie-results.is-list .ie-ad-media { flex-basis: 120px; min-height: 110px; } .ie-results.is-list .ie-ad-body { padding: .7rem .8rem; } }

/* ---------- category bar ---------- */
.ie-catbar .container { min-height: 2.9rem; }
.ie-allcats-btn { font-size: .9rem; padding-right: 1.1rem; margin-right: .35rem; }
.ie-catlinks { mask-image: linear-gradient(90deg, #000 94%, transparent); }
.ie-catlinks a { font-size: .875rem; font-weight: 550; color: var(--ie-ink-2); padding: 0 .75rem; gap: .35rem; }
.ie-catlinks a i { font-size: .95rem; color: #9CA3AF; }
.ie-catlinks a:hover i, .ie-catlinks a.active i { color: var(--ie-accent); }
.ie-catlinks a.is-books { color: var(--ie-primary); font-weight: 700; }
.ie-catlinks a.is-books i { color: #65a30d; }
.ie-catbar-req { font-size: .875rem; }

/* ---------- advertise page ---------- */
.ie-adv-hero { max-width: 720px; margin: 0 auto 2rem; text-align: center; }
.ie-adv-hero p { color: var(--ie-muted); font-size: 1.02rem; margin: 0; }
.ie-upg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
.ie-upg { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg); padding: 1.2rem; box-shadow: var(--ie-shadow-1); }
.ie-upg-icon { width: 2.5rem; height: 2.5rem; border-radius: .7rem; display: grid; place-items: center; font-size: 1.15rem; margin-bottom: .8rem;
               color: var(--tone); background: color-mix(in srgb, var(--tone) 12%, #fff); }
.ie-upg h3 { font-size: 1rem; margin: 0 0 .3rem; }
.ie-upg p { font-size: .85rem; color: var(--ie-muted); margin: 0 0 1rem; flex: 1; }
.ie-upg-price { display: flex; align-items: baseline; gap: .35rem; padding-top: .8rem; border-top: 1px solid #f0f1f4; }
.ie-upg-price strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -.01em; }
.ie-upg-price span { font-size: .8rem; color: var(--ie-muted); }
.ie-adv-steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.ie-adv-steps li { counter-increment: s; position: relative; padding: 1rem 1rem 1rem 3.2rem; background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg); font-size: .9rem; color: var(--ie-ink-2); }
.ie-adv-steps li::before { content: counter(s); position: absolute; left: 1rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
                            display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: var(--ie-primary); }
.ie-adv-plan { border-radius: var(--ie-r-lg); padding: 1.6rem; box-shadow: var(--ie-shadow-1); }
.ie-adv-best { border-width: 1.5px; box-shadow: var(--ie-shadow-2); }
.ie-adv-price { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; margin: .2rem 0 .8rem; }
.ie-adv-points { list-style: none; padding: 0; margin: 0 0 1.25rem; }
.ie-adv-points li { display: flex; gap: .5rem; padding: .3rem 0; color: var(--ie-ink-2); }
.ie-adv-points li i { color: #16a34a; }

/* packs: quieter, aligned with the cards above */
.ie-pack { border-radius: var(--ie-r-lg); box-shadow: var(--ie-shadow-1); }
.ie-pack:hover { box-shadow: var(--ie-shadow-2); }
.ie-plan-ribbon { letter-spacing: 0; text-transform: none; font-size: .75rem; }
.ie-packs .ie-eyebrow { color: var(--ie-accent); }

/* footer headings: sentence case, readable */
.ie-footer-h { font-size: .9rem; letter-spacing: 0; text-transform: none; }
.ie-footer { font-size: .875rem; }

/* ---------- header v3: quiet utility bar, logo, search with location ---------- */
:root { --ie-topbar-h: 34px; }
.ie-header { box-shadow: 0 1px 0 var(--ie-line); }
.ie-topbar { background: var(--ie-soft); color: var(--ie-muted); border-bottom: 1px solid var(--ie-line); font-size: .8125rem; }
.ie-top-tagline { color: var(--ie-muted); }
.ie-top-links { gap: 0; }
.ie-top-links a { color: var(--ie-ink-2); padding: 0 .8rem; border-left: 1px solid var(--ie-line); line-height: 1; }
.ie-top-links a:first-child { border-left: 0; }
.ie-top-links a:last-child { padding-right: 0; }
.ie-top-links a:hover { color: var(--ie-primary); }
.ie-top-loc { color: var(--ie-ink); font-size: .8125rem; }
.ie-top-loc i { color: var(--ie-accent); }
.ie-top-loc-change { border-color: var(--ie-line); color: var(--ie-primary); background: #fff; }
.ie-header .ie-nav { padding: .75rem 0; }
.ie-nav-row { gap: 1.5rem; }

.ie-icon-btn { width: 2.5rem; height: 2.5rem; border-radius: .6rem; color: var(--ie-ink-2); font-size: 1.15rem; }
.ie-account-btn { padding: .2rem .55rem .2rem .2rem; border-color: var(--ie-line); font-weight: 600; font-size: .875rem; }
.ie-avatar { background: color-mix(in srgb, var(--ie-primary) 10%, #fff); color: var(--ie-primary); font-weight: 700; }
.ie-post-btn { height: 2.6rem; display: inline-flex; align-items: center; gap: .3rem; padding: 0 1.05rem; border-radius: .6rem; font-size: .9rem; }
.ie-nav-actions { gap: .35rem; }

/* ---------- ad card extras ---------- */
.ie-ad-photos { position: absolute; right: .6rem; bottom: .6rem; display: inline-flex; align-items: center; gap: .25rem; padding: .15rem .45rem;
                border-radius: .4rem; background: rgba(17, 24, 39, .7); color: #fff; font-size: .72rem; font-weight: 600; }
.ie-ad-poster { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin: -.35rem 0 .7rem; font-size: .78rem; color: var(--ie-ink-2); }
.ie-ad-verified { color: #047857; font-weight: 600; }
.ie-ad-verified i { color: #10B981; }

/* ---------- package choices (Promote page) ---------- */
.ie-opts { background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg); overflow: hidden; box-shadow: var(--ie-shadow-1); }
.ie-opts-head { padding: 1rem 1.2rem .85rem; border-bottom: 1px solid var(--ie-line); }
.ie-opts-head h2 { font-size: 1.05rem; margin: 0 0 .15rem; }
.ie-opts-head p { margin: 0; font-size: .85rem; color: var(--ie-muted); }
.ie-opt { display: block; position: relative; margin: 0; cursor: pointer; }
.ie-opt + .ie-opt { border-top: 1px solid #f0f1f4; }
.ie-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ie-opt-row { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.2rem; transition: background .12s; }
.ie-opt:hover .ie-opt-row { background: #fafbfc; }
.ie-opt input:checked + .ie-opt-row { background: color-mix(in srgb, var(--ie-primary) 5%, #fff); box-shadow: inset 3px 0 0 var(--ie-primary); }
.ie-opt input:focus-visible + .ie-opt-row { outline: 2px solid var(--ie-accent); outline-offset: -2px; }
.ie-opt input:disabled + .ie-opt-row { cursor: default; }
.ie-opt-radio { flex: 0 0 1.15rem; height: 1.15rem; border-radius: 50%; border: 1.5px solid #c5c9d3; background: #fff; transition: border .12s; }
.ie-opt input:checked + .ie-opt-row .ie-opt-radio { border: 5px solid var(--ie-primary); }
.ie-opt-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ie-opt-main strong { font-size: .95rem; font-weight: 650; color: var(--ie-ink); }
.ie-opt-main small { font-size: .8125rem; color: var(--ie-muted); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .5rem; margin-top: .1rem; }
.ie-opt-main s { color: #9CA3AF; }
.ie-opt-save { background: #DCFCE7; color: #166534; font-weight: 700; font-size: .72rem; padding: .05rem .45rem; border-radius: 1rem; }
.ie-opt-flag { flex-shrink: 0; font-size: .72rem; font-weight: 700; color: var(--ie-accent); background: color-mix(in srgb, var(--ie-accent) 10%, #fff);
               padding: .15rem .5rem; border-radius: 1rem; }
.ie-opt-price { flex-shrink: 0; font-size: 1.15rem; font-weight: 800; color: var(--ie-ink); font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.ie-opt-count { flex: 0 0 3rem; height: 3rem; border-radius: .7rem; display: flex; flex-direction: column; align-items: center; justify-content: center;
                background: color-mix(in srgb, var(--ie-accent) 10%, #fff); color: var(--ie-accent); line-height: 1; }
.ie-opt-count strong { font-size: 1.15rem; font-weight: 800; }
.ie-opt-count small { font-size: .65rem; font-weight: 600; margin-top: .1rem; }
.ie-opt-icon { flex: 0 0 2.4rem; height: 2.4rem; border-radius: .6rem; display: grid; place-items: center; background: var(--ie-soft); color: var(--ie-primary); }
@media (max-width: 575.98px) { .ie-opt-row { padding: .85rem .9rem; gap: .65rem; } .ie-opt-flag { display: none; } .ie-opt-count, .ie-opt-icon { display: none; } }

.ie-summary { background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg); padding: 1.25rem; box-shadow: var(--ie-shadow-2); }
.ie-summary-line { display: flex; justify-content: space-between; gap: .75rem; font-weight: 600; }
.ie-summary-note { font-size: .8125rem; color: var(--ie-muted); margin: .25rem 0 1rem; min-height: 1.2em; }
.ie-summary-total { display: flex; justify-content: space-between; align-items: baseline; padding: .9rem 0; margin-bottom: 1rem; border-top: 1px solid var(--ie-line); }
.ie-summary-total strong { font-size: 1.6rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.ie-summary-small { font-size: .78rem; color: var(--ie-muted); margin: .8rem 0 0; }

/* ---------- pack cards (Advertise, My ad packs) ---------- */
.ie-pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ie-pk { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r-lg);
         padding: 1.4rem 1.3rem 1.3rem; box-shadow: var(--ie-shadow-1); }
.ie-pk.is-best { border: 1.5px solid var(--ie-accent); box-shadow: 0 16px 36px -20px color-mix(in srgb, var(--ie-accent) 60%, transparent); }
.ie-pk-flag { position: absolute; top: -.7rem; left: 1.3rem; background: var(--ie-accent); color: #fff; font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 1rem; }
.ie-pk-top { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.ie-pk-count { font-size: 2.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: var(--ie-primary); }
.ie-pk-unit { display: flex; flex-direction: column; font-weight: 700; line-height: 1.2; }
.ie-pk-unit small { font-weight: 500; color: var(--ie-muted); font-size: .8rem; }
.ie-pk-price { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ie-pk-each { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .5rem; font-size: .85rem; color: var(--ie-ink-2); margin: .15rem 0 1rem; }
.ie-pk-each s { color: #9CA3AF; }
.ie-pk-points { list-style: none; padding: .9rem 0 0; margin: 0 0 1.2rem; border-top: 1px solid #f0f1f4; font-size: .85rem; color: var(--ie-ink-2); flex: 1; }
.ie-pk-points li { display: flex; gap: .45rem; padding: .2rem 0; }
.ie-pk-points i { color: #16a34a; }
.ie-summary h2 { color: var(--ie-ink); }

/* ---------- two-layer header (no utility bar) + phones ---------- */
:root { --ie-topbar-h: 0px; }
.ie-header { top: 0; }

/* card facts: short chips from the ad's own fields */
.ie-ad-facts { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; padding: 0; margin: 0 0 .6rem; }
.ie-ad-facts li { max-width: 100%; padding: .12rem .5rem; border-radius: .4rem; background: var(--ie-soft); border: 1px solid #eceef2;
                  font-size: .75rem; font-weight: 500; color: var(--ie-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-ad-title { min-height: 0; }

@media (max-width: 991.98px) {
    .ie-header .ie-nav { padding: .55rem 0 .5rem; }
    .ie-nav-row { gap: .75rem; }
    .ie-catbar .container { min-height: 2.6rem; }
    .ie-catlinks a { padding: 0 .6rem; font-size: .84rem; }
}
@media (max-width: 575.98px) {
    .ie-hide-xs { display: none !important; }
    .ie-nav-row { gap: .5rem; }
    
    
    
    .ie-post-btn { width: 2.5rem; height: 2.5rem; padding: 0; justify-content: center; border-radius: .6rem; }
    .ie-post-btn span { display: none; }
    
    .ie-icon-btn { width: 2.3rem; height: 2.3rem; }
    .ie-burger { padding: .1rem .2rem; font-size: 1.5rem; }
    .ie-catlinks a i { display: none; }

    .ie-ad-facts { margin-bottom: .5rem; }
    .ie-ad-facts li:nth-child(n+3) { display: none; }
    .ie-ad-facts li { font-size: .7rem; padding: .1rem .4rem; }
    .ie-ad-poster { font-size: .72rem; margin-bottom: .55rem; }
    .ie-ad-foot { font-size: .72rem; }
    .ie-ad-date { display: none; }
    .ie-section { padding: 2rem 0; }
    main.container { padding-top: 1rem; }
}

/* admin: category decision for ads in "Other" */
.ie-cat-decide { background: #FFFBEB; border: 1px solid #FCD34D; border-radius: var(--ie-r-lg); padding: 1.1rem; }
.ie-cat-decide-head { display: flex; gap: .75rem; margin-bottom: 1rem; }
.ie-cat-decide-head > i { font-size: 1.4rem; color: #B45309; }
.ie-cat-decide-box { background: #fff; border: 1px solid var(--ie-line); border-radius: var(--ie-r); padding: 1rem; height: 100%; }

/* sign-up steps and the code field */
.ie-steps { display: flex; gap: .5rem; list-style: none; padding: 0; counter-reset: st; font-size: .8125rem; }
.ie-steps li { counter-increment: st; flex: 1; display: flex; align-items: center; gap: .45rem; color: var(--ie-muted); padding-bottom: .5rem;
               border-bottom: 3px solid var(--ie-line); }
.ie-steps li::before { content: counter(st); width: 1.4rem; height: 1.4rem; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
                       font-size: .75rem; font-weight: 700; background: var(--ie-soft); color: var(--ie-muted); border: 1px solid var(--ie-line); }
.ie-steps li.is-current { color: var(--ie-ink); font-weight: 600; border-bottom-color: var(--ie-primary); }
.ie-steps li.is-current::before { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }
.ie-steps li.is-done { color: var(--ie-ink-2); border-bottom-color: #10B981; }
.ie-steps li.is-done::before { content: "\2713"; background: #10B981; border-color: #10B981; color: #fff; }
.ie-otp-input { font-size: 1.6rem; letter-spacing: .5em; text-align: center; font-variant-numeric: tabular-nums; font-weight: 700; }
.ie-otp-input::placeholder { letter-spacing: .5em; color: #d1d5db; }

/* password rules (sign-up) and the "passwords match" tick */
.ie-pw-rules { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .25rem .9rem; font-size: .8rem; color: var(--ie-muted); }
.ie-pw-rules li::before { content: "\2022"; display: inline-block; width: 1em; color: #c5c9d3; }
.ie-pw-rules li.is-ok { color: #047857; }
.ie-pw-rules li.is-ok::before { content: "\2713"; color: #10B981; font-weight: 700; }
.ie-pw-confirm { padding-right: 2.4rem; }
.ie-pw-match { position: absolute; right: .8rem; top: 50%; transform: translateY(-50%); color: #10B981; font-weight: 800; font-size: 1.15rem; pointer-events: none; }

/* ====================================================================== Tutors (find a tutor, profile, join, dashboard, form) */
.ie-tutors-hero { background: linear-gradient(160deg, var(--ie-primary), color-mix(in srgb, var(--ie-primary) 70%, #0b1f5c)); color: #fff; padding: 2.4rem 0 2.2rem; }
.ie-tutors-hero.is-join { padding: 2.8rem 0; }
.ie-tutors-title { font-size: clamp(1.5rem, 3.4vw, 2.2rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .5rem; }
.ie-tutors-lead { color: rgba(255,255,255,.82); max-width: 60ch; margin-bottom: 1.2rem; }
.ie-tutors-search { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: .9rem; padding: .35rem .35rem .35rem .9rem; max-width: 640px; }
.ie-tutors-search > i { color: var(--ie-muted); }
.ie-tutors-search .form-control { border: 0; box-shadow: none; padding-left: 0; }
.ie-tutors-join { background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 1rem; padding: 1.1rem 1.2rem; }
.ie-tutors-join .btn-primary { background: #fff; color: var(--ie-primary); border-color: #fff; }

.ie-tutor-tabs { display: flex; gap: .4rem; overflow-x: auto; margin-bottom: 1.2rem; padding-bottom: .2rem; }
.ie-tutor-tabs a { white-space: nowrap; padding: .4rem .95rem; border-radius: 2rem; border: 1px solid var(--ie-line); background: #fff; color: var(--ie-ink); text-decoration: none; font-size: .9rem; font-weight: 600; }
.ie-tutor-tabs a.active { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }

.ie-tutor-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 1rem; }
.ie-tutor { position: relative; background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1rem 1.05rem .9rem; display: flex; flex-direction: column; gap: .45rem; transition: border-color .15s, box-shadow .15s; }
.ie-tutor:hover { border-color: color-mix(in srgb, var(--ie-primary) 35%, var(--ie-line)); box-shadow: 0 10px 24px -16px rgba(30,58,138,.45); }
.ie-tutor-top { display: flex; gap: .8rem; align-items: center; }
.ie-tutor-photo { flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--ie-primary) 12%, #fff); display: grid; place-items: center; text-decoration: none; }
.ie-tutor-photo img { width: 100%; height: 100%; object-fit: cover; }
.ie-tutor-photo span, .ie-tprof-photo span { font-weight: 800; color: var(--ie-primary); font-size: 1.15rem; }
.ie-tutor-kind { font-size: .75rem; font-weight: 700; color: var(--ie-accent); display: flex; gap: .4rem; align-items: center; flex-wrap: wrap; }
.ie-tutor-verified { color: #15803d; font-weight: 600; }
.ie-tutor-name { font-size: 1.02rem; font-weight: 700; margin: .05rem 0; }
.ie-tutor-name a { color: var(--ie-ink); text-decoration: none; }
.ie-tutor-rating { font-size: .8rem; color: var(--ie-muted); display: flex; gap: .3rem; align-items: center; flex-wrap: wrap; }
.ie-tutor-rating .bi-star-fill { color: #f59e0b; }
.ie-tutor-rating b { color: var(--ie-ink); }
.ie-tutor-headline { font-size: .88rem; margin: 0; color: #334155; }
.ie-tutor-subjects, .ie-tutor-classes { font-size: .82rem; color: var(--ie-muted); }
.ie-clamp-1 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ie-tutor-modes { display: flex; flex-wrap: wrap; gap: .3rem; }
.ie-tutor-modes span { font-size: .74rem; padding: .15rem .5rem; border-radius: 2rem; background: var(--ie-soft); border: 1px solid var(--ie-line); }
.ie-tutor-modes .is-demo { background: #ecfdf5; border-color: #bbf7d0; color: #166534; }
.ie-tutor-foot { display: flex; justify-content: space-between; gap: .6rem; align-items: center; border-top: 1px solid #f0f1f4; padding-top: .55rem; margin-top: auto; font-size: .82rem; }
.ie-tutor-area { color: var(--ie-muted); min-width: 0; }
.ie-tutor-fee { font-weight: 700; white-space: nowrap; color: var(--ie-ink); }

.ie-tprof { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1.25rem; }
.ie-tprof-head { display: flex; gap: 1.1rem; align-items: center; }
.ie-tprof-photo { flex: 0 0 104px; width: 104px; height: 104px; border-radius: 50%; overflow: hidden; background: color-mix(in srgb, var(--ie-primary) 12%, #fff); display: grid; place-items: center; }
.ie-tprof-photo img { width: 100%; height: 100%; object-fit: cover; }
.ie-tprof-name { font-size: 1.5rem; font-weight: 800; margin: .1rem 0; letter-spacing: -.01em; }
.ie-tprof-headline { margin: 0 0 .3rem; color: #334155; }
.ie-tprof-facts { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.4rem; margin: 1.3rem 0 0; }
.ie-tprof-facts dt { font-size: .75rem; font-weight: 600; color: var(--ie-muted); }
.ie-tprof-facts dd { margin: 0; font-size: .92rem; }
.ie-tprof-about { white-space: pre-line; font-size: .95rem; line-height: 1.65; }
.ie-tprof-contact { position: sticky; top: 5rem; }
.ie-review { border-top: 1px solid #f0f1f4; padding: .75rem 0; }
.ie-review-stars { color: #f59e0b; font-size: .85rem; }
.ie-star-pick { display: inline-flex; flex-direction: row-reverse; gap: .15rem; font-size: 1.5rem; }
.ie-star-pick input { position: absolute; opacity: 0; }
.ie-star-pick label { color: #d1d5db; cursor: pointer; }
.ie-star-pick input:checked ~ label, .ie-star-pick label:hover, .ie-star-pick label:hover ~ label { color: #f59e0b; }
.ie-star-pick input:focus-visible + label { outline: 2px solid var(--ie-primary); border-radius: .2rem; }
@media (max-width: 575.98px) {
    .ie-tprof-head { flex-direction: column; align-items: flex-start; }
    .ie-tprof-photo { width: 84px; height: 84px; flex-basis: 84px; }
    .ie-tprof-facts { grid-template-columns: 1fr; }
    .ie-tprof-contact { position: static; }
}

.ie-join-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.ie-join-card { display: flex; flex-direction: column; gap: .4rem; background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1.3rem; text-decoration: none; color: var(--ie-ink); transition: border-color .15s, transform .15s; }
.ie-join-card:hover { border-color: var(--ie-primary); transform: translateY(-2px); }
.ie-join-card > i { font-size: 1.8rem; color: var(--ie-accent); }
.ie-join-card h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
.ie-join-card p { font-size: .88rem; color: var(--ie-muted); margin: 0 0 .6rem; flex: 1; }
.ie-join-card .btn { align-self: flex-start; }
.ie-join-steps { padding-left: 1.2rem; }
.ie-join-steps li { margin-bottom: .7rem; }
.ie-join-box { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1.2rem; }
.ie-join-box li { padding: .25rem 0; }
.ie-join-box .bi-check2 { color: #15803d; margin-right: .3rem; }

.ie-tstatus { font-size: .72rem; font-weight: 700; padding: .2rem .6rem; border-radius: 2rem; vertical-align: middle; margin-left: .4rem; }
.ie-tstatus.is-live { background: #dcfce7; color: #166534; }
.ie-tstatus.is-waiting { background: #fef3c7; color: #92400e; }
.ie-tstatus.is-rejected { background: #fee2e2; color: #991b1b; }
.ie-tstatus.is-hidden { background: #e5e7eb; color: #374151; }
.ie-tstat { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: .9rem 1rem; text-decoration: none; color: var(--ie-ink); }
.ie-tstat b { font-size: 1.4rem; }
.ie-tstat span { font-size: .8rem; color: var(--ie-muted); }
.ie-tstat.is-link:hover { border-color: var(--ie-primary); }
.ie-tcheck li { padding: .2rem 0; color: var(--ie-muted); }
.ie-tcheck li.is-done { color: #166534; }

.ie-tform-card { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1.2rem; margin-bottom: 1rem; }
.ie-tkinds { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
@media (max-width: 575.98px) { .ie-tkinds { grid-template-columns: 1fr; } }
.ie-tkind { position: relative; margin: 0; cursor: pointer; }
.ie-tkind input { position: absolute; opacity: 0; }
.ie-tkind-box { display: flex; flex-direction: column; gap: .1rem; border: 1.5px solid var(--ie-line); border-radius: .8rem; padding: .8rem .9rem; height: 100%; }
.ie-tkind-box i { font-size: 1.3rem; color: var(--ie-primary); }
.ie-tkind-box small { color: var(--ie-muted); }
.ie-tkind input:checked + .ie-tkind-box { border-color: var(--ie-primary); background: color-mix(in srgb, var(--ie-primary) 5%, #fff); }
.ie-tkind input:focus-visible + .ie-tkind-box { outline: 2px solid var(--ie-primary); outline-offset: 2px; }
.ie-tform-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .8rem 1.2rem; max-height: 320px; overflow: auto; border: 1px solid var(--ie-line); border-radius: .8rem; padding: .8rem 1rem; }
.ie-tform-cats legend { font-size: .8rem; font-weight: 700; color: var(--ie-muted); margin-bottom: .2rem; }
.ie-tform-cats .form-check { font-size: .88rem; margin-bottom: .1rem; }
.ie-tform-photo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.ie-tchips { display: flex; flex-wrap: wrap; gap: .4rem; }
.ie-tchips label { position: relative; margin: 0; cursor: pointer; }
.ie-tchips input { position: absolute; opacity: 0; }
.ie-tchips span { display: inline-block; padding: .35rem .8rem; border-radius: 2rem; border: 1px solid var(--ie-line); background: #fff; font-size: .85rem; }
.ie-tchips input:checked + span { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }
.ie-tchips input:focus-visible + span { outline: 2px solid var(--ie-primary); outline-offset: 2px; }
.ie-tutor-home { margin-top: 2rem; }
.ie-catlinks a.is-tutors { color: var(--ie-primary); font-weight: 700; }

/* ====================================================================== For teachers: header button, band, sign-up form */
.ie-teach-btn { display: inline-flex; align-items: center; gap: .4rem; height: 2.6rem; padding: 0 .95rem; border-radius: .6rem; white-space: nowrap;
                font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--ie-primary);
                background: color-mix(in srgb, var(--ie-primary) 8%, #fff); border: 1.5px solid color-mix(in srgb, var(--ie-primary) 45%, #fff); }
.ie-teach-btn:hover { background: var(--ie-primary); border-color: var(--ie-primary); color: #fff; }
.ie-teach-btn:focus-visible { outline: 2px solid var(--ie-accent); outline-offset: 2px; }
.ie-catlinks a.is-teach { color: #fff; background: var(--ie-accent); border-radius: 2rem; margin: .35rem .35rem .35rem 0; padding: 0 .8rem; font-weight: 700; border-bottom: 0; }
.ie-catlinks a.is-teach i { display: inline !important; color: #fff; }
.ie-mm-teach { display: flex; align-items: center; gap: .75rem; padding: .8rem .9rem; border-radius: .8rem; text-decoration: none;
               background: color-mix(in srgb, var(--ie-accent) 10%, #fff); border: 1px solid color-mix(in srgb, var(--ie-accent) 35%, #fff); color: var(--ie-ink); }
.ie-mm-teach > i { font-size: 1.5rem; color: var(--ie-accent); }
.ie-mm-teach small { display: block; color: var(--ie-muted); }

.ie-teach-note { display: flex; align-items: center; gap: .7rem; margin: .4rem 0 1.2rem; padding: .75rem .9rem; border-radius: .8rem; text-decoration: none; font-size: .9rem;
                 color: var(--ie-ink); background: color-mix(in srgb, var(--ie-primary) 6%, #fff); border: 1px solid color-mix(in srgb, var(--ie-primary) 25%, #fff); }
.ie-teach-note > i:first-child { font-size: 1.4rem; color: var(--ie-primary); }
.ie-teach-note > i:last-child { margin-left: auto; color: var(--ie-muted); }

.ie-teach-band { background: #fff; border-bottom: 1px solid var(--ie-line); }
.ie-teach-band-in { display: flex; align-items: center; gap: 1rem 1.25rem; padding: 1.15rem 0; flex-wrap: wrap; }
.ie-teach-band-icon { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.5rem; flex-shrink: 0;
                      background: color-mix(in srgb, var(--ie-accent) 12%, #fff); color: var(--ie-accent); }
.ie-teach-band-text { flex: 1 1 320px; min-width: 0; }
.ie-teach-band-text h2 { font-size: 1.08rem; font-weight: 800; margin: 0 0 .15rem; letter-spacing: -.01em; }
.ie-teach-band-text p { margin: 0; font-size: .9rem; color: var(--ie-muted); }
.ie-teach-band-actions { display: flex; gap: .5rem; flex-wrap: wrap; }

.ie-join-hero { background: linear-gradient(155deg, var(--ie-primary), color-mix(in srgb, var(--ie-primary) 65%, #08163f)); color: #fff; padding: 3rem 0; }
.ie-join-title { font-size: clamp(1.7rem, 4vw, 2.6rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.12; margin-bottom: .8rem; }
.ie-join-lead { color: rgba(255,255,255,.85); max-width: 58ch; font-size: 1.05rem; margin-bottom: 1.4rem; }
.ie-join-facts { list-style: none; padding: 0; margin: 1.3rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; font-size: .9rem; color: rgba(255,255,255,.85); }
.ie-join-facts i { color: #86efac; margin-right: .25rem; }
.ie-join-panel { background: #fff; color: var(--ie-ink); border-radius: 1.1rem; padding: 1.2rem; box-shadow: 0 24px 48px -24px rgba(0,0,0,.45); }
.ie-join-pick { display: flex; align-items: center; gap: .85rem; padding: .85rem .9rem; border: 1px solid var(--ie-line); border-radius: .85rem; text-decoration: none; color: var(--ie-ink); }
.ie-join-pick + .ie-join-pick { margin-top: .6rem; }
.ie-join-pick:hover { border-color: var(--ie-primary); background: color-mix(in srgb, var(--ie-primary) 4%, #fff); }
.ie-join-pick > i:first-child { font-size: 1.6rem; color: var(--ie-accent); flex-shrink: 0; }
.ie-join-pick > i:last-child { margin-left: auto; color: var(--ie-muted); }
.ie-join-pick b { display: block; }
.ie-join-pick small { display: block; color: var(--ie-muted); line-height: 1.35; }
.ie-join-gets { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
@media (max-width: 575.98px) { .ie-join-gets { grid-template-columns: 1fr; } }
.ie-join-gets > div { background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: .85rem .95rem; display: grid; grid-template-columns: auto 1fr; column-gap: .65rem; }
.ie-join-gets i { grid-row: span 2; font-size: 1.25rem; color: var(--ie-primary); }
.ie-join-gets span { font-size: .84rem; color: var(--ie-muted); }
.ie-join-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: 2.5rem; padding: 1.4rem 1.5rem;
               border-radius: 1.1rem; background: color-mix(in srgb, var(--ie-accent) 9%, #fff); border: 1px solid color-mix(in srgb, var(--ie-accent) 30%, #fff); }
.ie-join-faq details { background: #fff; border: 1px solid var(--ie-line); border-radius: .8rem; padding: .8rem 1rem; }
.ie-join-faq details + details { margin-top: .5rem; }
.ie-join-faq summary { font-weight: 600; cursor: pointer; }
.ie-join-faq p { margin: .5rem 0 0; font-size: .92rem; color: #334155; }

.ie-treg-head { margin-bottom: 1.4rem; }
.ie-treg-head h1 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; margin-bottom: .3rem; }
.ie-treg-head p { color: var(--ie-muted); margin-bottom: .9rem; }
.ie-treg-side { position: sticky; top: 6rem; }
.ie-treg-nav { list-style: none; counter-reset: part; padding: 0; margin: 0 0 1rem; }
.ie-treg-nav li { counter-increment: part; }
.ie-treg-nav a { display: flex; gap: .55rem; align-items: center; padding: .45rem .6rem; border-radius: .6rem; color: #334155; text-decoration: none; font-size: .92rem; }
.ie-treg-nav a::before { content: counter(part); width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; font-weight: 700;
                         background: #fff; border: 1px solid var(--ie-line); color: var(--ie-muted); }
.ie-treg-nav a:hover { background: #fff; color: var(--ie-primary); }
.ie-treg-help { background: #fff; border: 1px solid var(--ie-line); border-radius: .9rem; padding: .9rem 1rem; font-size: .85rem; }
.ie-treg-help ul { padding-left: 1.1rem; margin: .4rem 0 0; color: var(--ie-muted); }
.ie-tform-page { max-width: 920px; margin: 0 auto; }
.ie-tform-card { scroll-margin-top: 6rem; }
.ie-tform-h { font-size: 1.05rem; font-weight: 750; margin-bottom: .25rem; }
.ie-tform-sub { font-size: .87rem; color: var(--ie-muted); margin-bottom: .9rem; }
.ie-tform-card .ie-tform-h + .row, .ie-tform-card .ie-tform-h + .ie-tkinds, .ie-tform-card .ie-tform-h + .mb-3 { margin-top: .75rem; }
.ie-word-count { font-weight: 400; font-size: .82rem; color: var(--ie-muted); margin-left: .3rem; }
.ie-word-count.is-ok { color: #15803d; }
.ie-tform-submit { background: #fff; border: 1px solid var(--ie-line); border-radius: 1rem; padding: 1.2rem; }
.ie-about .ie-tprof h2 i { color: var(--ie-accent); margin-right: .3rem; }
.ie-join-org { display: flex; gap: .7rem; align-items: flex-start; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); border-radius: .8rem;
               padding: .75rem .9rem; margin-bottom: 1.2rem; font-size: .92rem; max-width: 60ch; }
.ie-join-org i { font-size: 1.3rem; color: #fdba74; }
.ie-join-org a { color: #fff; font-weight: 700; }

/* ====================================================================== Translator (header) - _LanguagePicker.cshtml */
.ie-lang-btn { display: inline-flex; align-items: center; gap: .35rem; height: 2.6rem; padding: 0 .65rem; border-radius: .6rem; border: 1px solid var(--ie-line);
               background: #fff; color: #334155; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.ie-lang-btn:hover, .ie-lang-btn[aria-expanded="true"] { border-color: var(--ie-primary); color: var(--ie-primary); }
.ie-lang-btn:focus-visible { outline: 2px solid var(--ie-primary); outline-offset: 2px; }
.ie-lang-btn .bi-translate { font-size: 1.05rem; }
.ie-lang-current { max-width: 6.5rem; overflow: hidden; text-overflow: ellipsis; }
/* the language name shows only on wide screens; elsewhere the button is the translate icon */
@media (max-width: 1399.98px) { .ie-lang-current { display: none; } .ie-lang-btn { width: 2.75rem; padding: 0; justify-content: center; } }
/* below tablet width, messages and the account menu live in the menu (burger), so the header stays on one line */
@media (max-width: 767.98px) { .ie-nav-actions .ie-hide-xs { display: none !important; } }
@media (max-width: 575.98px) { .ie-lang-btn { width: 2.3rem; height: 2.3rem; } }
.ie-lang-menu { width: 19rem; padding: .5rem; border-radius: .9rem; border-color: var(--ie-line); box-shadow: 0 18px 40px -18px rgba(15,23,42,.35); }
.ie-lang-head { font-weight: 700; font-size: .9rem; padding: .3rem .45rem .5rem; }
.ie-lang-list { display: grid; grid-template-columns: 1fr 1fr; gap: .2rem; max-height: 22rem; overflow-y: auto; }
.ie-lang-item { display: flex; flex-direction: column; align-items: flex-start; text-align: left; border: 0; background: none; border-radius: .55rem; padding: .4rem .55rem; color: var(--ie-ink); }
.ie-lang-item span { font-size: .95rem; line-height: 1.3; }
.ie-lang-item small { font-size: .72rem; color: var(--ie-muted); }
.ie-lang-item:hover, .ie-lang-item:focus-visible { background: var(--ie-soft); outline: none; }
.ie-lang-item.active { background: color-mix(in srgb, var(--ie-primary) 10%, #fff); color: var(--ie-primary); font-weight: 700; }
.ie-lang-foot { font-size: .72rem; color: var(--ie-muted); padding: .5rem .45rem .2rem; border-top: 1px solid #f0f1f4; margin-top: .4rem; }
/* hide Google's own bar, tooltip and highlight - our dropdown is the only control */
body { top: 0 !important; }
body > .skiptranslate, iframe.skiptranslate, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .goog-tooltip { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }
font[class*="VIpgJd"] { background: none !important; box-shadow: none !important; }

/* ====================================================================== Header (shiksha.in): logo, location, Register | Login, two equal buttons, language last */
.ie-nav { padding-top: .55rem; padding-bottom: .55rem; }

/* logo: the original shiksha.in logo picture (_Brand.cshtml, images/brand/shiksha-logo.png, 868x228) - never redrawn as text */
.ie-brand2 { display: inline-flex; align-items: center; text-decoration: none; flex-shrink: 0; line-height: 0; }
.ie-brand2-logo { display: block; height: 84px; width: auto; max-width: none; }
.ie-brand2:focus-visible { outline: 2px solid var(--ie-primary); outline-offset: 4px; border-radius: .4rem; }
/* on the dark footer: the logo on a white panel so its navy and orange stay clear */
.ie-brand2.is-light { background: #fff; border-radius: .75rem; padding: .6rem .9rem; }
.ie-brand2.is-light .ie-brand2-logo { height: 72px; }

/* location (opens the location chooser) */
.ie-loc-btn { align-items: center; gap: .55rem; height: 2.75rem; padding: 0 .85rem; border: 1px solid var(--ie-line); border-radius: .6rem; background: #fff;
              color: var(--ie-ink); font-weight: 600; font-size: .9rem; white-space: nowrap; max-width: 17rem; }
.ie-loc-btn:hover { border-color: var(--ie-primary); }
.ie-loc-btn:focus-visible { outline: 2px solid var(--ie-primary); outline-offset: 2px; }
.ie-loc-btn > .bi-geo-alt-fill, .ie-loc-btn > .bi-crosshair { color: var(--ie-accent); font-size: 1.05rem; }
.ie-loc-text { display: flex; flex-direction: column; line-height: 1.15; text-align: left; min-width: 0; }
.ie-loc-text small { font-size: .7rem; font-weight: 500; color: var(--ie-muted); }
.ie-loc-text b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.ie-loc-chev { font-size: .7rem; color: var(--ie-muted); }

/* Register | Login */
.ie-auth { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; font-weight: 600; font-size: .9rem; color: #334155; padding: 0 .35rem; }
.ie-auth a { color: #334155; text-decoration: none; }
.ie-auth a:hover, .ie-auth a:focus-visible { color: var(--ie-primary); text-decoration: underline; text-underline-offset: 3px; }
.ie-auth-sep { color: #cbd2dc; }
.ie-auth > .bi { color: var(--ie-muted); }

/* Tutor Registration and Post free ad: exactly the same size */
.ie-teach-btn, .ie-post-btn { height: 2.75rem; padding: 0 1.1rem; font-size: .92rem; font-weight: 700; border-radius: .6rem; width: auto;
                              display: inline-flex; align-items: center; justify-content: center; gap: .4rem; }
.ie-lang-btn { height: 2.75rem; min-width: 2.75rem; }

/* category bar: location chip (tablets, phones) */
.ie-catlinks button.is-loc { display: flex; align-items: center; gap: .3rem; flex-shrink: 0; border: 0; background: none; padding: 0 .8rem 0 0;
                             font-weight: 700; font-size: .88rem; color: var(--ie-ink); white-space: nowrap; }
.ie-catlinks button.is-loc .bi-geo-alt-fill, .ie-catlinks button.is-loc .bi-crosshair { color: var(--ie-accent); display: inline !important; }
.ie-catlinks a { padding: 0 .62rem; }

/* laptops */
@media (max-width: 1299.98px) {
    .ie-brand2-logo { height: 76px; }
}
/* small laptops: a slightly smaller logo so the header stays on one line */
@media (max-width: 1199.98px) {
    .ie-brand2-logo { height: 60px; }
    .ie-loc-text small { display: none; } .ie-loc-btn { max-width: 11rem; padding: 0 .7rem; }
    .ie-nav-actions { gap: .3rem; } .ie-auth > .bi { display: none; }
}
/* tablets: the location and Tutor Registration move to the category bar */
@media (max-width: 991.98px) {
    .ie-brand2-logo { height: 64px; }
    .ie-teach-btn { display: none; }
}
/* large phones, small tablets */
@media (max-width: 767.98px) {
    .ie-brand2-logo { height: 54px; }
}
/* phones (up to 639px): the whole logo, smaller; "Login" only (Register is in the menu); Post free ad and language as icons */
@media (max-width: 639.98px) {
    .ie-brand2-logo { height: 46px; }
    .ie-nav-actions { gap: .25rem; }
    .ie-auth { padding: 0 .2rem; } .ie-auth-register, .ie-auth-sep { display: none; } .ie-auth a { font-size: .85rem; }
    .ie-post-btn { width: 2.35rem; height: 2.35rem; padding: 0; } .ie-post-btn span { display: none; }
    .ie-lang-btn { width: 2.35rem; height: 2.35rem; }
    .ie-burger { padding: 0 .1rem; }
}
/* small phones (up to 409px): a little smaller so the header stays on one line */
@media (max-width: 409.98px) {
    .ie-brand2-logo { height: 40px; }
}

/* ====================================================================== Home: first screen (shiksha.in layout) */
.ie-fold { --fold-blue: #1A5CE6; --fold-ink: #172B4D; --fold-text: #5B6577;
           background: linear-gradient(180deg, #F3F6FD 0%, #FBFCFF 70%, #fff 100%); padding: 4.5rem 0 4rem; border-bottom: 1px solid var(--ie-line); }
.ie-fold-eyebrow { display: inline-block; padding: .5rem .85rem; border-radius: 2rem; background: #E6EEFC; color: var(--fold-blue);
                   font-size: .8rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 1.6rem; }
.ie-fold-title { font-size: clamp(2rem, 4.2vw, 3.35rem); font-weight: 800; line-height: 1.06; letter-spacing: -.02em; color: var(--fold-ink);
                 margin: 0 0 1.7rem; text-wrap: balance; }
.ie-fold-sub { font-size: 1.12rem; line-height: 1.65; color: var(--fold-text); max-width: 37rem; margin: 0 0 2.1rem; }
.ie-fold-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }
.ie-fold-ctas a { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 3.25rem; padding: 0 1.4rem; border-radius: .5rem;
                  font-weight: 700; font-size: 1.05rem; text-decoration: none; white-space: nowrap; }
.ie-fold-primary { background: var(--fold-blue); color: #fff; border: 1.5px solid var(--fold-blue); }
.ie-fold-primary:hover, .ie-fold-primary:focus-visible { background: #154FC8; border-color: #154FC8; color: #fff; }
.ie-fold-secondary { background: #fff; color: var(--fold-blue); border: 1.5px solid #C9D7F5; }
.ie-fold-secondary:hover, .ie-fold-secondary:focus-visible { border-color: var(--fold-blue); color: var(--fold-blue); }
.ie-fold-for { margin: 1.9rem 0 0; font-size: .92rem; color: var(--fold-text); }
.ie-fold-card { background: #fff; border: 1px solid #E3E8F2; border-radius: 1.25rem; padding: 1.6rem 1.6rem 1.5rem; box-shadow: 0 12px 32px -18px rgba(23,43,77,.25); }
.ie-fold-card h2 { font-size: 1.3rem; font-weight: 800; color: var(--fold-ink); margin: 0 0 .25rem; }
.ie-fold-card > p { font-size: .9rem; color: var(--fold-text); margin: 0 0 1.5rem; }
.ie-fold-card .form-select { height: 3.1rem; border: 1px solid #CDD4E0; border-radius: .5rem; font-size: 1rem; color: var(--fold-ink); margin-bottom: .8rem; }
.ie-fold-city { display: flex; align-items: center; gap: .6rem; width: 100%; height: 3.1rem; padding: 0 .9rem; margin-bottom: .8rem; text-align: left;
                background: #fff; border: 1px solid #CDD4E0; border-radius: .5rem; font-size: 1rem; color: var(--fold-ink); }
.ie-fold-city i { color: var(--ie-accent); }
.ie-fold-city span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ie-fold-city small { color: var(--fold-blue); font-weight: 600; font-size: .85rem; }
.ie-fold-city:hover { border-color: var(--fold-blue); }
.ie-fold-card .form-select:focus, .ie-fold-city:focus-visible { border-color: var(--fold-blue); box-shadow: 0 0 0 3px rgba(26,92,230,.15); outline: 0; }
.ie-fold-go { width: 100%; height: 3.15rem; border: 0; border-radius: .5rem; background: var(--fold-blue); color: #fff; font-weight: 700; font-size: 1.05rem; }
.ie-fold-go:hover, .ie-fold-go:focus-visible { background: #154FC8; }
.ie-fold-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1.1rem; }
.ie-fold-chips a { font-size: .8rem; color: var(--fold-ink); text-decoration: none; padding: .45rem .55rem; border-radius: .4rem; background: #EEF2F9; }
.ie-fold-chips a:hover, .ie-fold-chips a:focus-visible { background: #E2EAF8; color: var(--fold-blue); }
@media (max-width: 991.98px) {
    .ie-fold { padding: 2rem 0 2.25rem; }
    .ie-fold-eyebrow { margin-bottom: 1rem; font-size: .72rem; }
    .ie-fold-title { margin-bottom: 1rem; }
    .ie-fold-sub { font-size: 1rem; margin-bottom: 1.4rem; }
    .ie-fold-ctas a { flex: 1 1 0; height: 3rem; padding: 0 .6rem; font-size: .97rem; }
    .ie-fold-for { margin-top: 1.1rem; font-size: .86rem; }
    .ie-fold-card { padding: 1.25rem; }
    .ie-fold-card > p { margin-bottom: 1rem; }
}

/* ====================================================================== FAQ blocks (_Faq.cshtml), contact form, profile address field */
.ie-faq-title { font-size: 1.25rem; font-weight: 800; letter-spacing: -.01em; margin-bottom: .9rem; }
.ie-faq-list details { background: #fff; border: 1px solid var(--ie-line); border-radius: .8rem; padding: .85rem 1rem; }
.ie-faq-list details + details { margin-top: .5rem; }
.ie-faq-list summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.ie-faq-list summary::-webkit-details-marker { display: none; }
.ie-faq-list summary::after { content: "+"; font-weight: 700; color: var(--ie-muted); }
.ie-faq-list details[open] summary::after { content: "\2212"; }
.ie-faq-list summary:focus-visible { outline: 2px solid var(--ie-primary); outline-offset: 3px; border-radius: .3rem; }
.ie-faq-list p { margin: .6rem 0 0; font-size: .93rem; color: #334155; line-height: 1.6; }
.ie-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.ie-addr .ie-addr-prefix { font-size: .85rem; color: var(--ie-muted); max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; line-height: 2.2; }
@media (max-width: 575.98px) { .ie-addr { flex-wrap: wrap; } .ie-addr .ie-addr-prefix { max-width: 100%; width: 100%; border-radius: .375rem .375rem 0 0 !important; } .ie-addr .form-control { border-radius: 0 0 .375rem .375rem !important; margin-left: 0 !important; } }

/* ====================================================================== Verify your account, forgot password (database/18) */
.ie-vfy { max-width: 640px; margin: 1.25rem auto 2rem; }
.ie-vfy.is-narrow { max-width: 520px; }
.ie-vfy-title { font-size: 1.6rem; font-weight: 800; color: #232A6E; margin: 0 0 .35rem; }
.ie-vfy-lead { color: var(--ie-muted); margin: 0 0 1.3rem; line-height: 1.5; }
.ie-vfy-steps { display: flex; list-style: none; padding: 0; margin: 0 0 1.3rem; }
.ie-vfy-steps li { flex: 1; display: flex; align-items: center; gap: .5rem; font-size: .88rem; font-weight: 600; color: var(--ie-muted); }
.ie-vfy-steps li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--ie-line); margin: 0 .6rem; }
.ie-vfy-steps .n { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--ie-line); background: #fff; font-size: .8rem; flex: none; }
.ie-vfy-steps .is-done { color: #15803D; }
.ie-vfy-steps .is-done .n { background: #15803D; border-color: #15803D; color: #fff; }
.ie-vfy-steps .is-done:not(:last-child)::after { background: #15803D; }
.ie-vfy-steps .is-now { color: #232A6E; }
.ie-vfy-steps .is-now .n { border-color: var(--ie-accent); color: var(--ie-accent); }
.ie-vfy-card { background: #fff; border: 1px solid var(--ie-line); border-radius: 14px; padding: 1.35rem 1.4rem 1.25rem; margin-bottom: .9rem; }
.ie-vfy-card.is-small { padding: 1rem 1.4rem; }
.ie-vfy-card.is-dim { opacity: .85; }
.ie-vfy-head { display: flex; align-items: center; gap: .9rem; }
.ie-vfy-head h2 { font-size: 1.1rem; font-weight: 700; margin: 0; color: var(--ie-ink); }
.ie-vfy-head p { margin: .1rem 0 0; color: var(--ie-muted); font-size: .88rem; overflow-wrap: anywhere; }
.ie-vfy-ic { width: 2.75rem; height: 2.75rem; border-radius: .75rem; display: grid; place-items: center; flex: none; font-size: 1.25rem; }
.ie-vfy-ic.is-phone { background: #FFF1E8; color: var(--ie-accent); }
.ie-vfy-ic.is-mail { background: #EEF2FF; color: var(--ie-primary); }
.ie-vfy-ic.is-ok { background: #ECFDF3; color: #15803D; }
.ie-vfy-badge { margin-left: auto; font-size: .78rem; font-weight: 700; padding: .3rem .65rem; border-radius: 999px; white-space: nowrap; background: #F1F5F9; color: var(--ie-muted); }
.ie-vfy-badge.is-ok { background: #ECFDF3; color: #15803D; }
.ie-vfy-badge.is-wait { background: #FFF7ED; color: #C2410C; }
.ie-vfy-sent { margin: 1.1rem 0 .9rem; font-size: .93rem; color: #374151; line-height: 1.5; overflow-wrap: anywhere; }
.ie-vfy-sent a { font-weight: 600; margin-left: .35rem; white-space: nowrap; text-decoration: none; }
.ie-vfy-field { max-width: 22rem; }
.ie-vfy-actions { display: flex; align-items: center; gap: 1rem; margin-top: 1.1rem; flex-wrap: wrap; }
.ie-vfy-actions .btn { height: 2.9rem; padding: 0 1.4rem; font-weight: 700; border-radius: .65rem; display: inline-flex; align-items: center; }
.ie-vfy-resend { margin-top: .8rem; font-size: .9rem; }
.ie-vfy-resend .btn-link { font-weight: 600; text-decoration: none; font-size: .9rem; }
.ie-vfy-alt { margin-top: 1rem; padding-top: .9rem; border-top: 1px dashed var(--ie-line); font-size: .9rem; color: var(--ie-muted); line-height: 1.5; }
.ie-vfy-why { background: #F8FAFF; border: 1px solid #E0E7FF; border-radius: 12px; padding: .8rem .9rem; font-size: .86rem; color: #374151; line-height: 1.5; display: flex; gap: .6rem; }
.ie-vfy-why .bi { color: var(--ie-primary); }
.ie-vfy-done { text-align: center; padding: 2rem 1.4rem; }
.ie-vfy-big { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: #ECFDF3; color: #15803D; display: grid; place-items: center; margin: 0 auto .9rem; font-size: 2.2rem; }
.ie-vfy-big.is-warn { background: #FFF7ED; color: #C2410C; }
.ie-vfy-checks { display: inline-flex; flex-direction: column; gap: .45rem; text-align: left; margin: 0 0 .6rem; font-size: .93rem; }
.ie-vfy-checks .bi { color: #15803D; margin-right: .45rem; }
.ie-vfy-choose label { display: flex; gap: .75rem; align-items: center; border: 1.5px solid #CBD2DC; border-radius: 12px; padding: .85rem; margin-bottom: .6rem; cursor: pointer; }
.ie-vfy-choose label:has(input:checked) { border-color: var(--ie-primary); background: #F8FAFF; }
.ie-vfy-choose input { width: 1.1rem; height: 1.1rem; flex: none; }
.ie-vfy-choose b { display: block; }
.ie-vfy-choose small { color: var(--ie-muted); font-size: .85rem; }

/* code boxes: the real input lies over the boxes (site.js "otp") */
.ie-otp { position: relative; display: inline-block; }
.ie-otp-real { font-size: 1.4rem; letter-spacing: .4em; max-width: 12rem; text-align: center; }
.ie-otp.is-ready .ie-otp-real { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; opacity: 0; z-index: 2; cursor: text; caret-color: transparent; }
.ie-otp-boxes { display: flex; gap: .6rem; }
.ie-otp-boxes span { width: 3.4rem; height: 3.7rem; border: 1.5px solid #CBD2DC; border-radius: .65rem; display: grid; place-items: center;
                     font-size: 1.5rem; font-weight: 700; color: var(--ie-ink); background: #fff; }
.ie-otp[data-otp="6"] .ie-otp-boxes span { width: 3rem; }
.ie-otp-boxes span.is-now { border-color: var(--ie-primary); box-shadow: 0 0 0 3px rgba(30, 58, 138, .15); }
.ie-otp.is-bad .ie-otp-boxes span { border-color: #B42318; }
@media (max-width: 575.98px) {
    .ie-vfy { margin-top: .5rem; }
    .ie-vfy-title { font-size: 1.35rem; }
    .ie-vfy-card { padding: 1.1rem 1rem; }
    .ie-vfy-steps li { font-size: .78rem; gap: .35rem; }
    .ie-vfy-steps li:not(:last-child)::after { margin: 0 .35rem; }
    .ie-vfy-steps .t { display: none; }
    .ie-vfy-actions .btn { width: 100%; justify-content: center; }
    .ie-otp-boxes { gap: .45rem; }
    .ie-otp-boxes span { width: 3.1rem; height: 3.4rem; }
    .ie-otp[data-otp="6"] .ie-otp-boxes span { width: 2.6rem; height: 3.2rem; font-size: 1.3rem; }
}

/* the "verify your account" bar on every page until both are verified */
.ie-verify-bar { background: #FFF7ED; border-bottom: 1px solid #FED7AA; }
.ie-verify-bar .container { display: flex; gap: .75rem; align-items: center; padding-top: .6rem; padding-bottom: .6rem; flex-wrap: wrap; }
.ie-verify-bar .bi { color: #C2410C; font-size: 1.15rem; }
.ie-verify-bar p { flex: 1; margin: 0; font-size: .9rem; color: #7C2D12; line-height: 1.45; min-width: 14rem; }
.ie-verify-bar .btn { font-weight: 700; }

/* forgot password: choose where the code goes (radio cards) */
.ie-vfy-choice { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border: 1px solid var(--ie-line); border-radius: .75rem; margin-bottom: .6rem; cursor: pointer; }
.ie-vfy-choice:has(input:checked) { border-color: var(--ie-accent); background: #FFF7F1; }
.ie-vfy-choice input { accent-color: var(--ie-accent); width: 1.1rem; height: 1.1rem; flex: none; }
.ie-vfy-choice b { display: block; color: var(--ie-ink); }
.ie-vfy-choice small { color: var(--ie-muted); overflow-wrap: anywhere; }

/* footer: major cities */
.ie-footer-cities { border-top: 1px solid rgba(255,255,255,.12); margin-top: 1.25rem; padding-top: 1rem; }
.ie-footer-cities ul { display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 0; }
