/* Shell extras (top bar, notifications, install, snack) + home, services, support, 404 pages */

/* ---------- Top bar extras ---------- */
.bell-btn { position: relative; }
.bell-btn.has-dot::after {
  content: ""; position: absolute; top: 9px; inset-inline-end: 10px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--danger); box-shadow: 0 0 0 2px var(--surface);
}
@media (max-width: 899px) { .topbar-actions .hide-mobile { display: none; } }
@media (max-width: 380px) { .topbar-actions { gap: 0; } .brand-text small { display: none; } }
.link-btn { font: inherit; color: inherit; }
.link-btn:hover, .footer a:hover { color: var(--primary-2); }
.portal-install-btn { height: 38px; display: inline-flex; align-items: center; gap: 7px; padding: 0 11px; border-radius: 11px; background: var(--primary-soft); color: var(--primary-ink); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.portal-install-btn:hover { background: color-mix(in srgb, var(--primary) 18%, var(--surface)); }
.portal-install-btn.installed { color: var(--success); background: var(--success-soft); }
.portal-install-btn .icon { width: 18px; height: 18px; }
@media (max-width: 680px) { .portal-install-btn { width: 38px; padding: 0; justify-content: center; } .portal-install-btn span { display: none; } }

.notif-list .list-item { align-items: flex-start; padding-inline: 4px; }
.notif-list .notif-body { font-size: 14px; color: var(--text-2); margin-top: 2px; white-space: pre-line; }
.notif-list .li-title .badge { height: 20px; font-size: 11px; vertical-align: middle; }
.dialog-body > .notif-list { margin: -8px -4px; }

.ann-pop { text-align: center; }
.ann-pop-img { position: relative; height: 150px; border-radius: 16px; overflow: hidden; margin-bottom: 16px; }
.ann-pop-img img { width: 100%; height: 100%; object-fit: cover; }
.ann-pop-push { display: flex; align-items: center; gap: 10px; width: 100%; margin-top: 14px; padding: 10px 12px; border-radius: 12px; border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--border)); background: var(--primary-soft); color: var(--text); font: inherit; font-size: 13px; text-align: start; cursor: pointer; }
.ann-pop-push span { flex: 1; line-height: 1.6; }
.ann-pop-push b { flex: none; padding: 5px 12px; border-radius: 999px; background: var(--primary); color: #fff; font-size: 12.5px; }
.ann-pop-push.on { border-style: solid; border-color: var(--success); background: var(--success-soft); cursor: default; }
.ann-pop-push .icon { flex: none; color: var(--primary-ink); }
.ann-pop-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10,26,50,.75), rgba(10,26,50,.1)); }
.ann-pop-ic { position: absolute; z-index: 1; inset-inline: 0; bottom: 14px; margin: auto; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--accent); color: #1b1300; box-shadow: var(--shadow-lg); }
.ann-pop h3 { font-size: 19px; margin-bottom: 6px; }
.ann-pop p { color: var(--text-2); white-space: pre-line; }

.shell-snack {
  position: fixed; z-index: 110; inset-inline: 16px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  margin-inline: auto; max-width: 420px; display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  background: var(--toast-bg); color: #fff; border-radius: 14px; box-shadow: var(--shadow-lg); animation: rise .25s var(--ease); font-size: 14px;
}
.shell-snack span { flex: 1; }
.shell-snack b { color: var(--accent); }
@media (min-width: 900px) { .shell-snack { bottom: 24px; } }

.install-box .install-hero { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.install-box .install-hero img { border-radius: 16px; box-shadow: var(--shadow); }
.install-box .install-hero b { font-size: 17px; }
.install-tabs { display: flex; width: 100%; }
.install-tabs button { flex: 1; padding: 0 6px; }
.install-steps { margin: 14px 0 0; padding-inline-start: 22px; display: grid; gap: 8px; color: var(--text-2); }
.install-steps li::marker { color: var(--primary-2); font-weight: 700; }
.shortcuts .list-item { min-height: 48px; padding: 8px 4px; gap: 6px; }

.chip-count { font-size: 11.5px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; display: inline-grid; place-items: center; background: var(--surface-2); color: var(--muted); }
.chip.active .chip-count { background: rgba(255,255,255,.2); color: #fff; }

/* ---------- Home ---------- */
.home-hero h1 { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hero-edit { width: 32px; height: 32px; border-radius: 10px; display: inline-grid; place-items: center; background: rgba(255,255,255,.16); color: #fff; backdrop-filter: blur(8px); transition: background .15s; }
.hero-edit:hover { background: rgba(255,255,255,.3); }

.name-ask { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; margin-top: 14px; padding: 14px 16px; }
.name-ask-body { flex: 1 1 200px; display: flex; flex-direction: column; line-height: 1.5; }
.name-ask-actions { display: flex; gap: 8px; flex: 1 1 320px; }
.name-ask-actions .input { flex: 1; min-width: 0; }

.stat-strip.four { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .stat-strip.four { grid-template-columns: repeat(4, 1fr); } }
.stat-strip.four .stat { display: flex; align-items: center; gap: 12px; transition: border-color .15s; }
.stat-strip.four a.stat:hover { border-color: var(--border-strong); }
.stat-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); flex: none; }
.stat-strip.four .stat b { font-size: 19px; }

.ticker {
  margin-top: 14px; display: flex; align-items: center; gap: 12px; padding: 8px 8px 8px 14px; overflow: hidden;
  background: var(--primary); color: #fff; border-radius: var(--radius); box-shadow: var(--shadow-sm);
}
.ticker-badge { display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 13px; font-weight: 700; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.12); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff6b6b; box-shadow: 0 0 0 0 rgba(255,107,107,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(255,107,107,0); } 100% { box-shadow: 0 0 0 0 rgba(255,107,107,0); } }
.ticker-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker-move { display: flex; width: max-content; animation: tickerRtl 60s linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-group { display: flex; }
.ticker-item { display: inline-flex; align-items: baseline; gap: 8px; padding-inline: 18px; white-space: nowrap; font-size: 14px; position: relative; }
.ticker-item::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); translate: 50% -50%; }
.ticker-item b { font-weight: 600; }
.ticker-item span { color: #ffd98a; font-size: 13px; }
.ticker-hint { display: inline-flex; align-items: center; gap: 2px; flex: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 10px; background: #fff; color: var(--primary); }
@keyframes tickerRtl { from { transform: translateX(0); } to { transform: translateX(50%); } }
@media (max-width: 639px) {
  .ticker { flex-wrap: wrap; padding: 10px 12px; gap: 8px; }
  .ticker-badge { order: 1; }
  .ticker-hint { order: 2; margin-inline-start: auto; }
  .ticker-track { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } .ticker-track { overflow-x: auto; } }

.daily-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.daily-grid .photo-card { aspect-ratio: 4 / 5; }
@media (min-width: 640px) { .daily-grid { grid-template-columns: repeat(4, 1fr); gap: 16px; } .daily-grid .photo-card { aspect-ratio: 3 / 4; } }
@media (max-width: 639px) {
  .daily-grid .photo-card.big .pc-title { font-size: 16px; }
  .daily-grid .photo-card.big .pc-sub { font-size: 12px; -webkit-line-clamp: 2; }
}
.tool-chips { margin-bottom: 14px; }
.tools-grid .tool-cell, .photo-grid > .tool-cell { display: block; min-width: 0; }
.tools-grid .tool-cell .photo-card, .photo-grid > .tool-cell .photo-card { height: 100%; }

.home-duo { display: grid; gap: 22px; }
@media (min-width: 900px) { .home-duo:not(.single) { grid-template-columns: 1fr 1fr; } }
.home-duo.single { max-width: 720px; }
.room-card { display: flex; flex-direction: column; gap: 12px; }
.room-head { display: flex; align-items: center; gap: 12px; }
.room-form { display: flex; gap: 8px; }
.room-form .search-field { flex: 1; }
.room-result:empty { display: none; }
.room-hit { border-radius: 12px; background: var(--info-soft); padding: 12px 14px; display: grid; gap: 8px; animation: fade .2s; }
.room-hit > b { display: flex; align-items: center; gap: 6px; color: var(--info); }
.room-hit.miss { background: var(--accent-soft); }
.room-hit.miss > b { color: var(--accent-ink); }
.room-facts { display: flex; flex-wrap: wrap; gap: 8px; }
.room-facts span { display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; padding: 6px 12px; font-weight: 600; font-size: 14px; line-height: 1.4; }
.room-facts small { font-size: 11.5px; color: var(--muted); font-weight: 500; }

.install-hint { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.install-hint img { border-radius: 12px; }
.install-hint .li-body { flex: 1; min-width: 0; }
@media (max-width: 480px) {
  .install-hint { display: grid; grid-template-columns: 48px 1fr auto; row-gap: 10px; }
  .install-hint .btn { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- Services store ---------- */
.wa-card { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 16px; padding: 16px 18px; }
.wa-ic { width: 48px; height: 48px; border-radius: 14px; flex: none; display: grid; place-items: center; background: #e5f7ec; color: #1e9e55; }
.wa-text { flex: 1 1 220px; min-width: 0; }
.wa-text b { font-size: 16px; }
@media (max-width: 560px) { .wa-card .btn { width: 100%; } }
.trust-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.trust { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 5px 12px 5px 10px; }
.trust .icon { color: var(--success); }

.svc-head { align-items: flex-start; gap: 12px; }
.svc-num { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; margin-top: 2px; }
.svc-head-text { flex: 1; min-width: 0; }
.svc-head-text h2 { font-size: 18px; line-height: 1.45; }
.svc-head .badge { margin-top: 5px; }

.svc-grid { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .svc-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-card { display: flex; flex-direction: column; overflow: hidden; text-align: start; padding: 0; width: 100%; }
.svc-img { position: relative; display: grid; place-items: center; aspect-ratio: 4 / 3; background: linear-gradient(160deg, #eef2f9, #e3e9f4); overflow: hidden; color: var(--primary); }
.svc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.svc-card:hover .svc-img img { transform: scale(1.04); }
.svc-badge { position: absolute; top: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px); font-size: 11.5px; font-weight: 700; padding: 3px 9px; border-radius: 99px; background: rgba(255,255,255,.94); color: var(--primary); box-shadow: var(--shadow-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.svc-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; flex: 1; }
.svc-title { font-weight: 700; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-desc { font-size: 13px; color: var(--muted); line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.svc-foot { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 8px; }
.svc-price { font-weight: 700; color: var(--primary-ink); font-size: 15px; display: inline-flex; align-items: baseline; gap: 4px; }
.svc-price small, .svc-price-row small { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.svc-hl { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; color: var(--accent-ink); }
.svc-hl .icon { width: 13px; height: 13px; }
@media (max-width: 639px) {
  .svc-body { padding: 10px 11px 12px; }
  .svc-title { font-size: 14px; }
  .svc-desc { display: none; }
  .svc-hl { display: none; }
}

.svc-detail { display: grid; gap: 12px; }
.svc-detail-img { border-radius: 16px; overflow: hidden; background: linear-gradient(160deg, #eef2f9, #e3e9f4); aspect-ratio: 16 / 9; display: grid; place-items: center; }
.svc-detail-img img { width: 100%; height: 100%; object-fit: cover; }
.svc-long { color: var(--text-2); white-space: pre-line; }
.wrap-chips { flex-wrap: wrap; overflow: visible; }
.wrap-chips .chip { height: 32px; font-size: 13px; }
.wrap-chips .chip .icon { color: var(--success); }
.svc-price-row { display: flex; align-items: baseline; justify-content: space-between; padding: 12px 14px; border-radius: 12px; background: var(--primary-soft); }
.svc-price-row b { font-size: 19px; color: var(--primary-ink); }
.dialog-foot .btn-success .icon, .wa-card .btn-success .icon { color: #fff; }

.custom-req { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 16px 18px; border-style: dashed; border-color: #cfc3f5; background: #faf8ff; }
.custom-req .li-body { flex: 1 1 260px; }
.custom-req b { font-size: 15.5px; }
.custom-actions { display: flex; gap: 8px; flex-wrap: wrap; }
@media (max-width: 560px) { .custom-actions { width: 100%; } .custom-actions .btn { flex: 1; } }
.integrity { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 0 4px; line-height: 1.7; }
.integrity .icon { margin-top: 3px; color: var(--muted); }
.req-done { padding: 20px 10px; }

.drop { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 24px 16px; border: 2px dashed var(--border-strong); border-radius: 16px; background: var(--surface-2); cursor: pointer; color: var(--text-2); transition: border-color .15s, background .15s; }
.drop:hover { border-color: var(--primary-2); background: var(--primary-soft); }
.drop .icon { color: var(--primary-2); margin-bottom: 4px; }
.conv-list .list-item { min-height: 54px; padding: 8px 4px; }
.conv-list .ico-box { width: 36px; height: 36px; }

/* ---------- Support ---------- */
.support-layout { display: grid; gap: 20px; align-items: start; }
@media (min-width: 960px) { .support-layout { grid-template-columns: minmax(0, 1fr) 340px; } .support-side { position: sticky; top: calc(var(--topbar-h) + 16px); } }
.support-side { display: grid; gap: 14px; }
.support-main, .support-side, .chat-card, .home-duo > div { min-width: 0; }
.support-tabs { display: flex; width: 100%; margin-bottom: 12px; }
.support-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; }

.chat-card { display: flex; flex-direction: column; height: min(640px, calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 90px)); min-height: 440px; overflow: hidden; }
@media (min-width: 900px) { .chat-card { height: min(660px, calc(100dvh - var(--topbar-h) - 120px)); } }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); }
.chat-head .li-body { flex: 1; min-width: 0; line-height: 1.4; }
.chat-head .icon-btn.on { color: var(--success); background: var(--success-soft); }
.chat-head .icon-btn.off { color: var(--danger); }
.avatar { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: 17px; }
.avatar.team { background: var(--success-soft); color: var(--success); }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; align-self: flex-end; }
.avatar.sm .icon { width: 14px; height: 14px; }

.chat-msgs { flex: 1; overflow-y: auto; padding: 16px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface-sunk); overscroll-behavior: contain; }
.bubble-row { display: flex; gap: 8px; align-items: flex-end; max-width: 88%; }
.bubble-row.me { align-self: flex-end; }
.bubble-row.bot { align-self: flex-start; }
.bubble { display: block; padding: 9px 13px; border-radius: 16px; font-size: 14.5px; line-height: 1.6; white-space: pre-line; word-break: break-word; }
.bubble-row.me .bubble { background: var(--primary); color: #fff; border-end-end-radius: 4px; }
.bubble-row.bot .bubble { background: var(--surface); border: 1px solid var(--border); color: var(--text); border-end-start-radius: 4px; }
.bubble.pending { opacity: .65; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--success); margin-bottom: 2px; }
.bubble .time { display: flex; align-items: center; gap: 2px; justify-content: flex-end; font-size: 11px; opacity: .7; margin-top: 2px; }
.bubble .time .icon { width: 13px; height: 13px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: typing 1.2s infinite ease-in-out both; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; }
.bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { transform: scale(.5); opacity: .4; } 40% { transform: none; opacity: 1; } }
.bot-items { display: grid; gap: 6px; margin-top: 8px; white-space: normal; }
.bot-item { display: flex; flex-direction: column; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); line-height: 1.45; transition: background .12s; }
.bot-item:hover { background: var(--primary-soft); }
.bot-item b { font-size: 14px; }
.bot-item span { font-size: 12.5px; color: var(--muted); }
.bot-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; white-space: normal; }
.chat-note, .chat-day { align-self: center; font-size: 12px; color: var(--muted); background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 3px 12px; display: inline-flex; align-items: center; gap: 6px; }
.chat-day { background: transparent; border: 0; font-weight: 600; }
.chat-empty, .chat-loading { margin: auto; text-align: center; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.chat-loading { flex-direction: row; }

.chat-chips { padding: 8px 12px 0; flex: none; }
.chat-chips .chip { height: 32px; font-size: 13px; padding: 0 12px; }
.chat-chips .chip.emoji { padding: 0 10px; font-size: 15px; }
.chat-form { display: flex; gap: 8px; padding: 10px 12px 12px; flex: none; align-items: flex-end; }
.chat-form .input { flex: 1; min-width: 0; resize: none; line-height: 1.5; max-height: 140px; }
.chat-send { width: 46px; padding: 0; flex: none; }
.start-form { padding: 16px; overflow-y: auto; }
.start-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
@media (max-width: 560px) { .start-actions .btn { flex: 1 1 100%; } }

.wa-hub .row { margin-bottom: 8px; }
.wa-options .list-item { min-height: 56px; padding: 8px 2px; border-radius: 10px; }
.wa-options .ico-box { width: 38px; height: 38px; border-radius: 11px; }
.faq h3 { margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--border); }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 0; font-weight: 600; font-size: 14.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--muted); transition: transform .2s; flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 0 12px; color: var(--text-2); font-size: 14px; }

/* ---------- 404 ---------- */
.nf { display: grid; overflow: hidden; }
.nf img { width: 100%; height: 200px; object-fit: cover; }
.nf-body { padding: 24px 22px 26px; }
.nf-code { display: inline-block; font-weight: 700; color: var(--accent); background: var(--accent-soft); border-radius: 99px; padding: 2px 12px; margin-bottom: 8px; }
@media (min-width: 768px) { .nf { grid-template-columns: 1fr 1fr; align-items: center; } .nf img { height: 100%; min-height: 320px; } .nf-body { padding: 40px; } }

/* ---------- News bar under the top bar ---------- */
.news-bar { position: sticky; top: var(--topbar-h); z-index: 45; background: var(--primary); color: #fff; }
.nb-inner { display: flex; align-items: center; gap: 12px; height: 42px; }
.nb-badge { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; flex: none; font-size: 12.5px; font-weight: 700; padding: 4px 10px; border-radius: 8px; background: rgba(255,255,255,.12); white-space: nowrap; max-width: 46%; overflow: hidden; text-overflow: ellipsis; }
.nb-track { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); mask-image: linear-gradient(to left, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.nb-move { display: flex; width: max-content; animation: tickerRtl var(--nb-dur, 45s) linear infinite; }
.news-bar:hover .nb-move { animation-play-state: paused; }
.nb-group { display: flex; }
.nb-item { position: relative; display: inline-flex; align-items: baseline; gap: 8px; padding-inline: 18px; white-space: nowrap; font-size: 13.5px; }
.nb-item::after { content: ""; position: absolute; inset-inline-end: 0; top: 50%; width: 4px; height: 4px; border-radius: 50%; background: var(--accent); translate: 50% -50%; }
.nb-item b { font-weight: 600; }
.nb-item span { color: #ffd98a; font-size: 12.5px; }
.nb-item:hover b { text-decoration: underline; }
@media (max-width: 639px) { .nb-badge { display: none; } .nb-inner { height: 38px; } }
/* The news keeps moving even with "reduce motion" on (many Windows laptops have it on), just slower; hover pauses it. */
@media (prefers-reduced-motion: reduce) { .nb-move { animation-duration: calc(var(--nb-dur, 45s) * 1.6) !important; } }

/* ---------- Home slideshow banner ---------- */
.slides { position: relative; overflow: hidden; isolation: isolate; border-radius: 22px; margin-top: 16px; min-height: 190px; background: #1b2a40; color: #fff; }
@media (min-width: 768px) { .slides { min-height: 230px; } }
.slide { position: absolute; inset: 0; display: flex; align-items: flex-end; opacity: 0; transition: opacity .8s ease; pointer-events: none; }
.slide.on { opacity: 1; pointer-events: auto; }
.slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transform: scale(1.04); transition: transform 3.6s ease-out; }
.slide.on img { transform: scale(1); }
.slide::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(10,26,50,.9), rgba(10,26,50,.3)); }
.slide-body { padding: 22px 20px 34px; width: 100%; }
@media (min-width: 768px) { .slide-body { padding: 30px 32px 38px; } }
.slide-body h1, .slide-body h2 { color: #fff; font-size: clamp(21px, 3.4vw, 30px); line-height: 1.3; } /* one h1 per page: later slides use h2 */
.slide-body p { opacity: .88; margin-top: 4px; max-width: 640px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.slide-body .slide-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.16); backdrop-filter: blur(8px); margin-bottom: 8px; }
.slide-body .slide-more { display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #ffd98a; }
.slide-dots { position: absolute; bottom: 12px; inset-inline-start: 50%; translate: 50% 0; display: flex; gap: 18px; z-index: 2; }
[dir="rtl"] .slide-dots { translate: 50% 0; }
.slide-dots button { width: 7px; height: 7px; border-radius: 999px; background: rgba(255,255,255,.45); transition: width .3s, background .3s; }
.slide-dots button.on { width: 20px; background: #fff; }

/* ---------- Support: social links + team bubbles ---------- */
.social-card h3 { margin-bottom: 10px; }
.social-list { display: grid; gap: 8px; }
.social-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); text-align: start; transition: border-color .15s, background .15s; }
.social-btn:hover { border-color: var(--border-strong); background: var(--hover); }
.social-btn .li-body { flex: 1; display: flex; flex-direction: column; line-height: 1.35; }
.social-btn small { color: var(--muted); font-size: 12.5px; }
.social-ic { width: 42px; height: 42px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; }
.social-btn.fb .social-ic { background: #1877f2; }
.social-btn.ig .social-ic { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.social-btn.wa .social-ic { background: #25d366; }
.bubble-row.bot .bubble.team-msg { background: var(--success-soft); border-color: #cbead6; }
.bubble .who { display: block; font-size: 11.5px; font-weight: 700; color: var(--success); margin-bottom: 2px; }

/* ---------- Dark mode tweaks ---------- */
:root[data-theme="dark"] .shell-snack { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07), var(--shadow-lg); }
:root[data-theme="dark"] .ticker-hint { background: rgba(255, 255, 255, .92); color: #15335e; }
:root[data-theme="dark"] .wa-ic { background: var(--success-soft); color: var(--success); }
:root[data-theme="dark"] .svc-img, :root[data-theme="dark"] .svc-detail-img { background: linear-gradient(160deg, #1b2638, #151f30); color: var(--primary-ink); }
:root[data-theme="dark"] .svc-badge { background: var(--on-photo-chip); color: var(--primary-ink); }
:root[data-theme="dark"] .custom-req { border-color: color-mix(in srgb, var(--violet) 40%, var(--border)); background: color-mix(in srgb, var(--violet-soft) 55%, var(--surface)); }
:root[data-theme="dark"] .bubble-row.bot .bubble.team-msg { border-color: color-mix(in srgb, var(--success) 30%, var(--border)); }
:root[data-theme="dark"] .news-bar { background: #173262; }
:root[data-theme="dark"] .ticker { background: #1d3d73; }

/* Links and bold text inside smart-assistant answers */
.bubble .bot-link { color: var(--primary); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
:root[data-theme="dark"] .bubble .bot-link { color: #8fb3ea; }

/* Floating buttons (bottom right): chat with the assistant + WhatsApp */
.fab-stack {
  position: fixed; z-index: 58; right: 16px; bottom: calc(var(--tabbar-h) + 14px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 12px; align-items: center;
  transition: bottom .25s var(--ease), opacity .2s;
}
@media (min-width: 900px) { .fab-stack { right: 24px; bottom: 24px; } }
body:has(.cart-bar) .fab-stack { bottom: calc(var(--tabbar-h) + 84px + env(safe-area-inset-bottom)); }
@media (min-width: 900px) { body:has(.cart-bar) .fab-stack { bottom: 96px; } }
.fab {
  width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 0; cursor: pointer;
  box-shadow: 0 10px 24px -8px rgba(10, 25, 45, .45), 0 2px 6px rgba(10, 25, 45, .18);
  transition: transform .18s var(--ease), box-shadow .18s; animation: fab-in .35s var(--ease) both;
}
.fab .icon { width: 26px; height: 26px; stroke-width: 2; }
.fab:hover { transform: translateY(-2px) scale(1.04); }
.fab:active { transform: scale(.96); }
.fab:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.fab.chat { background: var(--primary); }
.fab.wa { background: #25d366; animation-delay: .06s; }
.fab.wa .icon { width: 28px; height: 28px; }
.fab[hidden] { display: none; }
.fab-stack[hidden] { display: none; }
@keyframes fab-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fab { animation: none; transition: none; } }

/* Desktop: the two buttons as before, no toggle. */
.fab-menu { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.fab-toggle { display: none; }
.fab-label { display: none; }

/* Phones: one small help button; tapping it shows the two choices with their names. */
@media (max-width: 899px) {
  .fab-stack { right: 12px; gap: 10px; align-items: flex-end; }
  .fab-toggle { display: grid; width: 46px; height: 46px; background: var(--primary); opacity: .94; }
  .fab-toggle .icon { width: 22px; height: 22px; }
  .fab-toggle .icon + .icon { display: none; }
  .fab-stack.open .fab-toggle .icon:first-child { display: none; }
  .fab-stack.open .fab-toggle .icon + .icon { display: block; }
  .fab-menu { align-items: flex-end; gap: 8px; }
  .fab-stack:not(.open) .fab-menu { display: none; }
  .fab-menu .fab { width: auto; height: 44px; padding: 0 16px 0 12px; border-radius: 999px; gap: 8px; display: inline-flex; align-items: center; animation: fab-pop .18s var(--ease) both; }
  .fab-menu .fab .icon { width: 22px; height: 22px; }
  .fab-menu .fab.wa { animation-delay: .04s; }
  .fab-label { display: inline; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
  /* Reading (scrolling down): the help button and the tab bar step aside. */
  .tabbar { transition: transform .25s var(--ease); }
  body.ui-tucked .tabbar { transform: translateY(100%); }
  body.ui-tucked .fab-stack { opacity: 0; pointer-events: none; transform: translateY(20px); }
  .fab-stack { transition: bottom .25s var(--ease), opacity .2s, transform .25s var(--ease); }
}
@keyframes fab-pop { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .tabbar, .fab-stack { transition: none; } }
@media print { .fab-stack { display: none !important; } }
:root[data-theme="dark"] .fab { box-shadow: 0 10px 26px -8px rgba(0, 0, 0, .7); }

/* ================= Support chat (cx-*) ================= */
.cx-card {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 36px - env(safe-area-inset-bottom)); min-height: 480px; max-height: 760px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; box-shadow: var(--shadow);
}
@media (min-width: 900px) { .cx-card { height: calc(100dvh - var(--topbar-h) - 64px); max-height: 720px; } }

.cx-head {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; flex: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)); color: #fff;
}
.cx-title { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.cx-title b { font-size: 16px; }
.cx-title small { font-size: 12.5px; opacity: .82; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .1); border: 0; cursor: pointer; transition: background .15s; }
.cx-icon:hover { background: rgba(255, 255, 255, .2); }
.cx-icon.on { background: rgba(255, 255, 255, .95); color: var(--primary); }
.cx-icon[hidden] { display: none; }

.cx-avatar {
  width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; position: relative;
  font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, var(--primary-2), var(--primary));
}
.cx-avatar.lg { width: 42px; height: 42px; font-size: 18px; background: rgba(255, 255, 255, .16); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.cx-avatar.xl { width: 64px; height: 64px; font-size: 26px; box-shadow: 0 12px 28px -10px color-mix(in srgb, var(--primary) 60%, transparent); }
.cx-avatar.team { background: var(--success); }
.cx-avatar.team .icon { width: 16px; height: 16px; }
.cx-avatar.ghost { background: none; box-shadow: none; }
.cx-online { position: absolute; bottom: 1px; inset-inline-end: 1px; width: 11px; height: 11px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 2px var(--primary); }

.cx-scroll {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  padding: 18px 14px 12px; display: flex; flex-direction: column; gap: 4px;
  background: var(--surface-sunk);
  scrollbar-width: thin; scrollbar-color: var(--border-strong) transparent;
}
.cx-scroll::-webkit-scrollbar { width: 6px; }
.cx-scroll::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 6px; }

.cx-day { display: flex; justify-content: center; margin: 10px 0 6px; }
.cx-day span { font-size: 11.5px; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 2px 12px; border-radius: 99px; }

.cx-msg { display: flex; align-items: flex-end; gap: 8px; max-width: min(88%, 620px); margin-bottom: 8px; }
.cx-msg.cont { margin-bottom: 2px; }
.cx-msg.me { align-self: flex-end; }
.cx-msg.bot, .cx-msg.team { align-self: flex-start; }
.cx-col { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.cx-msg.me .cx-col { align-items: flex-end; }

.cx-bubble { padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.75; word-break: break-word; }
.cx-bubble p { margin: 0; }
.cx-bubble p + p, .cx-bubble p + ul, .cx-bubble ul + p { margin-top: 6px; }
.cx-bubble ul { margin: 2px 0 0; padding-inline-start: 18px; display: grid; gap: 2px; }
.cx-bubble li::marker { color: var(--accent); }
.cx-bubble b { font-weight: 700; }
.cx-msg.me .cx-bubble { background: linear-gradient(135deg, var(--primary-2), var(--primary)); color: #fff; border-end-end-radius: 6px; white-space: pre-wrap; box-shadow: 0 6px 16px -10px var(--primary); }
.cx-msg.me.cont .cx-bubble { border-end-end-radius: 18px; }
.cx-msg.bot .cx-bubble, .cx-msg.team .cx-bubble { background: var(--surface); color: var(--text); border: 1px solid var(--border); border-end-start-radius: 6px; box-shadow: var(--shadow-sm); }
.cx-msg.bot.cont .cx-bubble, .cx-msg.team.cont .cx-bubble { border-end-start-radius: 18px; }
.cx-msg.team .cx-bubble { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 25%, var(--border)); }
.cx-who { display: block; font-size: 12px; font-weight: 700; color: var(--success); margin-bottom: 2px; }
.cx-meta { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--muted); padding-inline: 6px; }
.cx-meta .icon { width: 13px; height: 13px; color: var(--success); }

.cx-links { display: flex; flex-wrap: wrap; gap: 6px; }
.cx-link {
  display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 99px; font-size: 13px; font-weight: 600;
  color: var(--primary-ink); background: var(--primary-soft); border: 1px solid transparent; cursor: pointer; transition: background .15s, transform .15s;
}
.cx-link .icon { width: 15px; height: 15px; }
.cx-link:hover { background: var(--primary-soft-hover); transform: translateY(-1px); }
.cx-link.team { color: var(--success-ink); background: var(--success-soft); }
.cx-item { display: flex; flex-direction: column; margin-top: 8px; padding: 8px 11px; border-radius: 12px; background: var(--surface-2); line-height: 1.45; }
.cx-item small { color: var(--muted); font-size: 12.5px; }

/* Typing */
.cx-msg.typing .cx-bubble { display: inline-flex; align-items: center; gap: 10px; padding: 11px 14px; }
.cx-dots { display: inline-flex; gap: 4px; }
.cx-dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--primary-2); opacity: .35; animation: cx-dot 1.2s infinite ease-in-out; }
.cx-dots i:nth-child(2) { animation-delay: .15s; }
.cx-dots i:nth-child(3) { animation-delay: .3s; }
.cx-status { font-size: 13px; color: var(--muted); }
@keyframes cx-dot { 0%, 80%, 100% { transform: translateY(0); opacity: .35; } 40% { transform: translateY(-4px); opacity: 1; } }

/* Motion: new messages slide in; a fresh answer reveals block by block */
.cx-msg.enter { animation: cx-in .32s var(--ease) both; }
.cx-msg.me.enter { animation-name: cx-in-me; }
.cx-msg.reveal .cx-bubble > *, .cx-msg.reveal .cx-links { animation: cx-rise .38s var(--ease) both; }
@keyframes cx-in { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes cx-in-me { from { opacity: 0; transform: translateY(8px) translateX(-6px); } to { opacity: 1; transform: none; } }
@keyframes cx-rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Welcome */
.cx-hello { margin: auto; width: 100%; max-width: 560px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 8px 4px 12px; animation: cx-in .4s var(--ease) both; }
.cx-hello h3 { font-size: 20px; margin-top: 6px; }
.cx-hello p { color: var(--text-2); font-size: 14.5px; max-width: 440px; }
.cx-suggest { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
@media (min-width: 640px) { .cx-suggest { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.cx-sug {
  display: flex; align-items: center; gap: 10px; text-align: start; padding: 10px 12px; border-radius: 14px; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.cx-sug:hover { border-color: var(--primary-2); transform: translateY(-2px); box-shadow: var(--shadow); }
.cx-sug > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.cx-sug b { font-size: 14px; }
.cx-sug small { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-sug-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary-ink); }

/* Quick chips above the composer */
.cx-chips {
  flex: none; display: flex; gap: 6px; overflow-x: auto; padding: 8px 12px 2px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to left, #000 88%, transparent); mask-image: linear-gradient(to left, #000 88%, transparent);
}
.cx-chips::-webkit-scrollbar { display: none; }
.cx-chips[hidden] { display: none; }
.cx-chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px; height: 32px; max-width: 220px; padding: 0 12px; border-radius: 99px;
  font-size: 13px; color: var(--text-2); background: var(--surface-2); border: 1px solid var(--border); cursor: pointer;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .15s, color .15s;
}
.cx-chip .icon { width: 15px; height: 15px; flex: none; }
.cx-chip:hover { background: var(--primary-soft); color: var(--primary-ink); }
.cx-chip.team { color: var(--success-ink); }

/* Composer */
.cx-composer {
  flex: none; display: flex; align-items: flex-end; gap: 8px; margin: 8px 12px 12px; padding: 6px; padding-inline-start: 14px;
  background: var(--surface-2); border: 1px solid var(--border); border-radius: 26px; transition: border-color .15s, box-shadow .15s, background .15s;
}
.cx-composer:focus-within { background: var(--surface); border-color: var(--primary-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-2) 14%, transparent); }
.cx-composer textarea {
  flex: 1; min-width: 0; resize: none; border: 0; outline: 0; background: transparent; color: var(--text);
  font: inherit; font-size: 15px; line-height: 1.55; padding: 8px 0; max-height: 132px;
}
.cx-composer textarea::placeholder { color: var(--placeholder); }
.cx-send {
  width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff;
  background: linear-gradient(135deg, var(--primary-2), var(--primary)); transition: transform .15s, opacity .15s, filter .15s;
}
.cx-send .icon { width: 19px; height: 19px; }
.cx-send:hover:not(:disabled) { transform: scale(1.06); }
.cx-send:disabled { opacity: .38; cursor: default; filter: grayscale(.4); }

.cx-jump {
  position: absolute; left: 50%; transform: translateX(-50%); bottom: 132px; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; cursor: pointer;
  background: var(--surface); color: var(--text); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.cx-jump[hidden] { display: none; }

:root[data-theme="dark"] .cx-head { background: linear-gradient(135deg, #1b3563, #13233f); }
:root[data-theme="dark"] .cx-online { box-shadow: 0 0 0 2px #1b3563; }
:root[data-theme="dark"] .cx-msg.me .cx-bubble { background: linear-gradient(135deg, #3570d4, #2556a8); }
:root[data-theme="dark"] .cx-link { color: #a9c6f2; }
:root[data-theme="dark"] .cx-sug-ic { color: #a9c6f2; }
:root[data-theme="dark"] .cx-send { background: linear-gradient(135deg, #3570d4, #2556a8); }

@media (prefers-reduced-motion: reduce) {
  .cx-msg.enter, .cx-msg.reveal .cx-bubble > *, .cx-msg.reveal .cx-links, .cx-hello { animation: none !important; }
}
[dir="rtl"] .cx-send .icon { transform: scaleX(-1); }

/* Phones: the chat is the page. Hide the photo banner and fit the chat between the bars. */
@media (max-width: 699px) {
  .support-page > section.container:first-child { display: none; }
  .support-page .support-layout { margin-top: 12px; }
  .cx-card { height: calc(100dvh - var(--topbar-h) - var(--tabbar-h) - 38px - 24px - env(safe-area-inset-bottom)); min-height: 420px; border-radius: 20px; }
}

/* ================= Universities ================= */
.uni-bar { background: var(--surface); border-bottom: 1px solid var(--border); }
.uni-bar-inner { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; }
.uni-bar-ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; flex: none; background: var(--primary-soft); color: var(--primary-ink); }
.uni-bar-ic .icon { width: 16px; height: 16px; }
.uni-bar-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); }
.uni-bar-text b { color: var(--text); }
.uni-bar-btn {
  flex: none; display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 12px; border-radius: 99px; cursor: pointer;
  font-size: 13px; font-weight: 600; color: var(--primary-ink); background: var(--primary-soft); border: 0; transition: background .15s;
}
.uni-bar-btn:hover { background: var(--primary-soft-hover); }
.uni-bar-btn .icon { width: 15px; height: 15px; }

.uni-page { max-width: 860px; }
.uni-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 8px auto 20px; max-width: 520px; }
.uni-hero h1 { font-size: 24px; }
.uni-hero p { color: var(--text-2); }
.uni-hero-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary-2), var(--primary)); box-shadow: 0 14px 30px -12px var(--primary); margin-bottom: 6px; }
.uni-hero-ic .icon { width: 32px; height: 32px; }

.uni-picker { display: flex; flex-direction: column; gap: 12px; }
.uni-grid { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .uni-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.uni-card {
  display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: start; cursor: pointer; color: var(--text);
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; transition: border-color .15s, transform .15s, box-shadow .15s;
}
.uni-card:hover:not(:disabled) { border-color: var(--primary-2); transform: translateY(-1px); box-shadow: var(--shadow); }
.uni-card.on { border-color: var(--primary-2); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary-2) 16%, transparent); }
.uni-card.soon { cursor: default; opacity: .62; }
.uni-card[hidden] { display: none; }
.uni-logo {
  width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; overflow: hidden;
  font-weight: 700; font-size: 19px; color: var(--primary-ink); background: var(--primary-soft);
}
.uni-card.soon .uni-logo { color: var(--muted); background: var(--surface-2); }
.uni-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.uni-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.uni-text b { font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uni-text small { font-size: 12.5px; color: var(--muted); }
.uni-check { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--success); flex: none; }
.uni-check .icon { width: 15px; height: 15px; }
.uni-none { text-align: center; }

/* Fees: university picker (js/pages/fees.js uniChips). */
.uni-pick { padding-top: 16px; }
.uni-pick-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.uni-pick-head h2 { font-size: 16px; }
.uni-compare { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.uni-compare.active { border-color: var(--primary-2); background: var(--primary-soft); color: var(--primary-ink); }
.uni-pick .uni-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.uni-pick .uni-card { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid var(--border); background: var(--surface); font: inherit; color: inherit; text-align: start; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.uni-pick .uni-card:hover { border-color: color-mix(in srgb, var(--primary-2) 45%, var(--border)); }
.uni-pick .uni-card.active { border-color: var(--primary-2); background: var(--primary-soft); box-shadow: 0 6px 18px color-mix(in srgb, var(--primary) 12%, transparent); }
.uni-pick .uni-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.uni-pick .uni-info b { font-size: 14.5px; line-height: 1.4; }
.uni-pick .uni-info small { font-size: 12px; color: var(--muted); }
.uni-pick .uni-check { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--primary); color: #fff; }
.uni-pick .uni-check .icon { width: 14px; height: 14px; }
.uni-pick .uni-logo { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; overflow: hidden; font-size: 15px; font-weight: 800;
  background: hsl(var(--h, 220) 70% 94%); color: hsl(var(--h, 220) 55% 32%); }
.uni-pick .uni-logo img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
:root[data-theme="dark"] .uni-pick .uni-logo:not(:has(img)) { background: hsl(var(--h, 220) 35% 22%); color: hsl(var(--h, 220) 70% 82%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .uni-pick .uni-logo:not(:has(img)) { background: hsl(var(--h, 220) 35% 22%); color: hsl(var(--h, 220) 70% 82%); } }
.uni-soon { margin-top: 12px; display: flex; align-items: center; gap: 10px; }
.uni-soon-label { flex: none; display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.uni-soon-list { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; }
.uni-soon-list::-webkit-scrollbar { display: none; }
.uni-soon-item { flex: none; display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; padding-inline: 4px 10px; border-radius: 999px; border: 1px dashed var(--border); background: var(--surface-2); font: inherit; font-size: 12.5px; color: var(--text-2); cursor: pointer; opacity: .8; }
.uni-soon-item:hover { opacity: 1; }
.uni-pick .uni-soon-item .uni-logo { width: 26px; height: 26px; border-radius: 50%; font-size: 10.5px; filter: grayscale(.4); }
@media (max-width: 560px) {
  .uni-pick .uni-cards { grid-template-columns: 1fr; }
  .uni-soon { flex-direction: column; align-items: flex-start; gap: 6px; }
  .uni-soon-list { width: 100%; }
}

/* Sticky bars sit below the top bar AND the news ticker (its height is set by app.js renderTicker; 0 when hidden). */
:root { --newsbar-h: 0px; }
html { scroll-padding-top: calc(var(--topbar-h) + var(--newsbar-h) + 12px); }
.menu-sticky { top: calc(var(--topbar-h) + var(--newsbar-h)) !important; }
.pl-tabs { top: calc(var(--topbar-h) + var(--newsbar-h) + 6px) !important; }
@media (min-width: 960px) {
  .support-side, .mq-side { top: calc(var(--topbar-h) + var(--newsbar-h) + 16px) !important; }
  .cart-col { top: calc(var(--topbar-h) + var(--newsbar-h) + 150px) !important; }
}

/* ---------- Static pages (about, privacy, terms, guides) ---------- */
.static-page { padding: 22px; line-height: 1.9; max-width: 820px; }
.static-page h2 { font-size: 18px; margin: 18px 0 6px; }
.static-page h3 { font-size: 16px; margin: 14px 0 4px; }
.static-page ul, .static-page ol { padding-inline-start: 22px; }
.static-page a { color: var(--primary-ink); text-decoration: underline; text-underline-offset: 3px; }
.static-page details { border-top: 1px solid var(--border); padding: 10px 0; }
.static-page summary { cursor: pointer; font-weight: 600; }
@media (min-width: 561px) { .uni-soon { align-items: flex-start; } .uni-soon-label { padding-top: 7px; } .uni-soon-list { flex-wrap: wrap; overflow: visible; } }


/* ===== Welcome / choose university (js/pages/choose-university.js) ===== */
.lp { position: relative; overflow: hidden; color: #eef2fb; background: radial-gradient(120% 80% at 50% -10%, #1d3566 0%, #0e1a36 45%, #09112a 100%);
  border-radius: 24px; margin: 12px auto 24px; max-width: 1180px; isolation: isolate; }
.lp.lp-full { border-radius: 0; margin: 0; max-width: none; min-height: calc(100vh - 64px); }
.lp-sky { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .9;
  background-image:
    radial-gradient(1.2px 1.2px at 12% 18%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 28% 72%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 44% 30%, #ffe6a3 50%, transparent 51%), radial-gradient(1px 1px at 63% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.3px 1.3px at 78% 48%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 90% 22%, #ffe6a3 50%, transparent 51%),
    radial-gradient(1px 1px at 8% 56%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 56% 86%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 35% 8%, #fff 50%, transparent 51%), radial-gradient(1.1px 1.1px at 84% 80%, #fff 50%, transparent 51%);
  background-size: 420px 320px; animation: lp-twinkle 6s ease-in-out infinite alternate; }
.lp-sky::after { content: ""; position: absolute; inset: auto -10% -40% -10%; height: 70%; background: radial-gradient(50% 60% at 50% 0%, rgb(231 180 64 / .16), transparent 70%); }
@keyframes lp-twinkle { from { opacity: .55; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .lp-sky { animation: none; } }
.lp-in { padding-block: 40px 36px; }
.lp-hero { max-width: 640px; margin: 0 auto 30px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lp-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 5px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: #f3cf6b; border: 1px solid rgb(243 207 107 / .45); background: rgb(243 207 107 / .08); }
.lp-kicker .icon { width: 14px; height: 14px; fill: currentColor; }
.lp-hero h1 { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.3; color: #fff; letter-spacing: -.01em; }
.lp-hero p { font-size: 15.5px; line-height: 1.8; color: #b9c4dc; max-width: 520px; }
.lp-search { position: relative; display: flex; align-items: center; width: 100%; max-width: 520px; margin-top: 6px; }
.lp-search .icon { position: absolute; z-index: 1; inset-inline-start: 18px; width: 20px; height: 20px; color: #f3cf6b; pointer-events: none; }
.lp-search input { width: 100%; height: 54px; padding-inline: 50px 18px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .16);
  background: rgb(255 255 255 / .08); color: #fff; font: inherit; font-size: 15px; backdrop-filter: blur(6px); outline: none; transition: border-color .15s, background .15s; }
.lp-search input::placeholder { color: #93a0bd; }
.lp-search input:focus { border-color: #f3cf6b; background: rgb(255 255 255 / .12); box-shadow: 0 0 0 4px rgb(243 207 107 / .15); }
.lp-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 4px; }
.lp-guest, .lp-login { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding-inline: 22px; border-radius: 999px; font: inherit; font-size: 15px; font-weight: 700; cursor: pointer; transition: transform .15s, background .15s, box-shadow .15s; }
.lp-guest { border: 0; color: #1a1405; background: linear-gradient(135deg, #f7d77c, #e2ae3a); box-shadow: 0 10px 26px -10px rgb(226 174 58 / .8); }
.lp-guest:hover { transform: translateY(-1px); box-shadow: 0 14px 30px -10px rgb(226 174 58 / .9); }
.lp-login { border: 1px solid rgb(255 255 255 / .28); color: #fff; background: rgb(255 255 255 / .06); }
.lp-login:hover { background: rgb(255 255 255 / .12); }
.lp-guest .icon, .lp-login .icon { width: 18px; height: 18px; }

.lp-h { display: flex; align-items: center; gap: 8px; margin: 8px 0 14px; font-size: 17px; color: #fff; }
.lp-h .icon { width: 18px; height: 18px; color: #4ade80; }
.lp-h-soon { margin-top: 30px; color: #c6cfe2; }
.lp-h-soon .icon { color: #f3cf6b; }
.lp-grid { display: grid; gap: 14px; }
.lp-grid-live { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 440px)); justify-content: center; }
.lp-grid-soon { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 12px; }
.lp-grid[hidden], .lp-h[hidden], .lp-card[hidden] { display: none; }

.lp-card { position: relative; display: block; width: 100%; padding: 0; border-radius: 20px; overflow: hidden; text-align: start; cursor: pointer; font: inherit; color: #fff;
  border: 1px solid rgb(255 255 255 / .12); background: #13213f; aspect-ratio: 16 / 10; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-grid-soon .lp-card { aspect-ratio: 4 / 3; border-radius: 16px; }
.lp-card:not(.soon):hover { transform: translateY(-3px); border-color: rgb(243 207 107 / .7); box-shadow: 0 18px 40px -16px rgb(0 0 0 / .7), 0 0 0 1px rgb(243 207 107 / .35); }
.lp-card:focus-visible { outline: 3px solid #f3cf6b; outline-offset: 3px; }
.lp-card.on { border-color: #f3cf6b; box-shadow: 0 0 0 2px rgb(243 207 107 / .5); }
.lp-photo, .lp-photo img, .lp-art { position: absolute; inset: 0; width: 100%; height: 100%; }
.lp-photo img { object-fit: cover; transition: transform .5s; }
.lp-card:not(.soon):hover .lp-photo img { transform: scale(1.05); }
.lp-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgb(6 12 30 / .92) 0%, rgb(6 12 30 / .35) 45%, rgb(6 12 30 / .05) 75%); }
.lp-art { display: grid; place-items: center; background:
    radial-gradient(80% 90% at 80% 10%, hsl(var(--h) 60% 45% / .55), transparent 60%),
    linear-gradient(135deg, hsl(var(--h) 45% 26%), hsl(calc(var(--h) + 40) 40% 14%)); }
.lp-art span { font-size: 64px; font-weight: 800; color: rgb(255 255 255 / .16); transform: translateY(-14px); }
.lp-grid-soon .lp-art span { font-size: 48px; }
.lp-card.soon { cursor: default; }
.lp-card.soon .lp-photo { filter: grayscale(.55) brightness(.8); }
.lp-card.nudge { animation: lp-nudge .4s; }
@keyframes lp-nudge { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.lp-badge { position: absolute; top: 12px; inset-inline-end: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; backdrop-filter: blur(6px); }
.lp-badge .icon { width: 13px; height: 13px; }
.lp-badge.live { background: rgb(22 163 74 / .92); color: #fff; }
.lp-badge.soon { background: rgb(15 23 42 / .72); color: #f3cf6b; border: 1px solid rgb(243 207 107 / .35); }
.lp-body { position: absolute; inset-inline: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; }
.lp-grid-soon .lp-body { padding: 10px 12px; }
.lp-logo { flex: none; width: 40px; height: 40px; border-radius: 12px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.lp-logo img { width: 100%; height: 100%; object-fit: contain; }
.lp-name { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lp-name b { font-size: 19px; line-height: 1.35; text-shadow: 0 2px 10px rgb(0 0 0 / .5); }
.lp-grid-soon .lp-name b { font-size: 14.5px; }
.lp-name small { font-size: 12.5px; color: #c9d3e8; }
.lp-go { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #f3cf6b; color: #1a1405; transition: transform .2s; }
.lp-card:hover .lp-go { transform: translateX(-4px); }
.lp-none { text-align: center; color: #b9c4dc; margin-top: 12px; }
.lp-foot { display: flex; gap: 8px; align-items: flex-start; max-width: 640px; margin: 28px auto 0; padding: 12px 16px; border-radius: 14px;
  background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); color: #b9c4dc; font-size: 13.5px; line-height: 1.8; }
.lp-foot .icon { flex: none; margin-top: 4px; width: 16px; height: 16px; color: #f3cf6b; }
@media (max-width: 560px) {
  .lp-in { padding-block: 28px 28px; }
  .lp-grid-soon { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .lp-grid-soon .lp-name small { display: none; }
  .lp-name b { font-size: 17px; }
}
/* The welcome screen stands on its own: no bottom bar, floating buttons or university/news bars behind it. */
body.is-landing .tabbar, body.is-landing [data-fabs], body.is-landing [data-unibar], body.is-landing [data-ticker] { display: none !important; }
body.is-landing #main { padding-bottom: 0; }

/* ===== Suggestions (js/pages/support.js openSuggestion) ===== */
.sug-card { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--primary-soft), var(--surface) 70%); }
.sug-card h3 { margin: 10px 0 6px; font-size: 17px; }
.sug-card p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.8; color: var(--text-2); }
.sug-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--primary); color: #fff; }
.sug-ic .icon { width: 22px; height: 22px; }
.sug-kinds { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 520px) { .sug-kinds { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.sug-kind { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 14px; border: 1.5px solid var(--border);
  background: var(--surface); color: var(--text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; transition: border-color .15s, background .15s; }
.sug-kind .icon { width: 20px; height: 20px; }
.sug-kind:hover { border-color: color-mix(in srgb, var(--primary-2) 45%, var(--border)); }
.sug-kind.on { border-color: var(--primary-2); background: var(--primary-soft); color: var(--primary-ink); }
.sug-count { display: block; text-align: end; margin-top: 4px; }

/* Suggestions strip at the top of the support page (js/pages/support.js). */
.sug-strip { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--primary-2) 30%, var(--border)); border-radius: 18px;
  background: linear-gradient(110deg, var(--primary-soft), var(--surface) 75%); }
.sug-strip-ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--primary); color: #fff; }
.sug-strip-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.sug-strip-text b { font-size: 15.5px; }
.sug-strip-text span { font-size: 12.5px; color: var(--text-2); }
.sug-strip-kinds { display: flex; flex-wrap: wrap; gap: 6px; margin-inline-start: auto; }
.sug-strip-kind { display: inline-flex; align-items: center; gap: 5px; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s; }
.sug-strip-kind:hover { border-color: var(--primary-2); background: var(--primary-soft); color: var(--primary-ink); }
.sug-strip-kind .icon { width: 14px; height: 14px; color: var(--primary-2); }
.sug-strip-go { display: none; }
@media (max-width: 900px) {
  .sug-strip { flex-wrap: wrap; gap: 10px 12px; }
  .sug-strip-text { flex: 1; }
  .sug-strip-kinds { display: none; }
  .sug-strip-go { display: inline-flex; flex: none; }
}
@media (max-width: 420px) { .sug-strip-go { width: 100%; justify-content: center; } }
.cx-sent { display: inline-flex; align-items: center; gap: 5px; align-self: flex-start; margin-top: 6px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--success) 14%, var(--surface)); color: var(--success); border: 1px solid color-mix(in srgb, var(--success) 35%, transparent); font-size: 12.5px; font-weight: 700; }
.cx-sent .icon { width: 14px; height: 14px; }
/* Bell: this device's real notifications (js/shell/announcements.js paintPushCard). */
.push-card { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); }
.push-card .li-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.push-card b { font-size: 14.5px; }
.push-card small { font-size: 12.5px; color: var(--text-2); line-height: 1.7; }
.push-ic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--primary-soft); color: var(--primary-ink); }
.push-card.off { border-color: color-mix(in srgb, var(--primary-2) 40%, var(--border)); background: linear-gradient(110deg, var(--primary-soft), var(--surface) 80%); }
.push-card.on .push-ic { background: color-mix(in srgb, var(--success) 15%, var(--surface)); color: var(--success); }
.push-card.denied .push-ic, .push-card.ios-install .push-ic { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); color: var(--accent-ink, var(--accent)); }
@media (max-width: 480px) { .push-card { flex-wrap: wrap; } .push-card .btn { width: 100%; justify-content: center; } }
.push-card .push-actions { display: flex; gap: 6px; flex: none; }
@media (max-width: 480px) { .push-card .push-actions { width: 100%; } .push-card .push-actions .btn { flex: 1; } }
/* Welcome page: the ROAA logo on top. */
.lp-logo { display: block; width: min(340px, 78vw); height: auto; margin: 0 auto 6px; border-radius: 22px; box-shadow: 0 18px 40px -18px rgb(0 0 0 / .6); mask-image: radial-gradient(ellipse 72% 78% at 50% 50%, #000 62%, transparent 100%); }
.support-device, .account-device { margin: 8px 2px 0; font-size: 12px; }
.support-device code, .account-device code { font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }
.account-device code { word-break: break-all; }
