:root{
  --navy:#07172f;
  --navy2:#0b2447;
  --yellow:#ffc400;
  --yellow2:#ffdc5a;
  --white:#fff;
  --muted:#9ca3af;
  --dark:#050914;
  --card:#0d1d39;
  --line:rgba(255,255,255,.1);
}

*{box-sizing:border-box}

body{
  background:
    radial-gradient(circle at top left,rgba(18,54,107,.74) 0,transparent 34%),
    linear-gradient(180deg,#07172f 0,#050914 100%);
  color:var(--white);
  font-family:Inter,system-ui,Segoe UI,Arial,sans-serif;
  min-height:100vh;
}

a{text-decoration:none}

.djr-navbar{
  background:rgba(5,9,20,.94);
  backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
}

.navbar-toggler{filter:invert(1)}

.nav-link{
  color:#e5e7eb!important;
  font-weight:700;
}

.nav-link:hover{color:var(--yellow)!important}

.djr-brand{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:0;
  min-width:145px;
}

.djr-brand img{
  height:82px;
  width:auto;
  object-fit:contain;
}

.djr-brand small{
  color:rgba(255,255,255,.58);
  font-size:.65rem;
  font-weight:800;
  margin-left:8px;
  margin-top:-13px;
  letter-spacing:.3px;
}

.djr-search,
.form-control,
.form-select{
  background:#071225!important;
  border:1px solid rgba(255,255,255,.13)!important;
  color:#fff!important;
  border-radius:14px;
}

.djr-search{min-height:46px}

.djr-search::placeholder,
.form-control::placeholder{
  color:#7f8da3;
}

.btn-djr{
  background:linear-gradient(135deg,var(--yellow),var(--yellow2));
  color:#111827!important;
  border:0;
  border-radius:14px;
  font-weight:950;
  box-shadow:0 0 24px rgba(255,196,0,.16);
}

.btn-djr-outline{
  border:1px solid var(--yellow);
  color:var(--yellow)!important;
  background:rgba(255,196,0,.03);
  border-radius:14px;
  font-weight:900;
}

.btn-djr:hover,
.btn-djr-outline:hover{
  transform:translateY(-1px);
}

.djr-title{
  font-weight:950;
  letter-spacing:-1px;
  line-height:1.05;
}

.djr-highlight{color:var(--yellow)}
.muted{color:var(--muted)}

.djr-badge{
  display:inline-flex;
  align-items:center;
  background:rgba(255,196,0,.14);
  color:var(--yellow);
  border:1px solid rgba(255,196,0,.28);
  padding:.38rem .72rem;
  border-radius:999px;
  font-weight:950;
}

.djr-user-chip{
  display:flex!important;
  align-items:center;
  gap:9px;
  padding:7px 11px;
  border-radius:999px;
  color:#fff!important;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.10);
  font-weight:850;
  white-space:nowrap;
}

.djr-user-chip:hover{
  color:var(--yellow)!important;
  border-color:rgba(255,196,0,.32);
}

.djr-user-initial{
  width:34px;
  height:34px;
  min-width:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:linear-gradient(135deg,var(--yellow),var(--yellow2));
  color:#111827;
  font-weight:950;
}

/* HERO */

.djr-showcase-main{
  min-height:255px;
  border-radius:28px;
  padding:38px;
  border:1px solid rgba(255,196,0,.22);
  background:
    radial-gradient(circle at 82% 35%,rgba(255,196,0,.14),transparent 30%),
    linear-gradient(120deg,rgba(5,9,20,.97),rgba(7,23,47,.9)),
    url('../img/logo-djrmarket.png');
  background-repeat:no-repeat;
  background-position:right 34px center;
  background-size:330px auto;
  box-shadow:0 22px 65px rgba(0,0,0,.32);
}

.djr-showcase-main h1{
  max-width:760px;
  font-size:clamp(2.25rem,4vw,3.75rem);
}

.djr-showcase-main p{
  max-width:720px;
  font-size:1.05rem;
}

.djr-avatar-hero{display:none!important}

/* CARDS */

.djr-card{
  background:linear-gradient(180deg,rgba(13,29,57,.96),rgba(7,18,37,.98));
  border:1px solid var(--line);
  border-radius:22px;
  overflow:hidden;
  box-shadow:0 18px 50px rgba(0,0,0,.25);
}

.product-img{
  aspect-ratio:4/3;
  width:100%;
  object-fit:cover;
  background:#09162c;
}

.price{
  color:var(--yellow);
  font-weight:950;
  font-size:1.22rem;
}

.sidebar{
  background:linear-gradient(180deg,rgba(3,7,17,.72),rgba(8,20,40,.68));
  border:1px solid var(--line);
  border-radius:22px;
  padding:16px;
  box-shadow:0 18px 45px rgba(0,0,0,.22);
}

.sidebar a{
  display:block;
  color:#e5e7eb;
  padding:11px 13px;
  border-radius:13px;
  font-weight:700;
}

.sidebar a:hover,
.sidebar a.active{
  background:rgba(255,196,0,.14);
  color:var(--yellow);
}

.sidebar-group-title{
  margin:18px 14px 8px;
  font-size:13px;
  text-transform:uppercase;
  color:var(--yellow);
  font-weight:950;
  letter-spacing:.4px;
}

.djr-feed-head{
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:14px;
  margin-bottom:18px;
}

.djr-feed-head h2{
  font-weight:950;
}

.djr-product-title{
  color:#fff;
  font-weight:900;
  line-height:1.35;
}

/* CARRINHO */

.cart-row{
  display:grid;
  grid-template-columns:110px 1fr auto;
  gap:16px;
  align-items:center;
  padding:16px 0;
  border-bottom:1px solid rgba(255,255,255,.08);
}

.cart-row:last-child{border-bottom:0}

.cart-img{
  width:110px!important;
  height:90px!important;
  object-fit:cover!important;
  border-radius:14px;
  background:#09162c;
}

.cart-info h2{
  margin:10px 0 6px;
  font-size:1rem;
  font-weight:900;
  color:#fff;
}

.cart-price{
  color:var(--yellow);
  font-weight:900;
  margin-top:8px;
}

.cart-actions{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  gap:10px;
}

.cart-actions strong{
  color:var(--yellow);
  font-weight:950;
}

.cart-summary{
  position:sticky;
  top:120px;
}

.djr-footer{
  background:#030711;
  color:#9ca3af;
  border-top:1px solid var(--line);
}

.djr-alert{border-radius:16px}

.product-main-img{
  height:520px;
  object-fit:cover;
  border-radius:20px;
}

@media(max-width:768px){
  .djr-brand img{height:64px}
  .djr-brand small{font-size:.6rem;margin-top:-10px}

  .djr-showcase-main{
    min-height:230px;
    padding:24px;
    background-size:190px auto;
    background-position:right 16px bottom 16px;
  }

  .djr-showcase-main h1{font-size:2rem}
  .djr-showcase-main p{font-size:.95rem}

  .djr-user-chip{
    margin-top:8px;
    font-size:.86rem;
  }

  .djr-user-initial{
    width:30px;
    height:30px;
    min-width:30px;
  }

  .cart-row{
    grid-template-columns:88px 1fr;
  }

  .cart-img{
    width:88px!important;
    height:76px!important;
  }

  .cart-actions{
    grid-column:1/-1;
    flex-direction:row;
    justify-content:space-between;
    align-items:center;
  }

  .cart-summary{
    position:relative;
    top:auto;
  }
}
.djr-user-chip{
  display:flex!important;
  align-items:center!important;
  gap:9px!important;
  color:#fff!important;
  text-decoration:none!important;
  background:rgba(255,255,255,.05)!important;
  border:1px solid rgba(255,255,255,.12)!important;
  border-radius:999px!important;
  padding:7px 12px!important;
  font-weight:850!important;
  white-space:nowrap!important;
}

.djr-user-initial{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  border-radius:50%!important;
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  background:linear-gradient(135deg,var(--yellow),var(--yellow2))!important;
  color:#111827!important;
  font-weight:950!important;
}

.cart-row img,
.cart-img{
  width:110px!important;
  height:90px!important;
  max-width:110px!important;
  max-height:90px!important;
  object-fit:cover!important;
  border-radius:14px!important;
}


/* =========================================================
   DJRMarket - ajustes finais de carrinho e avatar do header
   ========================================================= */

.djr-user-avatar,
.djr-user-chip img.djr-user-avatar,
.djr-user-chip img{
  width:34px!important;
  height:34px!important;
  min-width:34px!important;
  max-width:34px!important;
  max-height:34px!important;
  border-radius:50%!important;
  object-fit:cover!important;
  display:inline-block!important;
  border:1px solid rgba(255,255,255,.18)!important;
  background:#071225!important;
}

.cart-img-link{
  width:110px!important;
  height:90px!important;
  max-width:110px!important;
  max-height:90px!important;
  display:block!important;
  overflow:hidden!important;
  border-radius:14px!important;
  background:#09162c!important;
  flex-shrink:0!important;
}

.cart-row .cart-img,
.cart-row img.cart-img,
img.cart-img{
  width:110px!important;
  height:90px!important;
  min-width:110px!important;
  max-width:110px!important;
  min-height:90px!important;
  max-height:90px!important;
  object-fit:cover!important;
  object-position:center!important;
  display:block!important;
  border-radius:14px!important;
}

.cart-info h2 a{
  color:#fff!important;
  text-decoration:none!important;
}

.cart-info h2 a:hover{
  color:var(--yellow)!important;
}

.cart-row-unavailable{
  opacity:.72;
}

.cart-row-unavailable .cart-img{
  filter:grayscale(.55);
}

@media(max-width:768px){
  .djr-user-avatar,
  .djr-user-chip img.djr-user-avatar,
  .djr-user-chip img{
    width:30px!important;
    height:30px!important;
    min-width:30px!important;
    max-width:30px!important;
    max-height:30px!important;
  }

  .cart-img-link{
    width:88px!important;
    height:76px!important;
    max-width:88px!important;
    max-height:76px!important;
  }

  .cart-row .cart-img,
  .cart-row img.cart-img,
  img.cart-img{
    width:88px!important;
    height:76px!important;
    min-width:88px!important;
    max-width:88px!important;
    min-height:76px!important;
    max-height:76px!important;
  }
}


/* =========================================================
   DJRMarket Mobile Beta UI - Instagram style shortcuts
   Fase 1: compacto em cima, atalhos fixos embaixo, menos poluição.
   ========================================================= */
.djr-mobile-tabbar{display:none}

@media (max-width: 768px){
  body{padding-bottom:82px;background:#06152b;color:#fff;}
  .navbar.djr-navbar{position:sticky;top:0;z-index:1030;padding:10px 0;background:rgba(5,9,20,.98)!important;}
  .djr-navbar .container{display:flex;align-items:center;gap:10px;}
  .djr-brand{min-width:auto;max-width:155px;}
  .djr-brand img{height:56px;}
  .djr-brand small{font-size:.58rem;margin-top:-9px;margin-left:7px;}
  .navbar-toggler{margin-left:auto;border:1px solid rgba(255,255,255,.14)!important;border-radius:12px;padding:9px 11px;filter:none;background:rgba(255,255,255,.04);}
  .navbar-toggler-icon{filter:invert(1);}
  #nav{margin-top:12px;background:rgba(7,23,47,.98);border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:12px;}
  #nav .djr-search{min-height:44px;font-size:.95rem;margin-bottom:10px;}
  #nav .navbar-nav{gap:8px!important;align-items:stretch!important;}
  #nav .nav-link,#nav .btn-djr{display:flex!important;align-items:center;justify-content:center;min-height:42px;border-radius:14px;margin:2px 0;}
  #nav .djr-user-chip{justify-content:center;border-radius:14px;}
  #nav .djr-user-chip span:last-child{max-width:210px;overflow:hidden;text-overflow:ellipsis;}

  main.container{padding-left:14px!important;padding-right:14px!important;padding-top:16px!important;}
  .djr-card,.card,.admin-card{border-radius:20px!important;padding:16px!important;}
  .row{--bs-gutter-x: .75rem;}
  .djr-title,h1{letter-spacing:-.6px;}
  .form-control,.form-select,input,select,textarea{min-height:48px;border-radius:16px!important;font-size:16px!important;}
  input[type="file"].form-control{padding:10px!important;min-height:auto;}
  .btn,.btn-djr,.btn-djr-outline,button{border-radius:16px!important;min-height:46px;}
  .alert.djr-alert,.alert{border-radius:18px!important;font-size:.95rem;padding:13px 14px!important;margin-bottom:14px!important;}

  .djr-mobile-tabbar{position:fixed;left:0;right:0;bottom:0;z-index:1040;display:grid;grid-template-columns:repeat(5,1fr);gap:2px;padding:8px 8px calc(8px + env(safe-area-inset-bottom));background:rgba(5,9,20,.97);border-top:1px solid rgba(255,255,255,.12);box-shadow:0 -18px 35px rgba(0,0,0,.35);backdrop-filter:blur(14px);}
  .djr-mobile-tabbar a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:54px;color:#b9c7dc;text-decoration:none;border-radius:16px;font-size:11px;font-weight:850;line-height:1;}
  .djr-mobile-tabbar a i{font-size:20px;line-height:1;}
  .djr-mobile-tabbar a.active,.djr-mobile-tabbar a:hover{color:#ffc400;background:rgba(255,196,0,.10);}
  .djr-mobile-tabbar .djr-mobile-tab-main{color:#07172f;background:linear-gradient(135deg,#ffc400,#ffdc5a);box-shadow:0 8px 24px rgba(255,196,0,.20);}
  .djr-mobile-tabbar .djr-mobile-tab-main.active{background:linear-gradient(135deg,#ffdc5a,#ffc400);color:#07172f;}
}

@media (max-width: 380px){
  .djr-mobile-tabbar a span{font-size:10px;}
  .djr-mobile-tabbar a i{font-size:18px;}
  .djr-brand img{height:50px;}
}

/* =========================================================
   DJRMarket Navigation V2 - menu organizado PC + perfil app mobile
   ========================================================= */
.djr-profile-dropdown{min-width:310px;max-width:360px;padding:10px;border-radius:18px;background:#071225;border:1px solid rgba(255,255,255,.12);box-shadow:0 24px 60px rgba(0,0,0,.42);max-height:calc(100vh - 130px);overflow:auto}.djr-profile-dropdown .dropdown-item{color:#eaf2ff;border-radius:12px;padding:9px 11px;font-weight:800}.djr-profile-dropdown .dropdown-item:hover{background:rgba(255,196,0,.13);color:#ffc400}.djr-profile-dropdown .dropdown-divider{border-color:rgba(255,255,255,.10);margin:8px 0}.djr-dropdown-label{padding:2px 11px 6px;color:#ffc400;font-size:11px;text-transform:uppercase;letter-spacing:.08em;font-weight:950}.djr-profile-head{display:flex;align-items:center;gap:12px;padding:8px 9px 10px}.djr-profile-head-avatar img,.djr-profile-head-avatar span{width:42px;height:42px;border-radius:50%;display:flex;align-items:center;justify-content:center;object-fit:cover;background:linear-gradient(135deg,var(--yellow),var(--yellow2));color:#07172f;font-weight:950}.djr-profile-head strong{display:block;color:#fff;line-height:1.1}.djr-profile-head small{display:block;color:#9fb0c9;font-weight:700;margin-top:3px}.djr-mobile-profile-sheet{height:auto!important;max-height:86vh;background:radial-gradient(circle at top left,#12366b 0,#07172f 42%,#050914 100%);color:#fff;border-radius:28px 28px 0 0;border-top:1px solid rgba(255,196,0,.28);box-shadow:0 -25px 70px rgba(0,0,0,.55)}.djr-mobile-profile-sheet .offcanvas-header{align-items:flex-start;border-bottom:1px solid rgba(255,255,255,.10);padding:16px}.djr-mobile-profile-sheet .offcanvas-body{padding:14px 14px calc(18px + env(safe-area-inset-bottom));overflow:auto}.djr-mobile-profile-user{display:flex;align-items:center;gap:12px;min-width:0}.djr-mobile-profile-user img,.djr-mobile-profile-user>span{width:50px;height:50px;border-radius:50%;object-fit:cover;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,var(--yellow),var(--yellow2));color:#07172f;font-weight:950;border:1px solid rgba(255,255,255,.18)}.djr-mobile-profile-user h2{font-size:1.05rem;margin:0;color:#fff;font-weight:950;max-width:240px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.djr-mobile-profile-user small{display:block;color:#afbdd3;margin-top:2px}.djr-mobile-menu-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.djr-mobile-menu-grid a{min-height:82px;border-radius:18px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.10);color:#eaf2ff;text-decoration:none;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;gap:7px;font-weight:900;font-size:.78rem;padding:9px}.djr-mobile-menu-grid a i{font-size:1.35rem;color:#ffc400}.djr-mobile-menu-grid a.highlight{background:linear-gradient(135deg,rgba(255,196,0,.22),rgba(13,29,57,.88));border-color:rgba(255,196,0,.42)}.djr-mobile-menu-grid a.admin{border-color:rgba(96,165,250,.45)}.djr-mobile-menu-grid a.danger{border-color:rgba(239,68,68,.45);color:#fecaca}.djr-mobile-menu-grid a.danger i{color:#f87171}

@media (min-width:769px){.djr-mobile-profile-sheet{display:none!important}}
@media (max-width:768px){
  #nav .navbar-nav .djr-beta-pill,#nav .navbar-nav .djr-missions-pill,#nav .navbar-nav .djr-support-pill,#nav .navbar-nav .djr-top-coins,#nav .navbar-nav .djr-user-chip{display:none!important}
  #nav .navbar-nav .nav-link:not(.djr-beta-pill):not(.djr-missions-pill):not(.djr-support-pill):not(.djr-top-coins){background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.10)}
  .djr-mobile-tabbar{grid-template-columns:repeat(5,1fr)}
  .dropdown-menu.djr-profile-dropdown{display:none!important}
}
@media(max-width:380px){.djr-mobile-menu-grid{grid-template-columns:repeat(2,1fr)}.djr-mobile-profile-user h2{max-width:190px}}



/* DJRMarket hotfix: tabbar sempre visível no mobile */
@media (max-width:768px){
  .djr-mobile-tabbar{display:grid!important;z-index:1095!important;visibility:visible!important;opacity:1!important;}
  body{padding-bottom:92px!important;}
  .djr-floating-support{display:none!important;}
}

/* =========================================================
   DJRMarket Mobile Feed V3 - feed primeiro, categoria em chips
   ========================================================= */
.djr-mobile-feed-tools{display:none}
.djr-showcase-compact{display:flex;align-items:center;justify-content:space-between;gap:20px;background-size:240px auto;min-height:210px}
.djr-hero-actions{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-end}

@media (max-width: 768px){
  .djr-market-hero{margin-bottom:12px!important}
  .djr-showcase-compact{
    min-height:auto!important;
    padding:13px 14px!important;
    border-radius:20px!important;
    display:block!important;
    background-image:linear-gradient(135deg,rgba(13,29,57,.98),rgba(7,23,47,.96))!important;
    box-shadow:0 12px 28px rgba(0,0,0,.20)!important;
  }
  .djr-showcase-compact .djr-badge{font-size:.72rem;padding:.28rem .56rem}
  .djr-showcase-compact h1{font-size:1.2rem!important;margin-top:8px!important;letter-spacing:-.3px!important}
  .djr-showcase-compact p{font-size:.82rem!important;line-height:1.3!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .djr-hero-actions{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px!important}
  .djr-hero-actions .btn{min-height:40px!important;padding:8px 10px!important;font-size:.84rem!important;border-radius:14px!important}

  .djr-mobile-feed-tools{display:block}
  .djr-mobile-feed-top{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px;color:#fff}
  .djr-mobile-feed-top strong{font-size:1.05rem;font-weight:950}
  .djr-mobile-feed-top span{font-size:.78rem;color:#9fb0c9;font-weight:800}
  .djr-mobile-category-scroll{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none;padding:2px 2px 10px;margin:0 -2px;white-space:nowrap}
  .djr-mobile-category-scroll::-webkit-scrollbar{display:none}
  .djr-mobile-category-scroll a{display:inline-flex;align-items:center;justify-content:center;min-height:36px;padding:8px 12px;border-radius:999px;background:rgba(255,255,255,.055);border:1px solid rgba(255,255,255,.12);color:#dbe7ff;text-decoration:none;font-size:.82rem;font-weight:900}
  .djr-mobile-category-scroll a.active{background:#ffc400;color:#07172f;border-color:#ffc400}

  #feed-market{--bs-gutter-y:0;margin-top:0!important}
  #feed-market > aside{display:none!important}
  .djr-feed-content{width:100%!important}
  .djr-feed-head{position:sticky;top:78px;z-index:20;background:linear-gradient(180deg,rgba(6,21,43,.98),rgba(6,21,43,.92));border:1px solid rgba(255,255,255,.08);border-radius:18px;padding:10px;margin-bottom:12px!important;box-shadow:0 10px 24px rgba(0,0,0,.18)}
  .djr-feed-head h2{font-size:1rem!important}
  .djr-feed-sort{width:100%;display:grid!important;grid-template-columns:repeat(3,1fr);gap:7px!important;margin-top:8px}
  .djr-feed-sort .btn{min-height:36px!important;padding:7px 5px!important;font-size:.76rem!important;border-radius:999px!important}

  .djr-products-grid{--bs-gutter-x:.65rem!important;--bs-gutter-y:.75rem!important}
  .djr-products-grid .djr-card{border-radius:16px!important;padding:0!important;box-shadow:0 8px 22px rgba(0,0,0,.20)!important;background:rgba(13,29,57,.92)!important}
  .djr-products-grid .product-img{aspect-ratio:1/1!important;border-radius:16px 16px 0 0!important}
  .djr-products-grid .djr-card .p-3{padding:10px!important}
  .djr-products-grid .djr-badge{font-size:.63rem;padding:.22rem .42rem;margin-bottom:4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .djr-products-grid .djr-badge + .djr-badge{display:none!important}
  .djr-products-grid .djr-product-title{font-size:.84rem!important;line-height:1.18!important;margin-top:7px!important;min-height:2.05em;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .djr-products-grid .muted.small.mb-2{font-size:.69rem!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;margin-bottom:5px!important}
  .djr-products-grid .d-flex.gap-3.small.muted.mb-2{font-size:.68rem!important;gap:8px!important;margin-bottom:5px!important;white-space:nowrap;overflow:hidden}
  .djr-products-grid .price{font-size:1rem!important;margin-bottom:8px!important}
  .djr-products-grid .btn.w-100{min-height:36px!important;padding:7px 8px!important;font-size:.78rem!important;border-radius:12px!important}
}


/* =========================================================
   DJRMarket - correção hero PC/mobile
   Mantém o bem-vindo completo no desktop e compacta apenas no mobile.
   ========================================================= */
.djr-hero-title-mobile{display:none}
.djr-hero-title-desktop{display:inline}

@media (min-width: 769px){
  .djr-market-hero{margin-bottom:26px!important}
  .djr-showcase-main.djr-showcase-compact{
    min-height:255px!important;
    padding:38px!important;
    display:grid!important;
    grid-template-columns:minmax(0,1fr) auto!important;
    align-items:center!important;
    gap:28px!important;
    background-size:330px auto!important;
    background-position:right 34px center!important;
  }
  .djr-showcase-main.djr-showcase-compact h1{
    max-width:720px!important;
    font-size:clamp(2.25rem,4vw,3.75rem)!important;
    line-height:1.05!important;
    letter-spacing:-1px!important;
  }
  .djr-showcase-main.djr-showcase-compact p{
    max-width:760px!important;
    font-size:1.05rem!important;
  }
  .djr-hero-actions{
    align-self:center!important;
    justify-self:end!important;
    display:flex!important;
    flex-wrap:wrap!important;
    justify-content:flex-end!important;
    align-items:center!important;
    gap:12px!important;
    max-width:340px!important;
    padding:14px!important;
    border-radius:22px!important;
    background:rgba(5,9,20,.38)!important;
    border:1px solid rgba(255,255,255,.08)!important;
    backdrop-filter:blur(8px)!important;
  }
  .djr-hero-actions .btn{
    min-height:44px!important;
    display:inline-flex!important;
    align-items:center!important;
    justify-content:center!important;
    white-space:nowrap!important;
  }
}

@media (max-width: 768px){
  .djr-hero-title-desktop{display:none!important}
  .djr-hero-title-mobile{display:inline!important}
  .djr-showcase-main.djr-showcase-compact{
    min-height:auto!important;
    padding:16px!important;
    display:block!important;
    background-image:linear-gradient(135deg,rgba(13,29,57,.96),rgba(5,9,20,.96))!important;
    background-size:auto!important;
  }
}

/* =========================================================
   DJRMarket Mobile Topbar - busca e alertas sem abrir menu
   ========================================================= */
.djr-mobile-topbar{display:none}

@media(max-width:768px){
  .navbar.djr-navbar .navbar-toggler{display:none!important}
  .navbar.djr-navbar #nav{display:none!important}

  .djr-mobile-topbar{
    position:sticky;
    top:77px;
    z-index:1028;
    display:grid;
    grid-template-columns:minmax(0,1fr) auto auto auto;
    gap:8px;
    align-items:center;
    padding:8px 12px;
    background:rgba(5,9,20,.985);
    border-bottom:1px solid rgba(255,255,255,.10);
    box-shadow:0 10px 24px rgba(0,0,0,.20);
    backdrop-filter:blur(14px);
  }

  .djr-mobile-search{
    min-width:0;
    height:42px;
    display:flex;
    align-items:center;
    gap:8px;
    padding:0 12px;
    border-radius:999px;
    background:#071225;
    border:1px solid rgba(255,255,255,.13);
  }

  .djr-mobile-search i{color:#ffc400;font-size:16px;flex:0 0 auto}
  .djr-mobile-search input{
    width:100%;
    min-width:0;
    border:0!important;
    background:transparent!important;
    color:#fff!important;
    outline:0!important;
    font-size:15px!important;
    min-height:auto!important;
    padding:0!important;
  }
  .djr-mobile-search input::placeholder{color:#7f8da3}

  .djr-mobile-top-icon,
  .djr-mobile-top-text,
  .djr-mobile-top-cta,
  .djr-mobile-top-coins{
    height:42px;
    min-width:42px;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border-radius:999px;
    text-decoration:none!important;
    font-weight:950;
    border:1px solid rgba(255,255,255,.12);
    background:rgba(255,255,255,.045);
    color:#fff!important;
    white-space:nowrap;
  }

  .djr-mobile-top-icon i{font-size:19px}
  .djr-mobile-top-coins{gap:5px;padding:0 10px;color:#ffc400!important;border-color:rgba(255,196,0,.28);background:rgba(255,196,0,.08)}
  .djr-mobile-top-text{padding:0 12px;font-size:13px}
  .djr-mobile-top-cta{padding:0 14px;background:linear-gradient(135deg,#ffc400,#ffdc5a);color:#07172f!important;border:0;font-size:13px}

  .djr-mobile-notif-badge{
    position:absolute;
    top:-3px;
    right:-3px;
    min-width:18px;
    height:18px;
    padding:0 5px;
    border-radius:999px;
    background:#ffc400;
    color:#07172f;
    border:2px solid #050914;
    font-size:10px;
    line-height:15px;
    font-weight:950;
    text-align:center;
  }
}

@media(max-width:380px){
  .djr-mobile-topbar{grid-template-columns:minmax(0,1fr) auto auto;gap:6px;padding-left:8px;padding-right:8px}
  .djr-mobile-top-coins{display:none!important}
  .djr-mobile-top-text{padding:0 10px}
  .djr-mobile-top-cta{padding:0 12px}
}

/* =========================================================
   Criar anúncio - IA com imagem perto do botão
   ========================================================= */
.ai-product-upload-inline{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:12px;
  align-items:end;
  margin-top:14px;
}
.ai-product-upload-inline label{font-weight:800;color:#fff;margin-bottom:6px}
.ai-product-upload-inline .form-control{min-height:46px}
@media(max-width:768px){
  .ai-product-upload-inline{grid-template-columns:1fr;align-items:stretch}
  .ai-product-upload-inline .btn{width:100%}
}


/* =========================================================
   DJRMarket Mobile UX V4 - topo, hero e perfil rolável
   ========================================================= */
@media(max-width:768px){
  .navbar.djr-navbar{
    padding:10px 0 8px!important;
  }
  .navbar.djr-navbar .container{
    justify-content:center!important;
    align-items:center!important;
  }
  .djr-brand{
    align-items:center!important;
    justify-content:center!important;
    margin:0 auto!important;
    max-width:190px!important;
    text-align:center!important;
  }
  .djr-brand img{
    height:60px!important;
    margin:0 auto!important;
  }
  .djr-brand small{
    margin-left:0!important;
    margin-top:-9px!important;
    text-align:center!important;
  }
  .djr-mobile-topbar{
    top:78px!important;
    grid-template-columns:minmax(0,1fr) 44px 44px auto!important;
    padding:8px 14px 10px!important;
    gap:8px!important;
  }
  .djr-mobile-search{
    height:44px!important;
  }
  .djr-mobile-top-icon,
  .djr-mobile-top-coins,
  .djr-mobile-top-text,
  .djr-mobile-top-cta{
    height:44px!important;
    min-width:44px!important;
  }

  .djr-market-hero{
    margin-bottom:18px!important;
  }
  .djr-showcase-main.djr-showcase-compact{
    min-height:0!important;
    padding:18px!important;
    border-radius:22px!important;
    display:block!important;
    background:
      radial-gradient(circle at top,rgba(255,196,0,.10),transparent 36%),
      linear-gradient(180deg,rgba(7,23,47,.98),rgba(5,9,20,.96))!important;
    background-size:auto!important;
    text-align:center!important;
  }
  .djr-mobile-hero-logo-wrap{
    display:flex!important;
    flex-direction:column!important;
    align-items:center!important;
    justify-content:center!important;
    gap:8px!important;
  }
  .djr-mobile-hero-logo{
    display:block!important;
    width:min(230px,72vw)!important;
    height:auto!important;
    object-fit:contain!important;
    filter:drop-shadow(0 10px 26px rgba(0,0,0,.28));
  }
  .djr-hero-beta-desktop,
  .djr-showcase-main.djr-showcase-compact h1,
  .djr-showcase-main.djr-showcase-compact p{
    display:none!important;
  }
  .djr-hero-actions{
    margin-top:14px!important;
    width:100%!important;
    display:grid!important;
    grid-template-columns:1fr 1fr!important;
    gap:10px!important;
  }
  .djr-hero-actions .btn{
    width:100%!important;
    min-height:46px!important;
    display:flex!important;
    align-items:center!important;
    justify-content:center!important;
    padding-left:8px!important;
    padding-right:8px!important;
    white-space:nowrap!important;
  }

  .djr-mobile-profile-sheet{
    bottom:calc(72px + env(safe-area-inset-bottom))!important;
    height:calc(100dvh - 92px - env(safe-area-inset-bottom))!important;
    max-height:none!important;
    border-radius:26px 26px 0 0!important;
    overflow:hidden!important;
  }
  .djr-mobile-profile-sheet .offcanvas-header{
    flex:0 0 auto!important;
    padding:16px!important;
  }
  .djr-mobile-profile-sheet .offcanvas-body{
    overflow-y:auto!important;
    -webkit-overflow-scrolling:touch!important;
    max-height:none!important;
    padding:14px 14px 28px!important;
  }
  .djr-mobile-menu-grid{
    grid-template-columns:repeat(2,1fr)!important;
    gap:10px!important;
    padding-bottom:20px!important;
  }
  .djr-mobile-menu-grid a{
    min-height:74px!important;
    font-size:.82rem!important;
  }
}

@media(max-width:380px){
  .djr-mobile-topbar{
    top:72px!important;
    grid-template-columns:minmax(0,1fr) 42px 42px auto!important;
    padding-left:10px!important;
    padding-right:10px!important;
  }
  .djr-mobile-top-coins{
    display:inline-flex!important;
    min-width:54px!important;
    padding:0 8px!important;
    font-size:12px!important;
  }
  .djr-mobile-menu-grid a{
    min-height:70px!important;
  }
}

@media(min-width:769px){
  .djr-mobile-hero-logo-wrap{display:none!important}
  .djr-hero-beta-desktop{display:inline-flex!important}
}


/* =========================================================
   DJRMarket Mobile UX V5 - topo real sem logo duplicada
   ========================================================= */
@media(max-width:768px){
  /* No mobile o header clássico some para não duplicar a logo.
     A navegação principal fica na barra de busca/atalhos fixa. */
  .navbar.djr-navbar{
    display:none!important;
  }

  .djr-mobile-topbar{
    position:sticky!important;
    top:0!important;
    z-index:1090!important;
    grid-template-columns:minmax(0,1fr) 44px 44px auto!important;
    padding:10px 14px!important;
    background:rgba(5,9,20,.992)!important;
    border-bottom:1px solid rgba(255,255,255,.11)!important;
    box-shadow:0 12px 28px rgba(0,0,0,.26)!important;
  }

  .djr-mobile-search{
    height:46px!important;
  }

  .djr-mobile-top-icon,
  .djr-mobile-top-coins,
  .djr-mobile-top-text,
  .djr-mobile-top-cta{
    height:46px!important;
    min-width:46px!important;
  }

  main.container{
    padding-top:18px!important;
  }

  .djr-mobile-hero-logo-wrap{
    gap:12px!important;
  }

  .djr-mobile-hero-logo{
    width:min(285px,82vw)!important;
    max-height:150px!important;
  }

  .djr-mobile-hero-tagline{
    display:block!important;
    color:#fff!important;
    font-weight:950!important;
    font-size:clamp(1rem,4.4vw,1.35rem)!important;
    line-height:1.18!important;
    text-transform:uppercase!important;
    letter-spacing:-.03em!important;
    margin-top:2px!important;
    text-shadow:0 10px 26px rgba(0,0,0,.35)!important;
  }

  .djr-mobile-hero-tagline strong{
    color:#ffc400!important;
    font-weight:950!important;
  }

  .djr-showcase-main.djr-showcase-compact{
    padding:26px 18px 20px!important;
  }
}

@media(max-width:380px){
  .djr-mobile-topbar{
    top:0!important;
    grid-template-columns:minmax(0,1fr) 42px 42px auto!important;
  }
  .djr-mobile-hero-logo{
    width:min(250px,82vw)!important;
  }
}
