/* ==========================================================================
   الناظر — Design tokens, base, shared components, public site & auth
   ========================================================================== */

/* The hidden attribute must win over component display rules (.form-grid, .field, flex rows…). */
[hidden] { display: none !important; }
:root {
    --navy: #0b2d5b;
    --navy-800: #0d2e56;
    --navy-900: #062247;
    --navy-sidebar: #032b55;
    --teal: #019ba2;
    --teal-600: #027982;
    --teal-400: #2fb8bf;
    --teal-100: #d3eff1;
    --teal-50: #e8f7f8;
    /* Teal behind white text (WCAG AA 4.5:1); --teal stays the brand accent for fills, borders and charts. */
    --teal-strong: #01848a;
    --bg: #f5f8fc;
    --surface: #ffffff;
    --surface-2: #f7fafd;
    --border: #e4ebf3;
    --border-strong: #cfdbe8;
    --text: #0b2b5b;
    --text-2: #33496b;
    --muted: #627187;
    --link: #1d6fd6;
    --green: #0d865c;
    --green-bg: #dff4ec;
    --orange: #ea7a12;
    --orange-bg: #fdf0df;
    --red: #bc3b3f;
    --red-bg: #fde8e8;
    --blue: #2563eb;
    --blue-bg: #e5f0fd;
    --purple: #7c4ddb;
    --purple-bg: #f1ebfe;
    --yellow: #b7791f;
    --yellow-bg: #fef4d2;
    --gray-bg: #eef2f6;
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 22px;
    --shadow-sm: 0 1px 2px rgba(11, 45, 91, .04);
    --shadow: 0 4px 18px rgba(11, 45, 91, .06);
    --shadow-lg: 0 18px 45px rgba(11, 45, 91, .12);
    --font: "Cairo", "Segoe UI", Tahoma, sans-serif;
    --header-h: 68px;
    --container: 1400px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.7; color: var(--text); background: var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3, h4 { line-height: 1.35; font-weight: 800; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid rgba(1, 155, 162, .35); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.container { width: min(var(--container), calc(100% - 48px)); margin-inline: auto; }
.muted { color: var(--muted); }
.text-success { color: var(--green); }
.text-danger { color: var(--red); }
.text-link { color: var(--link); font-weight: 600; }
.nowrap { white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }

/* Icons ------------------------------------------------------------------ */
.icon { display: inline-block; flex-shrink: 0; object-fit: contain; }
.icon-white { filter: brightness(0) invert(1); }
.icon-tile { display: inline-grid; place-items: center; flex-shrink: 0; width: 56px; height: 56px; border-radius: 14px; background: var(--teal-50); }
.icon-tile.sm { width: 40px; height: 40px; border-radius: 10px; }
.icon-tile.lg { width: 64px; height: 64px; border-radius: 16px; }
.tone-teal { background: var(--teal-50); }
.tone-blue { background: var(--blue-bg); }
.tone-orange { background: var(--orange-bg); }
.tone-purple { background: var(--purple-bg); }
.tone-green { background: #e0f5f1; }
.tone-red { background: var(--red-bg); }
.tone-navy { background: #e6ecf5; }
.tone-yellow { background: var(--yellow-bg); }

/* Buttons ---------------------------------------------------------------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 8px 20px; border: 1px solid transparent; border-radius: 10px; font-size: .92rem; font-weight: 700; line-height: 1.2; cursor: pointer; white-space: nowrap; transition: background-color .18s, border-color .18s, color .18s, box-shadow .18s, transform .18s; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.btn-primary { background: var(--teal-strong); color: #fff; box-shadow: 0 6px 16px rgba(1, 155, 162, .22); }
.btn-primary:hover { background: #016f75; }
.btn-outline { background: #fff; border-color: var(--teal); color: var(--navy); }
.btn-outline:hover { background: var(--teal-50); }
.btn-light { background: var(--surface-2); border-color: var(--border); color: var(--text-2); }
.btn-light:hover { border-color: var(--border-strong); background: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-900); }
.btn-danger { background: #fff; border-color: #f3c3c5; color: var(--red); }
.btn-danger:hover { background: var(--red-bg); }
.btn-ghost { background: transparent; color: var(--link); padding-inline: 8px; }
.btn-sm { min-height: 34px; padding: 5px 14px; font-size: .82rem; border-radius: 8px; }
.btn-lg { min-height: 54px; padding: 12px 34px; font-size: 1.05rem; border-radius: 12px; }
.btn-block { width: 100%; }
.btn .arrow { font-size: 1.1em; line-height: 1; }

/* Forms ------------------------------------------------------------------ */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-label { font-size: .86rem; font-weight: 700; color: var(--text); }
.field-label .req { color: var(--red); margin-inline-start: 2px; }
.field-hint { font-size: .76rem; color: var(--muted); }
.field-error { font-size: .78rem; color: var(--red); font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: #fff; color: var(--text); font-size: .92rem; transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.8; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: 18px 50%, 13px 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-start: 34px; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px rgba(1, 155, 162, .14); }
.input.is-invalid, .select.is-invalid, .textarea.is-invalid { border-color: var(--red); }
.input::placeholder, .textarea::placeholder { color: #8490a1; }
.input-group { position: relative; }
.input-group .input { padding-inline-end: 44px; }
.input-group .input-addon { position: absolute; inset-inline-end: 6px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700; cursor: pointer; padding: 6px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: .88rem; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--teal); margin: 0; }
.switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; font-size: .9rem; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 44px; height: 24px; border-radius: 99px; background: #cfd9e5; position: relative; transition: background .2s; flex-shrink: 0; }
.switch .track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transition: inset-inline-start .2s; }
.switch input:checked + .track { background: var(--teal); }
.switch input:checked + .track::after { inset-inline-start: 23px; }
.switch input:focus-visible + .track { outline: 3px solid rgba(1, 155, 162, .35); }
.file-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 150px; padding: 22px; border: 2px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-2); text-align: center; color: var(--muted); cursor: pointer; }
.file-drop:hover { border-color: var(--teal); background: var(--teal-50); }
.file-drop input { width: 100%; max-width: 320px; font-size: .82rem; }

/* Lesson video upload */
.video-source { display: inline-flex; }
.video-source label { position: relative; display: inline-flex; align-items: center; padding: 6px 18px; border-radius: 99px; font-size: .85rem; font-weight: 700; color: var(--text-2); cursor: pointer; }
.video-source input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.video-source label:has(input:checked) { background: var(--teal-strong); color: #fff; }
.video-source label:has(input:focus-visible) { outline: 3px solid rgba(1, 155, 162, .35); }
.video-drop { cursor: default; }
.video-drop.is-drag { border-color: var(--teal); background: var(--teal-50); }
.upload-progress[hidden], .upload-progress [hidden] { display: none !important; }
.upload-progress { width: 100%; max-width: 560px; display: grid; gap: 8px; margin-top: 6px; text-align: start; }
.upload-progress-head, .upload-progress-foot { display: flex; align-items: center; gap: 10px; }
.upload-progress-head strong { font-size: .85rem; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-progress .progress { height: 8px; border-radius: 99px; background: var(--border); overflow: hidden; }
.upload-progress .progress span { display: block; height: 100%; background: var(--teal); transition: width .2s; }
.upload-progress[data-tone="error"] small { color: #b42318; }
.upload-progress[data-tone="error"] .progress span { background: #d92d20; }
.upload-progress[data-tone="success"] small { color: #0b6e4d; }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-start; margin-top: 22px; }

/* Alerts ----------------------------------------------------------------- */
.alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 16px; border-radius: var(--radius); border: 1px solid; font-size: .9rem; font-weight: 600; }
.alert-success { background: var(--green-bg); border-color: #b9e6d4; color: #0b6e4d; }
.alert-danger { background: var(--red-bg); border-color: #f6c5c7; color: #b42318; }
.alert-info { background: var(--blue-bg); border-color: #c7dcfb; color: #1e4fa8; }
.alert-warning { background: var(--orange-bg); border-color: #f5d3a8; color: #8a4a06; align-items: center; }
.alert ul { padding-inline-start: 18px; list-style: disc; }

/* Badges ----------------------------------------------------------------- */
.badge { display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 26px; padding: 2px 12px; border-radius: 8px; font-size: .76rem; font-weight: 700; white-space: nowrap; line-height: 1.4; }
.badge-success { background: var(--green-bg); color: #0b7b54; }
.badge-warning { background: var(--yellow-bg); color: #986308; }
.badge-orange { background: var(--orange-bg); color: #a9550a; }
.badge-danger { background: var(--red-bg); color: #c82d33; }
.badge-info { background: var(--blue-bg); color: #1d5fc4; }
.badge-purple { background: var(--purple-bg); color: #6a3fcf; }
.badge-neutral { background: var(--gray-bg); color: #56657a; }
.badge-teal { background: var(--teal-50); color: var(--teal-600); }
.badge-pill { border-radius: 99px; }
.count-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #f0373d; color: #fff; font-size: .7rem; font-weight: 800; line-height: 1; }

/* Cards & panels --------------------------------------------------------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-bottom: 14px; min-height: 34px; }
.panel-head > .row { flex-wrap: wrap; min-width: 0; }
.panel-head .select-sm { max-width: 100%; }
.panel-title { display: flex; align-items: center; gap: 10px; font-size: 1.02rem; font-weight: 800; color: var(--text); }
.panel-title .icon { width: 26px; height: 26px; }
.panel-link { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; color: var(--link); white-space: nowrap; }
.panel-link:hover { text-decoration: underline; }
.panel-body { flex: 1; min-width: 0; }
.panel-foot { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }

/* Stat card -------------------------------------------------------------- */
.stat-card { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.stat-card .stat-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.stat-card .stat-label { font-size: .98rem; font-weight: 700; color: var(--text); }
.stat-card .stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1.25; color: var(--text); font-variant-numeric: tabular-nums; }
.stat-card .stat-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.stat-card .stat-trend { font-weight: 700; color: var(--green); direction: ltr; unicode-bidi: isolate; }
.stat-card .stat-trend.down { color: var(--red); }
.stat-card .stat-link { margin-top: 8px; font-size: .78rem; font-weight: 600; color: var(--link); display: inline-flex; gap: 5px; align-items: center; }
.stat-card .stat-link:hover { text-decoration: underline; }
.stat-card .icon-tile .icon { width: 34px; height: 34px; }

/* Tables ----------------------------------------------------------------- */
.table-wrap { position: relative; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.table th { background: #f0f4f9; color: var(--text-2); font-weight: 700; font-size: .8rem; text-align: start; padding: 10px 12px; white-space: nowrap; }
.table th:first-child { border-start-start-radius: 10px; border-end-start-radius: 10px; }
.table th:last-child { border-start-end-radius: 10px; border-end-end-radius: 10px; }
.table td { padding: 11px 12px; border-bottom: 1px solid #edf2f7; vertical-align: middle; color: var(--text); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover td { background: #fafcfe; }
.table.compact td { padding: 7px 10px; }
.table .cell-user { display: flex; align-items: center; gap: 10px; min-width: 160px; }
.table .cell-user strong { display: block; font-weight: 700; font-size: .87rem; }
.table .cell-user small { display: block; color: var(--muted); font-size: .75rem; }
.table-actions { display: flex; gap: 6px; justify-content: flex-end; }

/* Avatar ----------------------------------------------------------------- */
.avatar { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; overflow: hidden; background: linear-gradient(145deg, var(--teal-50), #dbe8f7); color: var(--navy); font-weight: 800; font-size: .95rem; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.sm { width: 32px; height: 32px; font-size: .8rem; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.2rem; }
.avatar.xl { width: 96px; height: 96px; font-size: 2rem; }

/* Progress --------------------------------------------------------------- */
.progress { position: relative; height: 8px; border-radius: 99px; background: #e8eef8; overflow: hidden; }
.progress > span { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: inherit; background: var(--teal); }
.progress.navy > span { background: var(--navy); }
.progress.orange > span { background: var(--orange); }
.progress.red > span { background: var(--red); }

/* Tabs ------------------------------------------------------------------- */
.tabs { display: flex; gap: 4px; padding: 5px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { flex-shrink: 0; padding: 8px 18px; border: 0; border-radius: 9px; background: transparent; font-size: .88rem; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs a:hover, .tabs button:hover { color: var(--text); background: var(--surface-2); }
.tabs .active, .tabs [aria-selected="true"] { background: var(--teal-50); color: var(--teal-600); }
.segmented { display: inline-flex; padding: 4px; border-radius: 99px; background: #fff; border: 1px solid var(--border); }
.segmented button { border: 0; background: transparent; padding: 6px 18px; border-radius: 99px; font-size: .82rem; font-weight: 700; color: var(--text-2); cursor: pointer; }
.segmented button.active { background: var(--teal-strong); color: #fff; }

/* Filter bar ------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
.filter-bar .field { flex: 1 1 180px; }
.filter-bar div.search-field, .filter-bar .field:has(> .search-field), .filter-bar .field:has(.input-group > .search-field) { flex: 2 1 260px; }
.filter-bar .input.search-field { flex: none; }
.filter-bar .input, .filter-bar .select { min-height: 40px; }

/* Empty state ------------------------------------------------------------ */
.empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 36px 20px; text-align: center; color: var(--muted); }
.empty-state .icon-tile { margin-bottom: 6px; }
.empty-state h3 { font-size: 1rem; color: var(--text); }
.empty-state p { font-size: .86rem; max-width: 360px; }

/* Modal ------------------------------------------------------------------ */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 18px; background: rgba(6, 34, 71, .45); opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s; }
.modal.open { opacity: 1; visibility: visible; }
.modal-dialog { width: min(560px, 100%); max-height: calc(100vh - 36px); overflow: auto; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .2s; }
.modal.open .modal-dialog { transform: none; }
.modal-dialog.lg { width: min(760px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.modal-head h2 { font-size: 1.05rem; }
.modal-close { width: 34px; height: 34px; border: 0; border-radius: 8px; background: var(--surface-2); font-size: 1.3rem; line-height: 1; cursor: pointer; color: var(--muted); }
.modal-close:hover { background: var(--gray-bg); color: var(--text); }
.modal-body { padding: 20px; }
.modal-foot { display: flex; justify-content: flex-start; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--border); background: var(--surface-2); }
body.modal-open { overflow: hidden; }

/* Pagination ------------------------------------------------------------- */
.pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; font-size: .82rem; color: var(--muted); }
.pagination ul { display: flex; gap: 4px; flex-wrap: wrap; }
.pagination a, .pagination span.page { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--border); background: #fff; color: var(--text-2); font-weight: 700; }
.pagination a:hover { border-color: var(--teal); color: var(--teal-600); }
.pagination .current { background: var(--teal-strong); border-color: var(--teal-strong); color: #fff; }
.pagination .disabled { opacity: .45; }

/* Definition list -------------------------------------------------------- */
.meta-list { display: grid; gap: 0; }
.meta-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid #edf2f7; font-size: .88rem; }
.meta-list > div:last-child { border-bottom: 0; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 700; text-align: end; }

/* ==========================================================================
   Public site
   ========================================================================== */
.public-body { background: #fff; }
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-bottom: 1px solid #eef2f7; }
.site-header .container { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand-logo { width: 52px; height: 52px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-size: 1.75rem; font-weight: 900; color: var(--navy); letter-spacing: -.5px; }
.brand-sub { position: relative; font-size: .66rem; font-weight: 700; color: var(--teal); text-align: center; margin-top: 2px; }
.brand-sub::before, .brand-sub::after { content: ""; display: inline-block; width: 10px; height: 1px; background: currentColor; vertical-align: middle; margin-inline: 4px; }
.brand.light .brand-name { color: #fff; }
.brand.light .brand-sub { color: #9fe3e4; }
.brand.sm .brand-logo { width: 40px; height: 40px; }
.brand.sm .brand-name { font-size: 1.35rem; }
.site-nav { display: flex; align-items: center; gap: 6px; margin-inline: auto; }
.site-nav a { position: relative; padding: 23px 12px; font-size: .95rem; font-weight: 700; color: var(--text-2); }
.site-nav a::after { content: ""; position: absolute; inset-inline: 12px; bottom: 14px; height: 3px; border-radius: 3px; background: var(--teal); transform: scaleX(0); transition: transform .2s; }
.site-nav a:hover { color: var(--teal-600); }
.site-nav a.active { color: var(--navy); }
.site-nav a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.header-search { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; }
.header-search:hover { background: var(--surface-2); }
.nav-toggle { display: none; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 10px; background: #fff; cursor: pointer; padding: 0; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 20px; height: 2px; margin: auto; background: var(--navy); border-radius: 2px; position: relative; content: ""; }
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }

.section { padding-block: 64px; }
.section-sm { padding-block: 36px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-title { font-size: 1.55rem; font-weight: 800; color: var(--navy); }
.section-subtitle { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.section-center { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.section-center .section-title { font-size: 2rem; }
.eyebrow { display: inline-block; font-size: .9rem; font-weight: 700; color: var(--teal-600); margin-bottom: 8px; }

/* Home hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f6fbfd 0%, #ffffff 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) 230px; align-items: center; gap: 18px; min-height: 400px; padding-block: 16px 6px; }
.hero-visual { position: relative; align-self: center; aspect-ratio: 1003 / 350; overflow: hidden; }
.hero-visual img { position: absolute; top: 0; right: 0; width: 166.7%; max-width: none; height: 100%; clip-path: polygon(46% 0, 100% 0, 100% 100%, 40% 100%, 40% 80%, 46% 80%); }
.hero-copy { text-align: center; padding-block: 18px; }
.hero-copy .eyebrow { font-size: 1.05rem; color: var(--navy); font-weight: 700; }
.hero-copy h1 { font-size: clamp(1.6rem, 2.35vw, 2.55rem); line-height: 1.5; color: var(--navy); font-weight: 900; white-space: nowrap; }
.hero-copy p { margin: 16px auto 0; max-width: 520px; color: var(--muted); font-size: 1.05rem; line-height: 1.9; }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 26px; }
.hero-actions .btn { min-width: 170px; }
.hero-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: .9rem; color: var(--text-2); }
.hero-trust li { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust .icon { width: 22px; height: 22px; }
.hero-mascot { align-self: end; justify-self: center; }
.hero-mascot img { width: 230px; height: auto; }

/* Stats & values */
.values-strip { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1.1fr); align-items: stretch; gap: 22px; }
.values-strip .divider { width: 1px; background: var(--border); }
.value-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.value-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; text-align: center; }
.value-card .icon { width: 42px; height: 42px; margin-bottom: 4px; }
.value-card strong { font-size: .98rem; color: var(--navy); }
.value-card span { font-size: .78rem; color: var(--muted); line-height: 1.5; }
.stats-card { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: center; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; padding: 16px 8px; }
.stats-card .stat { display: flex; align-items: center; justify-content: center; gap: 12px; padding: 4px 10px; border-inline-start: 1px solid var(--border); }
.stats-card .stat:first-child { border-inline-start: 0; }
.stats-card .icon { width: 48px; height: 48px; }
.stats-card strong { display: block; font-size: 1.45rem; font-weight: 800; color: var(--navy); direction: ltr; text-align: end; }
.stats-card span { display: block; font-size: .82rem; color: var(--muted); }

/* Roles & testimonials */
.home-duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
.role-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.role-card { position: relative; display: flex; min-height: 176px; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--border); background: linear-gradient(160deg, #f4f8fd, #e9f3fb); transition: transform .2s, box-shadow .2s; }
.role-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.role-card.students { background: linear-gradient(160deg, #f1f0fd, #e8ebfb); }
.role-card-body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 4px; width: calc(100% - min(150px, 40%)); padding: 16px; }
.role-card-body .icon { width: 34px; height: 34px; margin-bottom: 4px; }
.role-card-body h3 { font-size: 1.05rem; color: var(--navy); }
.role-card-body p { font-size: .82rem; color: var(--text-2); line-height: 1.7; }
.role-card-body .more { margin-top: auto; font-size: .8rem; font-weight: 700; color: var(--teal-600); }
/* The role banners include the design's own caption on their left half; only the illustration side is shown. */
.role-card-art { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(150px, 40%); height: 100%; object-fit: cover; object-position: right bottom; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 36px); mask-image: linear-gradient(to right, transparent 0, #000 36px); }
.testimonials { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.testimonials { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.testimonials::-webkit-scrollbar { display: none; }
.testimonial { display: flex; align-items: center; gap: 12px; margin: 0; padding: 16px 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; scroll-snap-align: start; min-width: 0; }
.testimonial-body { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 0; }
.testimonial .avatar.xl { width: 76px; height: 76px; font-size: 1.6rem; }
.stars { color: #f5a524; letter-spacing: 2px; font-size: .9rem; direction: ltr; }
.testimonial blockquote { margin: 0; font-size: .82rem; line-height: 1.8; color: var(--text-2); }
.testimonial footer strong { display: block; font-size: .88rem; color: var(--navy); }
.testimonial footer span { font-size: .76rem; color: var(--muted); }
.slider-controls { display: flex; gap: 6px; }
.slider-controls button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border); background: #fff; cursor: pointer; color: var(--navy); }

/* Steps, pricing strip, FAQ */
.home-trio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr) minmax(0, .95fr); gap: 22px; align-items: start; }
.home-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.steps.steps-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.steps.steps-5 .step { padding: 16px; }
.steps.steps-5 .step p { font-size: .8rem; }
.pricing-notes { display: grid; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; font-size: .8rem; color: var(--text-2); }
.pricing-notes li { display: flex; align-items: center; gap: 8px; }
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.step { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 14px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.step-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--teal-strong); color: #fff; font-weight: 800; font-size: .9rem; }
.step .icon-tile { width: 46px; height: 46px; border-radius: 50%; }
.step .icon-tile .icon { width: 26px; height: 26px; }
.step h3 { font-size: .98rem; color: var(--navy); }
.step p { font-size: .76rem; color: var(--muted); line-height: 1.6; }
.pricing-strip { padding: 16px; border-radius: var(--radius-lg); background: linear-gradient(160deg, #eef8fa, #f4fafc); border: 1px solid #dcf0f2; }
.pricing-strip-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pricing-strip-head h2 { font-size: 1.1rem; color: var(--navy); }
.pricing-strip-head p { font-size: .76rem; color: var(--muted); }
.price-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.price-mini { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px; border-radius: var(--radius); background: #fff; border: 1px solid var(--border); }
.price-mini strong { display: block; font-size: .9rem; color: var(--navy); }
.price-mini .amount { font-size: 1.15rem; font-weight: 800; color: var(--navy); }
.price-mini small { display: block; font-size: .74rem; color: var(--muted); }
.price-mini .icon { width: 38px; height: 38px; }
.pricing-strip .btn { display: flex; width: fit-content; margin: 12px auto 0; }
.faq { display: grid; gap: 8px; }
.faq details { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 14px; font-size: .88rem; font-weight: 700; cursor: pointer; list-style: none; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 8px; height: 8px; border-inline-end: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; flex-shrink: 0; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq details p { padding: 0 14px 12px; font-size: .84rem; color: var(--muted); line-height: 1.8; }

/* Footer */
.site-footer { background: var(--navy-800); color: #d6e2f0; }
.footer-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 26px; padding-block: 18px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; font-size: .82rem; }
.footer-links a { padding-inline: 12px; border-inline-start: 1px solid rgba(255, 255, 255, .2); }
.footer-links a:first-child { border-inline-start: 0; }
.footer-links a:hover, .footer-links a.active { color: #fff; }
.footer-tagline { font-size: 1.1rem; color: #fff; padding-bottom: 4px; border-bottom: 2px solid var(--teal); }
.social-links { display: flex; gap: 10px; align-items: center; }
.social-links a { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; transition: background .2s; }
.social-links a:hover { background: rgba(255, 255, 255, .1); }
.social-links img { width: 22px; height: 22px; border-radius: 5px; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding-block: 10px 14px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .76rem; color: #9fb4cc; }
.footer-bottom nav { display: flex; gap: 16px; }
.footer-bottom a:hover { color: #fff; }

/* Inner public pages */
.page-hero { position: relative; overflow: hidden; background: linear-gradient(180deg, #f3f9fc, #ffffff); border-bottom: 1px solid #eef3f8; }
.page-hero .container { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 40px; min-height: 320px; padding-block: 36px; }
.page-hero h1 { font-size: clamp(1.8rem, 3vw, 2.6rem); color: var(--navy); font-weight: 900; }
.page-hero p { margin-top: 12px; font-size: 1.05rem; line-height: 1.9; color: var(--muted); max-width: 620px; }
.page-hero .hero-actions { justify-content: flex-start; }
.page-hero-art { display: flex; justify-content: center; }
.page-hero-art img { max-height: 260px; width: auto; }
/* Role banners carry the design caption on their left half: show the illustration side only. */
.page-hero-art.role img { width: 190px; height: 230px; max-height: none; object-fit: cover; object-position: right bottom; border-radius: var(--radius-xl); box-shadow: var(--shadow); background: #eef4fb; }
/* mascot_teacher_presenting.png carries stray design text in its bottom-left corner */
.clip-teacher img, img.clip-teacher { clip-path: polygon(0 0, 100% 0, 100% 100%, 22% 100%, 22% 76%, 0 76%); }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .82rem; color: var(--muted); margin-bottom: 10px; }
.breadcrumb a:hover { color: var(--teal-600); }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.feature-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.feature-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; transition: transform .2s, box-shadow .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature-card .icon-tile { margin-bottom: 6px; }
.feature-card .icon-tile .icon { width: 34px; height: 34px; }
.feature-card h3 { font-size: 1.05rem; color: var(--navy); }
.feature-card p { font-size: .88rem; color: var(--muted); line-height: 1.85; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.check-list { display: grid; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: .95rem; color: var(--text-2); }
.check-list .icon { width: 22px; height: 22px; margin-top: 3px; }
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 26px 32px; border-radius: var(--radius-xl); background: linear-gradient(120deg, var(--navy), #0d4a74); color: #fff; }
.cta-band h2 { font-size: 1.45rem; }
.cta-band p { color: #c7d9ec; margin-top: 4px; }
.cta-band .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .5); }
.cta-band .btn-outline:hover { background: rgba(255, 255, 255, .08); }
.plan-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px; border: 1px solid var(--border); border-radius: var(--radius-xl); background: #fff; }
.plan-card.featured { border: 2px solid var(--teal); box-shadow: var(--shadow); }
.plan-card .plan-flag { position: absolute; top: -13px; inset-inline-start: 24px; }
.plan-head { display: flex; align-items: center; gap: 12px; }
.plan-head .icon { width: 44px; height: 44px; }
.plan-head h3 { font-size: 1.2rem; color: var(--navy); }
.plan-price { display: flex; align-items: baseline; gap: 6px; }
.plan-price strong { font-size: 2.3rem; font-weight: 900; color: var(--navy); }
.plan-price span { color: var(--muted); font-size: .9rem; }
.plan-card .check-list li { font-size: .9rem; }
.plan-card .btn { margin-top: auto; }
.legal { max-width: 900px; }
.legal-card { padding: 30px 34px; }
.legal h2 { font-size: 1.15rem; color: var(--navy); margin: 26px 0 8px; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal li { color: var(--text-2); line-height: 2; font-size: .95rem; }
.legal ul { list-style: disc; padding-inline-start: 22px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 24px; align-items: start; }
.contact-info { display: grid; gap: 12px; }
.contact-item { display: flex; align-items: center; gap: 14px; padding: 16px; }
.contact-item .icon-tile .icon { width: 30px; height: 30px; }
.contact-item strong { display: block; color: var(--navy); }
.contact-item span, .contact-item a { font-size: .88rem; color: var(--muted); direction: ltr; unicode-bidi: isolate; }
.contact-item a:hover { color: var(--teal); text-decoration: underline; }
.form-card { padding: 26px; }

/* Auth */
.auth-shell { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: calc(100vh - 72px); }
.auth-aside { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 18px; padding: 40px; overflow: hidden; background: linear-gradient(160deg, #eef8fb, #e3f1f8); text-align: center; }
.auth-aside h2 { font-size: 1.8rem; color: var(--navy); line-height: 1.5; }
.auth-aside p { color: var(--muted); max-width: 400px; }
.auth-aside img.mascot { width: 230px; height: auto; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 36px 20px; background: #fff; }
.auth-card { width: min(460px, 100%); display: flex; flex-direction: column; gap: 18px; }
.auth-card h1 { font-size: 1.7rem; color: var(--navy); }
.auth-card .lead { color: var(--muted); font-size: .95rem; margin-top: 4px; }
.auth-card .auth-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .86rem; }
.auth-switch { text-align: center; font-size: .9rem; color: var(--muted); }
.auth-switch a { color: var(--teal-600); font-weight: 700; }
.role-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.role-picker label { position: relative; cursor: pointer; }
.role-picker input { position: absolute; opacity: 0; }
.role-picker .role-option { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border: 1.5px solid var(--border); border-radius: var(--radius); text-align: center; font-size: .86rem; font-weight: 700; color: var(--text-2); transition: border-color .15s, background .15s; }
.role-picker .role-option .icon { width: 34px; height: 34px; }
.role-picker input:checked + .role-option { border-color: var(--teal); background: var(--teal-50); color: var(--navy); }
.role-picker input:focus-visible + .role-option { outline: 3px solid rgba(1, 155, 162, .35); }

/* Error pages */
.error-page { display: grid; place-items: center; min-height: 100vh; padding: 24px; background: var(--bg); text-align: center; }
.error-card { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 520px; padding: 36px; }
.error-card .code { font-size: 4rem; font-weight: 900; color: var(--teal); line-height: 1; }
.error-card img { width: 170px; }

/* ==========================================================================
   Responsive — public
   ========================================================================== */
@media (max-width: 1280px) {
    .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr) 200px; }
    .hero-mascot img { width: 190px; }
    .values-strip { grid-template-columns: 1fr; }
    .values-strip .divider { display: none; }
    .home-trio { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .home-trio > :last-child { grid-column: 1 / -1; }
    .steps.steps-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .site-nav { position: fixed; top: 72px; inset-inline: 0; flex-direction: column; align-items: stretch; gap: 0; margin: 0; padding: 10px 20px 18px; background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: .2s; }
    .site-nav.open { transform: none; opacity: 1; visibility: visible; }
    .site-nav a { padding: 12px 6px; border-bottom: 1px solid #f0f4f8; }
    .site-nav a::after { display: none; }
    .site-nav a.active { color: var(--teal-600); }
    .nav-toggle { display: grid; place-items: center; }
    .header-actions { margin-inline-start: auto; }
    .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .hero-mascot { display: none; }
    .home-duo, .home-pair { grid-template-columns: 1fr; }
    .role-cards { grid-template-columns: 1fr; }
    .feature-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .footer-main { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
    .container { width: calc(100% - 32px); }
    .hero-grid { grid-template-columns: 1fr; }
    .hero-copy h1 { white-space: normal; font-size: 1.75rem; }
    .hero-visual { order: 2; }
    .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .stats-card { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
    .stats-card .stat:nth-child(3) { border-inline-start: 0; }
    .home-trio { grid-template-columns: 1fr; }
    .steps.steps-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .feature-grid, .plan-grid, .split, .contact-grid { grid-template-columns: 1fr; }
    .page-hero .container { grid-template-columns: 1fr; min-height: 0; }
    .page-hero-art { order: -1; }
    .auth-shell { grid-template-columns: 1fr; }
    .auth-aside { display: none; }
    .section { padding-block: 44px; }
}
@media (max-width: 600px) {
    .site-header .container { height: 64px; gap: 10px; }
    .site-nav { top: 64px; }
    .brand-logo { width: 42px; height: 42px; }
    .brand-name { font-size: 1.4rem; }
    .header-actions .btn-outline, .header-search { display: none; }
    .header-actions .btn { padding-inline: 14px; }
    .role-cards, .steps, .steps.steps-5, .price-mini-grid { grid-template-columns: 1fr; }
    .testimonials { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 88%; }
    .value-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-card { grid-template-columns: 1fr 1fr; }
    .stats-card .stat { flex-direction: column; text-align: center; border: 0; }
    .stats-card strong { text-align: center; }
    .feature-grid.cols-4 { grid-template-columns: 1fr; }
    .footer-main { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .footer-bottom { justify-content: center; text-align: center; }
    .form-grid { grid-template-columns: 1fr; }
    .role-picker .role-option { padding: 10px 4px; font-size: .8rem; }
    .cta-band { padding: 22px; }
    .legal-card { padding: 22px; }
    .section-head { flex-direction: column; align-items: flex-start; }
}

/* Confirm dialog (app.js) ----------------------------------------------- */
.modal-dialog.sm { width: min(440px, 100%); }
.confirm-modal { z-index: 260; }
.confirm-message { margin: 0; font-size: .98rem; font-weight: 600; line-height: 1.8; color: var(--text); white-space: pre-line; }

/* Toasts: live notifications and success messages (app.js) --------------- */
.toast-stack { position: fixed; top: 84px; inset-inline-end: 20px; z-index: 300; display: flex; flex-direction: column; gap: 10px; width: min(380px, calc(100vw - 32px)); pointer-events: none; }
.toast { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 13px 14px 15px; overflow: hidden; background: #fff; color: var(--text); border: 1px solid var(--border); border-inline-start: 4px solid var(--teal); border-radius: 14px; box-shadow: 0 14px 34px rgba(6, 34, 71, .18); text-decoration: none; pointer-events: auto;
    opacity: 0; transform: translateX(calc(-110% - 20px)); transition: transform .38s cubic-bezier(.2, .9, .3, 1.15), opacity .3s; }
[dir="ltr"] .toast { transform: translateX(calc(110% + 20px)); }
.toast.show { opacity: 1; transform: none; }
.toast.leaving { opacity: 0; transform: translateX(calc(-110% - 20px)); transition: transform .32s ease-in, opacity .3s; }
a.toast:hover { box-shadow: 0 16px 38px rgba(6, 34, 71, .24); }
.toast-icon { flex-shrink: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--teal) center / 20px no-repeat; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 8a6 6 0 0 0-12 0c0 7-3 9-3 9h18s-3-2-3-9'/%3E%3Cpath d='M13.7 21a2 2 0 0 1-3.4 0'/%3E%3C/svg%3E"); }
.toast-success { border-inline-start-color: #12a36d; }
.toast-success .toast-icon { background-color: #12a36d; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.toast-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; flex: 1; }
.toast-text strong { font-size: .92rem; line-height: 1.5; color: var(--navy, #062247); }
.toast-text small { font-size: .82rem; line-height: 1.6; color: var(--text-2, #475569); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.toast-text em { font-style: normal; font-size: .72rem; color: var(--muted); }
.toast-close { flex-shrink: 0; width: 26px; height: 26px; margin: -4px -2px 0 0; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-size: 1.15rem; line-height: 1; cursor: pointer; }
.toast-close:hover { background: var(--surface-2); color: var(--text); }
.toast-progress { position: absolute; inset-inline: 0; bottom: 0; height: 3px; background: var(--teal); opacity: .35; transform-origin: left; animation: toast-progress 6.5s linear forwards; }
[dir="rtl"] .toast-progress { transform-origin: right; }
.toast-success .toast-progress { background: #12a36d; }
.toast.paused .toast-progress { animation-play-state: paused; }
@keyframes toast-progress { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (max-width: 640px) { .toast-stack { top: 70px; inset-inline: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .toast, .toast.leaving { transition: opacity .2s; transform: none; } .toast-progress { animation: none; } }
@media print { .toast-stack, .confirm-modal { display: none !important; } }

/* Customer service contact (partials/support-contact) -------------------- */
.btn-whatsapp { background: #1fa855; border-color: #1fa855; color: #fff; }
.btn-whatsapp:hover { background: #178a45; border-color: #178a45; color: #fff; }
.wa-glyph { flex-shrink: 0; }
.support-contact { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; margin-bottom: 16px; padding: 14px 18px; background: #fff; border: 1px solid var(--border); border-inline-start: 4px solid #1fa855; border-radius: var(--radius); }
.support-contact-text strong { display: block; color: var(--navy); font-size: .98rem; }
.support-contact-text small { color: var(--muted); font-size: .82rem; }
.support-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.support-contact-actions .btn { gap: 8px; }
.support-contact-inline { margin: 0; padding: 0; background: transparent; border: 0; justify-content: center; }
.footer-contact { padding-bottom: 14px; }
.footer-contact .btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.footer-contact .btn-outline:hover { background: rgba(255, 255, 255, .1); }
.footer-contact .btn-outline .icon { filter: brightness(0) invert(1); }
.tone-whatsapp { background: #e3f6ea; color: #1fa855; }
.tone-whatsapp .wa-glyph { width: 28px; height: 28px; }
.whatsapp-float { position: fixed; bottom: 22px; inset-inline-start: 22px; z-index: 90; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #1fa855; color: #fff; box-shadow: 0 10px 26px rgba(31, 168, 85, .4); transition: transform .2s; }
.whatsapp-float:hover { transform: scale(1.07); color: #fff; }
.whatsapp-float .wa-glyph { width: 30px; height: 30px; }
@media print { .whatsapp-float { display: none; } }
