/* =======================================================
   BASE
   ======================================================= */
.gg-codes-wrapper {
  margin: 24px 0;
}
.gg-title {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.gg-update-note {
  margin-bottom: 16px;
  font-size: 14px;
  color: #4b5563;
  border-left: 3px solid #3b82f6;
  padding-left: 10px;
}

/* =======================================================
   LIST
   ======================================================= */
.gg-codes-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* =======================================================
   CARD
   ======================================================= */
.gg-code-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 16px;
  position: relative;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* =======================================================
   NEW LABEL
   ======================================================= */
.gg-new-label {
  display: inline-block;
  background: #ffedd5;
  color: #c2410c;
  border: 1px solid #fdba74;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  max-width: max-content;
}

/* =======================================================
   TOP ROW (desktop)
   ======================================================= */
.gg-code-top-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.gg-code-left-side {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.gg-code-line {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

/* CODE */
.gg-code-value {
  border-radius: 6px;
  border: 1px solid #3b82f6;
  background: #ffffff;
  padding: 12px 44px 12px 12px; 
  font-size: 14px;
  font-weight: 700;
  color: #111827 !important;
  margin-bottom:8px;
  cursor: pointer;
  width: 100%;  
  max-width: 100% !important;
  flex: 0 0 100%;   

  display: flex;    
  align-items: center;

  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: 0.15s;
  text-transform: none !important;
  position: relative;
}

.gg-code-value:hover {
  border-color: #2563eb;
  background: #f0f7ff;
}

.gg-code-value::after{
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);

  width: 18px;
  height: 18px;
  opacity: .75;

  background-repeat: no-repeat;
  background-position: center;
  background-size: 18px 18px;

  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='9' width='13' height='13' rx='2' ry='2'/%3E%3Cpath d='M5 15H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2h9a2 2 0 0 1 2 2v1'/%3E%3C/svg%3E");
  pointer-events: none;
}

.gg-code-value:hover::after{ opacity: 1; }

/* COPY BUTTON */
.gg-copy-tools {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gg-copy-btn {
  border-radius: 6px;
  border: 1px solid #3b82f6;
  background: #e0f2fe;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #111827 !important;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  transition: 0.15s;
}
.gg-copy-btn:hover {
  background: #dbeafe;
}

.gg-copy-stats {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  white-space: nowrap;
}

.gg-copy-stats .count {
  color: #0f172a;
}

.gg-popular-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  align-self: flex-start;
  width: max-content;
  max-width: max-content;
  flex: 0 0 auto;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid #fcd34d;
  background: linear-gradient(180deg, #fffbeb 0%, #fef3c7 100%);
  color: #92400e;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gg-popular-code::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* =======================================================
   RIGHT BUTTONS
   ======================================================= */
.gg-code-right {
  display: flex;
  gap: 6px;
}

.gg-status-btn {
  border-radius: 6px;
  border: 1px solid transparent;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  white-space: nowrap;
  cursor: pointer;
  transition: 0.15s;
  color: #111827 !important;
}

.gg-status-btn .icon {
  font-size: 14px;
}

/* Работает */
.gg-status-working {
  background: #dcfce7;
  border-color: #86efac;
  color: #166534 !important;
}
.gg-status-working:hover {
  background: #bbf7d0;
}

/* Сообщить о проблеме */
.gg-status-problem {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b !important;
}
.gg-status-problem:hover {
  background: #fecaca;
}

/* =======================================================
   DATES
   ======================================================= */
.gg-dates {
  font-size: 14px;
  color: #6b7280;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.gg-date-item .label {
  font-weight: 700;
  margin-right: 4px;
}

/* =======================================================
   REWARD BLOCK
   ======================================================= */
.gg-reward-block {
  max-width: 100%;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 14px;
  color: #1f2937;
  white-space: normal;
  word-break: break-word;
  margin-top: 8px; 
}

.gg-code-card--reward-link {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 6px 16px rgba(0,0,0,0.06);
}

.gg-reward-link-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}

.gg-reward-link-side--left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.gg-reward-resource-icon {
  width: 108px;
  height: 108px;
  border-radius: 18px;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex: 0 0 108px;
}

.gg-reward-resource-icon__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gg-reward-resource-icon__text {
  font-size: 20px;
  font-weight: 800;
  color: #3730a3;
}

.gg-reward-link-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.gg-reward-link-title {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  line-height: 1.15;
}

.gg-reward-link-side--center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}

.gg-reward-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 210px;
  min-height: 58px;
  padding: 14px 24px;
  border-radius: 16px;
  background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%);
  border: 1px solid #2563eb;
  color: #ffffff !important;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  transition: 0.15s;
  box-shadow: 0 14px 26px rgba(37, 99, 235, 0.22);
}

.gg-code-card--reward-link a.gg-reward-link-btn,
.gg-code-card--reward-link a.gg-reward-link-btn:hover,
.gg-code-card--reward-link a.gg-reward-link-btn:focus,
.gg-code-card--reward-link a.gg-reward-link-btn:active,
.gg-code-card--reward-link a.gg-reward-link-btn:visited {
  text-decoration: none !important;
}

.gg-reward-link-btn:hover {
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  color: #f8fbff !important;
  text-decoration: none !important;
}

.gg-reward-link-btn:visited,
.gg-reward-link-btn:focus,
.gg-reward-link-btn:active {
  color: #ffffff !important;
  text-decoration: none !important;
}

.gg-reward-link-btn:hover,
.gg-reward-link-btn:hover span,
.gg-reward-link-btn:focus,
.gg-reward-link-btn:focus span,
.gg-reward-link-btn:active,
.gg-reward-link-btn:active span,
.gg-reward-link-btn:visited,
.gg-reward-link-btn:visited span {
  color: #ffffff !important;
  text-decoration: none !important;
}

.gg-reward-link-btn__icon {
  font-size: 18px;
  line-height: 1;
}

.gg-reward-open-stats {
  font-size: 12px;
  color: #6b7280;
  font-weight: 600;
}

.gg-reward-collect-status {
  font-size: 12px;
  font-weight: 700;
  color: #15803d;
}

/* =======================================================
   Всплывашка Спасибо, ваша жалоба отправлена на модерацию
   ======================================================= */
.gg-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: #ffffff;
  color: #111827;
  padding: 10px 20px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
  z-index: 9999;
  border: 1px solid #e5e7eb;
}

.gg-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* =======================================================
   MODAL
   ======================================================= */
.gg-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9998;
}
.gg-modal {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  width: 100%;
  max-width: 430px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}
.gg-modal-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}
.gg-modal-text {
  font-size: 14px;
  color: #4b5563;
  margin-bottom: 10px;
}
.gg-modal-textarea {
  width: 100%;
  min-height: 90px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  padding: 8px 10px;
  font-size: 14px;
}

/* футер модалки с кнопками */
.gg-modal-footer {
  margin-top: 12px;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

/* базовая кнопка */
.gg-btn {
  border-radius: 8px;
  padding: 6px 12px;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
}

/* красная — ОТМЕНА */
.gg-btn-red {
  background: #f97373;
  color: #ffffff;
}
.gg-btn-red:hover {
  background: #ef4444;
}

/* зелёная — ОТПРАВИТЬ */
.gg-btn-green {
  background: #22c55e;
  color: #ffffff;
}
.gg-btn-green:hover {
  background: #16a34a;
}

/* =======================================================
   REMOVE FOCUS OUTLINE
   ======================================================= */
.gg-code-value:focus,
.gg-copy-btn:focus,
.gg-status-btn:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* =======================================================
   МОБИЛЬНАЯ + ПЛАНШЕТНАЯ СТРУКТУРА
   ======================================================= */
@media (max-width: 767px) {

.gg-code-card {
  padding: 16px;
  gap: 12px;  
}

  .gg-code-top-row,
  .gg-code-left-side,
  .gg-code-right,
  .gg-code-line {
    display: contents;
  }

  .gg-new-label      { order: 1; }
  .gg-dates          { order: 2; width: 100%; }
  .gg-popular-code   { order: 3; position: static; justify-self: start; }

  .gg-code-value     { order: 4; width: 100% !important; flex: 0 0 100% !important; }
  .gg-copy-tools     { order: 5; align-self: flex-start; }

  .gg-code-badges    { order: 6; width: 100%; }
  .gg-reward-block   { order: 7; width: 100%; }
  .gg-meta-block     { order: 8; width: 100%; }

  .gg-status-working { order: 9; width: 100%; }
  .gg-status-problem { order: 10; width: 100%; }

  .gg-status-btn {
    margin-top: 6px;
  }

  .gg-code-card--reward-link .gg-reward-link-layout {
    order: 3;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .gg-code-card--reward-link .gg-dates {
    width: 100%;
  }

  .gg-code-card--reward-link .gg-reward-resource-icon {
    width: 88px;
    height: 88px;
    flex-basis: 88px;
  }

  .gg-code-card--reward-link .gg-reward-link-side--left {
    align-items: center;
  }

  .gg-code-card--reward-link .gg-reward-link-title {
    font-size: 22px;
  }

  .gg-code-card--reward-link .gg-reward-link-copy {
    gap: 6px;
  }

  .gg-code-card--reward-link .gg-reward-link-side--center,
  .gg-code-card--reward-link .gg-reward-link-btn {
    width: 100%;
    align-items: stretch;
  }

  .gg-code-card--reward-link .gg-reward-link-btn {
    min-width: 0;
  }
}

/* =======================================================
   DESKTOP
   ======================================================= */
@media (min-width: 1025px) {
  .gg-popular-code{
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: max-content;
    max-width: max-content;
  }

  .gg-code-top-row{
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 12px 10px;
    align-items: start;
  }

  .gg-code-left-side,
  .gg-code-line{
    display: contents;
  }

  .gg-code-value{
    grid-column: 1 / -1;
    grid-row: 1;
    width: 100%;
    max-width: 100% !important;
  }

  .gg-copy-tools{
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .gg-code-right{
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    display: flex;
    gap: 6px;
  }
}

.gg-code-card .gg-code-value {
  background: #ffffff !important;
  color: #111827 !important;
}
.gg-code-card .gg-copy-btn {
  background: #e0f2fe !important;
  color: #111827 !important;
}
.gg-code-card .gg-status-working {
  background: #dcfce7 !important;
  color: #166534 !important;
}
.gg-code-card .gg-status-problem {
  background: #fee2e2 !important;
  color: #991b1b !important;
}

/* Ховеры */
.gg-code-card .gg-code-value:hover,
.gg-code-card .gg-code-value:active,
.gg-code-card .gg-code-value:focus {
  background: #f0f7ff !important;
  color: #111827 !important;
  border-color: #2563eb !important;
}
.gg-code-card .gg-copy-btn:hover,
.gg-code-card .gg-copy-btn:active,
.gg-code-card .gg-copy-btn:focus {
  background: #dbeafe !important;
  color: #111827 !important;
}
.gg-code-card .gg-status-working:hover,
.gg-code-card .gg-status-working:active,
.gg-code-card .gg-status-working:focus {
  background: #bbf7d0 !important;
  color: #166534 !important;
}
.gg-code-card .gg-status-problem:hover,
.gg-code-card .gg-status-problem:active,
.gg-code-card .gg-status-problem:focus {
  background: #fecaca !important;
  color: #991b1b !important;
}

/* ===========================================================
   ИНФОБЛОК + КНОПКА «ПРЕДЛОЖИТЬ КОД»
   =========================================================== */

.gcs-info-box {
    margin: 25px 0 10px;
    padding: 18px 20px;
    border: 1.5px solid #e0e6ef;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    text-align: center;
}
.gcs-info-box p {
    margin: 0 0 12px;
    font-size: 16px;
    color: #3c4858;
    line-height: 1.45;
}

.gcs-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;

    padding: 8px 16px;
    background: #fff;
    border: 1.5px solid #1a73e8;
    color: #1a73e8;

    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;

    transition: background .15s ease;
}
.gcs-btn:hover {
    background: #f0f6ff;
}

/* ===========================================================
   МОДАЛКА
   =========================================================== */

.gcs-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    z-index: 99999;

    justify-content: center;
    align-items: center;
}

.gcs-modal {
    position: relative;

    width: 380px;
    background: #fff;
    border-radius: 16px;

    padding: 22px 26px 18px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.18);
}

/* крестик */
.gcs-close {
    position: absolute;
    top: 14px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #333;
}

/* заголовок */
.gcs-modal h3 {
    font-size: 18px;
    margin: 0 0 4px;
    font-weight: 700;
}

/* подписи */
.gcs-modal label {
    display: block;
    margin: 14px 0 5px;
    font-size: 13px;
    font-weight: 600;
    color: #333;
}

/* поля */
.gcs-input,
.gcs-textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    border: 1px solid #d7d7d7;
    background: #fafafa;
}
.gcs-textarea {
    min-height: 80px;
}

/* ===========================================================
   КНОПКИ В МОДАЛКЕ — ЦЕНТРОВАНИЕ
   =========================================================== */

.gcs-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 18px;
}

.gcs-btn-cancel,
.gcs-btn-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-width: 120px;
    height: 40px;

    padding: 0 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

/* красная */
.gcs-btn-cancel {
    background: #ff6e6e;
    color: #fff;
}
.gcs-btn-cancel:hover {
    background: #ff5050;
}

/* зелёная */
.gcs-btn-submit {
    background: #27c06f;
    color: #fff;
}
.gcs-btn-submit:hover {
    background: #1fa75e;
}

/* ===========================================================
   УВЕДОМЛЕНИЕ ПО ЦЕНТРУ ЭКРАНА
   =========================================================== */

.gcs-center-notice {
    position: fixed;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);

    background: #fff;
    padding: 14px 20px;
    border-radius: 14px;

    box-shadow: 0 6px 22px rgba(0,0,0,0.18);

    font-size: 15px;
    font-weight: 600;
    color: #2c2c2c;

    opacity: 0;
    transition: opacity .12s ease;
    z-index: 1000000;
}
.gcs-center-notice.visible {
    opacity: 1;
}

/* ===========================================================
   ИКОНКИ
   =========================================================== */

.gcs-icon {
    margin-right: 8px;
    vertical-align: middle;
}

.gcodes-more-codes-box {
    background: #f8fbff;
    border: 1px solid #dbe9ff;
    border-radius: 14px;
    padding: 18px 20px;
    margin: 25px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.gcodes-more-codes-box p {
    margin: 0 0 12px;
    font-size: 15px;
    line-height: 1.55;
    color: #46556b;
}

.gcodes-more-codes-box p:last-child {
    margin-bottom: 0;
}

.gcodes-more-codes-box a,
.gcodes-more-codes-box a:hover,
.gcodes-more-codes-box a:focus {
    color: #1d4ed8;
    font-weight: 600;
}

.gcodes-expired-box {
    background: #fff6f6;
    border: 1px solid #ffd4d4;
    border-radius: 12px;
    padding: 16px 18px;
    margin: 20px 0;
    font-size: 16px;
    line-height: 1.45;
    color: #a33a3a;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Контейнер */
.gcodes-subscribe-box {
    margin: 0 0 10px; 
    width: 100%;
}

/* Кнопка */
.gcodes-subscribe-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    width: 100%;
    padding: 12px 20px;

    background: #229ED9;
    color: #fff;

    font-size: 17px;
    font-weight: 600;
    text-decoration: none;

    border-radius: 16px;
    box-shadow: 0 3px 10px rgba(34,158,217,0.25);

    transition: 0.25s ease;
}

/* Ховер */
.gcodes-subscribe-btn:hover {
    background: #1b8dc2;
    box-shadow: 0 4px 12px rgba(34,158,217,0.35);
    transform: translateY(-1px);
}

/* Иконка */
.gcodes-subscribe-btn .tg-icon {
    display: flex;
    align-items: center;
}

.gcodes-subscribe-btn,
.gcodes-subscribe-btn *,
.gcodes-subscribe-btn:visited,
.gcodes-subscribe-btn:hover,
.gcodes-subscribe-btn:active {
    color: #ffffff !important;
    text-decoration: none !important;
}

/* =====================================
   ПРОГНОЗ ВЫХОДА КОДОВ
===================================== */

.gcodes-predict-box {
    margin: 20px 0;
    padding: 16px 18px;
    background: #ffffff;
    border: 1px solid #e6eef7; 
    border-radius: 16px;   
}

.gcodes-predict-head {
    margin-bottom: 10px;
}

.gcodes-predict-status {
    display: inline-block;
    padding: 4px 12px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 999px;
    background: #eef6ff;
    color: #2563eb;
}

.gcodes-predict-content {
    font-size: 15px;
    color: #475569;
    line-height: 1.6;
}

.gcodes-predict-row + .gcodes-predict-row {
    margin-top: 6px;
}

.gg-title-sub {
    display: block;
    font-size: 14px;
    font-weight: 400;
    color: #8a94a6;
    margin-top: 4px;
}

/* ===========================================================
 * Стили для блока статистики
 * =========================================================== */

.gg-stats-wrapper {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 20px;
    margin: 25px 0;
    border: 1px solid #dee2e6;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.gg-stats-tabs {
    position: relative;
    min-height: 300px;
}

.gg-stats-tabs input[type="radio"] {
    display: none;
}

.gg-tab-label {
    display: inline-block;
    padding: 14px 24px;
    margin: 0 5px;
    background: white;
    border: 2px solid #dee2e6;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    cursor: pointer;
    font-weight: 600;
    color: #6c757d;
    transition: all 0.3s ease;
    position: relative;
    top: 2px;
}

.gg-tab-label:hover {
    background: #f8f9fa;
    color: #495057;
}

.gg-stats-tabs input[type="radio"]:checked + .gg-tab-label {
    background: white;
    border-color: #4dabf7;
    color: #1971c2;
    box-shadow: 0 -2px 8px rgba(77, 171, 247, 0.1);
}

.tab-icon {
    font-size: 1.2em;
    margin-right: 8px;
}

.tab-title {
    font-size: 15px;
}

.tab-subtitle {
    font-size: 12px;
    opacity: 0.8;
    margin-left: 5px;
}

.gg-tab-content {
    display: none;
    background: white;
    border: 2px solid #dee2e6;
    border-radius: 0 8px 8px 8px;
    padding: 30px;
    margin-top: -2px;
}

#gg-tab-week:checked ~ #gg-content-week,
#gg-tab-all:checked ~ #gg-content-all {
    display: block;
}

.stats-card {
    text-align: center;
}

.stats-number {
    font-size: 48px;
    font-weight: 800;
    color: #1971c2;
    line-height: 1;
    margin-bottom: 15px;
    text-shadow: 0 2px 4px rgba(25, 113, 194, 0.1);
}

.stats-label {
    font-size: 18px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 10px;
}

.stats-desc {
    font-size: 15px;
    color: #6c757d;
    line-height: 1.5;
    margin-bottom: 20px;
    padding: 0 20px;
}

.stats-hint {
    background: #e7f5ff;
    border: 1px solid #a5d8ff;
    border-radius: 6px;
    padding: 12px 16px;
    font-size: 14px;
    color: #1864ab;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.hint-icon {
    font-size: 16px;
}

.stats-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px dashed #dee2e6;
}

.stats-note {
    font-size: 14px;
    color: #6c757d;
    line-height: 1.5;
}

.stats-note strong {
    color: #495057;
}

/* Адаптивность */
@media (max-width: 768px) {
    .gg-stats-wrapper {
        padding: 15px;
        margin: 20px 0;
    }
    
    .gg-tab-label {
        padding: 12px 16px;
        font-size: 14px;
        margin: 0 2px;
    }
    
    .tab-subtitle {
        display: block;
        margin-left: 0;
        font-size: 11px;
    }
    
    .stats-number {
        font-size: 40px;
    }
    
    .stats-label {
        font-size: 16px;
    }
    
    .stats-desc {
        font-size: 14px;
        padding: 0;
    }
    
    .gg-tab-content {
        padding: 20px 15px;
    }
}

/* Анимация при обновлении счетчика */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.stats-number.updated {
    animation: pulse 0.5s ease;
}

/* Шкала вероятности выхода кода */
.gcodes-prob-wrapper {
    margin-top: 16px;
}

.gcodes-prob-title {
    text-align: center;
    font-size: 15px;
    margin-bottom: 8px;
}

/* 5 колонок */
.gcodes-prob-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: 14px auto;
    column-gap: 4px;
    row-gap: 6px;
}

/* Сегменты */
.gcodes-prob-segment {
    grid-row: 1;
    background: #e5e7eb;
    border-radius: 4px;
}

/* Активные сегменты */
.gcodes-prob-segment.active:nth-child(1) { background: #ef4444; }
.gcodes-prob-segment.active:nth-child(2) { background: #f97316; }
.gcodes-prob-segment.active:nth-child(3) { background: #f59e0b; }
.gcodes-prob-segment.active:nth-child(4) { background: #84cc16; }
.gcodes-prob-segment.active:nth-child(5) { background: #22c55e; }

/* Подписи */
.gcodes-prob-label {
    grid-row: 2;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.gg-author-card {
    display: flex;
    flex-direction: column;
    border: 1px solid #cfe7f3;
    border-radius: 12px;
    padding: 14px 18px;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
}

.gg-author-header {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.gg-author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
    border: 1px solid #229ed9;
}

.gg-author-name {
    font-weight: 600;
    font-size: 14px;
    color: #1b7fbf;
}

.gg-author-name::after {
    content: ' 🛡️';
}

.gg-author-body p {
    margin: 6px 0;
    font-size: 14px;
    color: #333;
    line-height: 1.4;
}

.gg-author-meta {
    font-size: 12px;
    color: #666;
    margin-top: 6px;
}

.gg-author-meta a {
    color: #1b7fbf;
    text-decoration: none;
}

.gg-author-meta a:hover {
    text-decoration: underline;
}

/* =========================================================
   PROOF — стили + lightbox
   ========================================================= */

.gg-code-card .gg-proof-actions,
.gg-code-card .gg-proof-actions *,
.gg-code-card .gg-proof,
.gg-code-card .gg-proof *{
  color: #1f2d3d !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  opacity: 1 !important;
}

.gg-code-card .gg-proof-actions{
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gg-code-card .gg-proof-toggle{
  display: inline-flex;
  align-items: center;
  gap: 10px;

  padding: 12px 16px;
  border-radius: 12px;

  background: #ffffff !important;
  border: 1.5px solid #d6e6ff !important;
  color: #1f2d3d !important;

  font-weight: 700;
  font-size: 14px;
  line-height: 1;

  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0,0,0,.05);
}

.gg-code-card .gg-proof-toggle:hover{
  background: #f6fbff !important;
  border-color: #bcd8ff !important;
  box-shadow: 0 10px 22px rgba(0,0,0,.06);
}

.gg-code-card .gg-proof-toggle:active{ transform: translateY(1px); }

.gg-code-card .gg-proof-toggle-caret{
  opacity: .7 !important;
  font-size: 12px;
  transition: transform .15s ease;
}
.gg-code-card .gg-proof-toggle.is-open .gg-proof-toggle-caret{ transform: rotate(180deg); }

.gg-code-card .gg-proof-toggle:focus{ outline: none !important; }
.gg-code-card .gg-proof-toggle:focus-visible{
  outline: 2px solid #2b74ff !important;
  outline-offset: 2px;
}

.gg-code-card .gg-proof{
  margin-top: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid #e6eef8 !important;
  background: #fbfdff !important;
}

.gg-code-card .gg-proof-title{
  margin: 10px 0 8px;
  font-size: 13px;
  font-weight: 800;
  color: #2a3a4d !important;
}

.gg-code-card .gg-proof-note{
  padding: 10px 12px;
  background: #ffffff;
  border: 1px dashed #dbe5f1;
  border-radius: 12px;
  margin-bottom: 10px;
  font-size: 14px;
  line-height: 1.45;
}

/* Скриншоты */
.gg-code-card .gg-proof-grid{
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 980px){ .gg-code-card .gg-proof-grid{ grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 720px){ .gg-code-card .gg-proof-grid{ grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 520px){ .gg-code-card .gg-proof-grid{ grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.gg-code-card .gg-proof-thumb{
  width: 100%;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  overflow: hidden;
  padding: 0;
  background: #fff;
  cursor: pointer;
}

.gg-code-card .gg-proof-thumb img{
  width: 100%;
  height: 96px;
  object-fit: cover;
  display: block;
  transition: transform .18s ease;
}
.gg-code-card .gg-proof-thumb:hover img{ transform: scale(1.03); }

/* Видео компактнее */
.gg-code-card .gg-proof-video{
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #e6eef8 !important;
  background: #000;
}
.gg-code-card .gg-proof-video iframe{
  width: 100% !important;
  height: 280px !important;
  border: 0;
  display: block;
  background: #000;
}
@media (max-width: 700px){
  .gg-code-card .gg-proof-video iframe{ height: 200px !important; }
}
.gg-code-card .gg-proof-video video{
  width: 100%;
  height: auto;
  max-height: 320px;
  display: block;
  background: #000;
}

/* ===== Lightbox для скринов ===== */

.gg-proof-modal{
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(0,0,0,.65);
}

.gg-proof-modal.is-open{ display: flex; }

.gg-proof-modal-inner{
  position: relative;
  width: auto;
  max-width: min(1200px, 100%);
  max-height: 88vh;

  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  padding: 0 !important;

  display: flex;
  align-items: center;
  justify-content: center;

  box-shadow: none !important;
}

.gg-proof-modal-img{
  max-width: 100% !important;
  max-height: 88vh !important;
  width: auto;
  height: auto;

  object-fit: contain;
  display: block;

  border-radius: 14px;
  background: transparent !important;

  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}

/* =========================================================
   CODE CONSTRAINTS / BADGES
   ========================================================= */

.gg-code-badges{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin-top:8px;
}

.gg-code-badge{
    display:inline-flex;
    align-items:center;
    gap:7px;
    padding:6px 11px;
    border-radius:999px;
    font-size:13px;
    font-weight:600;
    line-height:1;
    white-space:nowrap;
    border:1px solid transparent;
    user-select:none;
}

.gg-code-badge::before{
    content:"";
    width:8px;
    height:8px;
    border-radius:50%;
    display:inline-block;
}

/* ================= PLATFORM ================= */
.gg-code-badge--platform{
    background:#eef6ff;
    color:#0f2b55;
    border-color:#cfe2ff;
}
.gg-code-badge--platform::before{ background:#2f6fed; }

/* platform colors */
.gg-code-badge--android{ background:#ecfff3; border-color:#bbf7d0; color:#065f46; }
.gg-code-badge--android::before{ background:#22c55e; }

.gg-code-badge--ios{ background:#f2f6ff; border-color:#c7d2fe; color:#1e3a8a; }
.gg-code-badge--ios::before{ background:#2563eb; }

.gg-code-badge--pc{ background:#f8fafc; border-color:#e5e7eb; color:#1f2937; }
.gg-code-badge--pc::before{ background:#111827; }

.gg-code-badge--ps{ background:#eef2ff; border-color:#c7d2fe; color:#1e1b4b; }
.gg-code-badge--ps::before{ background:#4f46e5; }

.gg-code-badge--xbox{ background:#f0fff4; border-color:#bbf7d0; color:#064e3b; }
.gg-code-badge--xbox::before{ background:#16a34a; }

.gg-code-badge--switch{ background:#fff1f2; border-color:#fecdd3; color:#7f1d1d; }
.gg-code-badge--switch::before{ background:#e11d48; }

/* ================= REGION ================= */
.gg-code-badge--region{
    background:#f1fff4;
    border-color:#cdeed6;
    color:#0f3b22;
}
.gg-code-badge--region::before{ background:#22a058; }

.gg-code-badge--ru::before{ background:#2563eb; }
.gg-code-badge--eu::before{ background:#f59e0b; }
.gg-code-badge--na::before{ background:#dc2626; }
.gg-code-badge--asia::before{ background:#7c3aed; }
.gg-code-badge--global::before{ background:#6b7280; }

/* ================= SERVER ================= */
.gg-code-badge--server{
    background:#fff6ed;
    border-color:#ffe1c7;
    color:#5a2b0f;
}
.gg-code-badge--server::before{ background:#f08c2e; }

/* ================= PLAYERS ================= */
.gg-code-badge--players{
    background:#f5f1ff;
    border-color:#dfd4ff;
    color:#2b1a57;
}
.gg-code-badge--players::before{ background:#7a4cff; }

/* ================= NOTE ================= */
.gg-code-badge--note{
    background:#f7f8fa;
    border-color:#e2e6ee;
    color:#2b2f36;
    font-weight:500;
}
.gg-code-badge--note::before{ background:#6b7280; }

/* ================= UX ================= */
.gg-code-badge{
    transition:transform .12s ease, filter .12s ease;
}
.gg-code-badge:hover{
    transform:translateY(-1px);
    filter:brightness(.97);
}

@media (max-width:560px){
    .gg-code-badge{
        font-size:12px;
        padding:6px 9px;
    }
}

/* ================= New players ================= */
.gg-code-badge--audience{
    background:#fff7ed;
    border-color:#fed7aa;
    color:#7c2d12;
}
.gg-code-badge--audience::before{ background:#fb923c; }

.gg-code-badge--newplayers{
    background:#fff1f2;
    border-color:#fecdd3;
    color:#7f1d1d;
}
.gg-code-badge--newplayers::before{ background:#e11d48; }

/* ================= TOOLTIP ================= */

.gg-code-badge[data-tip]{
    position:relative;
    cursor:help;
    outline:none;
}

.gg-code-badge[data-tip]::after{
    content: attr(data-tip);
    position:absolute;
    left:0;
    top: calc(100% + 10px);
    min-width: 220px;
    max-width: 360px;

    padding:10px 12px;
    border-radius:12px;

    background: rgba(17, 24, 39, .96);
    color:#fff;
    font-size:13px;
    font-weight:500;
    line-height:1.35;

    box-shadow: 0 10px 30px rgba(0,0,0,.18);
    z-index: 50;

    opacity:0;
    transform: translateY(-2px);
    pointer-events:none;
    transition: opacity .12s ease, transform .12s ease;
    white-space: normal;
}

.gg-code-badge[data-tip]:hover::after,
.gg-code-badge[data-tip]:focus::after,
.gg-code-badge[data-tip].is-tip-open::after{
    opacity:1;
    transform: translateY(0);
}

@media (max-width:560px){
    .gg-code-badge[data-tip]::after{
        min-width: 200px;
        max-width: 92vw;
    }
}

/* ================= DATE ================= */
.gg-datebar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:10px;
  align-items:center;
}

.gg-datechip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 10px;
  border:1px solid #e6eef7;
  background:#f7fbff;
  border-radius:999px;
  line-height:1;
  font-size:13px;
  color:#1f2a37;
}

.gg-datechip__icon{ font-size:14px; }
.gg-datechip__label{ opacity:.75; font-weight:600; }
.gg-datechip__value{ font-weight:700; }
.gg-datechip__sub{
  margin-left:6px;
  padding-left:6px;
  border-left:1px solid rgba(31,42,55,.15);
  font-weight:600;
  opacity:.85;
  white-space:nowrap;
}

/* Состояния истечения */
.gg-datechip--end.is-ok    { background:#f7fbff; }
.gg-datechip--end.is-soon  { background:#fff7ed; border-color:#fed7aa; }
.gg-datechip--end.is-today { background:#fff1f2; border-color:#fecdd3; }
.gg-datechip--end.is-expired{ background:#f3f4f6; border-color:#e5e7eb; opacity:.75; }

.gg-datechip--nolimit{
  background:#f5f3ff;
  border-color:#ddd6fe;
}

/* ===========================================================
   STATUS HERO / HISTORY / TOOLBAR / RELATED
   =========================================================== */

.ggcodes-light-check {
  position: relative;
  overflow: hidden;
  margin: 18px 0 22px;
  border-radius: 18px;
  color: #fff;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
}

.ggcodes-light-check__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(30, 41, 59, 0.68) 42%, rgba(15, 23, 42, 0.84) 100%),
    linear-gradient(180deg, rgba(15, 23, 42, 0.12) 0%, rgba(15, 23, 42, 0.26) 100%);
}

.ggcodes-light-check__content {
  position: relative;
  z-index: 1;
  padding: 28px 32px 30px;
  width: 100%;
}

.ggc-lc-title {
  display: block;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.45);
  font-size: 18px;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
  color: #fff !important;
}

.ggc-lc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  width: 100%;
}

.ggc-lc-item {
  position: relative;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 6px 18px rgba(15, 23, 42, 0.18);
}

.ggc-lc-value {
  display: block;
  color: #fff;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}

.ggc-lc-item--positive {
  background: rgba(34, 197, 94, 0.24);
}

.ggc-lc-item--muted {
  background: rgba(248, 113, 113, 0.22);
}

.ggc-lc-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 3px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.ggc-lc-label-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  font-family: jl_font !important;
  font-size: 10px;
  flex: 0 0 18px;
}

.ggc-lc-item--date .ggc-lc-label-icon::before {
  content: "\e904";
}

.ggc-lc-item--check .ggc-lc-label-icon::before {
  content: "\e934";
}

.ggc-lc-item--positive .ggc-lc-label-icon::before {
  content: "\e91f";
}

.ggc-lc-item--muted .ggc-lc-label-icon::before {
  content: "\e906";
}

.ggc-lc-item--month .ggc-lc-label-icon::before {
  content: "\e902";
}

.ggc-lc-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 100%;
  margin-top: 18px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a !important;
  font-size: 14px;
  font-weight: 700;
}

.ggc-lc-button:hover {
  background: #fff;
  transform: translateY(-1px);
}

.ggcodes-light-check--hero {
  min-height: 0;
}

.ggcodes-light-check__media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ggcodes-light-check--hero .ggcodes-light-check__overlay {
  z-index: 0;
}

.ggcodes-light-check--hero .ggcodes-light-check__content {
  z-index: 1;
}

.gg-changes-box {
  margin: 10px 0 18px;
  padding: 18px 20px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.gg-changes-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.gg-change-item {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 0;
  border-bottom: 1px solid #e2e8f0;
  color: #1e293b;
  font-size: 13px;
  line-height: 1.45;
}

.gg-change-item:last-child {
  border-bottom: 0;
}

.gg-change-date {
  font-weight: 700;
  color: #0f172a;
}

.gg-change-sep {
  color: #94a3b8;
}

.gg-codes-toolbar {
  margin: 16px 0 14px;
  padding: 12px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #f8fafc;
}

.gg-filter-group {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
  justify-content: flex-start;
}

.gg-codes-toolbar .gg-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cbd5e1;
  background: #fff !important;
  color: #0f172a !important;
  border-radius: 10px;
  width: auto !important;
  min-width: 68px;
  max-width: none;
  padding: 0 10px;
  height: 30px !important;
  min-height: 30px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: all .15s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.gg-codes-toolbar .gg-filter-btn:hover,
.gg-codes-toolbar .gg-filter-btn:focus,
.gg-codes-toolbar .gg-filter-btn:active,
.gg-codes-toolbar .gg-filter-btn:visited {
  border-color: #94a3b8;
  background: #fff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.gg-codes-toolbar .gg-filter-btn.is-active,
.gg-codes-toolbar .gg-filter-btn.is-active:hover,
.gg-codes-toolbar .gg-filter-btn.is-active:focus,
.gg-codes-toolbar .gg-filter-btn.is-active:active,
.gg-codes-toolbar .gg-filter-btn.is-active:visited {
  border-color: #94a3b8;
  background: #eef2f7 !important;
  color: #0f172a !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.gg-codes-toolbar-empty {
  margin-top: 10px;
  color: #64748b;
  font-size: 14px;
}

.gg-related-intent {
  margin: 24px 0 6px;
}

.gg-related-intent__title {
  margin-bottom: 12px;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
}

.gg-related-intent__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.gg-related-intent__card {
  overflow: hidden;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
}

.gg-related-intent__media {
  display: block;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center;
}

.gg-related-intent__body {
  display: block;
  padding: 14px;
}

.gg-related-intent__label {
  display: block;
  margin-bottom: 6px;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.gg-related-intent__name {
  display: block;
  color: #0f172a;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
}

.gg-expired-wrapper {
  margin: 24px 0 18px;
}

/* =========================================
   Истекшие коды
========================================= */

.gg-codes-list--expired {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px;
}

.gg-code-card--expired {
  position: relative;
  overflow: hidden;
  padding: 12px;
}

.gg-code-card--expired .gg-dates {
  margin: 0 !important;
}

.gg-code-card--expired .gg-code-line {
  display: flex;
  justify-content: flex-start;
}

.gg-code-card--expired .gg-code-value {
  width: auto !important;
  display: inline-flex;
}

.gg-code-value--expired {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #3b82f6;
  background: #f8fafc;
  font-weight: 600;
  letter-spacing: 1px;
  cursor: copy;
  user-select: text;
  opacity: 0.85;
}

.gg-code-value--expired:hover {
  opacity: 1;
}

.gg-code-card--expired .gg-datechip {
  position: static !important;
}

.gg-datechip--expired {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: nowrap;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 4px 8px;
  font-size: 12px;
  border-radius: 8px;
  background: #f5f5f5;
  color: #777;
  border: 1px dashed #ddd;
}

.gg-datechip--expired .gg-datechip__value,
.gg-datechip--expired .gg-datechip__sub {
  white-space: nowrap;
}

.gg-datechip--expired .gg-datechip__icon {
  opacity: 0.6;
}

.gg-hidden-code {
  display: none;
}

.gg-show-more-wrap {
  margin-top: 16px;
}

.gg-show-more-btn {
  width: 100%;
  height: 44px;
  background: #f5f6f7;
  color: #222 !important;
  border: 1px solid #e1e4e8;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.gg-show-more-btn:hover {
  background: #eceff1;
  color: #222;
  border-color: #d0d5da;
}

.gg-show-more-btn:active {
  background: #e6e9ec;
  transform: translateY(1px);
}

.gg-show-more-btn:hover,
.gg-show-more-btn:focus,
.gg-show-more-btn:active {
  background: #eceff1 !important;
  color: #222 !important;
  border-color: #d0d5da !important;
}

.gg-expired-count {
  margin-top: 10px;
  margin-bottom: 10px;
  font-size: 14px;
  color: #666;
}

.gg-expired-count b {
  color: #222;
  font-weight: 600;
}

@media (max-width: 767px) {
  .gg-related-intent__grid {
    grid-template-columns: 1fr;
  }

  .ggcodes-light-check__content,
  .gg-changes-box {
    padding: 18px;
  }

  .ggc-lc-title {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .ggc-lc-item {
    display: block;
    width: 100%;
    min-width: 100%;
    max-width: 100%;
  }

  .ggc-lc-grid {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .ggcodes-light-check--hero {
    min-height: 0;
  }

  .gg-codes-wrapper .gg-codes-list--expired {
    grid-template-columns: 1fr !important;
  }

  .gg-code-value--expired {
    font-size: 14px;
    padding: 8px 12px;
  }

  .gg-datechip--expired {
    font-size: 11px;
    padding: 3px 6px;
  }

  .gg-show-more-btn {
    height: 42px;
    font-size: 14px;
  }
}

/* ===========================================================
   REDEEM + GUIDE BLOCKS
   =========================================================== */

.gg-redeem-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
  margin-bottom: 24px;
}

.gg-redeem-step {
  margin: 0;
}

.gg-redeem-step__meta,
.gg-guide-card__meta {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 0;
}

.gg-redeem-step__num {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #bfdbfe;
  color: #1d4ed8;
  font-size: 13px;
  font-weight: 800;
}

.gg-guide-card__icon svg {
  width: 14px;
  height: 14px;
}

.gg-guide-card__body {
  min-width: 0;
}

.gg-redeem-step__text,
.gg-guide-card__text {
  margin: 0;
  color: #46556b;
  font-size: 15px;
  line-height: 1.55;
}

.gg-redeem-step__text {
  flex: 1 1 auto;
}

.gg-redeem-step__lead {
  color: #111827;
  font-weight: 600;
}

.gg-guide-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.gg-guide-card__text,
.gg-redeem-step__text {
  margin-top: 0;
}

.gg-redeem-step__media,
.gg-guide-card__media {
  margin: 10px 0 0 38px;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid #dbe9ff;
  background: #fff;
}

.gg-redeem-step__media img,
.gg-guide-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.gg-guide-grid {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 18px;
}

.gg-guide-card {
  position: relative;
  min-width: 0;
  margin: 14px 0 0;
  padding: 26px 18px 16px;
}

.gg-guide-card__text p:first-child {
  margin-top: 0;
}

.gg-guide-card__text p:last-child {
  margin-bottom: 0;
}

.gg-guide-card__meta {
  display: flex;
  justify-content: center;
  margin: 0 0 14px;
}

.gg-guide-card__title {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 0;
  padding: 10px 22px;
  border-radius: 14px;
  background: #e3eefc;
  border: 1px solid #c5daf7;
  color: #294e8d;
  font-size: 16px !important;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
  margin-top: -38px;
}

.gg-guide-card__media {
  text-align: center;
}

.gg-guide-card__media img {
  width: auto;
  max-width: 100%;
  margin: 0 auto;
}

@media (max-width: 767px) {
  .gg-guide-card__title {
    font-size: 15px !important;
  }

  .gg-redeem-step__media {
    margin-left: 0;
  }
}
