/* ============================================================
   SAQCC — South African Qualification Competency Certification Authority
   Stylesheet — visual mock-up
   ============================================================ */

:root {
    --navy:        #0a2e5c;
    --navy-deep:   #061f3f;
    --green:       #007a3d;
    --green-deep:  #005a2c;
    --gold:        #f4b41a;
    --red:         #c8102e;
    --grey-50:     #f6f8fb;
    --grey-100:    #eef2f7;
    --grey-200:    #d9e0ea;
    --grey-400:    #8a98ad;
    --grey-700:    #4a5568;
    --ink:         #1a202c;
    --white:       #ffffff;
    --shadow:      0 2px 8px rgba(10, 46, 92, 0.08);
    --shadow-lg:   0 6px 20px rgba(10, 46, 92, 0.12);
    --radius:      6px;
    --radius-lg:   10px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.6;
    font-size: 16px;
}

a { color: var(--navy); text-decoration: none; }
a:hover { color: var(--green); }

img { max-width: 100%; height: auto; display: block; }

/* ---------- Top utility bar ---------- */
.utility-bar {
    background: var(--navy-deep);
    color: var(--white);
    font-size: 0.85rem;
    padding: 6px 0;
}
.utility-bar .container {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
}
.utility-bar a { color: var(--white); margin-left: 1.2rem; }
.utility-bar a:hover { color: var(--gold); }
.utility-bar .contact span { margin-right: 1.2rem; }

/* ---------- Header & nav ---------- */
.site-header {
    background: var(--white);
    border-bottom: 4px solid var(--green);
    box-shadow: var(--shadow);
    position: sticky; top: 0; z-index: 100;
}
.site-header .container {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 24px;
}
.brand img { height: 96px; max-width: 100%; }
@media (max-width: 640px) { .brand img { height: 70px; } }

.main-nav ul {
    display: flex; list-style: none; gap: 4px; align-items: center;
}
.main-nav a {
    display: inline-block;
    padding: 10px 16px;
    color: var(--navy);
    font-weight: 600;
    border-radius: var(--radius);
    transition: all 0.18s ease;
}
.main-nav a:hover, .main-nav a.active {
    background: var(--navy);
    color: var(--white);
}
.main-nav a.cta {
    background: var(--gold);
    color: var(--navy-deep);
    margin-left: 8px;
}
.main-nav a.cta:hover { background: var(--navy); color: var(--white); }

/* ---------- Container ---------- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ---------- Hero ---------- */
.hero {
    background:
        linear-gradient(135deg, rgba(6, 31, 63, 0.88) 0%, rgba(0, 90, 44, 0.82) 100%),
        url('/static/images/hero.jpeg') center / cover no-repeat;
    color: var(--white);
    padding: 80px 0;
}
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.hero h1 {
    font-size: 2.6rem; line-height: 1.15; margin-bottom: 1rem; font-weight: 700;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
    font-size: 1.15rem; margin-bottom: 1.6rem; color: rgba(255,255,255,0.9);
}
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

.hero-card {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: var(--radius-lg);
    padding: 28px;
    backdrop-filter: blur(6px);
}
.hero-card h3 { color: var(--gold); margin-bottom: 14px; font-size: 1.15rem; }
.hero-card form { display: flex; flex-direction: column; gap: 10px; }
.hero-card input {
    padding: 10px 12px; border-radius: var(--radius); border: none; font-size: 0.95rem;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: var(--radius);
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.18s ease;
    font-size: 0.95rem;
    text-align: center;
}
.btn-primary  { background: var(--gold); color: var(--navy-deep); border-color: var(--gold); }
.btn-primary:hover  { background: var(--white); color: var(--navy-deep); border-color: var(--white); }
.btn-secondary { background: transparent; color: var(--white); border-color: var(--white); }
.btn-secondary:hover { background: var(--white); color: var(--navy-deep); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: var(--white); }
.btn-green { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { background: var(--green-deep); border-color: var(--green-deep); }
.btn-block { display: block; width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }

/* ---------- Sections ---------- */
section { padding: 64px 0; }
.section-head { text-align: center; margin-bottom: 40px; }
.section-head .eyebrow {
    display: inline-block;
    color: var(--green);
    font-weight: 700; text-transform: uppercase; font-size: 0.85rem; letter-spacing: 0.08em;
    margin-bottom: 8px;
}
.section-head h2 {
    font-size: 2rem; color: var(--navy-deep); margin-bottom: 12px;
}
.section-head p { color: var(--grey-700); max-width: 720px; margin: 0 auto; }

.bg-light { background: var(--grey-50); }

/* ---------- Cards / grids ---------- */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 28px 24px;
    box-shadow: var(--shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.card .icon {
    width: 52px; height: 52px;
    background: var(--green); color: var(--white);
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%; font-weight: 700; font-size: 1.2rem;
    margin-bottom: 16px;
}
.card h3 { color: var(--navy-deep); margin-bottom: 10px; font-size: 1.1rem; }
.card p { color: var(--grey-700); font-size: 0.95rem; }

/* ---------- Compliance steps ---------- */
.steps {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px;
    counter-reset: step;
}
.step {
    background: var(--white);
    border-left: 4px solid var(--gold);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    counter-increment: step;
    position: relative;
}
.step::before {
    content: counter(step);
    position: absolute; top: -16px; left: 16px;
    background: var(--navy); color: var(--white);
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700;
}
.step p { color: var(--ink); font-weight: 500; margin-top: 6px; }

/* ---------- Page header (inner pages) ---------- */
.page-header {
    background: linear-gradient(135deg, var(--navy-deep), var(--navy));
    color: var(--white);
    padding: 56px 0 48px;
}
.page-header h1 { font-size: 2.2rem; margin-bottom: 8px; }
.page-header .crumb { color: rgba(255,255,255,0.7); font-size: 0.9rem; }
.page-header .crumb a { color: var(--gold); }

/* ---------- Content blocks ---------- */
.prose { max-width: 880px; margin: 0 auto; }
.prose h2 { color: var(--navy-deep); margin-top: 2.2rem; margin-bottom: 0.8rem; font-size: 1.6rem; }
.prose h3 { color: var(--green-deep); margin-top: 1.6rem; margin-bottom: 0.6rem; font-size: 1.2rem; }
.prose h4 { color: var(--navy-deep); margin-top: 1.4rem; margin-bottom: 0.5rem; font-size: 1.02rem; }
.prose p, .prose ul, .prose ol { margin-bottom: 1rem; }
.prose ul, .prose ol { padding-left: 1.4rem; }
.prose li { margin-bottom: 0.4rem; }
.prose ol.cert-fields { margin-top: 0.4rem; }
.prose ol.cert-fields li { margin-bottom: 0.25rem; }
.prose .callout {
    background: var(--grey-50);
    border-left: 4px solid var(--green);
    padding: 18px 20px;
    border-radius: var(--radius);
    margin: 1.4rem 0;
}
.prose .callout.warn { border-left-color: var(--red); }
.prose .callout.warn strong { color: var(--red); }

/* ---------- Tables ---------- */
table.data {
    width: 100%; border-collapse: collapse; margin: 1rem 0 2rem;
    box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden;
}
table.data thead {
    background: var(--navy); color: var(--white);
}
table.data th, table.data td {
    padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--grey-200);
    font-size: 0.93rem;
}
table.data tbody tr:nth-child(even) { background: var(--grey-50); }
table.data tbody tr:hover { background: #fef8e6; }
table.data .penalty { color: var(--red); font-weight: 600; }
table.data .status-ok { color: var(--green-deep); font-weight: 600; }

/* Scrollable data table wrapper — keeps header visible while scrolling */
.table-scroll {
    max-height: 360px;
    overflow-y: auto;
    overflow-x: auto;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 1rem 0 2rem;
    background: var(--white);
}
.table-scroll table.data {
    margin: 0; box-shadow: none; border-radius: 0; border: none;
}
.table-scroll table.data thead th {
    position: sticky; top: 0; z-index: 2;
    background: var(--navy); color: var(--white);
    box-shadow: 0 2px 0 var(--gold);
}
.table-scroll .row-count {
    display: flex; justify-content: space-between; align-items: center;
    padding: 8px 14px; background: var(--grey-50);
    border-top: 1px solid var(--grey-200);
    font-size: 0.82rem; color: var(--grey-700);
    position: sticky; bottom: 0;
}
/* Custom scrollbar inside the wrapper */
.table-scroll::-webkit-scrollbar { width: 10px; height: 10px; }
.table-scroll::-webkit-scrollbar-track { background: var(--grey-50); }
.table-scroll::-webkit-scrollbar-thumb { background: var(--grey-200); border-radius: 5px; }
.table-scroll::-webkit-scrollbar-thumb:hover { background: var(--grey-400); }

/* ---------- Forms ---------- */
.form-card {
    background: var(--white);
    border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    max-width: 720px;
    margin: 0 auto;
}
.form-card h2 { color: var(--navy-deep); margin-bottom: 8px; }
.form-card .subtitle { color: var(--grey-700); margin-bottom: 24px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 14px; }
.form-row.single { grid-template-columns: 1fr; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label {
    font-weight: 600; font-size: 0.88rem; color: var(--navy-deep);
}
.form-group label .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
    padding: 10px 12px;
    border: 1px solid var(--grey-200);
    border-radius: var(--radius);
    font-size: 0.95rem;
    font-family: inherit;
    background: var(--white);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(0, 122, 61, 0.15);
}
.form-group textarea { min-height: 110px; resize: vertical; }
.form-group .hint { font-size: 0.8rem; color: var(--grey-400); }

.radio-row, .check-row {
    display: flex; gap: 18px; flex-wrap: wrap;
}
.radio-row label, .check-row label {
    display: flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer;
}

.form-actions {
    display: flex; gap: 12px; justify-content: flex-end; margin-top: 20px;
    padding-top: 20px; border-top: 1px solid var(--grey-200);
}

/* ---------- Dashboard layout ---------- */
.dash {
    display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 200px);
}
.dash-side {
    background: var(--navy-deep); color: var(--white);
    padding: 24px 0;
}
.dash-side .user-block {
    padding: 0 20px 20px; border-bottom: 1px solid rgba(255,255,255,0.12);
    margin-bottom: 16px;
}
.dash-side .user-block .name { font-weight: 600; }
.dash-side .user-block .role { font-size: 0.82rem; color: var(--gold); }
.dash-side ul { list-style: none; }
.dash-side li a {
    display: block; padding: 12px 20px; color: rgba(255,255,255,0.85);
    border-left: 3px solid transparent; font-size: 0.93rem;
}
.dash-side li a:hover, .dash-side li a.active {
    background: rgba(255,255,255,0.06);
    border-left-color: var(--gold);
    color: var(--white);
}
.dash-main { padding: 32px 36px; background: var(--grey-50); }
.dash-main h1 { color: var(--navy-deep); margin-bottom: 4px; font-size: 1.6rem; }
.dash-main .subtitle { color: var(--grey-700); margin-bottom: 24px; }

.tile-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 28px; }
.tile {
    background: var(--white); padding: 20px; border-radius: var(--radius);
    box-shadow: var(--shadow); border-top: 3px solid var(--green);
}
.tile .num { font-size: 2rem; font-weight: 700; color: var(--navy-deep); }
.tile .lbl { font-size: 0.85rem; color: var(--grey-700); text-transform: uppercase; letter-spacing: 0.05em; }

.dash-section {
    background: var(--white); border-radius: var(--radius-lg);
    padding: 28px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.dash-section h2 {
    color: var(--navy-deep); font-size: 1.2rem; margin-bottom: 14px;
    padding-bottom: 10px; border-bottom: 2px solid var(--grey-100);
}

.tabs { display: flex; gap: 0; border-bottom: 2px solid var(--grey-200); margin-bottom: 20px; flex-wrap: wrap; }
.tabs button {
    padding: 12px 18px; background: none; border: none; cursor: pointer;
    font-size: 0.92rem; font-weight: 600; color: var(--grey-700);
    border-bottom: 3px solid transparent; margin-bottom: -2px;
    font-family: inherit;
}
.tabs button:hover { color: var(--navy); }
.tabs button.active { color: var(--navy-deep); border-bottom-color: var(--gold); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Status pills */
.pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px;
    font-size: 0.78rem; font-weight: 600; text-transform: uppercase;
}
.pill.green { background: #e6f5ec; color: var(--green-deep); }
.pill.gold  { background: #fff5d6; color: #8a6300; }
.pill.red   { background: #fde7ea; color: var(--red); }
.pill.grey  { background: var(--grey-100); color: var(--grey-700); }

/* ---------- Practitioner card visual ---------- */
.practitioner-section {
    display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
}
.practitioner-card-visual {
    background: var(--white); border-radius: 14px;
    box-shadow: 0 12px 32px rgba(10,46,92,0.18);
    padding: 18px; max-width: 480px; margin: 0 auto;
    border: 1px solid var(--grey-200);
}
.practitioner-card-visual img { border-radius: 8px; }
.practitioner-card-visual .caption {
    text-align: center; font-size: 0.85rem; color: var(--grey-700);
    margin-top: 12px; font-style: italic;
}

/* Digital practitioner card (rendered version) */
.prac-card {
    width: 100%; max-width: 460px; margin: 0 auto;
    background: linear-gradient(135deg, #1e4a8a 0%, #0a2e5c 100%);
    border-radius: 12px; overflow: hidden;
    box-shadow: 0 10px 28px rgba(10,46,92,0.25);
    color: var(--white);
}
.prac-card .header {
    padding: 14px 20px; background: rgba(255,255,255,0.08);
    text-align: center; border-bottom: 2px solid var(--gold);
}
.prac-card .header h3 { color: var(--white); margin: 0; letter-spacing: 0.08em; font-size: 1rem; }
.prac-card .body {
    display: grid; grid-template-columns: 1fr 110px; gap: 18px; padding: 18px 20px;
}
.prac-card .fields { display: flex; flex-direction: column; gap: 10px; }
.prac-card .field { display: flex; flex-direction: column; }
.prac-card .field .lbl {
    font-size: 0.65rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--gold); font-weight: 600;
}
.prac-card .field .val { font-size: 0.92rem; color: var(--white); font-weight: 500; }
.prac-card .photo {
    width: 110px; height: 130px; background: var(--grey-100); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    color: var(--grey-700); font-size: 0.75rem; text-align: center;
    border: 2px solid var(--gold);
}
.prac-card .footer {
    background: rgba(255,255,255,0.06); padding: 10px 20px;
    font-size: 0.72rem; color: rgba(255,255,255,0.85); text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
}
.prac-card .flag-bar {
    height: 8px;
    background: linear-gradient(to right,
        var(--green) 0 25%,
        var(--gold) 25% 50%,
        var(--red) 50% 75%,
        var(--navy) 75% 100%);
}

@media (max-width: 800px) {
    .practitioner-section { grid-template-columns: 1fr; }
    .prac-card .body { grid-template-columns: 1fr; }
    .prac-card .photo { margin: 0 auto; }
}

/* ---------- Verify result box ---------- */
.verify-result {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: var(--radius-lg); padding: 24px; margin-top: 24px;
    box-shadow: var(--shadow);
}
.verify-result.success { border-left: 4px solid var(--green); }
.verify-result h3 { color: var(--green-deep); margin-bottom: 12px; }
.verify-result .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--grey-200); }
.verify-result .row:last-child { border-bottom: none; }
.verify-result .row .key { font-weight: 600; color: var(--grey-700); }

/* ---------- Modal overlay ---------- */
.modal-backdrop {
    display: none; position: fixed; inset: 0;
    background: rgba(6, 31, 63, 0.62);
    z-index: 1000; align-items: flex-start; justify-content: center;
    padding: 40px 20px; overflow-y: auto;
}
.modal-backdrop.open { display: flex; }
.modal {
    background: var(--white); border-radius: var(--radius-lg);
    width: 100%; max-width: 720px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    animation: modalIn 0.18s ease-out;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.modal-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 22px; border-bottom: 1px solid var(--grey-200);
    background: var(--navy-deep); color: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-head h2 { color: var(--white); font-size: 1.15rem; margin: 0; }
.modal-head .close {
    background: none; border: none; color: var(--white);
    font-size: 1.6rem; cursor: pointer; padding: 0 6px; line-height: 1;
}
.modal-body { padding: 22px; }
.modal-foot {
    padding: 14px 22px; border-top: 1px solid var(--grey-200);
    background: var(--grey-50); border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    text-align: right;
}

/* Document list inside modal */
.doc-list { list-style: none; padding: 0; margin: 0; }
.doc-list li {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 12px; border: 1px solid var(--grey-200);
    border-radius: 6px; margin-bottom: 8px; background: var(--white);
}
.doc-list li:hover { background: var(--grey-50); }
.doc-list .file-icon {
    width: 36px; height: 36px; background: var(--gold);
    color: var(--navy-deep); border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 0.78rem; flex-shrink: 0;
}
.doc-list .file-icon.pdf { background: #fde7ea; color: var(--red); }
.doc-list .file-icon.img { background: #e6f5ec; color: var(--green-deep); }
.doc-list .meta { flex: 1; min-width: 0; }
.doc-list .meta .name { font-weight: 600; color: var(--navy-deep); font-size: 0.92rem; }
.doc-list .meta .info { font-size: 0.8rem; color: var(--grey-700); }
.doc-list .actions { display: flex; gap: 6px; flex-shrink: 0; }
.doc-list .actions a {
    padding: 6px 10px; background: var(--grey-100); border-radius: 4px;
    color: var(--navy); font-size: 0.82rem; font-weight: 600;
}
.doc-list .actions a:hover { background: var(--navy); color: var(--white); }

/* ---------- Accordion list (for complaints) ---------- */
.accordion-item {
    background: var(--white); border: 1px solid var(--grey-200);
    border-radius: 6px; margin-bottom: 8px; overflow: hidden;
    transition: box-shadow 0.15s;
}
.accordion-item:hover { box-shadow: var(--shadow); }
.accordion-head {
    display: grid; grid-template-columns: 110px 90px 1fr auto auto;
    gap: 12px; align-items: center;
    padding: 12px 16px; cursor: pointer;
    background: var(--white); transition: background 0.12s;
}
.accordion-head:hover { background: var(--grey-50); }
.accordion-item.open .accordion-head { background: var(--grey-50); border-bottom: 1px solid var(--grey-200); }
.accordion-head .ref { font-family: 'Courier New', monospace; font-size: 0.82rem; color: var(--grey-700); }
.accordion-head .subject { font-weight: 600; color: var(--navy-deep); font-size: 0.95rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.accordion-head .toggle {
    width: 28px; height: 28px; background: var(--grey-100); border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--navy); transition: transform 0.18s; font-size: 1rem;
}
.accordion-item.open .toggle { transform: rotate(180deg); background: var(--gold); }
.accordion-body { display: none; padding: 18px 20px; background: var(--grey-50); }
.accordion-item.open .accordion-body { display: block; }

/* ---------- Notifications dropdown ---------- */
.notif-wrap { position: relative; display: inline-block; }
.notif-bell {
    position: relative; cursor: pointer; padding: 8px 12px;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
    border-radius: 6px; color: var(--white); font-size: 1.1rem;
    transition: background 0.15s;
}
.notif-bell:hover { background: rgba(255,255,255,0.2); }
.notif-bell .badge {
    position: absolute; top: -6px; right: -6px;
    background: var(--red); color: var(--white);
    font-size: 0.7rem; font-weight: 700;
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 2px solid var(--navy-deep);
}
.notif-panel {
    display: none;
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 380px; background: var(--white); color: var(--ink);
    border: 1px solid var(--grey-200); border-radius: 8px;
    box-shadow: 0 10px 32px rgba(10,46,92,0.18);
    z-index: 200; max-height: 480px; overflow-y: auto;
}
.notif-panel.open { display: block; }
.notif-panel .head {
    padding: 14px 18px; border-bottom: 1px solid var(--grey-200);
    display: flex; justify-content: space-between; align-items: center;
    background: var(--grey-50);
}
.notif-panel .head strong { color: var(--navy-deep); }
.notif-panel .head a { font-size: 0.82rem; color: var(--navy); }
.notif-item {
    padding: 14px 18px; border-bottom: 1px solid var(--grey-100);
    display: flex; gap: 12px; cursor: pointer; transition: background 0.12s;
}
.notif-item:hover { background: var(--grey-50); }
.notif-item.unread { background: #fff8e1; }
.notif-item .icon-circle {
    width: 36px; height: 36px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; flex-shrink: 0;
}
.notif-item.warn .icon-circle { background: #fde7ea; color: var(--red); }
.notif-item.info .icon-circle { background: #fff5d6; color: #8a6300; }
.notif-item.ok   .icon-circle { background: #e6f5ec; color: var(--green-deep); }
.notif-item .content { flex: 1; }
.notif-item .title { font-weight: 600; color: var(--navy-deep); font-size: 0.92rem; margin-bottom: 4px; }
.notif-item .body  { font-size: 0.85rem; color: var(--grey-700); line-height: 1.5; }
.notif-item .time  { font-size: 0.78rem; color: var(--grey-400); margin-top: 4px; }
.notif-panel .foot {
    padding: 12px 18px; text-align: center; border-top: 1px solid var(--grey-200);
    background: var(--grey-50);
}
.notif-panel .foot a { font-size: 0.88rem; color: var(--navy); font-weight: 600; }

/* ---------- Footer ---------- */
.site-footer {
    background: var(--navy-deep);
    color: rgba(255,255,255,0.85);
    padding: 56px 0 24px;
    margin-top: 64px;
}
.site-footer .container {
    display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px;
}
.site-footer h4 { color: var(--white); margin-bottom: 14px; font-size: 1rem; text-transform: uppercase; letter-spacing: 0.05em; }
.site-footer ul { list-style: none; }
.site-footer ul li { margin-bottom: 8px; font-size: 0.92rem; }
.site-footer a { color: rgba(255,255,255,0.8); }
.site-footer a:hover { color: var(--gold); }
.site-footer .brand-small img { height: 50px; margin-bottom: 14px; filter: brightness(0) invert(1); }
.site-footer p.about-snip { font-size: 0.92rem; line-height: 1.5; }
.site-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.12);
    padding-top: 18px; margin-top: 32px;
    text-align: center; font-size: 0.85rem; color: rgba(255,255,255,0.6);
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
    .hero .container { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2rem; }
    .site-footer .container { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .dash { grid-template-columns: 1fr; }
    .dash-side { padding: 12px 0; }
}

@media (max-width: 640px) {
    .main-nav ul { gap: 0; flex-wrap: wrap; justify-content: center; }
    .main-nav a { padding: 8px 10px; font-size: 0.9rem; }
    .site-header .container { flex-direction: column; gap: 12px; }
    .site-footer .container { grid-template-columns: 1fr; }
    .utility-bar .container { justify-content: center; gap: 8px; text-align: center; }
}
