:root {
    --green-dark: #1B5E20;
    --green-main: #2E7D32;
    --green-light: #81C784;
    --surface: #FFFFFF;
    --surface-soft: #F5F7FA;
    --line: #E4E9EF;
    --text: #162016;
    --muted: #69766C;
    --warning: #B26A00;
    --danger: #B42318;
    --shadow: 0 20px 50px rgba(22, 32, 22, .08);
}

* {
    box-sizing: border-box;
}

html {
    min-width: 0;
}

body {
    margin: 0;
    background: var(--surface-soft);
    color: var(--text);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a {
    color: var(--green-main);
    text-decoration: none;
}

a:hover {
    color: var(--green-dark);
}

.app-layout {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 22px 16px;
    background: var(--green-dark);
    color: #fff;
    overflow-y: auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 94px;
    padding: 8px 8px 22px;
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

.brand:hover {
    color: #fff;
}

.brand img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    background: #fff;
    border-radius: 8px;
    padding: 3px;
}

.brand strong,
.brand small,
.brand em {
    display: block;
    line-height: 1.05;
}

.brand strong {
    font-size: 1.08rem;
    letter-spacing: 0;
}

.brand small {
    margin-top: 4px;
    color: rgba(255, 255, 255, .72);
    font-size: .82rem;
}

.brand em {
    margin-top: 8px;
    color: var(--green-light);
    font-size: .78rem;
    font-style: normal;
    font-weight: 800;
    line-height: 1.18;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 18px;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 44px;
    padding: 10px 12px;
    color: rgba(255, 255, 255, .78);
    border-radius: 8px;
    font-size: .94rem;
}

.nav-item i {
    width: 20px;
    font-size: 1rem;
}

.nav-item:hover,
.nav-item.active {
    color: #fff;
    background: rgba(255, 255, 255, .13);
}

.nav-badge {
    margin-left: auto;
    min-width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    color: var(--green-dark);
    font-size: .72rem;
    font-weight: 800;
}

.main-panel {
    min-width: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 32px;
}

body.dashboard-page .main-panel {
    background:
        linear-gradient(180deg, rgba(245, 247, 250, .94), rgba(245, 247, 250, .88)),
        url("../img/agri-aerial-field.jpg") center/cover fixed no-repeat;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.slogan,
.section-kicker {
    margin: 0 0 6px;
    color: var(--green-main);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.topbar h1 {
    margin: 0;
    font-size: clamp(1.8rem, 2.2vw, 2.45rem);
    font-weight: 800;
}

.page-subtitle {
    max-width: 760px;
    margin: 8px 0 0;
    color: var(--muted);
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.company-filter {
    min-width: 240px;
}

.company-pill {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--green-dark);
    font-weight: 700;
}

.icon-button {
    position: relative;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    color: var(--text);
}

.app-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 28px;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: .9rem;
}

.app-footer span {
    font-weight: 800;
    color: var(--green-dark);
}

button.icon-button {
    cursor: pointer;
}

.dot {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-light);
}

.content-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
    flex: 1;
}

.messages {
    margin-bottom: 16px;
}

.btn-agricheck {
    --bs-btn-bg: var(--green-main);
    --bs-btn-border-color: var(--green-main);
    --bs-btn-hover-bg: var(--green-dark);
    --bs-btn-hover-border-color: var(--green-dark);
    --bs-btn-color: #fff;
    --bs-btn-hover-color: #fff;
    font-weight: 800;
}

.btn-outline-agricheck {
    --bs-btn-color: var(--green-main);
    --bs-btn-border-color: var(--green-main);
    --bs-btn-hover-bg: var(--green-main);
    --bs-btn-hover-border-color: var(--green-main);
    --bs-btn-hover-color: #fff;
    font-weight: 800;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
}

.welcome-section {
    background: transparent; /* Permet de garder le beau fond vert dégradé de ton site */
    padding: 60px 40px 20px 40px; /* Bel espace pour laisser respirer le texte */
    max-width: 1200px;
    margin: 0 auto;
    color: #ffffff;
}

.welcome-tag {
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 2px;
    color: #a3e635; /* Un vert lime/clair pour faire ressortir le badge */
    font-weight: bold;
    display: inline-block;
    margin-bottom: 12px;
}

.welcome-section h1 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
    max-width: 800px;
}

.welcome-section p {
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.85); /* Blanc légèrement transparent pour le confort de lecture */
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 24px;
}

.welcome-actions {
    display: flex;
    gap: 16px;
}

/* Boutons calqués sur le style de tes boutons de navigation en haut à droite */
.btn-primary {
    background-color: #ffffff;
    color: #1e3a1e; /* Vert foncé adapté à ton thème */
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #f3f4f6;
    transform: translateY(-2px);
}

.btn-secondary {
    border: 1px solid rgba(255, 255, 255, 0.4);
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #ffffff;
}

.dashboard-hero {
    min-height: 300px;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background:
        linear-gradient(90deg, rgba(16, 41, 18, .86), rgba(16, 41, 18, .18)),
        var(--dashboard-bg) center/cover no-repeat;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.dashboard-hero > div {
    max-width: 620px;
    color: #fff;
}

.dashboard-hero .section-kicker {
    color: var(--green-light);
}

.dashboard-hero h2 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.2;
    font-weight: 850;
}

.dashboard-hero p {
    margin: 10px 0 14px;
    color: rgba(255, 255, 255, .82);
}

.dashboard-hero-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.dashboard-hero-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    padding: 7px 10px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    background: rgba(255, 255, 255, .12);
    color: #fff;
    font-size: .86rem;
    font-weight: 750;
}

.stat-card,
.panel,
.report-card,
.treatment-card,
.notification-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow);
}

.stat-card {
    min-height: 132px;
    padding: 18px;
}

.stat-card span,
.detail-grid span {
    display: block;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 700;
}

.stat-card strong {
    display: block;
    margin-top: 12px;
    color: var(--green-dark);
    font-size: 2rem;
    line-height: 1;
}

.stat-card small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.alert-stat strong {
    color: var(--danger);
}

.dashboard-grid,
.latest-grid,
.split-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(320px, .9fr);
    gap: 20px;
}

.dashboard-grid,
.latest-grid {
    align-items: stretch;
}

.dashboard-grid .panel:first-child {
    grid-row: span 2;
}

.latest-grid {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.latest-card strong,
.latest-card span,
.latest-card p {
    display: block;
}

.latest-card strong {
    color: var(--green-dark);
    font-size: 1rem;
}

.latest-card span {
    margin-top: 8px;
    color: var(--muted);
    font-size: .86rem;
    font-weight: 700;
}

.latest-card p {
    margin: 10px 0 0;
    color: var(--muted);
}

.panel {
    padding: 20px;
}

.panel-heading,
.report-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.panel-heading h2,
.report-header h2,
.treatment-card h2,
.profile-panel h2,
.notification-item h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
}

.panel-heading span,
.report-header p {
    margin: 0;
    color: var(--muted);
}

.table {
    margin-bottom: 0;
}

.table th {
    color: var(--muted);
    font-size: .76rem;
    font-weight: 800;
    text-transform: uppercase;
    white-space: nowrap;
}

.table td {
    vertical-align: middle;
}

.table td strong,
.table td small {
    display: block;
}

.table td small {
    color: var(--muted);
}

.empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 160px;
    padding: 24px;
    border: 1px dashed var(--line);
    border-radius: 8px;
    color: var(--muted);
    text-align: center;
}

.progress-list {
    display: grid;
    gap: 16px;
}

.progress-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: .9rem;
}

.progress {
    height: 10px;
    background: #E8EEF0;
}

.progress-bar {
    background: var(--green-main);
}

.progress-bar.risk {
    background: var(--warning);
}

.toolbar,
.history-filters {
    display: flex;
    align-items: end;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.toolbar > div {
    min-width: 240px;
}

.history-filters > div {
    min-width: 160px;
    flex: 1;
}

.status-badge,
.risk-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .78rem;
    font-weight: 800;
    white-space: nowrap;
}

.state-healthy,
.state-good,
.mission-completed,
.invoice-paid,
.risk-low {
    color: var(--green-dark);
    background: rgba(129, 199, 132, .22);
}

.state-watch,
.mission-planned,
.invoice-pending,
.invoice-partial,
.risk-medium {
    color: #73510C;
    background: rgba(255, 193, 7, .18);
}

.state-risk,
.mission-in_progress,
.invoice-overdue,
.risk-high {
    color: var(--warning);
    background: rgba(178, 106, 0, .14);
}

.state-critical,
.state-urgent,
.mission-cancelled,
.invoice-cancelled,
.risk-critical {
    color: var(--danger);
    background: rgba(180, 35, 24, .12);
}

.report-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.compact-list {
    display: grid;
    gap: 10px;
}

.compact-list article {
    min-height: 68px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.compact-list strong,
.compact-list span,
.compact-list a {
    display: block;
}

.compact-list span {
    margin-top: 5px;
    color: var(--muted);
}

.compact-list a {
    margin-top: 6px;
    font-weight: 800;
}

.timeline-list {
    display: grid;
    gap: 0;
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 0 0 22px;
}

.timeline-item:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 22px;
    top: 52px;
    bottom: 0;
    width: 2px;
    background: var(--line);
}

.timeline-marker {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(46, 125, 50, .12);
    color: var(--green-dark);
    z-index: 1;
}

.timeline-item span {
    display: block;
    color: var(--muted);
    font-size: .84rem;
    font-weight: 700;
}

.timeline-item h2 {
    margin: 4px 0 6px;
    font-size: 1rem;
    font-weight: 850;
}

.timeline-item p {
    margin: 0;
    color: var(--muted);
}

.table-thumb,
.image-strip img,
.heatmap {
    display: block;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.table-thumb {
    width: 74px;
    height: 54px;
}

.image-placeholder {
    width: 74px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--muted);
    background: var(--surface-soft);
}

.report-list {
    display: grid;
    gap: 18px;
}

.report-card {
    padding: 20px;
}

.report-body {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.report-body h3 {
    margin: 0 0 8px;
    color: var(--muted);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.report-body p {
    margin: 0;
}

.image-strip {
    display: flex;
    gap: 8px;
    min-height: 76px;
    overflow-x: auto;
}

.image-strip img {
    width: 98px;
    height: 76px;
    flex: 0 0 auto;
}

.heatmap {
    width: 100%;
    max-height: 220px;
}

.report-wide {
    grid-column: 1 / -1;
}

.treatment-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.treatment-card {
    padding: 20px;
}

.treatment-card h2 {
    margin: 12px 0 18px;
}

.treatment-card dl {
    margin: 0;
    display: grid;
    gap: 12px;
}

.treatment-card dt {
    color: var(--green-dark);
    font-size: .82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.treatment-card dd {
    margin: 4px 0 0;
    color: var(--muted);
}

.notification-list {
    display: grid;
    gap: 12px;
}

.notification-item {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 14px;
    padding: 16px;
}

.notification-item.read {
    opacity: .68;
}

.notification-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(46, 125, 50, .12);
    color: var(--green-dark);
}

.notification-item span {
    color: var(--muted);
    font-size: .82rem;
}

.notification-item p {
    margin: 6px 0 0;
    color: var(--muted);
}

.priority-urgent .notification-icon {
    background: rgba(180, 35, 24, .12);
    color: var(--danger);
}

.priority-warning .notification-icon {
    background: rgba(178, 106, 0, .12);
    color: var(--warning);
}

.subscription-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.subscription-pricing {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.subscription-pricing span {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 7px 10px;
    border-radius: 8px;
    background: rgba(46, 125, 50, .1);
    color: var(--green-dark);
    font-size: .88rem;
    font-weight: 800;
}

.subscription-panel i {
    color: var(--green-main);
    font-size: 2.5rem;
}

.icon-link {
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(46, 125, 50, .12);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.profile-avatar {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: var(--green-dark);
    color: #fff;
    font-size: 1.8rem;
    font-weight: 800;
}

.profile-about-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.profile-about-link h2,
.profile-about-link p {
    margin: 0;
}

.profile-about-link p {
    margin-top: 6px;
    color: var(--muted);
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.detail-grid > div {
    min-height: 96px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.detail-grid strong {
    display: block;
    margin-top: 10px;
    overflow-wrap: anywhere;
}

.home-page,
.registration-page {
    min-height: 100vh;
    background: #102912;
}

.home-shell {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 28px 42px 56px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(14, 36, 16, .9), rgba(14, 36, 16, .28)),
        var(--home-bg) center/cover no-repeat;
}

.interactive-home {
    gap: 28px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(27, 94, 32, .96), rgba(46, 125, 50, .86)),
        url("../img/agri-aerial-field.jpg") center/cover no-repeat;
}

.home-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.home-nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.home-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    color: #fff;
    font-weight: 900;
}

.home-brand:hover {
    color: #fff;
}

.home-brand img {
    width: 92px;
    height: 92px;
    object-fit: contain;
    padding: 3px;
    border-radius: 8px;
    background: #fff;
}

.home-brand span,
.home-brand strong,
.home-brand small {
    display: block;
}

.home-brand span {
    font-size: 1.08rem;
}

.home-brand small {
    margin-top: 6px;
    color: rgba(255, 255, 255, .82);
    font-size: .88rem;
    font-weight: 800;
    line-height: 1.18;
}

.about-nav .home-brand small {
    color: var(--green-main);
}

.home-hero {
    width: min(900px, 76vw);
    margin-top: auto;
    padding-bottom: 30px;
}

.home-hero .section-kicker,
.registration-intro .section-kicker {
    color: var(--green-light);
}

.home-hero h1 {
    margin: 0;
    font-size: clamp(3.2rem, 5vw, 5.4rem);
    line-height: .98;
    font-weight: 900;
}

.home-hero p {
    max-width: 720px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, .82);
    font-size: 1.1rem;
}

.home-actions {
    display: flex;
    gap: 12px;
    margin-top: 28px;
}

.welcome-intro {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    margin-top: 16px;
}

.welcome-intro h1 {
    max-width: 820px;
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4.7rem);
    line-height: 1;
    font-weight: 900;
}

.carousel-controls {
    display: flex;
    gap: 10px;
}

.carousel-button {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .42);
    border-radius: 8px;
    background: rgba(255, 255, 255, .14);
    color: #fff;
}

.carousel-button:hover {
    background: #fff;
    color: var(--green-dark);
}

.agricheck-carousel {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    padding: 4px 6px 20px;
    scroll-snap-type: x mandatory;
    scroll-padding-left: 6px;
    scrollbar-width: thin;
}

.welcome-card {
    position: relative;
    min-height: 520px;
    flex: 0 0 min(430px, 82vw);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, .2);
    border-radius: 8px;
    overflow: hidden;
    scroll-snap-align: start;
    background:
        linear-gradient(180deg, rgba(10, 32, 14, .2), rgba(10, 32, 14, .92)),
        var(--card-image) center/cover no-repeat;
    box-shadow: 0 24px 58px rgba(7, 24, 10, .24);
}

.welcome-card.is-featured {
    flex-basis: min(520px, 88vw);
}

.card-visual {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(255, 255, 255, .92);
    color: var(--green-dark);
    font-size: 1.55rem;
}

.card-content {
    position: relative;
    z-index: 1;
}

.card-content span {
    display: inline-flex;
    margin-bottom: 10px;
    color: var(--green-light);
    font-weight: 900;
}

.card-content h2 {
    max-width: 12ch;
    margin: 0;
    font-size: clamp(1.85rem, 3.2vw, 3rem);
    line-height: 1.02;
    font-weight: 900;
}

.card-content p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1rem;
    line-height: 1.55;
}

.card-content .btn {
    margin-top: 18px;
}

.mini-metrics,
.feature-list {
    display: grid;
    gap: 8px;
    margin-top: 16px;
}

.mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.mini-metrics strong,
.feature-list li {
    min-height: 38px;
    display: flex;
    align-items: center;
    padding: 8px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, .15);
    color: #fff;
    font-size: .9rem;
}

.feature-list {
    padding: 0;
    list-style: none;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.carousel-dots button {
    width: 26px;
    height: 6px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, .32);
}

.carousel-dots button.active {
    width: 42px;
    background: #fff;
}

.home-footer,
.about-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, .22);
    color: rgba(255, 255, 255, .78);
}

.home-footer a,
.about-footer a {
    color: #fff;
    font-weight: 800;
}

.home-footer span,
.about-footer span {
    font-weight: 900;
}

.about-page {
    min-height: 100vh;
    background: var(--surface-soft);
}

.about-shell {
    min-height: 100vh;
    padding: 28px 42px 36px;
}

.about-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.about-nav .home-brand {
    color: var(--green-dark);
}

.about-nav .home-brand:hover {
    color: var(--green-dark);
}

.about-hero {
    min-height: 360px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 36px;
    border-radius: 8px;
    color: #fff;
    background:
        linear-gradient(90deg, rgba(14, 36, 16, .88), rgba(14, 36, 16, .24)),
        url("../img/agri-field-walk.jpg") center/cover no-repeat;
    box-shadow: var(--shadow);
}

.about-hero .section-kicker {
    color: var(--green-light);
}

.about-hero h1 {
    max-width: 900px;
    margin: 0;
    font-size: 4rem;
    line-height: 1;
    font-weight: 900;
}

.about-hero p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.18rem;
    font-weight: 700;
}

.about-section,
.about-grid,
.about-contact {
    margin-top: 22px;
}

.about-section,
.about-contact {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.about-section-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.about-section-heading > span,
.about-card > i,
.contact-grid i {
    width: 46px;
    height: 46px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(46, 125, 50, .12);
    color: var(--green-dark);
    font-size: 1.2rem;
}

.about-section-heading h2,
.about-card h2,
.about-contact h2 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
}

.about-text-card {
    display: grid;
    gap: 12px;
    color: var(--muted);
}

.about-text-card p,
.about-card p,
.about-card ul,
.solution-card ul,
.about-contact p {
    margin: 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.about-card,
.solution-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.about-card {
    display: grid;
    gap: 14px;
}

.about-card p,
.solution-card li,
.about-card li {
    color: var(--muted);
}

.about-card ul,
.solution-card ul {
    display: grid;
    gap: 8px;
    padding-left: 18px;
}

.solution-grid,
.value-grid,
.contact-grid {
    display: grid;
    gap: 14px;
}

.solution-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.solution-card h3 {
    margin: 0 0 14px;
    color: var(--green-dark);
    font-size: 1.08rem;
    font-weight: 900;
}

.value-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-grid span {
    min-height: 52px;
    display: flex;
    align-items: center;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
    color: var(--green-dark);
    font-weight: 850;
}

.about-contact {
    display: grid;
    grid-template-columns: minmax(280px, .75fr) minmax(0, 1.25fr);
    gap: 22px;
    background: var(--green-dark);
    color: #fff;
}

.about-contact .section-kicker {
    color: var(--green-light);
}

.about-contact p {
    color: rgba(255, 255, 255, .78);
}

.contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.contact-grid a,
.contact-grid span {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 8px;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    font-weight: 750;
}

.contact-grid i {
    flex: 0 0 auto;
    background: rgba(129, 199, 132, .18);
    color: var(--green-light);
}

.about-footer {
    color: var(--muted);
    border-top-color: var(--line);
}

.about-footer a {
    color: var(--green-main);
}

.registration-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(520px, .8fr) minmax(680px, 1.2fr);
}

.registration-intro {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 42px;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(14, 36, 16, .86), rgba(14, 36, 16, .48)),
        var(--registration-bg) center/cover no-repeat;
}

.registration-intro h1 {
    margin: 0;
    font-size: 3rem;
    line-height: 1;
    font-weight: 900;
}

.registration-intro p {
    max-width: 560px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, .8);
}

.registration-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
    background: var(--surface-soft);
}

.registration-card {
    width: min(100%, 780px);
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.registration-card-header h2 {
    margin: 0 0 22px;
    font-weight: 900;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.form-span-2 {
    grid-column: 1 / -1;
}

.registration-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 18px;
}

.registration-plan {
    min-height: 156px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface-soft);
}

.registration-plan span,
.registration-plan small {
    display: block;
}

.registration-plan span {
    color: var(--green-dark);
    font-size: .88rem;
    font-weight: 850;
}

.registration-plan strong {
    display: block;
    margin-top: 8px;
    color: var(--text);
    font-size: 1.05rem;
}

.registration-plan small {
    margin-top: 6px;
    color: var(--green-main);
    font-weight: 800;
}

.registration-plan p {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: .86rem;
}

.registration-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.login-page,
.auth-simple {
    min-height: 100vh;
    background: var(--surface-soft);
}

.login-shell {
    display: grid;
    grid-template-columns: minmax(660px, 1.15fr) minmax(460px, .85fr);
    min-height: 100vh;
}

.login-brand-panel {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 28px;
    padding: 44px;
    background: var(--green-dark);
    color: #fff;
    overflow: hidden;
}

.login-brand-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(16, 41, 18, .88), rgba(16, 41, 18, .42)),
        var(--login-bg) center/cover no-repeat;
}

.login-brand-content {
    position: relative;
    z-index: 1;
}

.login-brand-content img {
    width: 230px;
    height: auto;
    margin-bottom: 30px;
    border-radius: 8px;
    background: #fff;
}

.login-brand-panel h1 {
    margin: 0;
    font-size: 2rem;
    font-weight: 900;
}

.login-brand-panel p {
    margin: 12px 0 0;
    color: var(--green-light);
    font-size: 1.12rem;
    font-weight: 850;
}

.login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px;
}

.login-card,
.auth-card {
    width: min(100%, 440px);
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
    box-shadow: var(--shadow);
}

.login-card h2,
.auth-card h1 {
    margin: 0 0 24px;
    font-weight: 900;
}

.login-meta {
    display: flex;
    justify-content: flex-end;
    margin: 8px 0 20px;
}

.auth-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.auth-card img {
    width: 150px;
    height: auto;
    margin-bottom: 18px;
}

.auth-card input {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
}

.auth-card a {
    display: inline-flex;
    margin-top: 16px;
}

@media (max-width: 1180px) {
    .app-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: static;
        height: auto;
    }

    .sidebar-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dashboard-grid,
    .latest-grid,
    .split-grid,
    .about-grid,
    .about-contact {
        grid-template-columns: 1fr;
    }

    .solution-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .registration-shell {
        grid-template-columns: minmax(460px, .75fr) minmax(620px, 1.25fr);
    }

    .dashboard-grid .panel:first-child {
        grid-row: auto;
    }
}

@media (max-width: 920px) {
    .main-panel {
        padding: 22px;
    }

    .home-shell,
    .about-shell {
        padding: 20px;
    }

    .home-nav,
    .welcome-intro,
    .home-footer,
    .about-nav,
    .about-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .home-nav-actions {
        justify-content: flex-start;
    }

    .home-brand img {
        width: 74px;
        height: 74px;
    }

    .welcome-card {
        min-height: 500px;
    }

    .sidebar-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .topbar {
        align-items: flex-start;
        flex-direction: column;
    }

    .stat-grid,
    .treatment-grid,
    .detail-grid,
    .registration-plans,
    .report-body {
        grid-template-columns: 1fr;
    }

    .report-header,
    .subscription-panel,
    .profile-about-link {
        flex-direction: column;
    }

    .solution-grid,
    .value-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 620px) {
    .main-panel {
        padding: 16px;
    }

    .sidebar {
        padding: 16px;
    }

    .brand {
        min-height: auto;
    }

    .brand img {
        width: 64px;
        height: 64px;
    }

    .sidebar-nav,
    .stat-grid {
        grid-template-columns: 1fr;
    }

    .home-nav-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .welcome-intro h1 {
        font-size: 2rem;
    }

    .carousel-controls {
        width: 100%;
        justify-content: space-between;
    }

    .agricheck-carousel {
        gap: 12px;
        padding-left: 0;
        padding-right: 0;
    }

    .welcome-card,
    .welcome-card.is-featured {
        flex-basis: 86vw;
        min-height: 520px;
        padding: 18px;
    }

    .card-content h2 {
        max-width: none;
        font-size: 1.8rem;
    }

    .mini-metrics {
        grid-template-columns: 1fr;
    }
}
