
:root{
  --mm-accent:#dfff00;
  --mm-bg:#080b0d;
  --mm-panel:#11161a;
  --mm-panel-2:#151b20;
  --mm-line:#263038;
  --mm-muted:#8f9ba3;
  --mm-text:#f5f7f8;
}
.mm-publish-page{padding:42px 0 80px;background:
radial-gradient(circle at 16% 0,rgba(223,255,0,.08),transparent 28%),
linear-gradient(180deg,#090d10 0,#080b0d 100%);min-height:80vh}
.mm-publish-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;margin-bottom:30px}
.mm-publish-hero h1{font-size:clamp(38px,5vw,64px);line-height:1;margin:8px 0 12px;color:#fff;letter-spacing:-.04em}
.mm-publish-hero p{max-width:660px;margin:0;color:var(--mm-muted);font-size:17px}
.mm-publish-trust{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}
.mm-publish-trust span{padding:9px 12px;border:1px solid var(--mm-line);border-radius:999px;background:#101519;color:#cbd3d7;font-size:13px}
.mm-publish-layout{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:24px;align-items:start}
.mm-publish-main{min-width:0}
.mm-stepper,.mm-progress,.mm-publish-step,.mm-tips-card,.mm-help-card{border:1px solid var(--mm-line);background:rgba(17,22,26,.96);border-radius:18px}
.mm-stepper{display:flex;align-items:center;padding:18px 22px;margin-bottom:12px}
.mm-stepper button{appearance:none;border:0;background:transparent;color:#74818a;display:flex;align-items:center;gap:9px;font:inherit;cursor:pointer;padding:0}
.mm-stepper button b{display:grid;place-items:center;width:34px;height:34px;border-radius:50%;border:1px solid #354149;background:#0c1013;color:#8f9ba3}
.mm-stepper button span{font-weight:750;font-size:13px}
.mm-stepper button.is-active,.mm-stepper button.is-complete{color:#fff}
.mm-stepper button.is-active b{background:var(--mm-accent);border-color:var(--mm-accent);color:#0a0d0f;box-shadow:0 0 0 5px rgba(223,255,0,.08)}
.mm-stepper button.is-complete b{border-color:var(--mm-accent);color:var(--mm-accent)}
.mm-stepper i{height:1px;background:#303a41;flex:1;margin:0 14px}
.mm-progress{padding:14px 18px;margin-bottom:14px}
.mm-progress>div{display:flex;justify-content:space-between;margin-bottom:9px;color:#d9dfe2;font-size:13px}
.mm-progress>span{display:block;height:5px;border-radius:10px;background:#242d33;overflow:hidden}
.mm-progress>span i{display:block;width:25%;height:100%;background:var(--mm-accent);border-radius:inherit;transition:width .25s ease}
.mm-publish-step{display:none;padding:30px}
.mm-publish-step.is-active{display:block;animation:mmStepIn .22s ease}
@keyframes mmStepIn{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}
.mm-panel-head{padding-bottom:24px;margin-bottom:24px;border-bottom:1px solid var(--mm-line)}
.mm-panel-head h2{margin:7px 0 8px;color:#fff;font-size:29px;letter-spacing:-.025em}
.mm-panel-head p{margin:0;color:var(--mm-muted)}
.mm-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.mm-form-grid label,.mm-description-label{display:block;color:#dce2e5;font-weight:700;font-size:14px}
.mm-form-grid label.full{grid-column:1/-1}
.mm-form-grid label>span,.mm-description-label>span{display:block;margin-bottom:8px}
.mm-form-grid em,.mm-description-label em{color:var(--mm-accent);font-style:normal}
.mm-form-grid input,.mm-form-grid select,.mm-description-label textarea{width:100%;border:1px solid #344048;border-radius:12px;background:#0b1013;color:#f6f8f9;padding:14px 15px;font:inherit;outline:none;transition:.2s}
.mm-form-grid input,.mm-form-grid select{height:51px}
.mm-form-grid input:focus,.mm-form-grid select:focus,.mm-description-label textarea:focus{border-color:var(--mm-accent);box-shadow:0 0 0 3px rgba(223,255,0,.08)}
.mm-form-grid small{display:block;margin-top:7px;color:#75828a;font-weight:500}
.mm-input-suffix{position:relative}
.mm-input-suffix input{padding-right:58px}
.mm-input-suffix b{position:absolute;right:14px;top:50%;transform:translateY(-50%);font-size:12px;color:#819099}
.mm-step-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:28px;padding-top:22px;border-top:1px solid var(--mm-line)}
.mm-step-actions .button{min-width:210px;justify-content:center;border:0}
.mm-back{border:0;background:transparent;color:#b4bec3;font-weight:750;cursor:pointer;padding:12px 0}
.mm-next span{font-size:19px;margin-left:7px}
.mm-publish-aside{position:sticky;top:104px;display:grid;gap:14px}
.mm-tips-card{padding:24px}
.mm-tips-card h3{margin:7px 0 20px;color:#fff;font-size:22px}
.mm-tips-card ul{list-style:none;padding:0;margin:0;display:grid;gap:17px}
.mm-tips-card li{display:flex;gap:12px}
.mm-tips-card li>b{display:grid;place-items:center;width:34px;height:34px;flex:0 0 34px;border-radius:9px;background:rgba(223,255,0,.08);color:var(--mm-accent);font-size:11px}
.mm-tips-card li span{color:#7f8c94;font-size:13px;line-height:1.45}
.mm-tips-card li strong{display:block;color:#e7ecee;font-size:14px;margin-bottom:2px}
.mm-help-card{padding:17px;display:flex;gap:12px;align-items:center}
.mm-help-card svg,.mm-review-notice svg{width:25px;height:25px;fill:none;stroke:var(--mm-accent);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;flex:0 0 auto}
.mm-help-card strong,.mm-help-card span{display:block}
.mm-help-card strong{color:#fff;font-size:14px}.mm-help-card span{color:#7f8c94;font-size:12px;margin-top:2px}
.mm-uploader{border:0!important;background:transparent!important;padding:0!important}
.mm-uploader-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:14px}
.mm-uploader-head strong,.mm-uploader-head small{display:block}
.mm-uploader-head strong{color:#fff}.mm-uploader-head small{color:#7f8c94;margin-top:4px}
.mm-uploader-count{border:1px solid #354149;border-radius:999px;padding:7px 11px;color:var(--mm-accent);font-weight:800;font-size:12px}
.mm-uploader-input{position:absolute!important;left:-9999px!important}
.mm-uploader-dropzone{width:100%;min-height:250px;border:1.5px dashed #46545d;border-radius:16px;background:linear-gradient(180deg,#0d1215,#0a0e11);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;cursor:pointer;transition:.2s;padding:25px}
.mm-uploader-dropzone:hover,.mm-uploader.is-dragover .mm-uploader-dropzone{border-color:var(--mm-accent);background:rgba(223,255,0,.035)}
.mm-uploader-dropzone svg{width:38px;height:38px;fill:none;stroke:var(--mm-accent);stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;margin-bottom:4px}
.mm-uploader-dropzone strong{font-size:19px}.mm-uploader-dropzone span{color:#a9b3b8}.mm-uploader-dropzone small{color:#65727a}
.mm-uploader-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:14px}
.mm-uploader-item{position:relative;aspect-ratio:4/3;border-radius:13px;overflow:hidden;border:1px solid #344048;background:#0b1013}
.mm-uploader-item img{width:100%;height:100%;object-fit:cover}
.mm-uploader-remove{position:absolute;right:8px;top:8px;width:30px;height:30px;border:0;border-radius:50%;background:rgba(5,8,10,.82);color:#fff;cursor:pointer}
.mm-uploader-primary{position:absolute;left:8px;bottom:8px;background:var(--mm-accent);color:#090c0e;border-radius:7px;padding:5px 8px;font-size:10px;font-weight:900}
.mm-photo-tips{display:flex;gap:8px;flex-wrap:wrap;margin-top:16px}
.mm-photo-tips span{border:1px solid #2c373e;border-radius:999px;padding:8px 10px;color:#98a5ac;font-size:12px}
.mm-description-label textarea{min-height:285px;resize:vertical;line-height:1.7;font-weight:500}
.mm-description-label>div{display:flex;justify-content:space-between;margin-top:8px;color:#77848c;font-weight:500;font-size:12px}
.mm-description-prompts{display:flex;flex-wrap:wrap;gap:9px;margin-top:15px}
.mm-description-prompts button{border:1px solid #354149;border-radius:999px;background:#0b1013;color:#b9c3c8;padding:8px 12px;cursor:pointer}
.mm-description-prompts button:hover{border-color:var(--mm-accent);color:var(--mm-accent)}
.mm-preview-card{display:grid;grid-template-columns:42% 1fr;overflow:hidden;border:1px solid #344048;border-radius:16px;background:#0b1013}
.mm-preview-image{min-height:300px;background:#080b0d;display:grid;place-items:center;color:#66737b;background-size:cover;background-position:center}
.mm-preview-content{padding:25px}
.mm-preview-category{color:var(--mm-accent);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}
.mm-preview-content h3{font-size:27px;color:#fff;margin:8px 0 13px;line-height:1.15}
.mm-preview-content>strong{display:block;color:var(--mm-accent);font-size:28px;margin-bottom:18px}
.mm-preview-specs{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px}
.mm-preview-specs span{border:1px solid #2d373e;border-radius:9px;padding:9px;color:#aab4b9;font-size:12px}
.mm-preview-content p{color:#89969d;line-height:1.65;margin:0;display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.mm-review-notice{display:flex;gap:13px;align-items:center;margin-top:16px;padding:15px;border:1px solid rgba(223,255,0,.18);border-radius:12px;background:rgba(223,255,0,.035)}
.mm-review-notice strong,.mm-review-notice span{display:block}.mm-review-notice strong{color:#fff}.mm-review-notice span{color:#8d9aa1;font-size:13px;margin-top:2px}
.mm-submit{background:var(--mm-accent)!important;color:#080b0d!important;font-weight:900}
@media(max-width:980px){
  .mm-publish-layout{grid-template-columns:1fr}
  .mm-publish-aside{position:static;grid-template-columns:1fr 1fr}
}
@media(max-width:720px){
  .mm-publish-page{padding-top:25px}
  .mm-publish-hero{align-items:flex-start;flex-direction:column}
  .mm-publish-trust{justify-content:flex-start}
  .mm-stepper{padding:14px 12px}
  .mm-stepper button span{display:none}.mm-stepper i{margin:0 7px}
  .mm-publish-step{padding:21px 16px}
  .mm-form-grid{grid-template-columns:1fr}.mm-form-grid label.full{grid-column:auto}
  .mm-publish-aside{grid-template-columns:1fr}
  .mm-uploader-grid{grid-template-columns:1fr 1fr}
  .mm-preview-card{grid-template-columns:1fr}.mm-preview-image{min-height:220px}
  .mm-step-actions{align-items:stretch;flex-direction:column-reverse}
  .mm-step-actions .button,.mm-back{width:100%;min-width:0;text-align:center}
}


/* MotoMarket.ba — Objavi oglas V2 dorade */
.mm-publish-page{
  padding-top:22px;
}
.mm-publish-hero{
  align-items:center;
  margin-bottom:20px;
}
.mm-publish-hero h1{
  font-size:clamp(34px,4.2vw,54px);
  margin-top:5px;
  margin-bottom:9px;
}
.mm-publish-hero p{
  font-size:15px;
  max-width:760px;
}
.mm-publish-trust span{
  padding:8px 11px;
}
.mm-stepper{
  padding-top:15px;
  padding-bottom:15px;
}
.mm-progress{
  padding-top:12px;
  padding-bottom:12px;
}
.mm-publish-step{
  padding-top:26px;
}
.mm-panel-head{
  padding-bottom:20px;
  margin-bottom:20px;
}
.mm-panel-head h2{
  font-size:27px;
}
.mm-form-grid{
  gap:16px 18px;
}
.mm-label-with-icon{
  display:flex!important;
  align-items:center;
  gap:7px;
}
.mm-label-with-icon svg{
  width:16px;
  height:16px;
  fill:none;
  stroke:var(--mm-accent);
  stroke-width:1.8;
  stroke-linecap:round;
  stroke-linejoin:round;
  flex:0 0 16px;
}
.mm-time-card{
  border-color:rgba(223,255,0,.22);
  background:linear-gradient(180deg,rgba(223,255,0,.045),rgba(17,22,26,.96));
}
.mm-stepper button.is-complete b{
  font-size:0;
}
.mm-stepper button.is-complete b::before{
  content:"✓";
  font-size:17px;
  line-height:1;
}
@media(max-width:720px){
  .mm-publish-page{padding-top:16px}
  .mm-publish-hero{margin-bottom:16px}
  .mm-publish-hero h1{font-size:39px}
}


/* MotoMarket.ba — Objavi oglas V3: premium korak fotografija */
.mm-upload-quality{
  display:flex;
  align-items:center;
  gap:8px;
  margin-top:10px;
  color:#7f8c94;
  font-size:12px;
}
.mm-upload-quality i{
  width:7px;
  height:7px;
  border-radius:50%;
  background:#59656c;
  box-shadow:0 0 0 4px rgba(89,101,108,.12);
}
.mm-uploader[data-quality="start"] .mm-upload-quality i{
  background:#f5b942;
  box-shadow:0 0 0 4px rgba(245,185,66,.11);
}
.mm-uploader[data-quality="good"] .mm-upload-quality i,
.mm-uploader[data-quality="great"] .mm-upload-quality i{
  background:var(--mm-accent);
  box-shadow:0 0 0 4px rgba(223,255,0,.10);
}
.mm-uploader[data-quality="great"] .mm-upload-quality{
  color:#cddd7a;
}
.mm-uploader-message{
  margin-top:13px;
  padding:11px 13px;
  border:1px solid rgba(255,111,111,.25);
  border-radius:10px;
  background:rgba(255,111,111,.06);
  color:#ffb0b0;
  font-size:12px;
}
.mm-uploader-message[data-type="success"]{
  border-color:rgba(223,255,0,.22);
  background:rgba(223,255,0,.045);
  color:#dfff82;
}
.mm-uploader-grid{
  grid-template-columns:repeat(3,minmax(0,1fr));
}
.mm-uploader-item{
  cursor:grab;
  isolation:isolate;
  transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease;
}
.mm-uploader-item:hover{
  transform:translateY(-2px);
  border-color:#53616a;
  box-shadow:0 12px 28px rgba(0,0,0,.22);
}
.mm-uploader-item.is-dragging{
  opacity:.45;
  transform:scale(.98);
}
.mm-uploader-item.is-dragover{
  border-color:var(--mm-accent);
  box-shadow:0 0 0 3px rgba(223,255,0,.11);
}
.mm-photo-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(180deg,rgba(4,7,9,.48),transparent 35%,rgba(4,7,9,.82));
  pointer-events:none;
}
.mm-photo-overlay button{
  pointer-events:auto;
}
.mm-photo-drag{
  position:absolute;
  left:9px;
  top:9px;
  width:32px;
  height:32px;
  padding:8px;
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:3px;
  border:1px solid rgba(255,255,255,.18);
  border-radius:9px;
  background:rgba(5,8,10,.78);
  cursor:grab;
}
.mm-photo-drag span{
  width:3px;
  height:3px;
  border-radius:50%;
  background:#dbe2e5;
}
.mm-uploader-remove{
  right:9px;
  top:9px;
  border:1px solid rgba(255,255,255,.18);
  transition:.18s;
}
.mm-uploader-remove:hover{
  background:#ff4f5e;
  border-color:#ff4f5e;
}
.mm-uploader-primary{
  left:9px;
  bottom:9px;
  max-width:calc(100% - 62px);
  border:1px solid rgba(255,255,255,.15);
  background:rgba(5,8,10,.78);
  color:#e5eaec;
  cursor:pointer;
  transition:.18s;
}
.mm-uploader-primary:hover{
  border-color:var(--mm-accent);
  color:var(--mm-accent);
}
.mm-uploader-primary.is-primary{
  background:var(--mm-accent);
  color:#090c0e;
  border-color:var(--mm-accent);
}
.mm-photo-number{
  position:absolute;
  right:10px;
  bottom:11px;
  color:#eef2f4;
  font-size:11px;
  font-weight:900;
  letter-spacing:.08em;
}
.mm-uploader-legend{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:13px;
}
.mm-uploader-legend span{
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px 9px;
  border:1px solid #2d373e;
  border-radius:999px;
  color:#849198;
  font-size:11px;
}
.mm-uploader-legend i{
  color:var(--mm-accent);
  font-style:normal;
  font-weight:900;
}
.mm-legend-drag{
  width:11px;
  height:11px;
  background:
    radial-gradient(circle,var(--mm-accent) 1.4px,transparent 1.5px) 0 0/5px 5px;
}
@media(max-width:720px){
  .mm-uploader-grid{grid-template-columns:1fr 1fr}
  .mm-uploader-legend{display:grid}
}


/* MotoMarket.ba — Hotfix V4: obrada velikih fotografija */
.mm-uploader.is-processing .mm-uploader-dropzone{
  opacity:.7;
  cursor:wait;
  pointer-events:none;
}
.mm-uploader.is-processing .mm-uploader-dropzone::after{
  content:"Optimiziranje fotografija...";
  margin-top:8px;
  color:var(--mm-accent);
  font-weight:800;
  font-size:13px;
}
.mm-uploader-item:first-child{
  border-color:var(--mm-accent);
  box-shadow:0 0 0 2px rgba(223,255,0,.10),0 12px 30px rgba(0,0,0,.24);
}


/* MotoMarket.ba — Upload V5: vidljiv napredak obrade */
.mm-upload-progress{
  margin-top:14px;
  padding:15px;
  border:1px solid #344048;
  border-radius:13px;
  background:#0a0f12;
}
.mm-upload-progress-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  margin-bottom:10px;
}
.mm-upload-progress-head strong{
  color:#eef2f4;
  font-size:13px;
}
.mm-upload-progress-head span{
  color:var(--mm-accent);
  font-size:12px;
  font-weight:900;
}
.mm-upload-progress-track{
  height:6px;
  overflow:hidden;
  border-radius:999px;
  background:#232d33;
}
.mm-upload-progress-track i{
  display:block;
  width:0;
  height:100%;
  border-radius:inherit;
  background:var(--mm-accent);
  transition:width .2s ease;
}
.mm-upload-progress-list{
  display:grid;
  gap:7px;
  max-height:210px;
  overflow:auto;
  margin-top:12px;
  padding-right:4px;
}
.mm-upload-progress-row{
  display:grid;
  grid-template-columns:30px minmax(0,1fr) auto;
  align-items:center;
  gap:9px;
  padding:8px 9px;
  border:1px solid #263139;
  border-radius:9px;
  background:#0d1316;
}
.mm-upload-progress-index{
  color:#738089;
  font-size:10px;
  font-weight:900;
}
.mm-upload-progress-name{
  overflow:hidden;
  color:#aeb8bd;
  font-size:11px;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.mm-upload-progress-status{
  color:#8b979e;
  font-size:10px;
  font-weight:800;
}
.mm-upload-progress-row[data-state="working"]{
  border-color:rgba(223,255,0,.18);
}
.mm-upload-progress-row[data-state="working"] .mm-upload-progress-status{
  color:var(--mm-accent);
}
.mm-upload-progress-row[data-state="success"] .mm-upload-progress-status{
  color:#9de65c;
}
.mm-upload-progress-row[data-state="error"]{
  border-color:rgba(255,90,100,.24);
}
.mm-upload-progress-row[data-state="error"] .mm-upload-progress-status{
  color:#ff929a;
}
.mm-upload-progress-row[data-state="skipped"] .mm-upload-progress-status{
  color:#f4bd54;
}
.mm-uploader.is-processing .mm-uploader-dropzone{
  opacity:.64;
}
@media(max-width:720px){
  .mm-upload-progress-row{
    grid-template-columns:24px minmax(0,1fr);
  }
  .mm-upload-progress-status{
    grid-column:2;
  }
}
