.perm-buket-bonus-cart-summary,
.perm-buket-bonus-checkout {
    background: #fdf7f9;
    border: 1px solid #f3d9e3;
    border-radius: 6px;
    padding: 14px 18px;
    margin: 18px 0;
}

.perm-buket-bonus-cart-summary h3,
.perm-buket-bonus-checkout h3 {
    margin: 0 0 8px;
    font-size: 1.05em;
}

.perm-buket-bonus-checkout__redeem-control {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}

.perm-buket-bonus-checkout__redeem-control input[type="number"] {
    max-width: 160px;
}

.perm-buket-bonus-checkout__warning {
    color: #a35800;
    background: #fff7e6;
    border-left: 3px solid #ffb84d;
    padding: 6px 10px;
    margin-top: 6px;
    font-size: 0.92em;
}

.perm-buket-bonus-product-earn,
.perm-buket-bonus-balance {
    margin: 6px 0;
    color: #4a4a4a;
}

.perm-buket-bonus-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 12px;
    background: #faf4f6;
    border-radius: 6px;
    margin: 10px 0;
}

/* Product-info shortcode — simple variant (B+). Rich variant saved in backups/product-info-designs/variant-A-rich.md */
.pbb-product-info {
    --pbb-pi-pink: #ef6c99;
    --pbb-pi-pink-dark: #d95785;
    --pbb-pi-pink-soft: #fde6ee;
    --pbb-pi-pink-tint: #fff5f9;
    --pbb-pi-ink: #2b2b34;
    --pbb-pi-muted: #7a7a85;

    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    margin: 16px 0;
    background:
        radial-gradient(circle at top right, rgba(239, 108, 153, 0.1) 0%, transparent 55%),
        linear-gradient(135deg, var(--pbb-pi-pink-tint) 0%, #fff 70%);
    border: 1px solid var(--pbb-pi-pink-soft);
    border-left: 4px solid var(--pbb-pi-pink);
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(239, 108, 153, 0.08);
    color: var(--pbb-pi-ink);
    font-size: 14px;
    line-height: 1.4;
    overflow: hidden;
}

.pbb-product-info::after {
    content: '';
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: radial-gradient(circle, rgba(239, 108, 153, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.pbb-product-info * { box-sizing: border-box; }

.pbb-product-info__icon {
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--pbb-pi-pink-soft);
    color: var(--pbb-pi-pink);
    border-radius: 50%;
    position: relative;
    z-index: 1;
}

.pbb-product-info__icon svg { display: block; }

.pbb-product-info__body {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    position: relative;
    z-index: 1;
}

.pbb-product-info__line {
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 6px;
    font-size: 0.97em;
}

.pbb-product-info__amount {
    font-weight: 900;
    color: var(--pbb-pi-pink);
    font-size: 1.28em;
    letter-spacing: -0.01em;
    white-space: nowrap;
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}

.pbb-product-info__muted {
    color: var(--pbb-pi-muted);
    font-weight: 400;
}

.pbb-product-info__sub {
    margin: 0;
    font-size: 0.83em;
    color: var(--pbb-pi-muted);
}

.pbb-product-info__link {
    color: var(--pbb-pi-pink-dark);
    text-decoration: none;
    font-weight: 700;
    border-bottom: 1px dashed rgba(217, 87, 133, 0.5);
    transition: border-color 0.15s ease, color 0.15s ease;
}

.pbb-product-info__link:hover,
.pbb-product-info__link:focus {
    color: var(--pbb-pi-pink);
    border-bottom-color: var(--pbb-pi-pink);
    text-decoration: none;
}

@media (max-width: 420px) {
    .pbb-product-info {
        padding: 11px 13px;
        gap: 10px;
    }

    .pbb-product-info__icon {
        flex: 0 0 28px;
        width: 28px;
        height: 28px;
    }

    .pbb-product-info__line {
        gap: 0 5px;
        font-size: 0.94em;
    }

    .pbb-product-info__amount {
        font-size: 1.2em;
    }
}

.perm-buket-bonus-catalog-badge {
    position: absolute !important;
    bottom: 10px !important;
    left: 10px !important;
    top: auto !important;
    right: auto !important;
    z-index: 3 !important;
    display: inline-flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 5px !important;
    padding: 5px 10px 5px 8px !important;
    background: rgba(255, 255, 255, 0.96) !important;
    color: #d95785 !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: 0.01em !important;
    border-radius: 999px !important;
    border: 1px solid rgba(239, 108, 153, 0.2) !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(255, 255, 255, 0.4) inset !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap !important;
    width: auto !important;
    max-width: calc(100% - 20px);
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    text-transform: none !important;
}

.perm-buket-bonus-catalog-badge .perm-buket-bonus-catalog-badge__label,
.perm-buket-bonus-catalog-badge .perm-buket-bonus-catalog-badge__amount,
a .perm-buket-bonus-catalog-badge .perm-buket-bonus-catalog-badge__label,
a .perm-buket-bonus-catalog-badge .perm-buket-bonus-catalog-badge__amount {
    display: inline-block !important;
    flex: 0 0 auto;
    width: auto !important;
    height: auto !important;
    padding: 0 !important;
    margin: 0 !important;
    white-space: nowrap !important;
    line-height: 1.15 !important;
    vertical-align: middle;
    text-transform: none !important;
    letter-spacing: 0.01em !important;
}

.perm-buket-bonus-catalog-badge::before {
    content: "" !important;
    display: inline-block !important;
    flex: 0 0 14px !important;
    width: 14px !important;
    height: 14px !important;
    background-color: #ef6c99 !important;
    border-radius: 50% !important;
    background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12v10H4V12'/%3E%3Cpath d='M2 7h20v5H2z'/%3E%3Cpath d='M12 22V7'/%3E%3Cpath d='M12 7H7.5a2.5 2.5 0 0 1 0-5C11 2 12 7 12 7z'/%3E%3Cpath d='M12 7h4.5a2.5 2.5 0 0 0 0-5C13 2 12 7 12 7z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 9px 9px !important;
    box-shadow: 0 1px 2px rgba(239, 108, 153, 0.35);
    vertical-align: middle;
}

.perm-buket-bonus-catalog-badge__label {
    color: #6a6a78;
    font-weight: 600;
}

.perm-buket-bonus-catalog-badge__amount {
    color: #d95785;
    font-weight: 800;
}

.perm-buket-bonus-catalog-badge--widget {
    bottom: 6px;
    left: 6px;
    padding: 4px 8px 4px 6px;
    font-size: 11px;
    gap: 4px;
}

.perm-buket-bonus-catalog-badge--widget::before {
    flex-basis: 12px;
    width: 12px;
    height: 12px;
    background-size: 8px 8px;
}

@media (max-width: 480px) {
    .perm-buket-bonus-catalog-badge {
        bottom: 6px;
        left: 6px;
        padding: 4px 8px 4px 6px;
        font-size: 11px;
    }
    .perm-buket-bonus-catalog-badge__label {
        display: none;
    }
}

.perm-buket-bonus-balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ef6c99;
    color: #fff;
    font-size: 1em;
    font-weight: 900;
    padding: 12px 16px;
    border-radius: 999px;
    text-decoration: none;
    line-height: 1.2;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease, transform 0.1s ease;
}

.perm-buket-bonus-balance-pill:hover,
.perm-buket-bonus-balance-pill:focus {
    background: #d95785;
    color: #fff;
    text-decoration: none;
    transform: translateY(-1px);
}

.perm-buket-bonus-balance-pill__label {
    opacity: 0.9;
    font-weight: 500;
}

.perm-buket-bonus-balance-pill__amount {
    font-weight: 700;
}

.perm-buket-bonus-user-card {
    background: linear-gradient(135deg, #fff 0%, #fef6f9 100%);
    border: 1px solid #f3d9e3;
    border-left: 4px solid #ef6c99;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(239, 108, 153, 0.08);
    padding: 20px 24px;
    margin: 16px 0 28px;
    max-width: 960px;
}

.perm-buket-bonus-user-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    padding-bottom: 16px;
    border-bottom: 1px solid #f5e6ec;
    margin-bottom: 18px;
}

.perm-buket-bonus-user-card__title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.perm-buket-bonus-user-card__icon {
    font-size: 1.8em;
    line-height: 1;
}

.perm-buket-bonus-user-card__title h2 {
    margin: 0 0 2px !important;
    font-size: 1.35em;
    color: #2c2c2c;
    font-weight: 700;
    padding: 0 !important;
    border: 0 !important;
}

.perm-buket-bonus-user-card__subtitle {
    margin: 0;
    font-size: 0.88em;
    color: #777;
}

.perm-buket-bonus-user-card__subtitle a {
    color: #ef6c99;
    text-decoration: none;
    font-weight: 600;
}

.perm-buket-bonus-user-card__subtitle a:hover {
    text-decoration: underline;
}

.perm-buket-bonus-user-card__balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    line-height: 1.1;
}

.perm-buket-bonus-user-card__balance-label {
    font-size: 0.72em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 600;
    margin-bottom: 4px;
}

.perm-buket-bonus-user-card__balance strong {
    font-size: 2em;
    color: #ef6c99;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.perm-buket-bonus-user-card__grid {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .perm-buket-bonus-user-card__grid {
        grid-template-columns: 1fr;
    }
}

.perm-buket-bonus-user-card__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.perm-buket-bonus-user-card__field span {
    font-weight: 600;
    font-size: 0.92em;
    color: #333;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.perm-buket-bonus-user-card__field small {
    font-weight: normal;
    font-size: 0.8em;
    color: #888;
}

.perm-buket-bonus-user-card__field input {
    padding: 8px 10px;
    border: 1px solid #dcdcde;
    border-radius: 4px;
    font-size: 14px;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.perm-buket-bonus-user-card__field input:focus {
    border-color: #ef6c99;
    box-shadow: 0 0 0 1px #ef6c99;
    outline: none;
}

.perm-buket-bonus-user-card__history {
    margin-top: 6px;
    border-top: 1px solid #f5e6ec;
    padding-top: 14px;
}

.perm-buket-bonus-user-card__history summary {
    cursor: pointer;
    font-weight: 600;
    color: #333;
    user-select: none;
    padding: 4px 0;
}

.perm-buket-bonus-user-card__history summary:hover {
    color: #ef6c99;
}

.perm-buket-bonus-user-card__history table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    font-size: 0.92em;
}

.perm-buket-bonus-user-card__history th,
.perm-buket-bonus-user-card__history td {
    padding: 6px 10px;
    text-align: left;
    border-bottom: 1px solid #f3f3f3;
    vertical-align: top;
}

.perm-buket-bonus-user-card__history th {
    font-size: 0.82em;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #888;
    font-weight: 600;
    border-bottom: 1px solid #e8e8e8;
}

.perm-buket-bonus-user-card__amount {
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    white-space: nowrap;
}

.perm-buket-bonus-user-card__amount.is-positive {
    color: #2e7d3e;
}

.perm-buket-bonus-user-card__amount.is-negative {
    color: #c0392b;
}

.perm-buket-bonus-account__pagination {
    margin-top: 10px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.perm-buket-bonus-account__pagination .current {
    font-weight: bold;
    padding: 2px 8px;
    background: #f3d9e3;
    border-radius: 4px;
}

.perm-buket-bonus-account__pagination a {
    padding: 2px 8px;
    border: 1px solid #f3d9e3;
    border-radius: 4px;
    text-decoration: none;
}

/* ============================================
   Admin settings page redesign
   ============================================ */

.pbb-settings-page {
    max-width: 1240px;
}

.pbb-settings-page > h1:not(.pbb-settings-header__title h1) {
    display: none;
}

.pbb-settings-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    padding: 24px 28px;
    background: linear-gradient(135deg, #fff 0%, #fef6f9 100%);
    border: 1px solid #f3d9e3;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(239, 108, 153, 0.06);
    margin: 14px 0 20px;
}

.pbb-settings-header__title h1 {
    margin: 0 0 4px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 1.55em;
    font-weight: 700;
    color: #2c2c2c;
    padding: 0;
}

.pbb-settings-header__subtitle {
    margin: 0;
    color: #666;
    font-size: 0.92em;
    max-width: 560px;
}

.pbb-settings-header__actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}

.pbb-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 12px;
    border-radius: 999px;
    font-size: 0.62em;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1.8;
}

.pbb-status-pill--on {
    background: #e6f6ec;
    color: #2e7d3e;
}

.pbb-status-pill--on::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2e7d3e;
    box-shadow: 0 0 0 3px rgba(46, 125, 62, 0.18);
}

.pbb-status-pill--off {
    background: #fdecec;
    color: #c0392b;
}

.pbb-status-pill--off::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.18);
}

.pbb-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 22px;
}

.pbb-stat {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 18px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.pbb-stat--accent {
    border-color: #f3d9e3;
    background: linear-gradient(135deg, #fff 0%, #fef6f9 100%);
}

.pbb-stat__label {
    font-size: 0.72em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.pbb-stat__value {
    font-size: 1.55em;
    font-weight: 700;
    color: #2c2c2c;
    line-height: 1.15;
}

.pbb-stat--accent .pbb-stat__value {
    color: #ef6c99;
}

@media (max-width: 900px) {
    .pbb-stats-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pbb-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}

@media (max-width: 1100px) {
    .pbb-settings-grid {
        grid-template-columns: 1fr;
    }
}

.pbb-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
}

.pbb-card--primary {
    border-left: 4px solid #ef6c99;
    box-shadow: 0 2px 10px rgba(239, 108, 153, 0.08);
}

.pbb-card--accent {
    background: linear-gradient(135deg, #fff 0%, #fef6f9 100%);
    border: 1px solid #f3d9e3;
    border-left: 4px solid #ef6c99;
    box-shadow: 0 2px 14px rgba(239, 108, 153, 0.1);
    margin: 24px 0;
}

.pbb-card__head {
    padding: 16px 22px 14px;
    border-bottom: 1px solid #f0f0f1;
    background: #fafafa;
}

.pbb-card--accent .pbb-card__head {
    background: transparent;
    border-bottom-color: #f3d9e3;
}

.pbb-card__head h2 {
    margin: 0 0 4px;
    font-size: 1.05em;
    font-weight: 700;
    color: #2c2c2c;
    padding: 0;
    border: 0;
}

.pbb-card__head p {
    margin: 0;
    font-size: 0.88em;
    color: #666;
    line-height: 1.5;
}

.pbb-card__body {
    padding: 6px 22px 14px;
}

.pbb-card__body .form-table {
    margin-top: 0;
}

.pbb-card__body .form-table th {
    padding: 14px 14px 14px 0;
    width: 44%;
    font-weight: 500;
    color: #333;
    font-size: 0.94em;
    vertical-align: top;
}

.pbb-card__body .form-table td {
    padding: 12px 0;
    vertical-align: top;
}

.pbb-card__body .form-table tr:not(:last-child) th,
.pbb-card__body .form-table tr:not(:last-child) td {
    border-bottom: 1px dashed #f0f0f1;
}

.pbb-card__body .form-table .description {
    margin-top: 6px;
    color: #888;
    font-size: 0.85em;
}

/* Input group: number + suffix */
.pbb-input-group {
    display: inline-flex;
    align-items: stretch;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbb-input-group:focus-within {
    border-color: #ef6c99;
    box-shadow: 0 0 0 2px rgba(239, 108, 153, 0.18);
}

.pbb-input-group input[type="number"] {
    border: 0;
    box-shadow: none;
    padding: 8px 10px;
    font-size: 14px;
    width: 120px;
    background: transparent;
    outline: none;
}

.pbb-input-group__suffix {
    padding: 8px 12px;
    background: #f6f7f7;
    border-left: 1px solid #e5e7eb;
    color: #666;
    font-size: 0.88em;
    line-height: 1.3;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Toggle switch (iOS-style) */
.pbb-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.pbb-toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pbb-toggle__track {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 999px;
    transition: background 0.2s ease;
    flex-shrink: 0;
}

.pbb-toggle__knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    transition: transform 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.pbb-toggle input:checked ~ .pbb-toggle__track {
    background: #ef6c99;
}

.pbb-toggle input:checked ~ .pbb-toggle__track .pbb-toggle__knob {
    transform: translateX(18px);
}

.pbb-toggle input:focus-visible ~ .pbb-toggle__track {
    box-shadow: 0 0 0 3px rgba(239, 108, 153, 0.3);
}

.pbb-toggle__text {
    font-size: 0.85em;
    color: #666;
    font-weight: 500;
}

/* Status chips (replaces list of checkboxes for order statuses) */
.pbb-status-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.pbb-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pbb-status-chip input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pbb-status-chip:hover {
    border-color: #ef6c99;
    color: #ef6c99;
}

.pbb-status-chip.is-on {
    background: #fdecf2;
    border-color: #ef6c99;
    color: #b8476e;
}

.pbb-status-chip code {
    font-size: 0.82em;
    opacity: 0.65;
    background: transparent;
    padding: 0;
}

.pbb-status-chip.is-on code {
    opacity: 0.8;
}

/* Save bar */
.pbb-save-bar {
    position: sticky;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(6px);
    padding: 14px 20px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.04);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 10;
    margin: 18px 0 28px;
}

.pbb-save-bar .button.button-primary {
    padding: 6px 26px;
    font-size: 14px;
    font-weight: 600;
    height: auto;
    line-height: 1.8;
    background: #ef6c99;
    border-color: #d95785;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(239, 108, 153, 0.35);
}

.pbb-save-bar .button.button-primary:hover,
.pbb-save-bar .button.button-primary:focus {
    background: #d95785;
    border-color: #b8476e;
}

.pbb-save-bar .description {
    margin: 0;
    color: #888;
    font-size: 0.85em;
}

/* Bulk award card */
.pbb-bulk-grid {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

@media (max-width: 700px) {
    .pbb-bulk-grid {
        grid-template-columns: 1fr;
    }
}

.pbb-bulk-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pbb-bulk-field label {
    font-weight: 600;
    color: #333;
    font-size: 0.92em;
}

.pbb-bulk-field small {
    color: #888;
    font-size: 0.82em;
}

.pbb-bulk-field input[type="text"],
.pbb-bulk-field input[type="number"] {
    padding: 8px 12px;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    font-size: 14px;
    background: #fff;
    width: 100%;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pbb-bulk-field input:focus {
    border-color: #ef6c99;
    box-shadow: 0 0 0 2px rgba(239, 108, 153, 0.18);
    outline: none;
}

.pbb-bulk-field__input {
    display: flex;
    align-items: stretch;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pbb-bulk-field__input:focus-within {
    border-color: #ef6c99;
    box-shadow: 0 0 0 2px rgba(239, 108, 153, 0.18);
}

.pbb-bulk-field__input input {
    border: 0 !important;
    box-shadow: none !important;
    flex: 1;
}

.pbb-bulk-field__suffix {
    padding: 8px 14px;
    background: #faf4f6;
    border-left: 1px solid #f3d9e3;
    color: #ef6c99;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
}

.pbb-bulk-fieldset {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 12px 16px;
    margin: 0 0 16px;
    background: #fafafa;
}

.pbb-bulk-fieldset legend {
    font-weight: 600;
    padding: 0 6px;
    color: #333;
    font-size: 0.92em;
}

.pbb-bulk-fieldset small {
    display: block;
    margin-top: 8px;
    color: #888;
    font-size: 0.82em;
}

.pbb-bulk-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.pbb-bulk-role {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #fff;
    border: 1px solid #dcdcde;
    border-radius: 999px;
    font-size: 0.85em;
    cursor: pointer;
    transition: all 0.15s ease;
    user-select: none;
}

.pbb-bulk-role:has(input:checked) {
    background: #fdecf2;
    border-color: #ef6c99;
    color: #b8476e;
}

.pbb-bulk-role input[type="checkbox"] {
    margin: 0;
}

.pbb-bulk-role em {
    font-style: normal;
    color: #999;
    font-size: 0.9em;
}

.pbb-bulk-role:has(input:checked) em {
    color: #b8476e;
}

.pbb-bulk-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 18px;
}

@media (max-width: 700px) {
    .pbb-bulk-options {
        grid-template-columns: 1fr;
    }
}

.pbb-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
    user-select: none;
}

.pbb-switch:hover {
    border-color: #ef6c99;
}

.pbb-switch input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pbb-switch__slider {
    position: relative;
    width: 40px;
    height: 22px;
    background: #d1d5db;
    border-radius: 999px;
    flex-shrink: 0;
    transition: background 0.2s ease;
}

.pbb-switch__slider::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease;
}

.pbb-switch input:checked ~ .pbb-switch__slider {
    background: #ef6c99;
}

.pbb-switch input:checked ~ .pbb-switch__slider::after {
    transform: translateX(18px);
}

.pbb-switch__label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1.3;
}

.pbb-switch__label strong {
    font-weight: 600;
    color: #2c2c2c;
    font-size: 0.94em;
}

.pbb-switch__label em {
    font-style: normal;
    color: #888;
    font-size: 0.82em;
}

.pbb-bulk-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    padding-top: 8px;
    border-top: 1px solid #f3d9e3;
    margin-top: 4px;
    padding-top: 16px;
}

.pbb-bulk-submit {
    background: #ef6c99 !important;
    border-color: #d95785 !important;
    color: #fff !important;
    text-shadow: none !important;
    box-shadow: 0 2px 6px rgba(239, 108, 153, 0.35) !important;
    font-weight: 600 !important;
}

.pbb-bulk-submit:hover,
.pbb-bulk-submit:focus {
    background: #d95785 !important;
    border-color: #b8476e !important;
    color: #fff !important;
}

.pbb-bulk-total {
    color: #666;
    font-size: 0.9em;
}

.pbb-bulk-total strong {
    color: #2c2c2c;
}

/* Shortcodes help (collapsed) */
.pbb-shortcodes-help {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #fff;
    margin-top: 18px;
    overflow: hidden;
}

.pbb-shortcodes-help > summary {
    padding: 14px 22px;
    cursor: pointer;
    font-weight: 600;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
    transition: background 0.15s ease;
}

.pbb-shortcodes-help > summary::-webkit-details-marker {
    display: none;
}

.pbb-shortcodes-help > summary::after {
    content: "›";
    font-size: 1.4em;
    color: #999;
    transition: transform 0.2s ease;
    line-height: 1;
    flex-shrink: 0;
}

.pbb-shortcodes-help[open] > summary::after {
    transform: rotate(90deg);
}

.pbb-shortcodes-help > summary:hover {
    background: #fafafa;
    color: #ef6c99;
}

.pbb-shortcodes-help[open] > summary {
    border-bottom: 1px solid #f0f0f1;
}

.pbb-shortcodes-help__title {
    font-size: 1em;
    color: #2c2c2c;
}

.pbb-shortcodes-help__hint {
    color: #888;
    font-size: 0.85em;
    font-weight: 400;
    margin-left: auto;
    margin-right: 10px;
}

.pbb-shortcodes-help__body {
    padding: 16px 22px 22px;
}

.pbb-shortcodes-help__table {
    max-width: 100%;
    margin-bottom: 14px;
}

.pbb-shortcodes-help__examples {
    background: #f6f7f7;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    padding: 12px 14px;
    margin: 4px 0 10px;
    font-size: 0.88em;
    white-space: pre-wrap;
    overflow-x: auto;
}

/* Hide the plain H1 that WP admin sometimes injects; we render our own. */
.pbb-settings-page .wrap > h1:first-of-type:not(:only-child):not(.pbb-settings-header *) {
    display: none;
}

/* ======================================================================
   My Account → Бонусы (страница /my-account/bonus-system/)
   ====================================================================== */

.pbb-account {
    --pbb-pink: #ef6c99;
    --pbb-pink-dark: #d95785;
    --pbb-pink-soft: #fdecf2;
    --pbb-pink-border: #f3d9e3;
    --pbb-ink: #2b2b34;
    --pbb-muted: #6a6a78;

    display: flex;
    flex-direction: column;
    gap: 20px;
    color: var(--pbb-ink);
    font-family: inherit;
}

.pbb-account h2,
.pbb-account h3 {
    font-family: inherit;
    color: var(--pbb-ink);
}

.pbb-account__hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    padding: 28px 32px;
    background: linear-gradient(135deg, #fff 0%, var(--pbb-pink-soft) 100%);
    border: 1px solid var(--pbb-pink-border);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(239, 108, 153, 0.08);
    flex-wrap: wrap;
}

.pbb-account__hero-left {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    flex: 1 1 280px;
}

.pbb-account__hero-label {
    font-size: 0.85em;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--pbb-muted);
    font-weight: 600;
}

.pbb-account__hero-balance {
    font-size: 2.6em;
    font-weight: 900;
    line-height: 1.1;
    color: var(--pbb-pink);
    letter-spacing: -0.02em;
}

.pbb-account__hero-note {
    font-size: 0.95em;
    color: var(--pbb-muted);
}

.pbb-account__hero-note--warn {
    color: #a8481f;
    background: #fff4e5;
    border: 1px solid #f5d8b8;
    padding: 6px 10px;
    border-radius: 8px;
    display: inline-block;
    font-size: 0.88em;
}

.pbb-account__hero-right {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex: 0 0 auto;
}

.pbb-account__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--pbb-pink);
    color: #fff;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.95em;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
    box-shadow: 0 6px 16px rgba(239, 108, 153, 0.25);
}

.pbb-account__cta:hover,
.pbb-account__cta:focus {
    background: var(--pbb-pink-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(239, 108, 153, 0.35);
}

.pbb-account__cta--inline {
    margin-top: 12px;
}

.pbb-account__tile {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e9eaef;
    border-radius: 12px;
}

.pbb-account__tile--accent {
    background: linear-gradient(135deg, #fff 0%, var(--pbb-pink-soft) 140%);
    border-color: var(--pbb-pink-border);
}

.pbb-account__tile--warn {
    background: #fffbea;
    border-color: #f2e3a8;
}

.pbb-account__tile--warn.is-urgent {
    background: #fff1ec;
    border-color: #f5bba8;
}

.pbb-account__tile-icon {
    font-size: 1.4em;
    line-height: 1.2;
    flex: 0 0 auto;
}

.pbb-account__tile-body {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.pbb-account__tile-title {
    font-size: 1em;
    font-weight: 700;
    color: var(--pbb-ink);
}

.pbb-account__tile-text {
    margin: 0;
    color: var(--pbb-ink);
    font-size: 0.95em;
}

.pbb-account__tile-hint {
    margin: 0;
    color: var(--pbb-muted);
    font-size: 0.88em;
}

.pbb-account__section-title {
    font-size: 1.1em;
    font-weight: 700;
    margin: 0 0 14px;
    color: var(--pbb-ink);
}

.pbb-account__rules {
    padding: 24px;
    background: #fff;
    border: 1px solid #e9eaef;
    border-radius: 14px;
}

.pbb-account__rules-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 22px;
}

.pbb-account__rule {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 0;
    margin: 0;
}

.pbb-account__rule-icon {
    flex: 0 0 34px;
    height: 34px;
    width: 34px;
    border-radius: 50%;
    background: var(--pbb-pink-soft);
    color: var(--pbb-pink-dark);
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1em;
}

.pbb-account__rule > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pbb-account__rule strong {
    font-size: 0.98em;
    color: var(--pbb-ink);
}

.pbb-account__rule span {
    font-size: 0.88em;
    color: var(--pbb-muted);
    line-height: 1.45;
}

.pbb-account__history {
    padding: 24px;
    background: #fff;
    border: 1px solid #e9eaef;
    border-radius: 14px;
}

.pbb-account__history-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.pbb-account__history-head .pbb-account__section-title {
    margin: 0;
}

.pbb-account__history-count {
    font-size: 0.88em;
    color: var(--pbb-muted);
}

.pbb-account__history-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: #eef0f4;
    border: 1px solid #eef0f4;
    border-radius: 10px;
    overflow: hidden;
}

.pbb-account__history-item {
    display: flex;
    gap: 14px;
    align-items: center;
    padding: 12px 16px;
    background: #fff;
}

.pbb-account__history-icon {
    flex: 0 0 32px;
    height: 32px;
    width: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95em;
    font-weight: 800;
}

.pbb-account__history-item.is-positive .pbb-account__history-icon {
    background: #e6f4ea;
    color: #2e7d3e;
}

.pbb-account__history-item.is-negative .pbb-account__history-icon {
    background: #fdecf2;
    color: var(--pbb-pink-dark);
}

.pbb-account__history-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pbb-account__history-type {
    font-weight: 700;
    color: var(--pbb-ink);
}

.pbb-account__history-note {
    font-size: 0.88em;
    color: var(--pbb-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.pbb-account__history-date {
    font-size: 0.82em;
    color: var(--pbb-muted);
}

.pbb-account__history-amount {
    flex: 0 0 auto;
    font-weight: 800;
    font-size: 1.05em;
    white-space: nowrap;
}

.pbb-account__history-item.is-positive .pbb-account__history-amount {
    color: #2e7d3e;
}

.pbb-account__history-item.is-negative .pbb-account__history-amount {
    color: var(--pbb-pink-dark);
}

.pbb-account__pagination {
    margin-top: 16px;
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pbb-account__page {
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f5f6f9;
    color: var(--pbb-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.92em;
    transition: background 0.15s ease, color 0.15s ease;
}

.pbb-account__page:hover,
.pbb-account__page:focus {
    background: var(--pbb-pink-soft);
    color: var(--pbb-pink-dark);
}

.pbb-account__page.is-current {
    background: var(--pbb-pink);
    color: #fff;
    cursor: default;
}

.pbb-account__empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--pbb-muted);
}

.pbb-account__empty-icon {
    font-size: 2em;
    display: block;
    margin-bottom: 8px;
}

.pbb-account__empty p {
    margin: 0 0 4px;
}

@media (max-width: 780px) {
    .pbb-account__hero {
        padding: 22px;
    }

    .pbb-account__hero-balance {
        font-size: 2.1em;
    }

    .pbb-account__rules-list {
        grid-template-columns: 1fr;
    }

    .pbb-account__history-item {
        padding: 12px;
        gap: 10px;
    }

    .pbb-account__history-amount {
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .pbb-account__hero {
        flex-direction: column;
        align-items: flex-start;
    }

    .pbb-account__cta {
        width: 100%;
        justify-content: center;
    }

    .pbb-account__history-note {
        white-space: normal;
    }
}
