/* ============================================
   MLTP — Pro BTP Suite
   Design : épuré, harmonieux, façon Stripe/Linear
   3 vues : SITE VITRINE + LOGIN + DASHBOARD
   ============================================ */

/* ============================================
   VITRINE (site public Durand TP)
   ============================================ */
html { scroll-behavior: smooth; }
.page-vitrine { display: block; }

.vit-nav {
  position: sticky; top: 0; z-index: 50;
  padding: 18px 40px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(10,9,8,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201,163,92,0.08);
}
.vit-brand { display: flex; align-items: center; gap: 12px; }
.vit-brand-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffe9a8, #c9a35c, #7d5a18);
  display: flex; align-items: center; justify-content: center;
  color: #1a1408; font-family: 'Cormorant Garamond', serif;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 0 12px rgba(230,195,120,0.3);
}
.vit-brand-name { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #e6c378; letter-spacing: 2px; font-weight: 500; }
.vit-brand-tag { font-size: 9px; color: #7a7466; letter-spacing: 2.5px; text-transform: uppercase; margin-top: 1px; }
.vit-links { display: flex; gap: 32px; font-size: 13px; }
.vit-links a { color: #b5ad99; font-weight: 500; transition: color 0.15s; text-decoration: none; }
.vit-links a:hover { color: #e6c378; }
.vit-cta { display: flex; align-items: center; gap: 14px; }
.vit-pro {
  font-size: 11px; color: #7a7466;
  padding: 7px 14px; border: 1px solid rgba(201,163,92,0.15);
  border-radius: 6px; background: transparent; cursor: pointer;
  font-family: 'Inter', sans-serif; transition: all 0.15s; letter-spacing: 0.5px;
}
.vit-pro:hover { border-color: #c9a35c; color: #e6c378; }
.vit-quote {
  background: #e6c378; color: #1a1408;
  padding: 8px 16px; border-radius: 7px;
  font-size: 12px; font-weight: 600; text-decoration: none;
  letter-spacing: 0.3px;
}

/* HERO */
.vit-hero { position: relative; min-height: 100vh; display: flex; align-items: center; padding: 0 40px; overflow: hidden; }
.vit-hero-bg {
  position: absolute; inset: 0;
  background-image: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1800&q=85');
  background-size: cover; background-position: center;
  filter: brightness(0.32) contrast(1.05) saturate(0.7);
  z-index: 0;
}
.vit-hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(10,9,8,0.7) 0%, rgba(10,9,8,0.5) 60%, rgba(10,9,8,0.85) 100%),
    radial-gradient(ellipse at 30% 50%, rgba(201,163,92,0.06) 0%, transparent 60%);
  z-index: 1;
}
.vit-hero-content { position: relative; z-index: 2; max-width: 680px; padding-top: 60px; }
.vit-hero-tag {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; color: #e6c378; letter-spacing: 2.5px; text-transform: uppercase;
  font-weight: 500; margin-bottom: 24px;
  padding: 6px 14px;
  background: rgba(201,163,92,0.08);
  border: 1px solid rgba(201,163,92,0.25);
  border-radius: 18px;
}
.vit-hero-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #e6c378; box-shadow: 0 0 6px #e6c378; }
.vit-hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(40px, 7vw, 72px); line-height: 1.05; font-weight: 500;
  letter-spacing: -1.5px; color: #fbf6e8;
  margin-bottom: 24px; text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}
.vit-hero h1 em { font-style: italic; color: #e6c378; font-weight: 600; }
.vit-hero p { font-size: 17px; color: #b5ad99; max-width: 520px; line-height: 1.65; margin-bottom: 38px; }
.vit-hero-cta { display: flex; gap: 14px; align-items: center; }
.vit-hero-stats {
  position: relative; z-index: 2;
  margin-top: 80px; display: flex; gap: 48px; padding-bottom: 40px;
  flex-wrap: wrap;
}
.stat strong { font-family: 'Cormorant Garamond', serif; font-size: 36px; color: #e6c378; font-weight: 500; display: block; line-height: 1; letter-spacing: -1px; }
.stat span { font-size: 12px; color: #7a7466; text-transform: uppercase; letter-spacing: 1.5px; margin-top: 6px; display: block; }

/* SECONDARY BTN (vitrine) */
.btn-secondary {
  background: transparent; color: #efe9d9;
  padding: 13px 22px;
  border: 1px solid rgba(201,163,92,0.15);
  font-size: 13px; font-weight: 500;
  border-radius: 8px; cursor: pointer; text-decoration: none;
  transition: all 0.15s;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
}
.btn-secondary:hover { border-color: #c9a35c; color: #e6c378; }

/* SECTIONS */
.vit-block { padding: 100px 40px; border-top: 1px solid rgba(201,163,92,0.08); }
.vit-block.alt { background: #14110d; }
.vit-section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.vit-eyebrow { font-size: 11px; color: #c9a35c; letter-spacing: 3px; text-transform: uppercase; font-weight: 600; margin-bottom: 16px; }
.vit-section-head h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 44px; font-weight: 500; letter-spacing: -1px; line-height: 1.15;
  margin-bottom: 14px;
}
.vit-section-head h2 em { font-style: italic; color: #e6c378; font-weight: 600; }
.vit-section-head p { font-size: 15px; color: #b5ad99; line-height: 1.7; }
.vit-container { max-width: 1180px; margin: 0 auto; }

/* RÉALISATIONS */
.realisations { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.realisation { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; background: #0a0908; cursor: pointer; }
.realisation img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.85); transition: all 0.4s; display: block; }
.realisation:hover img { filter: brightness(1) saturate(1.05); transform: scale(1.03); }
.realisation-info {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 18px 20px;
  background: linear-gradient(0deg, rgba(10,9,8,0.95) 0%, rgba(10,9,8,0) 100%);
}
.realisation-info h4 { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #fbf6e8; font-weight: 500; letter-spacing: -0.2px; margin-bottom: 3px; }
.realisation-info span { font-size: 11px; color: #e6c378; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 500; }

/* SERVICES */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: rgba(201,163,92,0.15); border: 1px solid rgba(201,163,92,0.15); border-radius: 10px; overflow: hidden; }
.service { padding: 36px 28px; background: #0a0908; transition: background 0.15s; }
.service:hover { background: #161310; }
.service-num { font-family: 'Cormorant Garamond', serif; font-size: 14px; color: #c9a35c; font-weight: 500; letter-spacing: 1px; margin-bottom: 18px; }
.service h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; letter-spacing: -0.3px; margin-bottom: 12px; color: #efe9d9; }
.service p { font-size: 13px; color: #b5ad99; line-height: 1.7; }
.service-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-size: 12px; color: #e6c378; font-weight: 500; letter-spacing: 0.3px; cursor: pointer; }

/* APROPOS */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img {
  width: 100%; aspect-ratio: 4/5;
  background-image: url('https://images.unsplash.com/photo-1581094288338-2314dddb7ece?w=900&q=85');
  background-size: cover; background-position: center;
  border-radius: 10px; box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.about-text h2 { font-family: 'Cormorant Garamond', serif; font-size: 42px; font-weight: 500; letter-spacing: -0.8px; line-height: 1.1; margin-bottom: 22px; color: #efe9d9; }
.about-text h2 em { font-style: italic; color: #e6c378; font-weight: 600; }
.about-text p { font-size: 15px; color: #b5ad99; line-height: 1.75; margin-bottom: 18px; }
.about-features { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 32px; padding-top: 32px; border-top: 1px solid rgba(201,163,92,0.08); }
.feature strong { display: block; font-family: 'Cormorant Garamond', serif; font-size: 28px; color: #e6c378; font-weight: 500; line-height: 1; margin-bottom: 6px; }
.feature span { font-size: 11px; color: #7a7466; letter-spacing: 1.2px; text-transform: uppercase; }

/* TÉMOIGNAGES */
.testimonials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.testi { padding: 28px 26px; background: #161310; border: 1px solid rgba(201,163,92,0.15); border-radius: 10px; }
.testi-quote { font-family: 'Cormorant Garamond', serif; font-size: 18px; color: #efe9d9; line-height: 1.5; font-style: italic; margin-bottom: 24px; letter-spacing: -0.2px; }
.testi-quote::before { content: "\201C"; font-family: 'Cormorant Garamond', serif; font-size: 42px; color: #c9a35c; line-height: 0; display: block; margin-bottom: 14px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-ava { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #c9a35c, #e6c378); display: flex; align-items: center; justify-content: center; color: #1a1408; font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: 15px; }
.testi-name { font-size: 13px; color: #efe9d9; font-weight: 600; }
.testi-role { font-size: 11px; color: #7a7466; margin-top: 1px; }

/* CONTACT */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: start; }
.contact-form { background: #161310; border: 1px solid rgba(201,163,92,0.15); border-radius: 10px; padding: 32px 28px; }
.contact-form h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; margin-bottom: 8px; color: #efe9d9; }
.contact-form > p { font-size: 13px; color: #7a7466; margin-bottom: 22px; }
.contact-form .field textarea { font-family: 'Inter', sans-serif; }
.contact-info { padding: 8px 0; }
.contact-info h3 { font-family: 'Cormorant Garamond', serif; font-size: 24px; font-weight: 500; margin-bottom: 24px; color: #efe9d9; }
.coord { margin-bottom: 24px; padding-left: 24px; border-left: 2px solid rgba(201,163,92,0.15); position: relative; }
.coord::before { content: ""; position: absolute; left: -2px; top: 6px; width: 2px; height: 14px; background: #e6c378; }
.coord-label { font-size: 10px; color: #7a7466; letter-spacing: 1.5px; text-transform: uppercase; font-weight: 600; margin-bottom: 6px; }
.coord-value { font-size: 14px; color: #efe9d9; line-height: 1.5; }
.coord-value a { color: #e6c378; font-weight: 500; text-decoration: none; }
.coord-extra { font-size: 12px; color: #7a7466; margin-top: 4px; }

/* FOOTER VITRINE */
.vit-footer { padding: 60px 40px 30px; background: #080706; border-top: 1px solid rgba(201,163,92,0.08); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 48px; max-width: 1180px; margin: 0 auto; padding-bottom: 40px; border-bottom: 1px solid rgba(201,163,92,0.08); }
.footer-brand .vit-brand { margin-bottom: 18px; }
.footer-brand p { font-size: 12px; color: #7a7466; line-height: 1.7; max-width: 300px; }
.footer-col h5 { font-family: 'Cormorant Garamond', serif; font-size: 14px; font-weight: 600; color: #efe9d9; letter-spacing: 0.3px; margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; padding: 0; margin: 0; }
.footer-col a { font-size: 12px; color: #7a7466; transition: color 0.15s; cursor: pointer; text-decoration: none; }
.footer-col a:hover { color: #e6c378; }
.footer-bottom { max-width: 1180px; margin: 24px auto 0; display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: #4f4a40; letter-spacing: 0.3px; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #7a7466; text-decoration: none; }
.footer-mltp { display: inline-flex; align-items: center; gap: 6px; color: #7a7466; }
.footer-mltp strong { font-family: 'Cormorant Garamond', serif; color: #c9a35c; letter-spacing: 2px; font-weight: 500; }

/* LOGIN BACK BUTTON */
.login-back {
  position: fixed; top: 24px; left: 24px; z-index: 60;
  background: transparent; border: 1px solid rgba(201,163,92,0.2);
  color: #b5ad99; padding: 8px 16px;
  font-size: 12px; font-family: 'Inter', sans-serif; font-weight: 500;
  border-radius: 6px; cursor: pointer; transition: all 0.15s;
  letter-spacing: 0.3px;
}
.login-back:hover { border-color: #c9a35c; color: #e6c378; }

/* RESPONSIVE VITRINE */
@media (max-width: 900px) {
  .vit-links { display: none; }
  .realisations, .services, .testimonials { grid-template-columns: 1fr 1fr; }
  .about, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .vit-block { padding: 60px 24px; }
  .vit-hero { padding: 0 24px; }
}
@media (max-width: 600px) {
  .realisations, .services, .testimonials { grid-template-columns: 1fr; }
  .vit-nav { padding: 14px 18px; }
  .vit-cta .vit-quote { display: none; }
}

:root {
  --bg: #0a0908;
  --bg-soft: #14110d;
  --bg-panel: #161310;
  --bg-panel-hover: #1c1815;
  --gold: #c9a35c;
  --gold-bright: #e6c378;
  --gold-soft: #8a7848;
  --gold-line: rgba(201, 163, 92, 0.15);
  --gold-line-soft: rgba(201, 163, 92, 0.08);
  --text: #efe9d9;
  --text-soft: #b5ad99;
  --text-muted: #7a7466;
  --text-faint: #4f4a40;
  --green: #6db866;
  --orange: #d4944a;
  --red: #d65f5f;
  --blue: #6a9bd1;
  --serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 15px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
button, input { font-family: inherit; }

/* ============================================
   LOGIN
   ============================================ */
.login-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 40px;
  position: relative;
  background: var(--bg);
}
.login-screen::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(201, 163, 92, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(201, 163, 92, 0.03) 0%, transparent 50%);
  pointer-events: none;
}
.login-main {
  position: relative;
  width: 100%;
  max-width: 380px;
  text-align: center;
}
.login-mark {
  display: inline-block;
  margin-bottom: 36px;
  opacity: 0.95;
}
.login-headline {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  color: var(--text);
  margin-bottom: 12px;
}
.login-tagline {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 36px;
  line-height: 1.5;
}

.login-form { text-align: left; }
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
.field input {
  width: 100%;
  padding: 11px 13px;
  background: var(--bg-soft);
  border: 1px solid var(--gold-line);
  border-radius: 8px;
  color: var(--text);
  font-size: 14px;
  transition: all 0.15s;
}
.field input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(201, 163, 92, 0.04);
}
.field input[type="password"] {
  letter-spacing: 6px;
  text-align: center;
  font-size: 18px;
}
.login-btn {
  width: 100%;
  margin-top: 8px;
}
.login-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 18px;
  text-align: center;
}
.login-hint strong {
  color: var(--gold-bright);
  font-weight: 600;
  letter-spacing: 1px;
}
.error-banner {
  display: none;
  padding: 9px 12px;
  background: rgba(214, 95, 95, 0.08);
  border: 1px solid rgba(214, 95, 95, 0.3);
  color: #e88a8a;
  font-size: 12px;
  border-radius: 6px;
  margin-bottom: 12px;
}
.error-banner.show { display: block; }

.login-footer {
  position: relative;
  margin-top: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.3px;
}
.login-footer a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.15s;
}
.login-footer a:hover { color: var(--gold-bright); }
.dot-sep { opacity: 0.4; }

/* ============================================
   APP SHELL
   ============================================ */
.app-shell {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 100vh;
}

.sidebar {
  background: var(--bg);
  border-right: 1px solid var(--gold-line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar-brand {
  padding: 32px 20px 24px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--gold-line-soft);
}
.sidebar-nav {
  flex: 1;
  padding: 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow-y: auto;
}
.nav-link {
  background: transparent;
  border: 0;
  color: var(--text-soft);
  text-align: left;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.12s;
  letter-spacing: 0.1px;
}
.nav-link:hover {
  background: var(--bg-panel);
  color: var(--text);
}
.nav-link.active {
  background: var(--bg-panel);
  color: var(--gold-bright);
}
.nav-link.active::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--gold-bright);
  border-radius: 50%;
  margin-right: 10px;
  vertical-align: middle;
  box-shadow: 0 0 6px var(--gold-bright);
}
.nav-link:not(.active)::before {
  content: "";
  display: inline-block;
  width: 4px;
  height: 4px;
  margin-right: 10px;
  vertical-align: middle;
}

.sidebar-bottom {
  padding: 16px;
  border-top: 1px solid var(--gold-line-soft);
}
.user-block {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  margin-bottom: 8px;
}
.user-ava {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  display: flex; align-items: center; justify-content: center;
  color: #1a1408;
  font-weight: 700;
  font-size: 13px;
  font-family: var(--serif);
}
.user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.3px;
}
.user-role {
  font-size: 10px;
  color: var(--text-muted);
  margin-top: 1px;
}
.logout-link {
  width: 100%;
  padding: 7px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--text-muted);
  font-size: 11px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s;
  font-weight: 500;
}
.logout-link:hover {
  border-color: var(--gold-line);
  color: var(--text);
}

.main-zone {
  background: var(--bg);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.topbar {
  padding: 24px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--gold-line);
}
.topbar h2 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
.breadcrumb {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 4px;
}
.topbar-right {
  display: flex; align-items: center; gap: 12px;
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  background: rgba(109, 184, 102, 0.08);
  border: 1px solid rgba(109, 184, 102, 0.25);
  border-radius: 20px;
  font-size: 11px;
  color: #8fcf88;
  font-weight: 500;
}
.dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 5px var(--green);
}

.view { display: none; padding: 32px; max-width: 1320px; }
.view.active { display: block; }

/* ============================================
   KPI ROW
   ============================================ */
.kpi-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1px;
  background: var(--gold-line);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  margin-bottom: 32px;
  overflow: hidden;
}
.kpi {
  padding: 22px 24px;
  background: var(--bg);
  transition: background 0.15s;
}
.kpi:hover { background: var(--bg-panel); }
.kpi-label {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}
.kpi-value {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.5px;
  line-height: 1;
}
.kpi-value .unit {
  font-size: 18px;
  color: var(--text-muted);
  font-weight: 500;
  margin-left: 2px;
}
.kpi-trend {
  font-size: 11px;
  margin-top: 10px;
  color: var(--text-muted);
  font-weight: 500;
}
.kpi-trend.up { color: var(--green); }
.kpi-trend.up::before { content: "↗ "; }
.kpi-trend.down { color: var(--red); }
.kpi-trend.down::before { content: "↘ "; }

/* ============================================
   PANELS
   ============================================ */
.grid-2 {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.panel {
  background: var(--bg);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
  padding: 20px 24px;
  margin-bottom: 16px;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--gold-line-soft);
}
.panel-head h3 {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.2px;
}
.panel-meta {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

/* FEED */
.feed { list-style: none; display: flex; flex-direction: column; }
.feed li {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid var(--gold-line-soft);
}
.feed li:last-child { border-bottom: 0; }
.feed-time {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.5px;
  padding-top: 1px;
}
.feed-title {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
  line-height: 1.45;
}
.feed-meta {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}
.feed-tag {
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.4px;
  white-space: nowrap;
  align-self: center;
}
.tag-good { background: rgba(109, 184, 102, 0.1); color: #8fcf88; border: 1px solid rgba(109, 184, 102, 0.25); }
.tag-info { background: rgba(106, 155, 209, 0.1); color: #8eb4d9; border: 1px solid rgba(106, 155, 209, 0.25); }
.tag-warn { background: rgba(212, 148, 74, 0.1); color: #dba872; border: 1px solid rgba(212, 148, 74, 0.3); }
.tag-bad  { background: rgba(214, 95, 95, 0.1); color: #e08e8e; border: 1px solid rgba(214, 95, 95, 0.3); }

/* ALERTS */
.alert-stack { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.alert-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 8px;
  font-size: 12px;
  align-items: center;
  border: 1px solid var(--gold-line);
  background: var(--bg);
}
.alert-row strong {
  display: block;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 3px;
}
.alert-row span {
  color: var(--text-muted);
  font-size: 11px;
}
.alert-row.warn { border-left: 3px solid var(--orange); }
.alert-row.good { border-left: 3px solid var(--green); }
.alert-row.info { border-left: 3px solid var(--blue); }

/* TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.data-table thead th {
  text-align: left;
  font-size: 10px;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-weight: 600;
  padding: 10px 12px;
  border-bottom: 1px solid var(--gold-line-soft);
}
.data-table thead th.num { text-align: right; }
.data-table tbody td {
  padding: 16px 12px;
  border-bottom: 1px solid var(--gold-line-soft);
  color: var(--text-soft);
}
.data-table tbody td.num { text-align: right; font-variant-numeric: tabular-nums; }
.data-table tbody td strong { color: var(--text); font-weight: 600; }
.data-table tbody tr:hover td { background: var(--bg-panel); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.margin-good { color: var(--green); font-weight: 600; }
.margin-low { color: var(--orange); font-weight: 600; }

.progress {
  display: inline-block;
  width: 90px;
  height: 4px;
  background: var(--gold-line);
  border-radius: 2px;
  overflow: hidden;
  vertical-align: middle;
  margin-right: 8px;
}
.progress-fill {
  height: 100%;
  background: var(--gold-bright);
  border-radius: 2px;
}
.progress-pct {
  font-size: 11px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}

/* ============================================
   BUTTONS
   ============================================ */
.btn-primary {
  background: var(--gold-bright);
  color: #1a1408;
  border: 0;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-primary:hover { background: #f0d189; transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.arrow { display: inline-block; transition: transform 0.15s; }
.btn-primary:hover .arrow { transform: translateX(2px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--text-soft);
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 500;
  border-radius: 7px;
  text-decoration: none;
  transition: all 0.15s;
}
.btn-ghost:hover {
  background: var(--bg-panel);
  border-color: var(--gold);
  color: var(--gold-bright);
}

.btn-mini {
  padding: 6px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2px;
  border-radius: 5px;
  border: 0;
  background: var(--gold-bright);
  color: #1a1408;
  cursor: pointer;
  transition: all 0.15s;
}
.btn-mini:hover { background: #f0d189; }
.btn-mini.ghost {
  background: transparent;
  border: 1px solid var(--gold-line);
  color: var(--text-soft);
}
.btn-mini.ghost:hover { color: var(--gold-bright); border-color: var(--gold); }

/* ============================================
   PLACEHOLDER
   ============================================ */
.placeholder {
  text-align: center;
  padding: 80px 32px;
  background: var(--bg);
  border: 1px solid var(--gold-line);
  border-radius: 10px;
}
.placeholder-rule {
  width: 40px;
  height: 1px;
  background: var(--gold);
  margin: 0 auto 24px;
  opacity: 0.6;
}
.placeholder h2 {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
  color: var(--text);
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.placeholder p {
  font-size: 14px;
  color: var(--text-muted);
  max-width: 460px;
  margin: 0 auto 24px;
  line-height: 1.7;
}
.badge-soon {
  display: inline-block;
  padding: 5px 14px;
  background: rgba(212, 148, 74, 0.08);
  border: 1px solid rgba(212, 148, 74, 0.3);
  color: #dba872;
  font-size: 11px;
  letter-spacing: 0.5px;
  font-weight: 600;
  border-radius: 14px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .grid-2 { grid-template-columns: 1fr; }
  .topbar-right .status-pill { display: none; }
}
@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; transform: translateX(-100%); z-index: 100; transition: transform 0.3s; }
  .sidebar.open { transform: translateX(0); }
  .view { padding: 20px; }
  .topbar { padding: 16px 20px; }
  .topbar-right .btn-ghost { display: none; }
}
