@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

/* =====================================================================
   PREMIUM LAYER — loaded after style.css and tests.css.
   Refines surfaces, typography, header, hero and adds the account pages,
   verified badge, notice board and information board.
   ===================================================================== */

:root {
    --navy:        #0B2545;
    --navy-2:      #13315C;
    --primary:     #1565C0;
    --primary-deep:#0D4A94;
    --font-head:   'Plus Jakarta Sans', 'Noto Sans Bengali', 'Public Sans', system-ui, sans-serif;
    --radius:      16px;
    --radius-sm:   10px;
    --shadow-sm:   0 1px 2px rgba(11, 37, 69, .05), 0 2px 8px rgba(11, 37, 69, .05);
    --shadow-md:   0 8px 24px rgba(11, 37, 69, .09);
    --shadow-lg:   0 24px 60px rgba(11, 37, 69, .22);
    --ring:        0 0 0 4px rgba(21, 101, 192, .16);
}

body {
    background: linear-gradient(180deg, #F7FAFE 0%, #EDF2FA 100%) fixed;
    letter-spacing: .005em;
}
::selection { background: rgba(21, 101, 192, .18); }
h1, h2, h3, h4 { font-family: var(--font-head); letter-spacing: -.015em; }
:focus-visible { outline: 3px solid rgba(21, 101, 192, .45); outline-offset: 2px; border-radius: 6px; }
.icon { vertical-align: -3px; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
    border-radius: 12px; font-family: var(--font-head); font-weight: 700; letter-spacing: .005em;
    transition: transform .15s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
    gap: 8px;
}
.btn:hover { transform: translateY(-1px); }
.btn-teal    { background: linear-gradient(180deg, #1B73D1, #1259AE); border-color: #1259AE; box-shadow: 0 6px 16px rgba(21, 101, 192, .28); }
.btn-teal:hover { background: linear-gradient(180deg, #1A6CC6, #0E4C95); border-color: #0E4C95; box-shadow: 0 8px 20px rgba(21, 101, 192, .34); }
.btn-primary { background: linear-gradient(180deg, #F67549, #E85A2E); border-color: #E85A2E; box-shadow: 0 6px 16px rgba(240, 101, 61, .32); }
.btn-primary:hover { background: linear-gradient(180deg, #F36A3D, #D94E23); border-color: #D94E23; }
.btn-outline { background: #fff; border-color: #D5DFEE; }
.btn-outline:hover { background: #F4F8FE; border-color: #9FB6D8; }
.btn-sm { padding: 7px 14px; font-size: .84rem; border-radius: 10px; }
.btn-lg { padding: 14px 22px; font-size: 1rem; border-radius: 14px; }
.btn-danger { background: #fff; color: #C62839; border: 1.5px solid #F0B8C0; }
.btn-danger:hover { background: #FDEDEF; border-color: #C62839; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--primary-deep); cursor: pointer; }
.link-btn:disabled { color: var(--ink-soft); cursor: default; font-weight: 500; }

/* ---------- Utility bar + header ---------- */
.utility-bar { background: linear-gradient(90deg, var(--navy) 0%, var(--navy-2) 100%); font-size: .78rem; letter-spacing: .02em; }
.site-header {
    background: rgba(255, 255, 255, .86);
    -webkit-backdrop-filter: saturate(180%) blur(16px); backdrop-filter: saturate(180%) blur(16px);
    border-bottom: 1px solid rgba(213, 223, 238, .7); box-shadow: none; transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(11, 37, 69, .08); }
.header-row { gap: 16px; }
.brand-mark { background: linear-gradient(135deg, #1B73D1, #0B3D80); border-radius: 12px; box-shadow: 0 6px 14px rgba(21, 101, 192, .35); font-family: var(--font-head); }
.brand-name { font-family: var(--font-head); letter-spacing: -.01em; }
.nav-panel { margin-left: auto; }
.main-nav a { position: relative; font-weight: 600; color: #26324D; padding: 6px 2px; }
.main-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; border-radius: 2px; background: var(--primary); transform: scaleX(0); transition: transform .2s ease; }
.main-nav a:hover::after { transform: scaleX(1); }

/* ---------- Account menu ---------- */
.acct-menu { position: relative; flex-shrink: 0; }
.acct-btn {
    position: relative; display: flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; padding: 0; border-radius: 50%; cursor: pointer;
    background: #fff; border: 1.5px solid #D5DFEE; transition: border-color .2s, box-shadow .2s;
}
.acct-btn:hover, .acct-menu.open .acct-btn { border-color: var(--primary); box-shadow: var(--ring); }
.acct-btn .avatar { border-radius: 50%; }
.acct-guest { color: var(--navy-2); display: flex; }
.acct-btn-badge { position: absolute; right: -4px; bottom: -4px; background: #fff; border-radius: 50%; padding: 1px; display: flex; line-height: 0; }
.acct-dropdown {
    position: absolute; right: 0; top: calc(100% + 12px); width: 290px; z-index: 60;
    background: #fff; border: 1px solid #E2E8F2; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px;
    opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right;
    transition: opacity .16s ease, transform .16s ease, visibility .16s;
}
.acct-menu.open .acct-dropdown { opacity: 1; visibility: visible; transform: none; }
.acct-dropdown a, .acct-dropdown button {
    display: flex; align-items: center; gap: 11px; width: 100%; padding: 11px 12px; border: 0; background: none; cursor: pointer;
    border-radius: 11px; font: inherit; font-size: .93rem; font-weight: 600; color: var(--ink); text-align: left;
}
.acct-dropdown a:hover, .acct-dropdown button:hover { background: #F1F6FD; text-decoration: none; color: var(--primary-deep); }
.acct-dropdown .icon { color: #5C6B85; }
.acct-dd-head { display: flex; gap: 12px; align-items: center; padding: 12px; margin-bottom: 4px; background: linear-gradient(135deg, #F1F6FD, #FAFCFF); border-radius: 12px; }
.acct-dd-head strong { display: block; font-family: var(--font-head); font-size: .98rem; line-height: 1.25; }
.acct-dd-head span { display: flex; align-items: center; gap: 5px; font-size: .8rem; color: var(--ink-soft); }
.acct-dd-sep { height: 1px; background: #E9EEF6; margin: 6px 4px; }
.acct-dd-guest { padding: 10px 12px 12px; }
.acct-dd-guest strong { font-family: var(--font-head); }
.acct-dd-guest p { margin: 4px 0 0; font-size: .84rem; color: var(--ink-soft); line-height: 1.5; }
.acct-dropdown a.acct-dd-cta { background: linear-gradient(180deg, #1B73D1, #1259AE); color: #fff; justify-content: center; margin-bottom: 4px; }
.acct-dropdown a.acct-dd-cta .icon { color: #fff; }
.acct-dropdown a.acct-dd-cta:hover { background: linear-gradient(180deg, #1A6CC6, #0E4C95); color: #fff; }

/* ---------- Avatars + verified badge ---------- */
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.avatar-initial { color: #fff; font-weight: 800; font-family: var(--font-head); }
.vbadge { display: inline-flex; color: #1D8FF2; vertical-align: -3px; line-height: 0; }
.vbadge svg { width: 100%; height: 100%; }
.vbadge-sm { width: 16px; height: 16px; }
.vbadge-md { width: 22px; height: 22px; }
.vbadge-lg { width: 26px; height: 26px; vertical-align: -4px; }
.submitter { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; font-weight: 700; color: #1B6FC4; background: #E8F3FE; padding: 3px 10px 3px 6px; border-radius: 20px; }

/* ---------- Public alerts + fields ---------- */
.alert { padding: 12px 16px; border-radius: 12px; margin: 0 0 16px; font-size: .92rem; border: 1px solid transparent; }
.alert-error   { background: #FDEDEF; color: #A3202F; border-color: #F5C2C9; }
.alert-success { background: #E6F7EF; color: #0F6B47; border-color: #BCE8D3; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; font-size: .9rem; margin-bottom: 6px; color: #1B2842; }
.field .opt { font-weight: 500; color: var(--ink-soft); font-size: .78rem; margin-left: 6px; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea, .field select {
    width: 100%; padding: 13px 14px; font: inherit; font-size: 1rem; color: var(--ink); background: #fff;
    border: 1.5px solid #D5DFEE; border-radius: 12px; transition: border-color .15s, box-shadow .15s;
}
.field textarea { resize: vertical; min-height: 78px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.field input:disabled { background: #F3F6FB; color: #6C7B95; cursor: not-allowed; }
.field input.is-ok { border-color: #1B9E6B; }
.field input.is-bad { border-color: #D8384F; }
.field-hint { font-size: .8rem; color: var(--ink-soft); margin-top: 5px; }
.field-error { font-size: .82rem; color: #C62839; margin-top: 5px; font-weight: 600; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; margin: 4px 0 14px; cursor: pointer; }
.check-row input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }

.uname-box { position: relative; display: flex; align-items: center; }
.uname-at { position: absolute; left: 14px; color: #6C7B95; font-weight: 700; pointer-events: none; }
.uname-box input { padding-left: 32px !important; padding-right: 130px !important; }
.uname-state { position: absolute; right: 12px; font-size: .8rem; font-weight: 700; max-width: 120px; text-align: right; line-height: 1.2; }
.uname-state.ok { color: #1B9E6B; } .uname-state.taken, .uname-state.invalid { color: #D8384F; } .uname-state.busy { color: #8795AD; font-weight: 500; }
.uname-suggest { margin-top: 8px; font-size: .82rem; color: var(--ink-soft); display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.uname-suggest:empty { display: none; }
.uname-suggest button { border: 1px solid #C8D8EE; background: #F1F6FD; color: var(--primary-deep); border-radius: 20px; padding: 3px 11px; font: inherit; font-weight: 700; cursor: pointer; }
.uname-suggest button:hover { background: #E1EDFB; }

/* ---------- Auth pages ---------- */
.auth-wrap { padding: 44px 0 20px; background: radial-gradient(900px 340px at 85% -10%, rgba(21, 101, 192, .12), transparent), radial-gradient(700px 300px at 0% 0%, rgba(240, 101, 61, .08), transparent); }
.auth-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
.auth-grid-single { grid-template-columns: minmax(0, 480px); justify-content: center; }
.auth-side { padding: 18px 8px; }
.auth-side h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.auth-side > p { color: var(--ink-soft); font-size: 1.02rem; }
.auth-points { list-style: none; padding: 0; margin: 28px 0; display: flex; flex-direction: column; gap: 20px; }
.auth-points li { display: flex; gap: 16px; align-items: flex-start; font-size: .94rem; color: var(--ink-soft); line-height: 1.5; }
.auth-points li > .icon, .auth-points li > .vbadge { margin-top: 2px; color: var(--primary); }
.auth-points li > .icon { background: #E3EEFB; padding: 7px; box-sizing: content-box; border-radius: 12px; }
.auth-points strong { color: var(--ink); font-family: var(--font-head); }
.auth-foot { font-size: .84rem; color: var(--ink-soft); border-top: 1px solid var(--line); padding-top: 16px; }
.auth-card { background: #fff; border: 1px solid rgba(213, 223, 238, .8); border-radius: 22px; padding: 32px; box-shadow: var(--shadow-md); }
.auth-card h2 { font-size: 1.5rem; }
.auth-icon { width: 54px; height: 54px; border-radius: 16px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #E3EEFB, #F2F7FE); color: var(--primary); margin-bottom: 16px; }
.auth-alt { text-align: center; margin: 18px 0 0; font-size: .92rem; color: var(--ink-soft); max-width: none; }
.otp-input { text-align: center; font: 700 2rem/1 'Menlo', 'Consolas', monospace !important; letter-spacing: .5em; padding: 16px 8px !important; text-indent: .5em; }
.resend-form { text-align: center; margin-top: 16px; font-size: .9rem; color: var(--ink-soft); }
.resend-form .sep { margin: 0 8px; }

/* ---------- Account / profile ---------- */
.acct { padding-bottom: 20px; }
.acct-banner { height: 150px; background: radial-gradient(500px 220px at 85% 0%, rgba(255, 255, 255, .18), transparent), linear-gradient(120deg, var(--navy) 0%, #1565C0 100%); }
.acct-head { display: flex; align-items: flex-end; gap: 20px; margin-top: -56px; margin-bottom: 20px; flex-wrap: wrap; }
.avatar-form { position: relative; flex-shrink: 0; }
.avatar-big { padding: 5px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-md); line-height: 0; }
.avatar-edit { position: absolute; right: 2px; bottom: 6px; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; border: 3px solid #fff; transition: transform .15s; }
.avatar-edit:hover { transform: scale(1.08); }
.avatar-edit input, .file-btn input { display: none; }
.acct-id { flex: 1; min-width: 200px; padding-bottom: 6px; }
.acct-id h1 { margin: 0; font-size: clamp(1.4rem, 2.6vw, 1.9rem); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-sub { color: var(--ink-soft); font-size: .92rem; }
.acct-sub .dot { margin: 0 6px; }
.acct-logout { padding-bottom: 6px; }
.acct-tabs { display: flex; gap: 6px; overflow-x: auto; border-bottom: 1px solid var(--line); margin-bottom: 22px; scrollbar-width: none; }
.acct-tabs::-webkit-scrollbar { display: none; }
.acct-tabs a { display: flex; align-items: center; gap: 7px; padding: 12px 16px; font-weight: 700; font-size: .92rem; color: var(--ink-soft); white-space: nowrap; border-bottom: 3px solid transparent; margin-bottom: -1px; }
.acct-tabs a:hover { color: var(--ink); text-decoration: none; }
.acct-tabs a.active { color: var(--primary-deep); border-bottom-color: var(--primary); }
.acct-tabs .count { background: #E8F1FB; color: var(--primary-deep); border-radius: 20px; padding: 1px 8px; font-size: .76rem; }
.stat-tiles { display: grid; grid-template-columns: 1fr 1fr 2fr; gap: 16px; margin-bottom: 20px; }
.stat-tile { background: #fff; border: 1px solid #E2E8F2; border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: 2px; }
.stat-tile .n { font: 800 2rem/1.1 var(--font-head); color: var(--navy); }
.stat-tile .n small { font-size: 1rem; color: var(--ink-soft); font-weight: 600; }
.stat-tile .l { font-size: .82rem; color: var(--ink-soft); font-weight: 600; }
.slot-bar { height: 8px; background: #E8EEF7; border-radius: 6px; margin-top: 8px; overflow: hidden; }
.slot-bar span { display: block; height: 100%; background: linear-gradient(90deg, #1B9E6B, #1565C0); border-radius: 6px; }
.acct-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.panel { background: #fff; border: 1px solid #E2E8F2; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.panel h3 { margin-bottom: 14px; }
.panel .hint { font-size: .8rem; color: var(--ink-soft); }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 12px 12px; margin: 0 0 16px; font-size: .92rem; }
.kv dt { color: var(--ink-soft); font-weight: 600; display: flex; align-items: center; gap: 8px; }
.kv dd { margin: 0; word-break: break-word; font-weight: 600; }
.kv .lock { color: #9AA8BF; margin-left: 4px; }
.plain-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 8px; }
.plain-list a { font-weight: 600; }
.item-list { list-style: none; padding: 0; margin: 0; }
.item-list li { display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; border-bottom: 1px solid #EDF1F8; align-items: flex-start; }
.item-list li:last-child { border-bottom: 0; }
.item-list .sub { font-size: .8rem; color: var(--ink-soft); margin-top: 2px; }
.item-list .excerpt { margin: 8px 0 0; font-size: .9rem; color: #46556F; }
.item-list .side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.stars-static { color: #D7DFEC; letter-spacing: 2px; font-size: 1.1rem; white-space: nowrap; }
.stars-static .on { color: var(--gold); }
.pill { font-size: .74rem; font-weight: 700; padding: 3px 10px; border-radius: 20px; white-space: nowrap; }
.pill-ok { background: #E6F7EF; color: #0F6B47; } .pill-warn { background: #FFF3DC; color: #9A6200; } .pill-bad { background: #FDEDEF; color: #A3202F; }
.photo-row { display: flex; gap: 16px; align-items: center; }
.file-btn { cursor: pointer; }
.danger-zone { border-color: #F4D0D5; background: linear-gradient(180deg, #fff, #FFF8F9); }

/* ---------- Hero polish ---------- */
.hero {
    background:
        radial-gradient(900px 380px at 88% -10%, rgba(255, 255, 255, .20), transparent 60%),
        radial-gradient(600px 300px at 0% 110%, rgba(240, 101, 61, .22), transparent 60%),
        linear-gradient(150deg, #0D4A94 0%, #0B2F63 100%);
    position: relative; overflow: hidden; padding: 58px 0 46px;
}
.hero::after { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .09) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 85%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); pointer-events: none; }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; letter-spacing: -.025em; max-width: 20ch; }
.search-panel { border-radius: 20px; padding: 14px; box-shadow: 0 28px 60px rgba(4, 18, 45, .38); border: 1px solid rgba(255, 255, 255, .6); }
.search-row input[type="text"] { border-radius: 14px; border: 1.5px solid #E1E8F3; background: #F7FAFE; padding: 15px 16px; }
.search-row .btn { border-radius: 14px; padding-left: 26px; padding-right: 26px; }
.hero-stat .num { font-family: var(--font-head); }

/* ---------- Information board (homepage, under search) ---------- */
.info-board { margin-top: 22px; }
.info-board-head { display: flex; align-items: center; gap: 8px; color: #CFE0F7; font: 700 .78rem/1 var(--font-head); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 12px; }
.info-board-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.info-card {
    position: relative; display: flex; flex-direction: column; gap: 6px; padding: 16px 18px 16px 20px; border-radius: 16px; color: #fff;
    background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .22);
    -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); overflow: hidden;
    transition: transform .2s ease, background .2s ease;
}
.info-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: #6FB1FF; }
.info-card.success::before { background: #3DDC97; } .info-card.warning::before { background: #FFC24B; }
.info-card.promo { background: linear-gradient(135deg, rgba(240, 101, 61, .35), rgba(255, 255, 255, .10)); } .info-card.promo::before { background: #FF8A5C; }
.info-card:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .15); text-decoration: none; }
.info-card h4 { margin: 0; color: #fff; font-size: 1rem; line-height: 1.3; }
.info-card p { margin: 0; color: #D6E4F7; font-size: .88rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; max-width: none; }
.info-card .more { margin-top: 2px; font-weight: 700; font-size: .84rem; color: #fff; display: inline-flex; align-items: center; gap: 6px; }

/* ---------- Hospital notice board ---------- */
.notice-board { margin: 6px 0 30px; scroll-margin-top: 90px; }
.notice-board .nb-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; gap: 12px; }
.notice-board h2 { margin: 0; display: flex; align-items: center; gap: 10px; }
.notice-board h2 .icon { color: var(--primary); }
.nb-list { display: flex; flex-direction: column; gap: 12px; }
.notice {
    background: #fff; border: 1px solid #E2E8F2; border-left: 4px solid #6C8DBA; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow-sm);
}
.notice.t-emergency { border-left-color: #D8384F; background: linear-gradient(90deg, #FFF6F7, #fff 40%); }
.notice.t-closure   { border-left-color: #E0A100; background: linear-gradient(90deg, #FFFAEE, #fff 40%); }
.notice.t-offer     { border-left-color: #1B9E6B; background: linear-gradient(90deg, #F2FBF7, #fff 40%); }
.notice.t-update    { border-left-color: #1565C0; }
.notice-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.notice-type { font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; padding: 3px 9px; border-radius: 20px; background: #EEF2F8; color: #46556F; }
.t-emergency .notice-type { background: #FDE3E6; color: #B3202F; } .t-closure .notice-type { background: #FFEFC4; color: #8A5A00; }
.t-offer .notice-type { background: #DDF5EA; color: #0F6B47; } .t-update .notice-type { background: #DDEBFC; color: #0D4A94; }
.notice-pin { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; color: #6C7B95; }
.notice-date { margin-left: auto; font-size: .78rem; color: var(--ink-soft); }
.notice h3 { margin: 0 0 4px; font-size: 1.02rem; }
.notice p { margin: 0; color: #3B4A66; font-size: .93rem; white-space: pre-line; max-width: none; }

/* ---------- Cards / surfaces ---------- */
.hospital-card, .complaint-card, .form-card, .tp-card, .tp-offer, .tp-stat, .tp-table-wrap, .tp-matrix-wrap, .tp-filters {
    border-color: #E2E8F2; box-shadow: var(--shadow-sm);
}
.hospital-card { border-radius: var(--radius); transition: transform .22s ease, box-shadow .22s ease; }
.hospital-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.complaint-card { border-radius: var(--radius); border-left: 4px solid #E3A2AC; }
.complaint-head { align-items: center; }
.section-head h2 { position: relative; }
.type-tag, .category-chip { letter-spacing: .01em; }
.tp-promo { border-radius: 20px; }
.form-card { border-radius: 20px; }

/* ---------- Footer ---------- */
.site-footer { background: linear-gradient(180deg, #0B2545, #081B34); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .auth-grid { grid-template-columns: 1fr; }
    .auth-side { padding: 0; }
    .stat-tiles { grid-template-columns: 1fr 1fr; }
    .stat-tile.wide { grid-column: 1 / -1; }
    .acct-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    /* hamburger | brand .... profile  — all on one row, menu drops below */
    .header-row { flex-wrap: wrap; gap: 10px; justify-content: flex-start; }
    .nav-toggle { order: 1; }
    .brand { order: 2; flex: 1; min-width: 0; }
    .acct-menu { order: 3; margin-left: auto; }
    .nav-panel { order: 4; margin-left: 0; }
    .acct-btn { width: 40px; height: 40px; }
    .acct-btn .avatar { width: 34px !important; height: 34px !important; }
    .acct-dropdown { position: fixed; left: 12px; right: 12px; top: 64px; width: auto; }
    .auth-wrap { padding-top: 24px; }
    .auth-card { padding: 22px 18px; border-radius: 18px; }
    .acct-banner { height: 110px; }
    .acct-head { margin-top: -46px; gap: 14px; }
    .acct-logout { width: 100%; }
    .acct-logout .btn { width: 100%; justify-content: center; }
    .kv { grid-template-columns: 1fr; gap: 2px; }
    .kv dd { margin-bottom: 10px; }
    .item-list li { flex-direction: column; }
    .item-list .side { flex-direction: row; align-items: center; }
    .hero { padding: 40px 0 34px; }
    .info-board-grid { grid-auto-flow: column; grid-auto-columns: 82%; grid-template-columns: none; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
    .info-board-grid::-webkit-scrollbar { display: none; }
    .info-card { scroll-snap-align: start; }
}

/* ---------- Icons that replace emoji in the price pages ---------- */
.tp-search-icon, .tp-mini-search span {
    display: block; width: 20px; height: 20px; background: #6C7B95; pointer-events: none; font-size: 0;
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tp-search-icon { left: 16px; top: 17px; }
.tp-mini-search span { width: 16px; height: 16px; left: 11px; top: 11px; }
.tp-empty .ic:empty { display: none; }
.tp-badge .icon, .tp-offer-meta .icon { margin-right: 2px; }

/* =========================================================
   v7 — mobile menu floats over the page + info board shows full text
   ========================================================= */
.nav-backdrop { display: none; }

/* notice cards: show the whole text (admin keeps it short anyway), keep line breaks */
.info-card p { display: block; -webkit-line-clamp: unset; -webkit-box-orient: initial; overflow: visible; white-space: pre-line; }

@media (max-width: 760px) {
    /* info board: cards stacked, nothing cut off, nothing hidden behind a swipe */
    .info-board-grid { display: grid; grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: 1fr; gap: 12px; overflow: visible; scroll-snap-type: none; padding-bottom: 0; }
    .info-card { scroll-snap-align: none; padding: 14px 16px 14px 18px; }

    /* menu: a panel that drops over the page instead of pushing it down */
    .site-header .nav-panel {
        position: absolute; top: 100%; left: calc(50% - 50vw); width: 100vw; box-sizing: border-box; z-index: 3;
        order: 0; flex-basis: auto; margin: 0; padding: 4px 18px 18px;
        background: #fff; border-radius: 0 0 22px 22px; box-shadow: 0 24px 40px rgba(11, 37, 69, .24);
        max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
        opacity: 0; visibility: hidden; transform: translateY(-10px); pointer-events: none;
        transition: opacity .2s ease, transform .2s ease, visibility .2s;
    }
    .site-header .nav-toggle-checkbox:checked ~ .nav-panel {
        opacity: 1; visibility: visible; transform: none; pointer-events: auto;
        max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px);
    }
    /* tap anywhere outside the menu to close it */
    .nav-backdrop {
        display: block; position: absolute; top: 100%; left: calc(50% - 50vw); width: 100vw; height: 100vh; z-index: 2;
        background: rgba(11, 37, 69, .5); cursor: pointer; -webkit-tap-highlight-color: transparent;
        opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s;
    }
    .nav-toggle-checkbox:checked ~ .nav-backdrop { opacity: 1; visibility: visible; }
    .site-header .main-nav a { padding: 13px 4px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
    .site-header .nav-panel, .nav-backdrop { transition: none; }
}

/* =========================================================
   v8 — notice cards never cut or stretch on long words/URLs; menu locks the page behind it
   ========================================================= */
.info-board-grid > * { min-width: 0; }
.info-card { min-width: 0; max-width: 100%; }
.info-card h4, .info-card p, .info-card .more { overflow-wrap: anywhere; word-break: break-word; min-width: 0; }

@media (max-width: 760px) {
    /* while the menu is open the page behind it does not scroll (modern browsers; older ones simply ignore this) */
    body:has(#nav-toggle:checked) { overflow: hidden; }
}

/* tablets (761-1020px): the full desktop menu needs a little more room, so tighten it instead of overflowing sideways */
@media (min-width: 761px) and (max-width: 1020px) {
    .brand-name small { display: none; }
    .header-row { gap: 10px; }
    .nav-panel { gap: 12px; }
    .main-nav { gap: 14px; }
    .main-nav a { font-size: .9rem; }
    .nav-panel .btn { padding: 10px 14px; font-size: .88rem; }
}

/* small tablets (761-900px): brand + account on the first row, the menu on a second row — nothing overflows sideways */
@media (min-width: 761px) and (max-width: 900px) {
    .header-row { flex-wrap: wrap; row-gap: 0; }
    .brand { order: 1; margin-right: auto; }
    .acct-menu { order: 2; }
    .nav-panel { order: 3; flex-basis: 100%; margin-left: 0; justify-content: space-between; padding: 8px 0 2px; border-top: 1px solid var(--line); }
}
