*{box-sizing:border-box}html,body{margin:0;background:#030304;color:#ddd;font-family:Arial,sans-serif}body{min-width:1180px;background:radial-gradient(circle at 50% 40%,#310000 0,#0b0000 28%,#030304 70%)}.nv-shell{width:1180px;min-height:760px;margin:auto;position:relative;padding:90px 18px 85px 180px}.nv-grid{display:grid;grid-template-columns:270px 390px 270px;gap:14px}.nv-box{background:linear-gradient(145deg,rgba(25,3,3,.96),rgba(5,5,6,.97));border:1px solid #8d2525;box-shadow:0 0 18px #520000,inset 0 0 20px #170000;padding:14px;margin-bottom:14px}.nv-box h2{margin:0 0 14px;color:#ff5555;font-size:16px;letter-spacing:2px}
.nv-controls{position:absolute;left:180px;right:18px;bottom:18px;height:60px;display:flex;align-items:center;justify-content:center;gap:42px;background:#080203;border:1px solid #7d2020}
.nv-controls span{display:flex;gap:7px;align-items:center;color:#ff6666}.nv-controls strong{width:52px;height:52px;border:2px solid #f33;border-radius:50%;display:grid;place-items:center;font-size:25px;color:#f55;box-shadow:0 0 18px #f00}
.nv-left,.nv-right{min-width:0}.nv-highlights{grid-column:1/2}.nv-highlights .nv-box{min-height:180px}.nv-box p{font-size:13px;line-height:1.45;padding:6px 0;margin:0;border-bottom:1px solid #241010}#listings{font-size:12px;max-height:170px;overflow:auto}
.nv-face{width:360px;height:360px;margin:25px auto 12px;border:2px solid #ff3030;border-radius:50%;display:grid;place-items:center;font-size:120px;color:#ff4040;background:radial-gradient(circle,#350000 0%,#100000 45%,#030303 72%);box-shadow:0 0 30px #f00,0 0 90px #700,inset 0 0 50px #700}
.nv-center header{margin-top:-75px;margin-bottom:15px}.nv-center header b{display:block;font-size:48px;letter-spacing:10px;color:#ff4545;text-shadow:0 0 12px #f00,0 0 30px #900}.nv-center header small{display:block;color:#aaa;letter-spacing:4px;margin-top:5px}
.nv-face{overflow:hidden}.nv-face img{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.nv-face img{width:185%;height:185%;max-width:none;object-fit:cover;object-position:center 38%}
.nv-face{border:0;border-radius:0;background:transparent;box-shadow:none;overflow:visible}.nv-face img{border-radius:0;clip-path:none}

/* NOVARES PORTRAIT FIT */
.nv-face img {
  width: 125%;
  height: 125%;
  max-width: none;
  object-fit: cover;
  object-position: center center;
}
.nv-face img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.nv-face img {
  width: 115% !important;
  height: 115% !important;
  max-width: none !important;
  object-fit: contain !important;
}


/* ===== NOVARES UI V2 ===== */
.nv-center header .nv-online{
  display:block;
  margin-top:6px;
  font-size:11px;
  font-weight:700;
  letter-spacing:3px;
  color:#ff4545;
  text-shadow:0 0 8px #f00;
}

/* ===== NOVARES UI V2 - OFFERS ===== */

.nv-highlights{
  grid-column:1 / 4;
  margin-top:18px;
}

.nv-highlights > .nv-box{
  min-height:260px;
  padding:18px;
}

.nv-highlights h2{
  margin-bottom:14px;
}

#listings{
  max-height:340px;
  overflow-y:auto;
  display:flex;
  flex-direction:column;
  gap:14px;
  padding-right:6px;
  scroll-snap-type:y proximity;
}

#listings .offer{
  width:100%;
  box-sizing:border-box;
  padding:16px;
  background:linear-gradient(135deg,rgba(35,5,5,.98),rgba(8,8,9,.98));
  border:1px solid #8d2525;
  border-radius:8px;
  box-shadow:inset 0 0 18px #170000,0 0 12px rgba(255,0,0,.16);
  font-size:14px;
  line-height:1.5;
  scroll-snap-align:start;
}

#listings .offer > strong{
  display:block;
  color:#fff;
  font-size:18px;
  margin-bottom:8px;
}

#listings .offer img{
  width:180px !important;
  height:120px !important;
  max-height:120px !important;
  object-fit:contain !important;
  float:left;
  margin:0 18px 10px 0 !important;
  background:#080808;
  border:1px solid #461515;
  border-radius:6px;
}

#listings .offer::after{
  content:"";
  display:block;
  clear:both;
}

#listings .offer button,
#listings .offer a{
  display:inline-block;
  margin:10px 8px 2px 0;
  padding:8px 13px;
  border:1px solid #b52b2b;
  border-radius:5px;
  background:#160606;
  color:#ff6666;
  font-weight:700;
  text-decoration:none;
  box-shadow:0 0 9px rgba(255,0,0,.18);
}

/* Phone layout */
@media (max-width:768px){
  .nv-highlights{
    grid-column:1 / 4;
  }

  .nv-highlights > .nv-box{
    min-height:250px;
  }

  #listings{
    max-height:360px;
  }

  #listings .offer{
    min-height:190px;
  }
}


/* NOVARES UI V2 - visible product image */
#listings .offer .offer-main-image{
  width:180px !important;
  height:120px !important;
  max-height:120px !important;
  object-fit:contain !important;
  float:left;
  margin:4px 18px 12px 0 !important;
  background:#080808;
  border:1px solid #461515;
  border-radius:6px;
}

/* ===== NOVARES UI V2 - CLEAN COMMAND CENTER ===== */

/* odstrani stari levi navigacijski meni */
.nv-nav{
  display:none !important;
}

/* NOVARES glava */
.nv-center header{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
}

/* SYSTEM ONLINE pod NOVARES */
.nv-center header .nv-online{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:max-content;
  margin:8px auto 0;
  padding:5px 13px;
  border:1px solid rgba(255,55,55,.55);
  border-radius:999px;
  background:rgba(40,0,0,.55);
  color:#ff6262;
  font-size:9px;
  font-weight:700;
  letter-spacing:2.5px;
  line-height:1;
  box-shadow:
    0 0 10px rgba(255,0,0,.20),
    inset 0 0 8px rgba(255,0,0,.10);
  text-shadow:0 0 7px rgba(255,0,0,.8);
}

/* priprava prostora po odstranitvi navigacije */
.nv-shell{
  padding-left:18px;
}



/* ===== NOVARES MOBILE V2 CLEAN ===== */
@media (max-width:768px){

  html,body{
    margin:0;
    width:100%;
    min-width:0 !important;
    overflow-x:hidden;
  }

  .nv-shell{
    width:100% !important;
    max-width:100% !important;
    min-height:0 !important;
    margin:0 !important;
    padding:12px !important;
    transform:none !important;
  }

  .nv-grid{
    display:flex !important;
    flex-direction:column !important;
    width:100% !important;
    gap:12px !important;
  }

  .nv-center{
    order:1;
    width:100% !important;
    text-align:center;
  }

  .nv-left{
    order:2;
    width:100% !important;
  }

  .nv-right{
    order:3;
    width:100% !important;
  }

  .nv-highlights{
    order:4;
    width:100% !important;
    margin-top:4px !important;
  }

  .nv-center header{
    margin:0 0 8px !important;
    text-align:center;
  }

  .nv-center header b{
    font-size:30px !important;
    letter-spacing:6px !important;
  }

  .nv-face{
    width:250px !important;
    height:250px !important;
    margin:6px auto 12px !important;
  }

  .nv-face img{
    width:100% !important;
    height:100% !important;
    max-width:100% !important;
    object-fit:contain !important;
    object-position:center !important;
  }

  .nv-box{
    min-height:0 !important;
    margin-bottom:10px !important;
    padding:14px !important;
  }

  #listings{
    display:flex !important;
    flex-direction:column !important;
    max-height:none !important;
    overflow:visible !important;
    gap:12px !important;
  }

  #listings .offer{
    width:100% !important;
    min-height:170px !important;
    overflow:hidden !important;
    padding:12px !important;
  }

  #listings .offer img,
  #listings .offer .offer-main-image{
    width:105px !important;
    height:120px !important;
    max-height:120px !important;
    object-fit:contain !important;
    float:left;
    margin:0 14px 8px 0 !important;
  }

  #listings .offer > strong{
    font-size:16px !important;
  }

  .nv-controls{
    position:relative !important;
    left:auto !important;
    right:auto !important;
    bottom:auto !important;
    width:100% !important;
    height:auto !important;
    margin-top:12px !important;
    padding:12px 4px !important;
    gap:12px !important;
    flex-wrap:wrap !important;
  }
}

/* ===== NOVARES MOBILE V2 - COMPACT OFFERS ===== */
@media (max-width:768px){

  .nv-highlights > .nv-box{
    padding:12px !important;
  }

  .nv-highlights h2{
    margin:0 0 10px !important;
    font-size:18px !important;
    letter-spacing:2px !important;
  }

  #listings{
    gap:10px !important;
  }

  #listings .offer{
    width:100% !important;
    min-height:145px !important;
    padding:10px !important;
    font-size:13px !important;
    line-height:1.35 !important;
    border-radius:7px !important;
  }

  #listings .offer > strong{
    display:block !important;
    font-size:15px !important;
    line-height:1.2 !important;
    margin:0 0 7px !important;
  }

  #listings .offer img,
  #listings .offer .offer-main-image{
    width:92px !important;
    height:105px !important;
    max-width:92px !important;
    max-height:105px !important;
    object-fit:contain !important;
    float:left !important;
    margin:0 12px 6px 0 !important;
  }

  #listings .offer button,
  #listings .offer a{
    display:inline-block !important;
    margin:7px 5px 0 0 !important;
    padding:7px 9px !important;
    font-size:10px !important;
    line-height:1.1 !important;
    border-radius:4px !important;
  }

  #listings .offer::after{
    content:"";
    display:block;
    clear:both;
  }
}

/* ===== NOVARES V2 COMPACT CORE ===== */
@media (max-width:768px){

  .nv-center header .nv-online{
    display:none !important;
  }

  .nv-center header{
    margin:0 !important;
    padding:4px 0 !important;
  }

  .nv-center header b{
    font-size:26px !important;
    letter-spacing:5px !important;
  }

  .nv-face{
    width:210px !important;
    height:210px !important;
    margin:2px auto 6px !important;
  }

  #flip-run-btn,
  #enableNovaresPush{
    appearance:none !important;
    background:linear-gradient(135deg,#250303,#0b0505) !important;
    color:#ff6666 !important;
    border:1px solid #b52b2b !important;
    border-radius:5px !important;
    padding:9px 13px !important;
    font-weight:700 !important;
    box-shadow:0 0 10px rgba(255,0,0,.18) !important;
  }
}

/* ===== NOVARES MOBILE V28 - COMPACT COMMAND CENTER ===== */
@media (max-width:768px){

  /* LEFT: System Status + Agents */
  .nv-left{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    align-items:start !important;
  }

  /* RIGHT: Live Activity + Notifications in 2 columns */
  .nv-right{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:8px !important;
    align-items:start !important;
  }

  /* Market Overview spans full width */
  .nv-right > .nv-box:last-child{
    grid-column:1 / -1 !important;
  }

  .nv-left .nv-box,
  .nv-right .nv-box{
    margin:0 !important;
    padding:10px !important;
    min-width:0 !important;
  }

  .nv-left .nv-box h2,
  .nv-right .nv-box h2{
    font-size:13px !important;
    letter-spacing:1.2px !important;
    margin:0 0 8px !important;
    white-space:nowrap;
  }

  .nv-left .nv-box p,
  .nv-right .nv-box p{
    font-size:11px !important;
    line-height:1.3 !important;
    padding:5px 0 !important;
    margin:0 !important;
    overflow-wrap:anywhere;
  }

  #flip-run-btn,
  #enableNovaresPush{
    width:100% !important;
    max-width:100% !important;
    padding:7px 5px !important;
    margin:5px 0 !important;
    font-size:9px !important;
    white-space:normal !important;
  }

  /* Highlights remains full width */
  .nv-highlights{
    width:100% !important;
  }
}

/* ===== NOVARES MOBILE V29 - NOTIFICATIONS ===== */
@media (max-width:768px){

  button[onclick="enableNovaresPush()"]{
    width:100% !important;
    appearance:none !important;
    background:linear-gradient(135deg,#250303,#0b0505) !important;
    color:#ff6666 !important;
    border:1px solid #b52b2b !important;
    border-radius:5px !important;
    padding:8px 5px !important;
    margin:4px 0 6px !important;
    font-size:9px !important;
    line-height:1.2 !important;
    font-weight:700 !important;
    box-shadow:0 0 10px rgba(255,0,0,.20) !important;
    white-space:normal !important;
  }

  #notifications{
    max-height:150px !important;
    overflow-y:auto !important;
    padding-right:3px !important;
  }

  #notifications p{
    font-size:10px !important;
    line-height:1.25 !important;
    padding:5px 0 !important;
  }

}

/* ===== NOVARES V30 - FINAL HIGHLIGHTS ===== */
@media (max-width:768px){

  .nv-highlights > .nv-box{
    padding:10px !important;
  }

  #listings .offer{
    min-height:0 !important;
    padding:10px !important;
    border-radius:7px !important;
  }

  #listings .offer > strong{
    display:block !important;
    font-size:14px !important;
    margin-bottom:7px !important;
  }

  #listings .offer img,
  #listings .offer .offer-main-image{
    width:90px !important;
    height:100px !important;
    max-width:90px !important;
    max-height:100px !important;
    object-fit:contain !important;
    float:left !important;
    margin:0 10px 7px 0 !important;
  }

  .offer-stats{
    display:grid !important;
    grid-template-columns:1fr 1fr !important;
    gap:4px 7px !important;
    font-size:11px !important;
    line-height:1.25 !important;
  }

  .offer-profit{
    color:#65e58a !important;
  }

  .offer-status{
    margin-top:6px !important;
    font-size:9px !important;
    color:#ff9a55 !important;
    font-weight:700 !important;
  }

  #listings .offer button,
  #listings .offer a{
    margin:7px 4px 0 0 !important;
    padding:6px 8px !important;
    font-size:9px !important;
  }

  #listings .offer::after{
    content:"";
    display:block;
    clear:both;
  }
}

/* ==================================================
   NOVARES V31 — COMMAND CENTER COMPOSITION
   ================================================== */

@media (max-width:768px){

  body{
    background:
      radial-gradient(circle at 50% 18%,rgba(90,0,0,.28),transparent 30%),
      linear-gradient(180deg,#020202 0%,#080000 48%,#020202 100%) !important;
  }

  .nv-shell{
    padding:10px 12px 90px !important;
  }

  /* CORE */
  .nv-center{
    margin-bottom:4px !important;
  }

  .nv-center header{
    border:1px solid rgba(180,45,45,.55);
    border-radius:9px;
    padding:7px 10px !important;
    background:rgba(8,8,8,.82);
    box-shadow:0 0 16px rgba(255,0,0,.10);
  }

  .nv-center header b{
    font-size:25px !important;
    letter-spacing:7px !important;
    text-shadow:0 0 8px #f00,0 0 20px rgba(255,0,0,.55);
  }

  .nv-face{
    width:205px !important;
    height:205px !important;
    margin:5px auto 8px !important;
  }

  /* COMMAND PANELS */
  .nv-left,
  .nv-right{
    gap:7px !important;
  }

  .nv-left .nv-box,
  .nv-right .nv-box{
    background:
      linear-gradient(145deg,rgba(25,3,3,.94),rgba(4,4,5,.97)) !important;
    border:1px solid #8d2525 !important;
    box-shadow:
      inset 0 0 15px rgba(130,0,0,.18),
      0 0 10px rgba(255,0,0,.10) !important;
    border-radius:3px !important;
  }

  .nv-left .nv-box h2,
  .nv-right .nv-box h2{
    color:#ff5d5d !important;
    text-shadow:0 0 7px rgba(255,0,0,.45);
  }

  /* MARKET compact */
  .nv-right > .nv-box:last-child{
    margin-top:0 !important;
  }

  .nv-right > .nv-box:last-child p{
    display:inline-block !important;
    width:32% !important;
    border-bottom:0 !important;
    text-align:center;
  }

  /* HIGHLIGHTS */
  .nv-highlights{
    margin-top:3px !important;
  }

  .nv-highlights > .nv-box{
    background:
      linear-gradient(145deg,rgba(18,2,2,.96),rgba(4,4,5,.98)) !important;
    border:1px solid #8d2525 !important;
    box-shadow:
      inset 0 0 20px rgba(120,0,0,.15),
      0 0 12px rgba(255,0,0,.10) !important;
  }

  /* BOTTOM COMMAND BAR */
  .nv-controls{
    position:fixed !important;
    left:12px !important;
    right:12px !important;
    bottom:10px !important;
    z-index:1000 !important;

    width:auto !important;
    min-height:54px !important;
    margin:0 !important;
    padding:6px 8px !important;

    display:flex !important;
    flex-wrap:nowrap !important;
    align-items:center !important;
    justify-content:space-around !important;
    gap:4px !important;

    background:rgba(5,3,4,.94) !important;
    border:1px solid #8d2525 !important;
    border-radius:7px !important;

    box-shadow:
      0 0 18px rgba(255,0,0,.20),
      inset 0 0 14px rgba(120,0,0,.16) !important;

    backdrop-filter:blur(8px);
  }

  .nv-controls span{
    flex:1 1 0 !important;
    display:flex !important;
    justify-content:center !important;
    align-items:center !important;
    gap:3px !important;
    font-size:8px !important;
    letter-spacing:.5px !important;
    white-space:nowrap !important;
    color:#ff8a8a !important;
  }

  .nv-controls span b{
    font-size:8px !important;
  }

  .nv-controls strong{
    flex:0 0 44px !important;
    width:44px !important;
    height:44px !important;
    border:2px solid #ff3333 !important;
    border-radius:50% !important;
    display:grid !important;
    place-items:center !important;

    color:#ff5555 !important;
    font-size:22px !important;

    background:
      radial-gradient(circle,#310000 0%,#100000 55%,#030303 100%) !important;

    box-shadow:
      0 0 12px #f00,
      0 0 25px rgba(255,0,0,.38),
      inset 0 0 12px rgba(255,0,0,.25) !important;
  }
}
