/* ==============================================
   Программа лояльности «Глэмп-бонусы»
   ============================================== */


/* -----------------------------------------------
   Buyer-bonus page: wrapper, container, head
   ----------------------------------------------- */

.buyer-bonus-page {
    font-family: 'Roboto', sans-serif;
    background: #f5f5f5;
    padding: 0 15px 80px;
    min-height: calc(100vh - 200px);
}

.buyer-bonus__container {
    max-width: 1300px;
    margin: 0 auto;
}

.buyer-bonus__head h1 {
    font-size: 32px;
    margin-bottom: 30px;
    color: #232323;
}

/* Two-column: widget + levels side by side */
.buyer-bonus__main-row {
    display: flex;
    gap: 24px;
    margin-bottom: 40px;
    align-items: flex-start;
}

.buyer-bonus__main-row .bonus-widget-full {
    flex: 1;
    min-width: 0;
    max-width: none;
}

.buyer-bonus__main-row .levels-progress {
    flex: 1;
    min-width: 0;
    margin-bottom: 0;
}

.buyer-bonus__back-link {
    display: inline-block;
    color: #097D56;
    text-decoration: none;
    margin-bottom: 12px;
    font-size: 14px;
}

.buyer-bonus__back-link:hover {
    text-decoration: underline;
}


/* -----------------------------------------------
   Buyer-bonus page: top cards (balance + level)
   ----------------------------------------------- */

.buyer-bonus__top-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 30px;
}

.buyer-bonus__balance-card,
.buyer-bonus__level-card {
    background: #fff;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.buyer-bonus__balance-card {
    background: linear-gradient(135deg, #097D56 0%, #0A9D6C 100%);
    color: #fff;
}

.buyer-bonus__balance-label {
    font-size: 14px;
    opacity: 0.85;
    margin-bottom: 8px;
}

.buyer-bonus__balance-amount {
    font-size: 42px;
    font-weight: 700;
    margin-bottom: 8px;
}

.buyer-bonus__balance-sub {
    font-size: 14px;
    opacity: 0.8;
}

/* Expiring alert — default (inside green balance card, white text) */
.buyer-bonus__expiring-alert {
    margin-top: 16px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    font-size: 13px;
    color: inherit;
}

/* Expiring alert — variant for light backgrounds (bonus-widget-full, info cards) */
.bonus-widget-full .buyer-bonus__expiring-alert,
.buyer-bonus__expiring-alert--dark {
    background: #fff3e0;
    color: #e65100;
}

.buyer-bonus__level-icon {
    font-size: 40px;
    margin-bottom: 8px;
}

.buyer-bonus__level-name {
    font-size: 22px;
    font-weight: 600;
    color: #232323;
    margin-bottom: 6px;
}

.buyer-bonus__level-info {
    font-size: 14px;
    color: #666;
    margin-bottom: 16px;
}

.buyer-bonus__progress {
    margin-top: 12px;
}

.buyer-bonus__progress-bar {
    height: 8px;
    background: #e8e8e8;
    border-radius: 4px;
    overflow: hidden;
}

.buyer-bonus__progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #097D56, #0A9D6C);
    border-radius: 4px;
    transition: width 0.6s ease;
}

.buyer-bonus__progress-text {
    font-size: 13px;
    color: #888;
    margin-top: 8px;
}

.buyer-bonus__max-level {
    color: #097D56;
    font-weight: 500;
}


/* -----------------------------------------------
   Buyer-bonus page: stats
   ----------------------------------------------- */

.buyer-bonus__stats {
    display: flex;
    gap: 20px;
    margin-bottom: 40px;
}

.buyer-bonus__stat {
    background: #fff;
    border-radius: 16px;
    padding: 20px 28px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.buyer-bonus__stat-label {
    font-size: 13px;
    color: #888;
}

.buyer-bonus__stat-value {
    font-size: 20px;
    font-weight: 600;
    color: #232323;
}

.buyer-bonus__stat-value--green {
    color: #097D56;
}


/* -----------------------------------------------
   Buyer-bonus page: levels section
   ----------------------------------------------- */

.buyer-bonus__levels-section {
    margin-bottom: 40px;
}

.buyer-bonus__levels-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.buyer-bonus__levels-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.buyer-bonus__level-item {
    background: #fff;
    border-radius: 20px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    position: relative;
    opacity: 0.6;
    transition: all 0.3s ease;
}

.buyer-bonus__level-item--achieved {
    opacity: 1;
}

.buyer-bonus__level-item--current {
    border: 2px solid #097D56;
    opacity: 1;
}

.buyer-bonus__level-item-icon {
    font-size: 36px;
    margin-bottom: 10px;
}

.buyer-bonus__level-item-name {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.buyer-bonus__level-item-info {
    font-size: 13px;
    color: #888;
}

.buyer-bonus__level-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #097D56;
    color: #fff;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    font-weight: 500;
}


/* -----------------------------------------------
   Buyer-bonus page: transactions (old table-style)
   ----------------------------------------------- */

.buyer-bonus__transactions-section {
    margin-bottom: 40px;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    padding: 30px;
}

.buyer-bonus__transactions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.buyer-bonus__transactions-header h2 {
    font-size: 22px;
    margin: 0;
}

.buyer-bonus__view-all {
    color: #097D56;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.buyer-bonus__transactions-list,
.transactions-list {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.buyer-bonus__txn-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
}

.buyer-bonus__txn-row:last-child {
    border-bottom: none;
}

.buyer-bonus__txn-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.buyer-bonus__txn-type {
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 500;
    white-space: nowrap;
}

.buyer-bonus__txn-type--earn,
.buyer-bonus__txn-type--review { background: #e8f5e9; color: #2e7d32; }
.buyer-bonus__txn-type--spend  { background: #e3f2fd; color: #1565c0; }
.buyer-bonus__txn-type--expire { background: #fff3e0; color: #e65100; }
.buyer-bonus__txn-type--refund { background: #f3e5f5; color: #7b1fa2; }
.buyer-bonus__txn-type--manual { background: #f5f5f5; color: #616161; }

.buyer-bonus__txn-desc {
    font-size: 14px;
    color: #444;
}

.buyer-bonus__txn-right {
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: right;
}

.buyer-bonus__txn-amount {
    font-size: 16px;
    font-weight: 600;
}

.buyer-bonus__txn-amount--positive { color: #097D56; }
.buyer-bonus__txn-amount--negative { color: #d32f2f; }

.buyer-bonus__txn-balance {
    font-size: 12px;
    color: #aaa;
}

.buyer-bonus__txn-date {
    font-size: 13px;
    color: #999;
    min-width: 80px;
}


/* -----------------------------------------------
   Buyer-bonus page: filters
   ----------------------------------------------- */

.buyer-bonus__filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.buyer-bonus__filter {
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    transition: all 0.2s;
}

.buyer-bonus__filter:hover {
    border-color: #097D56;
    color: #097D56;
}

.buyer-bonus__filter--active {
    background: #097D56;
    color: #fff;
    border-color: #097D56;
}


/* -----------------------------------------------
   Buyer-bonus page: pagination
   ----------------------------------------------- */

.buyer-bonus__pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.buyer-bonus__page-link {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    text-decoration: none;
    color: #666;
    background: #fff;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    transition: all 0.2s;
}

.buyer-bonus__page-link:hover {
    border-color: #097D56;
    color: #097D56;
}

.buyer-bonus__page-link--current {
    background: #097D56;
    color: #fff;
    border-color: #097D56;
}


/* -----------------------------------------------
   Buyer-bonus page: empty transactions
   ----------------------------------------------- */

.buyer-bonus__empty-transactions {
    background: #fff;
    border-radius: 20px;
    padding: 60px 30px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.buyer-bonus__empty-transactions p {
    font-size: 16px;
    color: #888;
    margin-bottom: 20px;
}

.buyer-bonus__btn-book {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #097D56, #0A9D6C);
    color: #fff;
    text-decoration: none;
    border-radius: 14px;
    font-weight: 500;
    font-size: 15px;
    transition: opacity 0.2s;
}

.buyer-bonus__btn-book:hover {
    opacity: 0.9;
    color: #fff;
}


/* -----------------------------------------------
   Buyer-bonus page: how it works
   ----------------------------------------------- */

.buyer-bonus__how-section {
    margin-bottom: 40px;
}

.buyer-bonus__how-section h2 {
    font-size: 22px;
    margin-bottom: 20px;
}

.buyer-bonus__how-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.buyer-bonus__how-step {
    background: #fff;
    border-radius: 20px;
    padding: 28px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.buyer-bonus__how-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #097D56, #0A9D6C);
    color: #fff;
    font-weight: 700;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
}

.buyer-bonus__how-text {
    font-size: 15px;
    color: #444;
    line-height: 1.5;
}


/* ==============================================
   Section 4: Full bonus widget (account page)
   ============================================== */

.bonus-widget-full {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    max-width: 400px;
}

.widget-full-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.widget-full-balance {
    font-size: 36px;
    font-weight: 700;
    color: #097D56;
}

.widget-full-balance-label {
    font-size: 14px;
    color: #888;
}

.widget-full-level {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #e8f5e9;
    padding: 8px 14px;
    border-radius: 20px;
}

.widget-full-level-icon {
    font-size: 18px;
}

.widget-full-level-name {
    font-weight: 600;
    color: #2e7d32;
    font-size: 14px;
}

.widget-full-progress {
    margin-bottom: 20px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.progress-bar {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #097D56, #0A9D6C);
    border-radius: 4px;
}

.widget-full-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 14px;
    text-align: center;
}

.info-card-icon {
    font-size: 20px;
    margin-bottom: 4px;
}

.info-card-value {
    font-size: 18px;
    font-weight: 700;
    color: #097D56;
}

.info-card-label {
    font-size: 12px;
    color: #888;
}

.widget-full-links {
    border-top: 1px solid #eee;
    padding-top: 16px;
}

.widget-full-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    color: #333;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}

.widget-full-link:last-child {
    border-bottom: none;
}

.widget-full-link:hover {
    color: #097D56;
}


/* ==============================================
   Section 5: Checkout bonus block
   ============================================== */

.checkout-bonus {
    background: #fff;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 400px;
}

.checkout-bonus-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.checkout-bonus-title {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-bonus-toggle {
    width: 48px;
    height: 26px;
    background: #e0e0e0;
    border-radius: 13px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-bonus-toggle.active {
    background: #097D56;
}

.checkout-bonus-toggle::after {
    content: '';
    position: absolute;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.checkout-bonus-toggle.active::after {
    transform: translateX(22px);
}

.checkout-bonus-content {
    display: none;
}

.checkout-bonus-content.active {
    display: block;
}

.checkout-bonus-info {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 14px;
}

.checkout-bonus-label {
    color: #666;
}

.checkout-bonus-value {
    font-weight: 600;
    color: #097D56;
}

.checkout-bonus-slider {
    margin: 20px 0;
}

.slider-track {
    height: 8px;
    background: #e0e0e0;
    border-radius: 4px;
    position: relative;
}

.slider-fill {
    height: 100%;
    background: #097D56;
    border-radius: 4px;
}

.slider-thumb {
    width: 24px;
    height: 24px;
    background: #097D56;
    border: 3px solid #fff;
    border-radius: 50%;
    position: absolute;
    top: -8px;
    transform: translateX(-50%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    cursor: pointer;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
}

.checkout-bonus-buttons {
    display: flex;
    gap: 8px;
    margin-top: 16px;
}

.bonus-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.bonus-btn:hover {
    border-color: #097D56;
    color: #097D56;
}

.bonus-btn.active {
    background: #097D56;
    color: #fff;
    border-color: #097D56;
}

.checkout-bonus-result {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
    text-align: center;
}

.result-label {
    font-size: 14px;
    color: #2e7d32;
}

.result-value {
    font-size: 24px;
    font-weight: 700;
    color: #097D56;
}


/* ==============================================
   Section 7: Levels progress track
   ============================================== */

.levels-progress {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.levels-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 24px;
    text-align: center;
}

.levels-track {
    position: relative;
    padding: 0 40px;
}

.levels-line {
    position: absolute;
    top: 24px;
    left: 60px;
    right: 60px;
    height: 4px;
    background: #e0e0e0;
    border-radius: 2px;
}

.levels-line-fill {
    height: 100%;
    background: #097D56;
    border-radius: 2px;
}

.levels-points {
    display: flex;
    justify-content: space-between;
    position: relative;
}

.level-point {
    text-align: center;
    width: 100px;
}

.level-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #e0e0e0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 8px;
    border: 3px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.level-point.completed .level-icon-wrapper {
    background: #097D56;
}

.level-point.active .level-icon-wrapper {
    background: #097D56;
    box-shadow: 0 0 0 4px rgba(9, 125, 86, 0.2);
}

.level-point-name {
    font-size: 13px;
    font-weight: 600;
    color: #888;
    margin-bottom: 2px;
}

.level-point.completed .level-point-name,
.level-point.active .level-point-name {
    color: #097D56;
}

.level-point-threshold {
    font-size: 11px;
    color: #aaa;
}


/* ==============================================
   Section 8: Empty states
   ============================================== */

.empty-state {
    text-align: center;
    padding: 40px 20px;
    max-width: 320px;
    margin: 0 auto;
}

.empty-state-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.empty-state-text {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}

.empty-state-btn {
    display: inline-block;
    background: #097D56;
    color: #fff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}


/* ==============================================
   Section 9: History page
   ============================================== */

.history-page {
    max-width: 700px;
}

.history-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.history-title {
    font-size: 20px;
    font-weight: 700;
    color: #1a3a2a;
    margin: 0;
}

.history-filters {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
}

.filter-btn:hover {
    border-color: #2e7d32;
    color: #2e7d32;
}

.filter-btn.active {
    background: #2e7d32;
    color: #fff;
    border-color: #2e7d32;
}

.filter-select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    cursor: pointer;
}

.history-summary {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.summary-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.summary-icon.green  { background: #e8f5e9; }
.summary-icon.orange { background: #fff3e0; }
.summary-icon.red    { background: #ffebee; }
.summary-icon.blue   { background: #e3f2fd; }

.summary-value {
    font-size: 18px;
    font-weight: 700;
    color: #1a3a2a;
}

.summary-label {
    font-size: 12px;
    color: #888;
}

.transactions-list {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.transactions-date-group {
    border-bottom: 1px solid #f0f0f0;
}

.transactions-date-group:last-child {
    border-bottom: none;
}

.date-label {
    padding: 12px 20px;
    background: #f8f9fa;
    font-size: 13px;
    font-weight: 600;
    color: #666;
}

.transaction-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid #f5f5f5;
    cursor: pointer;
    transition: background 0.2s;
}

.transaction-item:hover {
    background: #fafafa;
}

.transaction-item:last-child {
    border-bottom: none;
}

.transaction-item.level-up {
    background: linear-gradient(90deg, #e8f5e9, #fff);
}

.transaction-item.expired {
    opacity: 0.7;
}

.transaction-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 16px;
    flex-shrink: 0;
}

.transaction-icon.earn   { background: #e8f5e9; }
.transaction-icon.spend  { background: #fff3e0; }
.transaction-icon.review { background: #e3f2fd; }
.transaction-icon.expire { background: #ffebee; }
.transaction-icon.level  { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }

.transaction-content {
    flex: 1;
    min-width: 0;
}

.transaction-title {
    font-weight: 600;
    font-size: 15px;
    color: #1a3a2a;
    margin-bottom: 2px;
}

.transaction-subtitle {
    font-size: 13px;
    color: #888;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.transaction-right {
    text-align: right;
    margin-left: 16px;
}

.transaction-amount {
    font-size: 16px;
    font-weight: 700;
}

.transaction-amount.positive { color: #2e7d32; }
.transaction-amount.negative { color: #c62828; }

.transaction-balance {
    font-size: 12px;
    color: #888;
    margin-top: 2px;
}

.transaction-time {
    font-size: 11px;
    color: #aaa;
    margin-top: 2px;
}

.transaction-badge {
    display: inline-block;
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
}

.transaction-arrow {
    color: #ccc;
    font-size: 20px;
    margin-left: 8px;
}

.load-more {
    padding: 20px;
    text-align: center;
}

.load-more-btn {
    padding: 12px 32px;
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.load-more-btn:hover {
    border-color: #097D56;
    color: #097D56;
}


/* ==============================================
   Section 10: Transaction detail modal
   ============================================== */

.transaction-modal {
    background: #fff;
    border-radius: 20px;
    max-width: 400px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
}

.modal-header {
    background: linear-gradient(135deg, #097D56, #0A9D6C);
    padding: 30px;
    text-align: center;
    color: #fff;
}

.modal-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 16px;
}

.modal-amount {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 8px;
}

.modal-amount.positive { color: #fff; }
.modal-amount.negative { color: #ffcdd2; }

.modal-type {
    font-size: 16px;
    opacity: 0.9;
}

.modal-body {
    padding: 24px;
}

.modal-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0;
}

.modal-row:last-child {
    border-bottom: none;
}

.modal-label {
    color: #888;
    font-size: 14px;
}

.modal-value {
    font-weight: 600;
    font-size: 14px;
    color: #333;
}

.modal-value a {
    color: #097D56;
    text-decoration: none;
}

.modal-footer {
    padding: 16px 24px 24px;
    display: flex;
    gap: 12px;
}

.modal-btn {
    flex: 1;
    padding: 14px;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    text-align: center;
    text-decoration: none;
}

.modal-btn.primary {
    background: #097D56;
    color: #fff;
}

.modal-btn.secondary {
    background: #f5f5f5;
    color: #333;
}


/* ==============================================
   Section 11: Review prompt widget
   ============================================== */

.review-prompt-widget {
    background: linear-gradient(135deg, #fff9e6, #fff3cd);
    border: 1px solid #ffd54f;
    border-radius: 16px;
    padding: 20px;
    max-width: 400px;
}

.review-prompt-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.review-prompt-icon {
    width: 48px;
    height: 48px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.review-prompt-heading {
    font-size: 16px;
    font-weight: 700;
    color: #1a3a2a;
}

.review-prompt-subtitle {
    font-size: 13px;
    color: #666;
}

.review-prompt-bonuses {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
}

.review-bonus-option {
    flex: 1;
    background: #fff;
    border-radius: 10px;
    padding: 12px 8px;
    text-align: center;
    border: 2px solid transparent;
    transition: all 0.2s;
}

.review-bonus-option.featured {
    border-color: #4caf50;
}

.review-bonus-option.best {
    border-color: #ff9800;
    background: linear-gradient(135deg, #fff8e1, #fff);
    position: relative;
}

.bonus-option-icon {
    display: block;
    font-size: 20px;
    margin-bottom: 4px;
}

.bonus-option-label {
    display: block;
    font-size: 12px;
    color: #666;
    margin-bottom: 4px;
}

.bonus-option-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: #2e7d32;
}

.bonus-option-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff9800;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 8px;
}

.review-prompt-btn {
    display: block;
    background: #097D56;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: background 0.2s;
}

.review-prompt-btn:hover {
    background: #076347;
}


/* ==============================================
   Tooltips: help icon + tooltip
   ============================================== */

.help-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: #e0e0e0;
    border-radius: 50%;
    font-size: 12px;
    color: #666;
    cursor: help;
    position: relative;
}

.help-tooltip {
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #1a3a2a;
    color: #fff;
    padding: 10px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 400;
    width: 200px;
    text-align: left;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    margin-bottom: 8px;
    z-index: 100;
}

.help-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #1a3a2a;
}

.help-icon:hover .help-tooltip {
    opacity: 1;
    visibility: visible;
}


/* ==============================================
   Responsive: buyer-bonus page
   ============================================== */

@media (max-width: 768px) {
    .buyer-bonus__top-cards {
        grid-template-columns: 1fr;
    }

    .buyer-bonus__balance-amount {
        font-size: 32px;
    }

    .buyer-bonus__levels-grid,
    .buyer-bonus__how-steps {
        grid-template-columns: 1fr;
    }

    .buyer-bonus__stats {
        flex-direction: column;
    }

    .buyer-bonus__txn-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .buyer-bonus__txn-right {
        width: 100%;
        justify-content: space-between;
    }

    .buyer-bonus__head h1 {
        font-size: 24px;
    }

    .buyer-bonus__main-row {
        flex-direction: column;
    }

    .history-summary {
        grid-template-columns: repeat(2, 1fr);
    }

    .history-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* 12. Review form (inline on trips page) */
.review-form { background: #fff; border-radius: 20px; padding: 30px; max-width: 600px; margin-left: auto; margin-right: auto; box-shadow: 0 4px 20px rgba(0,0,0,0.08); }
.review-form-header { margin-bottom: 24px; }
.review-form-header h2 { font-size: 22px; font-weight: 700; color: #1a3a2a; margin: 0 0 8px; }
.review-form-property { display: flex; align-items: center; gap: 8px; color: #666; font-size: 14px; }
.property-emoji { font-size: 18px; }
.review-bonus-bar { background: linear-gradient(135deg, #e8f5e9, #c8e6c9); border-radius: 12px; padding: 16px 20px; margin-bottom: 24px; }
.bonus-bar-label { font-size: 13px; color: #2e7d32; margin-bottom: 4px; }
.bonus-bar-amount { font-size: 28px; font-weight: 700; color: #097D56; margin-bottom: 12px; }
.bonus-progress-track { height: 8px; background: rgba(255,255,255,0.5); border-radius: 4px; position: relative; }
.bonus-progress-fill { height: 100%; background: #097D56; border-radius: 4px; transition: width 0.3s; }
.bonus-progress-marker { position: absolute; top: -4px; width: 16px; height: 16px; background: #fff; border: 2px solid #ccc; border-radius: 50%; transform: translateX(-50%); }
.bonus-progress-marker.active { border-color: #097D56; background: #097D56; }
.bonus-progress-labels { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: #2e7d32; }
.review-field { margin-bottom: 24px; }
.review-label { display: block; font-size: 14px; font-weight: 600; color: #333; margin-bottom: 8px; }
.review-hint { font-weight: 400; color: #888; font-size: 13px; }
.star-rating { display: inline-flex; direction: rtl; gap: 4px; }
.star-rating .star { font-size: 32px; color: #ddd; cursor: pointer; transition: color 0.2s; direction: ltr; }
.star-rating .star.active { color: #ffc107; }
.star-rating .star:hover, .star-rating .star:hover ~ .star { color: #ffc107 !important; }
.review-textarea { width: 100%; padding: 14px; border: 1px solid #ddd; border-radius: 12px; font-size: 15px; font-family: inherit; resize: vertical; transition: border-color 0.2s; box-sizing: border-box; }
.review-textarea:focus { outline: none; border-color: #097D56; }
.review-textarea-counter { display: flex; justify-content: space-between; margin-top: 8px; font-size: 13px; color: #888; }
.counter-status.success { color: #2e7d32; font-weight: 600; }
.photo-upload-area { display: flex; flex-wrap: wrap; gap: 12px; }
.photo-preview { width: 80px; height: 80px; border-radius: 12px; overflow: hidden; position: relative; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 4px; right: 4px; width: 20px; height: 20px; background: rgba(0,0,0,0.5); color: #fff; border: none; border-radius: 50%; font-size: 14px; cursor: pointer; line-height: 1; }
.photo-add { width: 80px; height: 80px; border: 2px dashed #ddd; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: border-color 0.2s; }
.photo-add:hover { border-color: #097D56; }
.photo-add-icon { font-size: 24px; color: #aaa; }
.photo-add-text { font-size: 11px; color: #888; }
.photo-counter { margin-top: 8px; }
.video-bonus-hint { margin-top: 12px; padding: 12px; background: #fff8e1; border-radius: 8px; font-size: 13px; color: #f57c00; }
.review-submit-area { display: flex; justify-content: space-between; align-items: center; padding: 20px; background: #f8f9fa; border-radius: 12px; margin-bottom: 16px; }
.submit-bonus-label { font-size: 14px; color: #666; }
.submit-bonus-value {     margin-left: 26px; font-size: 24px; font-weight: 700; color: #097D56; margin-left: 8px; }
.submit-bonus-note { font-size: 12px; color: #888; display: block; }
.review-submit-btn { background: #097D56; color: #fff; border: none; padding: 16px 32px; border-radius: 10px; font-size: 16px; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.review-submit-btn:hover { background: #076347; }
.review-note { font-size: 13px; color: #888; line-height: 1.6; }
.review-note p { margin: 0 0 4px; }
@media (max-width: 768px) {
    .review-form { padding: 20px; }
    .review-submit-area { flex-direction: column; gap: 12px; text-align: center; }
    .review-submit-btn { width: 100%; }
}

/* 13. Review status card */
.review-status-card { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 2px 12px rgba(0,0,0,0.08); }
.review-status-header { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.status-icon { font-size: 20px; }
.status-label { font-weight: 600; font-size: 14px; }
.review-status-card.pending .status-label { color: #f57c00; }
.review-status-card.published .status-label { color: #2e7d32; }
.review-status-card.rejected .status-label { color: #c62828; }
.review-status-property { font-weight: 600; font-size: 15px; color: #1a3a2a; margin-bottom: 8px; }
.review-status-meta { font-size: 13px; color: #888; margin-bottom: 12px; }
.review-status-meta span { margin-right: 4px; }
.review-status-bonus { margin-bottom: 8px; }
.bonus-pending { color: #f57c00; font-weight: 600; font-size: 14px; }
.bonus-earned { color: #2e7d32; font-weight: 600; font-size: 14px; }
.review-status-date { font-size: 12px; color: #aaa; }
.review-status-reason { background: #ffebee; color: #c62828; padding: 10px 12px; border-radius: 8px; font-size: 13px; margin-bottom: 12px; }

/* Video upload button */
.video-upload-area { display: flex; }
.video-upload-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 40px; border: 2px dashed #ddd; border-radius: 12px; cursor: pointer; transition: all 0.2s; width: 100%; }
.video-upload-btn:hover { border-color: #ff9800; background: #fff8e1; }
.video-upload-icon { font-size: 32px; margin-bottom: 8px; }
.video-upload-text { font-weight: 600; color: #333; margin-bottom: 4px; }
.video-upload-hint { font-size: 12px; color: #888; }

/* 10. Transaction modal */
.transaction-modal { background: #fff; border-radius: 20px; padding: 30px; max-width: 400px; width: 90%; box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.transaction-modal .modal-header { text-align: center; margin-bottom: 20px; }
.transaction-modal .modal-icon { width: 56px; height: 56px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 24px; margin-bottom: 12px; }
.transaction-modal .modal-icon.earn { background: #e8f5e9; }
.transaction-modal .modal-icon.spend { background: #fff3e0; }
.transaction-modal .modal-icon.review { background: #e3f2fd; }
.transaction-modal .modal-icon.expire { background: #ffebee; }
.transaction-modal .modal-icon.refund { background: #f3e5f5; }
.transaction-modal .modal-icon.manual { background: #e0f2f1; }
.transaction-modal .modal-amount { font-size: 28px; font-weight: 700; color: #fff; }
.transaction-modal .modal-amount.positive { color: #fff; }
.transaction-modal .modal-amount.negative { color: #fff; }
.transaction-modal .modal-type { font-size: 14px; color: #fff; margin-top: 4px; }
.transaction-modal .modal-body { border-top: 1px solid #f0f0f0; padding-top: 16px; }
.transaction-modal .modal-row { display: flex; justify-content: space-between; padding: 8px 0; font-size: 14px; gap: 4px; }
.transaction-modal .modal-label { color: #888; }
.transaction-modal .modal-value { font-weight: 600; color: #333; text-align: end; }
.transaction-modal .modal-value a { color: #097D56; text-decoration: none; }
.transaction-modal .modal-footer { margin-top: 20px; display: flex; gap: 8px; justify-content: center; }
.transaction-modal .modal-btn { padding: 10px 24px; border-radius: 8px; border: none; cursor: pointer; font-size: 14px; font-weight: 600; }
.transaction-modal .modal-btn.primary { background: #097D56; color: #fff; }
.transaction-modal .modal-btn.primary:hover { background: #076347; }
.transaction-modal .modal-btn.secondary { background: #f5f5f5; color: #333; }
