:root {
    --admin-green: #07583f;
    --admin-dark: #02382a;
    --admin-yellow: #f3d531;
    --admin-cream: #f3f1e9;
    --admin-ink: #14221d;
    --admin-muted: #68756f;
    --admin-line: #dfe4e0;
    --admin-white: #fff;
    --admin-sans: "DM Sans", sans-serif;
    --admin-display: "Manrope", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; }
body { margin: 0; color: var(--admin-ink); background: #f4f6f3; font-family: var(--admin-sans); }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.admin-login-page { min-height: 100vh; background: var(--admin-dark); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; }
.login-brand { position: relative; overflow: hidden; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; padding: 58px clamp(40px, 7vw, 110px) 80px; color: white; background: radial-gradient(circle at 85% 16%, rgba(243,213,49,.2), transparent 25%), linear-gradient(135deg, rgba(3,80,58,.94), rgba(2,45,34,.99)); }
.login-brand::before { content: ""; position: absolute; width: 520px; height: 520px; left: -300px; bottom: -230px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 85px rgba(255,255,255,.022), 0 0 0 170px rgba(255,255,255,.016); }
.login-brand a, .login-brand > div { position: relative; z-index: 1; }
.login-brand img { width: min(520px, 90%); height: auto; }
.login-brand span { color: var(--admin-yellow); font-size: .7rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.login-brand h1 { max-width: 650px; margin: 22px 0; font: 800 clamp(3rem, 5.2vw, 5.6rem)/.98 var(--admin-display); letter-spacing: -.065em; }
.login-brand p { max-width: 540px; margin: 0; color: rgba(255,255,255,.68); font-size: 1.02rem; line-height: 1.7; }
.login-panel { display: grid; place-items: center; padding: 40px; background: var(--admin-cream); }
.login-card { width: min(430px, 100%); padding: 42px; border: 1px solid rgba(255,255,255,.8); border-radius: 26px; background: rgba(255,255,255,.84); box-shadow: 0 28px 70px rgba(3,58,43,.12); backdrop-filter: blur(18px); }
.admin-eyebrow { margin: 0 0 15px; color: var(--admin-green); font-size: .65rem; font-weight: 700; letter-spacing: .17em; }
.login-card h2 { margin: 0; font: 800 2.35rem var(--admin-display); letter-spacing: -.05em; }
.login-copy { margin: 10px 0 28px; color: var(--admin-muted); }
.login-card form { display: grid; gap: 18px; }
.login-card label { display: grid; gap: 8px; font-size: .75rem; font-weight: 700; }
.login-card input, .filter-bar input, .filter-bar select { width: 100%; border: 1px solid var(--admin-line); border-radius: 11px; padding: 13px 14px; outline: 0; color: var(--admin-ink); background: white; }
.login-card input:focus, .filter-bar input:focus, .filter-bar select:focus { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(7,88,63,.1); }
.admin-button { border: 0; display: inline-flex; align-items: center; justify-content: space-between; gap: 28px; padding: 14px 18px; border-radius: 99px; color: var(--admin-dark); background: var(--admin-yellow); font-weight: 700; cursor: pointer; }
.back-link { display: inline-block; margin-top: 25px; color: var(--admin-muted); font-size: .75rem; font-weight: 600; }
.admin-alert { margin: 0 0 22px; padding: 13px 15px; border-radius: 10px; font-size: .78rem; line-height: 1.5; }
.admin-alert.error { color: #7b3228; background: #ffebe7; border: 1px solid #f5c7bd; }
.admin-alert.success { color: #07533c; background: #e1f4eb; border: 1px solid #bde2d2; }

.admin-header { position: sticky; z-index: 20; top: 0; min-height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 12px max(28px, calc((100vw - 1400px) / 2)); color: white; background: radial-gradient(circle at 12% -80%, rgba(243,213,49,.17), transparent 42%), rgba(2,56,42,.97); border-bottom: 1px solid rgba(255,255,255,.16); box-shadow: 0 10px 35px rgba(3,58,43,.13); backdrop-filter: blur(18px); }
.admin-brand { display: flex; align-items: center; gap: 11px; }
.admin-brand img { width: auto; height: 40px; max-width: 400px; object-fit: contain; object-position: left center; }
.admin-brand > span { width: 41px; height: 41px; display: grid; place-items: center; border-radius: 14px; color: var(--admin-dark); background: var(--admin-yellow); font: 800 1.1rem var(--admin-display); }
.admin-brand div { display: grid; }
.admin-brand b { font: 800 .92rem var(--admin-display); }
.admin-brand small { color: rgba(255,255,255,.58); font-size: .62rem; }
.website-button svg, .logout-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.admin-actions { display: flex; align-items: center; gap: 10px; }
.website-button { min-height: 44px; display: flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 14px; color: rgba(255,255,255,.82); background: rgba(255,255,255,.055); font-size: .68rem; font-weight: 700; transition: color .2s, background .2s; }
.website-button:hover { color: var(--admin-dark); background: var(--admin-yellow); border-color: var(--admin-yellow); }
.website-button b { font-size: .8rem; }
.profile-chip { min-height: 52px; display: flex; align-items: center; gap: 9px; padding: 5px 6px 5px 5px; border: 1px solid rgba(255,255,255,.14); border-radius: 17px; background: rgba(255,255,255,.075); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.admin-avatar { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.65); border-radius: 13px; color: var(--admin-dark); background: linear-gradient(145deg, #ffe75a, var(--admin-yellow)); box-shadow: 0 7px 16px rgba(0,0,0,.16); font: 800 .75rem var(--admin-display); letter-spacing: -.02em; }
.profile-copy { min-width: 95px; max-width: 145px; display: grid; line-height: 1.2; }
.profile-copy small { color: rgba(255,255,255,.48); font-size: .55rem; }
.profile-copy strong { overflow: hidden; color: white; font-size: .68rem; text-overflow: ellipsis; white-space: nowrap; }
.profile-chip form { margin: 0; }
.logout-button { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 11px; color: rgba(255,255,255,.68); background: transparent; cursor: pointer; transition: color .2s, background .2s; }
.logout-button:hover { color: white; background: rgba(255,255,255,.1); }
.admin-main { width: min(1400px, calc(100% - 56px)); margin: 0 auto; padding: 55px 0 80px; }
.admin-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 38px; }
.admin-title-row h1 { margin: 0; font: 800 clamp(2.5rem, 4vw, 4.2rem)/1 var(--admin-display); letter-spacing: -.06em; }
.admin-title-row > div > p:last-child { margin: 14px 0 0; color: var(--admin-muted); }
.export-button { flex: 0 0 auto; padding-inline: 22px; }
.traffic-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 13px; margin-bottom: 18px; }
.traffic-card { position: relative; overflow: hidden; min-height: 158px; display: flex; flex-direction: column; justify-content: space-between; padding: 21px; border: 1px solid rgba(255,255,255,.82); border-radius: 20px; background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(242,246,242,.86)); box-shadow: inset 0 1px 0 white, 0 15px 34px rgba(3,58,43,.065); }
.traffic-card::after { content: ""; position: absolute; width: 105px; height: 105px; top: -55px; right: -42px; border: 1px solid rgba(7,88,63,.09); border-radius: 50%; box-shadow: 0 0 0 20px rgba(7,88,63,.025); }
.traffic-card span { color: var(--admin-muted); font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.traffic-card strong { position: relative; z-index: 1; font: 800 2.75rem/1 var(--admin-display); letter-spacing: -.065em; }
.traffic-card small { color: var(--admin-muted); font-size: .65rem; }
.traffic-card.primary { color: white; border-color: rgba(255,255,255,.18); background: linear-gradient(145deg, #087451, var(--admin-dark)); }
.traffic-card.primary span, .traffic-card.primary small { color: rgba(255,255,255,.64); }
.traffic-card.primary strong { color: var(--admin-yellow); }
.traffic-card.primary::after { border-color: rgba(255,255,255,.13); box-shadow: 0 0 0 20px rgba(255,255,255,.025); }
.traffic-card.accent { color: var(--admin-dark); background: linear-gradient(145deg, #ffe85a, var(--admin-yellow)); }
.traffic-card.accent span, .traffic-card.accent small { color: rgba(2,56,42,.68); }
.insights-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 14px; margin-bottom: 55px; }
.insight-card { min-height: 300px; padding: 25px; border: 1px solid var(--admin-line); border-radius: 20px; background: white; box-shadow: 0 16px 38px rgba(3,58,43,.06); }
.insight-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.insight-heading span { color: var(--admin-green); font-size: .58rem; font-weight: 700; letter-spacing: .15em; }
.insight-heading h2, .section-heading h2 { margin: 6px 0 0; font: 800 1.4rem var(--admin-display); letter-spacing: -.04em; }
.insight-heading > b { color: var(--admin-muted); font-size: .7rem; }
.visit-chart { height: 195px; display: grid; grid-template-columns: repeat(7, 1fr); align-items: end; gap: 11px; margin-top: 25px; border-bottom: 1px solid var(--admin-line); }
.chart-day { height: 100%; display: grid; grid-template-rows: 22px 1fr 24px; align-items: end; text-align: center; }
.chart-day i { width: min(34px, 72%); min-height: 6px; justify-self: center; border-radius: 9px 9px 2px 2px; background: linear-gradient(180deg, var(--admin-yellow), #d6bb18); box-shadow: inset 0 1px 0 rgba(255,255,255,.6); }
.chart-value { color: var(--admin-muted); font-size: .62rem; }
.chart-day small { align-self: center; color: var(--admin-muted); font-size: .59rem; text-transform: uppercase; }
.province-list { display: grid; gap: 17px; margin-top: 26px; }
.province-list > div { display: grid; grid-template-columns: minmax(115px, 1fr) 1.3fr 30px; align-items: center; gap: 12px; font-size: .68rem; }
.province-list i { height: 7px; overflow: hidden; border-radius: 99px; background: #edf1ed; }
.province-list i b { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--admin-green), #0c8760); }
.province-list strong { text-align: right; }
.province-list p { color: var(--admin-muted); font-size: .75rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin: 0 0 18px; scroll-margin-top: 105px; }
.section-heading p { margin-bottom: 8px; }
.section-heading h2 { font-size: 2rem; }
.section-heading > span { color: var(--admin-muted); font-size: .68rem; }
.summary-grid { display: grid; grid-template-columns: 1.25fr repeat(4, 1fr); gap: 13px; margin-bottom: 22px; }
.summary-card { position: relative; overflow: hidden; min-height: 145px; display: flex; flex-direction: column; justify-content: space-between; padding: 20px; border: 1px solid var(--admin-line); border-radius: 18px; background: white; box-shadow: 0 10px 28px rgba(3,58,43,.055); transition: transform .2s, box-shadow .2s; }
.summary-card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(3,58,43,.1); }
.summary-card::after { content: ""; position: absolute; width: 85px; height: 85px; right: -35px; top: -35px; border-radius: 50%; background: var(--card-accent, #d9eee5); }
.summary-card span { position: relative; z-index: 1; color: var(--admin-muted); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; }
.summary-card strong { font: 800 2.3rem var(--admin-display); letter-spacing: -.06em; }
.summary-card small { color: var(--admin-muted); font-size: .64rem; }
.summary-card.total { color: white; border-color: var(--admin-dark); background: linear-gradient(145deg, var(--admin-green), var(--admin-dark)); --card-accent: rgba(243,213,49,.22); }
.summary-card.total span, .summary-card.total small { color: rgba(255,255,255,.65); }
.summary-card.pending { --card-accent: #fff2a8; }
.summary-card.reviewed { --card-accent: #d8ecff; }
.summary-card.approved { --card-accent: #c9efd9; }
.summary-card.rejected { --card-accent: #ffd9d3; }
.data-panel { overflow: hidden; border: 1px solid var(--admin-line); border-radius: 20px; background: white; box-shadow: 0 18px 45px rgba(3,58,43,.07); }
.filter-bar { display: grid; grid-template-columns: minmax(260px, 1fr) 190px auto auto 1fr; align-items: center; gap: 10px; padding: 17px; border-bottom: 1px solid var(--admin-line); }
.filter-button { border: 0; padding: 13px 19px; border-radius: 10px; color: white; background: var(--admin-green); cursor: pointer; font-weight: 700; }
.clear-filter { color: var(--admin-muted); font-size: .72rem; font-weight: 600; }
.result-count { justify-self: end; color: var(--admin-muted); font-size: .68rem; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 1100px; }
th { padding: 13px 16px; color: var(--admin-muted); background: #fafbf9; text-align: left; font-size: .61rem; letter-spacing: .08em; text-transform: uppercase; }
td { padding: 17px 16px; border-top: 1px solid #edf0ed; vertical-align: top; font-size: .76rem; line-height: 1.45; }
td strong { display: block; margin-bottom: 4px; font-size: .82rem; }
td small { display: block; margin-top: 4px; color: var(--admin-muted); font-size: .65rem; }
td a { color: var(--admin-green); font-weight: 600; }
.applicant-link strong { color: var(--admin-ink); }
.view-application { display: inline-block; margin-top: 9px; font-size: .64rem; }
details { position: relative; margin-top: 7px; }
summary { color: var(--admin-green); cursor: pointer; font-size: .66rem; font-weight: 700; }
details p { position: absolute; z-index: 8; width: 320px; max-height: 220px; overflow: auto; margin: 8px 0 0; padding: 14px; border: 1px solid var(--admin-line); border-radius: 12px; background: white; box-shadow: 0 16px 38px rgba(3,58,43,.16); line-height: 1.55; }
.status-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 96px; border-radius: 99px; padding: 7px 14px; font-size: .68rem; font-weight: 700; text-transform: capitalize; white-space: nowrap; }
.status-badge.pending { color: #665400; background: #fff5bf; }
.status-badge.reviewed { color: #15527d; background: #e1f1fd; }
.status-badge.approved { color: #08603f; background: #dff3e8; }
.status-badge.rejected { color: #8a3225; background: #fde5e1; }
.status-cell { vertical-align: middle; white-space: nowrap; }
.empty-state { padding: 65px; color: var(--admin-muted); text-align: center; }
.pagination { display: flex; align-items: center; justify-content: center; gap: 25px; padding: 18px; border-top: 1px solid var(--admin-line); font-size: .72rem; }
.pagination a { color: var(--admin-green); font-weight: 700; }
.pagination span { color: var(--admin-muted); }

.application-main { max-width: 1240px; }
.detail-back { display: inline-block; margin-bottom: 30px; color: var(--admin-green); font-size: .75rem; font-weight: 700; }
.application-hero { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 34px; padding-bottom: 30px; border-bottom: 1px solid var(--admin-line); }
.application-hero h1 { margin: 0; font: 800 clamp(2.8rem, 5vw, 5.1rem)/.98 var(--admin-display); letter-spacing: -.065em; }
.application-hero > div > p:last-child { margin: 13px 0 0; color: var(--admin-muted); }
.large-status { display: inline-flex; padding: 10px 15px; border-radius: 99px; font-size: .72rem; font-weight: 700; }
.large-status.pending { color: #665400; background: #fff0a0; }
.large-status.reviewed { color: #15527d; background: #d8edff; }
.large-status.approved { color: #08603f; background: #ccebd9; }
.large-status.rejected { color: #8a3225; background: #f8d5cf; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; align-items: start; gap: 22px; }
.application-details { display: grid; gap: 18px; }
.detail-card { padding: 28px; border: 1px solid var(--admin-line); border-radius: 20px; background: white; box-shadow: 0 14px 35px rgba(3,58,43,.055); }
.detail-heading { display: flex; align-items: center; gap: 15px; margin-bottom: 27px; padding-bottom: 20px; border-bottom: 1px solid var(--admin-line); }
.detail-heading > span { flex: 0 0 auto; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--admin-dark); background: var(--admin-yellow); font-size: .65rem; font-weight: 800; }
.detail-heading p { margin: 0 0 4px; color: var(--admin-green); font-size: .58rem; font-weight: 700; letter-spacing: .14em; }
.detail-heading h2 { margin: 0; font: 800 1.3rem var(--admin-display); letter-spacing: -.035em; }
.detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin: 0; }
.detail-grid div { min-width: 0; }
.detail-grid dt { margin-bottom: 6px; color: var(--admin-muted); font-size: .63rem; text-transform: uppercase; letter-spacing: .08em; }
.detail-grid dd { margin: 0; overflow-wrap: anywhere; font-size: .84rem; font-weight: 600; }
.detail-grid a { color: var(--admin-green); }
.motivation-card blockquote { margin: 0; padding: 6px 0 6px 22px; border-left: 3px solid var(--admin-yellow); color: #34423d; font: 500 1rem/1.75 var(--admin-sans); }
.review-panel { position: sticky; top: 105px; overflow: hidden; padding: 28px; border-radius: 20px; color: white; background: radial-gradient(circle at 90% 0, rgba(243,213,49,.22), transparent 30%), linear-gradient(145deg, #087451, var(--admin-dark)); box-shadow: 0 22px 50px rgba(3,58,43,.2); }
.review-panel h2 { margin: 0 0 25px; font: 800 1.55rem var(--admin-display); letter-spacing: -.04em; }
.review-panel .admin-eyebrow { color: var(--admin-yellow); }
.review-panel form { display: grid; }
.review-panel label { display: grid; gap: 8px; margin-bottom: 18px; color: rgba(255,255,255,.72); font-size: .7rem; font-weight: 700; }
.review-panel select, .review-panel textarea { width: 100%; border: 1px solid rgba(255,255,255,.2); border-radius: 11px; padding: 12px 13px; outline: 0; color: white; background: rgba(255,255,255,.1); resize: vertical; }
.review-panel option { color: var(--admin-ink); background: white; }
.review-panel select:focus, .review-panel textarea:focus { border-color: var(--admin-yellow); box-shadow: 0 0 0 3px rgba(243,213,49,.12); }
.review-panel .admin-button { margin-top: 4px; }
.review-panel > form > small { margin-top: 16px; color: rgba(255,255,255,.52); font-size: .62rem; line-height: 1.5; }

/* Dashboard overview */
.dashboard-overview-page { background: radial-gradient(circle at 88% 3%, rgba(243,213,49,.09), transparent 24rem), #f3f6f3; }
.dashboard-overview-page .admin-main { width: min(1360px, calc(100% - 56px)); padding: 38px 0 90px; }
.dashboard-overview-page .dashboard-hero { position: relative; isolation: isolate; overflow: hidden; align-items: center; min-height: 218px; margin-bottom: 22px; padding: 36px 38px; border: 1px solid rgba(255,255,255,.16); border-radius: 28px; color: white; background: radial-gradient(circle at 88% 8%, rgba(243,213,49,.24), transparent 26%), linear-gradient(135deg, #087451 0%, #034b38 54%, #02382a 100%); box-shadow: 0 24px 55px rgba(3,58,43,.16); }
.dashboard-overview-page .dashboard-hero::before { content: ""; position: absolute; z-index: -1; width: 260px; height: 260px; right: 11%; bottom: -215px; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.018); }
.dashboard-overview-page .dashboard-hero .admin-eyebrow { margin-bottom: 12px; color: var(--admin-yellow); }
.dashboard-overview-page .dashboard-hero h1 { max-width: 760px; color: white; font-size: clamp(2.7rem, 4vw, 4rem); }
.dashboard-overview-page .dashboard-hero > div > p:last-child { max-width: 650px; margin-top: 16px; color: rgba(255,255,255,.66); line-height: 1.65; }
.dashboard-overview-page .dashboard-hero .export-button { min-width: 154px; border: 1px solid rgba(255,255,255,.4); box-shadow: 0 12px 28px rgba(0,0,0,.15); }
.dashboard-overview-page .traffic-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; margin-bottom: 18px; }
.dashboard-overview-page .traffic-card { grid-column: span 2; min-height: 154px; padding: 22px; border-radius: 22px; }
.dashboard-overview-page .traffic-card.primary { grid-column: span 4; }
.dashboard-overview-page .traffic-card strong { font-size: clamp(2.25rem, 3vw, 3rem); }
.dashboard-overview-page .traffic-card span { letter-spacing: .075em; }
.dashboard-overview-page .insights-grid { grid-template-columns: minmax(0, 1.65fr) minmax(330px, .85fr); gap: 18px; margin-bottom: 48px; }
.dashboard-overview-page .insight-card { min-height: 320px; padding: 29px; border-color: rgba(213,221,216,.9); border-radius: 24px; box-shadow: 0 18px 42px rgba(3,58,43,.065); }
.dashboard-overview-page .section-heading { margin-bottom: 20px; }
.dashboard-overview-page .section-heading h2 { font-size: 2.25rem; }
.dashboard-overview-page .summary-grid { grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.dashboard-overview-page .summary-card { grid-column: span 2; min-height: 132px; padding: 19px 20px; border-radius: 20px; }
.dashboard-overview-page .summary-card.total { grid-column: span 4; }
.dashboard-overview-page .summary-card.is-active { border-color: var(--admin-green); box-shadow: 0 0 0 3px rgba(7,88,63,.11), 0 17px 36px rgba(3,58,43,.1); }
.dashboard-overview-page .summary-card.total.is-active { border-color: rgba(243,213,49,.65); box-shadow: 0 0 0 3px rgba(243,213,49,.16), 0 18px 38px rgba(3,58,43,.18); }
.dashboard-overview-page .data-panel { border-color: rgba(211,220,214,.95); border-radius: 24px; box-shadow: 0 22px 52px rgba(3,58,43,.075); }
.data-panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding: 27px 25px 18px; }
.data-panel-heading span { color: var(--admin-green); font-size: .58rem; font-weight: 700; letter-spacing: .15em; }
.data-panel-heading h3 { margin: 6px 0 0; font: 800 1.45rem var(--admin-display); letter-spacing: -.04em; }
.data-panel-heading p { max-width: 430px; margin: 0; color: var(--admin-muted); font-size: .7rem; line-height: 1.5; text-align: right; }
.dashboard-overview-page .filter-bar { grid-template-columns: minmax(280px, 1fr) 180px auto auto auto; padding: 15px 24px 20px; }
.dashboard-overview-page .filter-bar input, .dashboard-overview-page .filter-bar select { min-height: 47px; border-radius: 13px; background: #fbfcfb; }
.dashboard-overview-page .filter-button { min-height: 47px; padding-inline: 22px; border-radius: 13px; box-shadow: 0 8px 18px rgba(7,88,63,.15); }
.dashboard-overview-page .clear-filter { padding: 10px 4px; }
.dashboard-overview-page .table-wrap { border-top: 1px solid var(--admin-line); }
.dashboard-overview-page th { position: sticky; z-index: 2; top: 0; padding: 14px 18px; background: #f7f9f7; }
.dashboard-overview-page td { padding: 19px 18px; transition: background .18s; }
.dashboard-overview-page tbody tr:hover td { background: #f8faf8; }

@media (max-width: 1250px) {
    .admin-brand img { height: 34px; max-width: 320px; }
    .profile-copy { display: none; }
    .website-button span { display: none; }
}

@media (max-width: 1050px) {
    .admin-brand img { height: 30px; max-width: 280px; }
    .traffic-grid { grid-template-columns: repeat(3, 1fr); }
    .traffic-card.primary { grid-column: span 2; }
    .insights-grid { grid-template-columns: 1fr; }
    .summary-grid { grid-template-columns: repeat(3, 1fr); }
    .summary-card.total { grid-column: span 2; }
    .filter-bar { grid-template-columns: 1fr 170px auto; }
    .clear-filter { grid-column: 1; }
    .result-count { grid-column: 3; }
    .application-layout { grid-template-columns: 1fr; }
    .review-panel { position: static; }
    .dashboard-overview-page .traffic-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dashboard-overview-page .traffic-card { grid-column: span 2; }
    .dashboard-overview-page .traffic-card.primary, .dashboard-overview-page .traffic-card.accent { grid-column: span 3; }
    .dashboard-overview-page .insights-grid { grid-template-columns: 1fr; }
    .dashboard-overview-page .summary-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .dashboard-overview-page .summary-card { grid-column: span 1; }
    .dashboard-overview-page .summary-card.total { grid-column: span 2; }
}

@media (max-width: 760px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-brand { min-height: 390px; padding: 35px 28px 48px; }
    .login-brand h1 { font-size: 3rem; }
    .login-panel { padding: 24px 16px 45px; }
    .login-card { padding: 28px 22px; }
    .admin-header { position: static; padding: 13px 16px; }
    .admin-brand img { width: min(230px, 60vw); height: auto; max-width: none; }
    .admin-actions { gap: 6px; }
    .website-button { display: none; }
    .profile-chip { min-height: 44px; padding: 2px 3px 2px 2px; border-color: rgba(255,255,255,.1); }
    .admin-avatar { width: 38px; height: 38px; }
    .logout-button { width: 32px; height: 32px; }
    .admin-main { width: calc(100% - 28px); padding-top: 35px; }
    .admin-title-row { align-items: flex-start; flex-direction: column; }
    .traffic-grid { grid-template-columns: 1fr 1fr; }
    .traffic-card.primary { grid-column: 1 / -1; }
    .insight-card { padding: 20px 15px; }
    .visit-chart { gap: 5px; }
    .province-list > div { grid-template-columns: minmax(100px, 1fr) 1fr 25px; gap: 8px; }
    .section-heading { align-items: flex-start; flex-direction: column; }
    .summary-grid { grid-template-columns: 1fr 1fr; }
    .summary-card.total { grid-column: 1 / -1; }
    .filter-bar { grid-template-columns: 1fr; }
    .filter-button, .clear-filter, .result-count { grid-column: auto; justify-self: stretch; }
    .result-count { padding: 4px; }
    .application-hero { align-items: flex-start; flex-direction: column; }
    .detail-card { padding: 22px 18px; }
    .detail-grid { grid-template-columns: 1fr; gap: 20px; }
    .dashboard-overview-page .admin-main { width: calc(100% - 28px); padding-top: 20px; }
    .dashboard-overview-page .dashboard-hero { min-height: 0; align-items: flex-start; padding: 27px 23px; border-radius: 23px; }
    .dashboard-overview-page .dashboard-hero h1 { font-size: 2.65rem; }
    .dashboard-overview-page .dashboard-hero .export-button { min-width: 0; }
    .dashboard-overview-page .traffic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .dashboard-overview-page .traffic-card, .dashboard-overview-page .traffic-card.primary, .dashboard-overview-page .traffic-card.accent { grid-column: span 1; min-height: 142px; padding: 18px; border-radius: 18px; }
    .dashboard-overview-page .traffic-card.primary { grid-column: 1 / -1; }
    .dashboard-overview-page .insight-card { min-height: 290px; padding: 22px 17px; border-radius: 20px; }
    .dashboard-overview-page .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
    .dashboard-overview-page .summary-card { grid-column: span 1; min-height: 125px; padding: 17px; }
    .dashboard-overview-page .summary-card.total { grid-column: 1 / -1; }
    .data-panel-heading { align-items: flex-start; flex-direction: column; gap: 9px; padding: 22px 18px 13px; }
    .data-panel-heading p { text-align: left; }
    .dashboard-overview-page .filter-bar { grid-template-columns: 1fr; padding: 13px 18px 18px; }
}
