/* ==================================================
   UZIGABEK — GB MODULI
================================================== */

/* Asosiy sahifa */
.gb-page-header {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 20px;
  color: #fff;
  background: linear-gradient(135deg, #171717 0%, #292929 68%, #3d1111 100%);
  border-bottom: 3px solid #ea1c1c;
  border-radius: 10px;
  box-sizing: border-box;
}

.gb-page-heading { min-width: 0; }

.gb-page-title {
  margin: 0;
  color: #fff;
  font: 700 clamp(23px, 3vw, 31px)/1.25 "Open Sans", Arial, sans-serif;
  overflow-wrap: anywhere;
}

.gb-page-subtitle {
  margin: 7px 0 0;
  color: rgba(255,255,255,.7);
  font-size: 13px;
  line-height: 1.5;
}

.gb-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: flex-end;
}

.gb-action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 17px;
  border-radius: 7px;
  font-size: 13px;
  line-height: 1;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.gb-action-primary {
  color: #fff !important;
  background: #ea1c1c;
  border: 1px solid #ea1c1c;
}

.gb-action-secondary {
  color: #fff !important;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
}

.gb-action-link:hover {
  color: #fff !important;
  background: #111;
  border-color: #fff;
  transform: translateY(-1px);
}

.gb-page-content {
  display: block;
  width: 100%;
  min-width: 0;
}

/* Yozuvlar ro'yxati */
#allEntries {
  display: grid;
  gap: 17px;
  width: 100%;
}

#allEntries > .report-spam-target {
  min-width: 0;
  margin: 0;
  padding: 0;
}

/* Eski shablondan qolgan takroriy xabarni yashiradi. */
#allEntries > .report-spam-target > .cMessage {
  display: none !important;
}

/* GB yozuv kartasi */
.gb-entry {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden;
  color: #292929;
  background: #fff !important;
  border: 1px solid #e5e7eb !important;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.gb-entry:hover {
  border-color: #d8d8d8 !important;
  box-shadow: 0 8px 22px rgba(0,0,0,.11);
  transform: translateY(-2px);
}

.gb-entry.cBlock1,
.gb-entry.cBlock2 { background: #fff !important; }

.gb-entry-header {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  justify-content: space-between;
  padding: 13px 15px;
  background: #fafafa;
  border-bottom: 1px solid #e8eaed;
}

.gb-entry-author {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 9px;
  align-items: center;
  min-width: 0;
}

.gb-entry-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  min-height: 29px;
  padding: 2px 6px;
  color: #fff;
  background: #ea1c1c;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.gb-entry-name {
  color: #202020;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.gb-entry-username a {
  color: #ea1c1c;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.gb-entry-username a:hover { text-decoration: underline; }

.gb-entry-date {
  color: #858585;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.gb-entry-contact {
  padding: 3px 6px;
  color: #555;
  background: #eee;
  border-radius: 4px;
  font-size: 10px;
  line-height: 1.3;
  text-decoration: none;
}

.gb-entry-contact:hover {
  color: #fff;
  background: #ea1c1c;
}

/* Reyting va moderator paneli */
.gb-entry-controls {
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.gb-entry-rating {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  white-space: nowrap;
}

.gb-rating-value {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 25px;
  padding: 0 7px;
  border-radius: 5px;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
}

.gb-rating-positive { color: #167a36; background: #e9f8ee; }
.gb-rating-negative { color: #b42323; background: #fff0f0; }
.gb-rating-zero { color: #666; background: #eee; }

.gb-rating-actions {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.gb-rating-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 27px;
  height: 27px;
  padding: 0;
  background: #fff;
  border: 1px solid #dedede;
  border-radius: 5px;
  box-sizing: border-box;
  text-decoration: none;
}

a.gb-rating-button:hover {
  background: #f0f0f0;
  border-color: #bbb;
}

.gb-rating-button img {
  display: block;
  width: 13px;
  height: 13px;
  margin: 0;
  padding: 0;
  border: 0;
}

.gb-rating-disabled { cursor: default; opacity: .55; }

.gb-entry-moderator {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

/* Yozuv matni */
.gb-entry-message {
  padding: 17px 18px;
  color: #333;
  font-size: 14px;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.gb-entry-message p:first-child { margin-top: 0; }
.gb-entry-message p:last-child { margin-bottom: 0; }
.gb-entry-message img { max-width: 100%; height: auto; }
.gb-entry-message a { color: #ea1c1c; overflow-wrap: anywhere; }

/* Administrator javobi */
.gb-entry-answer {
  display: grid;
  grid-template-columns: auto minmax(0,1fr);
  gap: 10px;
  margin: 0 18px 16px;
  padding: 12px 14px;
  color: #444;
  background: #fff7f7;
  border: 1px solid #f1cece;
  border-left: 4px solid #ea1c1c;
  border-radius: 7px;
}

.gb-entry-answer-label { color: #9d1515; font-size: 13px; }

.gb-entry-answer-text {
  min-width: 0;
  font-size: 13px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

/* Joylashuv */
.gb-entry-location {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  padding: 10px 18px;
  color: #777;
  background: #fafafa;
  border-top: 1px solid #eee;
  font-size: 11px;
}

.gb-location-item {
  display: inline-flex;
  gap: 4px;
  align-items: center;
}

.gb-location-item strong { color: #4d4d4d; }

/* UCOZ yaratadigan MCaddFrm formasi */
#MCaddFrm {
  width: 100%;
  margin: 20px 0;
  padding: 17px;
  color: #333;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-sizing: border-box;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
}

#MCaddFrm table {
  width: 100%;
  margin: 0 0 9px;
  border: 0;
  border-spacing: 0;
}

#MCaddFrm table:last-of-type { margin-bottom: 0; }

#MCaddFrm td {
  padding: 4px;
  border: 0;
  font-size: 12px;
}

#MCaddFrm input[type="text"],
#MCaddFrm textarea,
#MCaddFrm select {
  width: 100%;
  max-width: 100%;
  margin: 0 !important;
  color: #222;
  background: #fafafa;
  border: 1px solid #d9dde3;
  border-radius: 7px;
  outline: none;
  box-sizing: border-box;
  font: 14px "Open Sans", Arial, sans-serif;
}

#MCaddFrm input[type="text"] {
  height: 42px;
  padding: 0 11px;
}

#MCaddFrm textarea {
  min-height: 105px !important;
  padding: 11px;
  line-height: 1.55;
  resize: vertical !important;
}

#MCaddFrm select {
  width: auto;
  min-width: 65px;
  height: 34px;
  padding: 0 25px 0 8px;
  font-size: 11px;
}

#MCaddFrm input[type="text"]:focus,
#MCaddFrm textarea:focus,
#MCaddFrm select:focus {
  background: #fff;
  border-color: #ea1c1c;
  box-shadow: 0 0 0 3px rgba(234,28,28,.1);
}

/* CAPTCHA */
#MCaddFrm .captcha-answer {
  width: 115px !important;
  height: 42px;
  padding: 0 10px;
  text-align: center;
  font-size: 16px;
}

#MCaddFrm .captcha-question {
  width: auto;
  max-width: 170px;
  height: auto;
  margin-left: 7px;
  vertical-align: middle;
  border: 1px solid #dedede;
  border-radius: 5px;
  cursor: pointer;
}

#MCaddFrm .captcha-renew {
  width: 18px;
  height: 18px;
  margin: 0 3px;
  vertical-align: middle;
  cursor: pointer;
}

/* Yuborish tugmasi */
#MCaddFrm #mchatBtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 55px;
  height: 42px;
  margin: 0;
  padding: 0 14px;
  color: #fff !important;
  background: #ea1c1c !important;
  border: 1px solid #ea1c1c !important;
  border-radius: 7px;
  font: 700 12px/1 "Open Sans", Arial, sans-serif;
  text-shadow: none !important;
  cursor: pointer;
}

#MCaddFrm #mchatBtn:hover {
  color: #fff !important;
  background: #111 !important;
  border-color: #111 !important;
}

#MCaddFrm a img { vertical-align: middle; }
#MCaddFrm #mchatAjax { margin-left: 7px; vertical-align: middle; }

/* Responsive */
@media only screen and (max-width: 700px) {
  .gb-page-header {
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
  }

  .gb-page-actions { justify-content: flex-start; }
  .gb-action-link { flex: 1 1 auto; }
  .gb-entry-header { flex-direction: column; }

  .gb-entry-controls {
    width: 100%;
    justify-content: space-between;
  }

  .gb-entry-message { padding: 15px; }

  .gb-entry-answer {
    grid-template-columns: minmax(0,1fr);
    margin: 0 15px 14px;
  }

  .gb-entry-location { padding: 10px 15px; }
  #MCaddFrm { padding: 12px; }
  #MCaddFrm textarea { font-size: 16px; }
}

@media only screen and (max-width: 480px) {
  .gb-page-actions { flex-direction: column; }
  .gb-action-link { width: 100%; }
  .gb-entry-author { align-items: flex-start; }
  .gb-entry-date { flex-basis: 100%; }
  .gb-entry-controls { flex-wrap: wrap; }

  #MCaddFrm td {
    display: block;
    width: 100% !important;
    padding: 4px 0;
    text-align: left !important;
  }

  #MCaddFrm .captcha-answer { width: 100% !important; }
  #MCaddFrm #mchatBtn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .gb-entry,
  .gb-action-link { transition: none; }

  .gb-entry:hover,
  .gb-action-link:hover { transform: none; }
}
/* GB avatarining yakuniy o‘lchami va oralig‘i */

#allEntries .gb-entry .gb-entry-identity {
  gap: 14px !important;
}

#allEntries .gb-entry .gb-entry-avatar {
  flex: 0 0 42px !important;
  width: 42px !important;
  height: 42px !important;
}

#allEntries .gb-entry .gb-entry-avatar > a,
#allEntries .gb-entry .gb-entry-avatar > img,
#allEntries .gb-entry .gb-entry-avatar-placeholder,
#allEntries .gb-entry .gb-entry-avatar img {
  width: 42px !important;
  height: 42px !important;
  min-width: 42px !important;
  max-width: 42px !important;
  min-height: 42px !important;
  max-height: 42px !important;
}

#allEntries .gb-entry .gb-entry-avatar img {
  object-fit: cover !important;
  object-position: center !important;
}

#allEntries .gb-entry .gb-entry-avatar-placeholder {
  font-size: 17px !important;
}

#allEntries .gb-entry .gb-entry-author {
  flex: 1 1 auto;
  min-width: 0;
}


/* Telefon */

@media only screen and (max-width: 480px) {
  #allEntries .gb-entry .gb-entry-identity {
    gap: 11px !important;
  }

  #allEntries .gb-entry .gb-entry-avatar {
    flex-basis: 36px !important;
    width: 36px !important;
    height: 36px !important;
  }

  #allEntries .gb-entry .gb-entry-avatar > a,
  #allEntries .gb-entry .gb-entry-avatar > img,
  #allEntries .gb-entry .gb-entry-avatar-placeholder,
  #allEntries .gb-entry .gb-entry-avatar img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
  }

  #allEntries .gb-entry .gb-entry-avatar-placeholder {
    font-size: 15px !important;
  }
}
/* ==================================================
   GB BO‘LIMIDAGI MYINF_8 INFORMERI
================================================== */

#gb-informer-8.gb-informer-slot {
  position: relative;
  z-index: 0;
  isolation: isolate;

  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;

  margin: 0 0 22px;
  padding: 0;

  overflow: hidden;
  box-sizing: border-box;

  contain: layout paint;
}

#gb-informer-8.gb-informer-slot > * {
  max-width: 100%;
  box-sizing: border-box;
}

#gb-informer-8.gb-informer-slot img {
  max-width: 100%;
  height: auto;
}

#gb-informer-8.gb-informer-slot iframe,
#gb-informer-8.gb-informer-slot video,
#gb-informer-8.gb-informer-slot object,
#gb-informer-8.gb-informer-slot embed {
  display: block;
  width: 100%;
  max-width: 100%;
  border: 0;
}

#gb-informer-8.gb-informer-slot table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}

/* Informer ichidagi uzun matnlar sahifani kengaytirmaydi */

#gb-informer-8.gb-informer-slot a,
#gb-informer-8.gb-informer-slot p,
#gb-informer-8.gb-informer-slot div,
#gb-informer-8.gb-informer-slot span {
  overflow-wrap: anywhere;
}


/* Mobil */

@media only screen and (max-width: 700px) {
  #gb-informer-8.gb-informer-slot {
    margin-bottom: 16px;
  }
}