/* =========================================================
   Nuno Severino — Portal Imobiliário
   Design System v1.0
   Paleta: Azul Cobalto + Dourado
   ========================================================= */

:root {
  /* Cores principais (paleta Nuno Severino) */
  --cobalt: #0D3366;
  --cobalt-deep: #08203F;
  --cobalt-light: #1B5599;
  --cobalt-soft: #E6EBF3;

  /* Dourado (acento premium) */
  --gold: #C9A84C;
  --gold-deep: #A8893E;
  --gold-light: #E8C96A;
  --gold-soft: #FAF4E4;

  /* Neutros */
  --ink: #1A2332;
  --ink-soft: #2D3748;
  --grey-700: #4A5568;
  --grey-500: #6B7280;
  --grey-300: #CBD5E0;
  --grey-200: #E2E8F0;
  --grey-100: #F1F4F8;
  --off-white: #F8FAFC;
  --warm-white: #FDFCF9;
  --white: #FFFFFF;

  /* Estados */
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #DC2626;
  --info: #3B82F6;

  /* Tipografia */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* Sombras */
  --shadow-xs: 0 1px 2px rgba(26, 35, 50, 0.05);
  --shadow-sm: 0 2px 8px rgba(26, 35, 50, 0.06);
  --shadow-md: 0 4px 16px rgba(26, 35, 50, 0.08);
  --shadow-lg: 0 12px 32px rgba(26, 35, 50, 0.12);
  --shadow-xl: 0 24px 48px rgba(8, 32, 63, 0.18);

  /* Raios */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Layout */
  --container: 1200px;
  --container-narrow: 880px;
  --header-h: 80px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--cobalt); text-decoration: none; transition: color .2s; }
a:hover { color: var(--cobalt-deep); }
button { font: inherit; cursor: pointer; border: 0; background: none; }
ul, ol { list-style: none; }

/* ---------- Tipografia ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  line-height: 1.2;
  color: var(--ink);
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); }
h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); }
h4 { font-size: 1.15rem; font-family: var(--font-sans); font-weight: 600; }
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--gold-deep);
  margin-bottom: 1rem;
}
.lead { font-size: 1.15rem; color: var(--grey-700); max-width: 60ch; }
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* ---------- Layout ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section-sm { padding: 56px 0; }
.section-tight { padding: 40px 0; }
.bg-light { background: var(--off-white); }
.bg-cobalt { background: var(--cobalt); color: var(--white); }
.bg-cobalt-deep { background: var(--cobalt-deep); color: var(--white); }
.bg-warm { background: var(--warm-white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--grey-200);
  height: var(--header-h);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, var(--cobalt) 0%, var(--cobalt-deep) 100%);
  color: var(--white);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  font-family: var(--font-serif);
  font-size: 1.4rem; font-weight: 700;
  box-shadow: var(--shadow-sm);
}
.brand-mark .accent { color: var(--gold-light); }
.brand-text {
  display: flex; flex-direction: column; line-height: 1.1;
}
.brand-text .name {
  font-family: var(--font-serif);
  font-weight: 600; font-size: 1.15rem;
  color: var(--ink);
}
.brand-text .sub {
  font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-500);
}
.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  padding: 8px 11px;
  color: var(--ink-soft);
  font-weight: 500;
  font-size: 0.83rem;
  white-space: nowrap;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav a:hover { color: var(--cobalt); background: var(--cobalt-soft); }
.nav a.active { color: var(--cobalt); }
.nav-cta {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 14px !important;
  background: var(--ink) !important;
  color: var(--white) !important;
  border-radius: var(--radius-pill) !important;
  font-weight: 600 !important;
  margin-left: 8px;
}
.nav-cta:hover { background: var(--cobalt-deep) !important; color: var(--white) !important; }
.nav-cta .lock { width: 14px; height: 14px; }

.menu-toggle {
  display: none;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  align-items: center; justify-content: center;
}
.menu-toggle span {
  width: 22px; height: 2px; background: var(--ink);
  position: relative;
}
.menu-toggle span::before, .menu-toggle span::after {
  content: ''; position: absolute; left: 0; width: 100%; height: 2px; background: var(--ink);
}
.menu-toggle span::before { top: -7px; }
.menu-toggle span::after { top: 7px; }

@media (max-width: 960px) {
  .nav { display: none; position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--white); flex-direction: column; gap: 0; padding: 16px;
    border-bottom: 1px solid var(--grey-200); box-shadow: var(--shadow-md); }
  .nav.open { display: flex; }
  .nav a { width: 100%; padding: 14px 16px; }
  .nav-cta { margin-left: 0; margin-top: 8px; justify-content: center; }
  .menu-toggle { display: flex; }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.01em;
  transition: all .25s;
  cursor: pointer;
  text-align: center;
  white-space: nowrap;
}
.btn-primary {
  background: var(--cobalt); color: var(--white);
  box-shadow: 0 6px 20px rgba(0, 71, 171, 0.25);
}
.btn-primary:hover { background: var(--cobalt-deep); color: var(--white); transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0, 43, 107, 0.32); }

.btn-gold {
  background: var(--gold); color: var(--ink);
  box-shadow: 0 6px 20px rgba(201, 169, 97, 0.3);
}
.btn-gold:hover { background: var(--gold-deep); color: var(--white); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--cobalt);
  border: 1.5px solid var(--cobalt);
}
.btn-outline:hover { background: var(--cobalt); color: var(--white); }

.btn-ghost {
  background: transparent; color: var(--ink-soft); padding: 12px 20px;
}
.btn-ghost:hover { background: var(--cobalt-soft); color: var(--cobalt); }

.btn-dark {
  background: var(--ink); color: var(--white);
}
.btn-dark:hover { background: var(--cobalt-deep); color: var(--white); }

.btn-sm { padding: 9px 18px; font-size: 0.85rem; }
.btn-lg { padding: 16px 36px; font-size: 1.05rem; }

/* ---------- Cards ---------- */
.card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all .3s;
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--cobalt-soft); }

.card-icon {
  width: 56px; height: 56px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border-radius: var(--radius-md);
  display: grid; place-items: center;
  margin-bottom: 18px;
}
.card-icon.gold { background: var(--gold-soft); color: var(--gold-deep); }
.card-icon svg { width: 28px; height: 28px; }

.card h3 { margin-bottom: 10px; font-size: 1.2rem; }
.card p { color: var(--grey-700); font-size: 0.96rem; }

/* ---------- Grid utility ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: linear-gradient(135deg, var(--cobalt-deep) 0%, var(--cobalt) 60%, var(--cobalt-light) 100%);
  color: var(--white);
  padding: 100px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 80% 20%, rgba(201,169,97,0.18), transparent 50%),
    radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08), transparent 40%);
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow { color: var(--gold-light); }
.hero h1 { color: var(--white); font-size: clamp(2.5rem, 5vw, 4rem); }
.hero .lead { color: rgba(255,255,255,0.88); font-size: 1.2rem; max-width: 56ch; margin-top: 24px; }
.hero-actions { margin-top: 36px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; } }

.hero-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: var(--radius-xl);
  padding: 32px;
  backdrop-filter: blur(8px);
}
.hero-card h3 { color: var(--white); font-size: 1.25rem; }
.hero-card p { color: rgba(255,255,255,0.85); margin-top: 8px; }
.hero-card .stat { display: flex; align-items: baseline; gap: 8px; margin: 6px 0; }
.hero-card .stat .num { font-family: var(--font-serif); font-size: 2rem; color: var(--gold-light); font-weight: 700; }
.hero-card .stat .lbl { color: rgba(255,255,255,0.8); font-size: 0.95rem; }

/* ---------- Sections / títulos ---------- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .lead { margin: 16px auto 0; }

/* Linha decorativa dourada */
.gold-line { width: 56px; height: 3px; background: var(--gold); border-radius: 2px; margin: 0 auto; }

/* ---------- Serviço cards ---------- */
.service-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-top: 3px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .num {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  color: var(--cobalt);
  line-height: 1;
  margin-bottom: 16px;
  font-weight: 600;
}
.service-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.service-card p { color: var(--grey-700); font-size: 0.95rem; }

/* ---------- Pillar / valor ---------- */
.pillar {
  text-align: center;
  padding: 32px 24px;
}
.pillar .icon {
  width: 72px; height: 72px;
  margin: 0 auto 20px;
  background: var(--cobalt-soft);
  color: var(--cobalt);
  border-radius: 50%;
  display: grid; place-items: center;
}
.pillar .icon svg { width: 32px; height: 32px; }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--cobalt-deep), var(--cobalt));
  color: var(--white);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::after {
  content: ''; position: absolute;
  width: 240px; height: 240px;
  border: 2px solid rgba(201,169,97,0.3);
  border-radius: 50%; right: -80px; top: -80px;
}
.cta-banner h2 { color: var(--white); }
.cta-banner p { color: rgba(255,255,255,0.85); margin: 16px auto 28px; max-width: 50ch; }

/* ---------- Testimonial ---------- */
.testimonial {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px;
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
}
.testimonial .quote { font-family: var(--font-serif); font-size: 1.1rem; font-style: italic; color: var(--ink); }
.testimonial .author { margin-top: 18px; display: flex; align-items: center; gap: 12px; }
.testimonial .avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--cobalt-soft); color: var(--cobalt);
  display: grid; place-items: center; font-weight: 700;
}
.testimonial .stars { color: var(--gold); margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.78);
  padding: 64px 0 24px;
  margin-top: 80px;
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 48px;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 {
  color: var(--white);
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  margin-bottom: 18px;
}
.site-footer a { color: rgba(255,255,255,0.78); display: block; padding: 4px 0; font-size: 0.93rem; }
.site-footer a:hover { color: var(--gold-light); }
.footer-brand .name { color: var(--white); font-family: var(--font-serif); font-size: 1.4rem; margin-bottom: 8px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.93rem; max-width: 32ch; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.85rem; color: rgba(255,255,255,0.5);
}

/* ---------- Forms ---------- */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; margin-bottom: 6px;
  font-size: 0.9rem; font-weight: 500; color: var(--ink-soft);
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--grey-200);
  border-radius: var(--radius-sm);
  font: inherit;
  background: var(--white);
  transition: all .2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--cobalt);
  box-shadow: 0 0 0 3px var(--cobalt-soft);
}
textarea.form-control { resize: vertical; min-height: 120px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-cobalt { background: var(--cobalt-soft); color: var(--cobalt); }
.badge-gold { background: var(--gold-soft); color: var(--gold-deep); }
.badge-success { background: #DCFCE7; color: #15803D; }
.badge-warning { background: #FEF3C7; color: #B45309; }
.badge-danger { background: #FEE2E2; color: #B91C1C; }
.badge-info { background: #DBEAFE; color: #1E40AF; }
.badge-grey { background: var(--grey-100); color: var(--grey-700); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 1px solid var(--grey-200); }
table.data {
  width: 100%; border-collapse: collapse; background: var(--white);
}
table.data th {
  text-align: left; padding: 14px 18px;
  background: var(--off-white);
  font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--grey-700); font-weight: 600;
  border-bottom: 1px solid var(--grey-200);
}
table.data td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--grey-100);
  font-size: 0.93rem;
  color: var(--ink-soft);
}
table.data tr:last-child td { border-bottom: 0; }
table.data tr:hover td { background: var(--off-white); }

/* ---------- Property card ---------- */
.property-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all .3s;
  border: 1px solid var(--grey-200);
}
.property-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.property-card .ph-img {
  height: 220px;
  background: linear-gradient(135deg, var(--cobalt-deep), var(--cobalt));
  position: relative;
  display: grid; place-items: center;
  color: rgba(255,255,255,0.5);
}
.property-card .ph-img.alt { background: linear-gradient(135deg, #2D3748, #4A5568); }
.property-card .ph-img.alt2 { background: linear-gradient(135deg, var(--gold-deep), var(--gold)); }
.property-card .tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255,255,255,0.95);
  color: var(--cobalt);
  padding: 4px 10px; font-size: 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
}
.property-card .body { padding: 22px; }
.property-card .price { font-family: var(--font-serif); font-size: 1.5rem; color: var(--cobalt-deep); font-weight: 700; }
.property-card .title { font-size: 1.05rem; font-weight: 600; color: var(--ink); margin: 6px 0; }
.property-card .meta {
  display: flex; gap: 16px; margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--grey-100);
  color: var(--grey-700); font-size: 0.88rem;
}
.property-card .meta span { display: flex; align-items: center; gap: 4px; }

/* =========================================================
   ÁREA RESERVADA (dashboard layout)
   ========================================================= */
.app-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
  background: var(--off-white);
}
@media (max-width: 900px) {
  .app-shell { grid-template-columns: 1fr; }
  .app-sidebar { position: fixed; top: 0; left: -280px; height: 100vh; transition: left .3s; z-index: 200; }
  .app-sidebar.open { left: 0; }
}

.app-sidebar {
  background: var(--cobalt-deep);
  color: rgba(255,255,255,0.85);
  padding: 24px 0;
  display: flex; flex-direction: column;
  width: 260px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.app-sidebar .brand { padding: 0 24px 28px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.app-sidebar .brand .name { color: var(--white); font-family: var(--font-serif); font-size: 1.1rem; }
.app-sidebar .brand .sub { color: var(--gold-light); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; }
.sidebar-section {
  padding: 24px 16px 8px;
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}
.sidebar-nav { padding: 0 12px; flex: 1; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; margin-bottom: 2px;
  color: rgba(255,255,255,0.78);
  border-radius: var(--radius-sm);
  font-size: 0.93rem; font-weight: 500;
  transition: all .2s;
}
.sidebar-nav a:hover { background: rgba(255,255,255,0.06); color: var(--white); }
.sidebar-nav a.active {
  background: rgba(255,255,255,0.1);
  color: var(--white);
  border-left: 3px solid var(--gold);
  padding-left: 11px;
}
.sidebar-nav svg { width: 18px; height: 18px; opacity: 0.85; }
.sidebar-foot {
  padding: 16px 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.85rem;
}
.sidebar-foot a { color: var(--gold-light); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.app-topbar {
  background: var(--white);
  border-bottom: 1px solid var(--grey-200);
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.app-topbar .crumbs { font-size: 0.88rem; color: var(--grey-500); }
.app-topbar .crumbs strong { color: var(--ink); font-weight: 600; }
.app-topbar .user {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.9rem;
}
.app-topbar .avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--cobalt); color: var(--white);
  display: grid; place-items: center; font-weight: 600;
}
.app-content { padding: 32px; flex: 1; }
@media (max-width: 600px) { .app-content { padding: 20px 16px; } .app-topbar { padding: 14px 16px; } }

.page-head { margin-bottom: 28px; }
.page-head h1 { font-size: 2rem; }
.page-head .sub { color: var(--grey-500); margin-top: 6px; font-size: 1rem; }
.page-head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.stat-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--grey-200);
}
.stat-card .lbl {
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--grey-500); font-weight: 600;
}
.stat-card .num {
  font-family: var(--font-serif);
  font-size: 2.2rem; color: var(--cobalt-deep);
  margin: 8px 0 4px;
  font-weight: 700;
}
.stat-card .delta { font-size: 0.85rem; }
.stat-card .delta.up { color: var(--success); }
.stat-card .delta.down { color: var(--danger); }
.stat-card.gold { border-top: 3px solid var(--gold); }
.stat-card.cobalt { border-top: 3px solid var(--cobalt); }

.panel {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--grey-200);
  overflow: hidden;
}
.panel-head {
  padding: 18px 24px;
  border-bottom: 1px solid var(--grey-100);
  display: flex; align-items: center; justify-content: space-between;
}
.panel-head h3 { font-family: var(--font-sans); font-size: 1.05rem; font-weight: 600; }
.panel-body { padding: 24px; }
.panel-foot { padding: 16px 24px; border-top: 1px solid var(--grey-100); background: var(--off-white); }

/* Timeline */
.timeline { position: relative; padding-left: 28px; }
.timeline::before {
  content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px;
  width: 2px; background: var(--grey-200);
}
.timeline-item { position: relative; padding-bottom: 24px; }
.timeline-item::before {
  content: ''; position: absolute; left: -27px; top: 4px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--cobalt); border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--cobalt);
}
.timeline-item.gold::before { background: var(--gold); box-shadow: 0 0 0 2px var(--gold); }
.timeline-item.success::before { background: var(--success); box-shadow: 0 0 0 2px var(--success); }
.timeline-item .when { font-size: 0.8rem; color: var(--grey-500); }
.timeline-item .what { font-weight: 600; margin: 2px 0; }
.timeline-item .desc { color: var(--grey-700); font-size: 0.92rem; }

/* Progress bar */
.progress {
  background: var(--grey-100); height: 8px;
  border-radius: var(--radius-pill); overflow: hidden;
}
.progress > div {
  height: 100%; background: linear-gradient(90deg, var(--cobalt), var(--gold));
  border-radius: var(--radius-pill);
}

/* File list */
.file-list { display: flex; flex-direction: column; gap: 8px; }
.file-row {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--grey-200);
  border-radius: var(--radius-md);
  background: var(--white);
  transition: all .2s;
}
.file-row:hover { border-color: var(--cobalt); background: var(--cobalt-soft); }
.file-icon {
  width: 40px; height: 40px;
  background: var(--cobalt-soft); color: var(--cobalt);
  border-radius: var(--radius-sm);
  display: grid; place-items: center; flex-shrink: 0;
}
.file-row .meta { flex: 1; min-width: 0; }
.file-row .name { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.file-row .info { font-size: 0.82rem; color: var(--grey-500); margin-top: 2px; }
.file-row .actions { display: flex; gap: 8px; }

/* Login */
.login-shell {
  min-height: 100vh;
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--off-white);
}
@media (max-width: 900px) { .login-shell { grid-template-columns: 1fr; } }
.login-aside {
  background: linear-gradient(135deg, var(--cobalt-deep) 0%, var(--cobalt) 100%);
  color: var(--white);
  padding: 64px 56px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden;
}
.login-aside::before {
  content: ''; position: absolute;
  width: 400px; height: 400px;
  border: 1px solid rgba(201,169,97,0.2);
  border-radius: 50%; right: -150px; top: -150px;
}
.login-aside::after {
  content: ''; position: absolute;
  width: 280px; height: 280px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 50%; left: -100px; bottom: -100px;
}
.login-aside h1 { color: var(--white); font-size: 2.4rem; }
.login-aside .lead { color: rgba(255,255,255,0.85); font-size: 1.05rem; margin-top: 16px; }
.login-aside .quote {
  font-family: var(--font-serif); font-style: italic;
  color: var(--gold-light); font-size: 1.1rem;
  position: relative; z-index: 1;
}
@media (max-width: 900px) { .login-aside { padding: 48px 32px; min-height: 240px; } }

.login-main {
  display: flex; flex-direction: column; justify-content: center;
  padding: 64px 56px;
}
@media (max-width: 600px) { .login-main { padding: 40px 24px; } }
.login-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--grey-100);
  border-radius: var(--radius-pill);
  padding: 4px; margin-bottom: 28px;
}
.login-tabs button {
  padding: 10px 16px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.9rem;
  color: var(--grey-700);
}
.login-tabs button.active {
  background: var(--white); color: var(--cobalt);
  box-shadow: var(--shadow-xs);
}

/* Process steps */
.steps { counter-reset: step; }
.step {
  display: grid; grid-template-columns: 60px 1fr;
  gap: 24px; padding: 20px 0;
  border-bottom: 1px dashed var(--grey-200);
}
.step:last-child { border-bottom: 0; }
.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  font-family: var(--font-serif);
  font-size: 1.8rem;
  color: var(--gold);
  font-weight: 700;
}
.step h3 { font-size: 1.1rem; margin-bottom: 4px; }
.step p { color: var(--grey-700); font-size: 0.95rem; }

/* Article card */
.article-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--grey-200);
  transition: all .3s;
  display: flex; flex-direction: column;
}
.article-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--cobalt-soft); }
.article-card .cover {
  height: 180px;
  background: linear-gradient(135deg, var(--cobalt-soft), var(--gold-soft));
  position: relative;
  display: grid; place-items: center;
  color: var(--cobalt);
}
.article-card .cover.dark { background: linear-gradient(135deg, var(--cobalt), var(--cobalt-deep)); color: var(--gold-light); }
.article-card .cover.gold { background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--cobalt-deep); }
.article-card .cover svg { width: 64px; height: 64px; opacity: 0.5; }
.article-card .body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.article-card h3 { font-size: 1.15rem; margin: 8px 0; line-height: 1.35; }
.article-card p { color: var(--grey-700); font-size: 0.92rem; flex: 1; }
.article-card .read { color: var(--cobalt); font-weight: 600; font-size: 0.9rem; margin-top: 14px; }

/* Helper */
.hidden { display: none !important; }
.flex { display: flex; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: 8px; }
.gap-md { gap: 16px; }
.mt-sm { margin-top: 8px; }
.mt-md { margin-top: 16px; }
.mt-lg { margin-top: 24px; }
.mb-md { margin-bottom: 16px; }
.text-muted { color: var(--grey-500); }
.text-gold { color: var(--gold-deep); }
.text-cobalt { color: var(--cobalt); }
