:root {
    --navy-950: #06243d;
    --navy-900: #0a2f4d;
    --navy-800: #0e3b60;
    --navy-700: #174d75;
    --blue-600: #1976d2;
    --blue-100: #eaf4ff;
    --orange-600: #f0640a;
    --orange-500: #ff7a12;
    --orange-100: #fff0e5;
    --red-600: #d83420;
    --green-600: #16965a;
    --green-100: #e8f8ef;
    --purple-600: #7651d8;
    --purple-100: #f0ebff;
    --ink: #172536;
    --muted: #66788b;
    --line: #dbe4ec;
    --line-strong: #cbd8e3;
    --surface: #ffffff;
    --soft: #f4f8fb;
    --soft-blue: #edf5fb;
    --shadow-xs: 0 4px 12px rgba(11, 47, 77, .05);
    --shadow-sm: 0 10px 30px rgba(11, 47, 77, .08);
    --shadow-md: 0 18px 50px rgba(11, 47, 77, .13);
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background: var(--surface);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}
a { color: var(--blue-600); text-decoration: none; }
a:hover { text-decoration: none; }
button, input, select, textarea { font: inherit; }
img { max-width: 100%; display: block; }
form { margin: 0; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ui-icon { flex: 0 0 auto; }
.container { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.container-wide { width: min(1450px, calc(100% - 40px)); }
.container-panel { width: min(1540px, calc(100% - 32px)); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 80;
    background: rgba(255, 255, 255, .97);
    border-top: 3px solid transparent;
    border-image: linear-gradient(90deg, var(--orange-500), var(--red-600), var(--navy-800)) 1;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 6px 20px rgba(6, 36, 61, .05);
    backdrop-filter: blur(14px);
}
.header-row { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 30px; }
.brand { display: flex; align-items: center; min-width: max-content; color: var(--navy-950); }
.brand-logo { width: 94px; height: 54px; object-fit: contain; }
.brand-divider { width: 1px; height: 48px; margin: 0 20px; background: var(--line-strong); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 24px; font-weight: 900; letter-spacing: -.035em; }
.brand-copy small { color: var(--muted); font-size: 12px; font-weight: 600; }
.header-navigation { flex: 1; display: flex; align-items: center; justify-content: flex-end; gap: 32px; }
.main-nav { display: flex; align-items: center; gap: 8px; }
.main-nav a {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 12px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 750;
    transition: color .16s ease, background .16s ease, transform .16s ease;
}
.main-nav a:hover, .main-nav a.active { color: var(--orange-600); background: var(--orange-100); transform: translateY(-1px); }
.auth-actions { display: flex; align-items: center; gap: 9px; }
.header-icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy-800);
    background: white;
}
.header-menu-button { display: none; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 12px; background: white; color: var(--navy-800); place-items: center; cursor: pointer; }

.btn {
    border: 0;
    border-radius: 12px;
    min-height: 44px;
    padding: 10px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--ink);
    font-weight: 800;
    cursor: pointer;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-primary { color: white; background: linear-gradient(135deg, var(--orange-500), var(--orange-600)); box-shadow: 0 10px 24px rgba(240, 100, 10, .23); }
.btn-primary:hover { color: white; background: linear-gradient(135deg, #ff8b2b, var(--orange-600)); }
.btn-secondary { color: white; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); }
.btn-secondary:hover { color: white; }
.btn-light { color: var(--navy-900); background: #f7fafc; border: 1px solid var(--line); }
.btn-admin { color: var(--orange-600); background: var(--orange-100); border: 1px solid #ffd3b3; }
.btn-danger { color: white; background: var(--red-600); }
.btn-sm { min-height: 38px; padding: 7px 12px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-action { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--muted); cursor: pointer; }
.icon-action.danger:hover { color: var(--red-600); border-color: #f1b8af; background: #fff4f2; }

h1, h2, h3 { margin-top: 0; color: var(--navy-950); line-height: 1.15; }
h1 { letter-spacing: -.045em; }
h2 { letter-spacing: -.025em; }
p { margin-top: 0; }

.alert { margin: 18px auto; padding: 14px 18px; display: flex; align-items: flex-start; gap: 10px; border-radius: 13px; box-shadow: var(--shadow-xs); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }
.alert-success { color: #0f6d42; background: #eaf8f0; border: 1px solid #a9dfc0; }
.alert-danger { color: #9b2c20; background: #fff1ef; border: 1px solid #efb6af; }

.hero { background: linear-gradient(125deg, var(--navy-950), var(--navy-800) 60%, #245f87); color: white; overflow: hidden; }
.hero-grid { min-height: 600px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 50px; padding-block: 72px; }
.eyebrow { display: inline-flex; gap: 8px; align-items: center; color: #ffb36e; font-weight: 900; text-transform: uppercase; letter-spacing: .11em; font-size: 12px; }
.hero h1 { color: white; font-size: clamp(42px, 6vw, 72px); margin: 18px 0 20px; }
.hero p { font-size: 19px; color: #dce8f0; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-art { position: relative; }
.hero-art::before { content: ''; position: absolute; inset: 10% -20%; background: radial-gradient(circle, rgba(255, 122, 18, .30), transparent 60%); }
.hero-art img { position: relative; filter: drop-shadow(0 30px 45px rgba(0,0,0,.35)); }
.trust-strip { background: #fff; border-bottom: 1px solid var(--line); }
.trust-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; padding: 22px 0; }
.trust-item { display: flex; gap: 12px; align-items: center; font-weight: 800; color: var(--navy-800); }
.trust-icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--orange-100); color: var(--orange-600); }

.section { padding: 76px 0; }
.section-soft { background: var(--soft); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section-heading h1, .section-heading h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 8px; }
.section-heading p { color: var(--muted); max-width: 680px; margin: 0; }
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-xs); transition: box-shadow .18s ease, transform .18s ease; }
.card:hover { box-shadow: var(--shadow-sm); }
.course-card { display: flex; flex-direction: column; min-height: 330px; }
.course-badge, .status { display: inline-flex; align-items: center; width: fit-content; border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.course-badge { background: var(--blue-100); color: var(--blue-600); }
.course-card h3 { margin: 20px 0 12px; font-size: 24px; }
.course-card p { color: var(--muted); }
.course-meta { display: grid; gap: 8px; margin: 18px 0; font-size: 14px; }
.course-card .btn { margin-top: auto; }
.post-card { padding: 0; overflow: hidden; }
.post-image { aspect-ratio: 16/10; width: 100%; object-fit: cover; background: #dce7ee; }
.post-content { padding: 22px; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.post-card h3 { font-size: 22px; margin-bottom: 10px; }
.avatar { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: inline-grid; place-items: center; color: white; background: var(--navy-800); font-size: 12px; font-weight: 900; }
.avatar-1 { background: #7651d8; }.avatar-2 { background: #ff7a12; }.avatar-3 { background: #1976d2; }.avatar-4 { background: #15935a; }.avatar-5 { background: #d79b00; }
.form-card { max-width: 780px; margin-inline: auto; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field-full { grid-column: 1/-1; }
label { color: var(--navy-950); font-weight: 800; font-size: 14px; }
input, select, textarea { width: 100%; border: 1px solid var(--line-strong); border-radius: 11px; padding: 12px 13px; color: var(--ink); background: white; }
input:focus, select:focus, textarea:focus { outline: 3px solid rgba(25, 118, 210, .14); border-color: var(--blue-600); }
textarea { min-height: 130px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; }
.help { color: var(--muted); font-size: 12px; }
.error, .field-error { color: var(--red-600); font-size: 12px; font-weight: 700; }
.page-hero { padding: 58px 0; background: linear-gradient(120deg, var(--soft-blue), #fff4e9); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(38px,5vw,58px); margin-bottom: 12px; }
.page-hero p { color: var(--muted); max-width: 760px; font-size: 18px; }
.content { max-width: 860px; }
.content h2 { margin-top: 38px; }.content h3 { margin-top: 26px; }.content li { margin-bottom: 8px; }
.gallery-grid { columns: 3 300px; column-gap: 18px; }
.gallery-item { break-inside: avoid; margin-bottom: 18px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: white; box-shadow: var(--shadow-xs); }
.gallery-item img { width: 100%; }.gallery-caption { padding: 14px; }
.prose-box { background: #fff; border: 1px solid var(--line); padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.inline-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.empty { text-align: center; padding: 45px; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* Panel layout */
.panel-page { background: var(--soft); }
.panel-section { min-height: 680px; padding: 34px 0 52px; background: radial-gradient(circle at 72% 10%, rgba(25,118,210,.055), transparent 32%), var(--soft); }
.panel-shell { display: grid; grid-template-columns: 265px minmax(0, 1fr); gap: 30px; align-items: start; }
.panel-sidebar-toggle { display: none; }
.panel-sidebar { position: sticky; top: 126px; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.panel-sidebar-user { padding: 18px; background: white; border: 1px solid var(--line); }
.panel-sidebar-admin { padding: 18px; color: white; background: linear-gradient(180deg, var(--navy-950), #073252); border: 1px solid rgba(255,255,255,.08); }
.panel-sidebar-heading { padding: 5px 10px 16px; display: grid; gap: 2px; }
.panel-sidebar-heading strong { font-size: 17px; }
.panel-sidebar-admin .panel-sidebar-heading strong { color: white; }
.panel-sidebar-eyebrow { color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.panel-sidebar-admin .panel-sidebar-eyebrow { color: #96b3ca; }
.panel-menu { display: grid; gap: 5px; }
.panel-menu a { min-height: 46px; padding: 10px 12px; display: flex; align-items: center; gap: 12px; border-radius: 11px; color: var(--ink); font-size: 14px; font-weight: 750; transition: .16s ease; }
.panel-menu a:hover { color: var(--navy-950); background: var(--soft); transform: translateX(2px); }
.panel-menu a.active { color: white; background: linear-gradient(135deg, var(--navy-800), var(--navy-950)); box-shadow: 0 8px 20px rgba(6,36,61,.18); }
.panel-menu a.active .ui-icon { color: var(--orange-500); }
.panel-sidebar-admin .panel-menu a { color: #e7f0f7; }
.panel-sidebar-admin .panel-menu a:hover { color: white; background: rgba(255,255,255,.07); }
.panel-sidebar-admin .panel-menu a.active { color: white; background: rgba(255,255,255,.08); border: 1px solid var(--orange-500); box-shadow: none; }
.sidebar-promo { margin-top: 24px; padding: 18px; border-radius: 16px; color: white; background: linear-gradient(145deg, var(--navy-800), var(--navy-950)); }
.sidebar-promo-icon { width: 42px; height: 42px; display: grid; place-items: center; margin-bottom: 13px; color: var(--orange-500); border-radius: 12px; background: rgba(255,255,255,.08); }
.sidebar-promo strong { display: block; margin-bottom: 7px; }
.sidebar-promo p { color: #c9dae7; font-size: 12px; }
.sidebar-admin-promo { border: 1px solid rgba(255,255,255,.15); background: rgba(255,255,255,.035); }
.panel-main { min-width: 0; }
.panel-kicker { display: inline-block; margin-bottom: 8px; color: var(--orange-600); font-size: 11px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }

.panel-hero { position: relative; min-height: 180px; margin-bottom: 24px; padding: 34px 38px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(115deg, #fff 0%, #f7fbfe 60%, #fff5ed 100%); box-shadow: var(--shadow-xs); }
.panel-hero::before { content: ''; position: absolute; right: -5%; top: -90%; width: 410px; height: 410px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,18,.15), transparent 67%); }
.panel-hero-copy { position: relative; z-index: 2; max-width: 700px; }
.panel-hero h1 { margin-bottom: 10px; font-size: clamp(30px, 3.2vw, 46px); }
.panel-hero p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; }
.panel-hero-drone { position: absolute; z-index: 1; right: 2%; top: 2px; width: 315px; height: 175px; opacity: .13; background: url('/images/drone-hero.svg') center/contain no-repeat; filter: grayscale(1); }
.dashboard-top-grid { display: grid; grid-template-columns: minmax(180px, .8fr) minmax(180px, .8fr) minmax(310px, 1.2fr); gap: 20px; margin-bottom: 24px; }
.dashboard-stat-card, .admin-stat-card { min-height: 126px; padding: 22px; display: flex; align-items: center; gap: 17px; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.dashboard-stat-icon, .admin-stat-icon { width: 58px; height: 58px; flex: 0 0 58px; display: grid; place-items: center; border-radius: 50%; }
.dashboard-stat-card strong, .admin-stat-card strong { display: block; color: var(--navy-950); font-size: 30px; line-height: 1; }
.dashboard-stat-card span:not(.dashboard-stat-icon), .admin-stat-card span:not(.admin-stat-icon) { display: block; margin-top: 5px; color: var(--navy-950); font-weight: 800; }
.dashboard-stat-card small, .admin-stat-card small { display: block; margin-top: 2px; color: var(--muted); font-size: 11px; }
.stat-orange { background: linear-gradient(135deg, #fffaf6, var(--orange-100)); border-color: #ffd2b1; }.stat-orange .dashboard-stat-icon,.stat-orange .admin-stat-icon { color: var(--orange-600); background: #fff3e8; }
.stat-blue { background: linear-gradient(135deg, #fbfdff, var(--blue-100)); border-color: #cde4fa; }.stat-blue .dashboard-stat-icon,.stat-blue .admin-stat-icon { color: var(--blue-600); background: #e4f1ff; }
.stat-green { background: linear-gradient(135deg, #fbfffd, var(--green-100)); border-color: #ccebd9; }.stat-green .admin-stat-icon { color: var(--green-600); background: #e0f5e9; }
.stat-purple { background: linear-gradient(135deg, #fdfcff, var(--purple-100)); border-color: #ded2ff; }.stat-purple .admin-stat-icon { color: var(--purple-600); background: #ebe3ff; }
.quick-actions-card { padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.quick-actions-card h2 { margin-bottom: 10px; font-size: 14px; }
.quick-actions-card > a { padding: 8px 6px; display: flex; align-items: center; gap: 11px; color: var(--ink); border-radius: 11px; }
.quick-actions-card > a:hover { background: var(--soft); }
.quick-actions-card a span:last-child { display: grid; }
.quick-actions-card strong { font-size: 13px; }
.quick-actions-card small { color: var(--muted); font-size: 10px; }
.quick-action-icon { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; border-radius: 50%; }
.quick-action-icon.orange { color: var(--orange-600); background: var(--orange-100); }.quick-action-icon.blue { color: var(--blue-600); background: var(--blue-100); }.quick-action-icon.navy { color: var(--navy-800); background: #e8f0f6; }.quick-action-icon.green { color: var(--green-600); background: var(--green-100); }.quick-action-icon.purple { color: var(--purple-600); background: var(--purple-100); }
.dashboard-content-grid { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(420px, 1.3fr); gap: 24px; }
.dashboard-section-card, .admin-dashboard-card { min-width: 0; padding: 20px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.dashboard-card-heading { min-height: 42px; margin-bottom: 15px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.dashboard-card-heading > div { display: flex; align-items: center; gap: 10px; }
.dashboard-card-heading h2 { margin: 0; font-size: 17px; }
.dashboard-card-heading small { display: block; color: var(--muted); font-size: 10px; }
.dashboard-card-heading a { display: inline-flex; align-items: center; gap: 5px; color: var(--navy-800); font-size: 11px; font-weight: 800; white-space: nowrap; }
.heading-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 9px; }.heading-icon.orange { color: var(--orange-600); background: var(--orange-100); }.heading-icon.blue { color: var(--blue-600); background: var(--blue-100); }
.dashboard-empty-state { min-height: 165px; padding: 24px; display: grid; place-items: center; align-content: center; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: 14px; background: #fbfdfe; }
.dashboard-empty-state span { color: #aebcca; }.dashboard-empty-state strong { margin-top: 8px; color: var(--muted); font-size: 13px; }.dashboard-empty-state p { max-width: 430px; margin: 3px 0 0; font-size: 11px; }
.dashboard-empty-state.compact { min-height: 120px; border: 0; background: transparent; }
.material-list-item { padding: 14px 0; display: grid; grid-template-columns: 44px minmax(0,1fr) auto; align-items: center; gap: 13px; border-bottom: 1px solid var(--line); }.material-list-item:last-child { border-bottom: 0; }
.material-file-icon { width: 42px; height: 42px; display: grid; place-items: center; color: var(--orange-600); background: var(--orange-100); border-radius: 11px; }
.material-list-copy h3 { margin: 5px 0 2px; font-size: 14px; }.material-list-copy p { margin-bottom: 2px; color: var(--muted); font-size: 11px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: white; }
th, td { padding: 13px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--navy-800); background: var(--soft); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
td { font-size: 12px; }.dashboard-table-wrap { border: 0; }.dashboard-table-wrap table { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }.dashboard-table-wrap tr:last-child td { border-bottom: 0; }
.status-pending, .status-new { color: #9b5a05; background: #fff2dc; }.status-published, .status-resolved, .status-qualified { color: #117043; background: #e3f7ec; }.status-rejected { color: #a2291d; background: #ffe9e6; }.status-contacted { color: #155d8b; background: #e5f2ff; }
.empty-table-row td { padding: 0; }

/* Admin dashboard */
.admin-dashboard-heading { margin-bottom: 20px; display: grid; grid-template-columns: 1fr 470px; gap: 24px; align-items: start; }
.admin-dashboard-heading h1 { margin-bottom: 7px; font-size: clamp(31px, 3.1vw, 44px); }.admin-dashboard-heading p { max-width: 700px; color: var(--muted); font-size: 14px; }
.admin-quick-actions { padding: 18px; background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }.admin-quick-actions h2 { margin-bottom: 12px; font-size: 14px; }
.admin-action-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 9px; }.admin-action-grid a { min-height: 56px; padding: 9px; display: flex; align-items: center; gap: 9px; color: var(--ink); border: 1px solid var(--line); border-radius: 10px; font-size: 12px; }.admin-action-grid a:hover { border-color: var(--line-strong); box-shadow: var(--shadow-xs); }
.admin-stat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }.admin-stat-card { min-height: 100px; padding: 16px; }.admin-stat-card .admin-stat-icon { width: 48px; height: 48px; flex-basis: 48px; }.admin-stat-card strong { font-size: 25px; }.admin-stat-card span:not(.admin-stat-icon) { font-size: 12px; }
.admin-alert-strip { margin: 14px 0 20px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }.admin-alert-strip a { padding: 11px 14px; color: var(--muted); background: white; border: 1px solid var(--line); border-radius: 11px; font-size: 11px; }.admin-alert-strip strong { color: var(--orange-600); font-size: 16px; margin-right: 4px; }
.admin-dashboard-grid { display: grid; grid-template-columns: 1.25fr .95fr .95fr; gap: 16px; align-items: start; }.admin-dashboard-card { padding: 15px; }
.audit-list, .moderation-list, .enquiry-list { display: grid; }
.audit-row { padding: 10px 0; display: grid; grid-template-columns: 38px minmax(120px,1fr) minmax(130px,1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }.audit-row:last-child { border-bottom: 0; }.audit-row .avatar { width: 36px; height: 36px; flex-basis: 36px; }
.audit-user, .audit-action { min-width: 0; display: grid; }.audit-user strong, .audit-action strong { overflow: hidden; color: var(--navy-950); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.audit-user small, .audit-action small, .audit-row time { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.moderation-row { padding: 10px 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }.moderation-row:last-child { border-bottom: 0; }.moderation-type-icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; }.moderation-type-icon.blue { color: var(--blue-600); background: var(--blue-100); }.moderation-type-icon.orange { color: var(--orange-600); background: var(--orange-100); }.moderation-type-icon.purple { color: var(--purple-600); background: var(--purple-100); }
.moderation-row > div { min-width: 0; display: grid; }.moderation-row small { color: var(--muted); font-size: 8px; }.moderation-row strong { overflow: hidden; color: var(--navy-950); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }.moderation-row span { color: var(--muted); font-size: 8px; }
.enquiry-row { padding: 10px 0; display: grid; grid-template-columns: 38px minmax(0,1fr) auto; gap: 9px; align-items: center; border-bottom: 1px solid var(--line); }.enquiry-row:last-child { border-bottom: 0; }.enquiry-row .avatar { width: 36px; height: 36px; flex-basis: 36px; }.enquiry-row > div { min-width: 0; display: grid; }.enquiry-row strong { color: var(--navy-950); font-size: 10px; }.enquiry-row span:not(.avatar):not(.status) { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }.enquiry-row small { color: var(--muted); font-size: 8px; }.enquiry-summary { margin-top: 8px; padding-top: 10px; color: var(--muted); border-top: 1px solid var(--line); font-size: 10px; }.enquiry-summary strong { color: var(--orange-600); font-size: 14px; }

.stats { display: grid; grid-template-columns: repeat(5,1fr); gap: 14px; }.stat { padding: 20px; background: white; border: 1px solid var(--line); border-radius: 15px; }.stat strong { display: block; font-size: 30px; color: var(--navy-800); }
.pagination { display: flex; gap: 8px; align-items: center; justify-content: center; margin-top: 30px; }.pagination a,.pagination span { min-width: 38px; min-height: 38px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; }

.site-footer { position: relative; overflow: hidden; padding: 44px 0 22px; color: #ccdae5; background: linear-gradient(120deg, var(--navy-950), #0b385b); }
.site-footer::after { content: ''; position: absolute; right: -50px; bottom: -90px; width: 340px; height: 260px; opacity: .055; background: url('/images/drone-hero.svg') center/contain no-repeat; filter: grayscale(1); }
.footer-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.65fr repeat(4, .8fr); gap: 36px; }
.footer-brand { display: flex; gap: 16px; align-items: center; }.footer-brand img { width: 106px; height: 64px; object-fit: contain; }.footer-brand h3 { margin: 0 0 3px; color: white; font-size: 18px; }.footer-brand p { max-width: 220px; margin: 0; color: #cfdae4; font-size: 11px; }
.footer-motto { margin-top: 16px; font-size: 11px; }.footer-motto span { color: var(--orange-500); }
.site-footer h3 { margin-bottom: 12px; color: white; font-size: 13px; }.site-footer a { display: block; margin: 6px 0; color: #dce8f1; font-size: 11px; }.site-footer a:hover { color: #fff; }.site-footer p { color: #c0d0dc; font-size: 11px; }
.footer-bottom { position: relative; z-index: 2; margin-top: 30px; padding-top: 18px; color: #98adbd; border-top: 1px solid rgba(255,255,255,.13); font-size: 10px; }
.cookie-banner { position: fixed; z-index: 100; left: 20px; right: 20px; bottom: 20px; max-width: 900px; margin-inline: auto; padding: 18px; background: white; border: 1px solid var(--line); box-shadow: var(--shadow-md); border-radius: 18px; }.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; }

@media (max-width: 1240px) {
    .brand-copy small { display: none; }
    .brand-divider { margin-inline: 14px; }
    .header-navigation { gap: 16px; }
    .admin-dashboard-grid { grid-template-columns: 1fr 1fr; }
    .audit-card { grid-column: 1 / -1; }
}

@media (max-width: 1040px) {
    .header-menu-button { display: grid; margin-left: auto; }
    .header-row { min-height: 80px; flex-wrap: wrap; gap: 12px; padding-block: 10px; }
    .header-navigation { display: none; width: 100%; padding: 12px 0 4px; flex-direction: column; align-items: stretch; }
    .header-navigation.is-open { display: flex; }
    .main-nav, .auth-actions { width: 100%; justify-content: center; flex-wrap: wrap; }
    .panel-shell { grid-template-columns: 1fr; }
    .panel-sidebar-toggle { width: 100%; min-height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--navy-900); background: white; border: 1px solid var(--line); border-radius: 12px; font-weight: 800; cursor: pointer; }
    .panel-sidebar { display: none; position: static; }
    .panel-sidebar.is-open { display: block; }
    .dashboard-top-grid { grid-template-columns: repeat(2,1fr); }
    .quick-actions-card { grid-column: 1 / -1; }
    .dashboard-content-grid { grid-template-columns: 1fr; }
    .admin-dashboard-heading { grid-template-columns: 1fr; }
    .admin-stat-grid { grid-template-columns: repeat(2,1fr); }
    .footer-grid { grid-template-columns: repeat(2,1fr); }
    .footer-brand-column { grid-column: 1 / -1; }
    .hero-grid,.grid-3 { grid-template-columns: 1fr; }
    .trust-grid,.stats { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 720px) {
    .container, .container-wide, .container-panel { width: min(100% - 22px, 1180px); }
    .brand-logo { width: 70px; height: 42px; }.brand-divider { height: 38px; margin-inline: 9px; }.brand-copy strong { font-size: 18px; }
    .auth-actions .header-icon-button, .auth-actions .btn-admin { display: none; }
    .panel-section { padding-top: 18px; }
    .panel-hero { min-height: 0; padding: 25px 22px; }.panel-hero-drone { display: none; }.panel-hero h1 { font-size: 30px; }
    .dashboard-top-grid, .admin-stat-grid, .admin-alert-strip, .admin-action-grid, .admin-dashboard-grid, .grid-2, .form-grid, .stats { grid-template-columns: 1fr; }
    .quick-actions-card { grid-column: auto; }
    .dashboard-stat-card, .admin-stat-card { min-height: 105px; }
    .dashboard-content-grid { gap: 16px; }
    .dashboard-section-card, .admin-dashboard-card { padding: 14px; }
    .dashboard-card-heading { align-items: flex-start; }.dashboard-card-heading a { font-size: 10px; }
    .material-list-item { grid-template-columns: 42px minmax(0,1fr); }.material-list-item .btn { grid-column: 1 / -1; }
    .audit-row { grid-template-columns: 36px minmax(0,1fr) auto; }.audit-action { display: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }.footer-contact { grid-column: 1 / -1; }
    .section { padding: 52px 0; }.section-heading { align-items: start; flex-direction: column; }
    .hero-grid { padding-block: 48px; min-height: auto; }.hero h1 { font-size: 42px; }.trust-grid { grid-template-columns: 1fr; }
    .cookie-row { align-items: stretch; flex-direction: column; }
}

@media (max-width: 480px) {
    .brand-copy small, .brand-divider { display: none; }
    .main-nav { display: grid; grid-template-columns: repeat(2,1fr); }
    .main-nav a { justify-content: center; }
    .auth-actions { display: grid; grid-template-columns: 1fr 1fr; }.auth-actions form { display: contents; }.auth-actions .btn { width: 100%; }
    .dashboard-card-heading { flex-direction: column; }
    .footer-grid { grid-template-columns: 1fr; }.footer-contact { grid-column: auto; }
}
