html, body {
  height: 100%;
}

body.app-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main.app-main {
  flex: 1 0 auto;
}

footer.app-footer {
  margin-top: auto;
}

.landing-page {
  color: #1f2937;
}

.landing-hero {
  border-radius: 20px;
  background:
    radial-gradient(1200px 260px at 20% 0%, rgba(25, 135, 84, 0.16), rgba(25, 135, 84, 0)),
    radial-gradient(1200px 280px at 100% 100%, rgba(13, 110, 253, 0.1), rgba(13, 110, 253, 0)),
    #f8fbfa;
  border: 1px solid rgba(25, 135, 84, 0.15);
}

.landing-kicker {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #0f5132;
  background: #d1e7dd;
  padding: 6px 10px;
  border-radius: 999px;
}

.landing-title {
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.1;
  font-weight: 800;
  margin: 0;
}

.landing-subtitle {
  max-width: 620px;
  font-size: 1.05rem;
  color: #4b5563;
}

.landing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.9rem;
  color: #374151;
}

.landing-trust i {
  color: #198754;
  margin-right: 4px;
}

.landing-mockup {
  border-radius: 16px;
  border: 1px solid #d6e4dd;
  background: #ffffff;
  box-shadow: 0 18px 35px rgba(16, 24, 40, 0.1);
  overflow: hidden;
}

.landing-shot-stack {
  position: relative;
  min-height: 420px;
}

.landing-shot {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #dce3df;
  background: #fff;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.13);
  margin: 0;
}

.landing-shot img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.landing-shot figcaption {
  padding: 8px 12px;
  font-size: 0.82rem;
  color: #4b5563;
  background: #f9fafb;
  border-top: 1px solid #edf0f2;
}

.landing-shot-main {
  max-width: 100%;
}

.landing-shot-main img {
  aspect-ratio: 16 / 9;
}

.landing-shot-secondary {
  position: absolute;
  right: -6px;
  bottom: -22px;
  width: 52%;
}

.landing-shot-secondary img {
  aspect-ratio: 16 / 10;
}

.landing-mockup-top {
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  background: #f9fafb;
}

.landing-mockup-top .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #c4c4c4;
  margin-right: 5px;
}

.landing-mockup-body {
  padding: 12px;
}

.mini-kpi {
  border-radius: 10px;
  background: #f3f4f6;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
}

.mini-kpi b {
  font-size: 0.72rem;
  color: #6b7280;
  font-weight: 700;
}

.mini-kpi span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

.mini-map {
  border-radius: 10px;
  height: 120px;
  background:
    linear-gradient(30deg, rgba(25, 135, 84, 0.35), rgba(25, 135, 84, 0.1)),
    repeating-linear-gradient(45deg, #d1e7dd 0, #d1e7dd 10px, #e7f4ee 10px, #e7f4ee 20px);
}

.mini-list-item {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.landing-card,
.landing-step,
.landing-plan {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.05);
}

.icon-wrap {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: #e7f4ee;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #198754;
  font-size: 1.3rem;
}

.step-number {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #198754;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin-bottom: 10px;
}

.landing-plan ul {
  margin: 0;
  padding-left: 18px;
  color: #4b5563;
}

@media (max-width: 992px) {
  .landing-shot-stack {
    min-height: auto;
  }

  .landing-shot-secondary {
    position: static;
    width: 100%;
    margin-top: 12px;
  }
}

.login-shell {
  max-width: 980px;
  margin: 0 auto;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #dce5df;
  box-shadow: 0 14px 34px rgba(17, 24, 39, 0.1);
  background: #fff;
}

.login-side {
  padding: 28px 26px;
  background:
    radial-gradient(800px 180px at 10% 0%, rgba(25, 135, 84, 0.18), rgba(25, 135, 84, 0)),
    #f5fbf7;
  border-right: 1px solid #e5eee9;
}

.login-brand {
  font-weight: 700;
  color: #0f5132;
  font-size: 1.1rem;
}

.login-title {
  font-weight: 800;
  line-height: 1.15;
}

.login-subtitle {
  color: #4b5563;
}

.login-points {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #374151;
  font-size: 0.95rem;
}

.login-points i {
  color: #198754;
  margin-right: 5px;
}

.login-card {
  padding: 30px 26px;
}

.register-type-btn {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  padding: 14px 12px;
  text-align: center;
  font-weight: 600;
  transition: all 0.15s ease;
}

.register-type-btn:hover {
  border-color: #86d3ad;
  background: #f3fbf6;
}

.register-type-btn.active {
  border-color: #198754;
  background: #eaf7f0;
  color: #0f5132;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.dashboard-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-kpi {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px 18px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.dashboard-kpi small {
  color: #6b7280;
  font-weight: 600;
}

.dashboard-kpi h3 {
  margin: 2px 0 0;
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
}

.dashboard-kpi i {
  font-size: 2rem;
  opacity: 0.95;
}

.dashboard-kpi.kpi-neutral {
  border-left: 4px solid #198754;
}

.dashboard-kpi.kpi-success {
  border-left: 4px solid #198754;
  color: #0f5132;
}

.dashboard-kpi.kpi-danger {
  border-left: 4px solid #dc3545;
  color: #7f1d1d;
}

.dashboard-kpi.kpi-warning {
  border-left: 4px solid #f59e0b;
  color: #78350f;
}

.dashboard-kpi.kpi-dark {
  border-left: 4px solid #6c757d;
  color: #374151;
}

.dashboard-card {
  border-radius: 14px;
}

.superadmin-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.sa-kpi {
  border-radius: 14px;
  padding: 16px;
  border: 1px solid #e5e7eb;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.sa-kpi small {
  color: #6b7280;
  font-weight: 600;
}

.sa-kpi h3 {
  margin: 4px 0 0;
  font-size: 1.9rem;
  line-height: 1;
  font-weight: 800;
}

.sa-kpi.kpi-blue {
  border-left: 4px solid #0d6efd;
}

.sa-kpi.kpi-green {
  border-left: 4px solid #198754;
}

.sa-kpi.kpi-indigo {
  border-left: 4px solid #6610f2;
}

.sa-kpi.kpi-dark {
  border-left: 4px solid #212529;
}

.sa-module {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.05);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.sa-module i {
  font-size: 1.25rem;
  color: #6b7280;
}

a .sa-module:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(17, 24, 39, 0.08);
}

.sa-activity {
  border-radius: 14px;
}

.sa-page .alert {
  border-radius: 12px;
}

.sa-filter-card,
.sa-table-card {
  border-radius: 14px;
}

.sa-filter-card .card-body {
  padding: 14px;
}

.sa-table-card .table thead th {
  font-weight: 700;
  color: #374151;
}

.finca-page .alert {
  border-radius: 12px;
}

.finca-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.finca-filter-card,
.finca-table-card,
.finca-form-card,
.finca-state-card {
  border-radius: 14px;
}

.finca-filter-card .card-body,
.finca-form-card .card-body,
.finca-state-card .card-body {
  padding: 16px;
}

.finca-table-card .table thead th {
  font-weight: 700;
  color: #374151;
}

.finca-new-page {
  max-width: 980px;
  margin: 0 auto;
}

.finca-mode-btn {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #374151;
  padding: 14px 12px;
  text-align: left;
  font-weight: 600;
  transition: all 0.15s ease;
  display: flex;
  gap: 10px;
  align-items: center;
}

.finca-mode-btn:hover {
  border-color: #86d3ad;
  background: #f3fbf6;
}

.finca-mode-btn.active {
  border-color: #198754;
  background: #eaf7f0;
  color: #0f5132;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.25);
}

.finca-mode-btn b,
.finca-mode-btn small {
  display: block;
  line-height: 1.2;
}

.finca-mode-btn small {
  font-weight: 500;
  color: #4b5563;
}

.finca-mode-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #e7f4ee;
  color: #198754;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}

.finca-mode-panel {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.finca-state-form .form-label {
  font-size: 0.85rem;
  color: #4b5563;
}

@media (max-width: 991px) {
  .login-side {
    border-right: 0;
    border-bottom: 1px solid #e5eee9;
  }

  .dashboard-head {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-head-actions {
    display: flex;
    justify-content: flex-start;
  }

  .superadmin-head {
    flex-direction: column;
    align-items: stretch;
  }

  .finca-head {
    flex-direction: column;
    align-items: stretch;
  }
}
