:root {
  --navy: #081B30;
  --navy-light: #123253;
  --navy-soft: #1C3A5E;
  --blue: #0E7C86;
  --blue-dark: #095A62;
  --lightblue: #EEF4F3;
  --grey: #5C6B76;
  --grey-light: #8A97A0;
  --red: #B3392C;
  --red-tint: #FBEAE8;
  --green: #1D7A44;
  --green-tint: #E8F5EC;
  --amber: #A9762F;
  --amber-tint: #FAF1E3;
  --brass: #A6803F;
  --border: #E3E8EA;
  --bg: #F4F6F7;
  --shadow-sm: 0 1px 2px rgba(8,27,48,.05);
  --shadow-md: 0 6px 16px rgba(8,27,48,.06), 0 2px 4px rgba(8,27,48,.04);
  --shadow-lg: 0 20px 45px rgba(8,27,48,.14);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, "Segoe UI", Roboto, Calibri, sans-serif;
  background: var(--bg);
  color: #1B2530;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .hc-title, .login-box h1 {
  font-family: 'Poppins', -apple-system, "Segoe UI", sans-serif;
  letter-spacing: -.01em;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

svg { flex-shrink: 0; }

.topbar {
  background: var(--navy);
  color: #fff;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-sm);
}
.topbar .brand { font-weight: 600; letter-spacing: .06em; font-size: 15px; text-transform: uppercase; }
.topbar a { color: #B9CBD6; font-size: 13.5px; transition: color .15s; }
.topbar a:hover { color: #fff; text-decoration: none; }

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat .label { color: var(--grey); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.stat .value { color: var(--navy); font-size: 23px; font-weight: 700; margin-top: 6px; font-family: 'Poppins', sans-serif; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
th, td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--border); }
th {
  background: #FAFBFC;
  color: var(--grey);
  font-weight: 600;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 2px solid var(--border);
}
tbody tr:nth-child(even) td { background: #FAFBFC; }
tbody tr:hover td { background: var(--lightblue); }

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
}
.badge-new { background: #EEF0F2; color: #5C6B76; }
.badge-progress { background: var(--lightblue); color: var(--blue-dark); }
.badge-sent { background: var(--amber-tint); color: var(--amber); }
.badge-won { background: var(--green-tint); color: var(--green); }
.badge-lost { background: var(--red-tint); color: var(--red); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background .15s, box-shadow .15s, transform .1s;
  font-family: inherit;
}
.btn:hover { background: var(--blue-dark); text-decoration: none; color: #fff; box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: #fff; color: var(--navy); border: 1px solid var(--border); box-shadow: none; }
.btn-secondary:hover { background: #FAFBFC; color: var(--navy); border-color: var(--grey-light); }
.btn-danger { background: var(--red); }
.btn-danger:hover { background: #8F291F; }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: 12.5px; color: var(--grey); font-weight: 600; letter-spacing: .01em; }
.form-group input, .form-group select, .form-group textarea {
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: inherit;
  color: #1B2530;
  transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(14,124,134,.12);
}
.form-group textarea { resize: vertical; }

h1, h2, h3 { color: var(--navy); font-weight: 600; }
h1 { font-size: 21px; }
h2 { font-size: 17px; border-bottom: 2px solid var(--navy); padding-bottom: 8px; margin-top: 30px; }

.section-title {
  background: var(--navy);
  color: #fff;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 26px 0 14px;
}

.pipeline-steps { display: flex; flex-direction: column; gap: 8px; }
.pipeline-step {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  transition: background .15s, border-color .15s;
}
.pipeline-step.done { background: var(--green-tint); border-color: #C7E4D2; }
.pipeline-step label { flex: 1; font-size: 13.5px; }
.pipeline-step input[type="date"] { padding: 7px 9px; border: 1px solid var(--border); border-radius: 6px; font-family: inherit; }

.progress-bar {
  height: 7px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.progress-bar > div { height: 100%; background: var(--blue); border-radius: 4px; }

.login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.05), transparent 45%),
    linear-gradient(150deg, var(--navy) 0%, var(--navy-soft) 60%, var(--blue-dark) 100%);
}
.login-box {
  background: #fff;
  padding: 44px 40px;
  border-radius: 16px;
  width: 360px;
  box-shadow: var(--shadow-lg);
}
.login-box h1 { text-align: center; margin-bottom: 2px; font-size: 24px; letter-spacing: .04em; }
.login-box .sub { text-align: center; color: var(--grey); font-size: 12.5px; margin-bottom: 28px; text-transform: uppercase; letter-spacing: .08em; }
.login-box .form-group { margin-bottom: 15px; }
.login-box .btn { width: 100%; justify-content: center; padding: 12px; font-size: 14.5px; margin-top: 10px; }
.error-msg { background: var(--red-tint); color: var(--red); padding: 11px 15px; border-radius: var(--radius-sm); font-size: 13.5px; margin-bottom: 16px; }

.filters { display: flex; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filters select, .filters input { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); font-family: inherit; font-size: 13.5px; }

.pnl-table td:last-child, .pnl-table th:last-child { text-align: right; }
.profit-positive { color: var(--green); font-weight: 700; }
.profit-negative { color: var(--red); font-weight: 700; }

.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 10px; }

/* --- Boat configurator --- */
.boat-block { border-left: 3px solid var(--blue); }
.extras-grid { display:grid; grid-template-columns:repeat(auto-fit, minmax(280px,1fr)); gap:2px 20px; }
.extra-row { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:7px 0; border-bottom:1px dashed var(--border); }
.extra-main { display:flex; align-items:center; gap:8px; font-weight:400; font-size:13px; flex:1; }
.extra-gift { display:flex; align-items:center; gap:5px; font-size:11.5px; color:var(--amber); font-weight:600; white-space:nowrap; }

/* --- Home cards --- */
.home-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.home-card {
  display: block;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
  color: #1B2530;
  border-top: 3px solid var(--blue);
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s;
  animation: cardIn .45s ease both;
}
.home-cards .home-card:nth-child(1) { animation-delay: .02s; }
.home-cards .home-card:nth-child(2) { animation-delay: .07s; }
.home-cards .home-card:nth-child(3) { animation-delay: .12s; }
.home-cards .home-card:nth-child(4) { animation-delay: .17s; }
.home-cards .home-card:nth-child(5) { animation-delay: .22s; }
@keyframes cardIn { from { opacity:0; transform:translateY(10px);} to { opacity:1; transform:translateY(0);} }
.home-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); text-decoration: none; color: #1B2530; }

.home-card .hc-icon {
  width: 46px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--lightblue);
  color: var(--blue-dark);
  margin-bottom: 16px;
}
.card-new .hc-icon { background: var(--amber-tint); color: var(--brass); }
.card-offers .hc-icon { background: var(--lightblue); color: var(--blue-dark); }
.card-pnl .hc-icon { background: var(--green-tint); color: var(--green); }
.card-pipeline .hc-icon { background: var(--lightblue); color: var(--navy-soft); }
.card-catalog .hc-icon { background: #F1EEE7; color: var(--brass); }

.card-new { border-top-color: var(--brass); }
.card-offers { border-top-color: var(--blue); }
.card-pnl { border-top-color: var(--green); }
.card-pipeline { border-top-color: var(--navy-soft); }
.card-catalog { border-top-color: var(--brass); }

.home-card .hc-title { font-size: 15.5px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.home-card .hc-desc { font-size: 12.5px; color: var(--grey); margin-bottom: 14px; line-height: 1.5; min-height: 32px; }
.home-card .hc-number { font-size: 19px; font-weight: 700; color: var(--navy); font-family: 'Poppins', sans-serif; }
.home-card .hc-number span { font-size: 11.5px; font-weight: 400; color: var(--grey); font-family: inherit; }

/* --- Hero banner --- */
.hero {
  position: relative;
  background: linear-gradient(125deg, var(--navy) 0%, var(--navy-soft) 55%, var(--blue-dark) 100%);
  border-radius: 18px;
  padding: 38px 34px 56px;
  color: #fff;
  margin-bottom: 28px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero .eyebrow { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #96B4C4; margin-bottom: 8px; font-weight: 600; }
.hero h1 { color: #fff; font-size: 26px; margin: 0 0 8px; font-weight: 600; }
.hero .hero-sub { color: #C7D8E0; font-size: 13.5px; max-width: 460px; line-height: 1.5; }
.hero .hero-chips { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.hero .chip {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 999px;
  padding: 7px 16px;
  font-size: 12.5px;
  backdrop-filter: blur(4px);
}
.hero .chip strong { font-weight: 700; font-family: 'Poppins', sans-serif; }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -2px; width: 100%; height: 46px; display: block; }
