:root{
  --green:#073c32;
  --green2:#126954;
  --lime:#9bd43a;
  --lime-soft:#eef9dc;
  --gold:#d99a2b;
  --cream:#f8f5ed;
  --bg:#edf2ea;
  --ink:#10251f;
  --muted:#687a72;
  --line:#d8e3da;
  --shadow:0 18px 46px rgba(7,60,50,.12);
}

body{
  background:
    radial-gradient(circle at 18% 0%,rgba(155,212,58,.18),transparent 30rem),
    linear-gradient(135deg,#e6eee7,#f5f2e9);
}

.app-shell{
  background:
    radial-gradient(circle at 100% 7%,rgba(155,212,58,.11),transparent 19rem),
    var(--bg);
}

.app-header{
  height:76px;
  padding:10px 18px;
  background:rgba(255,255,255,.88);
  border-bottom:1px solid rgba(7,60,50,.09);
  box-shadow:0 8px 28px rgba(7,60,50,.06);
}

.identity{gap:12px}.identity img{
  width:52px;height:52px;padding:3px;border-radius:16px;
  border:1px solid rgba(7,60,50,.12);box-shadow:0 7px 18px rgba(7,60,50,.1)
}
.identity small{color:var(--green2);letter-spacing:.18em}.identity strong{font-size:19px;letter-spacing:-.03em}
.account-button{box-shadow:0 8px 20px rgba(7,60,50,.18);border:2px solid rgba(255,255,255,.8)}
.screen{padding:24px 17px 36px}.welcome{align-items:center;margin-bottom:20px}
.welcome h1,.screen-heading h1{font-size:26px;letter-spacing:-.045em;line-height:1.15}
.status{background:#fff;border:1px solid rgba(18,105,84,.14);box-shadow:0 5px 16px rgba(7,60,50,.07)}

.hero-card{
  min-height:222px;padding:27px 24px;border-radius:26px;
  background:
    linear-gradient(135deg,rgba(7,60,50,.98),rgba(18,105,84,.92)),
    radial-gradient(circle at 90% 0%,var(--lime),transparent 45%);
  box-shadow:0 25px 55px rgba(7,60,50,.23);
  isolation:isolate;
}
.hero-card:before{content:"NTT";position:absolute;right:-4px;top:12px;font-size:92px;line-height:1;font-weight:900;color:rgba(255,255,255,.055);letter-spacing:-.08em;z-index:-1}
.hero-card:after{width:220px;height:220px;border-width:42px;right:-105px;bottom:-125px}
.hero-card h2{font-size:31px;letter-spacing:-.05em;max-width:270px;margin-top:14px}
.hero-card p{font-size:12.5px;color:#d1e4dc}.kicker{display:inline-flex;padding:6px 9px;border:1px solid rgba(216,248,164,.26);border-radius:999px;background:rgba(255,255,255,.08)}
.hero-mark{padding:10px;border-radius:16px;background:rgba(255,255,255,.08);backdrop-filter:blur(8px)}

.quick-grid{gap:10px;margin-top:20px}.quick-grid button{
  min-height:94px;border:1px solid rgba(7,60,50,.07);border-radius:18px;
  box-shadow:0 10px 26px rgba(7,60,50,.07);transition:transform .18s ease,box-shadow .18s ease
}
.quick-grid button:active{transform:translateY(2px)}.quick-icon{width:42px;height:42px;border-radius:14px;background:linear-gradient(145deg,var(--lime-soft),#e0f4bd)}
.section-title h2{font-size:22px;letter-spacing:-.035em}.section-title button{background:#fff;padding:7px 10px;border-radius:999px;border:1px solid var(--line)}

.screen-heading{margin-bottom:21px}.back-button{border-radius:14px;box-shadow:0 6px 16px rgba(7,60,50,.06)}
.search-box{border:0;border-radius:16px;box-shadow:0 10px 30px rgba(7,60,50,.08);background:rgba(255,255,255,.94)}
.filter-row{padding-top:14px}.filter,.period-row button{padding:9px 15px;border-radius:999px;box-shadow:0 4px 12px rgba(7,60,50,.04)}
.filter.active,.period-row button.active{box-shadow:0 8px 18px rgba(7,60,50,.2)}

.featured-list,.market-list{gap:16px}.cattle-card{
  border:0;border-radius:22px;box-shadow:0 13px 34px rgba(7,60,50,.09);
  transition:transform .2s ease,box-shadow .2s ease
}
.cattle-card:active{transform:scale(.992)}.cattle-visual{height:165px;background:linear-gradient(145deg,#e8f0dc,#c9dfbf)}
.cattle-visual.has-photo:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 45%,rgba(7,60,50,.12));pointer-events:none}
.cattle-visual img{transition:transform .35s ease}.cattle-card:hover .cattle-visual img{transform:scale(1.035)}
.cattle-body{padding:17px}.cattle-top h3{font-size:19px;letter-spacing:-.025em}.cattle-top strong{font-size:17px}
.cattle-meta{margin:8px 0 12px}.seller-row{padding-top:13px}.seller-row strong{font-size:11.5px}
.chat-button,.card-actions .buy-button,.primary-action,.payment-form>button{background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 8px 18px rgba(7,60,50,.18)}
.card-actions button{border-radius:12px;padding:11px 8px}.seller-trust .stars,.review-list span,.review-heading>strong{color:var(--gold)}
.photo-count{background:rgba(7,60,50,.88);padding:6px 9px;backdrop-filter:blur(8px)}
.verified{box-shadow:0 5px 13px rgba(7,60,50,.1)}

.form-card,.chart-card,.finance-hero,.estimate-card,.loan-result,.efficiency-list{
  border:0;border-radius:21px;box-shadow:0 12px 34px rgba(7,60,50,.08)
}
.form-card{padding:20px}.form-card input,.form-card select,.review-form select,.review-form textarea,.chat-compose input{border-radius:12px;background:#fbfcf9}
.primary-button{border-radius:13px;padding:14px;box-shadow:0 9px 22px rgba(7,60,50,.22)}
.stats-grid article{border:0;border-radius:19px;box-shadow:0 10px 27px rgba(7,60,50,.07)}

.commerce-modal{background:rgba(3,23,18,.76);backdrop-filter:blur(6px)}
.commerce-sheet{border-radius:28px 28px 20px 20px;padding:22px;background:linear-gradient(180deg,#fbfcf8,#f2f6ef)}
.modal-close{width:40px;height:40px;box-shadow:0 9px 24px rgba(7,60,50,.16)}
.product-gallery>img{border-radius:21px;box-shadow:0 15px 32px rgba(7,60,50,.12)}
.gallery-thumbs{gap:9px;margin-top:11px}.gallery-thumbs button{border-radius:13px;box-shadow:0 5px 13px rgba(7,60,50,.07)}
.product-detail-head h2,.payment-header h2,.chat-header h2{letter-spacing:-.04em}.product-detail-head>strong{font-size:20px}
.seller-profile,.review-list article,.payment-form>label:not(.payment-agreement){border:0;border-radius:17px;box-shadow:0 8px 22px rgba(7,60,50,.07)}
.seller-avatar{border-radius:14px}.trust-notice{border-radius:16px}.detail-actions button{border-radius:13px;padding:13px 9px}
.payment-summary{border-radius:19px;padding:18px;background:linear-gradient(135deg,var(--green),#0c5848);box-shadow:0 15px 30px rgba(7,60,50,.2)}
.chat-messages .mine{background:linear-gradient(135deg,var(--green),var(--green2))}.chat-messages article{border-radius:16px}

.bottom-nav{
  height:78px;padding-top:9px;background:rgba(255,255,255,.9);
  border-top:1px solid rgba(7,60,50,.08);box-shadow:0 -12px 30px rgba(7,60,50,.07)
}
.bottom-nav button{transition:transform .18s ease}.bottom-nav button.active{font-weight:900}.bottom-nav button.active>span:not(.sell-action span){transform:translateY(-1px)}
.bottom-nav .sell-action span{width:44px;height:44px;border-radius:16px;background:linear-gradient(135deg,var(--green),var(--green2));box-shadow:0 12px 26px rgba(7,60,50,.3)}

.app-credit{background:linear-gradient(155deg,#062f27,#08483a)!important;position:relative;overflow:hidden}
.app-credit:before{content:"";position:absolute;width:180px;height:180px;border:34px solid rgba(155,212,58,.08);border-radius:50%;right:-90px;top:-95px}

@media(min-width:700px){
  .app-shell{border:1px solid rgba(255,255,255,.7);box-shadow:0 35px 90px rgba(7,60,50,.18)}
  .commerce-sheet{border-radius:28px}.cattle-visual{height:178px}
}
@media(max-width:380px){.screen{padding-left:13px;padding-right:13px}.hero-card{padding:23px 19px}.hero-card h2{font-size:27px}.cattle-visual{height:150px}}

@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important;animation:none!important}}

/* Marketplace 2026 refinements */
.app-header:after{content:"";position:absolute;left:18px;right:18px;bottom:-1px;height:1px;background:linear-gradient(90deg,transparent,rgba(155,212,58,.7),transparent)}
.screen-heading{position:relative}.screen-heading:after{content:"";position:absolute;left:50px;bottom:-8px;width:48px;height:3px;border-radius:3px;background:linear-gradient(90deg,var(--lime),transparent)}
.cattle-card{position:relative}.cattle-card:after{content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px rgba(255,255,255,.8)}
.cattle-top strong{padding:5px 8px;border-radius:9px;background:var(--lime-soft);white-space:nowrap}
.seller-row:before{content:"";width:7px;height:7px;border-radius:50%;background:var(--lime);box-shadow:0 0 0 4px rgba(155,212,58,.14);margin-right:2px}
.seller-row>div{margin-right:auto;margin-left:7px}.seller-row .chat-button{margin-left:8px}
.card-actions .buy-button,.primary-button,.primary-action,.payment-form>button{position:relative;overflow:hidden}
.card-actions .buy-button:after,.primary-button:after,.primary-action:after,.payment-form>button:after{content:"";position:absolute;top:-50%;left:-70%;width:45%;height:200%;transform:rotate(25deg);background:linear-gradient(90deg,transparent,rgba(255,255,255,.22),transparent);transition:left .45s ease}
.card-actions .buy-button:hover:after,.primary-button:hover:after,.primary-action:hover:after,.payment-form>button:hover:after{left:125%}
.filter:hover,.period-row button:hover{border-color:var(--green2);color:var(--green)}
.gallery-thumbs button{transition:transform .18s ease,border-color .18s ease}.gallery-thumbs button:hover{transform:translateY(-2px)}
.product-detail-head{padding-bottom:14px;border-bottom:1px solid var(--line)}
.review-section{padding-top:2px}.review-heading{padding:0 2px}
.payment-icon{background:linear-gradient(145deg,#effadc,#dff3bd);box-shadow:inset 0 0 0 1px rgba(7,60,50,.05)}
.app-credit strong{position:relative;z-index:1}.app-credit p,.app-credit small{position:relative;z-index:1}

@media(min-width:900px){
  body{padding:28px}
  .app-shell{max-width:1180px;min-height:calc(100vh - 56px);border-radius:30px;overflow:hidden;padding-bottom:92px}
  .app-header{height:84px;padding:12px 34px}.identity img{width:58px;height:58px}.identity strong{font-size:22px}
  .screen{padding:34px 42px 54px}.welcome h1,.screen-heading h1{font-size:34px;max-width:none}
  #homeScreen.active{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(310px,.65fr);gap:18px 22px;align-items:stretch}
  #homeScreen .welcome{grid-column:1/-1;margin-bottom:2px}
  #homeScreen .hero-card{grid-column:1;grid-row:2/4;min-height:380px;padding:42px 38px}
  #homeScreen .hero-card h2{font-size:48px;max-width:430px;margin-top:24px}
  #homeScreen .hero-card p{font-size:14px;max-width:430px}.hero-card:before{font-size:160px;right:20px;top:24px}
  #homeScreen .about-app-card{grid-column:2;grid-row:2;margin:0}
  #homeScreen .national-reach{grid-column:2;grid-row:3;margin:0}
  #homeScreen>.section-title{grid-column:1/-1;margin-top:20px}
  #homeScreen>.featured-list{grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr))}
  #homeScreen .cattle-card.featured:first-child{grid-column:auto}
  .market-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
  .cattle-visual{height:190px}.cattle-body{padding:19px}
  .screen-heading{margin-bottom:26px}.search-box{max-width:680px}.filter-row{max-width:760px}
  .form-card,.tracking-card,.finance-hero,.loan-result,.research-summary,.support-card{max-width:850px;margin-left:auto;margin-right:auto}
  .stats-grid,.admin-stats{grid-template-columns:repeat(3,1fr)}
  .fleet-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}.fleet-card{margin:0}
  .research-history{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.research-entry{margin:0}
  .help-actions{max-width:850px;margin-left:auto;margin-right:auto}.faq-list{max-width:850px;margin-left:auto;margin-right:auto}
  .app-credit{padding:54px 18%;min-height:230px}
  .bottom-nav{max-width:1180px;height:82px;bottom:28px;border-radius:0 0 30px 30px;padding-left:130px;padding-right:130px}
  .bottom-nav button{width:90px;font-size:10px}.bottom-nav button>span{font-size:22px}
  .commerce-sheet{width:min(92vw,760px);max-height:88vh;padding:28px}.product-sheet{display:block}
  .product-gallery>img{aspect-ratio:16/9}.gallery-thumbs button,.gallery-thumbs img{width:82px}.gallery-thumbs img{height:60px}
}

@media(min-width:900px) and (max-width:1050px){
  #homeScreen.active{grid-template-columns:1fr}.market-list{grid-template-columns:repeat(2,minmax(0,1fr))}
  #homeScreen .welcome,#homeScreen .hero-card,#homeScreen .about-app-card,#homeScreen .national-reach,#homeScreen>.section-title,#homeScreen>.featured-list{grid-column:1;grid-row:auto}
  #homeScreen>.featured-list{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* Stock, estimated weight, and location-aware recommendations */
.inventory-row{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:10px 0 4px}
.inventory-row>span:last-child{font-size:8px;color:var(--muted);font-weight:700}
.stock-badge{display:inline-flex;align-items:center;gap:5px;width:max-content;padding:5px 9px;border-radius:999px;font-size:9px;font-weight:900}
.stock-badge:before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.stock-badge.available{color:#176d45;background:#e8f7dd}.stock-badge.empty{color:#a34e32;background:#fff0e7}
.location-match{display:flex;align-items:center;width:max-content;max-width:100%;margin:-2px 0 10px;padding:6px 9px;border-radius:999px;background:linear-gradient(90deg,#e8f6d3,#f4fae9);color:var(--green);font-size:8px;font-weight:900;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.detail-stock{display:inline-flex;margin-top:7px;padding:6px 9px;border-radius:999px;background:var(--lime-soft);color:var(--green);font-size:9px;font-weight:900}
#buyerLocationField{padding:12px;border-radius:14px;background:var(--lime-soft);border:1px solid rgba(7,60,50,.08)}
#buyerLocationField input{background:#fff}
.cattle-meta{flex-wrap:wrap;row-gap:5px}.cattle-meta span:first-child{font-weight:700;color:var(--green2)}
.location-preference{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:10px;margin:-5px 0 18px;padding:10px 11px;border:1px solid rgba(7,60,50,.08);border-radius:16px;background:rgba(255,255,255,.82);box-shadow:0 8px 24px rgba(7,60,50,.06);backdrop-filter:blur(9px)}
.location-preference>span{width:36px;height:36px;display:grid;place-items:center;border-radius:12px;background:var(--lime-soft);color:var(--green);font-weight:900}
.location-preference label{display:flex;min-width:0;flex-direction:column}.location-preference small{font-size:8px;letter-spacing:.11em;color:var(--muted);font-weight:900}
.location-preference input{width:100%;border:0;outline:0;padding:3px 0;background:transparent;color:var(--green);font-size:11px;font-weight:800}
.location-preference button{border:0;border-radius:11px;padding:10px 12px;background:var(--green);color:#fff;font-size:9px;font-weight:900}

@media(min-width:900px){
  .inventory-row>span:last-child{font-size:9px}.location-match{font-size:9px}
  #homeScreen .location-preference{grid-column:1/-1;grid-row:2;margin:0;max-width:660px}
  #homeScreen .hero-card{grid-row:3/5}
  #homeScreen .about-app-card{grid-row:3}
  #homeScreen .national-reach{grid-row:4}
  #homeScreen>.section-title{grid-row:5}
  #homeScreen>.featured-list{grid-row:6}
}

@media(min-width:900px) and (max-width:1050px){
  #homeScreen .location-preference,#homeScreen .hero-card,#homeScreen .about-app-card,#homeScreen .national-reach,#homeScreen>.section-title,#homeScreen>.featured-list{grid-column:1;grid-row:auto}
}

/* Account verification, complaint center, and user agreement */
.report-fab{position:fixed;right:16px;bottom:92px;z-index:45;display:flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.65);border-radius:999px;padding:11px 14px;background:linear-gradient(135deg,#9c442d,#c5683d);color:#fff;font-size:10px;font-weight:900;box-shadow:0 13px 30px rgba(110,52,31,.25)}
.report-fab:hover{transform:translateY(-2px)}.report-fab span{letter-spacing:.02em}
.product-report-row{display:flex;justify-content:flex-end;margin:-3px 0 9px}.product-report-row button{border:0;background:transparent;color:#a24d32;font-size:9px;font-weight:900;text-decoration:underline}
.report-header,.agreement-header{padding-right:42px}.report-header small,.agreement-header small{font-size:9px;letter-spacing:.12em;color:var(--muted);font-weight:900}.report-header h2,.agreement-header h2{margin:5px 0;color:var(--green);letter-spacing:-.04em}.report-header p,.agreement-header p{margin:3px 0 18px;color:var(--muted);font-size:10px}
.complaint-form{display:grid;gap:12px}.complaint-form>label:not(.complaint-truth){display:block;color:var(--green);font-size:10px;font-weight:800}.complaint-form select,.complaint-form input,.complaint-form textarea{display:block;width:100%;margin-top:6px;border:1px solid var(--line);border-radius:12px;padding:12px;background:#fff;color:var(--ink)}.complaint-form textarea{min-height:120px;resize:vertical}.complaint-truth,.terms-agreement{display:flex!important;align-items:flex-start;gap:9px!important;padding:11px!important;border:1px solid var(--line)!important;border-radius:13px!important;background:#f8faf5!important;color:var(--muted)!important;font-size:9px!important;line-height:1.5!important}.complaint-truth input,.terms-agreement input{width:auto!important;margin:2px 0 0!important}.complaint-form>button{border:0;border-radius:12px;padding:13px;background:linear-gradient(135deg,var(--green),var(--green2));color:#fff;font-weight:900}
.terms-agreement button{display:inline;border:0;background:transparent;color:var(--green2);padding:0;font:inherit;font-weight:900;text-decoration:underline}.agreement-list{display:grid;gap:9px;margin:15px 0 0;padding-left:24px}.agreement-list li{padding:10px 12px;border-radius:12px;background:#fff;border:1px solid var(--line);color:#42564e;font-size:10px;line-height:1.55}.agreement-list li::marker{color:var(--green2);font-weight:900}
.verification-state{display:inline-flex;align-items:center;width:max-content;border-radius:999px;padding:5px 8px;font-size:8px!important}.verification-state.verified{color:#176d45;background:#e5f5dc}.verification-state.pending{color:#94601b;background:#fff1d7}
.admin-list .admin-actions{align-items:center;flex-wrap:wrap;justify-content:flex-end}.dual-mode .seller-only{display:flex!important}.unverified-mode .account-button{background:linear-gradient(135deg,#9a6724,#cf9440)}
#registerForm fieldset{grid-template-columns:repeat(3,1fr)}

@media(min-width:900px){.report-fab{right:max(22px,calc((100vw - 1180px)/2 + 24px));bottom:126px}.report-sheet,.agreement-sheet{width:min(92vw,680px)}}
@media(max-width:760px){#registerForm fieldset{grid-template-columns:1fr}.report-fab{width:42px;height:42px;justify-content:center;padding:0}.report-fab span{display:none}}
.password-control{display:block;position:relative;width:100%}.password-control input{width:100%;padding-right:3.25rem!important}.password-toggle{position:absolute;right:.45rem;top:50%;transform:translateY(-50%);display:grid;place-items:center;width:2.35rem;height:2.35rem;border:0;border-radius:.75rem;background:transparent;color:#64748b;font-size:1.05rem;cursor:pointer}.password-toggle:hover,.password-toggle:focus-visible,.password-toggle.showing{background:#eaf4e6;color:#245d1c;outline:none}.password-toggle:focus-visible{box-shadow:0 0 0 3px rgba(80,150,55,.2)}
.verification-sheet{max-width:620px}.verification-header small{font-weight:800;letter-spacing:.12em;color:#4f7f39}.verification-header h2{margin:.35rem 0 .55rem;color:#123d31}.verification-header p{margin:0;color:#64748b}.verification-steps{display:grid;grid-template-columns:repeat(3,1fr);gap:.55rem;margin:1.2rem 0}.verification-steps b{padding:.75rem .45rem;border-radius:.85rem;background:#eef2f0;color:#718078;text-align:center;font-size:.82rem}.verification-steps b.active{background:#fff1c7;color:#805a00;box-shadow:inset 0 0 0 1px #e5c75c}.verification-steps b.done{background:#dff2d8;color:#245d1c}.verification-form{display:grid;gap:1rem}.verification-form label{display:grid;gap:.45rem;font-weight:700;color:#213a32}.verification-form input[type="text"],.verification-form input[type="file"],.verification-form input[inputmode="numeric"]{width:100%;border:1px solid #cbd9d1;border-radius:.9rem;padding:.9rem;background:#fff;color:#18352c}.verification-form button{border:0;border-radius:.95rem;padding:1rem;background:#256a3d;color:#fff;font-weight:800;cursor:pointer}.prototype-otp,.revision-note{margin:0;padding:.9rem;border-radius:.85rem;background:#fff7da;color:#684f08;font-size:.88rem}.document-truth{grid-template-columns:auto 1fr!important;align-items:start}.document-truth input{margin-top:.2rem}.revision-note{margin-bottom:1rem;background:#fff0e8;color:#843b1d}.admin-actions{flex-wrap:wrap}.admin-actions button[data-status-decision="rejected"]{color:#a62929}.admin-actions button[data-status-decision="needs_revision"]{color:#8a5e00}
.otp-method{display:grid!important;grid-template-columns:1fr 1fr!important;gap:.65rem!important;border:0!important;padding:0!important}.otp-method legend{grid-column:1/-1;margin-bottom:.25rem;font-weight:800;color:#213a32}.otp-method label{display:flex!important;align-items:center;gap:.55rem;padding:.8rem;border:1px solid #cbd9d1;border-radius:.85rem;background:#fff;cursor:pointer}.otp-method input{width:auto!important}.otp-method label:has(input:checked){border-color:#4f8b39;background:#edf7e9;color:#245d1c}.optional-field>span,.optional-field .field-hint{color:#77827d}
