/* خودرو باما — UX patch 2026-09 — finance, sell tracking, filters, share, homepage */
:root{
  --bama-deep:#0b4f39;
  --bama-deeper:#073d2e;
  --bama-green:#12bf39;
  --bama-lime:#25df24;
  --bama-soft:#eef8f2;
  --bama-soft-2:#f7faf8;
  --bama-line:#dce8e1;
  --bama-text:#18372d;
  --bama-muted:#738179;
  --bama-shadow:0 18px 55px rgba(15,74,53,.10);
}

/* finance: selectable list + manual fallback */
.finance-manual-car{display:flex!important;flex-direction:column;gap:8px}
.finance-manual-car>span{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap}
.finance-manual-car small{font-size:12px;font-weight:500;color:#7a867f}
.finance-car-note{margin-top:-4px;padding:10px 14px;border:1px dashed #c8ddd0;border-radius:13px;background:#f6fbf8;color:#567066;font-size:13px;line-height:1.8}
.finance-form-card select,.finance-form-card input,.finance-form-card textarea{transition:border-color .18s ease,box-shadow .18s ease;background:#fff}
.finance-form-card select:focus,.finance-form-card input:focus,.finance-form-card textarea:focus{border-color:#35c36d!important;box-shadow:0 0 0 4px rgba(53,195,109,.10)!important;outline:0}

/* sell wizard */
.sell-track-link{display:flex;align-items:center;justify-content:center;min-height:46px;margin:18px 0 0;padding:10px 16px;border:1px solid rgba(255,255,255,.24);border-radius:14px;background:rgba(255,255,255,.08);color:#fff!important;text-decoration:none;font-weight:800}
.sell-track-link:hover{background:rgba(255,255,255,.14)}
[data-time-card].coordination-time{border-style:dashed!important;background:#f2fbf5!important;color:#0b573d!important;font-weight:900!important}
[data-time-card].coordination-time.is-selected,[data-time-card].coordination-time.active{border-style:solid!important;background:#0d6a48!important;color:#fff!important}

/* public tracking */
.sell-track-page{padding:38px 0 70px;background:linear-gradient(180deg,#f6faf8 0,#fff 100%);min-height:70vh}
.sell-track-shell{max-width:980px!important}
.sell-track-head{text-align:center;margin-bottom:22px}
.sell-track-head>span{display:inline-flex;padding:7px 13px;border-radius:999px;background:#e8f7ed;color:#0d7348;font-weight:900;font-size:13px}
.sell-track-head h1{margin:12px 0 8px;color:#163d30;font-size:clamp(25px,3vw,38px)}
.sell-track-head p{margin:0;color:#718078;line-height:1.9}
.sell-track-form{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;align-items:end;padding:20px;background:#fff;border:1px solid #e0ebe5;border-radius:22px;box-shadow:var(--bama-shadow)}
.sell-track-form label{display:flex;flex-direction:column;gap:8px;color:#24473b;font-weight:800}
.sell-track-form input{height:52px;border:1px solid #d8e4dd;border-radius:14px;padding:0 14px;background:#fff;font:inherit;outline:0}
.sell-track-form input:focus{border-color:#2fc260;box-shadow:0 0 0 4px rgba(47,194,96,.10)}
.sell-track-form button{height:52px;border:0;border-radius:14px;padding:0 22px;background:linear-gradient(135deg,#0c5c41,#18b94c);color:#fff;font:inherit;font-weight:900;cursor:pointer;white-space:nowrap}
.sell-track-alert{margin:16px 0 0;padding:14px 16px;border:1px solid #f1caca;border-radius:14px;background:#fff5f5;color:#a03030;font-weight:700;text-align:center}
.sell-track-result{margin-top:20px;padding:22px;background:#fff;border:1px solid #e0ebe5;border-radius:24px;box-shadow:var(--bama-shadow)}
.sell-track-status{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 18px;border-radius:18px;background:#ecf8f0}
.sell-track-status small{color:#668176}
.sell-track-status strong{color:#087347;font-size:18px}
.sell-track-status span{margin-inline-start:auto;color:#6e7c75;font-size:12px}
.sell-track-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:16px}
.sell-track-grid>div{min-height:84px;padding:14px;border:1px solid #e6eee9;border-radius:16px;background:#fafcfb;display:flex;flex-direction:column;gap:8px}
.sell-track-grid small{color:#78847e}
.sell-track-grid b{color:#1c3c31;overflow-wrap:anywhere}
.sell-track-foot{text-align:center;margin-top:18px}
.sell-track-foot a{color:#0b7448;font-weight:900;text-decoration:none}

/* cars: direct manual price entry */
.acs-manual-price-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:14px}
.acs-manual-price-grid label{display:flex!important;flex-direction:column;gap:7px;font-size:12px!important;color:#587066!important;font-weight:800!important}
.acs-manual-price-grid input{width:100%;height:48px;padding:0 12px;border:1px solid #d8e4dd;border-radius:13px;background:#fff;color:#18372d;font:inherit;direction:ltr;text-align:right;outline:0}
.acs-manual-price-grid input:focus{border-color:#26bc5d;box-shadow:0 0 0 4px rgba(38,188,93,.09)}
.acs-submit span{white-space:nowrap}

/* share sheet */
body.bama-share-open{overflow:hidden}
.bama-share-sheet{position:fixed;inset:0;z-index:2147483200;display:none;direction:rtl}
.bama-share-sheet.open{display:block}
.bama-share-backdrop{position:absolute;inset:0;border:0;background:rgba(5,27,20,.58);backdrop-filter:blur(3px);cursor:default}
.bama-share-panel{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);width:min(620px,calc(100% - 28px));max-height:calc(100dvh - 36px);overflow:auto;padding:20px;background:#fff;border:1px solid #dfe9e3;border-radius:24px;box-shadow:0 28px 90px rgba(0,0,0,.26)}
.bama-share-panel>header{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:15px}
.bama-share-panel>header div{display:flex;flex-direction:column;gap:3px;min-width:0}
.bama-share-panel>header small{color:#7a8780;font-weight:700}
.bama-share-panel>header strong{color:#183a2f;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.bama-share-panel>header>button{width:40px;height:40px;border:1px solid #dfe7e2;border-radius:12px;background:#f8faf9;color:#3e5149;font-size:24px;cursor:pointer}
.bama-share-url{display:grid;grid-template-columns:1fr auto;gap:8px;padding:10px;border-radius:16px;background:#f3f8f5;border:1px solid #e0ebe5}
.bama-share-url input{min-width:0;height:44px;border:1px solid #d6e2db;border-radius:11px;background:#fff;padding:0 12px;direction:ltr;text-align:left;color:#44534d}
.bama-share-url button{border:0;border-radius:11px;background:#0c6446;color:#fff;padding:0 16px;font:inherit;font-weight:900;cursor:pointer}
.bama-share-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
.bama-share-options>a,.bama-share-options>button{min-height:72px;border:1px solid #e0e8e3;border-radius:16px;background:#fff;padding:12px;text-decoration:none;color:#1b3d31;text-align:right;font:inherit;display:flex;flex-direction:column;justify-content:center;gap:4px;cursor:pointer}
.bama-share-options>a:hover,.bama-share-options>button:hover{background:#f0faf4;border-color:#b9ddc6}
.bama-share-options b{font-size:15px}
.bama-share-options span{font-size:12px;color:#78857f;line-height:1.6}
.bama-share-toast{min-height:24px;margin-top:8px;text-align:center;color:#0a7d48;font-weight:800;font-size:13px}

/* homepage reference-style refresh */
.home-slider.home-slider-full{width:min(1280px,calc(100% - 36px))!important;max-width:1280px!important;height:auto!important;min-height:440px!important;margin:26px auto 0!important;border:1px solid #e0e9e4!important;border-radius:30px!important;background:#fff!important;box-shadow:0 16px 50px rgba(12,73,51,.10)!important;overflow:hidden!important;position:relative!important}
.home-slider.home-slider-full .home-slide{min-height:440px!important;background:#fff!important;overflow:hidden!important}
.home-slider.home-slider-full .home-slide-image{position:absolute!important;left:0!important;right:auto!important;top:0!important;width:55%!important;height:100%!important;object-fit:cover!important;object-position:center!important;z-index:1!important}
.home-slider.home-slider-full .home-slide-fallback{position:absolute!important;left:0!important;right:auto!important;top:0!important;width:55%!important;height:100%!important;background:radial-gradient(circle at 40% 45%,#c5f3d0 0 16%,#62d77c 17% 34%,#159c50 35% 51%,#0d6541 52% 69%,#f2faf5 70%)!important;z-index:1!important}
.home-slider.home-slider-full .home-slide-shade{position:absolute!important;left:0!important;right:auto!important;top:0!important;width:55%!important;height:100%!important;z-index:2!important;background:linear-gradient(90deg,rgba(7,69,45,.08),rgba(255,255,255,.03) 72%,#fff 100%)!important;pointer-events:none!important}
.home-slider.home-slider-full .slide-content{position:relative!important;z-index:5!important;width:45%!important;max-width:none!important;min-height:440px!important;margin:0 0 0 auto!important;padding:56px 46px 62px!important;display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;text-align:right!important;color:var(--bama-text)!important}
.home-slider.home-slider-full .slide-content>span{display:inline-flex!important;align-items:center!important;min-height:34px!important;padding:0 13px!important;border-radius:999px!important;background:#eaf8ef!important;color:#0b7747!important;font-size:13px!important;font-weight:900!important;margin-bottom:14px!important}
.home-slider.home-slider-full .slide-content h1{margin:0!important;color:#112d25!important;font-size:clamp(31px,3.4vw,52px)!important;line-height:1.45!important;font-weight:950!important;letter-spacing:-.7px!important;text-shadow:none!important}
.home-slider.home-slider-full .slide-content p{margin:15px 0 0!important;color:#6d7b74!important;font-size:17px!important;line-height:2!important;max-width:560px!important;text-shadow:none!important}
.home-reference-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap;margin-top:25px}
.home-slider.home-slider-full .home-reference-actions .btn{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-width:152px!important;min-height:52px!important;padding:0 22px!important;border-radius:13px!important;background:linear-gradient(135deg,#0d6f48,#18ba45)!important;color:#fff!important;border:0!important;box-shadow:0 10px 26px rgba(17,159,68,.18)!important;text-decoration:none!important;font-weight:900!important}
.home-reference-secondary{display:inline-flex;align-items:center;justify-content:center;min-width:152px;min-height:52px;padding:0 22px;border:1px solid #90ac9e;border-radius:13px;background:#fff;color:#164b37;text-decoration:none;font-weight:900}
.home-reference-secondary:hover{background:#f1f8f4;border-color:#4d886d}
.home-slider.home-slider-full .slider-arrow{width:42px!important;height:42px!important;border:1px solid #dce8e1!important;border-radius:50%!important;background:rgba(255,255,255,.94)!important;color:#0e6545!important;box-shadow:0 7px 20px rgba(18,72,52,.12)!important}
.home-slider.home-slider-full .slider-dots{bottom:15px!important;z-index:9!important}
.home-slider.home-slider-full .slider-dots button{background:#cbd9d1!important}
.home-slider.home-slider-full .slider-dots button.active{background:#16b64a!important}

.home-reference-services{margin-top:18px!important;padding:20px 22px!important;border:1px solid #e0e9e4!important;border-radius:22px!important;background:#fff!important;box-shadow:0 12px 38px rgba(12,73,51,.07)!important}
.home-reference-service-title,.home-reference-process>header{display:flex;align-items:center;justify-content:center;gap:14px;margin-bottom:16px;color:#243d33;text-align:center}
.home-reference-service-title span,.home-reference-process>header span{width:56px;height:2px;background:linear-gradient(90deg,transparent,#31b767)}
.home-reference-service-title span:last-child,.home-reference-process>header span:last-child{transform:scaleX(-1)}
.home-reference-service-title b,.home-reference-process>header b{font-size:17px;font-weight:950}
.home-reference-services .services-row{display:grid!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:11px!important}
.home-reference-services .service-card{min-width:0!important;min-height:116px!important;padding:14px 8px!important;border:1px solid #e7eee9!important;border-radius:17px!important;background:#f9fbfa!important;box-shadow:none!important;display:flex!important;flex-direction:column!important;align-items:center!important;justify-content:center!important;gap:9px!important;text-align:center!important;color:#214438!important;text-decoration:none!important;transition:transform .18s ease,border-color .18s ease,background .18s ease!important}
.home-reference-services .service-card:hover{transform:translateY(-3px)!important;background:#f0faf4!important;border-color:#b9ddc7!important}
.home-reference-services .service-icon{width:42px!important;height:42px!important;display:grid!important;place-items:center!important;color:#0c6a46!important}
.home-reference-services .service-icon svg{width:36px!important;height:36px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important;stroke-linejoin:round!important}
.home-reference-services .service-icon img{width:38px!important;height:38px!important;object-fit:contain!important}
.home-reference-services .service-card b{font-size:14px!important;font-weight:900!important}

.home-reference-trust{margin-top:16px!important;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:14px 18px!important;border:1px solid #d8e9df;border-radius:18px;background:#eaf7f0}
.home-reference-trust>div{display:flex;align-items:center;justify-content:center;gap:10px;min-height:64px;padding:8px 16px;border-inline-start:1px solid #d6e7dd}
.home-reference-trust>div:first-child{border-inline-start:0}
.home-reference-trust i{width:36px;height:36px;flex:0 0 36px;display:grid;place-items:center;border-radius:12px;background:#fff;color:#0a7a48;font-style:normal;font-weight:950;box-shadow:0 6px 16px rgba(14,97,64,.08)}
.home-reference-trust span{display:flex;flex-direction:column;gap:4px}
.home-reference-trust b{color:#173d30;font-size:14px}
.home-reference-trust small{color:#708078;font-size:11px;line-height:1.5}

.home-reference-process{margin-top:16px!important;padding:20px 22px 24px!important;border:1px solid #e0e9e4;border-radius:22px;background:#fff;box-shadow:0 12px 38px rgba(12,73,51,.06)}
.home-reference-process-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;position:relative}
.home-reference-process-grid:before{content:'';position:absolute;left:8%;right:8%;top:28px;height:2px;background:#d9e9df;z-index:0}
.home-reference-process-grid a{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;text-align:center;gap:7px;padding:0 8px;color:#1a4233;text-decoration:none}
.home-reference-process-grid i{width:56px;height:56px;display:grid;place-items:center;border-radius:50%;background:#e7f8ec;border:6px solid #fff;box-shadow:0 0 0 1px #cfe4d7;color:#07824b;font-style:normal;font-weight:950}
.home-reference-process-grid b{font-size:13px;font-weight:950}
.home-reference-process-grid small{font-size:11px;color:#7b8781;line-height:1.6}

/* keep the first screen compact, similar to the supplied reference */
.front-body main>.home-reference-services,.front-body main>.home-reference-trust,.front-body main>.home-reference-process{position:relative;z-index:2}

@media(max-width:1050px){
  .home-reference-services .services-row{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .home-reference-trust{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-reference-trust>div:nth-child(3){border-inline-start:0}
  .sell-track-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}

@media(max-width:900px){
  .home-slider.home-slider-full{width:calc(100% - 24px)!important;min-height:570px!important;border-radius:24px!important;margin-top:14px!important}
  .home-slider.home-slider-full .home-slide{min-height:570px!important}
  .home-slider.home-slider-full .home-slide-image,.home-slider.home-slider-full .home-slide-fallback{top:0!important;width:100%!important;height:245px!important;border-radius:0!important}
  .home-slider.home-slider-full .home-slide-shade{top:0!important;width:100%!important;height:245px!important;background:linear-gradient(180deg,rgba(6,61,42,.06),rgba(255,255,255,.16) 65%,#fff 100%)!important}
  .home-slider.home-slider-full .slide-content{width:100%!important;min-height:570px!important;padding:270px 24px 54px!important;align-items:center!important;justify-content:flex-start!important;text-align:center!important}
  .home-slider.home-slider-full .slide-content h1{font-size:30px!important}
  .home-slider.home-slider-full .slide-content p{font-size:14px!important;line-height:1.9!important}
  .home-reference-actions{justify-content:center;margin-top:18px}
  .home-reference-services{margin-inline:12px!important;padding:17px 14px!important}
  .home-reference-trust,.home-reference-process{margin-inline:12px!important}
  .home-reference-process-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:18px}
  .home-reference-process-grid:before{display:none}
  .sell-track-form{grid-template-columns:1fr 1fr}
  .sell-track-form button{grid-column:1/-1}
}

@media(max-width:640px){
  .finance-manual-car>span{align-items:flex-start;flex-direction:column}
  .sell-track-page{padding-top:22px}
  .sell-track-form{grid-template-columns:1fr;padding:15px}
  .sell-track-form button{grid-column:auto}
  .sell-track-grid{grid-template-columns:1fr}
  .sell-track-status span{margin-inline-start:0;width:100%}
  .acs-manual-price-grid{grid-template-columns:1fr}
  .bama-share-panel{left:0;right:0;top:auto;bottom:0;transform:none;width:100%;max-height:85dvh;border-radius:24px 24px 0 0;padding:16px}
  .bama-share-options{grid-template-columns:1fr}
  .bama-share-url{grid-template-columns:1fr}
  .bama-share-url button{height:44px}
  .home-slider.home-slider-full{min-height:590px!important}
  .home-slider.home-slider-full .home-slide{min-height:590px!important}
  .home-slider.home-slider-full .slide-content{min-height:590px!important;padding-inline:18px!important}
  .home-reference-actions{width:100%;display:grid;grid-template-columns:1fr 1fr;gap:9px}
  .home-slider.home-slider-full .home-reference-actions .btn,.home-reference-secondary{min-width:0!important;width:100%!important;padding-inline:10px!important}
  .home-reference-services .services-row{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .home-reference-trust{grid-template-columns:1fr}
  .home-reference-trust>div{border-inline-start:0;border-top:1px solid #d6e7dd;justify-content:flex-start}
  .home-reference-trust>div:first-child{border-top:0}
  .home-reference-process-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .home-reference-service-title span,.home-reference-process>header span{width:28px}
}
