:root {
  --admin-navy: #0e2139;
  --admin-navy-2: #132b49;
  --admin-blue: #2c64aa;
  --admin-blue-soft: #eaf2fd;
  --admin-gold: #d4a647;
  --admin-gold-soft: #fbf5e8;
  --admin-ink: #142033;
  --admin-muted: #718096;
  --admin-border: #e6ebf2;
  --admin-surface: #ffffff;
  --admin-bg: #f5f7fb;
  --admin-success: #1e9b6c;
  --admin-danger: #cf4d62;
  --admin-shadow: 0 18px 48px rgba(15, 35, 62, .08);
  --admin-shadow-lg: 0 28px 80px rgba(15, 35, 62, .14);
  --admin-radius: 22px;
  --admin-sidebar: 286px;
}

* { box-sizing: border-box; }
html { min-height: 100%; }
body { margin: 0; }
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }
button { border: 0; }
.ui-icon { display: block; flex: 0 0 auto; }

.admin-body {
  min-height: 100vh;
  background: var(--admin-bg);
  color: var(--admin-ink);
  font-family: 'Inter', sans-serif;
}

.admin-shell { min-height: 100vh; }
.admin-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: var(--admin-sidebar);
  color: #fff;
  background:
    radial-gradient(circle at 0 0, rgba(212, 166, 71, .15), transparent 28%),
    linear-gradient(180deg, #10243d 0%, #0c1c31 100%);
  box-shadow: 18px 0 55px rgba(12, 28, 49, .12);
  overflow: hidden;
}

.admin-sidebar::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .065;
  background-image:
    linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 64%);
}

.sidebar-brand {
  position: relative;
  z-index: 1;
  min-height: 106px;
  display: flex;
  align-items: center;
  padding: 22px 22px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-brand-link { display: flex; align-items: center; gap: 13px; min-width: 0; }
.sidebar-brand-link img { width: 56px; height: 56px; object-fit: contain; }
.admin-monogram {
  position: relative;
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border: 1px solid rgba(225, 189, 111, .72);
  border-radius: 50%;
  color: #e4bd68;
  font: 700 19px/1 'Cormorant Garamond', serif;
  letter-spacing: -3px;
  box-shadow: inset 0 0 0 4px rgba(228, 189, 104, .055);
}
.admin-monogram::before, .admin-monogram::after {
  content: '';
  position: absolute;
  background: currentColor;
  opacity: .32;
}
.admin-monogram::before { width: 36px; height: 1px; }
.admin-monogram::after { height: 36px; width: 1px; }
.admin-monogram span { position: relative; z-index: 1; }
.sidebar-brand-copy { min-width: 0; display: flex; flex-direction: column; }
.sidebar-brand-copy strong {
  color: #e5b657;
  font: 700 23px/1 'Cormorant Garamond', serif;
  letter-spacing: .04em;
  white-space: nowrap;
}
.sidebar-brand-copy small { margin-top: 6px; color: rgba(255,255,255,.72); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.sidebar-close { display: none; margin-left: auto; width: 38px; height: 38px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; font-size: 25px; cursor: pointer; }

.sidebar-scroll { position: relative; z-index: 1; flex: 1; overflow-y: auto; padding: 20px 15px 24px; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }
.sidebar-section-label { padding: 0 13px 10px; color: rgba(255,255,255,.4); font-size: 10px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; }
.sidebar-secondary-label { margin-top: 25px; }
.sidebar-nav { display: grid; gap: 5px; }
.sidebar-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 10px 13px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: rgba(255,255,255,.76);
  font-size: 13px;
  font-weight: 600;
  transition: .22s ease;
}
.sidebar-link::before {
  content: '';
  position: absolute;
  left: -15px;
  width: 3px;
  height: 24px;
  border-radius: 0 5px 5px 0;
  background: var(--admin-gold);
  transform: scaleY(0);
  transition: .22s ease;
}
.sidebar-link:hover { color: #fff; background: rgba(255,255,255,.065); transform: translateX(2px); }
.sidebar-link.active {
  color: #fff;
  border-color: rgba(255,255,255,.07);
  background: linear-gradient(135deg, rgba(52, 103, 168, .46), rgba(255,255,255,.075));
  box-shadow: 0 12px 24px rgba(0,0,0,.12);
}
.sidebar-link.active::before { transform: scaleY(1); }
.sidebar-link-icon { color: rgba(229,182,87,.95); }
.nav-badge { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; padding: 0 6px; border-radius: 999px; color: #132b49; background: #e5b657; font-size: 10px; font-weight: 800; }
.sidebar-support-card {
  margin-top: 28px;
  padding: 19px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.085), rgba(255,255,255,.035));
  box-shadow: 0 16px 30px rgba(0,0,0,.12);
}
.sidebar-support-card::after { content: ''; float: right; width: 90px; height: 90px; margin: -64px -48px -50px 0; border: 1px solid rgba(229,182,87,.22); border-radius: 50%; }
.support-kicker { display: block; margin-bottom: 9px; color: #e4bd68; font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.sidebar-support-card strong { display: block; font: 600 20px/1.15 'Cormorant Garamond', serif; }
.sidebar-support-card p { margin: 8px 0 14px; color: rgba(255,255,255,.58); font-size: 11px; line-height: 1.6; }
.sidebar-support-card a { display: inline-flex; align-items: center; gap: 7px; color: #fff; font-size: 11px; font-weight: 700; }
.sidebar-footer { position: relative; z-index: 1; display: flex; align-items: center; gap: 11px; min-height: 76px; padding: 13px 20px; border-top: 1px solid rgba(255,255,255,.08); background: rgba(3, 12, 23, .18); }
.sidebar-user-avatar, .profile-avatar {
  width: 40px; height: 40px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 13px;
  color: #163154; background: linear-gradient(135deg, #f2d394, #d8a344); font-size: 12px; font-weight: 800;
}
.sidebar-user-copy { min-width: 0; display: flex; flex-direction: column; }
.sidebar-user-copy strong { overflow: hidden; color: #fff; font-size: 12px; white-space: nowrap; text-overflow: ellipsis; }
.sidebar-user-copy small { margin-top: 3px; color: rgba(255,255,255,.46); font-size: 10px; }
.sidebar-overlay { display: none; }

.admin-main { min-height: 100vh; margin-left: var(--admin-sidebar); display: flex; flex-direction: column; }
.admin-topbar {
  position: sticky;
  top: 0;
  z-index: 35;
  min-height: 106px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 19px 32px;
  border-bottom: 1px solid rgba(225,230,239,.88);
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(18px);
}
.topbar-left, .topbar-actions { display: flex; align-items: center; }
.topbar-left { gap: 15px; }
.topbar-actions { gap: 14px; }
.mobile-menu-button { display: none; width: 44px; height: 44px; place-items: center; border-radius: 13px; color: var(--admin-navy); background: #eef3f9; cursor: pointer; }
.topbar-heading span, .welcome-kicker, .panel-eyebrow, .module-hero-copy > span {
  display: block;
  margin-bottom: 5px;
  color: #9a742d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.topbar-heading h1 { margin: 0; color: var(--admin-ink); font: 700 28px/1.1 'Cormorant Garamond', serif; }
.topbar-site-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; padding: 0 15px; border: 1px solid var(--admin-border); border-radius: 13px; color: #516176; background: #fff; font-size: 12px; font-weight: 700; transition: .2s ease; }
.topbar-site-link:hover { color: var(--admin-blue); border-color: #cbd9eb; box-shadow: 0 10px 24px rgba(15,35,62,.07); }
.admin-profile-menu { position: relative; }
.profile-trigger { min-height: 54px; display: flex; align-items: center; gap: 10px; padding: 6px 9px 6px 7px; border: 1px solid var(--admin-border); border-radius: 16px; color: var(--admin-ink); background: #fff; cursor: pointer; }
.profile-copy { min-width: 120px; display: flex; flex-direction: column; align-items: flex-start; }
.profile-copy strong { max-width: 150px; overflow: hidden; font-size: 11px; white-space: nowrap; text-overflow: ellipsis; }
.profile-copy small { margin-top: 3px; color: var(--admin-muted); font-size: 9px; }
.profile-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 265px;
  padding: 10px;
  border: 1px solid var(--admin-border);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--admin-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: .2s ease;
}
.admin-profile-menu.open .profile-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.profile-dropdown-head { display: flex; align-items: center; gap: 11px; padding: 7px; }
.profile-avatar.large { width: 46px; height: 46px; border-radius: 15px; }
.profile-dropdown-head div { min-width: 0; display: flex; flex-direction: column; }
.profile-dropdown-head strong { font-size: 12px; }
.profile-dropdown-head small { margin-top: 4px; overflow: hidden; color: var(--admin-muted); font-size: 9px; text-overflow: ellipsis; }
.profile-dropdown-divider { height: 1px; margin: 8px 3px; background: var(--admin-border); }
.profile-dropdown a, .profile-dropdown button { width: 100%; min-height: 42px; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; color: #536176; background: transparent; font-size: 11px; font-weight: 600; text-align: left; cursor: pointer; }
.profile-dropdown a:hover, .profile-dropdown button:hover { color: var(--admin-navy); background: #f3f6fa; }

.admin-content { flex: 1; padding: 30px 32px 40px; }
.admin-footer { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 32px; border-top: 1px solid var(--admin-border); color: #8794a7; background: rgba(255,255,255,.55); font-size: 10px; }
.admin-alert { margin-bottom: 22px; padding: 13px 16px; border-radius: 13px; font-size: 12px; font-weight: 600; }
.admin-alert.success { color: #137653; background: #e8f8f2; border: 1px solid #c7eddf; }

.dashboard-welcome {
  position: relative;
  min-height: 285px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  align-items: center;
  overflow: hidden;
  padding: 38px 42px;
  border-radius: 28px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(59,114,182,.68), transparent 34%),
    linear-gradient(135deg, #0d213a 0%, #173d68 100%);
  box-shadow: 0 28px 65px rgba(15,35,62,.18);
}
.dashboard-welcome::before { content: ''; position: absolute; inset: 0; opacity: .08; background-image: linear-gradient(rgba(255,255,255,.8) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.8) 1px, transparent 1px); background-size: 44px 44px; }
.welcome-copy { position: relative; z-index: 2; max-width: 630px; }
.welcome-kicker { color: #e7bd68; }
.welcome-copy h2 { margin: 0; font: 700 clamp(34px, 4vw, 54px)/.98 'Cormorant Garamond', serif; letter-spacing: -.02em; }
.welcome-copy p { max-width: 600px; margin: 17px 0 24px; color: rgba(255,255,255,.7); font-size: 13px; line-height: 1.8; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.admin-button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 17px; border-radius: 13px; font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.admin-button.primary { color: #163154; background: linear-gradient(135deg, #f0d18b, #d4a647); box-shadow: 0 12px 25px rgba(212,166,71,.22); }
.admin-button.primary:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 16px 30px rgba(212,166,71,.3); }
.admin-button.secondary { color: #243a58; border: 1px solid var(--admin-border); background: #fff; }
.dashboard-welcome .admin-button.secondary { color: #fff; border-color: rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.admin-button.secondary:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(15,35,62,.09); }
.admin-button:disabled { cursor: not-allowed; opacity: .55; }
.welcome-art { position: relative; z-index: 2; min-height: 240px; }
.art-orbit { position: absolute; border: 1px solid rgba(231,189,104,.28); border-radius: 50%; }
.orbit-a { width: 220px; height: 220px; right: 72px; top: 8px; }
.orbit-b { width: 155px; height: 155px; right: 104px; top: 40px; border-style: dashed; }
.art-core { position: absolute; right: 137px; top: 74px; width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(231,189,104,.65); border-radius: 50%; color: #e8bd67; background: rgba(9,28,50,.45); font: 700 30px/1 'Cormorant Garamond', serif; letter-spacing: -5px; box-shadow: 0 0 0 10px rgba(255,255,255,.025), 0 18px 40px rgba(0,0,0,.2); }
.art-pill { position: absolute; padding: 8px 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.8); background: rgba(255,255,255,.07); backdrop-filter: blur(10px); font-size: 9px; font-weight: 700; letter-spacing: .05em; }
.pill-one { top: 26px; right: 10px; }
.pill-two { bottom: 26px; right: 70px; }
.pill-three { top: 116px; right: 250px; }

.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin: 22px 0; }
.stat-card { min-height: 177px; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--admin-border); border-radius: 20px; background: #fff; box-shadow: 0 12px 32px rgba(15,35,62,.055); transition: .2s ease; }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--admin-shadow); }
.stat-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 17px; }
.stat-icon { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; }
.stat-icon.blue { color: #2c64aa; background: #eaf2fd; }
.stat-icon.gold { color: #a87920; background: #fbf5e8; }
.stat-icon.violet { color: #7c5ac7; background: #f1edfb; }
.stat-icon.green { color: #18835c; background: #e7f7f1; }
.stat-status-dot { width: 8px; height: 8px; border-radius: 50%; background: #30ad7b; box-shadow: 0 0 0 5px rgba(48,173,123,.1); }
.stat-value { font: 700 32px/1 'Cormorant Garamond', serif; color: #16243a; }
.stat-label { margin-top: 8px; font-size: 12px; font-weight: 700; }
.stat-card small { margin-top: 5px; color: var(--admin-muted); font-size: 9px; }

.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(305px, .74fr); gap: 20px; }
.dashboard-panel { border: 1px solid var(--admin-border); border-radius: 22px; background: #fff; box-shadow: 0 12px 32px rgba(15,35,62,.045); }
.management-panel { padding: 24px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.panel-heading h3 { margin: 0; color: #17263c; font: 700 24px/1.15 'Cormorant Garamond', serif; }
.panel-heading > a { display: inline-flex; align-items: center; gap: 6px; color: var(--admin-blue); font-size: 10px; font-weight: 800; }
.panel-heading.compact { margin-bottom: 17px; }
.panel-heading.compact h3 { font-size: 21px; }
.module-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.module-card { min-height: 116px; display: grid; grid-template-columns: 45px minmax(0,1fr) 24px; align-items: center; gap: 13px; padding: 16px; border: 1px solid #e8edf4; border-radius: 17px; background: linear-gradient(145deg, #fff, #fafbfd); transition: .2s ease; }
.module-card:hover { border-color: #cbd9eb; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,35,62,.07); }
.module-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 13px; color: #a87920; background: #fbf5e8; }
.module-card strong { display: block; color: #1b2a40; font-size: 11px; }
.module-card p { margin: 5px 0 0; color: var(--admin-muted); font-size: 9px; line-height: 1.55; }
.module-arrow { color: #a8b2c1; transition: .2s ease; }
.module-card:hover .module-arrow { color: var(--admin-blue); transform: translateX(3px); }
.dashboard-side-stack { display: grid; gap: 20px; align-content: start; }
.system-panel, .activity-panel { padding: 22px; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; padding: 7px 9px; border-radius: 999px; color: #167854; background: #e7f7f1; font-size: 9px; font-weight: 800; }
.live-badge i, .health-list strong i { width: 6px; height: 6px; border-radius: 50%; background: #26a875; }
.health-score { display: flex; align-items: center; gap: 15px; padding: 18px 0 19px; border-top: 1px solid #edf1f6; border-bottom: 1px solid #edf1f6; }
.health-ring { width: 74px; height: 74px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: conic-gradient(#27a978 100%, #edf1f6 0); position: relative; }
.health-ring::after { content: ''; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.health-ring span { position: relative; z-index: 1; color: #1d8d66; font: 700 22px/1 'Cormorant Garamond', serif; }
.health-ring small { font: 700 10px/1 'Inter', sans-serif; }
.health-score strong { font-size: 11px; }
.health-score p { margin: 5px 0 0; color: var(--admin-muted); font-size: 9px; line-height: 1.5; }
.health-list { display: grid; gap: 10px; margin-top: 17px; }
.health-list > div { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #5f6d80; font-size: 9px; }
.health-list strong { display: inline-flex; align-items: center; gap: 6px; color: #16825b; font-size: 9px; }
.health-list strong.neutral { color: #a87920; }
.activity-icon { width: 37px; height: 37px; display: grid; place-items: center; border-radius: 12px; color: var(--admin-blue); background: #eaf2fd; }
.access-entry { display: flex; gap: 12px; padding-top: 18px; border-top: 1px solid #edf1f6; }
.access-avatar { width: 43px; height: 43px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 14px; color: #193454; background: linear-gradient(135deg, #f0d08c, #d5a548); font-size: 11px; font-weight: 800; }
.access-entry strong { display: block; font-size: 10px; }
.access-entry p { margin: 5px 0 2px; color: var(--admin-muted); font-size: 9px; }
.access-entry small { color: #a1acba; font-size: 8px; }

.module-hero { min-height: 180px; display: flex; align-items: center; gap: 21px; padding: 28px 31px; border-radius: 25px; color: #fff; background: radial-gradient(circle at 85% 25%, rgba(67,125,194,.55), transparent 28%), linear-gradient(135deg, #0e223b, #183d67); box-shadow: 0 24px 54px rgba(15,35,62,.16); }
.module-hero-icon { width: 68px; height: 68px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(229,182,87,.28); border-radius: 20px; color: #e5b657; background: rgba(255,255,255,.075); }
.module-hero-copy { min-width: 0; flex: 1; }
.module-hero-copy > span { color: #e5b657; }
.module-hero-copy h2 { margin: 0; font: 700 35px/1 'Cormorant Garamond', serif; }
.module-hero-copy p { max-width: 690px; margin: 10px 0 0; color: rgba(255,255,255,.7); font-size: 11px; line-height: 1.7; }
.module-primary-action { margin-left: auto; }
.module-coming-soon { margin-top: 22px; padding: 45px 30px; text-align: center; }
.coming-soon-visual { position: relative; width: 126px; height: 126px; display: grid; place-items: center; margin: 0 auto 24px; }
.coming-soon-ring { position: absolute; border: 1px solid #d7e3f1; border-radius: 50%; }
.coming-soon-ring.ring-one { inset: 0; }
.coming-soon-ring.ring-two { inset: 16px; border-style: dashed; }
.coming-soon-icon { position: relative; z-index: 1; width: 70px; height: 70px; display: grid; place-items: center; border-radius: 22px; color: #a87920; background: #fbf5e8; box-shadow: 0 12px 30px rgba(168,121,32,.1); }
.module-coming-soon h3 { margin: 0; color: #17263c; font: 700 29px/1.15 'Cormorant Garamond', serif; }
.module-coming-soon > p { max-width: 710px; margin: 13px auto 23px; color: var(--admin-muted); font-size: 11px; line-height: 1.8; }
.coming-soon-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-bottom: 25px; }
.coming-soon-steps span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--admin-border); border-radius: 999px; color: #5d6b7e; font-size: 9px; font-weight: 700; }
.coming-soon-steps i { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--admin-blue); font-style: normal; font-size: 8px; }

.admin-login-body { min-height: 100vh; background: #f5f7fb; font-family: 'Inter', sans-serif; color: var(--admin-ink); }
.login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(450px, .94fr) minmax(500px, 1.06fr); }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; overflow: hidden; padding: 42px 50px 34px; color: #fff; background: radial-gradient(circle at 25% 20%, rgba(58,118,190,.46), transparent 27%), linear-gradient(150deg, #0c1d33 0%, #153b65 100%); }
.login-grid-pattern { position: absolute; inset: 0; opacity: .07; background-image: linear-gradient(rgba(255,255,255,.9) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.9) 1px, transparent 1px); background-size: 50px 50px; mask-image: linear-gradient(black 0%, transparent 90%); }
.login-orbit { position: absolute; border: 1px solid rgba(227,183,88,.22); border-radius: 50%; }
.orbit-one { width: 430px; height: 430px; right: -190px; top: 19%; }
.orbit-two { width: 260px; height: 260px; right: -95px; top: 31%; border-style: dashed; }
.login-brand { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 14px; align-self: flex-start; }
.login-brand img { width: 62px; height: 62px; object-fit: contain; }
.login-monogram { width: 60px; height: 60px; font-size: 21px; }
.login-brand > span:last-child { display: flex; flex-direction: column; }
.login-brand strong { color: #e5b657; font: 700 27px/1 'Cormorant Garamond', serif; letter-spacing: .04em; }
.login-brand small { margin-top: 6px; color: rgba(255,255,255,.72); font: 500 13px/1.2 'Cormorant Garamond', serif; }
.login-visual-copy { position: relative; z-index: 2; max-width: 610px; margin: auto 0; }
.login-kicker { display: block; margin-bottom: 16px; color: #e5b657; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; }
.login-visual-copy h1 { margin: 0; font: 700 clamp(43px, 5vw, 70px)/.96 'Cormorant Garamond', serif; letter-spacing: -.025em; }
.login-visual-copy h1 em { color: #e6bc66; font-weight: 600; }
.login-visual-copy > p { max-width: 570px; margin: 22px 0 26px; color: rgba(255,255,255,.68); font-size: 13px; line-height: 1.85; }
.login-trust-row { display: flex; flex-wrap: wrap; gap: 9px; }
.login-trust-row > span { display: inline-flex; align-items: center; gap: 7px; padding: 9px 11px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.055); font-size: 9px; font-weight: 600; }
.login-trust-row i { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 50%; color: #163557; background: #e5b657; font-style: normal; }
.login-visual-footer { position: relative; z-index: 2; display: flex; justify-content: space-between; color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .04em; }
.login-form-section { min-height: 100vh; display: grid; place-items: center; padding: 42px; background: radial-gradient(circle at 100% 0, #e9f0fa 0, transparent 30%), #f8fafc; }
.login-form-wrap { width: min(100%, 460px); }
.login-back-link { display: inline-flex; margin-bottom: 46px; color: #68788e; font-size: 10px; font-weight: 700; }
.login-back-link:hover { color: var(--admin-blue); }
.login-form-heading > span { color: #9a742d; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.login-form-heading h2 { margin: 8px 0 8px; color: #15243a; font: 700 42px/1 'Cormorant Garamond', serif; }
.login-form-heading p { margin: 0; color: var(--admin-muted); font-size: 11px; }
.login-alert { margin-top: 22px; padding: 12px 14px; border-radius: 12px; font-size: 10px; font-weight: 700; }
.login-alert.error { color: #a9364a; border: 1px solid #f0c9d0; background: #fff0f3; }
.login-alert.success { color: #177956; border: 1px solid #c7eddf; background: #e9f9f3; }
.admin-login-form { margin-top: 29px; }
.admin-field { display: block; margin-bottom: 18px; }
.admin-field > span { display: block; margin-bottom: 8px; color: #40516a; font-size: 10px; font-weight: 700; }
.field-control { min-height: 55px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border: 1px solid #dfe6ef; border-radius: 15px; color: #9aa6b7; background: #fff; box-shadow: 0 8px 22px rgba(15,35,62,.035); transition: .2s ease; }
.field-control:focus-within { color: var(--admin-blue); border-color: #9ab5d8; box-shadow: 0 0 0 4px rgba(44,100,170,.08); }
.field-control input { min-width: 0; flex: 1; border: 0; outline: 0; color: var(--admin-ink); background: transparent; font-size: 11px; }
.field-control input::placeholder { color: #b2bcc9; }
.password-toggle { padding: 6px; color: var(--admin-blue); background: transparent; font-size: 9px; font-weight: 800; cursor: pointer; }
.login-options { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 2px 0 22px; }
.remember-control { position: relative; display: inline-flex; align-items: center; gap: 8px; color: #607087; font-size: 9px; cursor: pointer; }
.remember-control input { position: absolute; opacity: 0; }
.custom-checkbox { width: 18px; height: 18px; border: 1px solid #ccd7e5; border-radius: 6px; background: #fff; transition: .2s ease; }
.remember-control input:checked + .custom-checkbox { border-color: var(--admin-blue); background: var(--admin-blue); box-shadow: inset 0 0 0 4px var(--admin-blue); }
.remember-control input:checked + .custom-checkbox::after { content: '✓'; display: grid; place-items: center; height: 100%; color: #fff; font-size: 11px; }
.secure-note { color: #9aa6b6; font-size: 9px; }
.login-submit { width: 100%; min-height: 55px; display: flex; align-items: center; justify-content: center; gap: 10px; border-radius: 15px; color: #fff; background: linear-gradient(135deg, #14345a, #2c64aa); box-shadow: 0 16px 30px rgba(35,83,143,.22); font-size: 11px; font-weight: 800; cursor: pointer; transition: .2s ease; }
.login-submit:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(35,83,143,.28); }
.login-help { margin-top: 26px; padding: 16px 18px; border: 1px solid #e3e8f0; border-radius: 15px; background: rgba(255,255,255,.72); }
.login-help strong { font-size: 10px; }
.login-help p { margin: 4px 0 0; color: var(--admin-muted); font-size: 9px; }

@media (max-width: 1180px) {
  :root { --admin-sidebar: 260px; }
  .stats-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .dashboard-grid { grid-template-columns: 1fr; }
  .dashboard-side-stack { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .profile-copy { display: none; }
  .login-visual { padding-inline: 38px; }
}

@media (max-width: 940px) {
  .admin-sidebar { transform: translateX(-102%); transition: transform .25s ease; }
  .admin-body.sidebar-open .admin-sidebar { transform: translateX(0); }
  .sidebar-close { display: block; }
  .sidebar-overlay { position: fixed; inset: 0; z-index: 45; display: block; visibility: hidden; opacity: 0; background: rgba(4,13,24,.52); backdrop-filter: blur(3px); transition: .25s ease; }
  .admin-body.sidebar-open .sidebar-overlay { visibility: visible; opacity: 1; }
  .admin-main { margin-left: 0; }
  .mobile-menu-button { display: grid; }
  .login-shell { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form-section { min-height: 100vh; }
}

@media (max-width: 760px) {
  .admin-topbar { min-height: 86px; padding: 14px 18px; }
  .topbar-site-link span, .profile-copy { display: none; }
  .topbar-site-link { width: 44px; padding: 0; justify-content: center; }
  .profile-trigger { min-height: 44px; padding: 3px 6px; }
  .profile-avatar { width: 35px; height: 35px; border-radius: 11px; }
  .profile-trigger > .ui-icon { display: none; }
  .admin-content { padding: 20px 18px 30px; }
  .admin-footer { padding: 0 18px; flex-direction: column; justify-content: center; gap: 4px; text-align: center; }
  .dashboard-welcome { min-height: auto; grid-template-columns: 1fr; padding: 30px 25px; }
  .welcome-art { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-card { min-height: 160px; padding: 17px; }
  .module-grid { grid-template-columns: 1fr; }
  .dashboard-side-stack { grid-template-columns: 1fr; }
  .module-hero { align-items: flex-start; flex-wrap: wrap; padding: 25px; }
  .module-primary-action { margin-left: 0; }
  .login-form-section { padding: 28px 20px; }
  .login-back-link { margin-bottom: 35px; }
}

@media (max-width: 500px) {
  .topbar-heading span { display: none; }
  .topbar-heading h1 { font-size: 23px; }
  .stats-grid { grid-template-columns: 1fr; }
  .panel-heading { align-items: flex-start; }
  .panel-heading > a { display: none; }
  .management-panel, .system-panel, .activity-panel { padding: 18px; }
  .profile-dropdown { position: fixed; top: 76px; right: 14px; left: 14px; width: auto; }
  .login-form-heading h2 { font-size: 35px; }
  .login-options { align-items: flex-start; flex-direction: column; }
  .module-coming-soon { padding: 35px 18px; }
  .coming-soon-steps { align-items: stretch; flex-direction: column; }
}
.admin-alert.error{color:#913444;background:#fff0f2;border:1px solid #efc6cc}.admin-alert:not(.success):not(.error){color:#24527d;background:#eef5fd;border:1px solid #cfe0f2}.admin-alert ul{margin:7px 0 0;padding-left:18px}

/* Administrator photograph support */
.admin-avatar{display:grid;place-items:center;overflow:hidden}.admin-avatar>img{width:100%;height:100%;object-fit:cover}.admin-avatar>span{display:grid;place-items:center;width:100%;height:100%}
