/* ============================================================
   ORAȘUL TITU - GHID DIGITAL
   Modern Design System
   ============================================================ */

/* --- CSS Variables --- */
:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-bg: rgba(37, 99, 235, 0.08);
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;

  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-card: #ffffff;
  --bg-elevated: #ffffff;
  --surface: #f1f5f9;
  --surface-hover: #e2e8f0;
  --border: #e2e8f0;
  --border-light: #f1f5f9;

  --text: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;   /* era #94a3b8 – prea deschis pe alb */
  --text-inverse: #ffffff;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
  --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-display: 'Plus Jakarta Sans', 'Inter', sans-serif;

  --nav-height: 72px;
  --container: 1200px;
  --transition: 0.2s ease;
}

/* Dark Theme */
[data-theme="dark"] {
  --bg: #0f172a;
  --bg-alt: #1e293b;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --surface: #334155;
  --surface-hover: #475569;
  --border: #334155;
  --border-light: #1e293b;

  --text: #f1f5f9;
  --text-secondary: #a8b5c7;
  --text-muted: #8a99ae;   /* era #64748b – prea închis pe fundal închis */

  --primary-bg: rgba(37, 99, 235, 0.15);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.3), 0 2px 4px -2px rgba(0,0,0,0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.4), 0 8px 10px -6px rgba(0,0,0,0.3);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); }

body {
  /* fundalul lui body trece pe toată pagina (html nu are fundal), deci liniile cu z-index -1 se văd printre carduri */
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s ease, color 0.3s ease;
}

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; display: block; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  transition: all 0.3s ease;
}

[data-theme="dark"] .navbar {
  background: rgba(15,23,42,0.9);
}

.navbar.scrolled {
  box-shadow: var(--shadow-md);
}

.nav-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
  min-width: 160px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.logo-text { display: flex; flex-direction: column; }
.logo-title { font-family: var(--font-display); font-weight: 700; font-size: 16px; line-height: 1.2; color: var(--text); }
.logo-subtitle { font-size: 11px; color: var(--text-muted); font-weight: 500; letter-spacing: 0.5px; text-transform: uppercase; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  justify-content: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
}

.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background: var(--primary-bg);
}

.nav-link i { font-size: 10px; transition: transform var(--transition); }

/* Dropdown */
.nav-dropdown { position: relative; }

.nav-dropdown .dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 8px;
  min-width: 220px;
  box-shadow: var(--shadow-xl);
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
  z-index: 100;
}

.nav-dropdown:hover .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-link i { transform: rotate(180deg); }

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
  text-decoration: none;
}

.dropdown-item:hover {
  background: var(--primary-bg);
  color: var(--primary);
}

/* etichete de grup, insigna „nou” și meniul lat pe coloane (Ghid local) */
.dropdown-label { font-size: 11px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--text-muted); padding: 10px 14px 4px; }
.dropdown-new { margin-left: auto; font-size: 10px; font-weight: 700; text-transform: uppercase; background: var(--primary); color: #fff; border-radius: 999px; padding: 2px 7px; }
.nav-dropdown .dropdown-menu.dropdown-wide { display: grid; grid-template-columns: repeat(3, minmax(200px, 1fr)); gap: 0 6px; min-width: 660px; }
@media (max-width: 1024px) {
  .nav-menu.active .nav-dropdown .dropdown-menu.dropdown-wide { grid-template-columns: 1fr; min-width: 0; }
  .nav-menu.active .nav-dropdown.open .dropdown-menu.dropdown-wide { display: grid; }
}

.dropdown-item i {
  width: 20px;
  text-align: center;
  font-size: 14px;
  color: var(--primary);
}

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; min-width: 160px; justify-content: flex-end; }

.nav-search-btn, .nav-theme-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 15px;
  transition: all var(--transition);
}

.nav-search-btn:hover, .nav-theme-btn:hover {
  background: var(--primary-bg);
  color: var(--primary);
  border-color: var(--primary);
}

.nav-mobile-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  cursor: pointer;
  padding: 10px;
}

.nav-mobile-btn span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-secondary);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-mobile-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-mobile-btn.active span:nth-child(2) { opacity: 0; }
.nav-mobile-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* --- Search Overlay --- */
.search-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 120px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.search-overlay.active { opacity: 1; visibility: visible; }

.search-container {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 90%;
  max-width: 640px;
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  transform: translateY(-20px);
  transition: transform 0.3s ease;
}

.search-overlay.active .search-container { transform: translateY(0); }

.search-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.search-header i { color: var(--text-muted); font-size: 18px; }

.search-header input {
  flex: 1;
  border: none;
  background: none;
  font-size: 17px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
}

.search-header input::placeholder { color: var(--text-muted); }

.search-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all var(--transition);
}

.search-close:hover { background: var(--danger); color: white; border-color: var(--danger); }

.search-results {
  max-height: 400px;
  overflow-y: auto;
  padding: 8px;
}

.search-result-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  color: var(--text);
}

.search-result-item:hover { background: var(--primary-bg); }

.search-result-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.search-result-text { flex: 1; }
.search-result-name { font-weight: 600; font-size: 14px; }
.search-result-desc { font-size: 12px; color: var(--text-muted); }

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
  padding: 120px 24px 32px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.08) 0%, rgba(124,58,237,0.05) 25%, rgba(245,158,11,0.06) 50%, rgba(16,185,129,0.05) 75%, rgba(37,99,235,0.08) 100%);
  background-size: 400% 400%;
  animation: heroGradientShift 15s ease infinite;
  z-index: 0;
  will-change: transform;
}

[data-theme="dark"] .hero-bg {
  background: linear-gradient(135deg, rgba(37,99,235,0.15) 0%, rgba(124,58,237,0.10) 25%, rgba(245,158,11,0.08) 50%, rgba(16,185,129,0.06) 75%, rgba(37,99,235,0.15) 100%);
  background-size: 400% 400%;
  animation: heroGradientShift 15s ease infinite;
}

@keyframes heroGradientShift {
  0%   { background-position: 0% 50%; }
  25%  { background-position: 100% 25%; }
  50%  { background-position: 100% 50%; }
  75%  { background-position: 0% 75%; }
  100% { background-position: 0% 50%; }
}

/* --- Hero Floating Shapes (Parallax) --- */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  will-change: transform;
}
.hero-shape-1 { width: 300px; height: 300px; background: rgba(37,99,235,0.12); top: 10%; left: -5%; }
.hero-shape-2 { width: 200px; height: 200px; background: rgba(245,158,11,0.10); top: 60%; right: -3%; }
.hero-shape-3 { width: 250px; height: 250px; background: rgba(124,58,237,0.08); bottom: 10%; left: 30%; }
.hero-shape-4 { width: 180px; height: 180px; background: rgba(16,185,129,0.10); top: 20%; right: 20%; }
.hero-shape-5 { width: 150px; height: 150px; background: rgba(236,72,153,0.07); top: 50%; left: 15%; }

[data-theme="dark"] .hero-shape-1 { background: rgba(37,99,235,0.20); }
[data-theme="dark"] .hero-shape-2 { background: rgba(245,158,11,0.15); }
[data-theme="dark"] .hero-shape-3 { background: rgba(124,58,237,0.15); }
[data-theme="dark"] .hero-shape-4 { background: rgba(16,185,129,0.15); }
[data-theme="dark"] .hero-shape-5 { background: rgba(236,72,153,0.12); }

@media (max-width: 768px) { .hero-shapes { display: none; } }

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 800px;
  animation: fadeUp 0.8s ease;
  will-change: transform, opacity;
  margin-top: auto;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  border: 1px solid rgba(37,99,235,0.15);
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
  letter-spacing: -2px;
}

.text-gradient {
  background: linear-gradient(135deg, var(--primary), #7c3aed, var(--primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 19px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 48px;
  perspective: 1000px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px 16px;
  transition: all 0.3s ease, transform 0.4s ease;
  transform-style: preserve-3d;
}

.stat-card:hover {
  transform: translateY(-4px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.stat-icon {
  width: 44px;
  height: 44px;
  background: var(--primary-bg);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: var(--primary);
  font-size: 18px;
}

.stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.2;
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  margin-top: 4px;
}

.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font);
  border-radius: var(--radius-full);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  border-color: var(--primary);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37,99,235,0.3);
  color: white;
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-outline:hover {
  background: var(--surface);
  border-color: var(--text-muted);
  color: var(--text);
}

.btn-full { width: 100%; justify-content: center; }

.btn-emergency {
  background: var(--danger);
  color: white;
  border-color: var(--danger);
  border-radius: var(--radius-full);
}

.btn-emergency:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(239,68,68,0.3);
  color: white;
}

.btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

.hero-scroll {
  text-align: center;
  z-index: 1;
  margin-top: auto;
  padding-top: 24px;
}

.hero-scroll span {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.scroll-indicator {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 12px;
  animation: bounce 2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

/* --- Sections --- */
.section {
  padding: 100px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-badge {
  display: inline-block;
  padding: 6px 16px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

.subsection-header {
  margin-top: 56px;
  margin-bottom: 28px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}

.subsection-header h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}

.subsection-header h3 i { color: var(--primary); }

/* --- Quick Access Grid --- */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  perspective: 1000px;
}

.quick-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease, transform 0.4s ease;
  text-decoration: none;
  color: var(--text);
  transform-style: preserve-3d;
}

.quick-card:hover {
  transform: translateY(-6px) rotateX(2deg) rotateY(-2deg);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
  color: var(--text);
}

.quick-card-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-card-icon { transform: scale(1.1); }

.quick-card-title { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.quick-card-desc { font-size: 13px; color: var(--text-muted); }

/* --- Card Grid --- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  perspective: 1000px;
}

.card-grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: all 0.3s ease, transform 0.4s ease;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
}

.card:hover {
  transform: translateY(-3px) rotateX(1.5deg) rotateY(-1.5deg);
  box-shadow: var(--shadow-md);
  border-color: rgba(37,99,235,0.3);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 14px;
}

.card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.card-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  line-height: 1.3;
}

.card-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  margin-top: 4px;
}

.card-body { flex: 1; }

.card-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 6px;
}

.card-info i {
  width: 16px;
  text-align: center;
  color: var(--primary);
  font-size: 12px;
}

.card-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 12px;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
  padding-top: 12px;
}

.card-tag {
  padding: 4px 10px;
  background: var(--surface);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.card-actions {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: var(--primary-bg);
  transition: all var(--transition);
  text-decoration: none;
}

.card-link:hover { background: var(--primary); color: white; }

/* Small card variant */
.card-sm { padding: 16px 20px; }
.card-sm .card-header { margin-bottom: 8px; }
.card-sm .card-icon { width: 36px; height: 36px; font-size: 14px; }
.card-sm .card-title { font-size: 14px; }

/* --- Filter Bar --- */
.filter-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 32px;
}

.filter-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
}

.filter-btn:hover { border-color: var(--primary); color: var(--primary); }

.filter-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

/* --- Search Bar Inline --- */
.search-bar-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  max-width: 480px;
  margin: 0 auto 28px;
  transition: all var(--transition);
}

.search-bar-inline:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.search-bar-inline i { color: var(--text-muted); }

.search-bar-inline input {
  flex: 1;
  border: none;
  background: none;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: var(--font);
}

.search-bar-inline input::placeholder { color: var(--text-muted); }

/* --- Table --- */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: var(--surface);
  padding: 14px 16px;
  text-align: left;
  font-weight: 600;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
}

.data-table tr:last-child td { border-bottom: none; }

.data-table tr:hover td { background: var(--primary-bg); }

.table-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
}

/* --- Emergency Banner --- */
.emergency-banner {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  padding: 28px 0;
}

.emergency-content {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.emergency-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 12px rgba(255,255,255,0); }
}

.emergency-text { color: white; }
.emergency-text h3 { font-family: var(--font-display); font-size: 20px; font-weight: 700; }
.emergency-text p { font-size: 14px; opacity: 0.9; }

/* --- Timeline --- */
.timeline { position: relative; padding-left: 40px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 16px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  margin-bottom: 32px;
  padding-left: 24px;
}

.timeline-dot {
  position: absolute;
  left: -31px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--primary);
}

.timeline-year {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 14px;
  color: var(--primary);
  margin-bottom: 4px;
}

.timeline-title {
  font-weight: 700;
  font-size: 16px;
  color: var(--text);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* --- Renault Showcase --- */
.renault-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.renault-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}

.renault-stat-value {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.2;
}

.renault-stat-label {
  font-size: 14px;
  color: var(--text-muted);
  margin-top: 6px;
}

.renault-info {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 24px;
}

.renault-info h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.renault-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.renault-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.renault-list li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.renault-fact {
  background: var(--primary-bg);
  border: 1px solid rgba(37,99,235,0.15);
  border-radius: var(--radius-lg);
  padding: 24px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  font-style: italic;
}

/* --- Form --- */
.form-container { max-width: 640px; margin: 0 auto; }

.modern-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group { margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }

.form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.form-group label i { color: var(--primary); font-size: 13px; }

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  font-family: var(--font);
  transition: all var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-bg);
}

.form-group textarea { resize: vertical; }

/* --- Footer --- */
.footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.footer-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.footer-contact p {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.footer-contact i { color: var(--primary); width: 16px; text-align: center; }

.footer-links h4 {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 20px;
}

.footer-links a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  padding: 5px 0;
  transition: all var(--transition);
  text-decoration: none;
}

.footer-links a:hover { color: var(--primary); transform: translateX(4px); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  text-align: center;
}

.footer-bottom p { font-size: 13px; color: var(--text-muted); }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 900;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(37,99,235,0.35);
}

/* --- Color utilities for icons --- */
.icon-blue { background: rgba(37,99,235,0.1); color: #2563eb; }
.icon-green { background: rgba(16,185,129,0.1); color: #10b981; }
.icon-orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.icon-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.icon-purple { background: rgba(124,58,237,0.1); color: #7c3aed; }
.icon-teal { background: rgba(20,184,166,0.1); color: #14b8a6; }
.icon-pink { background: rgba(236,72,153,0.1); color: #ec4899; }
.icon-indigo { background: rgba(99,102,241,0.1); color: #6366f1; }

.badge-blue { background: rgba(37,99,235,0.1); color: #2563eb; }
.badge-green { background: rgba(16,185,129,0.1); color: #10b981; }
.badge-orange { background: rgba(245,158,11,0.1); color: #f59e0b; }
.badge-red { background: rgba(239,68,68,0.1); color: #ef4444; }
.badge-purple { background: rgba(124,58,237,0.1); color: #7c3aed; }

/* --- Scroll Reveal Animation --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Section position for wave dividers --- */
.section { position: relative; }
.section-alt { position: relative; }

/* --- Wave Section Dividers --- */
.section-wave-top, .section-wave-bottom {
  position: absolute;
  left: 0; right: 0; width: 100%;
  overflow: hidden; line-height: 0;
  pointer-events: none; z-index: 1;
}
.section-wave-top { top: -1px; }
.section-wave-bottom { bottom: -1px; }
.section-wave-top svg, .section-wave-bottom svg { display: block; width: 100%; height: 48px; }
.section-wave-top svg path { fill: var(--bg); }
.section-wave-bottom svg path { fill: var(--bg); }

@media (max-width: 640px) {
  .section-wave-top svg, .section-wave-bottom svg { height: 32px; }
}

/* --- Stagger Reveal for Grid Children --- */
.reveal.visible .quick-card,
.reveal.visible .card,
.reveal.visible .stat-card {
  animation: staggerFadeUp 0.5s ease both;
  animation-delay: calc(var(--stagger-delay, 0) * 1s);
}
@keyframes staggerFadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Glassmorphism Cards (Dark Mode) --- */
[data-theme="dark"] .stat-card {
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(148,163,184,0.1);
}
[data-theme="dark"] .quick-card {
  background: rgba(30,41,59,0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(148,163,184,0.08);
}
[data-theme="dark"] .card {
  background: rgba(30,41,59,0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(148,163,184,0.1);
}
[data-theme="dark"] .stat-card:hover,
[data-theme="dark"] .quick-card:hover,
[data-theme="dark"] .card:hover {
  background: rgba(30,41,59,0.75);
  border-color: rgba(37,99,235,0.3);
}

/* --- Particles Canvas Overlay --- */
#particlesCanvas {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: -1;   /* în spatele conținutului (era 5, deasupra cardurilor) */
}
/* particles visible on all screens - fewer on mobile via JS */
@media (prefers-reduced-motion: reduce) {
  #particlesCanvas { display: none; }
}

/* --- Visitors Widget (footer) --- */
.visitors-widget {
  display: flex;
  justify-content: center;
  gap: 32px;
  padding: 16px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 24px;
}
.visitor-stat {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
}
.visitor-stat span {
  font-weight: 700;
  color: var(--text);
}
.visitor-stat i { font-size: 12px; color: var(--text-muted); }
.visitor-online-dot { color: #10b981 !important; font-size: 10px !important; animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
@media (max-width: 640px) {
  .visitors-widget { gap: 16px; flex-wrap: wrap; }
  .visitor-stat { font-size: 12px; }
}

/* --- PWA Install Banner --- */
#pwa-install-banner {
  position: fixed;
  bottom: -100px;
  left: 50%; transform: translateX(-50%);
  z-index: 10000;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  padding: 14px 20px;
  transition: bottom 0.4s ease, opacity 0.4s ease;
  opacity: 0;
  max-width: 420px;
  width: calc(100% - 32px);
}
#pwa-install-banner.visible {
  bottom: 24px;
  opacity: 1;
}
.pwa-banner-content {
  display: flex;
  align-items: center;
  gap: 12px;
}
.pwa-banner-icon {
  font-size: 24px;
  color: var(--primary);
  flex-shrink: 0;
}
.pwa-banner-text {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 14px;
}
.pwa-banner-text small {
  color: var(--text-muted);
  font-size: 12px;
}
.pwa-install-btn { white-space: nowrap; }
.pwa-dismiss-btn {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 16px;
  flex-shrink: 0;
}
.pwa-dismiss-btn:hover { color: var(--text); }

/* --- Disable 3D Tilt on Touch Devices --- */
@media (hover: none) {
  .quick-card:hover, .card:hover, .stat-card:hover { transform: translateY(-3px); }
  .quick-grid, .card-grid, .hero-stats { perspective: none; }
}

/* --- Despre Titu Page --- */
.despre-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  margin-bottom: 64px;
}
.despre-text-block p { margin-bottom: 16px; line-height: 1.8; color: var(--text-secondary); }
.despre-lead { font-size: 1.1rem; color: var(--text) !important; }
.despre-img-placeholder {
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-lg);
}
.despre-img-placeholder img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}
.img-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.7));
  color: #fff;
  padding: 24px 16px 12px;
  font-size: 13px;
}

.despre-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-bottom: 48px;
}
.despre-stat-card {
  text-align: center;
  padding: 24px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}
.despre-stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.despre-stat-icon { font-size: 24px; color: var(--primary); margin-bottom: 10px; }
.despre-stat-value { font-size: 1.3rem; font-weight: 800; font-family: var(--font-display); color: var(--text); }
.despre-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

.despre-zones {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}
.despre-zones h3 { margin-bottom: 20px; color: var(--text); }
.zone-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.zone-tag {
  background: var(--primary-bg);
  color: var(--primary);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
}
.zone-tag small { color: var(--text-muted); margin-left: 4px; }
.despre-sub-info { font-size: 14px; color: var(--text-secondary); margin-bottom: 8px; line-height: 1.6; }

/* Conducere Grid (Primar + Viceprimar) */
.conducere-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
}
.primar-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px 28px;
  box-shadow: var(--shadow-md);
  transition: var(--transition);
}
.primar-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.primar-photo {
  width: 180px; height: 180px;
  border-radius: 50%;
  overflow: hidden;
  border: 4px solid var(--primary);
  box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
  flex-shrink: 0;
  margin-bottom: 20px;
}
.primar-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center top;
}
.viceprimar-card .primar-photo { border-color: var(--accent); box-shadow: 0 4px 20px rgba(245, 158, 11, 0.2); }
.primar-info h3 { font-size: 1.4rem; font-family: var(--font-display); margin-bottom: 4px; }
.primar-title { color: var(--primary); font-weight: 600; font-size: 15px; display: block; }
.viceprimar-title { color: var(--accent); }
.primar-party { color: var(--text-secondary); font-size: 14px; margin-top: 8px; }
.primar-contact { margin-top: 16px; }
.primar-contact p { font-size: 14px; color: var(--text-secondary); margin-bottom: 6px; }
.primar-contact i { color: var(--primary); width: 18px; }
.primar-program { margin-top: 12px; font-size: 13px; color: var(--text-muted); background: var(--surface); padding: 8px 14px; border-radius: var(--radius); display: inline-block; }

/* Investments mini grid */
.investitii-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }

/* Timeline */
.timeline {
  position: relative;
  padding: 20px 0;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent), var(--primary));
  transform: translateX(-50%);
  border-radius: 3px;
}
.timeline-item {
  position: relative;
  width: 50%;
  padding: 10px 40px 30px;
}
.timeline-item.left { left: 0; text-align: right; }
.timeline-item.right { left: 50%; }
.timeline-dot {
  position: absolute;
  width: 16px; height: 16px;
  background: var(--primary);
  border: 3px solid var(--bg);
  border-radius: 50%;
  top: 14px;
  z-index: 2;
}
.timeline-item.left .timeline-dot { left: auto; right: -8px; }
/* zig-zag: fiecare card începe la jumătatea celui de pe partea opusă (doar pe ecrane late) */
@media (min-width: 769px) {
  .timeline-item { margin-bottom: 0; }
  .timeline-item + .timeline-item { margin-top: -72px; }
}
.timeline-item.right .timeline-dot { left: -8px; }
.timeline-content {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}
.timeline-content:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.timeline-year {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 3px 12px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}
.timeline-content h4 { font-size: 1rem; margin-bottom: 6px; color: var(--text); }
.timeline-content p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* Personalities */
.personalities-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.personality-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: var(--transition);
}
.personality-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.personality-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(37,99,235,0.2));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}
.personality-avatar i { font-size: 32px; color: var(--primary); }
.personality-card h4 { font-size: 1.1rem; margin-bottom: 4px; }
.personality-years { font-size: 13px; color: var(--text-muted); display: block; }
.personality-role { font-size: 13px; color: var(--primary); font-weight: 600; display: block; margin-bottom: 12px; }
.personality-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.personality-achievements {
  text-align: left;
  margin-top: 12px;
  padding-left: 20px;
}
.personality-achievements li {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
  line-height: 1.4;
}

/* Renault section */
.despre-renault {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: center;
}
.renault-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Transport Page - Gara Info */
.gara-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 28px 32px;
  margin-bottom: 32px;
  box-shadow: var(--shadow-sm);
}
.gara-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}
.gara-detail {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}
.gara-detail i { color: var(--primary); width: 18px; text-align: center; flex-shrink: 0; }
.transport-note {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  padding: 12px 20px;
  background: var(--surface);
  border-radius: var(--radius);
}
.transport-note a { color: var(--primary); font-weight: 600; }
.train-route-card .card-title { font-size: 1.1rem; }

/* Despre responsive */
@media (max-width: 768px) {
  .despre-intro { grid-template-columns: 1fr; gap: 24px; }
  .despre-stats { grid-template-columns: repeat(3, 1fr); }
  .conducere-grid { grid-template-columns: 1fr; }
  .primar-card { padding: 24px; }
  .primar-photo { width: 140px; height: 140px; }
  .timeline::before { left: 20px; }
  .timeline-item { width: 100%; left: 0 !important; padding: 10px 10px 20px 50px; text-align: left !important; }
  .timeline-item .timeline-dot { left: 12px !important; right: auto !important; }
  .despre-renault { grid-template-columns: 1fr; }
  .renault-stats { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 480px) {
  .despre-stats { grid-template-columns: repeat(2, 1fr); }
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .nav-menu { display: none; }
  .nav-mobile-btn { display: flex; }

  .nav-menu.active {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100vh - var(--nav-height));
    height: calc(100dvh - var(--nav-height));
    flex: none;
    background: var(--bg);
    padding: 20px;
    overflow-y: auto;
    gap: 4px;
    z-index: 1001;
    animation: slideDown 0.3s ease;
    border-top: 1px solid var(--border);
  }

  @keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-menu.active .nav-dropdown .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    box-shadow: none;
    border: none;
    padding: 0 0 0 16px;
    background: none;
    min-width: 0;
    display: none;
  }

  .nav-menu.active .nav-dropdown.open .dropdown-menu { display: block; }

  .nav-menu.active .dropdown-toggle {
    width: 100%;
    justify-content: space-between;
  }

  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .renault-grid { grid-template-columns: repeat(2, 1fr); }
  .renault-list { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero { padding: 100px 16px 60px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat-card { padding: 18px 12px; }
  .stat-value { font-size: 22px; }
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick-card { padding: 24px 16px; }
  .card-grid { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .modern-form { padding: 24px; }
  .emergency-content { flex-direction: column; text-align: center; }
  .renault-grid { grid-template-columns: 1fr; }
  .container { padding: 0 16px; }
}

/* --- Investment status colors --- */
.status-depus { background: rgba(245,158,11,0.1); color: #f59e0b; }
.status-admis { background: rgba(16,185,129,0.1); color: #10b981; }
.status-executie { background: rgba(37,99,235,0.1); color: #2563eb; }
.status-finalizat { background: rgba(16,185,129,0.1); color: #059669; }
.status-semnat { background: rgba(124,58,237,0.1); color: #7c3aed; }
.status-aprobat { background: rgba(20,184,166,0.1); color: #14b8a6; }

/* --- Rating stars --- */
.rating { display: flex; align-items: center; gap: 4px; margin-top: 8px; }
.rating i { color: #f59e0b; font-size: 12px; }
.rating span { font-size: 13px; font-weight: 600; color: var(--text-muted); margin-left: 4px; }

/* Toast Notification */
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--text);
  color: var(--bg);
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-xl);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
}

.toast.visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

/* --- Page Hero (subpages) --- */
.page-hero {
  padding: 140px 0 60px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(124,58,237,0.04) 0%, transparent 50%);
}

[data-theme="dark"] .page-hero::before {
  background:
    radial-gradient(ellipse at 30% 50%, rgba(37,99,235,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 70% 30%, rgba(124,58,237,0.08) 0%, transparent 50%);
}

.page-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
}

.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
  letter-spacing: -1px;
}

.page-hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 500px;
  margin: 0 auto;
}

/* --- Section More (view all link) --- */
.section-more {
  text-align: center;
  margin-top: 40px;
}

/* --- Hero scroll spacing --- */
.hero-actions { margin-bottom: 0; }

/* --- Floating Action Buttons --- */
.fab-group {
  position: fixed;
  bottom: 28px;
  right: 28px;
  display: flex;
  flex-direction: row;
  gap: 12px;
  z-index: 950;
  align-items: center;
}

.fab {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.fab:hover { transform: scale(1.1); }

.fab-propose {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: white;
}
.fab-propose:hover { box-shadow: 0 8px 24px rgba(245,158,11,0.4); }

.fab-chat {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
}
.fab-chat:hover { box-shadow: 0 8px 24px rgba(37,99,235,0.4); }
.fab-chat.active { background: linear-gradient(135deg, #ef4444, #dc2626); }

.back-to-top { bottom: 92px; right: 28px; }

/* --- Modal (Propose) --- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active { opacity: 1; visibility: visible; }

.modal-box {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  transform: translateY(20px) scale(0.95);
  transition: transform 0.3s ease;
  padding: 28px;
}
.modal-overlay.active .modal-box { transform: translateY(0) scale(1); }

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.modal-header h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.modal-header h3 i { color: var(--accent); }
.modal-header p { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--danger); color: white; border-color: var(--danger); }

/* --- Chatbot --- */
.chatbot {
  position: fixed;
  bottom: 92px;
  right: 28px;
  width: 380px;
  max-height: 520px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  z-index: 960;
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.9);
  transform-origin: bottom right;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  overflow: hidden;
}
.chatbot.open { opacity: 1; visibility: visible; transform: translateY(0) scale(1); }

.chatbot-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
  flex-shrink: 0;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }

.chatbot-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
.chatbot-header-info strong { font-size: 15px; display: block; }
.chatbot-status { font-size: 11px; opacity: 0.8; display: flex; align-items: center; gap: 4px; }
.chatbot-status::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #4ade80; display: inline-block; }

.chatbot-minimize {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.15);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  transition: background 0.2s;
}
.chatbot-minimize:hover { background: rgba(255,255,255,0.3); }

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 300px;
  max-height: 360px;
}
.chat-msg { display: flex; }
.chat-msg.user { justify-content: flex-end; }

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}
.chat-msg.bot .chat-bubble { background: var(--surface); color: var(--text); border-bottom-left-radius: 4px; }
.chat-msg.user .chat-bubble { background: var(--primary); color: white; border-bottom-right-radius: 4px; }

.chat-suggestions { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.chat-suggest-btn {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.chat-suggest-btn:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-bg); }

.typing-indicator .chat-bubble { display: flex; align-items: center; gap: 4px; padding: 14px 20px; }
.typing-indicator .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); animation: typingDot 1.4s infinite; }
.typing-indicator .dot:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator .dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingDot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

.chatbot-input {
  display: flex;
  gap: 8px;
  padding: 12px 16px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}
.chatbot-input input {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 14px;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition);
}
.chatbot-input input:focus { border-color: var(--primary); }
.chatbot-input input::placeholder { color: var(--text-muted); }

.chatbot-input button {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
  transition: all var(--transition);
}
.chatbot-input button:hover { background: var(--primary-dark); }

@media (max-width: 480px) {
  .chatbot { right: 8px; left: 8px; bottom: 80px; width: auto; max-height: 70vh; }
  .fab-group { bottom: 16px; right: 16px; flex-direction: row; gap: 10px; }
  .fab { width: 46px; height: 46px; font-size: 17px; }
  .back-to-top { bottom: 78px; right: 16px; width: 38px; height: 38px; font-size: 14px; }
}

/* ============================================================
   COOKIE CONSENT BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--card-bg);
  border-top: 1px solid var(--border);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
  transform: translateY(100%);
  transition: transform 0.4s ease;
}
.cookie-banner.visible { transform: translateY(0); }
.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cookie-text {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}
.cookie-text i { font-size: 1.4rem; color: var(--primary); flex-shrink: 0; }
.cookie-text p { margin: 0; font-size: 0.9rem; color: var(--text-light); line-height: 1.5; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
@media (max-width: 600px) {
  .cookie-content { flex-direction: column; text-align: center; }
  .cookie-text { flex-direction: column; gap: 8px; }
}

/* ============================================================
   WEATHER WIDGET
   ============================================================ */
.weather-card {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  /* tema luminoasă: card alb cu text închis (înainte era text alb pe fundal alb) */
  background: var(--bg-card, #fff);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border, #e2e8f0);
  border-radius: 16px;
  padding: 8px 20px;
  margin-bottom: 16px;
  color: var(--text, #0f172a);
  box-shadow: 0 8px 24px -16px rgba(15,23,42,.35);
}
[data-theme="dark"] .weather-card {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.12);
  color: #fff;
  box-shadow: none;
}
.weather-icon { width: 48px; height: 48px; color: var(--primary, #2563eb); }
[data-theme="dark"] .weather-icon { color: #fbbf24; }
.weather-temp { font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.weather-desc { font-size: 0.85rem; opacity: 0.9; text-transform: capitalize; }
.weather-details {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  opacity: 0.85;
  border-left: 1px solid var(--border, #e2e8f0);
  padding-left: 12px;
}
[data-theme="dark"] .weather-details { border-left-color: rgba(255,255,255,0.2); }
.weather-details i { width: 14px; text-align: center; margin-right: 4px; }
@media (max-width: 480px) {
  .weather-details { display: none; }
  .weather-card { padding: 6px 14px; }
}

/* ============================================================
   FOOTER CREDIT
   ============================================================ */
.footer-credit {
  margin-top: 8px;
  font-size: 0.85rem;
  color: var(--text-light);
  opacity: 0.8;
}
.footer-credit a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
.footer-credit a:hover { color: var(--primary-light); }
.footer-site-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--primary);
  color: #fff !important;
  padding: 3px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  transition: all var(--transition);
}
.footer-site-btn:hover { background: var(--primary-dark); transform: translateY(-1px); }

.despre-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  font-size: 0.85rem !important;
  font-weight: 600 !important;
  transition: all var(--transition);
}
.despre-nav-link:hover { transform: translateY(-1px); box-shadow: 0 4px 15px rgba(37,99,235,0.3); }

/* ============================================================
   DESPRE PAGE STYLES
   ============================================================ */
.despre-bio-text {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--text-light);
}

.despre-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
@media (max-width: 768px) { .despre-grid { grid-template-columns: 1fr; } }

.despre-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.despre-card:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.despre-card-icon {
  width: 44px; height: 44px;
  background: var(--primary-bg);
  color: var(--primary);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 16px;
}
.despre-card h3 { font-size: 1.1rem; color: var(--text-dark); margin-bottom: 12px; }
.despre-card p { color: var(--text-light); font-size: 0.95rem; line-height: 1.7; }
.despre-card ul { list-style: none; padding: 0; }
.despre-card ul li {
  padding: 6px 0 6px 20px;
  position: relative;
  color: var(--text-light);
  font-size: 0.93rem;
  line-height: 1.6;
}
.despre-card ul li::before {
  content: '\f054';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  position: absolute;
  left: 0;
  color: var(--primary);
  font-size: 0.7rem;
  top: 10px;
}

/* Certifications */
.despre-cert-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.despre-cert-tag {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 18px;
  transition: all var(--transition);
}
.despre-cert-tag:hover { border-color: var(--primary); transform: translateY(-2px); }
.despre-cert-tag i { color: var(--primary); font-size: 1.1rem; }
.despre-cert-tag strong { display: block; font-size: 0.9rem; color: var(--text-dark); }
.despre-cert-tag small { color: var(--text-light); font-size: 0.8rem; }

/* Apps Portfolio */
.despre-app-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  transition: all var(--transition);
}
.despre-app-card:hover { border-color: var(--app-color, var(--primary)); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.despre-app-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}
.despre-app-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.despre-app-header h3 { font-size: 1.1rem; color: var(--text-dark); margin: 0; }
.despre-app-type {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
}
.despre-app-card > p { color: var(--text-light); font-size: 0.93rem; line-height: 1.6; margin-bottom: 14px; }
.despre-app-features { display: flex; flex-wrap: wrap; gap: 8px; }
.despre-app-feat {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px 12px;
  font-size: 0.82rem;
  color: var(--text-light);
}

/* Testimonials Carousel */
.despre-testimonials-wrapper {
  position: relative;
  overflow: hidden;
}
.despre-testimonials-wrapper::before,
.despre-testimonials-wrapper::after {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  width: 80px;
  z-index: 2;
  pointer-events: none;
}
.despre-testimonials-wrapper::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg), transparent);
}
.despre-testimonials-wrapper::after {
  right: 0;
  background: linear-gradient(-90deg, var(--bg), transparent);
}

.despre-testimonials-track {
  display: flex;
  gap: 20px;
  width: max-content;
  animation: scrollTestimonials 160s linear infinite;
}
.despre-testimonials-track:hover {
  animation-play-state: paused;
}

@keyframes scrollTestimonials {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.despre-review-card {
  flex-shrink: 0;
  width: 320px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all var(--transition);
  position: relative;
}
.despre-review-card::before {
  content: '\201C';
  position: absolute;
  top: 10px; right: 18px;
  font-size: 48px;
  font-family: Georgia, serif;
  color: rgba(37, 99, 235, 0.1);
  line-height: 1;
}
.despre-review-card:hover { border-color: var(--primary); transform: translateY(-3px); }
.despre-review-stars { color: #F59E0B; font-size: 0.85rem; margin-bottom: 10px; display: flex; gap: 2px; }
.despre-review-card p { color: var(--text-light); font-size: 0.92rem; line-height: 1.65; font-style: italic; margin-bottom: 14px; min-height: 50px; }
.despre-review-author { display: flex; align-items: center; gap: 10px; }
.despre-review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem; font-weight: 700;
  flex-shrink: 0;
}
.despre-review-author strong { font-size: 0.88rem; color: var(--text-dark); }

.despre-testimonials-count {
  text-align: center;
  margin-top: 24px;
  font-size: 0.88rem;
  color: var(--text-light);
  font-weight: 500;
}
.despre-testimonials-count i { color: #F59E0B; margin-right: 6px; }

/* CTA Box */
.despre-cta-box {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 48px 40px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.despre-cta-box h2 { font-size: 1.6rem; color: var(--text-dark); margin-bottom: 16px; }
.despre-cta-box > p { color: var(--text-light); font-size: 0.95rem; line-height: 1.8; margin-bottom: 24px; max-width: 650px; margin-left: auto; margin-right: auto; }
.despre-contact-details { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; margin-bottom: 24px; }
.despre-contact-item {
  display: flex; align-items: center; gap: 8px;
  color: var(--text-light); font-size: 0.93rem; text-decoration: none;
  transition: color var(--transition);
}
a.despre-contact-item:hover { color: var(--primary); }
.despre-cta-buttons { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 480px) { .despre-cta-box { padding: 28px 20px; } }

/* ============================================================
   FORUM STYLES
   ============================================================ */
.forum-container { max-width: 700px; margin: 0 auto; }
.forum-auth-bar {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 20px; margin-bottom: 20px;
}
.forum-user { display: flex; align-items: center; gap: 10px; }
.forum-avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.forum-login-prompt { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 16px; }
.forum-login-prompt p { margin: 0; color: var(--text-light); font-size: 0.93rem; }
@media (max-width: 480px) { .forum-login-prompt { flex-direction: column; gap: 10px; text-align: center; } }

.forum-compose {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px; margin-bottom: 20px;
}
.forum-compose textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px; padding: 12px;
  font-family: inherit; font-size: 0.95rem; resize: vertical; min-height: 80px;
  background: var(--bg-alt); color: var(--text-dark); transition: border-color var(--transition);
}
.forum-compose textarea:focus { outline: none; border-color: var(--primary); }
.forum-compose-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.forum-compose-actions small { color: var(--text-light); }

.forum-feed { display: flex; flex-direction: column; gap: 16px; }
.forum-post {
  background: var(--card-bg); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px; transition: all var(--transition);
}
.forum-post:hover { border-color: var(--primary); }
.forum-post-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.forum-post-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.forum-post-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #8B5CF6);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.forum-post-meta { flex: 1; }
.forum-post-meta strong { display: block; font-size: 0.95rem; color: var(--text-dark); }
.forum-post-meta small { color: var(--text-light); font-size: 0.82rem; }
.forum-post-delete {
  background: none; border: none; color: var(--text-light); cursor: pointer;
  padding: 6px; border-radius: 6px; transition: all var(--transition);
}
.forum-post-delete:hover { color: #EF4444; background: rgba(239,68,68,0.1); }
.forum-post-content { font-size: 0.95rem; line-height: 1.7; color: var(--text-dark); margin-bottom: 14px; word-wrap: break-word; }
.forum-post-actions { display: flex; gap: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.forum-action-btn {
  background: none; border: none; cursor: pointer; display: flex; align-items: center; gap: 6px;
  color: var(--text-light); font-size: 0.88rem; padding: 6px 10px; border-radius: 8px;
  transition: all var(--transition);
}
.forum-action-btn:hover { background: var(--bg-alt); color: var(--primary); }
.forum-action-btn.liked { color: #EF4444; }
.forum-action-btn.liked:hover { color: #DC2626; }

.forum-comments-section { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.forum-comment { padding: 10px 0; border-bottom: 1px solid var(--border); }
.forum-comment:last-child { border-bottom: none; }
.forum-comment strong { font-size: 0.88rem; color: var(--text-dark); }
.forum-comment-time { font-size: 0.78rem; color: var(--text-light); margin-left: 8px; }
.forum-comment p { font-size: 0.9rem; color: var(--text-light); margin: 4px 0 0; }
.forum-no-comments { color: var(--text-light); font-size: 0.88rem; font-style: italic; }
.forum-comment-login { color: var(--text-light); font-size: 0.85rem; font-style: italic; }
.forum-comment-input { display: flex; gap: 8px; margin-top: 10px; }
.forum-comment-input input {
  flex: 1; padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-family: inherit; font-size: 0.88rem; background: var(--bg-alt); color: var(--text-dark);
}
.forum-comment-input input:focus { outline: none; border-color: var(--primary); }
.forum-comment-input button {
  background: var(--primary); color: #fff; border: none; border-radius: 8px;
  padding: 8px 14px; cursor: pointer; transition: background var(--transition);
}
.forum-comment-input button:hover { background: var(--primary-dark); }
.forum-loading, .forum-empty { text-align: center; padding: 40px 20px; color: var(--text-light); }
.forum-empty i { font-size: 2.5rem; color: var(--primary); margin-bottom: 12px; display: block; }
.forum-empty h3 { color: var(--text-dark); margin-bottom: 8px; }
.forum-notice {
  text-align: center; padding: 30px; background: var(--card-bg);
  border: 1px solid var(--border); border-radius: var(--radius); color: var(--text-light);
}
.forum-notice i { font-size: 1.5rem; color: var(--primary); margin-bottom: 8px; display: block; }

/* Forum - Image Upload */
.forum-upload-area {
  display: flex; align-items: center; gap: 12px; margin-top: 10px;
}
.forum-upload-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: none; border: 1px dashed var(--border); border-radius: var(--radius-sm);
  padding: 8px 16px; font-size: 0.85rem; color: var(--text-secondary);
  cursor: pointer; transition: all 0.2s; font-family: var(--font);
}
.forum-upload-btn:hover { border-color: var(--primary); color: var(--primary); }
.forum-upload-counter { color: var(--text-muted); font-size: 0.8rem; }
.forum-upload-preview {
  display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px;
}
.forum-upload-thumb {
  position: relative; width: 80px; height: 80px; border-radius: var(--radius-sm);
  overflow: hidden; border: 1px solid var(--border);
}
.forum-upload-thumb img { width: 100%; height: 100%; object-fit: cover; }
.forum-upload-thumb-remove {
  position: absolute; top: 2px; right: 2px; width: 22px; height: 22px;
  background: rgba(0,0,0,0.6); color: #fff; border: none; border-radius: 50%;
  font-size: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  line-height: 1; transition: background 0.2s;
}
.forum-upload-thumb-remove:hover { background: #ef4444; }

/* Forum - Post Image Gallery */
.forum-post-images {
  display: grid; gap: 6px; margin-bottom: 14px; border-radius: var(--radius-sm); overflow: hidden;
}
.forum-post-images.single { grid-template-columns: 1fr; }
.forum-post-images.double { grid-template-columns: 1fr 1fr; }
.forum-post-images.multi { grid-template-columns: 1fr 1fr; }
.forum-post-images img {
  width: 100%; height: 220px; object-fit: cover; cursor: pointer;
  transition: opacity 0.2s; border-radius: 4px;
}
.forum-post-images.single img { height: 340px; }
.forum-post-images img:hover { opacity: 0.9; }
@media (max-width: 480px) {
  .forum-post-images img { height: 160px; }
  .forum-post-images.single img { height: 240px; }
}

/* Forum - Lightbox */
.forum-lightbox {
  position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  animation: forumLbIn 0.2s ease;
}
@keyframes forumLbIn { from { opacity: 0; } to { opacity: 1; } }
.forum-lightbox img {
  max-width: 90vw; max-height: 90vh; object-fit: contain; border-radius: 4px;
}
.forum-lightbox-close {
  position: absolute; top: 16px; right: 16px; width: 44px; height: 44px;
  background: rgba(255,255,255,0.15); color: #fff; border: none; border-radius: 50%;
  font-size: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.2s; z-index: 1;
}
.forum-lightbox-close:hover { background: rgba(255,255,255,0.3); }
.forum-lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; background: rgba(255,255,255,0.15); color: #fff;
  border: none; border-radius: 50%; font-size: 18px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; transition: background 0.2s;
}
.forum-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.forum-lightbox-nav.prev { left: 16px; }
.forum-lightbox-nav.next { right: 16px; }
.forum-lightbox-counter {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.8); font-size: 0.9rem; font-weight: 500;
  background: rgba(0,0,0,0.5); padding: 4px 14px; border-radius: 20px;
}

/* Forum — Link Input & Source Link & Share Highlight */
.forum-link-input {
  display: flex; align-items: center; gap: 8px;
  margin-top: 10px; padding: 0 12px;
  border: 1px solid var(--border); border-radius: 10px;
  background: var(--bg-card); transition: border-color 0.2s;
}
.forum-link-input:focus-within { border-color: var(--primary); }
.forum-link-input i { color: var(--text-light); font-size: 0.9rem; }
.forum-link-input input {
  flex: 1; border: none; background: transparent; padding: 10px 0;
  font-size: 0.9rem; color: var(--text-dark); outline: none; font-family: inherit;
}
.forum-link-input input::placeholder { color: var(--text-light); }
.forum-source-link {
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--primary); font-size: 0.88rem; margin-bottom: 12px;
  text-decoration: none; font-weight: 500;
}
.forum-source-link:hover { text-decoration: underline; }
.forum-post-highlight {
  animation: forumHighlight 3s ease-out;
}
@keyframes forumHighlight {
  0%, 30% { box-shadow: 0 0 0 3px var(--primary); border-color: var(--primary); }
  100% { box-shadow: none; }
}

/* ============================================================
   TEAM SHOWCASE — ACS Urban Titu
   ============================================================ */
.team-showcase {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
}
.team-hero {
  display: flex;
  gap: 30px;
  padding: 30px;
  align-items: center;
}
.team-logo {
  flex-shrink: 0;
}
.team-logo img {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.team-info {
  flex: 1;
}
.team-name {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0 0 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.team-badge {
  display: inline-block;
  background: linear-gradient(135deg, #dc2626, #1e40af);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 12px;
}
.team-description {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 16px;
}
.team-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  margin-bottom: 16px;
}
.team-detail {
  font-size: 0.88rem;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}
.team-detail i {
  color: var(--primary);
  width: 16px;
  text-align: center;
}
.team-detail a {
  color: var(--primary);
  text-decoration: none;
}
.team-detail a:hover {
  text-decoration: underline;
}
.team-links {
  display: flex;
  gap: 10px;
}
.team-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}
.team-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  cursor: pointer;
  transition: opacity 0.2s;
}
.team-gallery img:hover {
  opacity: 0.85;
}
@media (max-width: 768px) {
  .team-hero {
    flex-direction: column;
    text-align: center;
    padding: 24px 20px;
  }
  .team-logo img {
    width: 90px;
    height: 90px;
  }
  .team-name { font-size: 1.3rem; }
  .team-details { justify-content: center; }
  .team-links { justify-content: center; }
  .team-gallery {
    grid-template-columns: repeat(2, 1fr);
  }
  .team-gallery img { height: 150px; }
}

/* ============================================================
   PHOTO UPLOAD — Sesizări
   ============================================================ */
.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  cursor: pointer;
  transition: all 0.25s ease;
  background: var(--bg-alt);
  min-height: 120px;
}
.photo-upload-zone:hover,
.photo-upload-zone.drag-over {
  border-color: var(--primary);
  background: var(--primary-bg);
}
.photo-upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  color: var(--text-muted);
  text-align: center;
}
.photo-upload-placeholder i {
  font-size: 2rem;
  color: var(--primary-light);
  margin-bottom: 8px;
}
.photo-upload-placeholder p {
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--text-secondary);
}
.photo-upload-placeholder span {
  font-size: 12px;
  color: var(--text-muted);
}

.photo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo-preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.photo-preview-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.photo-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 26px;
  height: 26px;
  background: rgba(239, 68, 68, 0.9);
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
}
.photo-remove-btn:hover { background: #dc2626; }

.photo-add-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  border: 2px dashed var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
  font-size: 13px;
  gap: 4px;
}
.photo-add-more:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.photo-add-more i { font-size: 1.2rem; }

/* ============================================================
   SESIZĂRI RECENTE — Photo Thumbnails
   ============================================================ */
.sesizare-photos {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}
.sesizare-thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
}
.sesizare-thumb:hover {
  transform: scale(1.08);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   DN7 TRAFFIC SECTION — Transport
   ============================================================ */
.dn7-traffic-live {
  text-align: center;
  padding: 48px 32px;
  background: linear-gradient(135deg, var(--primary-bg), rgba(245, 158, 11, 0.08));
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  margin-bottom: 32px;
}
.dn7-traffic-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
  animation: dn7Pulse 2s ease-in-out infinite;
}
@keyframes dn7Pulse {
  0%, 100% { box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3); }
  50% { box-shadow: 0 4px 25px rgba(245, 158, 11, 0.5); }
}
.dn7-traffic-live h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: var(--text);
}
.dn7-traffic-live p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 520px;
  margin: 0 auto 24px;
}
.dn7-traffic-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.dn7-traffic-buttons .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
}
.dn7-traffic-buttons .btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}
.dn7-traffic-buttons .btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  color: #fff;
}
.dn7-traffic-buttons .btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.dn7-traffic-buttons .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
}

.dn7-stats-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  margin-bottom: 24px;
}
.dn7-stats-grid .card-sm {
  text-align: center;
}
.dn7-stats-grid .card-header {
  justify-content: center;
}
.dn7-stats-grid .card-body {
  text-align: center;
}

.dn7-info-grid {
  grid-template-columns: repeat(3, 1fr) !important;
}

/* ============================================================
   RESPONSIVE — New Features
   ============================================================ */
@media (max-width: 900px) {
  .dn7-stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .dn7-info-grid { grid-template-columns: repeat(2, 1fr) !important; }
}

@media (max-width: 768px) {
  .dn7-traffic-live { padding: 32px 20px; }
}

@media (max-width: 600px) {
  .dn7-info-grid { grid-template-columns: 1fr !important; }
  .photo-preview-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
}

@media (max-width: 480px) {
  .dn7-stats-grid { grid-template-columns: 1fr !important; }
  .dn7-traffic-live { padding: 24px 16px; }
  .dn7-traffic-icon { width: 48px; height: 48px; font-size: 18px; }
  .dn7-traffic-live h3 { font-size: 1.15rem; }
  .sesizare-thumb { width: 52px; height: 52px; }
}

/* ============================================================
   FUNCȚII NOI (features.js) – deschis acum, trenuri, aer, alerte,
   știri automate, investiții, ghiduri, anunțuri, hartă
   ============================================================ */
.open-row { margin-top: -2px; }
.open-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: var(--radius-full); line-height: 1.4; }
.open-badge i { font-size: 0.5rem; }
.open-badge small { font-weight: 500; opacity: 0.8; }
.open-badge.open { background: rgba(16,185,129,0.12); color: #047857; }
.open-badge.soon { background: rgba(245,158,11,0.15); color: #b45309; }
.open-badge.closed { background: rgba(239,68,68,0.1); color: #b91c1c; }
[data-theme="dark"] .open-badge.open { color: #34d399; }
[data-theme="dark"] .open-badge.soon { color: #fbbf24; }
[data-theme="dark"] .open-badge.closed { color: #f87171; }
.open-now-bar { position: sticky; top: var(--nav-height); z-index: 40; background: var(--bg-elevated); border-bottom: 1px solid var(--border); padding: 10px 0; }
.open-now-bar .container { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.open-now-toggle { font: inherit; font-weight: 600; font-size: 0.9rem; padding: 8px 16px; border-radius: var(--radius-full); border: 1.5px solid var(--success); background: transparent; color: var(--success); cursor: pointer; }
.open-now-toggle[aria-pressed="true"] { background: var(--success); color: #fff; }
.open-now-hint { color: var(--text-muted); font-size: 0.85rem; }
.only-open .card[data-open="closed"] { display: none; }

.train-row { display: grid; grid-template-columns: 58px 76px 1fr auto; gap: 8px; align-items: center; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: 0.9rem; }
.train-row:last-child { border-bottom: 0; }
.train-row.first .train-time { color: var(--primary); font-size: 1.15rem; }
.train-time { font-weight: 800; font-family: var(--font-display); }
.train-num { color: var(--text-muted); font-size: 0.8rem; }
.train-rel { font-weight: 600; }
.train-arr { color: var(--text-muted); font-size: 0.8rem; }
.train-note { grid-column: 1 / -1; color: var(--text-muted); font-size: 0.85rem; margin-top: 4px; }

.air-widget { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 14px; align-items: center; margin: 10px auto 18px; font-size: 0.85rem; color: var(--text-secondary); }
.aqi-pill { font-weight: 700; padding: 4px 12px; border-radius: var(--radius-full); color: #fff; }
.aqi-good { background: #10b981; } .aqi-fair { background: #65a30d; } .aqi-moderate { background: #ca8a04; }
.aqi-poor { background: #ea580c; } .aqi-vpoor { background: #dc2626; } .aqi-epoor { background: #7f1d1d; }

.cal-subscribe { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 18px; }
.cal-subscribe small { width: 100%; text-align: center; color: var(--text-muted); }
.card-link.muted { color: var(--text-muted); }
.card-actions { flex-wrap: wrap; gap: 12px; }

.now-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.now-tile { display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none; height: 100%; transition: transform var(--transition), box-shadow var(--transition); }
.now-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.now-tile .card-icon { flex-shrink: 0; }
.now-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); font-weight: 700; }
.now-body { font-size: 0.95rem; margin-top: 2px; }

.alert-banner { display: flex; align-items: center; gap: 12px; padding: 10px 20px; margin-top: var(--nav-height); color: #fff; text-decoration: none; font-size: 0.92rem; position: relative; z-index: 30; }
.alert-banner > span:first-of-type { flex: 1; }
.alert-banner-go { font-weight: 700; white-space: nowrap; }
.alert-banner.sev-urgent { background: #dc2626; } .alert-banner.sev-important { background: #c2410c; } .alert-banner.sev-info { background: var(--primary); }
.alert-card { border-left: 5px solid var(--primary); }
.alert-card.sev-urgent { border-left-color: #dc2626; } .alert-card.sev-important { border-left-color: #ea580c; }
.alert-card.closed { opacity: 0.75; border-left-color: var(--success); }
.alert-card .card-icon { background: var(--surface); color: var(--text); }
.alert-meta { color: var(--text-muted); font-size: 0.8rem; margin-top: 8px; }
.all-clear { grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding: 22px; border-radius: var(--radius-lg); background: rgba(16,185,129,0.1); color: #047857; font-weight: 600; }
[data-theme="dark"] .all-clear { color: #34d399; }
.push-status { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.push-status > i { font-size: 1.8rem; color: var(--primary); }
.push-status p { flex: 1; min-width: 220px; margin: 0; }
.tutorial { counter-reset: step; display: grid; gap: 14px; padding: 0; list-style: none; }
.tutorial li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.tutorial li::before { content: counter(step); position: absolute; left: 14px; top: 12px; width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 800; display: grid; place-items: center; }
.tutorial code, .copy-code { background: var(--surface); padding: 2px 8px; border-radius: var(--radius-sm); font-weight: 700; }
.tab-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.feed-card { padding: 18px; }
.feed-meta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 8px; }
.feed-source { font-weight: 700; color: var(--primary); }
.feed-titu { background: var(--primary-bg); color: var(--primary); font-weight: 700; padding: 1px 8px; border-radius: var(--radius-full); }
.feed-title { font-size: 1.02rem; line-height: 1.35; margin: 0 0 8px; }
.feed-title a { color: var(--text); text-decoration: none; }
.feed-title a:hover { color: var(--primary); }
.feed-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 18px; }
.feed-toolbar input, .feed-toolbar select { font: inherit; padding: 9px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); color: var(--text); }
.feed-toolbar input { flex: 1; min-width: 180px; }
.feed-info { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 14px; }
.empty-note { grid-column: 1 / -1; color: var(--text-muted); text-align: center; padding: 24px; }

.inv-card.overdue { border-color: rgba(239,68,68,0.45); }
.inv-timeline { list-style: none; margin: 12px 0 0; padding: 0 0 0 14px; border-left: 2px solid var(--border); display: grid; gap: 10px; }
.inv-timeline li { position: relative; font-size: 0.86rem; color: var(--text-secondary); }
.inv-timeline li::before { content: ""; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--primary); }
.inv-timeline li.more { display: none; }
.card-body.expanded .inv-timeline li.more { display: block; }
.inv-timeline time { display: block; font-weight: 700; color: var(--text); font-size: 0.8rem; }
.inv-more { margin-top: 8px; background: none; border: 0; color: var(--primary); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.inv-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.inv-photos figure { margin: 0; position: relative; }
.inv-photos img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.inv-photos figcaption { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,0.6); color: #fff; font-size: 0.75rem; padding: 2px 8px; border-radius: var(--radius-full); }
.inv-updated { margin-top: 10px; font-size: 0.78rem; color: var(--text-muted); }

.guide-card { padding: 0; overflow: hidden; }
.guide-card summary { list-style: none; display: flex; gap: 14px; align-items: flex-start; padding: 18px; cursor: pointer; }
.guide-card summary::-webkit-details-marker { display: none; }
.guide-card summary .card-desc { margin: 4px 0 0; }
.guide-chevron { margin-left: auto; color: var(--text-muted); transition: transform var(--transition); }
.guide-card[open] .guide-chevron { transform: rotate(180deg); }
.guide-body { padding: 0 18px 18px; border-top: 1px solid var(--border); font-size: 0.92rem; }
.guide-body h4 { margin: 16px 0 6px; font-size: 0.92rem; }
.guide-body ul, .guide-body ol { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.guide-note { background: var(--primary-bg); padding: 10px 12px; border-radius: var(--radius); margin-top: 14px; }
.guides-grid { display: grid; gap: 14px; }

.offer-card { padding: 16px; gap: 6px; }
.offer-store { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; color: #b45309; letter-spacing: 0.04em; }
[data-theme="dark"] .offer-store { color: var(--accent); }
.offer-product { font-weight: 600; }
.offer-product small { color: var(--text-muted); font-weight: 400; }
.offer-price strong { font-size: 1.3rem; color: var(--danger); font-family: var(--font-display); }
.offer-price s { color: var(--text-muted); margin-left: 6px; }
.form-result { margin-top: 12px; font-weight: 600; }
.form-result.ok { color: var(--success); } .form-result.err { color: var(--danger); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; font-size: 0.88rem; color: var(--text-secondary); margin: 6px 0 14px; }
.consent-row input { margin-top: 3px; width: auto; }
.prose { max-width: 820px; margin: 0 auto; line-height: 1.7; }
.prose h2 { margin-top: 2rem; font-size: 1.3rem; }
.prose ul { padding-left: 22px; }

/* Harta */
.map-layout { display: grid; grid-template-columns: 300px 1fr; gap: 16px; min-height: 70vh; }
.map-panel { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 14px; overflow: auto; max-height: 78vh; }
.map-panel input[type="search"] { width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); color: var(--text); margin-bottom: 10px; }
.map-cat { display: flex; align-items: center; gap: 8px; padding: 6px 4px; font-size: 0.9rem; cursor: pointer; }
.map-cat .dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.map-cat .n { margin-left: auto; color: var(--text-muted); font-size: 0.8rem; }
#map { border-radius: var(--radius-lg); border: 1px solid var(--border); min-height: 70vh; z-index: 1; }
.map-pin { width: 28px; height: 28px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,0.35); }
.map-pin i { transform: rotate(45deg); color: #fff; font-size: 12px; }
.map-pin.approx { opacity: 0.85; border-style: dashed; }
.leaflet-popup-content { font-family: var(--font); font-size: 0.88rem; line-height: 1.5; }
.leaflet-popup-content strong { font-size: 0.98rem; }
.map-note { font-size: 0.8rem; color: var(--text-muted); margin-top: 10px; }
.map-unplaced summary { cursor: pointer; font-weight: 600; margin-top: 12px; font-size: 0.88rem; }
.map-unplaced li { font-size: 0.82rem; color: var(--text-secondary); }
@media (max-width: 860px) {
  .map-layout { grid-template-columns: 1fr; }
  .map-panel { max-height: none; order: 2; }
  #map { min-height: 60vh; }
  .train-row { grid-template-columns: 52px 1fr auto; }
  .train-arr { display: none; }
}

/* ---------- știri culese de agenți: categorie, comunicate oficiale, „Și la”, rezumatul zilei ---------- */
.feed-cat { background: var(--bg-alt, rgba(100,116,139,.12)); color: var(--text-muted); font-weight: 600; padding: 1px 8px; border-radius: var(--radius-full); }
.feed-off { background: rgba(16,185,129,.12); color: #059669; font-weight: 700; padding: 1px 8px; border-radius: var(--radius-full); }
.feed-official { border-left: 3px solid #10b981; }
.feed-also { font-size: .85rem; color: var(--text-muted); margin: -2px 0 10px; }
.feed-also a { color: var(--primary); text-decoration: none; }
.digest { max-width: 860px; margin: 0 auto; }
.digest-title { font-size: 1.5rem; line-height: 1.3; margin: 12px 0 8px; }
.digest-intro { font-size: 1.05rem; color: var(--text-muted); margin: 0 0 18px; }
.digest-list { margin: 0; padding-left: 22px; display: grid; gap: 12px; }
.digest-list li { line-height: 1.5; }
.digest-list li span { color: var(--text-muted); }
.digest-list li a { color: var(--primary); font-size: .85rem; white-space: nowrap; text-decoration: none; }
@media (max-width: 600px) { .digest-title { font-size: 1.25rem; } .feed-toolbar select { flex: 1; min-width: 140px; } }

/* ---------- instalarea aplicației: recomandare Chrome pe Android ---------- */
.tutorial-note { margin: 16px 0 10px; padding: 12px 14px; border-radius: var(--radius); background: rgba(245,158,11,.1); border: 1px solid rgba(245,158,11,.35); font-size: .9rem; line-height: 1.5; }
.tutorial-note i { color: #f59e0b; }
.pwa-banner-text small a { color: inherit; text-decoration: underline; }

/* ---------- primarul: antet + postări în carduri proprii ---------- */
.mayor-section { position: relative; }
.mayor-hero { display: flex; align-items: center; gap: 20px; padding: 22px 24px; border-radius: 24px; margin: 0;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%); color: #fff; box-shadow: 0 18px 40px -18px rgba(37,99,235,.55); position: relative; overflow: hidden; }
.mayor-hero::after { content: ''; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.08); }
.mayor-avatar-wrap { position: relative; flex: 0 0 auto; width: 84px; height: 84px; border-radius: 50%; padding: 3px; background: linear-gradient(135deg, #fbbf24, #f472b6, #60a5fa); }
.mayor-avatar, .mayor-initials { width: 100%; height: 100%; border-radius: 50%; border: 3px solid #1e40af; object-fit: cover; display: block; }
.mayor-initials { display: none; place-items: center; background: #1e40af; font-weight: 800; font-size: 1.6rem; }
.mayor-avatar-wrap.no-photo .mayor-initials { display: grid; }
.mayor-id { flex: 1; min-width: 0; position: relative; z-index: 1; }
.mayor-role { display: inline-flex; gap: 6px; align-items: center; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.mayor-name { margin: 4px 0 2px; font-size: 1.55rem; line-height: 1.2; color: #fff; }
.mayor-sub { margin: 0; opacity: .85; font-size: .95rem; }
.mayor-follow { position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; gap: 8px; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: #fff; color: #1d4ed8; font-weight: 700; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease; }
.mayor-follow:hover { transform: translateY(-1px); box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }
@media (max-width: 640px) {
  .mayor-hero { flex-wrap: wrap; padding: 18px; gap: 14px; }
  .mayor-avatar-wrap { width: 68px; height: 68px; }
  .mayor-name { font-size: 1.25rem; }
  .mayor-follow { width: 100%; justify-content: center; }
}

.section-tight { padding-top: 28px; padding-bottom: 28px; }

a.mayor-hero { text-decoration: none; transition: transform .2s ease, box-shadow .2s ease; }
a.mayor-hero:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -20px rgba(37,99,235,.65); }
a.mayor-hero:hover .mayor-follow { box-shadow: 0 8px 20px -8px rgba(0,0,0,.4); }

/* ===== Ce s-a făcut în Titu (proiecte.html) ===== */
.proj-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.proj-stat { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 16px 18px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: var(--bg-card); color: var(--text); font: inherit; cursor: pointer; text-align: left; transition: var(--transition); }
.proj-stat:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.proj-stat i { color: var(--primary); font-size: 18px; }
.proj-stat b { font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.proj-stat span { font-size: 13px; color: var(--text-secondary); }
#projRecent h3 { font-size: 15px; margin: 6px 0 10px; color: var(--text); }
#projRecent h3 i { color: #f59e0b; }
.proj-recent { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 22px; scrollbar-width: thin; }
.proj-chip { flex: 0 0 auto; max-width: 260px; display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: var(--radius); background: rgba(16,185,129,0.08); border: 1px solid rgba(16,185,129,0.25); color: var(--text); font-size: 13px; font-weight: 600; text-decoration: none; }
.proj-chip time { font-size: 11px; font-weight: 500; color: var(--text-muted); }
.proj-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.proj-toolbar .filter-bar { margin: 0; }
.proj-search { display: flex; gap: 8px; flex-wrap: wrap; }
.proj-search select, .proj-search input { padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); color: var(--text); font: inherit; font-size: 14px; }
.proj-search input { min-width: 220px; }
.proj-steps { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); margin: 4px 0 12px; padding: 0; counter-reset: s; }
.proj-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 10.5px; color: var(--text-muted); text-align: center; }
.proj-steps li span { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--border); }
.proj-steps li::before { content: ''; position: absolute; top: 5px; left: -50%; width: 100%; height: 2px; background: var(--border); }
.proj-steps li:first-child::before { display: none; }
.proj-steps li.done span { background: var(--primary); border-color: var(--primary); }
.proj-steps li.done::before { background: var(--primary); }
.proj-steps li.now { color: var(--text); font-weight: 700; }
.proj-steps li.now span { box-shadow: 0 0 0 4px var(--primary-bg); }
.proj-card[data-stage="finalizat"] .proj-steps li.done span, .proj-card[data-stage="finalizat"] .proj-steps li.done::before { background: #10b981; border-color: #10b981; }
.proj-steps.blocked li.done span, .proj-steps.blocked li.done::before { background: #ef4444; border-color: #ef4444; }
.proj-progress { position: relative; height: 18px; border-radius: 999px; background: var(--surface); overflow: hidden; margin-bottom: 12px; }
.proj-progress span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }
.proj-progress b { position: relative; display: block; text-align: center; font-size: 11px; line-height: 18px; color: var(--text); }
.proj-facts { display: grid; gap: 8px; margin: 10px 0 4px; }
.proj-facts > div { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--text); }
.proj-facts i { color: var(--primary); width: 16px; margin-top: 3px; text-align: center; }
.proj-facts small { display: block; font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .4px; }
.proj-last { margin-top: 10px; font-size: 13px; color: var(--text-secondary); line-height: 1.5; }
.proj-last time { font-weight: 700; color: var(--text); margin-right: 4px; }
.proj-card.proj-focus { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-bg); }
@media (max-width: 768px) {
  .proj-stats { grid-template-columns: repeat(2, 1fr); }
  .proj-search, .proj-search input { width: 100%; min-width: 0; }
  .proj-search select { flex: 1; }
}

/* ===== Mandatul actual (proiecte.html) ===== */
.mandate-card { position: relative; overflow: hidden; border-radius: 24px; padding: 26px 28px; margin-bottom: 26px; color: #fff;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #7c3aed 100%); box-shadow: var(--shadow-md); }
.mandate-card::after { content: ''; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.07); pointer-events: none; }
.mandate-head { display: flex; gap: 22px; align-items: center; position: relative; z-index: 1; }
.mandate-photo { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.85); flex: 0 0 auto; }
.mandate-kicker { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; opacity: .85; }
.mandate-head h2 { font-family: var(--font-display); font-size: 26px; margin: 2px 0 6px; color: #fff; }
.mandate-head p { margin: 0 0 10px; opacity: .92; line-height: 1.55; max-width: 760px; }
.mandate-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(255,255,255,.16); padding: 6px 12px; border-radius: 999px; text-decoration: none; }
.mandate-link:hover { background: rgba(255,255,255,.26); }
.mandate-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.mandate-stats button { text-align: left; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.12); color: #fff; border-radius: 16px; padding: 14px 16px; font: inherit; cursor: pointer; transition: var(--transition); }
.mandate-stats button:hover { background: rgba(255,255,255,.22); transform: translateY(-2px); }
.mandate-stats b { display: block; font-family: var(--font-display); font-size: 30px; line-height: 1.1; }
.mandate-stats span { font-size: 13px; opacity: .9; }
.mandate-hl { position: relative; z-index: 1; list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.mandate-hl li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; }
.mandate-hl li > i { color: #fde047; margin-top: 4px; }
.mandate-hl a { color: #fff; text-decoration: underline; opacity: .85; font-size: 13px; }
.mandate-why { position: relative; z-index: 1; margin-top: 16px; background: rgba(0,0,0,.15); border-radius: 14px; padding: 10px 14px; }
.mandate-why summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.mandate-why p { margin: 10px 0 2px; font-size: 14px; line-height: 1.6; opacity: .95; }
.proj-attr { display: block; font-style: normal; font-size: 12px; font-weight: 600; color: #7c3aed; margin-top: 2px; }
[data-theme="dark"] .proj-attr { color: #c4b5fd; }
@media (max-width: 768px) {
  .mandate-card { padding: 20px; }
  .mandate-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .mandate-photo { width: 76px; height: 76px; }
  .mandate-stats { grid-template-columns: 1fr; }
}
.mandate-others { position: relative; z-index: 1; margin-top: 18px; }
.mandate-others h3 { font-size: 14px; margin: 0 0 8px; color: #fff; opacity: .9; }
.mandate-others { display: flex; flex-wrap: wrap; gap: 8px; }
.mandate-others h3 { flex: 0 0 100%; }
.mandate-other { display: flex; flex-direction: column; gap: 2px; padding: 8px 12px; border-radius: 12px; background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.35); color: #fff; text-decoration: none; font-size: 13px; max-width: 320px; }
.mandate-other span { font-size: 11.5px; opacity: .85; }

/* pagina „Ce s-a făcut în Titu” ascunsă din admin */
.no-projects #investments, .no-projects .despre-investitii { display: none !important; }

/* ===== Widget-uri „Titu acum”: ANM, carburanți, calendar, BNR ===== */
.now-body small { color: var(--text-muted); font-size: 0.8rem; }
.now-title .cal-red { color: #dc2626; text-transform: none; letter-spacing: 0; }
.now-body .up { color: #dc2626; font-size: 0.75em; }
.now-body .down { color: #059669; font-size: 0.75em; }
.gas-prices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--border); }
.gas-prices span { display: flex; flex-direction: column; padding: 6px 10px; border-radius: var(--radius); background: var(--surface); min-width: 92px; }
.gas-prices small { font-size: 11px; color: var(--text-muted); }
.gas-prices b { font-family: var(--font-display); font-size: 18px; color: var(--text); }
.gas-prices em { flex: 0 0 100%; font-size: 12px; font-style: normal; color: var(--text-muted); }

/* plăcuțele „Titu acum” și alte carduri-link: textul nu se face albastru la hover, titlurile au contrast bun */
.now-tile, .now-tile:hover, .now-tile:visited { color: var(--text); }
.now-title { color: var(--text-secondary); }
.now-body strong { color: var(--text); }
.mandate-other:hover, .mandate-link:hover { color: #fff; }
.proj-chip:hover { color: var(--text); border-color: rgba(16,185,129,0.6); }

/* ===== Autobuze & microbuze: orele de plecare ===== */
.bus-times { margin: 10px 0 4px; border: 1px solid var(--border); border-radius: var(--radius); padding: 8px 12px; background: var(--surface); }
.bus-times summary { cursor: pointer; font-weight: 700; font-size: 14px; color: var(--text); }
.bus-next { font-weight: 500; font-size: 13px; color: var(--text-secondary); margin-left: 6px; }
.bus-next b { color: #059669; }
.bus-day { margin-top: 8px; }
.bus-day small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .4px; color: var(--text-muted); margin-bottom: 4px; }
.bus-day.today small { color: var(--primary); font-weight: 700; }
.bus-chips { display: flex; flex-wrap: wrap; gap: 5px; }
.bus-chips span { font-size: 12.5px; font-variant-numeric: tabular-nums; padding: 2px 7px; border-radius: 6px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.bus-chips span.past { opacity: .45; }
.bus-chips span.next { background: #059669; border-color: #059669; color: #fff; font-weight: 700; }
/* plăcuțele cu text lung (calendar, eveniment): lățime dublă pe ecrane late, rând întreg pe cele medii */
.now-grid { container-type: inline-size; grid-auto-flow: dense; }
@container (min-width: 514px) { .now-wide { grid-column: 1 / -1; } }
@container (min-width: 778px) { .now-wide.now-ev { grid-column: auto; } }
@container (min-width: 1042px) { .now-wide.now-cal, .now-wide.now-ev { grid-column: span 2; } }

/* ===== „Titu acum”: date așezate pe rânduri (rând principal + detalii, sau etichetă → valoare) ===== */
.now-grid { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.now-tile { align-items: flex-start; }
.now-tile > div:last-child { flex: 1; min-width: 0; }
.now-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-bottom: 4px; }
.now-body { margin-top: 0; }
.now-main { font-weight: 700; font-size: 0.98rem; line-height: 1.35; color: var(--text);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.now-main.big { font-family: var(--font-display); font-size: 1.35rem; line-height: 1.15; font-variant-numeric: tabular-nums; }
.now-sub { font-size: 0.86rem; line-height: 1.4; color: var(--text-secondary); margin-top: 2px; }
.now-note { font-size: 0.78rem; line-height: 1.4; color: var(--text-muted); margin-top: 4px; }
.now-rows { margin: 0; display: grid; gap: 4px; }
.now-rows > div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.now-rows dt { font-size: 0.88rem; color: var(--text-secondary); white-space: nowrap; }
.now-rows dd { margin: 0; font-weight: 700; font-size: 0.98rem; color: var(--text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.now-rows dd small { font-weight: 500; font-size: 0.78rem; color: var(--text-muted); }
.now-title .cal-red { color: #dc2626; }

/* plecări cu notă (ex. cursă scurtă) */
.bus-chips span i { font-style: normal; font-size: 11px; color: var(--text-secondary); }
.bus-chips span.next i { color: #fff; }

/* despre.html: certificări cu link de verificare, liste după paragraf */
a.despre-cert-tag { color: inherit; text-decoration: none; }
.despre-card p + ul { margin-top: 10px; }
.despre-card ul + p { margin-top: 10px; }
.despre-bio-text p + p { margin-top: 12px; }

/* variabile folosite în stiluri mai vechi, dar nedefinite până acum (cardurile rămâneau fără fundal) */
:root { --card-bg: var(--bg-card); --text-light: var(--text-secondary); }

/* butonul „Vrei un site?” rămâne vizibil și pe pagina lui (starea activă îi punea fundal deschis sub text alb) */
.nav-link.despre-nav-link.active, .nav-link.despre-nav-link:hover { background: linear-gradient(135deg, var(--primary), #7c3aed); color: #fff; }

/* ===== Despre dezvoltator (despre.html): introducere, parcurs pe o linie, certificări grupate ===== */
:root { --text-dark: var(--text); }   /* folosită în stiluri mai vechi, nedefinită până acum */

.dv-intro { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.dv-lead { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.18; letter-spacing: -0.02em; color: var(--text); margin: 0 0 18px; max-width: 17ch; }
.dv-text { color: var(--text-secondary); font-size: 1.02rem; line-height: 1.75; max-width: 54ch; margin: 0 0 26px; }

.dv-facts { margin: 0; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.dv-facts > div { display: grid; grid-template-columns: 118px minmax(0, 1fr); gap: 16px; align-items: baseline; padding: 18px 22px; }
.dv-facts > div + div { border-top: 1px solid var(--border); }
.dv-facts dt { font-family: var(--font-display); font-weight: 800; font-size: 1.02rem; color: var(--primary); }
.dv-facts dd { margin: 0; color: var(--text); line-height: 1.5; }

/* Parcursul: o linie cu cinci repere. Linia colorată se întinde, iar reperele apar pe rând, o singură dată. */
.dv-path { list-style: none; margin: 8px 0 0; padding: 0; position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.dv-path::before, .dv-path::after { content: ''; position: absolute; left: 8px; right: 20%; top: 7px; height: 2px; border-radius: 2px; }
.dv-path::before { background: var(--border); }
.dv-path::after { background: linear-gradient(90deg, var(--primary), #7c3aed); transform: scaleX(0); transform-origin: left center; transition: transform 1.5s cubic-bezier(.22, .61, .36, 1); }
.dv-path.is-in::after { transform: scaleX(1); }
.dv-path li { position: relative; padding: 30px 18px 0 0; opacity: 0; transform: translateY(8px); transition: opacity .5s ease, transform .5s ease; transition-delay: calc(var(--i) * .3s + .1s); }
.dv-path.is-in li { opacity: 1; transform: none; }
.dv-path li::before { content: ''; position: absolute; z-index: 1; left: 0; top: 0; width: 16px; height: 16px; box-sizing: border-box; border-radius: 50%; background: var(--bg-alt); border: 3px solid var(--primary); }
.dv-path li:last-child::before { background: #7c3aed; border-color: #7c3aed; box-shadow: 0 0 0 5px rgba(124, 58, 237, 0.16); }
.dv-path b { display: block; font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.01em; color: var(--text); font-variant-numeric: tabular-nums; }
.dv-path span { display: block; margin-top: 4px; color: var(--text-secondary); font-size: 0.93rem; line-height: 1.5; max-width: 24ch; }

/* Certificările, pe rânduri: cine le-a emis în stânga, numele lor în dreapta */
.dv-certs { margin: 0 auto; max-width: 860px; }
.dv-certs > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 18px; align-items: baseline; padding: 14px 0; }
.dv-certs > div + div { border-top: 1px solid var(--border); }
.dv-certs dt { font-family: var(--font-display); font-weight: 700; color: var(--text); }
.dv-certs dd { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dv-certs dd span { padding: 6px 13px; border-radius: 999px; background: var(--bg-card); border: 1px solid var(--border); color: var(--text-secondary); font-size: 0.9rem; line-height: 1.3; }

@media (max-width: 860px) {
  .dv-intro { grid-template-columns: 1fr; gap: 32px; }
  .dv-lead { max-width: none; }
  /* pe telefon, linia parcursului e verticală */
  .dv-path { grid-template-columns: 1fr; }
  .dv-path::before, .dv-path::after { left: 7px; right: auto; top: 8px; bottom: 40px; width: 2px; height: auto; }
  .dv-path::after { background: linear-gradient(180deg, var(--primary), #7c3aed); transform: scaleY(0); transform-origin: center top; }
  .dv-path.is-in::after { transform: scaleY(1); }
  .dv-path li { padding: 0 0 24px 36px; }
  .dv-path li:last-child { padding-bottom: 0; }
  .dv-path b { line-height: 16px; font-size: 1.1rem; }
  .dv-path span { max-width: none; }
}
@media (max-width: 520px) {
  .dv-facts > div { grid-template-columns: 1fr; gap: 2px; padding: 14px 18px; }
  .dv-certs > div { grid-template-columns: 1fr; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-path::after { transition: none; transform: none; }
  .dv-path li { transition: none; opacity: 1; transform: none; }
}
.dv-lead { max-width: 21ch; text-wrap: balance; }

/* introducerea de pe despre.html, varianta discretă: fără chenar, etichete estompate, titlu mai fin */
.dv-lead { font-weight: 700; font-size: clamp(1.55rem, 2.7vw, 2.15rem); line-height: 1.22; }
.dv-facts { background: none; border: 0; border-radius: 0; box-shadow: none; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.dv-facts > div { padding: 16px 2px; grid-template-columns: 104px minmax(0, 1fr); }
.dv-facts dt { font-family: var(--font); font-weight: 500; font-size: 0.9rem; color: var(--text-muted); }
.dv-facts dd { font-size: 1.02rem; }

/* reperele „din 2022”, „din 2024” sunt mai late decât un an simplu */
.dv-path b { white-space: nowrap; }

/* ===== Despre dezvoltator: introducerea pe două coloane, „Cu ce mă ocup” (Beko + restul), certificări în plăcuțe egale ===== */
.dv-intro { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.dv-intro .dv-lead { margin: 0; }
.dv-intro .dv-text { margin-top: 5px; }

/* pictograma: pătrat rotunjit, cu o tentă; la hover se umple cu gradientul site-ului */
.dv-ico { position: relative; isolation: isolate; flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; font-size: 1rem; color: var(--primary); background: rgba(37, 99, 235, 0.10); transition: color .4s ease, transform .45s cubic-bezier(.2, .7, .2, 1); }
.dv-ico::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: linear-gradient(135deg, var(--primary), #7c3aed); opacity: 0; transition: opacity .4s ease; }

/* cardul de bază: linie colorată sus la hover + o lumină care urmărește cursorul */
.dv-card { position: relative; overflow: hidden; margin: 0; padding: 22px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-sm); transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s ease, border-color .45s ease; }
.dv-card::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--primary), #7c3aed); transform: scaleX(0); transform-origin: left center; transition: transform .5s cubic-bezier(.2, .7, .2, 1); }
.dv-card::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(99, 102, 241, 0.11), transparent 62%); opacity: 0; transition: opacity .4s ease; }

/* „Cu ce mă ocup”: în stânga Beko (mare) și, sub el, educația pe scurt; în dreapta, celelalte trei.
   Cardul Beko are exact înălțimea conținutului (rând „auto”); ce rămâne merge la „Educație” (rând 1fr).
   Cele trei carduri din dreapta stau într-o coloană proprie și își împart egal înălțimea. */
.dv-bento { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: auto 1fr; gap: 18px; }
.dv-sidecol { grid-column: 2; grid-row: 1 / span 2; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.dv-sidecol .dv-side { flex: 1; }
.dv-feature { grid-column: 1; grid-row: 1; display: flex; flex-direction: column; padding: 34px; border: 0; color: #fff; background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 40%, #7c3aed 100%); box-shadow: 0 26px 52px -30px rgba(37, 99, 235, 0.8); }
/* în cardul mare, cele două straturi devin o pată de lumină care plutește încet și una care urmărește cursorul */
.dv-feature::before { left: auto; right: -110px; top: -130px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, 0.24), transparent 66%); transform: none; transition: none; animation: dvDrift 14s ease-in-out infinite alternate; }
.dv-feature::after { background: radial-gradient(380px circle at var(--mx, 20%) var(--my, 100%), rgba(255, 255, 255, 0.16), transparent 62%); opacity: 1; }
.dv-feature > * { position: relative; z-index: 1; }
.dv-since { align-self: flex-start; margin-bottom: auto; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.84rem; font-weight: 600; line-height: 1.3; color: #fff; }
.dv-feature h3 { margin: 34px 0 6px; font-family: var(--font-display); font-weight: 800; font-size: clamp(2.3rem, 4.2vw, 3.2rem); line-height: 1; letter-spacing: -0.03em; color: #fff; }
.dv-feature .dv-role { margin: 0; font-size: 1.12rem; font-weight: 600; line-height: 1.4; color: #fff; }
.dv-feature .dv-note { margin: 10px 0 0; max-width: 46ch; font-size: 0.98rem; line-height: 1.6; color: rgba(255, 255, 255, 0.92); text-wrap: balance; }
.dv-tags { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dv-tags li { padding: 7px 13px; border-radius: 999px; background: rgba(255, 255, 255, 0.15); border: 1px solid rgba(255, 255, 255, 0.26); font-size: 0.87rem; line-height: 1.3; color: #fff; }

.dv-side { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start; align-content: center; }
.dv-side > div { min-width: 0; }

/* Educația, pe scurt: trei trepte pe o linie care se desenează o dată */
.dv-edu { grid-column: 1; grid-row: 2; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; row-gap: 12px; align-items: center; align-content: center; }
.dv-edu h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.dv-steps { grid-column: 2; position: relative; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 14px; }
.dv-steps::before { content: ''; position: absolute; left: 5px; right: calc((100% - 28px) / 3 - 5px); top: 4px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), #7c3aed); transform-origin: left center; }
.dv-steps li { position: relative; min-width: 0; padding-top: 18px; }
.dv-steps li::before { content: ''; position: absolute; left: 0; top: 0; width: 10px; height: 10px; box-sizing: border-box; border-radius: 50%; background: var(--bg-card); border: 2px solid var(--primary); }
.dv-steps li:last-child::before { background: #7c3aed; border-color: #7c3aed; box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.16); }
.dv-steps strong { display: block; font-weight: 600; font-size: 0.93rem; line-height: 1.3; color: var(--text); }
.dv-steps small { display: block; margin-top: 2px; font-size: 0.82rem; line-height: 1.35; color: var(--text-muted); overflow-wrap: anywhere; }
.dv-side h3 { margin: 0; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; line-height: 1.3; letter-spacing: -0.01em; color: var(--text); }
.dv-side .dv-role { margin: 2px 0 0; font-size: 0.9rem; font-weight: 600; line-height: 1.4; color: var(--primary); }
.dv-side .dv-note { margin: 8px 0 0; font-size: 0.93rem; line-height: 1.5; color: var(--text-secondary); text-wrap: pretty; }

/* Certificările: plăcuțe egale (pictogramă, nume, cine a emis), ultimul rând centrat */
.dv-cert-grid { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.dv-cert-grid li { flex: 0 1 calc((100% - 28px) / 3 - 0.5px); min-width: 0; display: flex; align-items: center; gap: 14px; padding: 14px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; transition: transform .4s cubic-bezier(.2, .7, .2, 1), box-shadow .4s ease, border-color .4s ease; }
.dv-cert-grid .dv-ico { width: 40px; height: 40px; border-radius: 11px; font-size: 0.95rem; }
.dv-cert-grid li > div { min-width: 0; }
.dv-cert-grid strong { display: block; font-family: var(--font); font-weight: 600; font-size: 0.93rem; line-height: 1.3; color: var(--text); text-wrap: balance; }
.dv-cert-grid small { display: block; margin-top: 3px; font-size: 0.8rem; line-height: 1.3; color: var(--text-muted); }

@media (hover: hover) {
  .dv-card:hover { transform: translateY(-5px); border-color: rgba(99, 102, 241, 0.38); box-shadow: 0 20px 38px -24px rgba(37, 99, 235, 0.6); }
  .dv-card:hover::before { transform: scaleX(1); }
  .dv-card:hover::after { opacity: 1; }
  .dv-card:hover .dv-ico { color: #fff; transform: rotate(-6deg) scale(1.06); }
  .dv-card:hover .dv-ico::before { opacity: 1; }
  .dv-feature:hover { box-shadow: 0 34px 60px -30px rgba(37, 99, 235, 0.9); }
  .dv-feature:hover::before { transform: none; }
  .dv-cert-grid li:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.38); box-shadow: 0 16px 30px -22px rgba(37, 99, 235, 0.6); }
  .dv-cert-grid li:hover .dv-ico { color: #fff; }
  .dv-cert-grid li:hover .dv-ico::before { opacity: 1; }
}

/* Apariția, o singură dată: cardul urcă, pictograma și etichetele „sar” ușor.
   „backwards” ține starea de început doar până pornește animația, ca efectele de hover să rămână libere după. */
@keyframes dvRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes dvPop { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }
@keyframes dvDrift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-70px, 60px) scale(1.18); } }
@keyframes dvLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.dv-card.is-ready, .dv-cert-grid li.is-ready { opacity: 0; }
.dv-card.is-ready.is-in, .dv-cert-grid li.is-ready.is-in { opacity: 1; animation: dvRise .7s cubic-bezier(.2, .7, .2, 1) backwards; animation-delay: var(--d, 0ms); }
.dv-card.is-in .dv-ico, .dv-cert-grid li.is-in .dv-ico { animation: dvPop .6s cubic-bezier(.3, 1.5, .5, 1) backwards; animation-delay: calc(var(--d, 0ms) + 160ms); }
.dv-card.is-in .dv-tags li { animation: dvPop .55s cubic-bezier(.3, 1.4, .5, 1) backwards; animation-delay: calc(var(--d, 0ms) + 380ms + var(--j, 0) * 90ms); }
.dv-card.is-in .dv-steps::before { animation: dvLine 1.1s cubic-bezier(.22, .61, .36, 1) backwards; animation-delay: calc(var(--d, 0ms) + 320ms); }
.dv-card.is-in .dv-steps li { animation: dvRise .5s ease backwards; animation-delay: calc(var(--d, 0ms) + 380ms + var(--j, 0) * 200ms); }

@media (max-width: 980px) {
  .dv-cert-grid li { flex-basis: calc((100% - 14px) / 2 - 0.5px); }
}
@media (max-width: 860px) {
  .dv-intro { grid-template-columns: 1fr; gap: 20px; }
  .dv-bento { grid-template-columns: 1fr; grid-template-rows: none; gap: 14px; }
  .dv-feature, .dv-edu, .dv-sidecol { grid-column: auto; grid-row: auto; }
  .dv-sidecol { gap: 14px; }
  .dv-feature { padding: 26px 22px; }
  .dv-feature h3 { margin-top: 26px; }
}
@media (max-width: 600px) {
  .dv-card { padding: 18px; }
  .dv-feature { padding: 24px 20px; }
  .dv-steps { grid-column: 1 / -1; column-gap: 10px; }   /* pe telefon, treptele folosesc toată lățimea cardului */
  .dv-steps::before { right: calc((100% - 20px) / 3 - 5px); }
  .dv-cert-grid { gap: 10px; }
  .dv-cert-grid li { flex-basis: 100%; padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .dv-card, .dv-card::before, .dv-card::after, .dv-ico, .dv-ico::before, .dv-cert-grid li { transition: none; }
  .dv-feature::before { animation: none; }
  .dv-card.is-ready, .dv-cert-grid li.is-ready { opacity: 1; }
  .dv-card.is-ready.is-in, .dv-cert-grid li.is-ready.is-in, .dv-card.is-in .dv-ico, .dv-cert-grid li.is-in .dv-ico, .dv-card.is-in .dv-tags li, .dv-card.is-in .dv-steps::before, .dv-card.is-in .dv-steps li { animation: none; }
}
