/* Production behavior and mobile hardening layered over the original index.html design. */
html,body{max-width:100%;overflow-x:hidden}.is-loading{opacity:.65;pointer-events:none}.button-spinner{display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;animation:mfSpin .7s linear infinite}@keyframes mfSpin{to{transform:rotate(360deg)}}
.api-error{padding:16px;border:1px solid var(--red);border-radius:14px;background:color-mix(in srgb,var(--red) 10%,var(--card));color:var(--text)}.muted{color:var(--muted)}.stack{display:grid;gap:12px}.inline-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}.grow{flex:1;min-width:0}.hidden{display:none!important}
.card-body[data-open]{cursor:pointer}.card.prime-listing{border-color:#f5c451;box-shadow:0 0 0 1px rgba(245,196,81,.32),0 12px 32px rgba(25,31,42,.12)}.listing-status{font-size:10px;font-weight:900;text-transform:uppercase}.listing-status.pending{color:var(--orange)}.listing-status.rejected{color:var(--red)}
.image-gallery{display:grid;gap:10px}.image-main{position:relative;aspect-ratio:4/3;background:#171b21;border-radius:16px;overflow:hidden}.image-main img{width:100%;height:100%;object-fit:contain}.image-thumbs{display:grid;grid-template-columns:repeat(5,1fr);gap:8px}.image-thumb{border:2px solid transparent;border-radius:10px;overflow:hidden;aspect-ratio:4/3;padding:0;background:#171b21}.image-thumb.active{border-color:var(--blue)}.image-thumb img{width:100%;height:100%;object-fit:cover}.safe-location-note{margin-top:12px;padding:11px 13px;border:1px solid var(--border);border-radius:12px;color:var(--muted);font-size:12px}
.mf-screen{position:fixed;inset:0;z-index:120;background:var(--bg);overflow:auto;color:var(--text)}.mf-screen-close{position:fixed;right:18px;top:16px;z-index:140;width:42px;height:42px;border-radius:50%;border:1px solid var(--border);background:var(--card);color:var(--text);font-size:24px}.mf-v12-profile-page{padding:26px clamp(14px,3vw,42px) 60px;max-width:1500px;margin:auto}.mf-v12-profile-wheel img,.mf-v12-owner-avatar img,.mf-v12-avatar img{width:100%;height:100%;object-fit:cover;border-radius:50%}
.mf-table-scroll{overflow:auto;max-width:100%}.mf-table-scroll table{min-width:760px}.admin-action-row{display:flex;gap:7px;flex-wrap:wrap}.admin-card-list{display:grid;gap:10px}.admin-card{border:1px solid var(--mf12-line,var(--border));border-radius:14px;padding:14px;background:var(--mf12-panel2,var(--card));display:flex;gap:12px;justify-content:space-between;align-items:center}.admin-card small{display:block;color:var(--mf12-muted,var(--muted));margin-top:4px}.admin-card .admin-action-row{justify-content:flex-end}
.auth-links{display:flex;gap:8px;justify-content:space-between;align-items:center;margin-top:9px}.link-btn{border:0;background:none;color:var(--blue);padding:4px;font-weight:800}.form-hint{font-size:11px;color:var(--muted)}.form-error{color:var(--red);font-size:12px;font-weight:750}.success-box{padding:14px;border-radius:12px;background:color-mix(in srgb,var(--green) 14%,var(--card));border:1px solid color-mix(in srgb,var(--green) 35%,var(--border))}
.conversation-list{display:grid;gap:9px}.conversation-item{width:100%;border:1px solid var(--border);border-radius:13px;background:var(--card);color:var(--text);padding:12px;text-align:left}.conversation-item.active{border-color:var(--blue);box-shadow:0 0 0 3px rgba(49,107,255,.1)}.conversation-item b,.conversation-item small{display:block}.unread-pill{display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 6px;border-radius:99px;background:var(--red);color:#fff;font-size:10px;font-weight:900}
.photo-preview-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:9px}.photo-preview{position:relative;aspect-ratio:4/3;border:1px solid var(--border);border-radius:12px;overflow:hidden;background:var(--bg)}.photo-preview img{width:100%;height:100%;object-fit:cover}.photo-preview button{position:absolute;top:5px;right:5px;width:29px;height:29px;border:0;border-radius:50%;background:rgba(0,0,0,.7);color:#fff}.upload-note{font-size:11px;color:var(--muted)}
#mf-notify-layer.open{display:grid}.mf-notify-layer{display:none}.no-results{grid-column:1/-1}.role-owner{color:#f5c451}.role-admin{color:#7da2ff}.role-moderator{color:#b982ff}
@media(max-width:760px){
  .wrap{width:min(100% - 24px,1420px)}.header-row{height:64px;gap:8px}.logo{font-size:17px}.logo-mark{width:34px;height:34px}.top-search{display:none}.header-tools{gap:5px}.header-tools select{display:none}.header-tools .wide{max-width:92px;padding:0 8px;overflow:hidden}.sell-btn{display:none}.subnav{height:39px;gap:16px}.hero-grid{min-height:auto;grid-template-columns:1fr;padding:45px 0 82px;gap:24px}.hero h1{font-size:clamp(36px,11vw,52px)}.hero p{font-size:16px}.hero-art{min-height:300px}.wheel-stage{width:min(310px,86vw)}.hs1{left:0}.hs2{right:0}.search-card{grid-template-columns:1fr 1fr;margin-top:-48px;padding:12px}.search-card label{border-right:0;border-bottom:1px solid var(--border);padding:5px 8px}.search-card .primary{grid-column:1/-1}.section{padding-top:48px}.section-head{align-items:flex-start;flex-direction:column}.section-head h2{font-size:27px}.market-tools{width:100%}.market-tools>*{flex:1}.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.card-body{padding:12px}.price{font-size:19px}.card-title{font-size:13px}.meta{word-break:break-word}.chip-grid{grid-template-columns:repeat(2,1fr)}.safety-grid{grid-template-columns:1fr}.cta{padding:28px 22px;display:grid;gap:18px}.cta h2{font-size:28px}.footer-grid{grid-template-columns:1fr 1fr}.modal{padding:0;align-items:end}.modal-card{width:100%;max-height:95dvh;border-radius:20px 20px 0 0}.modal-content{padding:22px 14px 28px}.detail-grid,.auth-wrap,.chat-layout,.admin-grid{grid-template-columns:1fr}.chat-sidebar{border-right:0;border-bottom:1px solid var(--border);max-height:180px}.form-grid{grid-template-columns:1fr}.field.full{grid-column:auto}.stats-row{grid-template-columns:1fr 1fr}.photo-grid,.photo-preview-grid{grid-template-columns:repeat(2,1fr)}.detail-actions>*{flex:1}.image-thumbs{grid-template-columns:repeat(5,minmax(0,1fr))}.mf-screen-close{right:10px;top:10px}.mf-v12-profile-page{padding:60px 12px 88px}.admin-card{align-items:flex-start;flex-direction:column}.admin-card .admin-action-row{justify-content:flex-start}.mf-table-scroll{margin-inline:-8px;padding-inline:8px}.compare-bar{bottom:82px;width:calc(100% - 24px);justify-content:center;flex-wrap:wrap}
}
@media(min-width:360px) and (max-width:430px){
  .wrap{width:calc(100% - 20px)}.header-row{gap:5px}.logo span:last-child{font-size:14px;letter-spacing:.04em}.logo-mark{width:31px;height:31px}.icon-btn,.ghost-btn{height:38px;min-width:38px}.header-tools .wide{max-width:76px;font-size:12px}.hero-grid{padding-top:36px}.hero-actions{display:grid;grid-template-columns:1fr 1fr}.hero-actions button{padding-inline:9px}.hero-stat{padding:8px 10px}.hero-stat b{font-size:15px}.search-card{grid-template-columns:1fr}.search-card .primary{grid-column:auto}.listing-grid{grid-template-columns:1fr}.chip-grid{grid-template-columns:1fr 1fr}.footer-grid{grid-template-columns:1fr}.footer-grid>div:not(:first-child){display:none}.mobile-nav{padding-inline:4px}.mobile-nav button{min-width:0;font-size:9px}.mobile-nav button span{font-size:18px}.modal-content{padding-inline:12px}.stats-row{gap:7px}.stat-card{padding:11px}.stat-card b{font-size:18px}.detail-row{gap:10px}.detail-row b{text-align:right}.mf-v12-profile-metrics{grid-template-columns:1fr 1fr!important}.mf-v12-profile-top{grid-template-columns:1fr!important}.mf-v12-profile-grid{grid-template-columns:1fr!important}.mf-v12-admin-topbar{padding-right:58px!important}.mf-v12-top-actions{display:none!important}
}

/* MF WALLET & PROMOTIONS */
.mf-wallet-page {
  display: grid;
  gap: 20px;
}

.mf-wallet-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 10%, rgba(255,80,80,.16), transparent 34%),
    linear-gradient(145deg, rgba(22,29,45,.98), rgba(9,14,24,.98));
}

.mf-wallet-hero h3 {
  margin: 8px 0;
  font-size: clamp(30px, 6vw, 48px);
}

.mf-wallet-hero p,
.mf-wallet-section header p {
  margin: 0;
  opacity: .72;
}

.mf-wallet-prime {
  min-width: 170px;
  padding: 18px;
  border: 1px solid rgba(255,215,100,.25);
  border-radius: 18px;
  background: rgba(255,205,70,.08);
}

.mf-wallet-prime span,
.mf-wallet-prime small {
  display: block;
  opacity: .75;
}

.mf-wallet-prime strong {
  display: block;
  margin: 5px 0;
  font-size: 28px;
}

.mf-wallet-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.mf-wallet-pricing article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
}

.mf-wallet-pricing article > span {
  font-size: 27px;
}

.mf-wallet-pricing h4,
.mf-wallet-pricing p {
  margin: 0;
}

.mf-wallet-pricing p {
  margin-top: 4px;
  font-size: 13px;
  opacity: .68;
}

.mf-wallet-section {
  padding: 20px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(255,255,255,.025);
}

.mf-wallet-section h3 {
  margin: 0 0 5px;
}

.mf-wallet-topup-form {
  display: flex;
  align-items: end;
  gap: 12px;
  margin-top: 18px;
}

.mf-wallet-topup-form label {
  display: grid;
  flex: 1;
  gap: 7px;
}

.mf-wallet-topup-form input {
  width: 100%;
}

.mf-wallet-list {
  display: grid;
  gap: 10px;
  margin-top: 15px;
}

.mf-wallet-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(0,0,0,.12);
}

.mf-wallet-row > div {
  display: grid;
  gap: 4px;
}

.mf-wallet-row > div:last-child {
  justify-items: end;
  text-align: right;
}

.mf-wallet-row small {
  opacity: .68;
}

.mf-wallet-row strong.credit {
  color: #65d895;
}

.mf-wallet-row strong.debit {
  color: #ff8b8b;
}

.mf-wallet-status {
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 11px;
  text-transform: uppercase;
}

.mf-wallet-status.active {
  background: rgba(75,210,130,.14);
  color: #70e0a2;
}

.mf-wallet-status.expired,
.mf-wallet-status.cancelled {
  background: rgba(255,255,255,.08);
  opacity: .7;
}

.mf-wallet-empty {
  padding: 18px;
  text-align: center;
  opacity: .62;
}

.mf-payment-instructions {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.mf-payment-instructions span {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.mf-promote-button {
  border: 1px solid rgba(255,190,60,.35);
  background: rgba(255,190,60,.1);
  color: #ffd780;
}

.mf-promote-button:disabled {
  cursor: default;
  opacity: .58;
}

.mf-promotion-badge {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
}

.mf-promotion-badge.top {
  color: #ffd476;
  background: rgba(255,190,40,.13);
}

.mf-promotion-badge.priority {
  color: #82c9ff;
  background: rgba(70,160,255,.13);
}

.mf-promotion-dialog {
  max-width: 620px;
}

.mf-promotion-options {
  display: grid;
  gap: 11px;
  margin: 18px 0;
}

.mf-promotion-options label {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 16px;
  cursor: pointer;
}

.mf-promotion-options label:has(input:checked) {
  border-color: rgba(255,85,85,.55);
  background: rgba(255,70,70,.08);
}

.mf-promotion-options span {
  display: grid;
  gap: 4px;
}

.mf-promotion-options small {
  opacity: .7;
}

@media (max-width: 760px) {
  .mf-wallet-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .mf-wallet-prime {
    width: 100%;
  }

  .mf-wallet-pricing {
    grid-template-columns: 1fr;
  }

  .mf-wallet-pricing article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .mf-wallet-pricing article > strong {
    grid-column: 2;
  }

  .mf-wallet-topup-form {
    align-items: stretch;
    flex-direction: column;
  }

  .mf-wallet-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .mf-wallet-row > div:last-child {
    justify-items: start;
    text-align: left;
  }

  .mf-payment-instructions span {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }
}

/* Pouzdano zatvaranje punog ekrana */
.mf-screen-close {
  z-index: 2147483647 !important;
  pointer-events: auto !important;
  touch-action: manipulation;
  cursor: pointer;
}

/* ==========================================================
   MOJ NALOG — PREMIUM FULLSCREEN REDESIGN
   ========================================================== */

.mf-account-screen {
  --mf-account-bg: #07101f;
  --mf-account-card: #0c1729;
  --mf-account-card-2: #101d31;
  --mf-account-line: rgba(126, 157, 210, .15);
  --mf-account-muted: #8490a7;
  --mf-account-blue: #2675ff;
  --mf-account-purple: #6e36ff;
  --mf-account-gold: #ffc529;

  background:
    radial-gradient(
      circle at 50% -10%,
      rgba(31, 91, 190, .15),
      transparent 37%
    ),
    linear-gradient(
      180deg,
      #07101f 0%,
      #081321 52%,
      #07101d 100%
    );
}

.mf-account-screen > .mf-screen-close {
  position: fixed;
  top: 15px;
  right: max(15px, calc((100vw - 900px) / 2 + 15px));
  z-index: 2147483647;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(153, 171, 204, .18);
  border-radius: 50%;
  background: rgba(18, 29, 48, .94);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .26),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #dce6fa;
  pointer-events: auto;
  touch-action: manipulation;
  cursor: pointer;
}

.mf-account-shell {
  position: relative;
  isolation: isolate;
  width: min(100%, 900px);
  min-height: 100dvh;
  margin: 0 auto;
  padding:
    15px
    clamp(12px, 3vw, 24px)
    110px;
  overflow: hidden;
}

.mf-account-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  gap: 14px;
  align-items: center;
  padding-right: 54px;
}

.mf-account-back,
.mf-account-avatar,
.mf-account-name {
  border: 0;
  color: inherit;
}

.mf-account-back {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(153, 171, 204, .18);
  border-radius: 50%;
  background: rgba(18, 29, 48, .94);
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .2),
    inset 0 1px 0 rgba(255,255,255,.05);
  color: #dce6fa;
  font-size: 23px;
  cursor: pointer;
}

.mf-account-identity {
  min-width: 0;
  padding-top: 42px;
}

.mf-account-identity > span {
  display: block;
  margin-bottom: 6px;
  color: #538dff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .16em;
}

.mf-account-name {
  display: block;
  max-width: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  font-size: clamp(26px, 5vw, 35px);
  font-weight: 900;
  line-height: 1.05;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.mf-account-avatar {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-top: 42px;
  padding: 0;
  border-radius: 50%;
  background:
    linear-gradient(
      145deg,
      #3b8cff,
      #6435ff 72%
    );
  box-shadow:
    0 10px 30px rgba(40, 91, 255, .25),
    inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
}

.mf-account-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mf-account-tabs::-webkit-scrollbar {
  display: none;
}

.mf-account-tabs button {
  min-width: 0;
  height: 44px;
  padding: 0 10px;
  border: 1px solid rgba(126, 157, 210, .09);
  border-radius: 13px;
  background: rgba(16, 28, 47, .82);
  color: #aab5ca;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
  cursor: pointer;
}

.mf-account-tabs button span {
  margin-right: 7px;
  opacity: .84;
}

.mf-account-tabs button.active {
  border-color: rgba(72, 133, 255, .65);
  background:
    linear-gradient(
      145deg,
      #2687ff,
      #164edc
    );
  box-shadow:
    0 9px 24px rgba(25, 102, 255, .34),
    inset 0 1px 0 rgba(255,255,255,.22);
  color: #fff;
}

.mf-account-content {
  position: relative;
  z-index: 2;
  margin-top: 15px;
}

.mf-account-loading {
  display: flex;
  justify-content: center;
  gap: 10px;
  padding: 60px 20px;
  color: var(--mf-account-muted);
}

.mf-account-overview {
  display: grid;
  gap: 15px;
}

.mf-account-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 13px 5px;
  border: 1px solid var(--mf-account-line);
  border-radius: 16px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 29, 49, .97),
      rgba(10, 23, 40, .97)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 18px 45px rgba(0,0,0,.12);
}

.mf-account-summary-card {
  display: grid;
  grid-template-columns: 39px minmax(0, 1fr);
  gap: 9px;
  align-items: center;
  min-width: 0;
  padding: 5px 13px;
  border: 0;
  border-right: 1px solid rgba(132, 159, 205, .11);
  background: transparent;
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.mf-account-summary-card:last-child {
  border-right: 0;
}

.mf-account-summary-icon {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 50%;
  background: rgba(90, 41, 180, .25);
  color: #a46cff;
  font-size: 20px;
}

.mf-account-summary-card.prime .mf-account-summary-icon {
  background: rgba(166, 112, 0, .22);
  color: var(--mf-account-gold);
}

.mf-account-summary-card.wallet .mf-account-summary-icon {
  background: rgba(17, 109, 180, .2);
  color: #32b4ff;
}

.mf-account-summary-card small,
.mf-account-summary-card strong,
.mf-account-summary-card em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-account-summary-card small {
  color: #a2aec2;
  font-size: 10px;
}

.mf-account-summary-card strong {
  margin-top: 2px;
  font-size: 14px;
  font-style: normal;
}

.mf-account-summary-card.prime strong {
  display: inline-block;
  width: fit-content;
  margin-top: 5px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(185, 122, 0, .25);
  color: #ffcb37;
  font-size: 9px;
  text-transform: uppercase;
}

.mf-account-summary-card em {
  margin-top: 2px;
  color: #3790ff;
  font-size: 9px;
  font-style: normal;
}

.mf-account-conversations-card {
  padding: 13px;
  border: 1px solid var(--mf-account-line);
  border-radius: 16px;
  background:
    linear-gradient(
      150deg,
      rgba(14, 28, 47, .98),
      rgba(9, 21, 37, .98)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 20px 50px rgba(0,0,0,.14);
}

.mf-account-conversations-card > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 2px 11px;
}

.mf-account-conversations-card h3,
.mf-account-quick-section h3 {
  margin: 0;
  font-size: 14px;
}

.mf-account-conversations-card > header button {
  border: 0;
  background: transparent;
  color: #548fff;
  font-size: 10px;
  cursor: pointer;
}

.mf-account-latest-conversation {
  display: grid;
  grid-template-columns:
    7px
    43px
    minmax(0, 1fr)
    auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 12px 10px;
  border: 1px solid rgba(126, 157, 210, .1);
  border-radius: 13px;
  background: rgba(9, 20, 35, .68);
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.mf-account-unread-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.mf-account-unread-dot.active {
  background: #27a0ff;
  box-shadow: 0 0 12px rgba(39, 160, 255, .75);
}

.mf-account-conversation-avatar {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border-radius: 13px;
  background:
    linear-gradient(
      145deg,
      #438dff,
      #6938ff
    );
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.mf-account-conversation-body {
  min-width: 0;
}

.mf-account-conversation-top {
  display: flex;
  gap: 7px;
  align-items: center;
  min-width: 0;
}

.mf-account-conversation-top strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-account-conversation-top em {
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(55, 90, 174, .22);
  color: #7095ff;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
}

.mf-account-conversation-top em.prime {
  background: rgba(162, 106, 0, .22);
  color: #ffc82e;
}

.mf-account-conversation-top time {
  margin-left: auto;
  color: #79859a;
  font-size: 8px;
}

.mf-account-conversation-body > b,
.mf-account-conversation-body > small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mf-account-conversation-body > b {
  margin-top: 6px;
  font-size: 10px;
}

.mf-account-conversation-body > small {
  margin-top: 4px;
  color: #8995aa;
  font-size: 9px;
}

.mf-account-unread-count {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #2777ff;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.mf-account-chat-empty {
  display: grid;
  justify-items: center;
  padding: 14px 10px 0;
  text-align: center;
}

.mf-account-chat-empty > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #275caf;
  border-radius: 11px;
  color: #2f8cff;
  font-size: 20px;
}

.mf-account-chat-empty p {
  margin: 9px 0 11px;
  color: #8894a9;
  font-size: 9px;
  line-height: 1.55;
}

.mf-account-chat-empty .primary {
  min-width: 115px;
  height: 34px;
  padding: 0 20px;
  border-radius: 9px;
  font-size: 10px;
}

.mf-account-no-conversation {
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 18px;
  color: #8995aa;
  text-align: center;
}

.mf-account-no-conversation > span {
  color: #388dff;
  font-size: 24px;
}

.mf-account-quick-section {
  padding-top: 1px;
}

.mf-account-quick-section > h3 {
  margin: 0 0 9px 8px;
  color: #dce5f5;
  font-size: 11px;
}

.mf-account-quick-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mf-account-quick-grid > button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  min-width: 0;
  min-height: 66px;
  padding: 11px;
  border: 1px solid var(--mf-account-line);
  border-radius: 14px;
  background:
    linear-gradient(
      140deg,
      rgba(15, 29, 49, .97),
      rgba(10, 22, 38, .97)
    );
  color: #fff;
  text-align: left;
  cursor: pointer;
}

.mf-account-quick-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(49, 115, 255, .24);
  border-radius: 12px;
  background: rgba(28, 75, 148, .15);
  color: #538bff;
  font-size: 22px;
}

.mf-account-quick-icon.prime {
  border-color: rgba(255, 190, 32, .18);
  background: rgba(154, 103, 0, .15);
  color: #ffcb2f;
}

.mf-account-quick-grid b,
.mf-account-quick-grid small {
  display: block;
}

.mf-account-quick-grid b {
  font-size: 11px;
}

.mf-account-quick-grid small {
  margin-top: 3px;
  color: #8995aa;
  font-size: 8px;
  line-height: 1.35;
}

.mf-account-quick-grid em {
  color: #778399;
  font-size: 21px;
  font-style: normal;
}

.mf-account-wheel {
  position: absolute;
  z-index: 0;
  right: -60px;
  bottom: -120px;
  width: 380px;
  opacity: .16;
  pointer-events: none;
  filter:
    saturate(1.25)
    contrast(1.05)
    drop-shadow(0 0 35px rgba(25, 99, 255, .3));
}

.mf-account-wheel img {
  display: block;
  width: 100%;
}

.mf-account-screen .mf-my-listings,
.mf-account-screen .mf-wallet-page,
.mf-account-screen .mf-private-chat,
.mf-account-screen #account-content > form {
  position: relative;
  z-index: 2;
}

.mf-account-screen .mf-my-listings,
.mf-account-screen .mf-wallet-section,
.mf-account-screen .mf-wallet-hero,
.mf-account-screen .chat-sidebar,
.mf-account-screen .chat-main {
  border-color: var(--mf-account-line);
  background-color: rgba(10, 23, 40, .94);
}

.mf-profile-editor {
  max-width: 680px;
}

/* Tablet i desktop */
@media (min-width: 761px) {
  .mf-account-shell {
    padding-top: 24px;
  }

  .mf-account-header {
    grid-template-columns: 48px minmax(0, 1fr) 56px;
  }

  .mf-account-back {
    width: 48px;
    height: 48px;
  }

  .mf-account-avatar {
    width: 56px;
    height: 56px;
  }

  .mf-account-tabs {
    margin-top: 34px;
  }

  .mf-account-tabs button {
    height: 50px;
    font-size: 13px;
  }

  .mf-account-summary {
    padding: 18px 10px;
  }

  .mf-account-summary-card {
    min-height: 70px;
    padding-inline: 22px;
  }

  .mf-account-summary-card strong {
    font-size: 18px;
  }

  .mf-account-conversations-card {
    padding: 20px;
  }

  .mf-account-latest-conversation {
    padding: 16px;
  }

  .mf-account-chat-empty {
    padding-block: 28px 8px;
  }

  .mf-account-quick-grid > button {
    min-height: 82px;
    padding: 15px;
  }

  .mf-account-quick-grid b {
    font-size: 13px;
  }

  .mf-account-quick-grid small {
    font-size: 10px;
  }
}

/* Telefon — raspored kao na referentnoj slici */
@media (max-width: 760px) {
  .mf-account-shell {
    width: 100%;
    padding:
      8px
      11px
      calc(95px + env(safe-area-inset-bottom));
  }

  .mf-account-screen > .mf-screen-close {
    top: 8px;
    right: 15px;
    width: 42px;
    height: 42px;
  }

  .mf-account-header {
    padding-right: 53px;
  }

  .mf-account-identity {
    padding-top: 50px;
  }

  .mf-account-avatar {
    margin-top: 50px;
  }

  .mf-account-tabs {
    grid-template-columns: repeat(4, minmax(84px, 1fr));
    margin-top: 25px;
  }

  .mf-account-tabs button[data-account-tab="admin"] {
    display: none;
  }

  .mf-account-summary-card {
    grid-template-columns: 34px minmax(0, 1fr);
    padding: 5px 9px;
  }

  .mf-account-summary-icon {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }

  .mf-account-summary-card strong {
    font-size: 13px;
  }

  .mf-account-latest-conversation {
    grid-template-columns:
      6px
      39px
      minmax(0, 1fr)
      auto;
    padding-inline: 7px;
  }

  .mf-account-conversation-avatar {
    width: 39px;
    height: 39px;
  }

  .mf-account-quick-grid > button {
    min-height: 64px;
  }

  .mf-account-wheel {
    right: -100px;
    bottom: -145px;
    width: 340px;
  }

  .mf-account-screen .chat-layout {
    grid-template-columns: 1fr;
  }

  .mf-account-screen .chat-sidebar {
    max-height: none;
  }
}

@media (max-width: 390px) {
  .mf-account-summary-card {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 6px;
    padding-inline: 6px;
  }

  .mf-account-summary-icon {
    width: 30px;
    height: 30px;
  }

  .mf-account-summary-card small {
    font-size: 8px;
  }

  .mf-account-summary-card strong {
    font-size: 11px;
  }

  .mf-account-quick-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Account navigacija — pravilno poravnanje svih tabova */
.mf-account-tabs {
  display: flex;
  grid-template-columns: none;
  align-items: stretch;
  gap: 8px;
}

.mf-account-tabs button {
  display: flex;
  flex: 1 1 0;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 0 7px;
  line-height: 1.15;
  text-align: center;
}

.mf-account-tabs button span {
  flex: 0 0 auto;
  margin-right: 0;
}

/* Admin panel je vidljiv za Owner, Admin i Moderator naloge */
.mf-account-tabs button[data-account-tab="admin"] {
  display: flex !important;
}

@media (max-width: 760px) {
  .mf-account-tabs {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    padding-bottom: 2px;
  }

  .mf-account-tabs button {
    flex: 0 0 92px;
    min-width: 92px;
    height: 44px;
    padding: 0 5px;
    font-size: 10px;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .mf-account-tabs button[data-account-tab="listings"] {
    flex-basis: 98px;
    min-width: 98px;
  }

  .mf-account-tabs button[data-account-tab="admin"] {
    flex-basis: 100px;
    min-width: 100px;
  }
}


/* Ispravno zaglavlje naloga */
.mf-account-header {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 48px;
  grid-template-rows: 42px auto;
  gap: 18px 14px;
  align-items: center;
  min-height: 122px;
  padding: 10px 54px 0 0;
}

.mf-account-back {
  position: static;
  grid-column: 1;
  grid-row: 1;
  width: 42px;
  height: 42px;
  margin: 0;
}

.mf-account-identity {
  grid-column: 1 / 3;
  grid-row: 2;
  min-width: 0;
  padding-top: 0;
}

.mf-account-name {
  width: 100%;
  max-width: none;
  overflow: visible;
  text-overflow: clip;
}

.mf-account-avatar {
  grid-column: 3;
  grid-row: 2;
  width: 48px;
  height: 48px;
  margin: 0;
  justify-self: end;
}

.mf-account-screen > .mf-screen-close {
  position: fixed;
  top: 20px !important;
  right: max(14px, calc((100vw - 900px) / 2 + 14px)) !important;
  width: 42px !important;
  height: 42px !important;
}

@media (max-width: 760px) {
  .mf-account-header {
    grid-template-columns: 42px minmax(0, 1fr) 48px;
    grid-template-rows: 42px auto;
    gap: 17px 14px;
    min-height: 122px;
    padding: 10px 54px 0 0;
  }

  .mf-account-back {
    position: static;
    grid-column: 1;
    grid-row: 1;
    left: auto;
    top: auto !important;
  }

  .mf-account-identity {
    grid-column: 1 / 3;
    grid-row: 2;
    padding-top: 0;
  }

  .mf-account-avatar {
    grid-column: 3;
    grid-row: 2;
    margin: 0;
  }

  .mf-account-screen > .mf-screen-close {
    top: 18px !important;
    right: 14px !important;
  }
}

/* Jedinstveni korisnički avatari */
.mf-account-avatar {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16);
  background: #255bdb;
}

.mf-account-avatar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 30% 20%,
      rgba(255,255,255,.28),
      transparent 34%
    );
  pointer-events: none;
}

.mf-account-avatar > span {
  position: relative;
  z-index: 1;
  font-size: 22px;
  line-height: 1;
  text-shadow: 0 2px 8px rgba(0,0,0,.28);
}

.mf-account-avatar.blue {
  background: linear-gradient(145deg, #2388ff, #1745d5);
}

.mf-account-avatar.purple {
  background: linear-gradient(145deg, #8a55ff, #5126d9);
}

.mf-account-avatar.cyan {
  background: linear-gradient(145deg, #17bde8, #1765d3);
}

.mf-account-avatar.green {
  background: linear-gradient(145deg, #27cc89, #08744f);
}

.mf-account-avatar.orange {
  background: linear-gradient(145deg, #ff9d32, #d44a16);
}

.mf-account-avatar.pink {
  background: linear-gradient(145deg, #ff5ba8, #a92bd1);
}

.mf-account-avatar.indigo {
  background: linear-gradient(145deg, #6575ff, #3424c5);
}

.mf-account-avatar.teal {
  background: linear-gradient(145deg, #20c9b5, #087a8e);
}

.mf-account-avatar.gold {
  background: linear-gradient(145deg, #ffd45a, #c57a00);
  color: #201500;
}

.mf-account-avatar.red {
  background: linear-gradient(145deg, #ff6262, #a41635);
}

/* Promo tab u account navigaciji */
.mf-account-tabs .mf-tab-promo {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(70, 132, 255, .35);
  background:
    linear-gradient(
      145deg,
      rgba(16, 35, 66, .95),
      rgba(9, 22, 42, .95)
    );
  color: #dce9ff;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 8px 24px rgba(0,0,0,.16);
}

.mf-account-tabs .mf-tab-promo span {
  color: #6eb4ff;
}

.mf-account-tabs .mf-tab-promo::before {
  content: "";
  position: absolute;
  top: -30%;
  left: -55%;
  width: 38%;
  height: 170%;
  transform: rotate(18deg);
  background:
    linear-gradient(
      90deg,
      rgba(255,255,255,0) 0%,
      rgba(255,255,255,.06) 25%,
      rgba(180, 220, 255, .30) 50%,
      rgba(255,255,255,.08) 75%,
      rgba(255,255,255,0) 100%
    );
  pointer-events: none;
  animation: mfPromoSweep 2s linear infinite;
  filter: blur(.4px);
}

.mf-account-tabs .mf-tab-promo::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255,255,255,.08),
      transparent 35%
    );
  pointer-events: none;
}

.mf-account-tabs .mf-tab-promo.active {
  border-color: rgba(77, 141, 255, .78);
  background:
    linear-gradient(
      145deg,
      #267fff,
      #184fdf
    );
  color: #fff;
  box-shadow:
    0 10px 28px rgba(37, 109, 255, .34),
    inset 0 1px 0 rgba(255,255,255,.22);
}

.mf-account-tabs .mf-tab-promo.active span {
  color: #ffffff;
}

@keyframes mfPromoSweep {
  0% {
    left: -55%;
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  45% {
    opacity: 1;
  }
  55% {
    left: 125%;
    opacity: 0;
  }
  100% {
    left: 125%;
    opacity: 0;
  }
}

/* Avatar uredno desno ispod X */
.mf-account-header {
  position: relative;
  display: block;
  min-height: 132px;
  padding: 14px 70px 0 0;
}

.mf-account-back {
  position: absolute;
  top: 14px;
  left: 0;
}

.mf-account-identity {
  position: absolute;
  left: 0;
  bottom: 0;
  right: 110px;
  padding: 0;
}

.mf-account-avatar {
  position: absolute;
  top: 68px;
  right: 0;
  width: 48px;
  height: 48px;
  margin: 0;
}

.mf-account-screen > .mf-screen-close {
  top: 14px !important;
  right: max(14px, calc((100vw - 900px) / 2 + 14px)) !important;
}

@media (max-width: 760px) {
  .mf-account-header {
    min-height: 132px;
    padding-right: 64px;
  }

  .mf-account-back {
    top: 12px;
    left: 0;
  }

  .mf-account-identity {
    right: 92px;
  }

  .mf-account-avatar {
    top: 66px;
    right: 0;
    width: 48px;
    height: 48px;
  }

  .mf-account-screen > .mf-screen-close {
    top: 12px !important;
    right: 12px !important;
  }
}

/* ==========================================================
   WALLET / PROMOCIJE — PREMIUM REDIZAJN
   ========================================================== */

.mf-account-screen .mf-wallet-page {
  display: grid;
  gap: 14px;
}

.mf-account-screen .mf-wallet-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px;
  overflow: hidden;
  border: 1px solid rgba(74, 126, 230, .22);
  border-radius: 20px;
  background:
    radial-gradient(
      circle at 90% 10%,
      rgba(139, 54, 255, .18),
      transparent 36%
    ),
    radial-gradient(
      circle at 10% 0%,
      rgba(33, 119, 255, .14),
      transparent 34%
    ),
    linear-gradient(
      145deg,
      rgba(14, 29, 51, .98),
      rgba(8, 20, 37, .98)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.04),
    0 18px 46px rgba(0,0,0,.16);
}

.mf-account-screen .mf-wallet-hero::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -75px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle,
      rgba(62, 115, 255, .13),
      transparent 68%
    );
  pointer-events: none;
}

.mf-account-screen .mf-wallet-hero .eyebrow {
  color: #61a0ff;
  letter-spacing: .14em;
}

.mf-account-screen .mf-wallet-hero h3 {
  margin: 8px 0 5px;
  font-size: clamp(32px, 8vw, 48px);
  line-height: 1;
  letter-spacing: -.03em;
}

.mf-account-screen .mf-wallet-hero p {
  max-width: 420px;
  margin: 0;
  color: #9aa7bb;
  font-size: 13px;
  line-height: 1.55;
}

.mf-account-screen .mf-wallet-prime {
  min-width: 145px;
  padding: 14px;
  border: 1px solid rgba(255, 194, 45, .24);
  border-radius: 16px;
  background:
    linear-gradient(
      145deg,
      rgba(72, 54, 11, .38),
      rgba(28, 27, 22, .76)
    );
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}

.mf-account-screen .mf-wallet-prime span {
  color: #c7b16c;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
}

.mf-account-screen .mf-wallet-prime strong {
  margin: 5px 0 2px;
  color: #fff3c4;
  font-size: 26px;
  line-height: 1;
}

.mf-account-screen .mf-wallet-prime small {
  color: #998d68;
  font-size: 9px;
  line-height: 1.35;
}

.mf-account-screen .mf-wallet-pricing {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mf-account-screen .mf-wallet-pricing article {
  position: relative;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 116px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(74, 126, 230, .16);
  border-radius: 17px;
  background:
    linear-gradient(
      145deg,
      rgba(14, 28, 48, .97),
      rgba(9, 20, 36, .97)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 14px 34px rgba(0,0,0,.12);
}

.mf-account-screen .mf-wallet-pricing article::after {
  content: "";
  position: absolute;
  inset: auto -30px -55px auto;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: rgba(39, 112, 255, .07);
  pointer-events: none;
}

.mf-account-screen .mf-wallet-pricing article > span {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(65, 135, 255, .22);
  border-radius: 14px;
  background: rgba(25, 70, 138, .18);
  font-size: 24px;
}

.mf-account-screen .mf-wallet-pricing article:nth-child(1) > span {
  border-color: rgba(255, 201, 54, .22);
  background: rgba(137, 94, 0, .18);
}

.mf-account-screen .mf-wallet-pricing h4 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.mf-account-screen .mf-wallet-pricing p {
  margin: 5px 0 0;
  color: #8e9aae;
  font-size: 10px;
  line-height: 1.45;
}

.mf-account-screen .mf-wallet-pricing strong {
  grid-column: 2;
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  padding: 5px 9px;
  border-radius: 8px;
  background: rgba(41, 117, 255, .14);
  color: #7eb1ff;
  font-size: 12px;
}

.mf-account-screen .mf-wallet-section {
  padding: 17px;
  border: 1px solid rgba(74, 126, 230, .15);
  border-radius: 18px;
  background:
    linear-gradient(
      145deg,
      rgba(12, 27, 47, .96),
      rgba(8, 20, 36, .96)
    );
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.025),
    0 14px 34px rgba(0,0,0,.10);
}

.mf-account-screen .mf-wallet-section header {
  margin-bottom: 14px;
}

.mf-account-screen .mf-wallet-section h3 {
  margin: 0;
  font-size: 15px;
}

.mf-account-screen .mf-wallet-section header p {
  margin-top: 5px;
  color: #8f9bad;
  font-size: 10px;
  line-height: 1.5;
}

.mf-account-screen .mf-wallet-topup-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  margin-top: 0;
}

.mf-account-screen .mf-wallet-topup-form label {
  display: grid;
  gap: 6px;
  color: #c9d3e3;
  font-size: 10px;
  font-weight: 700;
}

.mf-account-screen .mf-wallet-topup-form input {
  height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(92, 136, 220, .22);
  border-radius: 12px;
  background: rgba(5, 15, 29, .92);
  color: #fff;
  font-size: 15px;
  outline: none;
}

.mf-account-screen .mf-wallet-topup-form input:focus {
  border-color: rgba(51, 121, 255, .72);
  box-shadow: 0 0 0 3px rgba(35, 105, 255, .12);
}

.mf-account-screen .mf-wallet-topup-form .primary {
  height: 44px;
  padding-inline: 18px;
  border-radius: 12px;
  white-space: nowrap;
}

.mf-account-screen .mf-wallet-list {
  gap: 8px;
}

.mf-account-screen .mf-wallet-row {
  padding: 12px;
  border-radius: 13px;
}

@media (max-width: 760px) {
  .mf-account-screen .mf-wallet-hero {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .mf-account-screen .mf-wallet-prime {
    width: 100%;
  }

  .mf-account-screen .mf-wallet-pricing {
    grid-template-columns: 1fr;
  }

  .mf-account-screen .mf-wallet-pricing article {
    min-height: 104px;
  }

  .mf-account-screen .mf-wallet-topup-form {
    grid-template-columns: 1fr;
  }

  .mf-account-screen .mf-wallet-topup-form .primary {
    width: 100%;
  }
}

/* Blago poskakivanje Promo taba */
.mf-account-tabs .mf-tab-promo {
  animation:
    mfPromoBounce 2.2s ease-in-out infinite,
    mfPromoGlow 2.2s ease-in-out infinite;
  transform-origin: center bottom;
  will-change: transform, box-shadow;
}

@keyframes mfPromoBounce {
  0%,
  72%,
  100% {
    transform: translateY(0) scale(1);
  }

  78% {
    transform: translateY(-3px) scale(1.015);
  }

  83% {
    transform: translateY(0) scale(1);
  }

  88% {
    transform: translateY(-1px) scale(1.006);
  }

  92% {
    transform: translateY(0) scale(1);
  }
}

@keyframes mfPromoGlow {
  0%,
  72%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 8px 22px rgba(26, 102, 255, .22);
  }

  80% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 12px 30px rgba(38, 123, 255, .42);
  }
}

/* Ne animiraj korisnicima koji su isključili animacije */
@media (prefers-reduced-motion: reduce) {
  .mf-account-tabs .mf-tab-promo {
    animation: none;
  }
}

/* Brže i češće poskakivanje Promo taba */
.mf-account-tabs .mf-tab-promo {
  animation:
    mfPromoBounceFast 1.35s ease-in-out infinite,
    mfPromoGlowFast 1.35s ease-in-out infinite;
}

@keyframes mfPromoBounceFast {
  0%,
  48%,
  100% {
    transform: translateY(0) scale(1);
  }

  58% {
    transform: translateY(-3px) scale(1.014);
  }

  68% {
    transform: translateY(0) scale(1);
  }

  76% {
    transform: translateY(-1.5px) scale(1.006);
  }

  84% {
    transform: translateY(0) scale(1);
  }
}

@keyframes mfPromoGlowFast {
  0%,
  48%,
  100% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.08),
      0 8px 22px rgba(26, 102, 255, .22);
  }

  62% {
    box-shadow:
      inset 0 1px 0 rgba(255,255,255,.18),
      0 12px 30px rgba(38, 123, 255, .42);
  }
}

/* Jasnije objašnjenje promocija */
.mf-account-screen .mf-wallet-pricing article {
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: start;
  min-height: 190px;
  padding: 18px;
}

.mf-account-screen .mf-wallet-pricing article > span {
  width: 52px;
  height: 52px;
  font-size: 27px;
}

.mf-account-screen .mf-wallet-pricing h4 {
  margin-top: 2px;
  font-size: 16px;
  line-height: 1.25;
}

.mf-account-screen .mf-promo-description {
  margin-top: 7px !important;
  color: #aeb9cb !important;
  font-size: 12px !important;
  line-height: 1.55 !important;
}

.mf-account-screen .mf-promo-benefits {
  display: grid;
  gap: 5px;
  margin: 11px 0 0;
  padding: 0;
  list-style: none;
}

.mf-account-screen .mf-promo-benefits li {
  position: relative;
  padding-left: 16px;
  color: #d8e2f1;
  font-size: 11px;
  line-height: 1.4;
}

.mf-account-screen .mf-promo-benefits li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  color: #4f9bff;
  font-weight: 900;
}

.mf-account-screen
.mf-wallet-pricing article:nth-child(1)
.mf-promo-benefits li::before {
  color: #ffc83d;
}

.mf-account-screen .mf-wallet-pricing strong {
  grid-column: 2;
  margin-top: 14px;
  padding: 7px 11px;
  font-size: 13px;
}

@media (max-width: 760px) {
  .mf-account-screen .mf-wallet-pricing article {
    min-height: 180px;
  }

  .mf-account-screen .mf-promo-description {
    font-size: 12px !important;
  }

  .mf-account-screen .mf-promo-benefits li {
    font-size: 11px;
  }
}

/* Fiksirana i potpuno simetrična dugmad Nazad i X */
.mf-account-back,
.mf-account-screen > .mf-screen-close {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top)) !important;
  z-index: 2147483647 !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  place-items: center !important;

  border: 1px solid rgba(150, 174, 215, .22) !important;
  border-radius: 50% !important;
  background: rgba(13, 27, 48, .96) !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, .24),
    inset 0 1px 0 rgba(255, 255, 255, .06) !important;

  color: #dce7fa !important;
  line-height: 1 !important;
  transform: none !important;

  pointer-events: auto !important;
  touch-action: manipulation;
}

.mf-account-back {
  left: max(
    14px,
    calc((100vw - 900px) / 2 + 14px)
  ) !important;
  right: auto !important;
  bottom: auto !important;
}

.mf-account-screen > .mf-screen-close {
  right: max(
    14px,
    calc((100vw - 900px) / 2 + 14px)
  ) !important;
  left: auto !important;
  bottom: auto !important;
}

/* Prostor da zaglavlje ne ode ispod fiksiranih dugmadi */
.mf-account-header {
  padding-top: calc(70px + env(safe-area-inset-top)) !important;
}

/* Telefon */
@media (max-width: 760px) {
  .mf-account-back,
  .mf-account-screen > .mf-screen-close {
    top: calc(10px + env(safe-area-inset-top)) !important;
    width: 44px !important;
    height: 44px !important;
  }

  .mf-account-back {
    left: 12px !important;
  }

  .mf-account-screen > .mf-screen-close {
    right: 12px !important;
  }

  .mf-account-header {
    padding-top: calc(68px + env(safe-area-inset-top)) !important;
  }
}

/* Ekran miruje, skroluje se isključivo sadržaj naloga */
.mf-screen.mf-account-screen {
  position: fixed !important;
  inset: 0 !important;
  overflow: hidden !important;
}

.mf-account-screen .mf-account-shell {
  position: relative;
  width: min(100%, 900px);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Dugmad ostaju zalepljena za ekran */
.mf-account-screen .mf-account-back,
.mf-account-screen > .mf-screen-close {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top)) !important;
  z-index: 2147483647 !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  display: grid !important;
  place-items: center !important;

  transform: none !important;
  pointer-events: auto !important;
}

.mf-account-screen .mf-account-back {
  left: max(14px, calc((100vw - 900px) / 2 + 14px)) !important;
  right: auto !important;
}

.mf-account-screen > .mf-screen-close {
  right: max(14px, calc((100vw - 900px) / 2 + 14px)) !important;
  left: auto !important;
}

/* Sadržaj počinje ispod fiksnih dugmadi */
.mf-account-screen .mf-account-header {
  padding-top: calc(72px + env(safe-area-inset-top)) !important;
}

@media (max-width: 760px) {
  .mf-account-screen .mf-account-back,
  .mf-account-screen > .mf-screen-close {
    top: calc(10px + env(safe-area-inset-top)) !important;
  }

  .mf-account-screen .mf-account-back {
    left: 12px !important;
  }

  .mf-account-screen > .mf-screen-close {
    right: 12px !important;
  }

  .mf-account-screen .mf-account-header {
    padding-top: calc(70px + env(safe-area-inset-top)) !important;
  }
}

/* ==========================================================
   FINALNO FIKSIRANJE ACCOUNT KONTROLA
   ========================================================== */

.mf-screen.mf-account-screen {
  position: fixed !important;
  inset: 0 !important;
  height: 100dvh !important;
  overflow: hidden !important;
  transform: none !important;
  contain: none !important;
}

.mf-account-screen .mf-account-shell {
  position: absolute !important;
  inset: 0 !important;
  width: min(100%, 900px) !important;
  height: 100dvh !important;
  min-height: 0 !important;
  margin: 0 auto !important;
  padding-top: 0 !important;

  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  transform: none !important;
}

/* Oba dugmeta su direktno na nepomičnom ekranu */
.mf-account-screen > .mf-account-back,
.mf-account-screen > .mf-screen-close {
  position: absolute !important;
  top: calc(12px + env(safe-area-inset-top)) !important;
  z-index: 2147483647 !important;

  display: grid !important;
  place-items: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(150, 174, 215, .22) !important;
  border-radius: 50% !important;
  background: rgba(13, 27, 48, .97) !important;
  color: #dce7fa !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;

  transform: none !important;
  pointer-events: auto !important;
  touch-action: manipulation;
}

.mf-account-screen > .mf-account-back {
  left: max(
    14px,
    calc((100vw - 900px) / 2 + 14px)
  ) !important;
  right: auto !important;
}

.mf-account-screen > .mf-screen-close {
  right: max(
    14px,
    calc((100vw - 900px) / 2 + 14px)
  ) !important;
  left: auto !important;
}

/* Zaglavlje ostavlja prostor ispod nepomičnih dugmadi */
.mf-account-screen .mf-account-header {
  padding-top: calc(
    76px + env(safe-area-inset-top)
  ) !important;
}

@media (max-width: 760px) {
  .mf-account-screen > .mf-account-back,
  .mf-account-screen > .mf-screen-close {
    top: calc(
      10px + env(safe-area-inset-top)
    ) !important;
  }

  .mf-account-screen > .mf-account-back {
    left: 12px !important;
  }

  .mf-account-screen > .mf-screen-close {
    right: 12px !important;
  }

  .mf-account-screen .mf-account-header {
    padding-top: calc(
      72px + env(safe-area-inset-top)
    ) !important;
  }
}

/* FINALNO: kontrole su direktno na HTML elementu, van svakog skrola */
html > .mf-account-floating-control {
  position: fixed !important;
  top: calc(12px + env(safe-area-inset-top)) !important;
  z-index: 2147483647 !important;

  display: grid !important;
  place-items: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 1px solid rgba(150, 174, 215, .25) !important;
  border-radius: 50% !important;
  background: #0d1b30 !important;
  color: #dce7fa !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, .32),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;

  transform: none !important;
  translate: none !important;
  animation: none !important;
  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html > .mf-account-back.mf-account-floating-control {
  left: max(12px, calc((100vw - 900px) / 2 + 12px)) !important;
  right: auto !important;
}

html > .mf-screen-close.mf-account-floating-control {
  right: max(12px, calc((100vw - 900px) / 2 + 12px)) !important;
  left: auto !important;
}

/* Sadržaj počinje ispod dugmadi */
.mf-account-screen .mf-account-shell {
  padding-top: calc(68px + env(safe-area-inset-top)) !important;
}

@media (max-width: 760px) {
  html > .mf-account-floating-control {
    top: calc(10px + env(safe-area-inset-top)) !important;
  }

  html > .mf-account-back.mf-account-floating-control {
    left: 12px !important;
  }

  html > .mf-screen-close.mf-account-floating-control {
    right: 12px !important;
  }
}

/* ==========================================================
   FIKSNA GORNJA TRAKA NALOGA
   ========================================================== */

html > .mf-account-fixed-bar {
  position: fixed !important;
  top: 0 !important;
  left: 50% !important;
  z-index: 2147483647 !important;

  width: min(100%, 900px) !important;
  height: calc(72px + env(safe-area-inset-top)) !important;

  transform: translateX(-50%) !important;

  background:
    linear-gradient(
      180deg,
      rgba(7, 16, 31, 1) 0%,
      rgba(7, 16, 31, .99) 78%,
      rgba(7, 16, 31, .96) 100%
    ) !important;

  border-bottom:
    1px solid rgba(117, 151, 211, .12) !important;

  box-shadow:
    0 10px 25px rgba(0, 0, 0, .18) !important;

  pointer-events: none !important;
}

/* Dugmad stoje unutar fiksne trake */
html > .mf-account-fixed-bar
.mf-account-floating-control {
  position: absolute !important;
  top: calc(12px + env(safe-area-inset-top)) !important;

  display: grid !important;
  place-items: center !important;

  width: 44px !important;
  height: 44px !important;
  min-width: 44px !important;
  min-height: 44px !important;

  margin: 0 !important;
  padding: 0 !important;

  border:
    1px solid rgba(150, 174, 215, .24) !important;
  border-radius: 50% !important;

  background: #0d1b30 !important;
  color: #dce7fa !important;

  box-shadow:
    0 8px 24px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255, 255, 255, .07) !important;

  transform: none !important;
  animation: none !important;

  pointer-events: auto !important;
  touch-action: manipulation !important;
}

html > .mf-account-fixed-bar
.mf-account-back {
  left: 14px !important;
  right: auto !important;
}

html > .mf-account-fixed-bar
.mf-screen-close {
  right: 14px !important;
  left: auto !important;
}

/* Sadržaj počinje ispod cele fiksne trake */
.mf-account-screen .mf-account-shell {
  padding-top:
    calc(78px + env(safe-area-inset-top)) !important;
}

/* Stari floating selektori više ne upravljaju pozicijom */
html > .mf-account-floating-control {
  position: static;
}

@media (max-width: 760px) {
  html > .mf-account-fixed-bar {
    height:
      calc(68px + env(safe-area-inset-top)) !important;
  }

  html > .mf-account-fixed-bar
  .mf-account-floating-control {
    top:
      calc(10px + env(safe-area-inset-top)) !important;
  }

  html > .mf-account-fixed-bar
  .mf-account-back {
    left: 12px !important;
  }

  html > .mf-account-fixed-bar
  .mf-screen-close {
    right: 12px !important;
  }

  .mf-account-screen .mf-account-shell {
    padding-top:
      calc(74px + env(safe-area-inset-top)) !important;
  }
}

/* Pravi Moje Felne logo u footeru */
.footer-grid .mf-footer-logo {
  display: flex;
  align-items: center;
  width: fit-content;
  max-width: 260px;
  margin: 0;
}

.footer-grid .mf-footer-logo img {
  display: block;
  width: min(220px, 72vw);
  max-height: 64px;
  object-fit: contain;
  object-position: left center;
  filter:
    drop-shadow(0 0 12px rgba(48, 119, 255, .25));
}

@media (max-width: 760px) {
  .footer-grid .mf-footer-logo {
    max-width: 230px;
  }

  .footer-grid .mf-footer-logo img {
    width: min(210px, 70vw);
    max-height: 58px;
  }
}

/* ==========================================================
   FOOTER LOGO — VELIKI, BEZ STAROG SIMBOLA
   ========================================================== */

.footer-grid .logo-mark {
  display: none !important;
}

.footer-grid .mf-footer-logo {
  display: block !important;
  width: 100% !important;
  max-width: 360px !important;
  margin: 0 0 18px !important;
  padding: 0 !important;
}

.footer-grid .mf-footer-logo img {
  display: block !important;
  width: 320px !important;
  max-width: 90vw !important;
  height: auto !important;
  max-height: none !important;

  margin: 0 !important;

  object-fit: contain !important;
  object-position: left center !important;

  filter:
    drop-shadow(0 12px 28px rgba(0, 0, 0, .35)) !important;
}

@media (max-width: 760px) {
  .footer-grid .mf-footer-logo {
    max-width: 330px !important;
    margin-bottom: 20px !important;
  }

  .footer-grid .mf-footer-logo img {
    width: 285px !important;
    max-width: 82vw !important;
  }
}

/* ==========================================================
   STALNI DARK MODE
   ========================================================== */

html,
html[data-theme="dark"],
html[data-theme="light"],
body,
body[data-theme="dark"],
body[data-theme="light"] {
  color-scheme: dark !important;
}

#theme-toggle,
.theme-toggle,
[data-theme-toggle],
[data-action="theme"],
[data-action="toggle-theme"] {
  display: none !important;
}

/* MF FOOTER LOGO I STALNI DARK MODE — FINAL */

.footer-grid .logo-mark {
  display: none !important;
}

.footer-grid .mf-footer-logo {
  display: block !important;
  width: 100% !important;
  max-width: 380px !important;
  margin: 0 0 18px !important;
}

.footer-grid .mf-footer-logo img {
  display: block !important;
  width: 340px !important;
  max-width: 88vw !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: left center !important;
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, .35)) !important;
}

#theme-toggle,
.theme-toggle,
[data-theme-toggle],
[data-action="theme"],
[data-action="toggle-theme"] {
  display: none !important;
}

html,
body {
  color-scheme: dark !important;
}

@media (max-width: 760px) {
  .footer-grid .mf-footer-logo {
    max-width: 350px !important;
  }

  .footer-grid .mf-footer-logo img {
    width: 315px !important;
    max-width: 84vw !important;
  }
}

/* Footer logo tačno na sredini */
.footer-grid > div:first-child {
  align-items: center !important;
  text-align: center !important;
}

.footer-grid .mf-footer-logo {
  margin-left: auto !important;
  margin-right: auto !important;
}

.footer-grid .mf-footer-logo img {
  margin-left: auto !important;
  margin-right: auto !important;
  object-position: center center !important;
}

.footer-grid > div:first-child p {
  margin-left: auto !important;
  margin-right: auto !important;
  text-align: center !important;
}

/* ==========================================================
   FOOTER GLOW TEKST
   ========================================================== */

.mf-footer-highlight-wrap {
  margin: 26px auto 18px !important;
  text-align: center !important;
  max-width: 760px !important;
}

.mf-footer-highlight {
  margin: 0 0 10px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  font-size: clamp(18px, 4.6vw, 24px) !important;
  letter-spacing: .01em !important;
  text-shadow:
    0 0 8px rgba(255,255,255,.34),
    0 0 18px rgba(255,255,255,.20),
    0 0 34px rgba(61,126,255,.18) !important;
  animation: mfFooterGlow 2.2s ease-in-out infinite alternate;
}

.mf-footer-subline {
  margin: 0 !important;
  color: rgba(255,255,255,.86) !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  font-size: clamp(13px, 3.5vw, 16px) !important;
  text-shadow:
    0 0 6px rgba(255,255,255,.16),
    0 0 16px rgba(88,144,255,.14) !important;
}

@keyframes mfFooterGlow {
  0% {
    opacity: .92;
    text-shadow:
      0 0 6px rgba(255,255,255,.26),
      0 0 14px rgba(255,255,255,.14),
      0 0 26px rgba(61,126,255,.12);
  }

  100% {
    opacity: 1;
    text-shadow:
      0 0 10px rgba(255,255,255,.42),
      0 0 24px rgba(255,255,255,.24),
      0 0 42px rgba(61,126,255,.20);
  }
}

@media (max-width: 760px) {
  .mf-footer-highlight-wrap {
    margin: 22px auto 16px !important;
    padding: 0 8px !important;
  }

  .mf-footer-highlight {
    font-size: 18px !important;
  }

  .mf-footer-subline {
    font-size: 14px !important;
  }
}

/* ==========================================================
   LEPŠI FOOTER CTA BLOK
   ========================================================== */

.mf-footer-highlight-wrap {
  max-width: 760px !important;
  margin: 34px auto 18px !important;
  padding: 26px 24px 20px !important;
  text-align: center !important;

  border: 1px solid rgba(90, 135, 255, .16) !important;
  border-radius: 24px !important;

  background:
    linear-gradient(
      180deg,
      rgba(13, 24, 43, .72) 0%,
      rgba(8, 16, 31, .86) 100%
    ) !important;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, .22),
    inset 0 1px 0 rgba(255, 255, 255, .04) !important;

  backdrop-filter: blur(10px) !important;
}

.mf-footer-highlight {
  margin: 0 0 14px !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: -.02em !important;
  font-size: clamp(28px, 3.5vw, 44px) !important;

  text-shadow:
    0 0 10px rgba(255,255,255,.16),
    0 0 24px rgba(52,120,255,.10) !important;

  animation: mfFooterGlowSoft 2.4s ease-in-out infinite alternate !important;
}

.mf-footer-subline {
  margin: 0 !important;
  color: rgba(236, 241, 255, .88) !important;
  font-weight: 600 !important;
  line-height: 1.5 !important;
  letter-spacing: .01em !important;
  font-size: clamp(15px, 1.6vw, 18px) !important;

  text-shadow:
    0 0 8px rgba(255,255,255,.08) !important;
}

@keyframes mfFooterGlowSoft {
  0% {
    opacity: .95;
    text-shadow:
      0 0 8px rgba(255,255,255,.10),
      0 0 18px rgba(52,120,255,.06);
  }

  100% {
    opacity: 1;
    text-shadow:
      0 0 12px rgba(255,255,255,.18),
      0 0 28px rgba(52,120,255,.10);
  }
}

/* copyright da bude odvojen i čist */
footer .copyright,
footer .footer-copy,
footer small,
footer .footer-grid > div:last-child,
footer .footer-grid + * {
  position: relative;
  z-index: 1;
}

footer .copyright {
  margin-top: 18px !important;
  text-align: center !important;
  color: rgba(180, 190, 214, .72) !important;
  font-size: 14px !important;
}

/* Ako copyright nije u .copyright klasi */
footer p:last-of-type {
  text-align: center;
}

/* Mobilni footer */
@media (max-width: 760px) {
  .mf-footer-highlight-wrap {
    margin: 28px auto 16px !important;
    padding: 20px 16px 18px !important;
    border-radius: 20px !important;
  }

  .mf-footer-highlight {
    font-size: 25px !important;
    line-height: 1.18 !important;
    margin-bottom: 12px !important;
  }

  .mf-footer-subline {
    font-size: 15px !important;
    line-height: 1.45 !important;
  }
}

/* ==========================================================
   BOOST DUGME NA DETALJU OGLASA
   ========================================================== */

.mf-listing-actions .mf-listing-boost {
  position: relative;
  isolation: isolate;
  overflow: hidden;

  min-height: 58px;
  padding: 14px 20px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;

  border: 1px solid rgba(100, 156, 255, .72);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      #145cff 0%,
      #387cff 48%,
      #7849f7 100%
    );

  color: #ffffff;
  font: inherit;
  font-weight: 800;
  letter-spacing: .01em;

  cursor: pointer;

  box-shadow:
    0 8px 24px rgba(33, 102, 255, .30),
    0 0 18px rgba(73, 132, 255, .22),
    inset 0 1px 0 rgba(255, 255, 255, .28);

  text-shadow:
    0 1px 3px rgba(0, 0, 0, .24);

  transition:
    transform .18s ease,
    box-shadow .18s ease,
    filter .18s ease;
}

.mf-listing-actions .mf-listing-boost::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -50%;
  left: -70%;

  width: 42%;
  height: 210%;

  background:
    linear-gradient(
      90deg,
      transparent,
      rgba(255, 255, 255, .50),
      transparent
    );

  transform: rotate(18deg);
  animation: mfDetailBoostShine 2.8s ease-in-out infinite;
}

.mf-listing-actions .mf-listing-boost:hover {
  transform: translateY(-2px);
  filter: brightness(1.07);

  box-shadow:
    0 12px 30px rgba(33, 102, 255, .38),
    0 0 26px rgba(91, 142, 255, .30),
    inset 0 1px 0 rgba(255, 255, 255, .32);
}

.mf-listing-actions .mf-listing-boost:active {
  transform: translateY(0) scale(.98);
}

.mf-listing-boost-icon {
  font-size: 19px;
  filter:
    drop-shadow(0 0 7px rgba(255, 255, 255, .58));
}

.mf-listing-actions .mf-listing-boost.active {
  border-color: rgba(63, 215, 153, .45);

  background:
    linear-gradient(
      135deg,
      rgba(18, 121, 91, .94),
      rgba(25, 161, 115, .92)
    );

  color: #ecfff8;
  cursor: default;
  opacity: 1;

  box-shadow:
    0 8px 22px rgba(22, 157, 111, .20),
    0 0 18px rgba(41, 211, 150, .14),
    inset 0 1px 0 rgba(255, 255, 255, .16);
}

.mf-listing-actions .mf-listing-boost.active::before {
  display: none;
}

@keyframes mfDetailBoostShine {
  0%,
  38% {
    left: -70%;
    opacity: 0;
  }

  48% {
    opacity: .9;
  }

  68%,
  100% {
    left: 135%;
    opacity: 0;
  }
}

@media (max-width: 760px) {
  .mf-listing-actions .mf-listing-boost {
    min-height: 56px;
    width: 100%;
    grid-column: 1 / -1;
    border-radius: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mf-listing-actions .mf-listing-boost::before {
    animation: none;
  }
}

/* ==========================================================
   PRIME OGLASI I BOOST MODEL
   ========================================================== */

.mf-prime-benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;

  margin: 20px 0;
  padding: 18px;

  border: 1px solid rgba(88, 137, 255, .22);
  border-radius: 20px;

  background:
    linear-gradient(
      145deg,
      rgba(19, 38, 72, .82),
      rgba(10, 21, 42, .92)
    );
}

.mf-prime-benefit {
  display: flex;
  align-items: flex-start;
  gap: 11px;

  padding: 15px;

  border: 1px solid rgba(102, 143, 225, .14);
  border-radius: 16px;

  background: rgba(7, 15, 30, .52);
}

.mf-prime-benefit > span {
  display: grid;
  place-items: center;
  flex: 0 0 35px;

  width: 35px;
  height: 35px;

  border-radius: 11px;
  background: rgba(53, 115, 255, .18);
  color: #8bb2ff;
  font-size: 18px;
  font-weight: 900;
}

.mf-prime-benefit strong {
  display: block;
  margin-bottom: 5px;

  color: #fff;
  font-size: 14px;
}

.mf-prime-benefit small {
  display: block;

  color: rgba(190, 205, 231, .72);
  line-height: 1.45;
}

.mf-prime-boost-note {
  grid-column: 1 / -1;

  margin: 2px 0 0;
  padding-top: 14px;

  border-top: 1px solid rgba(104, 141, 210, .14);

  color: rgba(187, 201, 226, .72);
  font-size: 12px;
  line-height: 1.5;
}

.mf-boost-wallet-note {
  margin: 14px 0;
  padding: 12px 14px;

  border: 1px solid rgba(70, 128, 255, .20);
  border-radius: 13px;

  background: rgba(37, 91, 196, .10);
  color: rgba(220, 230, 250, .84);

  font-size: 12px;
  line-height: 1.5;
}

.mf-listing-limit-modal {
  width: min(560px, 100%);
  margin: auto;
  text-align: center;
}

.mf-listing-limit-icon {
  display: grid;
  place-items: center;

  width: 72px;
  height: 72px;
  margin: 0 auto 17px;

  border: 1px solid rgba(103, 149, 255, .30);
  border-radius: 23px;

  background:
    linear-gradient(
      145deg,
      rgba(45, 104, 255, .28),
      rgba(116, 69, 222, .22)
    );

  font-size: 32px;
}

.mf-listing-limit-modal h2 {
  margin: 8px 0 12px;
  color: #fff;
  font-size: clamp(27px, 6vw, 37px);
}

.mf-listing-limit-modal > p {
  color: rgba(215, 225, 245, .78);
  line-height: 1.55;
}

.mf-listing-limit-benefits {
  display: grid;
  gap: 10px;

  margin: 22px 0;
  padding: 19px;

  border: 1px solid rgba(93, 139, 238, .20);
  border-radius: 18px;

  background: rgba(11, 24, 47, .76);
  text-align: left;
}

.mf-listing-limit-benefits b {
  margin-bottom: 3px;
  color: #fff;
}

.mf-listing-limit-benefits span {
  color: rgba(226, 234, 251, .88);
  font-size: 14px;
}

@media (max-width: 760px) {
  .mf-prime-benefits {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .mf-prime-boost-note {
    grid-column: auto;
  }

  .mf-listing-limit-modal .inline-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .mf-listing-limit-modal .inline-actions button {
    width: 100%;
  }
}

/* MF COMPACT MOBILE ACCOUNT HEADER START */
@media (max-width: 760px) {
  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen)
  .mf-account-shell {
    padding-top: 0 !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen)
  .mf-account-header {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top:
      calc(58px + env(safe-area-inset-top)) !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen)
  .mf-account-identity {
    padding-top: 0 !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen)
  .mf-account-avatar {
    margin-top: 0 !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen)
  .mf-account-tabs {
    margin-top: 14px !important;
  }
}
/* MF COMPACT MOBILE ACCOUNT HEADER END */


/* MF FORCE HIDE MOBILE ACCOUNT HEADER */
@media (max-width: 760px) {
  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen) > .mf-account-shell > .mf-account-header {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    max-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen) > .mf-account-shell {
    padding-top: calc(68px + env(safe-area-inset-top)) !important;
  }

  #mf-production-screen.mf-account-screen:not(.mf-mobile-chat-screen) > .mf-account-shell > .mf-account-tabs {
    margin-top: 6px !important;
  }
}


/* MF LISTING ARCHIVE AND RENEW UI */
.mf-listing-archive-notice {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  align-items: center;
  margin-top: 10px;
  padding: 9px 11px;
  border: 1px solid rgba(227, 154, 36, 0.34);
  border-radius: 10px;
  background: rgba(227, 154, 36, 0.09);
}

.mf-listing-archive-notice strong {
  font-size: 0.84rem;
}

.mf-listing-archive-notice span {
  font-size: 0.8rem;
  opacity: 0.78;
}

.mf-listing-renew-button {
  white-space: nowrap;
}

.mf-listing-renew-button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.mf-wallet-package-small {
  border-color: rgba(227, 154, 36, 0.48);
}

@media (max-width: 760px) {
  .mf-listing-archive-notice {
    align-items: flex-start;
    flex-direction: column;
  }

  .mf-listing-renew-button {
    width: 100%;
  }
}


/* MF CUSTOM CREDIT QUANTITY */
.mf-custom-credit-card {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(150px, 190px);
  gap: 14px 18px;
  align-items: end;
  margin-bottom: 18px;
  padding: 18px;
  border: 1px solid rgba(63, 132, 255, 0.48);
  border-radius: 16px;
  background: rgba(28, 82, 170, 0.12);
}

.mf-custom-credit-copy {
  display: flex;
  gap: 12px;
  align-items: center;
}

.mf-custom-credit-copy div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mf-custom-credit-copy small,
.mf-custom-credit-note,
.mf-custom-credit-field span,
.mf-custom-credit-summary span {
  opacity: 0.72;
  font-size: 0.82rem;
}

.mf-custom-credit-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.mf-custom-credit-field input {
  width: 100%;
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 10px;
  background: rgba(0,0,0,0.18);
  color: inherit;
  font: inherit;
}

.mf-custom-credit-summary {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mf-custom-credit-summary strong {
  font-size: 1.35rem;
}

.mf-custom-credit-card .primary {
  min-height: 44px;
}

.mf-custom-credit-note {
  grid-column: 1 / -1;
  margin: 0;
}

@media (max-width: 700px) {
  .mf-custom-credit-card {
    grid-template-columns: 1fr;
  }

  .mf-custom-credit-card .primary {
    width: 100%;
  }
}


/* MF LEGAL FOOTER */
.mf-legal-footer {
  margin-top: 80px;
  padding: 44px 0 28px;
  background:
    linear-gradient(
      180deg,
      rgba(15, 18, 24, 0.98),
      #090b0f
    );
  color: #939dab;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.mf-legal-footer-inner {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.mf-legal-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 30px;
}

.mf-legal-footer-links button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #e7ebf1;
  font-size: 0.9rem;
  font-weight: 750;
  cursor: pointer;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

.mf-legal-footer-links button:hover {
  color: #6f9dff;
  transform: translateY(-1px);
}

.mf-legal-footer-divider {
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.09);
}

.mf-legal-footer-description {
  max-width: 1120px;
  margin: 0 auto;
  color: #828c9a;
  font-size: 0.78rem;
  line-height: 1.75;
  text-align: center;
}

.mf-legal-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 21px;
  border-top: 1px solid rgba(255,255,255,0.07);
  color: #687381;
  font-size: 0.75rem;
}

@media (max-width: 760px) {
  .mf-legal-footer {
    margin-top: 58px;
    padding: 34px 0 44px;
  }

  .mf-legal-footer-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 18px;
    text-align: left;
  }

  .mf-legal-footer-links button {
    text-align: left;
    font-size: 0.84rem;
  }

  .mf-legal-footer-description {
    text-align: left;
    font-size: 0.74rem;
    line-height: 1.7;
  }

  .mf-legal-footer-bottom {
    flex-direction: column;
    gap: 7px;
  }
}

@media (max-width: 390px) {
  .mf-legal-footer-links {
    grid-template-columns: 1fr;
  }
}


/* MF FOOTER DESCRIPTION INSIDE BOTTOM BLOCK */
.mf-legal-footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.mf-legal-footer-bottom .mf-legal-footer-description {
  max-width: 980px;
  margin: 8px 0 0;
  text-align: left;
  color: #77818f;
  font-size: 0.74rem;
  line-height: 1.7;
}

@media (max-width: 760px) {
  .mf-legal-footer-bottom .mf-legal-footer-description {
    max-width: none;
    margin-top: 10px;
    text-align: left;
    font-size: 0.72rem;
  }
}


/* MF FULL LEGAL DOCUMENTS */
.mf-legal-document {
  width: min(920px, 100%);
  margin: 0 auto;
  padding: 34px;
}

.mf-legal-document-header {
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
}

.mf-legal-document-header h2 {
  margin: 7px 0 6px;
  font-size: clamp(1.75rem, 4vw, 2.45rem);
  line-height: 1.1;
}

.mf-legal-document-header p {
  margin: 0;
  color: var(--muted);
  font-size: 0.83rem;
}

.mf-legal-document-content {
  display: grid;
  gap: 28px;
  padding: 28px 0;
}

.mf-legal-document-content section {
  display: grid;
  gap: 10px;
}

.mf-legal-document-content h3 {
  margin: 0;
  color: var(--text);
  font-size: 1.04rem;
  line-height: 1.35;
}

.mf-legal-document-content p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.75;
}

.mf-legal-document-content ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 0;
  padding-left: 22px;
  color: var(--muted);
}

.mf-legal-document-content li {
  padding-left: 3px;
  font-size: 0.9rem;
  line-height: 1.65;
}

.mf-legal-document-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  padding-top: 22px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}

.mf-legal-document-footer strong {
  color: var(--text);
}

.mf-legal-document-footer .ghost-btn {
  margin-left: auto;
}

@media (max-width: 760px) {
  .mf-legal-document {
    padding: 24px 18px 30px;
  }

  .mf-legal-document-content {
    gap: 25px;
    padding-top: 24px;
  }

  .mf-legal-document-content p {
    font-size: 0.86rem;
    line-height: 1.7;
  }

  .mf-legal-document-content li {
    font-size: 0.84rem;
  }

  .mf-legal-document-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .mf-legal-document-footer .ghost-btn {
    width: 100%;
    margin: 8px 0 0;
  }
}


/* MF LEGAL DOCUMENT FOOTER COMPACT */
.mf-legal-document-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 18px;
  align-items: center;
  min-height: 0 !important;
  height: auto !important;
  padding: 20px 0 0 !important;
  margin: 0 !important;
}

.mf-legal-document-footer strong {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}

.mf-legal-document-footer > span {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}

.mf-legal-document-footer .ghost-btn {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 220px;
  margin: 0 !important;
}

.mf-legal-document {
  min-height: 0 !important;
  height: auto !important;
}

@media (max-width: 760px) {
  .mf-legal-document-footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 7px;
    padding-top: 18px !important;
  }

  .mf-legal-document-footer .ghost-btn {
    width: 100%;
    min-width: 0;
    margin-top: 10px !important;
  }
}


/* MF LEGAL DOCUMENT FOOTER — POLISHED */
.mf-legal-document-footer {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 6px !important;
  align-items: stretch !important;
  margin-top: 6px !important;
  padding: 18px !important;
  border: 1px solid rgba(76, 132, 255, 0.24) !important;
  border-radius: 16px !important;
  background:
    linear-gradient(
      180deg,
      rgba(24, 34, 52, 0.78),
      rgba(10, 15, 24, 0.94)
    ) !important;
  box-shadow:
    0 14px 34px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.03) !important;
}

.mf-legal-document-footer strong {
  display: block !important;
  margin: 0 !important;
  color: #ffffff !important;
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: -0.01em !important;
}

.mf-legal-document-footer > span {
  display: block !important;
  margin: 0 0 10px !important;
  color: #9ba9bc !important;
  font-size: 0.84rem !important;
}

.mf-legal-document-footer .ghost-btn {
  width: 100% !important;
  min-width: 0 !important;
  min-height: 44px !important;
  margin: 0 !important;
  border: 1px solid rgba(73, 135, 255, 0.42) !important;
  border-radius: 12px !important;
  background:
    linear-gradient(
      135deg,
      #2f6df6,
      #1e56d8
    ) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow:
    0 10px 22px rgba(47, 109, 246, 0.24) !important;
  transition:
    transform 0.18s ease,
    filter 0.18s ease !important;
}

.mf-legal-document-footer .ghost-btn:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.06) !important;
}

.mf-legal-document-footer .ghost-btn:active {
  transform: translateY(0) !important;
}

@media (max-width: 760px) {
  .mf-legal-document-footer {
    padding: 16px !important;
    border-radius: 14px !important;
  }

  .mf-legal-document-footer .ghost-btn {
    min-height: 42px !important;
  }
}
