:root {
  --navy: #071c2c;
  --navy-2: #0d2a3d;
  --green: #16a36a;
  --green-soft: #e5f7ed;
  --ink: #13232e;
  --muted: #6d7b84;
  --paper: #f3f6f4;
  --line: #dfe6e2;
  --white: #fff;
  --red: #c44952;
  --amber: #c98924;
  --blue: #3277c8;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(5, 28, 43, .08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

.brand-mark { position: relative; display: grid; width: 44px; height: 44px; place-items: center; overflow: hidden; border-radius: 13px 4px 13px 4px; color: #fff; background: var(--navy); font-family: Georgia, serif; font-size: 24px; }
.brand-mark::after { content: ""; position: absolute; width: 28px; height: 28px; right: -14px; top: -14px; border-radius: 50%; background: #2ed48a; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.08fr .92fr; background: #fff; }
.login-visual { position: relative; min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 46px 6vw 70px; color: #fff; background: linear-gradient(90deg, rgba(4,21,33,.94), rgba(4,21,33,.56)), linear-gradient(0deg, rgba(4,21,33,.55), transparent), url('/assets/sylora-hero.jpg') 58% center/cover no-repeat; }
.login-visual::after { content: ""; position: absolute; inset: 0; opacity: .15; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 65px 65px; }
.login-brand, .login-message { position: relative; z-index: 1; }
.login-brand { display: flex; align-items: center; gap: 13px; letter-spacing: .2em; }
.login-brand .brand-mark { border: 1px solid rgba(255,255,255,.3); background: rgba(255,255,255,.08); }
.login-message { max-width: 650px; }
.login-message > span, .login-kicker { color: #54dc9d; font-size: 10px; font-weight: 900; letter-spacing: .19em; text-transform: uppercase; }
.login-message h1 { margin: 16px 0 22px; font-family: Georgia, serif; font-size: clamp(52px, 6vw, 84px); font-weight: 400; line-height: .98; letter-spacing: -.04em; }
.login-message p { max-width: 560px; color: rgba(255,255,255,.7); font-size: 18px; line-height: 1.7; }
.login-panel { display: grid; place-items: center; padding: 50px; }
.login-card { width: min(420px, 100%); }
.login-card h2 { margin: 8px 0 7px; font-family: Georgia, serif; font-size: 44px; font-weight: 400; }
.login-card > p { margin: 0 0 34px; color: var(--muted); }
.login-card label { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.login-card input { width: 100%; min-height: 54px; border: 1px solid var(--line); border-radius: 11px; outline: none; padding: 0 15px; background: #fafbf9; }
.login-card input:focus { border-color: var(--green); box-shadow: 0 0 0 4px rgba(22,163,106,.1); }
.btn { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 11px; border: 0; border-radius: 11px; padding: 0 19px; color: #fff; background: var(--green); font-size: 12px; font-weight: 850; cursor: pointer; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 9px 24px rgba(22,163,106,.22); }
.login-card .btn { width: 100%; margin-top: 14px; }
.btn.secondary { min-height: 42px; color: var(--ink); border: 1px solid var(--line); background: #fff; }
.btn.secondary:hover { box-shadow: 0 8px 20px rgba(5,28,43,.08); }
.error { min-height: 24px; margin: 10px 0 !important; color: var(--red) !important; font-size: 12px; font-weight: 700; text-align: center; }
.back-link { display: block; margin-top: 25px; color: var(--muted); font-size: 12px; text-align: center; }

.dashboard { min-height: 100vh; display: grid; grid-template-columns: 240px 1fr; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 28px 20px; color: rgba(255,255,255,.72); background: var(--navy); }
.side-brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 28px; color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.side-brand .brand-mark { border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.08); }
.side-brand strong { display: block; font-size: 14px; letter-spacing: .17em; }
.side-brand small { display: block; margin-top: 3px; color: rgba(255,255,255,.45); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.sidebar nav { display: grid; gap: 7px; margin-top: 28px; }
.sidebar nav a { display: flex; align-items: center; gap: 12px; border-radius: 10px; padding: 12px 13px; font-size: 12px; font-weight: 750; }
.sidebar nav a span { display: grid; width: 24px; place-items: center; font-size: 17px; }
.sidebar nav a:hover, .sidebar nav a.active { color: #fff; background: rgba(255,255,255,.1); }
.side-foot { margin-top: auto; padding: 18px 12px 0; border-top: 1px solid rgba(255,255,255,.1); }
.side-foot > span { display: block; color: rgba(255,255,255,.38); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.side-foot strong { display: flex; align-items: center; gap: 8px; margin-top: 7px; color: #fff; font-size: 11px; }
.side-foot i { width: 7px; height: 7px; border-radius: 50%; background: #45db98; box-shadow: 0 0 0 4px rgba(69,219,152,.1); }
.side-foot button { margin-top: 23px; border: 0; padding: 0; color: rgba(255,255,255,.54); background: transparent; font-size: 11px; cursor: pointer; }

.workspace { min-width: 0; }
.dash-header { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px clamp(24px, 4vw, 58px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.82); backdrop-filter: blur(14px); }
.dash-header p { margin: 0; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.dash-header h1 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 29px; font-weight: 400; }
.header-actions { display: flex; align-items: center; gap: 16px; }
.header-actions > span { color: var(--muted); font-size: 10px; }
.workspace main { padding: 40px clamp(24px, 4vw, 58px) 80px; }
.section-title-row { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 22px; }
.section-title-row span { color: var(--green); font-size: 9px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }
.section-title-row h2 { margin: 5px 0 0; font-family: Georgia, serif; font-size: 30px; font-weight: 400; }
.section-title-row > p { margin: 0 0 5px; color: var(--muted); font-size: 10px; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { position: relative; min-height: 145px; padding: 21px 22px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 22px rgba(5,28,43,.035); }
.stat::after { content: ""; position: absolute; right: -25px; bottom: -38px; width: 100px; height: 100px; border-radius: 50%; background: var(--tint, var(--green-soft)); }
.stat-label { color: var(--muted); font-size: 10px; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; }
.stat-value { display: block; margin-top: 12px; font-family: Georgia, serif; font-size: 40px; font-weight: 400; line-height: 1; }
.stat-meta { display: flex; align-items: center; gap: 6px; margin-top: 15px; color: var(--muted); font-size: 9px; }
.stat-meta b { color: var(--green); }
.stat-icon { position: absolute; z-index: 1; right: 20px; bottom: 17px; font-size: 20px; }

.analytics-grid { display: grid; grid-template-columns: 1.35fr .65fr; gap: 16px; margin-top: 16px; }
.panel { min-width: 0; min-height: 330px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 6px 22px rgba(5,28,43,.035); }
.panel-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.panel-head span { color: var(--green); font-size: 8px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.panel-head h3 { margin: 4px 0 0; font-family: Georgia, serif; font-size: 22px; font-weight: 400; }
.panel-head > strong { border-radius: 999px; padding: 7px 10px; color: var(--green); background: var(--green-soft); font-size: 9px; }
.trend-wrap { height: 225px; }
.trend-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-grid { stroke: #e7ece9; stroke-width: 1; }
.chart-area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: #fff; stroke: var(--green); stroke-width: 2; }
.chart-label { fill: #8a959c; font-size: 9px; }
.bar-chart { display: grid; gap: 16px; }
.bar-row { display: grid; grid-template-columns: 82px 1fr 24px; align-items: center; gap: 10px; }
.bar-row label { color: var(--muted); font-size: 10px; text-transform: capitalize; }
.bar-track { height: 8px; overflow: hidden; border-radius: 999px; background: #edf1ef; }
.bar-fill { height: 100%; min-width: 0; border-radius: inherit; background: var(--bar, var(--green)); transition: width .6s ease; }
.bar-row b { font-family: Georgia, serif; font-size: 15px; font-weight: 400; text-align: right; }
.service-bars .bar-row { grid-template-columns: minmax(115px, 1.1fr) 1fr 24px; }
.service-bars .bar-row label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.insights { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.insights li { position: relative; min-height: 55px; padding: 11px 12px 11px 39px; border-radius: 12px; color: #44525b; background: #f6f8f7; font-size: 11px; line-height: 1.5; }
.insights li::before { content: "→"; position: absolute; left: 13px; top: 11px; display: grid; width: 18px; height: 18px; place-items: center; border-radius: 50%; color: #fff; background: var(--green); font-size: 9px; }
.insights strong { color: var(--ink); }

.inquiries-section { padding-top: 64px; }
.search { min-width: min(320px, 45vw); display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 0 12px; background: #fff; }
.search span { color: var(--muted); font-size: 18px; }
.search input { width: 100%; min-height: 40px; border: 0; outline: 0; background: transparent; font-size: 11px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.chip { min-height: 35px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 999px; padding: 0 13px; color: var(--muted); background: #fff; font-size: 10px; font-weight: 750; cursor: pointer; }
.chip b { display: grid; min-width: 20px; height: 20px; place-items: center; border-radius: 999px; color: #526069; background: #eef2f0; font-size: 9px; }
.chip:hover, .chip.active { color: #fff; border-color: var(--navy); background: var(--navy); }
.chip.active b { color: var(--navy); background: #fff; }
.list { display: grid; gap: 12px; }
.item { position: relative; padding: 22px; border: 1px solid var(--line); border-radius: 15px; background: #fff; box-shadow: 0 5px 18px rgba(5,28,43,.025); }
.item.new { border-left: 4px solid var(--green); }
.item-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.item h3 { margin: 0; font-family: Georgia, serif; font-size: 20px; font-weight: 400; }
.badge { border-radius: 999px; padding: 6px 9px; font-size: 8px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; }
.badge.new { color: #08774c; background: #dcf5e8; }
.badge.contacted { color: #2e6daa; background: #e3effa; }
.badge.in-progress { color: #966315; background: #fbefd7; }
.badge.completed { color: #4b6577; background: #e8eef2; }
.badge.archived { color: #70777b; background: #eef0ef; }
.meta { margin-top: 6px; color: #8a969c; font-size: 9px; }
.contact-line { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 14px; }
.contact-line a { color: var(--green); font-size: 10px; font-weight: 750; }
.msg { margin-top: 15px; border-radius: 10px; padding: 14px 15px; color: #44525a; background: #f5f7f6; font-size: 12px; line-height: 1.6; }
.actions { display: grid; grid-template-columns: 150px 1fr auto; gap: 10px; margin-top: 14px; }
.actions select, .actions input { min-height: 39px; border: 1px solid var(--line); border-radius: 9px; outline: 0; padding: 0 11px; background: #fff; font-size: 10px; }
.actions select:focus, .actions input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(22,163,106,.08); }
.actions .btn { min-height: 39px; border-radius: 9px; }
.notes { margin: 14px 0 0; padding: 13px 15px 13px 30px; border-top: 1px dashed var(--line); color: #5d6970; font-size: 10px; }
.notes li { margin: 5px 0; }
.empty { margin: 0; border: 1px dashed #cfd8d3; border-radius: 15px; padding: 55px 25px; color: var(--muted); background: rgba(255,255,255,.55); text-align: center; }

@media (max-width: 1080px) {
  .dashboard { grid-template-columns: 80px 1fr; }
  .sidebar { padding-inline: 13px; }
  .side-brand { justify-content: center; padding-inline: 0; }
  .side-brand > span:last-child, .sidebar nav a:not(.active) { font-size: 0; }
  .sidebar nav a { justify-content: center; padding: 12px 4px; }
  .sidebar nav a span { font-size: 17px; }
  .side-foot > span, .side-foot strong, .side-foot button { font-size: 0; }
  .side-foot strong { justify-content: center; }
  .side-foot button::after { content: "↪"; font-size: 17px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .analytics-grid { grid-template-columns: 1fr; }
  .panel { min-height: 0; }
}

@media (max-width: 720px) {
  .login-view { grid-template-columns: 1fr; }
  .login-visual { min-height: 43vh; padding: 28px 24px 35px; }
  .login-message h1 { font-size: 50px; }
  .login-message p { display: none; }
  .login-panel { padding: 42px 24px; }
  .dashboard { display: block; }
  .sidebar { position: static; width: 100%; height: auto; display: flex; flex-direction: row; align-items: center; padding: 12px 16px; }
  .side-brand { padding: 0; border: 0; }
  .side-brand > span:last-child { display: none; }
  .sidebar nav { margin: 0 0 0 auto; display: flex; }
  .sidebar nav a { font-size: 0; }
  .side-foot { margin: 0 0 0 5px; padding: 0; border: 0; }
  .side-foot > span, .side-foot strong { display: none; }
  .side-foot button { margin: 0; font-size: 0; }
  .dash-header { min-height: 92px; padding: 18px 18px; }
  .dash-header h1 { font-size: 24px; }
  .header-actions > span { display: none; }
  .btn.secondary { padding: 0 13px; font-size: 0; }
  .btn.secondary::first-letter { font-size: 16px; }
  .workspace main { padding: 30px 16px 60px; }
  .section-title-row { align-items: start; flex-direction: column; gap: 15px; }
  .section-title-row > p { display: none; }
  .search { min-width: 100%; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat { min-height: 132px; padding: 18px; }
  .stat-value { font-size: 35px; }
  .analytics-grid { gap: 10px; }
  .panel { padding: 20px 16px; }
  .trend-panel { overflow: hidden; }
  .service-bars .bar-row { grid-template-columns: 100px 1fr 20px; }
  .actions { grid-template-columns: 1fr; }
  .item-head { align-items: start; }
}
