:root {
  --ec-bg: #fffdf8;
  --ec-surface: #ffffff;
  --ec-sidebar: #16130f;
  --ec-text: #231d18;
  --ec-muted: #5f554d;
  --ec-primary: #2aa84a;
  --ec-primary-dark: #1f8a3b;
  --ec-accent: #ffb400;
  --ec-upcoming: #2f88ff;
  --ec-adjourned: #ff9800;
  --ec-disposed: #1fa262;
  --ec-border: #e9e3d8;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Source Sans 3", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 12% 2%, #ffffff 0%, #fff7e9 50%, var(--ec-bg) 100%);
  color: var(--ec-text);
}

h1,h2,h3,h4,.brand-serif { font-family: "Merriweather", Georgia, serif; }

.ec-app-shell { min-height: 100vh; }
.ec-surface { background: var(--ec-surface); border: 1px solid var(--ec-border); border-radius: 14px; }
.ec-btn-primary {
  background: var(--ec-primary);
  color: #fff;
  border: none;
  box-shadow: 0 8px 18px rgba(42, 168, 74, 0.25);
}
.ec-btn-primary:hover { background: var(--ec-primary-dark); color: #fff; }

.btn.ec-btn-accent {
  background: var(--ec-accent);
  color: #1e1b16;
  border: 1px solid #dca400;
  box-shadow: 0 8px 18px rgba(255, 180, 0, 0.35);
}

.btn.ec-btn-accent:hover {
  background: #efaa00;
  color: #1e1b16;
}

.ec-icon-circle {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(42, 168, 74, 0.12);
  color: var(--ec-primary-dark);
}

.ec-sidebar {
  background: linear-gradient(180deg, #1c1712, var(--ec-sidebar));
  color: #efe5d6;
  min-height: 100vh;
}
.ec-sidebar .nav-link { color: #efe5d6; border-radius: 10px; padding: 0.7rem 0.9rem; }
.ec-sidebar .nav-link.active,
.ec-sidebar .nav-link:hover { background: rgba(255,255,255,0.12); color: #fff; }

.ec-topbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  backdrop-filter: blur(8px);
  background: rgba(247, 241, 232, 0.95);
  border-bottom: 1px solid var(--ec-border);
}

.ec-bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--ec-border);
  z-index: 1040;
}
.ec-bottom-nav a {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  text-decoration: none;
  color: var(--ec-muted);
  font-size: 12px;
}
.ec-bottom-nav a.active { color: var(--ec-primary); font-weight: 600; }

.ec-fab {
  position: fixed;
  right: 18px;
  bottom: 76px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ec-primary);
  color: #fff;
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
  z-index: 1041;
}

.ec-status {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  font-weight: 600;
}
.ec-status.is-upcoming { background: rgba(92,124,168,.14); color: var(--ec-upcoming); }
.ec-status.is-adjourned { background: rgba(200,136,42,.16); color: #8f5d12; }
.ec-status.is-disposed { background: rgba(91,139,101,.16); color: #2f6642; }
.ec-status.is-pending { background: #ece6db; color: #645a4e; }

.table td, .table th { vertical-align: middle; }

.ec-card-row { border: 1px solid var(--ec-border); border-radius: 12px; background: #fff; padding: 12px; margin-bottom: 10px; }
.ec-date-nav .btn { min-width: 42px; }
.ec-touch { min-height: 44px; }
.ec-card-row:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(0,0,0,0.06); }

.ec-login-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}

.ec-hero {
  padding: 92px 0 68px;
  background: linear-gradient(120deg, #fffaf1 0%, #f5ffea 38%, #fff4e5 100%);
  position: relative;
  overflow: hidden;
}

.ec-hero::before,
.ec-hero::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  z-index: 0;
}

.ec-hero::before {
  width: 280px;
  height: 280px;
  right: -80px;
  top: -80px;
  background: radial-gradient(circle, rgba(255,180,0,.35) 0%, rgba(255,180,0,0) 72%);
}

.ec-hero::after {
  width: 260px;
  height: 260px;
  left: -100px;
  bottom: -120px;
  background: radial-gradient(circle, rgba(47,136,255,.22) 0%, rgba(47,136,255,0) 70%);
}

.ec-hero .container { position: relative; z-index: 1; }

.ec-feature-card {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: 14px;
  padding: 20px;
  height: 100%;
  transition: transform .24s ease, box-shadow .24s ease;
}

.ec-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(0,0,0,0.08);
}

.ec-section {
  min-height: 480px;
  display: flex;
  align-items: center;
}

.ec-section-tight {
  min-height: 380px;
  display: flex;
  align-items: center;
}

.ec-pricing-card {
  border-radius: 18px;
  border: 1px solid #dfd5c3;
  background: linear-gradient(180deg, #ffffff 0%, #fffefb 100%);
  padding: 22px;
  height: 100%;
  position: relative;
  box-shadow: 0 14px 30px rgba(31, 24, 16, 0.08);
}

.ec-pricing-card .ec-plan-price {
  line-height: 1.1;
}

.ec-ribbon {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff1bf;
  color: #6b4a00;
  border: 1px solid #f0d980;
}

.ec-plan-headline {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.ec-plan-price {
  font-size: 2rem;
  font-family: "Merriweather", Georgia, serif;
  color: #17130f;
}

.ec-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ec-trust-pill {
  font-size: 12px;
  border: 1px solid var(--ec-border);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--ec-muted);
}

.ec-cta-stack .btn {
  min-height: 46px;
  font-weight: 700;
  width: 100%;
}

.ec-cta-secondary {
  background: #fff;
  color: #2a251f;
  border: 1px solid var(--ec-border);
}

.ec-pricing-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

.ec-pricing-card-center {
  text-align: center;
}

.ec-pricing-card-center .ec-plan-headline {
  justify-content: center;
}

.ec-pricing-card-center .ec-trust-strip {
  justify-content: center;
}

.ec-pricing-card-center ul {
  display: inline-block;
  text-align: left;
}

.ec-stat-card {
  background: #ffffff;
  border: 1px solid var(--ec-border);
  border-radius: 14px;
  padding: 18px;
  text-align: center;
  height: 100%;
}

.ec-counter {
  font-family: "Merriweather", Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--ec-primary-dark);
  margin-bottom: 6px;
}

.ec-wave-sep {
  height: 34px;
  background: linear-gradient(to right, rgba(255,180,0,.16), rgba(42,168,74,.18), rgba(47,136,255,.14));
  -webkit-mask: radial-gradient(18px at 50% 26px, #0000 98%, #000) calc(50% - 28px) 0/56px 100%;
  mask: radial-gradient(18px at 50% 26px, #0000 98%, #000) calc(50% - 28px) 0/56px 100%;
}

.ec-animate-in {
  opacity: 0;
  transform: translateY(14px);
  animation: ecFadeIn .6s ease forwards;
}

.ec-animate-delay-1 { animation-delay: .1s; }
.ec-animate-delay-2 { animation-delay: .2s; }
.ec-animate-delay-3 { animation-delay: .3s; }

@keyframes ecFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 991.98px) {
  .ec-desktop-only { display: none !important; }
  body {
    padding-bottom: calc(90px + env(safe-area-inset-bottom));
  }
  main.ec-main { padding-bottom: 90px; }
  .modal-full-mobile .modal-dialog { margin: 0; max-width: 100%; height: 100%; }
  .modal-full-mobile .modal-content { min-height: 100vh; border-radius: 0; }
  .ec-section,
  .ec-section-tight { min-height: auto; padding: 56px 0; }
}

.introjs-tooltip {
  max-width: 360px;
}

.introjs-skipbutton {
  position: absolute;
  top: 10px;
  right: 12px;
  font-size: 13px;
  white-space: nowrap;
}

@media (min-width: 992px) {
  .ec-mobile-only { display: none !important; }
  main.ec-main { padding: 24px; }
}
