/* ============================================
   MEVA — Unified Agricultural Ecosystem
   styles.css — BENTO BOX / PREMIUM UTILITARIAN
   ============================================ */

/* ---------- Google Font ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
    --bg-main: #FBFBF6;
    --bg-card: #FFFFFF;
    --bg-inner: #F6F6F1;
    --text-main: #1a1a1a;
    --text-secondary: #555555;
    --border-color: #E8E8E3;
    --accent: #2D6A4F;
    --accent-light: #D8F3DC;
    --meva-green: #2D6A4F;
    --meva-dark: #1B4332;
    --meva-light: #D8F3DC;
    --trust-blue: #1B3A5C;
    --trust-blue-light: #E0ECF5;
    --radius: 20px;
    --radius-sm: 14px;
    --gap: 12px;
}

body.dark-mode {
    --bg-main: #131313;
    --bg-card: #1C1C1C;
    --bg-inner: #252525;
    --text-main: #F0F0F0;
    --text-secondary: #999999;
    --border-color: #2E2E2E;
}

/* ---------- Intro Splash Screen ---------- */
.splash-screen {
    position: fixed;
    inset: 0;
    background: var(--bg-main);
    z-index: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.splash-screen.fade-out {
    opacity: 0;
    transform: scale(1.02);
    pointer-events: none;
}

.splash-logo-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-logo {
    width: 0;
    opacity: 0;
    filter: none;
    animation: splashLogoIn 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) 0.3s forwards;
}

.splash-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 106, 79, 0.08) 0%, transparent 70%);
    animation: glowPulse 2s ease-in-out 0.5s infinite;
}

.splash-ring {
    position: absolute;
    width: 220px;
    height: 220px;
    border: 1.5px solid rgba(45, 106, 79, 0.1);
    border-radius: 50%;
    animation: ringExpand 2s ease-out 0.8s forwards;
    opacity: 0;
}

.splash-ring:nth-child(2) {
    animation-delay: 1.1s;
    width: 280px;
    height: 280px;
}

.splash-tagline {
    margin-top: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 6px;
    text-transform: uppercase;
    color: var(--meva-green);
    opacity: 0;
    transform: translateY(20px);
    animation: taglineIn 0.8s ease 1.4s forwards;
}

.splash-bar-track {
    width: 200px;
    height: 3px;
    background: var(--border-color);
    border-radius: 10px;
    margin-top: 40px;
    overflow: hidden;
    opacity: 0;
    animation: taglineIn 0.5s ease 1.6s forwards;
}

.splash-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--meva-green);
    border-radius: 10px;
    animation: barFill 1.8s ease-in-out 1.8s forwards;
}

.splash-leaf {
    position: absolute;
    font-size: 20px;
    opacity: 0;
    animation: leafFloat 3s ease-in-out infinite;
}

.splash-leaf:nth-child(1) { left: 15%; top: 20%; animation-delay: 0.5s; font-size: 16px; }
.splash-leaf:nth-child(2) { right: 20%; top: 30%; animation-delay: 1.0s; font-size: 22px; }
.splash-leaf:nth-child(3) { left: 25%; bottom: 25%; animation-delay: 1.5s; font-size: 14px; }
.splash-leaf:nth-child(4) { right: 15%; bottom: 20%; animation-delay: 0.8s; font-size: 18px; }
.splash-leaf:nth-child(5) { left: 10%; top: 50%; animation-delay: 1.2s; font-size: 12px; }

@keyframes splashLogoIn {
    0% { width: 0; opacity: 0; transform: scale(0.3) rotate(-10deg); }
    60% { width: 280px; opacity: 1; transform: scale(1.08) rotate(2deg); }
    80% { transform: scale(0.96) rotate(-1deg); }
    100% { width: 280px; opacity: 1; transform: scale(1) rotate(0deg); }
}
@keyframes glowPulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.3); opacity: 0.8; }
}
@keyframes ringExpand {
    0% { transform: scale(0.5); opacity: 0; }
    50% { opacity: 0.4; }
    100% { transform: scale(1.5); opacity: 0; }
}
@keyframes taglineIn { to { opacity: 1; transform: translateY(0); } }
@keyframes barFill { 0% { width: 0%; } 100% { width: 100%; } }
@keyframes leafFloat {
    0% { opacity: 0; transform: translateY(0) rotate(0deg); }
    20% { opacity: 0.6; }
    50% { opacity: 0.4; transform: translateY(-30px) rotate(45deg); }
    80% { opacity: 0.6; }
    100% { opacity: 0; transform: translateY(-60px) rotate(90deg); }
}

/* ---------- Landing Page ---------- */
.landing-page {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: var(--bg-main);
    overflow: hidden;
}

.landing-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
    text-align: center;
    animation: landingFadeIn 0.6s ease;
}

.landing-logo {
    width: clamp(100px, 20vw, 150px);
    margin-bottom: clamp(24px, 4vw, 36px);
    filter: none;
    animation: logoFloat 4s ease-in-out infinite;
}

.landing-headline {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(2.2rem, 7vw, 4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--meva-dark);
    line-height: 1.1;
    letter-spacing: -0.01em;
    margin-bottom: 14px;
    animation: headlineSlideUp 0.9s cubic-bezier(0.22,1,0.36,1) 0.2s both;
}

.landing-sub {
    font-family: 'Nunito', 'Inter', sans-serif;
    font-size: clamp(0.85rem, 2vw, 1rem);
    color: var(--text-secondary);
    font-weight: 700;
    max-width: 380px;
    margin-bottom: clamp(32px, 5vw, 44px);
    opacity: 0;
    animation: headlineSlideUp 0.8s ease 0.5s forwards;
}

.landing-cta {
    font-family: 'Nunito', 'Inter', sans-serif;
    padding: 18px 56px;
    font-size: 16px;
    font-weight: 800;
    color: white;
    background: var(--meva-green);
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 2px;
    box-shadow: none;
    transition: transform 0.15s ease, background 0.15s ease;
    animation: headlineSlideUp 0.8s ease 0.7s both;
}
.landing-cta:hover { transform: translateY(-2px); background: var(--meva-dark); }
.landing-cta:active { transform: translateY(0); }

/* Role Selection */
.role-selection {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 40px 24px;
    text-align: center;
    background: var(--bg-main);
}
.role-selection.hidden { display: none; }

.role-logo {
    width: clamp(64px, 12vw, 80px);
    margin-bottom: 20px;
    filter: none;
}

.role-question {
    font-family: 'DM Serif Display', Georgia, serif;
    font-size: clamp(1.6rem, 5vw, 2.4rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-main);
    margin-bottom: clamp(24px, 4vw, 36px);
    animation: headlineSlideUp 0.6s ease both;
}

.role-cards {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
    width: 100%;
    max-width: 420px;
}

.role-card {
    font-family: 'Nunito', 'Inter', sans-serif;
    padding: clamp(20px, 3vw, 24px) clamp(18px, 3vw, 24px);
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: transform 0.2s ease;
    animation: roleCardIn 0.5s cubic-bezier(0.22,1,0.36,1) both;
    text-align: left;
    border: 1px solid var(--border-color);
    box-shadow: none;
}
.role-card:hover { transform: translateY(-3px); }
.role-card:active { transform: scale(0.98); }

.role-card h3 { font-family: 'Nunito', 'Inter', sans-serif; font-size: clamp(14px, 2vw, 16px); font-weight: 800; margin: 0; }
.role-card p { font-family: 'Nunito', 'Inter', sans-serif; font-size: clamp(10px, 1.5vw, 12px); font-weight: 600; opacity: 0.7; margin: 3px 0 0; }

.role-card-green {
    background: var(--meva-green);
    color: white;
    border-color: var(--meva-green);
}
.role-card-blue {
    background: var(--trust-blue);
    color: white;
    border-color: var(--trust-blue);
}
.role-card-purple {
    background: #5C4B8A;
    color: white;
    border-color: #5C4B8A;
}

.role-icon {
    width: clamp(44px, 6vw, 52px);
    height: clamp(44px, 6vw, 52px);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(18px, 2.5vw, 22px);
    flex-shrink: 0;
}

.role-back {
    font-family: 'Nunito', 'Inter', sans-serif;
    margin-top: 28px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.role-back:hover { opacity: 1; }

@keyframes landingFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes headlineSlideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes logoFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes roleCardIn { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }

/* ============================================
   BASE — BENTO BOX SYSTEM
   ============================================ */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Nunito', 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    transition: background-color 0.3s ease, color 0.3s ease;
    overflow-x: hidden;
    padding-bottom: 90px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .section-heading {
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 800;
    color: var(--text-main);
}

button, input, select, textarea, .btn-meva, .nav-item span, .login-btn {
    font-family: 'Nunito', 'Inter', sans-serif;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.1); border-radius: 100px; }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* ---------- Card System (Bento Boxes) ---------- */
.card-custom {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius) !important;
    color: var(--text-main);
    box-shadow: none !important;
}

.inner-block {
    background-color: var(--bg-inner);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    transition: background 0.2s ease;
}

/* ---------- Screens & Tabs ---------- */
.app-screen { display: none; min-height: 100vh; }
.app-screen.active { display: block; animation: pageIn 0.35s ease; }
.tab-content { display: none; }
.tab-content.active { display: block; animation: tabFade 0.3s ease; }

/* ---------- Bottom Nav (Flat, Utilitarian) ---------- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    display: flex;
    z-index: 50;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.nav-item {
    transition: all 0.15s ease;
    min-height: 48px;
}

.nav-item.active {
    color: var(--accent);
    border-top: 3px solid var(--accent);
}

/* ---------- Modal (Flat overlay) ---------- */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 100;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.modal.active {
    display: flex;
    animation: modalIn 0.25s ease;
}

/* ---------- Stories ---------- */
.story-circle {
    width: 72px;
    height: 72px;
    border: 2px solid var(--accent);
    padding: 2px;
    border-radius: 50%;
    cursor: pointer;
    flex-shrink: 0;
    object-fit: cover;
    transition: transform 0.15s ease;
}

.story-circle:hover {
    transform: scale(1.06);
    box-shadow: none;
}

/* ---------- Logistics Styles (Bento Cards) ---------- */
.status-container {
    background: var(--bg-inner);
    padding: 6px 14px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease;
}
.status-container:hover { transform: scale(1.03); }

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #bdc3c7;
    transition: all 0.3s ease;
}

.dot-online {
    background: var(--meva-green);
    box-shadow: none;
}

.load-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: var(--gap);
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease;
    box-shadow: none;
}
.load-card:hover {
    transform: translateY(-2px);
    box-shadow: none;
}

.price-tag {
    color: var(--meva-green);
    font-size: 24px;
    font-weight: 900;
}

.weight-badge {
    background: var(--bg-inner);
    color: var(--text-main);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    border: 1px solid var(--border-color);
}

.route-path {
    margin: 16px 0;
    border-left: 2px solid var(--meva-green);
    padding-left: 20px;
    position: relative;
}

.node {
    position: relative;
    margin-bottom: 15px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-main);
}

.node::before {
    content: '';
    position: absolute;
    left: -26px;
    top: 4px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 2px solid var(--meva-green);
}

.node-end::before {
    background: var(--meva-green);
}

/* ---------- Primary Action Button (Forest Green) ---------- */
.btn-meva {
    width: 100%;
    background: var(--meva-green);
    color: white;
    border: none;
    padding: 16px;
    border-radius: var(--radius-sm);
    font-weight: 800;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
    min-height: 48px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    box-shadow: none;
}
.btn-meva:hover { transform: translateY(-1px); background: var(--meva-dark); box-shadow: none; }
.btn-meva:active { transform: translateY(0); }

.tracking-ui {
    text-align: center;
    padding: 40px 20px;
}

.map-box {
    height: 300px;
    background: var(--bg-inner);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--border-color);
}

/* ---------- Notification Drawer (Flat) ---------- */
.notification-drawer {
    position: fixed;
    top: 0;
    right: -380px;
    width: 380px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 150;
    box-shadow: none;
    transition: right 0.3s ease;
    overflow-y: auto;
    border-left: 1px solid var(--border-color);
}
.notification-drawer.open { right: 0; }

.notification-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    z-index: 140;
    display: none;
    backdrop-filter: none;
}
.notification-overlay.open { display: block; }

.notif-item {
    padding: 18px 20px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
    min-height: 48px;
}
.notif-item:hover { background: var(--bg-inner); }
.notif-item.unread { border-left: 4px solid var(--accent); }

/* ---------- Skeleton Loading ---------- */
.skeleton {
    background: var(--bg-inner);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius-sm);
}
.skeleton-card { height: 320px; border-radius: var(--radius); }
.skeleton-text { height: 16px; margin-bottom: 8px; width: 70%; }
.skeleton-text-sm { height: 12px; margin-bottom: 6px; width: 50%; }
.skeleton-circle { width: 72px; height: 72px; border-radius: 50%; }

/* ---------- Chat UI ---------- */
.chat-container {
    display: flex;
    flex-direction: column;
    height: 500px;
    max-height: 70vh;
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.chat-bubble {
    max-width: 75%;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    line-height: 1.5;
    animation: bubbleIn 0.25s ease;
}

.chat-bubble.sent {
    align-self: flex-end;
    background: var(--meva-green);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-bubble.received {
    align-self: flex-start;
    background: var(--bg-inner);
    color: var(--text-main);
    border-bottom-left-radius: 4px;
    border: 1px solid var(--border-color);
}

.chat-input-area {
    display: flex;
    gap: 8px;
    padding: 14px;
    border-top: 1px solid var(--border-color);
}

.chat-input-area input {
    flex: 1;
    padding: 14px 18px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-inner);
    color: var(--text-main);
    outline: none;
    font-size: 14px;
    min-height: 48px;
}

.chat-input-area button {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background: var(--meva-green);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}
.chat-input-area button:hover { background: var(--meva-dark); }

/* ---------- Login Screen (Clean, No Glassmorphism) ---------- */
.login-screen {
    position: fixed;
    inset: 0;
    background: var(--meva-dark);
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.login-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    backdrop-filter: none;
    border-radius: var(--radius);
    padding: 48px 36px;
    width: 100%;
    max-width: 420px;
    color: var(--text-main);
}

.login-input {
    width: 100%;
    padding: 16px 20px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-inner);
    color: var(--text-main);
    font-size: 15px;
    font-weight: 600;
    outline: none;
    margin-bottom: 12px;
    transition: border-color 0.2s ease;
    min-height: 48px;
}
.login-input:focus { border-color: var(--accent); }
.login-input::placeholder { color: var(--text-secondary); }

.login-btn {
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    background: var(--meva-green);
    color: white;
    font-weight: 800;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.1s ease, background 0.15s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    min-height: 48px;
    box-shadow: none;
}
.login-btn:hover { transform: translateY(-1px); background: var(--meva-dark); box-shadow: none; }

/* ---------- Global/Trend Section ---------- */
.trend-card {
    background: var(--bg-card);
    border-radius: var(--radius);
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: transform 0.15s ease;
    box-shadow: none;
}
.trend-card:hover { transform: translateY(-2px); }

.converter-input {
    width: 100%;
    padding: 14px 16px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background: var(--bg-inner);
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    outline: none;
    min-height: 48px;
}

/* ---------- Order History (Bento Cards) ---------- */
.deal-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 18px 20px;
    margin-bottom: var(--gap);
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: transform 0.1s ease;
    box-shadow: none;
}
.deal-card:hover { transform: translateX(3px); }

.deal-status {
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.deal-status.completed {
    background: var(--accent-light);
    color: var(--meva-dark);
}

.deal-status.pending {
    background: #FEF3C7;
    color: #92400E;
}

.deal-status.rejected {
    background: #FECACA;
    color: #991B1B;
}

/* ---------- Image Upload ---------- */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius);
    padding: 28px;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s ease;
    position: relative;
    overflow: hidden;
    min-height: 48px;
}
.upload-zone:hover { border-color: var(--accent); background: var(--accent-light); }
.upload-zone.has-image { border-style: solid; border-color: var(--accent); }
.upload-preview { width: 100%; height: 200px; object-fit: cover; border-radius: var(--radius-sm); }

/* ---------- Finance / Trust Markers (Navy Blue) ---------- */
.bg-green-500, [style*="background:#2ecc71"], [style*="background:var(--meva-green)"] {
    /* Finance buttons pick up navy for trust */
}

/* ---------- Animations (Subtle, No 3D) ---------- */
@keyframes pageIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes tabFade {
    from { opacity: 0; transform: translateX(6px); }
    to { opacity: 1; transform: translateX(0); }
}
@keyframes modalIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes celebrate {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}
.celebration-card { animation: celebrate 0.4s ease; }
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(45, 106, 79, 0.3); }
    50% { box-shadow: 0 0 0 8px rgba(45, 106, 79, 0); }
}
@keyframes slideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ---------- Leaflet Map ---------- */
.leaflet-container { border-radius: var(--radius); }

/* ============================================
   RESPONSIVE — BENTO GRID ADAPTATIONS
   ============================================ */

/* Desktop */
@media (min-width: 1024px) {
    .bottom-nav {
        top: 80px;
        bottom: auto;
        flex-direction: column;
        width: 220px;
        height: calc(100vh - 80px);
        border-right: 1px solid var(--border-color);
        border-top: none;
    }

    .harvest-container { margin-left: 220px; }

    .nav-item.active {
        border-top: none;
        border-left: 3px solid var(--accent);
        background: var(--accent-light);
    }

    .notification-drawer { width: 400px; right: -400px; }
    .notification-drawer.open { right: 0; }

    .role-cards {
        flex-direction: row;
        max-width: 680px;
        gap: 16px;
    }
    .role-card {
        flex-direction: column;
        text-align: center;
        padding: 28px 20px;
        gap: 12px;
        flex: 1;
    }
    .role-icon { width: 60px; height: 60px; font-size: 24px; border-radius: 16px; }
    .role-card h3 { font-size: 15px; }
    .role-card p { font-size: 11px; }
    .landing-logo { width: 160px; }
}

/* Tablet */
@media (max-width: 768px) {
    .notification-drawer { width: 100%; right: -100%; }
}

/* Mobile */
@media (max-width: 640px) {
    .landing-view { padding: 32px 20px; }
    .landing-cta { padding: 16px 44px; font-size: 14px; letter-spacing: 1.5px; }
    .role-cards { gap: 10px; }
    .role-card { padding: 18px 16px; gap: 14px; border-radius: 16px; }
    .role-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 16px; }
    .role-card h3 { font-size: 14px; }
    .role-card p { font-size: 10px; }
    .bottom-nav { padding: 0 4px; }
    .nav-item { padding: 10px 4px !important; min-height: 48px; }
    .load-card { padding: 20px; }
    .btn-meva { padding: 16px; font-size: 13px; }
    .chat-container { height: 400px; }
}