/* =============================================
   Agribit — Global Stylesheet
   Design tokens mirror the Tailwind config:
     primary:          #13ec13
     background-light: #f6f8f6
     background-dark:  #102210
   ============================================= */

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

:root {
    --primary:           #13ec13;
    --primary-10:        rgba(19, 236, 19, 0.10);
    --primary-20:        rgba(19, 236, 19, 0.20);
    --primary-shadow:    rgba(19, 236, 19, 0.20);
    --bg-light:          #f6f8f6;
    --bg-dark:           #102210;
    --text-light:        #0f172a;   /* slate-900 */
    --text-muted:        #475569;   /* slate-600 */
    --text-muted-dark:   #94a3b8;   /* slate-400 */
    --border-radius:     0.25rem;
    --radius-lg:         0.5rem;
    --radius-xl:         0.75rem;
    --radius-2xl:        1rem;
    --radius-3xl:        1.5rem;
    --radius-full:       9999px;
}

html { scroll-behavior: smooth; }

body {
    font-family: 'Space Grotesk', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-light);
    line-height: 1.5;
}

a { text-decoration: none; }
img { display: block; width: 100%; }
button { cursor: pointer; font-family: inherit; }

/* ---------- Top Navigation Bar ---------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    width: 100%;
    border-bottom: 1px solid var(--primary-10);
    background: rgba(246, 248, 246, 0.80);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.site-header .container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px)  { .site-header .container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .site-header .container { padding: 0 2rem; } }

.site-header .header-inner {
    display: flex;
    height: 4rem;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.site-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.site-logo-img {
    height: 3rem;
    width: auto;
    display: block;
}

.footer-logo-img {
    height: 2.75rem;
    width: auto;
    display: block;
    margin-bottom: 0.75rem;
}

.site-logo .logo-icon {
    display: flex;
    height: 2rem;
    width: 2rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    color: var(--bg-dark);
}

.site-logo span.brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

/* Header right-side actions */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-signin {
    background: transparent;
    color: var(--text-light);
    border: 1px solid #e2e8f0;
    font-weight: 600;
}

.header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid rgba(19,236,19,0.2);
    background: center/cover no-repeat url('https://lh3.googleusercontent.com/aida-public/AB6AXuCMN2FNbRUVOkXn1HlDp12nXTv9nvxfeE8Bb68Twu1KY26HBh-T6SNK4nfr1gWxSzSYLCyptbYhYlCsf8stKkaUcPOXsSFSB0mkWFwOHnhQ2lKU9LWsmeSwNwtFbvadWigSmkP-jRnQ3Wn9KcfqRV1AR37yZWpafRLO4yDFTgSpPV8Ksd43DtIPZl3HSsySDf7UsiU8rgqd0lfxOhZaGpYtOstyebPT77bmbMSDEhagQfDSKB1aVdSEj9EhcIN_jD7XLB-X7-ToJvg');
    flex-shrink: 0;
}

/* Hide Sign In + avatar on mobile — show only hamburger */
@media (max-width: 767px) {
    .header-signin { display: none; }
    .header-avatar { display: none; }
}

/* Hamburger button — visible only on mobile */
.nav-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-lg);
    width: 2.25rem;
    height: 2.25rem;
    color: var(--text-light);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-hamburger .material-symbols-outlined { font-size: 1.25rem !important; }
@media (min-width: 768px) { .nav-hamburger { display: none; } }

/* Desktop nav links */
.main-nav {
    display: none;
    align-items: center;
    gap: 1.25rem;
    list-style: none;
    flex-wrap: wrap;
}
@media (min-width: 768px) { .main-nav { display: flex; } }

/* ── Mobile nav drawer (outside header, no backdrop-filter trap) ── */
.mobile-nav-drawer {
    display: none;
    position: fixed;
    top: 4rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    z-index: 200;
    overflow-y: auto;
    border-top: 1px solid #e2e8f0;
    padding: 0.5rem 1.5rem 2rem;
}
.mobile-nav-drawer.nav-open { display: block; }
@media (min-width: 768px) { .mobile-nav-drawer { display: none !important; } }

.mobile-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mobile-nav-list > li {
    border-bottom: 1px solid #f1f5f9;
}

.mobile-nav-list > li > a,
.mnav-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.9rem 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-light);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}
.mobile-nav-list > li > a:hover,
.mnav-dropdown-trigger:hover { color: var(--primary); }
.mobile-nav-list > li > a.nav-active { color: var(--primary); }

.mnav-chevron {
    font-size: 1.1rem !important;
    transition: transform 0.2s;
    flex-shrink: 0;
}
.mnav-has-dropdown.dropdown-open .mnav-chevron { transform: rotate(180deg); }

/* Mobile sub-dropdown */
.mnav-dropdown {
    display: none;
    list-style: none;
    padding: 0 0 0.75rem 1rem;
    margin: 0;
}
.mnav-has-dropdown.dropdown-open .mnav-dropdown { display: block; }

.mnav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-muted);
}
.mnav-dropdown li a:hover { color: var(--primary); }
.mnav-dropdown .material-symbols-outlined { font-size: 1rem !important; }

/* Sign In row at bottom of drawer */
.mnav-signin-row {
    border-bottom: none !important;
    padding-top: 1.25rem;
}


.main-nav a {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.15s;
    white-space: nowrap;
}
.main-nav a:hover { color: var(--primary); }
.main-nav a.nav-active { color: var(--primary); }

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

.nav-dropdown-trigger {
    display: flex;
    align-items: center;
    gap: 0.2rem;
    cursor: pointer;
}

.nav-chevron {
    font-size: 1rem !important;
    transition: transform 0.2s;
}

.nav-has-dropdown:hover .nav-chevron {
    transform: rotate(180deg);
}

.nav-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    padding-top: 0.75rem;
    list-style: none;
    min-width: 13rem;
    z-index: 200;
    white-space: nowrap;
}

.nav-dropdown::before {
    content: '';
    position: absolute;
    top: 0.75rem;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 24px rgba(0,0,0,0.10);
    z-index: -1;
}

.nav-dropdown li {
    position: relative;
    z-index: 1;
}

.nav-has-dropdown:hover .nav-dropdown {
    display: block;
}

.nav-dropdown li a {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.625rem 0.875rem;
    border-radius: var(--radius-lg);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-light);
    transition: background 0.15s, color 0.15s;
}

.nav-dropdown li a:hover {
    background: var(--primary-10);
    color: var(--primary);
}

.nav-dropdown li a .material-symbols-outlined {
    font-size: 1.125rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.nav-dropdown li a:hover .material-symbols-outlined {
    color: var(--primary);
}

/* Sign-up button */
.btn-signup {
    border-radius: var(--radius-lg);
    background-color: var(--primary);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--bg-dark);
    border: none;
    transition: opacity 0.15s;
}
.btn-signup:hover { opacity: 0.90; }

/* ---------- Shared container ---------- */
.section-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}
@media (min-width: 640px)  { .section-container { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .section-container { padding: 0 2rem; } }

/* ---------- Hero Section ---------- */
.hero-section {
    position: relative;
    padding: 5rem 0;
    overflow: hidden;
    text-align: center;
}

.hero-section h1 {
    font-size: clamp(2.25rem, 6vw, 3.75rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.hero-section h1 .highlight { color: var(--primary); }

/* Typing animation */
.typing-cursor {
    display: inline-block;
    color: var(--primary);
    font-weight: 300;
    animation: blink 0.7s step-end infinite;
    margin-left: 2px;
}
@keyframes blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0; }
}

.hero-section .hero-desc {
    max-width: 42rem;
    margin: 0 auto 2.5rem;
    font-size: 1.125rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Farm image wrapper */
.hero-image-wrap {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 21 / 9;
    box-shadow: 0 25px 50px rgba(0,0,0,0.25);
}

.hero-image-wrap .overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,34,16,0.60), transparent);
}

.hero-image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-caption {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    text-align: left;
}

.hero-caption p:first-child {
    color: #fff;
    font-size: 1.5rem;
    font-weight: 700;
}

.hero-caption p:last-child {
    color: var(--primary);
    font-weight: 500;
}

/* ---------- Steps Section ---------- */
.steps-section {
    padding: 6rem 0;
    background-color: var(--primary-10);
}

.section-heading {
    text-align: center;
    margin-bottom: 4rem;
}

.section-heading h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 900;
    margin-bottom: 1rem;
}

.section-heading p {
    color: var(--text-muted);
    max-width: 36rem;
    margin: 0 auto;
}

/* Steps grid */
.steps-wrapper { position: relative; }

.steps-connector {
    display: none;
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--primary-20);
    transform: translateY(-50%);
}

@media (min-width: 1024px) { .steps-connector { display: block; } }

.steps-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px)  { .steps-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .steps-grid { grid-template-columns: repeat(4, 1fr); } }

.step-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--bg-light);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid var(--primary-10);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
    text-align: center;
}

.step-icon {
    z-index: 1;
    margin-bottom: 1.5rem;
    display: flex;
    height: 4rem;
    width: 4rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background-color: var(--primary);
    color: var(--bg-dark);
    box-shadow: 0 8px 16px var(--primary-shadow);
}

.step-icon .material-symbols-outlined { font-size: 1.875rem; }

.step-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ---------- Feature Highlight Section ---------- */
.feature-section {
    padding: 6rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4rem;
    align-items: center;
}

@media (min-width: 1024px) { .feature-grid { grid-template-columns: 1fr 1fr; } }

/* Image side */
.feature-image-wrap {
    order: 2;
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
    border: 4px solid var(--primary-20);
}

@media (min-width: 1024px) { .feature-image-wrap { order: 1; } }

.feature-image-wrap .tint {
    position: absolute;
    inset: 0;
    background: rgba(19, 236, 19, 0.10);
    mix-blend-mode: overlay;
}

/* Text side */
.feature-content {
    order: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

@media (min-width: 1024px) { .feature-content { order: 2; } }

.feature-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    background-color: var(--primary-20);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    width: fit-content;
}

.feature-badge .material-symbols-outlined { font-size: 0.875rem; }

.feature-content h2 {
    font-size: clamp(1.875rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.feature-content > p {
    color: var(--text-muted);
    line-height: 1.7;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.feature-list .material-symbols-outlined { color: var(--primary); }

/* ---------- Call To Action ---------- */
.cta-section {
    padding: 6rem 0;
    background-color: var(--bg-light);
}

.cta-card {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    background-color: var(--primary);
    padding: 2rem;
    text-align: center;
}

@media (min-width: 768px) { .cta-card { padding: 4rem; } }

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

.cta-card h2 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 900;
    color: var(--bg-dark);
    margin-bottom: 1.5rem;
    line-height: 1.1;
}

.cta-card p {
    color: rgba(16, 34, 16, 0.80);
    font-size: 1.125rem;
    margin-bottom: 2.5rem;
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: center;
}

@media (min-width: 640px) { .cta-buttons { flex-direction: row; } }

.btn-cta-primary {
    background-color: var(--bg-dark);
    color: #fff;
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    border: none;
    transition: transform 0.15s;
}
.btn-cta-primary:hover { transform: scale(1.05); }

.btn-cta-secondary {
    background-color: rgba(255,255,255,0.20);
    color: var(--bg-dark);
    border: 1px solid rgba(16, 34, 16, 0.10);
    padding: 1rem 2rem;
    border-radius: var(--radius-xl);
    font-weight: 700;
    font-size: 1.125rem;
    transition: background-color 0.15s;
}
.btn-cta-secondary:hover { background-color: rgba(255,255,255,0.30); }

/* Decorative blobs */
.cta-blob-top {
    position: absolute;
    top: 0;
    right: 0;
    width: 16rem;
    height: 16rem;
    border-radius: var(--radius-full);
    background: rgba(255,255,255,0.10);
    filter: blur(3rem);
    transform: translate(50%, -50%);
}

.cta-blob-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 16rem;
    height: 16rem;
    border-radius: var(--radius-full);
    background: rgba(16, 34, 16, 0.05);
    filter: blur(3rem);
    transform: translate(-50%, 50%);
}

/* ---------- Footer ---------- */
.site-footer {
    border-top: 1px solid var(--primary-10);
    padding: 3rem 0;
    background-color: var(--bg-light);
}

.footer-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

@media (min-width: 768px) {
    .footer-inner {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.footer-logo .logo-icon-sm {
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--border-radius);
    background-color: var(--primary);
    color: var(--bg-dark);
}

.footer-logo .logo-icon-sm .material-symbols-outlined { font-size: 0.875rem; }

.footer-logo span.brand-name {
    font-size: 1.125rem;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.footer-links a {
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--primary); }

.footer-copy {
    font-size: 0.875rem;
    color: #64748b;
}

/* =============================================
   Listings Page
   ============================================= */

/* ---------- Page wrapper ---------- */
.listings-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ---------- Header overrides for listings ---------- */
/* Reuses .site-header but uses white bg instead of bg-light */
.listings-layout .site-header {
    background: rgba(255, 255, 255, 0.85);
}

/* ---------- Main content area ---------- */
.listings-main {
    flex: 1;
    width: 100%;
    max-width: 80rem;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
}

@media (min-width: 1024px) {
    .listings-main { padding: 2.5rem 5rem; }
}

/* ---------- Page hero (title + subtitle) ---------- */
.listings-hero {
    margin-bottom: 2.5rem;
}

.listings-hero h1 {
    font-size: clamp(1.875rem, 4vw, 3rem);
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.listings-hero p {
    color: var(--text-muted);
    font-size: 1.125rem;
    max-width: 42rem;
    line-height: 1.7;
}

/* ---------- Search & Filter Bar ---------- */
.search-bar {
    background: #fff;
    padding: 1rem;
    border-radius: var(--radius-xl);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #f1f5f9;
    margin-bottom: 2rem;
}

.search-bar-inner {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 1024px) {
    .search-bar-inner { flex-direction: row; align-items: center; }
}

/* Search input */
.search-input-wrap {
    flex: 1;
    position: relative;
}

.search-input-wrap .material-symbols-outlined {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.search-input-wrap input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 3rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.9375rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input-wrap input::placeholder { color: #94a3b8; }

.search-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 236, 19, 0.15);
}

/* Filter buttons row */
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
    cursor: pointer;
    transition: border-color 0.15s;
    white-space: nowrap;
}

.filter-btn .material-symbols-outlined {
    font-size: 1.25rem;
    color: #94a3b8;
    transition: color 0.15s;
}

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

.filter-btn:hover .material-symbols-outlined {
    color: var(--primary);
}

/* Type filter tabs (Explore/listings page) */
.filter-type-btn {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    border: 1px solid #e2e8f0;
    background: #fff;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.filter-type-btn .material-symbols-outlined {
    font-size: 1.125rem;
}

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

.filter-type-btn--active {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
}

.filter-type-btn--active:hover {
    color: var(--bg-dark);
}

.btn-apply {
    background-color: var(--primary);
    color: var(--bg-dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    border: none;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(19, 236, 19, 0.25);
    transition: filter 0.15s;
    white-space: nowrap;
}

.btn-apply:hover { filter: brightness(1.06); }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.875rem 0;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    flex-wrap: wrap;
}

.breadcrumb-link {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.15s;
}

.breadcrumb-link:hover {
    color: var(--primary);
}

.breadcrumb-sep {
    font-size: 1rem !important;
    color: #cbd5e1;
    flex-shrink: 0;
}

.breadcrumb-current {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-light);
}

/* ---------- Plot Cards Grid ---------- */
.plots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px)  { .plots-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .plots-grid { grid-template-columns: repeat(3, 1fr); } }

/* Individual card */
.plot-card {
    background: #fff;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    transition: border-color 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: inherit;
}

.plot-card:hover {
    border-color: rgba(19, 236, 19, 0.30);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.10);
}

/* Card image */
.card-img {
    position: relative;
    height: 14rem;
    overflow: hidden;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.plot-card:hover .card-img img {
    transform: scale(1.05);
}

/* Badge overlaid on image */
.plot-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.7rem;
    font-weight: 700;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 1px 4px rgba(0,0,0,0.10);
}

/* Card body */
.plot-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.plot-title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.plot-title-row h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.3;
}

.plot-price {
    color: var(--primary);
    font-weight: 700;
    white-space: nowrap;
    font-size: 1rem;
}

.plot-price .price-unit {
    color: #94a3b8;
    font-size: 0.75rem;
    font-weight: 400;
}

.plot-crop {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.plot-crop .material-symbols-outlined {
    color: var(--primary);
    font-size: 1rem;
}

.plot-crop p {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.plot-desc {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.btn-view-details {
    margin-top: auto;
    width: 100%;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--radius-lg);
    background: #f8fafc;
    color: #0f172a;
    border: 1px solid #e2e8f0;
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

.btn-view-details .material-symbols-outlined { font-size: 1.125rem; }

.plot-card:hover .btn-view-details {
    background-color: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
}

/* Commodity card content */
.commodity-title {
    font-size: 1.0625rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.35;
    margin-bottom: 0.5rem;
}

.commodity-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 1rem;
}

.commodity-location .material-symbols-outlined {
    font-size: 0.9375rem;
    color: #94a3b8;
    flex-shrink: 0;
}

.commodity-location span:last-child {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.commodity-meta {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1rem;
    padding: 0.75rem;
    background: #f8fafc;
    border-radius: var(--radius-lg);
    border: 1px solid #f1f5f9;
}

.commodity-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.meta-label {
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.meta-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
}

.commodity-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    margin-bottom: 1rem;
}

.commodity-tag {
    padding: 0.2rem 0.625rem;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    font-size: 0.75rem;
    font-weight: 600;
    color: #166534;
}

/* ---------- Pagination ---------- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-btn {
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    background: #fff;
    color: #475569;
    font-family: inherit;
    font-size: 0.9375rem;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
}

.page-btn:hover:not(.page-btn--active) {
    background-color: #f8fafc;
}

.page-btn--active {
    background-color: var(--primary);
    color: var(--bg-dark);
    border-color: var(--primary);
    font-weight: 700;
}

.page-btn .material-symbols-outlined { font-size: 1.25rem; }

/* ---------- Listings Footer (expanded 4-col grid) ---------- */
.listings-footer {
    background: #fff;
    border-top: 1px solid var(--primary-10);
    padding: 3rem 1.5rem;
    margin-top: 2.5rem;
}

@media (min-width: 1024px) { .listings-footer { padding: 3rem 5rem; } }

.listings-footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
    .listings-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; }
}

.footer-brand-col .footer-logo { margin-bottom: 1rem; }

.footer-brand-col p {
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.7;
}

.footer-col h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 1rem;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.footer-col ul a {
    font-size: 0.875rem;
    color: #64748b;
    transition: color 0.15s;
}

.footer-col ul a:hover { color: var(--primary); }

/* Newsletter input row */
.newsletter-desc {
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.newsletter-input-row {
    display: flex;
    gap: 0.5rem;
}

.newsletter-input-row input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: var(--radius-lg);
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    font-family: inherit;
    font-size: 0.875rem;
    color: #1e293b;
    outline: none;
    transition: border-color 0.15s;
    min-width: 0;
}

.newsletter-input-row input:focus { border-color: var(--primary); }

.btn-newsletter-send {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: var(--radius-lg);
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    cursor: pointer;
    transition: filter 0.15s;
    flex-shrink: 0;
}

.btn-newsletter-send:hover { filter: brightness(1.06); }
.btn-newsletter-send .material-symbols-outlined { font-size: 1.125rem; }

/* Footer bottom bar */
.listings-footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .listings-footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.listings-footer-bottom p,
.listings-footer-bottom a {
    font-size: 0.75rem;
    color: #94a3b8;
}

.listings-footer-bottom .bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.listings-footer-bottom .bottom-links a:hover { color: var(--primary); }

/* =============================================
   Plot Detail Page
   ============================================= */

/* ---------- Page shell ---------- */
.detail-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
    background: var(--bg-light);
}

.detail-layout .site-header {
    background: rgba(255, 255, 255, 0.90);
}

/* Header right icons */
.header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.header-icon-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background: #f1f5f9;
    border: none;
    color: #475569;
    cursor: pointer;
    transition: background-color 0.15s;
}

.header-icon-btn:hover { background: #e2e8f0; }

.header-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 9999px;
    border: 2px solid var(--primary);
    object-fit: cover;
    flex-shrink: 0;
}

/* Breadcrumb bar above the two-column layout */
.detail-breadcrumb-wrap {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    padding: 0 1.5rem;
}

@media (min-width: 1024px) {
    .detail-breadcrumb-wrap { padding: 0 5rem; }
}

/* ---------- Main two-column layout ---------- */
.detail-main {
    flex: 1;
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .detail-main {
        flex-direction: row;
        align-items: flex-start;
        padding: 2rem 5rem;
        gap: 2rem;
    }
}

/* Left column */
.detail-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    min-width: 0;
}

/* ---------- Hero image with overlay ---------- */
.detail-hero {
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 21 / 9;
}

.detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-hero .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.65), transparent);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.detail-hero-text .hero-badge {
    display: inline-block;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 0.5rem;
}

.detail-hero-text h1 {
    color: #fff;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
}

.detail-hero-text .hero-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #cbd5e1;
    font-size: 0.875rem;
    margin-top: 0.35rem;
}

.detail-hero-text .hero-location .material-symbols-outlined { font-size: 1rem; }

/* ---------- Stats row ---------- */
.detail-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (min-width: 640px) { .detail-stats { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1.25rem;
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.stat-card .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.375rem;
    margin-bottom: 0.25rem;
}

.stat-card .stat-label {
    font-size: 0.8rem;
    color: #64748b;
    font-weight: 500;
}

.stat-card .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1.2;
}

/* ---------- Camera feed ---------- */
.camera-section h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.camera-section h2 .material-symbols-outlined { color: var(--primary); }

.camera-wrap {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-xl);
    overflow: hidden;
    background: #000;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.camera-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.82;
}

.camera-play-btn {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-play-btn button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 9999px;
    background: rgba(19, 236, 19, 0.90);
    border: none;
    color: var(--bg-dark);
    cursor: pointer;
    transition: transform 0.15s;
}

.camera-play-btn button:hover { transform: scale(1.08); }
.camera-play-btn button .material-symbols-outlined { font-size: 2.5rem; }

.camera-live-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: #dc2626;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-full);
}

.camera-live-badge .live-dot {
    width: 0.4rem;
    height: 0.4rem;
    border-radius: 9999px;
    background: #fff;
    animation: pulse 1.4s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.3; }
}

.camera-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.25rem 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.80), transparent);
}

.camera-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #fff;
    font-size: 0.8125rem;
    margin-bottom: 0.5rem;
}

.camera-progress-track {
    height: 0.25rem;
    background: rgba(255,255,255,0.25);
    border-radius: 9999px;
    overflow: hidden;
}

.camera-progress-fill {
    height: 100%;
    width: 65%;
    background: var(--primary);
    border-radius: 9999px;
}

/* ---------- Lower two-column info ---------- */
.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) { .detail-info-grid { grid-template-columns: 1fr 1fr; } }

/* Farm history */
.detail-info-grid section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.detail-info-grid section p {
    font-size: 0.9rem;
    color: #475569;
    line-height: 1.7;
}

/* Farmer card */
.farmer-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--primary-10);
    border-radius: var(--radius-lg);
    border: 1px solid var(--primary-20);
    margin-top: 1rem;
}

.farmer-card img {
    width: 3rem;
    height: 3rem;
    border-radius: 9999px;
    object-fit: cover;
    flex-shrink: 0;
}

.farmer-card .farmer-name { font-weight: 700; font-size: 0.9375rem; }
.farmer-card .farmer-role { font-size: 0.75rem; color: #64748b; }

/* Yield timeline card */
.yield-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.yield-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.yield-stage-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 0.2rem;
}

.yield-stage-value {
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--primary);
}

.yield-days {
    font-size: 0.875rem;
    font-weight: 500;
    color: #475569;
}

.yield-percent-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 9999px;
    background: var(--primary-20);
    color: #166534;
    margin-bottom: 0.6rem;
}

.yield-track {
    height: 0.5rem;
    background: #f1f5f9;
    border-radius: 9999px;
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.yield-fill {
    height: 100%;
    width: 65%;
    background: var(--primary);
    border-radius: 9999px;
}

.yield-milestones {
    display: flex;
    justify-content: space-between;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
}

.yield-milestones .active { color: var(--primary); }

/* ---------- Commodity details section ---------- */
.commodity-details-section {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    padding: 1.5rem;
}

.commodity-details-section h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.commodity-details-section h3 .material-symbols-outlined { color: var(--primary); font-size: 1.25rem; }

.detail-rows {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f5f9;
}

.detail-row:last-child { border-bottom: none; }

.detail-row .row-label {
    font-size: 0.875rem;
    color: #64748b;
    font-weight: 500;
}

.detail-row .row-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: #0f172a;
    text-align: right;
}

.detail-row .row-value.price-highlight {
    color: var(--primary);
    font-size: 1rem;
}

/* ---------- Right sticky sidebar ---------- */
.detail-sidebar {
    width: 100%;
    flex-shrink: 0;
}

@media (min-width: 1024px) {
    .detail-sidebar {
        width: 20rem;
    }
}

.sidebar-card {
    background: #fff;
    border-radius: var(--radius-xl);
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 1.5rem;
    position: sticky;
    top: 5rem;
}

.sidebar-price {
    font-size: 1.75rem;
    font-weight: 700;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.sidebar-price span {
    font-size: 0.875rem;
    font-weight: 400;
    color: #64748b;
}

.sidebar-roi {
    font-size: 0.8125rem;
    color: #64748b;
    font-style: italic;
    margin-bottom: 1.5rem;
}

.sidebar-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.btn-invest {
    display: block;
    width: 100%;
    padding: 1rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: filter 0.15s;
}

.btn-invest:hover { filter: brightness(1.08); }

.btn-sidebar-secondary {
    width: 100%;
    padding: 0.75rem;
    background: #f1f5f9;
    color: #0f172a;
    border: none;
    border-radius: var(--radius-lg);
    font-family: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.15s;
}

.btn-sidebar-secondary:hover { background: #e2e8f0; }
.btn-sidebar-secondary .material-symbols-outlined { font-size: 1rem; }

/* Sidebar divider */
.sidebar-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 1.25rem 0;
}

/* Real-time metrics */
.metrics-label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.metric-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.875rem;
}

.metric-row:last-of-type { margin-bottom: 0; }

.metric-left {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metric-left .material-symbols-outlined {
    color: var(--primary);
    font-size: 1rem;
}

.metric-left span:last-child { font-size: 0.875rem; }

.metric-value {
    font-weight: 700;
    font-size: 0.9375rem;
}

/* Info note in sidebar */
.sidebar-note {
    margin-top: 1.5rem;
    padding: 0.875rem;
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-lg);
    display: flex;
    gap: 0.5rem;
}

.sidebar-note .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.125rem;
    flex-shrink: 0;
}

.sidebar-note p {
    font-size: 0.75rem;
    line-height: 1.6;
    color: #475569;
}

/* ---------- Detail page footer ---------- */
.detail-footer {
    margin-top: 3rem;
    border-top: 1px solid #e2e8f0;
    background: #fff;
    padding: 3rem 1.5rem;
}

@media (min-width: 1024px) { .detail-footer { padding: 3rem 5rem; } }

.detail-footer-grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) { .detail-footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }

.detail-footer-bottom {
    max-width: 80rem;
    margin: 0 auto;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

@media (min-width: 768px) {
    .detail-footer-bottom { flex-direction: row; justify-content: space-between; }
}

.detail-footer-bottom p,
.detail-footer-bottom a {
    font-size: 0.75rem;
    color: #94a3b8;
}

.detail-footer-bottom .bottom-links {
    display: flex;
    gap: 1.5rem;
    list-style: none;
}

.detail-footer-bottom .bottom-links a:hover { color: var(--primary); }

/* ---------- Buy Now Page ---------- */

.buynow-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.buynow-main {
    flex: 1;
}

/* Hero */
.buynow-hero {
    background: var(--bg-dark);
    padding: 3rem 1.5rem 2.5rem;
    text-align: center;
}

@media (min-width: 1024px) { .buynow-hero { padding: 4rem 10rem 3rem; } }

.buynow-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    background: var(--primary-10);
    color: var(--primary);
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-full);
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.375rem 0.875rem;
    margin-bottom: 1rem;
}

.buynow-hero-badge .material-symbols-outlined { font-size: 1rem; }

.buynow-hero h1 {
    font-size: clamp(2rem, 6vw, 3.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

.buynow-hero p {
    font-size: 1rem;
    color: #94a3b8;
    max-width: 36rem;
    margin: 0 auto;
    line-height: 1.7;
}

/* Search bar — reuse listings pattern */
.buynow-search-bar {
    background: #fff;
    border-bottom: 1px solid #f1f5f9;
    padding: 1rem 1.5rem;
}

@media (min-width: 1024px) { .buynow-search-bar { padding: 1rem 10rem; } }

.buynow-search-inner {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (min-width: 768px) {
    .buynow-search-inner { flex-direction: row; align-items: center; }
}

/* Section label */
.buynow-section-label {
    padding: 2rem 1.5rem 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

@media (min-width: 1024px) { .buynow-section-label { padding: 2rem 10rem 0.5rem; } }

.buynow-section-label h2 {
    font-size: 1.25rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-light);
}

.buynow-section-label h2 .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.375rem;
}

.buynow-section-label p {
    font-size: 0.875rem;
    color: #64748b;
}

/* In-stock badge variant */
.plot-badge--stock {
    background: var(--primary);
    color: var(--bg-dark);
}

/* Ready Now tag */
.tag-ready {
    background: var(--primary-10);
    color: var(--primary);
    border: 1px solid var(--primary-20);
    font-weight: 600;
}

/* ---------- Checkout Page ---------- */

.checkout-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Main */
.checkout-main {
    flex: 1;
    padding: 1.5rem 1.25rem;
    width: 100%;
    box-sizing: border-box;
}

@media (min-width: 768px)  { .checkout-main { padding: 2rem 2rem; } }
@media (min-width: 1280px) { .checkout-main { padding: 2rem 5rem; } }

/* Page header */
.checkout-page-header {
    margin-bottom: 2rem;
}

.checkout-page-header h1 {
    font-size: clamp(1.5rem, 5vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.checkout-page-header p {
    margin-top: 0.5rem;
    font-size: 0.9375rem;
    color: #475569;
}

/* Two-column grid — stacked on mobile, side-by-side on desktop */
.checkout-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 1024px) {
    .checkout-grid {
        grid-template-columns: 7fr 5fr;
        align-items: start;
        gap: 3rem;
    }
}

/* Prevent grid children from overflowing */
.checkout-forms,
.checkout-summary-col { min-width: 0; }

/* Forms column */
.checkout-forms {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.checkout-section {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-title-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.section-icon {
    padding: 0.5rem;
    background: var(--primary-10);
    color: var(--primary);
    border-radius: var(--radius-lg);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.section-title-row h3 {
    font-size: 1.125rem;
    font-weight: 700;
}

/* Billing grid — 2 cols on tablet+ */
.billing-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 560px) {
    .billing-grid { grid-template-columns: 1fr 1fr; }
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    min-width: 0;
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-light);
}

.label-muted {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.form-field input {
    width: 100%;
    box-sizing: border-box;
    background: #fff;
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-xl);
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.form-field input::placeholder { color: #94a3b8; }

/* Payment options — 2 cols on tablet+ */
.payment-method-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.875rem;
}

@media (min-width: 480px) { .payment-method-grid { grid-template-columns: 1fr 1fr; } }

.payment-option {
    cursor: pointer;
    border-radius: var(--radius-xl);
    border: 2px solid var(--primary-20);
    background: #fff;
    padding: 1rem;
    transition: border-color 0.2s;
    display: block;
    min-width: 0;
}

.payment-option:hover { border-color: rgba(19, 236, 19, 0.5); }

.payment-option--active {
    border-color: var(--primary);
    background: var(--primary-10);
}

.payment-option-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0.5rem;
}

.payment-option-left {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    font-weight: 700;
    font-size: 0.9375rem;
    min-width: 0;
}

.payment-option--active .payment-option-left .material-symbols-outlined {
    color: var(--primary);
}

.payment-icon-muted { color: #94a3b8; }

.radio-dot {
    width: 1rem;
    height: 1rem;
    border-radius: var(--radius-full);
    border: 2px solid var(--primary-20);
    background: transparent;
    flex-shrink: 0;
}

.radio-dot--active {
    border: 4px solid var(--primary);
    background: #fff;
}

/* Card details box */
.card-details-box {
    background: #fff;
    padding: 1.25rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--primary-10);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-input-wrap {
    position: relative;
}

.card-input-wrap input {
    width: 100%;
    box-sizing: border-box;
    background: transparent;
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-xl);
    padding: 0.625rem 3rem 0.625rem 1rem;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.card-input-wrap input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.card-lock-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    font-size: 1.125rem;
}

/* Expiry + CVC always 2 cols — they're short so they fit even on small screens */
.card-details-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.card-details-row .form-field input {
    background: transparent;
}

/* Submit action */
.checkout-action {
    padding-top: 0.5rem;
    padding-bottom: 2rem;
}

.btn-confirm-pay {
    width: 100%;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 1rem;
    padding: 1rem;
    border-radius: var(--radius-xl);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.1s;
}

.btn-confirm-pay:hover { background: rgba(19, 236, 19, 0.9); }
.btn-confirm-pay:active { transform: scale(0.98); }
.btn-confirm-pay .material-symbols-outlined { font-size: 1.25rem; }

.checkout-legal {
    text-align: center;
    font-size: 0.75rem;
    color: #64748b;
    margin-top: 1rem;
    padding: 0 1rem;
    line-height: 1.6;
}

/* Summary card — sticky only on desktop */
.checkout-summary-col { position: relative; }

.summary-card {
    background: #fff;
    border-radius: 1rem;
    border: 1px solid var(--primary-10);
    padding: 1.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

@media (min-width: 1024px) {
    .summary-card {
        position: sticky;
        top: 5rem;
        padding: 1.5rem;
    }
}

.summary-card h2 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
}

/* Plot row */
.summary-plot-row {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-plot-thumb {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.summary-plot-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.summary-plot-info h3 {
    font-size: 1rem;
    font-weight: 700;
}

.summary-plot-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.summary-plot-location .material-symbols-outlined { font-size: 0.8125rem; }

.summary-plot-meta {
    font-size: 0.8125rem;
    color: #64748b;
    margin-top: 0.25rem;
}

/* Farmer card in summary */
.summary-farmer-card {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-xl);
    margin-bottom: 1.25rem;
}

.summary-farmer-card img {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: var(--radius-full);
    object-fit: cover;
    flex-shrink: 0;
    border: 2px solid var(--primary-20);
}

.summary-farmer-name {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-light);
}

.summary-farmer-role {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.125rem;
}

/* Cost breakdown */
.cost-breakdown {
    border-top: 1px solid var(--primary-10);
    padding-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.cost-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #475569;
    gap: 0.5rem;
}

.cost-row span:last-child { font-weight: 500; }

.cost-row--total {
    padding-top: 1rem;
    border-top: 1px solid var(--primary-10);
}

.cost-row--total span:first-child {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.total-amount {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--primary) !important;
}

/* Incentive */
.summary-incentive {
    margin-top: 1.5rem;
    background: var(--primary-10);
    border: 1px solid var(--primary-10);
    border-radius: var(--radius-xl);
    padding: 0.875rem;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.summary-incentive > .material-symbols-outlined {
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.incentive-title {
    font-size: 0.875rem;
    font-weight: 700;
}

.incentive-desc {
    font-size: 0.75rem;
    color: #475569;
    margin-top: 0.25rem;
    line-height: 1.5;
}

/* Map */
.summary-map {
    margin-top: 1.25rem;
    position: relative;
    border-radius: var(--radius-xl);
    overflow: hidden;
    height: 8rem;
}

.map-img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.8;
}

.map-badge {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-badge-pill {
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    border: 1px solid var(--primary-20);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.map-badge-pill .material-symbols-outlined {
    font-size: 0.875rem;
    color: var(--primary);
}

/* ---------- Order Confirmation Page ---------- */
.confirm-wrap {
    max-width: 42rem;
    margin: 0 auto;
    padding: 3rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.confirm-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.confirm-icon .material-symbols-outlined {
    font-size: 3rem !important;
    color: var(--primary);
}

.confirm-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.confirm-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 34rem;
    margin-bottom: 2.5rem;
}

/* Summary card */
.confirm-card {
    width: 100%;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-2xl);
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    margin-bottom: 2rem;
    text-align: left;
}

.confirm-card-top {
    display: flex;
    gap: 1.25rem;
    padding: 1.5rem;
    align-items: flex-start;
}

.confirm-thumb {
    width: 7rem;
    height: 5rem;
    flex-shrink: 0;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border: 1px solid #e2e8f0;
}

.confirm-card-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
}

.confirm-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    background: var(--primary-10);
    border-radius: var(--radius-full);
    padding: 0.2rem 0.6rem;
    width: fit-content;
    margin-bottom: 0.125rem;
}

.confirm-order-num {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.confirm-card-info h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
}

.confirm-meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.confirm-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.confirm-location .material-symbols-outlined {
    font-size: 0.875rem !important;
    color: var(--primary);
}

/* Details grid */
.confirm-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #f1f5f9;
}

.confirm-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.confirm-detail-item--right {
    text-align: right;
    align-items: flex-end;
}

.confirm-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted-dark);
}

.confirm-detail-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.confirm-detail-item--right .confirm-detail-value {
    justify-content: flex-end;
}

.confirm-detail-value .material-symbols-outlined {
    font-size: 1rem !important;
    color: var(--text-muted);
}

.confirm-total {
    font-size: 1.25rem !important;
    font-weight: 700;
    color: var(--text-light);
}

/* Action buttons */
.confirm-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    margin-bottom: 2rem;
}

@media (min-width: 480px) {
    .confirm-actions { flex-direction: row; }
}

.btn-confirm-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: filter 0.15s;
    text-decoration: none;
}

.btn-confirm-primary:hover { filter: brightness(1.08); }

.btn-confirm-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--bg-dark);
    color: #fff;
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-xl);
    border: none;
    cursor: pointer;
    transition: opacity 0.15s;
    text-decoration: none;
}

.btn-confirm-secondary:hover { opacity: 0.85; }

.confirm-help {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.confirm-help a {
    color: var(--primary);
    font-weight: 600;
}

.confirm-help a:hover { text-decoration: underline; }

.confirm-icons-row {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
}

.confirm-icons-row .material-symbols-outlined {
    font-size: 1.5rem !important;
    color: #cbd5e1;
}


/* ---------- Login Page ---------- */
.login-layout {
    display: flex;
    min-height: 100vh;
}

.login-form-side {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    padding: 3rem 2rem;
    background: var(--bg-light);
}

@media (min-width: 1024px) {
    .login-form-side { width: 50%; padding: 4rem 6rem; }
}

.login-form-inner {
    max-width: 26rem;
    width: 100%;
    margin: 0 auto;
}

.login-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 3rem;
    text-decoration: none;
}

.login-logo .logo-icon {
    width: 2.25rem;
    height: 2.25rem;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo .logo-icon .material-symbols-outlined {
    font-size: 1.25rem !important;
    color: var(--bg-dark);
}

.login-logo .brand-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.01em;
}

.login-heading {
    margin-bottom: 2.5rem;
}

.login-heading h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.login-heading p {
    font-size: 0.9375rem;
    color: var(--text-muted);
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.login-field label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-light);
}

.login-field input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    background: #fff;
    font-family: inherit;
    font-size: 0.9375rem;
    color: var(--text-light);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.login-field input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-10);
}

.login-field input::placeholder { color: #94a3b8; }

.login-password-wrap { position: relative; }

.login-password-wrap input { padding-right: 3rem; }

.login-toggle-pw {
    position: absolute;
    right: 0.875rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    padding: 0;
    color: #94a3b8;
    cursor: pointer;
    display: flex;
    align-items: center;
}

.login-toggle-pw:hover { color: var(--text-muted); }

.login-toggle-pw .material-symbols-outlined { font-size: 1.25rem !important; }

.login-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.login-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    cursor: pointer;
}

.login-remember input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    accent-color: var(--primary);
    cursor: pointer;
}

.login-forgot {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.login-forgot:hover { text-decoration: underline; }

.btn-login {
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: filter 0.15s;
    box-shadow: 0 4px 14px var(--primary-shadow);
    margin-top: 0.25rem;
}

.btn-login:hover { filter: brightness(1.08); }

.login-signup-link {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.login-signup-link a { color: var(--primary); font-weight: 700; }

.login-signup-link a:hover { text-decoration: underline; }

.login-visual-side {
    display: none;
    position: relative;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .login-visual-side {
        display: flex;
        width: 50%;
        flex-direction: column;
        justify-content: flex-end;
    }
}

.login-visual-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.login-visual-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(16,34,16,0.85) 0%, rgba(16,34,16,0.25) 50%, transparent 100%);
}

.login-visual-content {
    position: relative;
    z-index: 10;
    padding: 4rem 5rem;
    color: #fff;
    max-width: 32rem;
}

.login-visual-badge {
    display: inline-block;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--primary);
    background: rgba(19,236,19,0.15);
    border: 1px solid rgba(19,236,19,0.3);
    border-radius: var(--radius-full);
    padding: 0.3rem 0.875rem;
    margin-bottom: 1.5rem;
}

.login-visual-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.login-visual-content p {
    font-size: 1rem;
    color: rgba(255,255,255,0.8);
    line-height: 1.7;
    margin-bottom: 2.5rem;
}

.login-stat-card {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-xl);
    padding: 1rem 1.25rem;
    margin-bottom: 0.75rem;
}

.login-stat-icon {
    width: 2.5rem;
    height: 2.5rem;
    background: var(--primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.login-stat-icon .material-symbols-outlined {
    font-size: 1.25rem !important;
    color: var(--bg-dark);
}

.login-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: rgba(255,255,255,0.6);
    margin-bottom: 0.2rem;
}

.login-stat-value {
    font-size: 1.375rem;
    font-weight: 700;
    color: #fff;
}

.login-stat-bar {
    width: 8rem;
    height: 0.25rem;
    background: rgba(255,255,255,0.15);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.login-stat-bar-fill {
    width: 75%;
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
}

/* ---------- Register Page ---------- */
.register-layout {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--bg-light);
}

/* Minimal top header */
.register-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 2rem;
    border-bottom: 1px solid rgba(19,236,19,0.1);
    background: #fff;
}

.register-help-btn {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    transition: background 0.15s;
}

.register-help-btn:hover { background: var(--primary-20); }

.register-help-btn .material-symbols-outlined { font-size: 1.25rem !important; }

/* Step progress bar */
.register-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 2rem 1.5rem 0;
}

.register-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
}

.register-step span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted-dark);
    white-space: nowrap;
}

.register-step--active span { color: var(--text-light); }
.register-step--done span   { color: var(--primary); }

.register-step-dot {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius-full);
    border: 2px solid #e2e8f0;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-muted-dark);
}

.register-step--active .register-step-dot {
    border-color: var(--primary);
    background: var(--primary);
    color: var(--bg-dark);
}

.register-step--done .register-step-dot {
    border-color: var(--primary);
    background: var(--primary-10);
    color: var(--primary);
}

.register-step--done .register-step-dot .material-symbols-outlined {
    font-size: 1rem !important;
}

.register-step-line {
    width: 5rem;
    height: 2px;
    background: #e2e8f0;
    margin: 0 0.25rem;
    margin-bottom: 1.4rem;
    flex-shrink: 0;
}

.register-step-line--done { background: var(--primary); }

@media (min-width: 640px) {
    .register-step-line { width: 7rem; }
}

/* Main content area */
.register-main {
    flex: 1;
    max-width: 56rem;
    width: 100%;
    margin: 0 auto;
    padding: 3rem 1.5rem;
}

.register-main--narrow {
    max-width: 34rem;
}

.register-heading {
    text-align: center;
    margin-bottom: 2.5rem;
}

.register-heading h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-light);
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
}

.register-heading p {
    font-size: 1rem;
    color: var(--text-muted);
}

/* Role selection cards */
.role-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

@media (min-width: 640px) {
    .role-grid { grid-template-columns: 1fr 1fr; }
}

.role-card {
    cursor: pointer;
    display: block;
}

.role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.role-card-inner {
    display: flex;
    flex-direction: column;
    height: 100%;
    border: 2px solid #e2e8f0;
    border-radius: var(--radius-2xl);
    background: #fff;
    padding: 1.5rem;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
}

.role-card-inner:hover {
    border-color: rgba(19,236,19,0.4);
    box-shadow: 0 4px 16px rgba(19,236,19,0.08);
}

.role-card input[type="radio"]:checked + .role-card-inner {
    border-color: var(--primary);
    background: rgba(19,236,19,0.04);
    box-shadow: 0 4px 16px rgba(19,236,19,0.12);
}

.role-card input[type="radio"]:checked + .role-card-inner .role-radio-dot {
    background: var(--primary);
    border-color: var(--primary);
}

.role-card input[type="radio"]:checked + .role-card-inner .role-radio-dot::after {
    content: '';
    display: block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: var(--radius-full);
    background: #fff;
}

.role-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.role-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-xl);
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
}

.role-icon .material-symbols-outlined { font-size: 2rem !important; }

.role-radio-dot {
    width: 1.5rem;
    height: 1.5rem;
    border-radius: var(--radius-full);
    border: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.15s, background 0.15s;
}

.role-img {
    width: 100%;
    height: 10rem;
    border-radius: var(--radius-lg);
    background-size: cover;
    background-position: center;
    margin-bottom: 1.25rem;
}

.role-card-inner h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.4rem;
}

.role-card-inner p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* Action row */
.register-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
}

.btn-register-continue {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 28rem;
    padding: 0.9rem 2rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: var(--radius-xl);
    cursor: pointer;
    transition: filter 0.15s;
    box-shadow: 0 4px 14px var(--primary-shadow);
    text-decoration: none;
}

.btn-register-continue:hover { filter: brightness(1.08); }

.btn-register-continue .material-symbols-outlined { font-size: 1.125rem !important; }

.register-note {
    font-size: 0.8125rem;
    color: var(--text-muted-dark);
    text-align: center;
}

/* Step 2 form */
.register-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.register-terms {
    margin-top: 0.25rem;
}

.register-terms a {
    color: var(--primary);
    font-weight: 600;
}

.register-terms a:hover { text-decoration: underline; }

/* Footer */
.register-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 1.5rem;
    color: #94a3b8;
    opacity: 0.7;
}

.register-footer .material-symbols-outlined { font-size: 1rem !important; }

.register-footer span:last-child {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* ---------- Register Success Page ---------- */
.reg-success-wrap {
    max-width: 52rem;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 2.5rem 0 4rem;
}

.reg-success-icon {
    position: relative;
    width: 9rem;
    height: 9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.reg-success-icon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: var(--radius-full);
    background: var(--primary-10);
    filter: blur(24px);
    transform: scale(1.2);
}

.reg-success-icon .material-symbols-outlined {
    font-size: 6rem !important;
    color: var(--primary);
    position: relative;
    z-index: 1;
}

.reg-success-heading {
    max-width: 36rem;
    margin-bottom: 2.5rem;
}

.reg-success-heading h1 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-light);
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 1rem;
}

@media (min-width: 768px) {
    .reg-success-heading h1 { font-size: 3rem; }
}

.reg-success-highlight {
    color: var(--primary);
}

.reg-success-heading p {
    font-size: 1.0625rem;
    color: var(--text-muted);
    line-height: 1.7;
}

/* Email notice card */
.reg-success-notice {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: #fff;
    border: 1px solid rgba(19,236,19,0.2);
    border-radius: var(--radius-2xl);
    padding: 1.5rem;
    max-width: 36rem;
    width: 100%;
    text-align: left;
    margin-bottom: 2.5rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}

.reg-success-notice-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-xl);
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.reg-success-notice-icon .material-symbols-outlined {
    font-size: 1.5rem !important;
    color: var(--primary);
}

.reg-success-notice h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.reg-success-notice p {
    font-size: 0.875rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* Action buttons */
.reg-success-actions {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 28rem;
    margin-bottom: 3.5rem;
}

@media (min-width: 480px) {
    .reg-success-actions { flex-direction: row; }
}

.btn-reg-primary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-xl);
    text-decoration: none;
    transition: filter 0.15s;
    box-shadow: 0 4px 14px var(--primary-shadow);
}

.btn-reg-primary:hover { filter: brightness(1.08); }

.btn-reg-secondary {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 1.5rem;
    background: #fff;
    color: var(--text-light);
    font-weight: 700;
    font-size: 0.9375rem;
    border-radius: var(--radius-xl);
    border: 2px solid rgba(19,236,19,0.2);
    text-decoration: none;
    transition: border-color 0.15s;
}

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

/* Feature cards */
.reg-success-features {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    width: 100%;
}

@media (min-width: 640px) {
    .reg-success-features { grid-template-columns: repeat(3, 1fr); }
}

.reg-feature-card {
    background: rgba(19,236,19,0.04);
    border: 1px solid rgba(19,236,19,0.12);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    text-align: left;
}

.reg-feature-card .material-symbols-outlined {
    font-size: 1.5rem !important;
    color: var(--primary);
    margin-bottom: 0.75rem;
    display: block;
}

.reg-feature-card h4 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 0.375rem;
}

.reg-feature-card p {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* =============================================
   Dashboard
   ============================================= */

.dash-main {
    max-width: 80rem;
    margin: 0 auto;
    width: 100%;
    padding: 2rem 1rem 4rem;
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}
@media (min-width: 640px)  { .dash-main { padding: 2rem 1.5rem 4rem; } }
@media (min-width: 1024px) { .dash-main { padding: 2.5rem 2rem 5rem; } }

/* Page header */
.dash-page-header {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
@media (min-width: 640px) {
    .dash-page-header {
        flex-direction: row;
        align-items: flex-end;
        justify-content: space-between;
    }
}

.dash-page-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-light);
}
@media (min-width: 768px) { .dash-page-title { font-size: 2.5rem; } }

.dash-page-sub {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.btn-dash-new {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary);
    color: var(--bg-dark);
    font-size: 0.875rem;
    font-weight: 700;
    padding: 0.625rem 1.125rem;
    border-radius: var(--radius-lg);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    align-self: flex-start;
}
.btn-dash-new .material-symbols-outlined { font-size: 1.125rem !important; }
.btn-dash-new:hover { filter: brightness(1.08); }

/* Section title */
.dash-section-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
}
.dash-section-title .material-symbols-outlined { color: var(--primary); font-size: 1.2rem !important; }

.dash-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}
.dash-section-header .dash-section-title { margin-bottom: 0; }

.dash-view-all {
    background: none;
    border: none;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    cursor: pointer;
}
.dash-view-all:hover { text-decoration: underline; }

/* Stats grid */
.dash-stats-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}
@media (min-width: 640px) { .dash-stats-grid { grid-template-columns: repeat(3, 1fr); } }

.dash-stat-card {
    background: #fff;
    border: 1px solid var(--primary-10);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}

.dash-stat-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.dash-stat-value-row {
    display: flex;
    align-items: baseline;
    gap: 0.625rem;
    margin-top: 0.5rem;
}

.dash-stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.dash-stat-badge {
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    padding: 0.1rem 0.5rem;
}
.dash-badge-green { color: var(--primary); background: var(--primary-10); }
.dash-badge-muted { color: var(--text-muted); background: #f1f5f9; }

.dash-progress-track {
    margin-top: 1rem;
    height: 6px;
    background: #f1f5f9;
    border-radius: var(--radius-full);
    overflow: hidden;
}
.dash-progress-fill {
    height: 100%;
    background: var(--primary);
    border-radius: var(--radius-full);
}

.dash-farm-avatars {
    display: flex;
    margin-top: 1rem;
    gap: -0.5rem;
}
.dash-farm-av {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    border: 2px solid #fff;
    background: var(--primary-10);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.625rem;
    font-weight: 700;
    color: var(--bg-dark);
    margin-left: -0.4rem;
}
.dash-farm-av:first-child { margin-left: 0; }

.dash-stat-note {
    font-size: 0.75rem;
    color: #94a3b8;
    font-style: italic;
    margin-top: 1rem;
}

/* Content grid */
.dash-content-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}
@media (min-width: 1024px) {
    .dash-content-grid { grid-template-columns: 1fr 1fr 1fr; }
    .dash-left-col  { grid-column: span 2; }
    .dash-right-col { grid-column: span 1; }
}

.dash-left-col,
.dash-right-col {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* Primary plot widget */
.dash-plot-widget {
    background: #fff;
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dash-plot-widget-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--primary-10);
}

.dash-plot-widget-title { font-size: 1.125rem; font-weight: 700; }
.dash-plot-widget-sub   { font-size: 0.8125rem; color: var(--text-muted); margin-top: 0.125rem; }

.dash-live-badge {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--primary);
    background: var(--primary-10);
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-full);
    padding: 0.25rem 0.75rem;
}

.dash-plot-widget-body {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 640px) { .dash-plot-widget-body { grid-template-columns: 1fr 1fr; } }

.dash-cam-wrap {
    position: relative;
    aspect-ratio: 16/9;
    background: #e2e8f0;
    overflow: hidden;
}
.dash-cam-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.dash-cam-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.dash-play-btn {
    width: 3.5rem;
    height: 3.5rem;
    background: rgba(19,236,19,0.9);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(19,236,19,0.4);
    transition: transform 0.15s;
}
.dash-play-btn:hover { transform: scale(1.08); }
.dash-play-btn .material-symbols-outlined { font-size: 1.75rem !important; }

.dash-cam-label {
    position: absolute;
    bottom: 0.75rem;
    left: 0.75rem;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    color: #fff;
    font-size: 0.625rem;
    font-family: monospace;
    padding: 0.25rem 0.625rem;
    border-radius: var(--border-radius);
}

.dash-realtime-panel {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.dash-realtime-title {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
}

.dash-realtime-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.dash-rt-icon-row {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}
.dash-rt-icon-row .material-symbols-outlined { font-size: 0.9rem !important; }

.dash-rt-value {
    font-size: 1.125rem;
    font-weight: 700;
    margin-top: 0.25rem;
}
.dash-rt-value--green { color: var(--primary); }

.dash-analytics-btn {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid var(--primary-20);
    border-radius: var(--radius-lg);
    background: none;
    color: var(--primary);
    font-size: 0.8125rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s;
}
.dash-analytics-btn:hover { background: var(--primary-10); }

/* Active plots grid */
.dash-plots-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
}
@media (min-width: 480px) { .dash-plots-grid { grid-template-columns: 1fr 1fr; } }

.dash-plot-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    padding: 1rem;
    transition: border-color 0.15s;
}
.dash-plot-card:hover { border-color: var(--primary-20); }

.dash-plot-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.dash-plot-thumb {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: #f1f5f9;
    flex-shrink: 0;
}
.dash-plot-thumb img { width: 100%; height: 100%; object-fit: cover; }

.dash-plot-badge {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.2rem 0.5rem;
    border-radius: var(--border-radius);
}
.dash-plot-badge--green  { background: var(--primary-10); color: var(--primary); }
.dash-plot-badge--yellow { background: rgba(234,179,8,0.1); color: #854d0e; }

.dash-plot-name { font-size: 0.9375rem; font-weight: 700; margin-top: 0.75rem; }
.dash-plot-sub  { font-size: 0.75rem; color: var(--text-muted); margin-top: 0.125rem; }

.dash-plot-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #f1f5f9;
}

.dash-plot-icons {
    display: flex;
    gap: 0.5rem;
    color: #94a3b8;
}
.dash-plot-icons .material-symbols-outlined { font-size: 1rem !important; }

.dash-manage-link {
    display: flex;
    align-items: center;
    gap: 0.125rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 0.04em;
}
.dash-manage-link .material-symbols-outlined { font-size: 0.9rem !important; }

/* Earnings card */
.dash-earnings-card {
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    box-shadow: 0 8px 32px rgba(16,34,16,0.25);
    position: relative;
    overflow: hidden;
}

.dash-earnings-bg-icon {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    opacity: 0.08;
}
.dash-earnings-bg-icon .material-symbols-outlined { font-size: 5rem !important; }

.dash-earnings-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #94a3b8;
    margin-bottom: 1rem;
}

.dash-earnings-body {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 1;
}

.dash-earnings-amount {
    font-size: 1.875rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}
.dash-earnings-token {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--primary);
}
.dash-earnings-usd {
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: 0.25rem;
}

.dash-earnings-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dash-earnings-breakdown-label {
    font-size: 0.625rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #94a3b8;
}
.dash-earnings-breakdown-val {
    font-weight: 700;
    font-size: 0.9375rem;
    margin-top: 0.25rem;
}
.dash-earnings-breakdown-val--green { color: var(--primary); }

.dash-withdraw-btn {
    width: 100%;
    padding: 0.75rem;
    background: var(--primary);
    color: var(--bg-dark);
    border: none;
    border-radius: var(--radius-lg);
    font-size: 0.875rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s;
}
.dash-withdraw-btn:hover { filter: brightness(1.1); }

/* Activity card */
.dash-activity-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius-xl);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.dash-activity-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}
.dash-activity-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    font-weight: 700;
}
.dash-activity-title .material-symbols-outlined { color: var(--primary); font-size: 1.1rem !important; }

.dash-activity-list {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex: 1;
}

.dash-activity-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.dash-activity-icon {
    width: 2rem;
    height: 2rem;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.dash-activity-icon .material-symbols-outlined { font-size: 0.9rem !important; }
.dash-activity-icon--green  { background: var(--primary-10); color: var(--primary); }
.dash-activity-icon--yellow { background: rgba(234,179,8,0.1); color: #b45309; }
.dash-activity-icon--blue   { background: rgba(59,130,246,0.1); color: #2563eb; }

.dash-activity-text { font-size: 0.75rem; font-weight: 700; line-height: 1.4; }
.dash-activity-time { font-size: 0.6875rem; color: #94a3b8; margin-top: 0.25rem; }

.dash-activity-all {
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-top: 1px solid #f1f5f9;
    background: none;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.15s;
}
.dash-activity-all:hover { color: var(--primary); }
