body:has(.promo-page) .column-left .content-bg > .content-header {
    display: none !important;
}

.promo-page {
    padding: 18px 0 12px;
    color: #a8b1b6;
}

.promo-page *,
.promo-page *::before,
.promo-page *::after {
    box-sizing: border-box;
}

.promo-eyebrow {
    display: block;
    color: #b9aa63;
    font-size: 11px;
    line-height: 15px;
    font-weight: 800;
    letter-spacing: .72px;
    text-transform: uppercase;
}

.promo-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 150px;
    padding: 26px 28px;
    margin-bottom: 12px;
    background:
        radial-gradient(
            circle at 81% 0,
            rgba(199, 179, 95, .07),
            transparent 34%
        ),
        linear-gradient(
            135deg,
            rgba(15, 20, 23, .98),
            rgba(7, 11, 14, .99)
        );
    border: 1px solid rgba(205, 188, 103, .10);
    border-left: 3px solid #cdbd72;
    border-radius: 4px;
}

.promo-hero__main h1 {
    margin: 6px 0 6px;
    color: #eef1f2;
    font-size: 31px;
    line-height: 37px;
}

.promo-hero__main p {
    max-width: 555px;
    margin: 0;
    color: #6d787e;
    font-size: 13px;
    line-height: 20px;
}

.promo-main {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(235px, .75fr);
    gap: 10px;
    margin-bottom: 10px;
}

.promo-activate,
.promo-info,
.promo-history {
    background:
        linear-gradient(
            180deg,
            rgba(12, 17, 20, .99),
            rgba(7, 11, 13, .995)
        );
    border: 1px solid rgba(255,255,255,.05);
    border-radius: 4px;
}

.promo-activate {
    padding: 18px;
}

.promo-section-head,
.promo-history__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.promo-section-head {
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.promo-section-head h2,
.promo-history__head h2 {
    margin: 3px 0 0;
    color: #cbd1d4;
    font-size: 19px;
    line-height: 24px;
}

.promo-section-head__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    color: #aa9a58;
    background: rgba(198, 175, 82, .035);
    border: 1px solid rgba(198, 175, 82, .08);
    border-radius: 4px;
    font-size: 13px;
}

.promo-form {
    padding-top: 17px;
}

.promo-field {
    display: block;
}

.promo-field > span {
    display: block;
    margin-bottom: 7px;
    color: #747f84;
    font-size: 11px;
    line-height: 15px;
    font-weight: 700;
}

.promo-field__control {
    display: flex;
    align-items: center;
    min-height: 50px;
    background: rgba(0,0,0,.22);
    border: 1px solid rgba(255,255,255,.07);
    border-radius: 4px;
    transition:
        border-color .18s ease,
        box-shadow .18s ease;
}

.promo-field__control:focus-within {
    border-color: rgba(204, 185, 97, .25);
    box-shadow: 0 0 0 2px rgba(203, 183, 93, .035);
}

.promo-field__control > i {
    flex: 0 0 45px;
    color: #887d50;
    font-size: 12px;
    text-align: center;
}

.promo-field__control input {
    width: 100%;
    height: 48px;
    padding: 0 14px 0 0;
    color: #d2d8da;
    background: transparent !important;
    border: 0 !important;
    outline: none !important;
    box-shadow: none !important;
    font-family: inherit;
    font-size: 14px;
    line-height: 20px;
}

.promo-field__control input::placeholder {
    color: #505b61;
}

.promo-captcha {
    display: flex;
    justify-content: center;
    margin: 17px 0;
}

.promo-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    min-height: 42px;
    color: #e0d27e;
    background:
        linear-gradient(
            180deg,
            rgba(55, 49, 27, .78),
            rgba(20, 20, 14, .96)
        );
    border: 1px solid #77693c;
    border-radius: 3px;
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.035),
        0 5px 13px rgba(0,0,0,.24);
    font-family: inherit;
    font-size: 12px;
    line-height: 16px;
    font-weight: 800;
    cursor: pointer;
    transition:
        color .18s ease,
        border-color .18s ease,
        box-shadow .18s ease;
}

.promo-submit:hover {
    color: #f0e4aa;
    border-color: #a18d50;
    box-shadow:
        0 0 15px rgba(190, 158, 68, .08),
        inset 0 1px 0 rgba(255,255,255,.035);
}

.promo-info {
    overflow: hidden;
}

.promo-info__stat {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 17px 15px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.promo-info__stat-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 41px;
    width: 41px;
    height: 41px;
    color: #7ea479;
    background: rgba(89, 143, 86, .045);
    border: 1px solid rgba(100, 151, 94, .08);
    border-radius: 4px;
    font-size: 13px;
}

.promo-info__stat div > span {
    display: block;
    color: #5c676d;
    font-size: 10px;
    line-height: 13px;
    text-transform: uppercase;
}

.promo-info__stat strong {
    display: block;
    margin-top: 2px;
    color: #cfc47b;
    font-size: 25px;
    line-height: 29px;
}

.promo-info__rules {
    padding: 15px;
}

.promo-info__rules ul {
    margin: 10px 0 0;
    padding: 0;
    list-style: none;
}

.promo-info__rules li {
    position: relative;
    padding: 0 0 11px 15px;
    color: #657178;
    font-size: 11px;
    line-height: 17px;
}

.promo-info__rules li:last-child {
    padding-bottom: 0;
}

.promo-info__rules li::before {
    content: "";
    position: absolute;
    top: 7px;
    left: 1px;
    width: 4px;
    height: 4px;
    background: #9b8d54;
    border-radius: 50%;
}

.promo-history {
    overflow: hidden;
}

.promo-history__head {
    min-height: 65px;
    padding: 12px 14px;
    border-bottom: 1px solid rgba(255,255,255,.04);
}

.promo-history__count {
    color: #5a656b;
    font-size: 11px;
    line-height: 15px;
}

.promo-history__table-wrap {
    overflow-x: auto;
}

.promo-history-table {
    width: 100%;
    border-collapse: collapse;
}

.promo-history-table th {
    padding: 10px 12px;
    color: #59646a;
    background: rgba(255,255,255,.008);
    border-bottom: 1px solid rgba(255,255,255,.04);
    font-size: 10px;
    line-height: 14px;
    text-align: left;
    text-transform: uppercase;
}

.promo-history-table th:first-child {
    width: 60px;
    text-align: center;
}

.promo-history-row td {
    padding: 10px 12px;
    color: #7c878c;
    border-bottom: 1px solid rgba(255,255,255,.03);
    font-size: 12px;
    line-height: 17px;
    vertical-align: middle;
}

.promo-history-row:hover {
    background: rgba(255,255,255,.012);
}

.promo-history-number {
    color: #8f8252 !important;
    font-weight: 800;
    text-align: center;
}

.promo-code-chip {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 0 9px;
    color: #c7bb73;
    background: rgba(195, 171, 83, .035);
    border: 1px solid rgba(195, 171, 83, .08);
    border-radius: 3px;
    font-size: 11px;
    line-height: 14px;
    font-weight: 800;
}

.promo-history-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    cursor: help;
}

.promo-history-item__icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: rgba(0,0,0,.23);
    border: 1px solid rgba(204, 185, 97, .07);
    border-radius: 3px;
}

.promo-history-item__icon img {
    width: 35px;
    height: 35px;
    object-fit: contain;
}

.promo-history-item__icon > i {
    color: #7b714b;
}

.promo-history-item__icon b {
    position: absolute;
    right: -5px;
    bottom: -4px;
    min-width: 19px;
    padding: 1px 4px;
    color: #dfcf79;
    background: #070a0c;
    border: 1px solid rgba(204, 185, 97, .12);
    border-radius: 8px;
    font-size: 8px;
    line-height: 11px;
    text-align: center;
}

.promo-history-item__info {
    min-width: 0;
}

.promo-history-item__info strong {
    display: block;
    max-width: 330px;
    overflow: hidden;
    color: #aeb7bb;
    font-size: 12px;
    line-height: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.promo-history-item__info small {
    display: block;
    margin-top: 2px;
    color: #556168;
    font-size: 9px;
    line-height: 12px;
}

.promo-history-date {
    color: #6e797f !important;
    white-space: nowrap;
}

.promo-history-date i {
    margin-right: 4px;
    color: #555f64;
}

.promo-history-empty {
    padding: 30px 12px !important;
    color: #59656b !important;
    text-align: center;
}

.promo-history-empty > i {
    display: block;
    margin-bottom: 7px;
    color: #756b47;
    font-size: 17px;
}

.promo-history-empty strong,
.promo-history-empty span {
    display: block;
}

.promo-history-empty strong {
    color: #858f93;
    font-size: 12px;
}

.promo-history-empty span {
    margin-top: 3px;
    font-size: 10px;
}

.promo-pagination {
    margin: 12px !important;
}

/* ==========================================================================
   BALANCE — EXACT COPY OF REPAIR GEOMETRY
   ========================================================================== */

.promo-balance {
    position: relative;
    z-index: 2;

    display: grid;
    grid-template-columns: minmax(130px, 1fr) 104px;
    grid-template-rows: auto auto;

    min-width: 270px;
    min-height: 68px;

    overflow: hidden;

    background: rgba(7, 10, 12, .78);

    border: 1px solid rgba(255, 255, 255, .06);
    border-radius: 4px;
}

.promo-balance__label {
    grid-column: 1;
    grid-row: 1;

    padding: 11px 14px 0;

    color: #667078;

    font-size: 8px;
    line-height: 10px;

    letter-spacing: .4px;
    text-transform: uppercase;
}

.promo-balance__value {
    grid-column: 1;
    grid-row: 2;

    padding: 1px 14px 11px;

    color: #ddd083;

    font-size: 20px;
    line-height: 24px;
    font-weight: 700;

    white-space: nowrap;
}

.promo-balance__value small {
    font-size: 12px;
}

.promo-balance__button {
    grid-column: 2;
    grid-row: 1 / 3;

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

    color: #262719 !important;

    background:
        linear-gradient(
            180deg,
            #ddd18d,
            #c8bc77
        );

    border-left: 1px solid rgba(255, 255, 255, .07);

    font-size: 10px;
    font-weight: 700;

    text-decoration: none !important;
}

@media (max-width: 760px) {
    .promo-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .promo-main {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   V3 — GAP BETWEEN KEY ICON AND PROMO TEXT
   ========================================================================== */

.promo-field__control input {
    padding-left: 14px !important;
}

/* ==========================================================================
   V4 — DROPLIST TOOLTIP / CLEAN ITEM ROW
   ========================================================================== */

/* Сам tooltip оформляется глобальными стилями DropList. */
.promo-page ~ #droplist-tooltip,
#droplist-tooltip {
    z-index: 9999999;
}

.promo-page .js-droplist-item {
    cursor: help;
}

/* ItemID больше не выводим — оставляем только нормальное название предмета. */
.promo-history-item__info strong {
    margin: 0;
}

/* Чуть шире зона наведения, чтобы tooltip удобно открывался и по названию. */
.promo-history-item {
    min-height: 42px;
    padding: 2px 3px;
}


@media (max-width: 900px) {
    .promo-hero {
        align-items: stretch;
        flex-direction: column;
    }

    .promo-balance {
        width: 100%;
    }
}
