/* ================================================
   Loyalty & Referral — Frontend CSS
   ================================================ */

/* ---- Floating Launcher ---- */
#lar-widget-launcher {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 99998;
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: #6b21d6;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 18px rgba(107,33,214,.45);
    transition: transform .2s, box-shadow .2s;
}
#lar-widget-launcher:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 24px rgba(107,33,214,.55);
}

/* ---- Popup ---- */
#lar-widget-popup {
    position: fixed;
    bottom: 90px;
    right: 24px;
    z-index: 99999;
    width: 300px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 40px rgba(0,0,0,.18);
    overflow: hidden;
    display: none;
    flex-direction: column;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
#lar-widget-popup.lar-open {
    display: flex;
    animation: larPopIn .2s ease;
}
@keyframes larPopIn {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
#lar-widget-close {
    position: absolute;
    top: 10px;
    right: 12px;
    background: rgba(255,255,255,.25);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1;
}
#lar-widget-close:hover { background: rgba(255,255,255,.38); }
.lar-widget-header {
    background: linear-gradient(135deg, #6b21d6, #7c3aed);
    color: #fff;
    padding: 22px 20px 18px;
}
.lar-widget-greeting { font-size: 15px; margin: 0 0 6px; opacity: .9; }
.lar-widget-greeting strong { font-weight: 700; }
.lar-widget-balance { font-size: 34px; font-weight: 800; margin: 0; line-height: 1.1; }
.lar-widget-balance span { font-size: 15px; font-weight: 500; opacity: .8; margin-left: 4px; }
.lar-widget-guest { text-align: center; padding: 24px 20px 20px; }
.lar-widget-header-icon { margin-bottom: 10px; }
.lar-widget-guest h3 { color: #fff; font-size: 17px; font-weight: 700; margin: 0 0 8px; }
.lar-widget-guest p { color: rgba(255,255,255,.85); font-size: 13px; margin: 0 0 16px; line-height: 1.5; }
.lar-widget-join-btn {
    display: inline-block;
    background: #f97316;
    color: #fff !important;
    font-size: 14px;
    font-weight: 700;
    padding: 10px 28px;
    border-radius: 24px;
    text-decoration: none !important;
    transition: background .2s, transform .15s;
}
.lar-widget-join-btn:hover { background: #ea6c0a; transform: translateY(-1px); }
.lar-widget-signin-text { font-size: 12px !important; margin: 12px 0 0 !important; color: rgba(255,255,255,.75) !important; }
.lar-widget-signin-text a { color: #fff !important; font-weight: 700; text-decoration: underline !important; }
.lar-widget-actions { display: flex; border-top: 1px solid #f0f0f0; }
.lar-widget-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 18px 12px 14px;
    text-decoration: none !important;
    color: #1e1e1e !important;
    font-size: 13px;
    font-weight: 600;
    border-right: 1px solid #f0f0f0;
    transition: background .15s;
    position: relative;
}
.lar-widget-action-btn:last-child { border-right: none; }
.lar-widget-action-btn:hover { background: #faf7ff; }
.lar-widget-action-icon { color: #6b21d6; }
.lar-widget-action-arrow { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #bbb; }

/* ---- Widget Tabs ---- */
.lar-widget-tabs {
    display: flex;
    border-bottom: 1px solid #ede8f7;
    background: #fff;
}
.lar-widget-tab {
    flex: 1;
    padding: 10px 6px;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 13px;
    font-weight: 600;
    color: #999;
    cursor: pointer;
    transition: color .15s, border-color .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}
.lar-widget-tab:hover { color: #6b21d6; }
.lar-widget-tab.active { color: #6b21d6; border-bottom-color: #6b21d6; }
.lar-widget-tab-badge {
    background: #6b21d6;
    color: #fff;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    padding: 1px 6px;
    line-height: 1.4;
}

/* ---- Widget Tab Content ---- */
.lar-widget-tab-content {
    padding: 16px 16px 0;
    max-height: 320px;
    overflow-y: auto;
}

/* ---- Widget Redeem ---- */
.lar-widget-redeem-wrap {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
}
.lar-widget-redeem-header {
    display: flex;
    align-items: center;
    gap: 10px;
}
.lar-widget-redeem-icon { flex-shrink: 0; }
.lar-widget-redeem-label {
    font-size: 14px;
    font-weight: 700;
    color: #1e1e1e;
    margin: 0;
}
.lar-widget-calc {
    display: flex;
    align-items: center;
    gap: 8px;
}
.lar-widget-calc-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lar-widget-calc-label {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lar-widget-calc-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #6b21d6;
    border-radius: 8px;
    overflow: hidden;
}
.lar-w-pts-btn {
    flex-shrink: 0;
    width: 30px;
    height: 36px;
    background: #ede9fe;
    border: none;
    color: #6b21d6;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .15s;
    padding: 0;
    line-height: 1;
}
.lar-w-pts-btn:hover { background: #ddd6fe; }
.lar-w-pts-btn:active { background: #c4b5fd; }
.lar-w-pts-btn:disabled { opacity: .4; cursor: not-allowed; }
.lar-widget-calc input[type=number] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #6b21d6;
    padding: 0;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}
.lar-widget-calc input::-webkit-outer-spin-button,
.lar-widget-calc input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lar-widget-calc-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 16px;
}
.lar-widget-calc-value {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f9f7ff;
    border: 2px solid #e0d7f5;
    border-radius: 8px;
    padding: 7px 10px;
}
.lar-widget-calc-sym {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.lar-widget-calc #lar-w-discount-preview {
    font-size: 16px;
    font-weight: 700;
    color: #6b21d6;
}
.lar-widget-redeem-btn {
    width: 100%;
    background: #6b21d6;
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}
.lar-widget-redeem-btn svg:last-child { margin-left: auto; }
.lar-widget-redeem-btn:hover { background: #5b1ab8; transform: translateY(-1px); }
.lar-widget-redeem-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.lar-w-redeem-msg {
    font-size: 12px;
    min-height: 14px;
    margin: 0;
    text-align: center;
}
.lar-w-redeem-msg.error   { color: #dc2626; }
.lar-w-redeem-msg.success { color: #059669; }

/* ---- Widget Empty State ---- */
.lar-widget-empty {
    text-align: center;
    padding: 20px 10px 14px;
    color: #bbb;
}
.lar-widget-empty p { margin: 10px 0 4px; font-size: 13px; color: #aaa; }
.lar-widget-empty small { font-size: 11px; color: #ccc; }

/* ---- Widget Coupon List ---- */
.lar-widget-coupon-list { display: flex; flex-direction: column; gap: 10px; padding-bottom: 12px; }
.lar-widget-coupon-item {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lar-widget-coupon-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.lar-widget-coupon-name { font-size: 13px; font-weight: 700; color: #1e1e1e; }
.lar-widget-coupon-val  { font-size: 13px; font-weight: 700; color: #6b21d6; }
.lar-widget-coupon-code-wrap {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px dashed #f97316;
    border-radius: 6px;
    padding: 5px 10px;
    background: #fff8f0;
}
.lar-widget-coupon-code {
    font-size: 12px;
    font-weight: 700;
    color: #f97316;
    font-family: monospace;
    letter-spacing: .04em;
    flex: 1;
}
.lar-w-copy-btn {
    background: none;
    border: none;
    color: #f97316;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.lar-w-copy-btn:hover { opacity: .7; }
.lar-widget-apply-btn {
    width: 100%;
    background: #6b21d6 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 6px !important;
    padding: 8px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    cursor: pointer;
    text-align: center;
    transition: background .2s;
}
.lar-widget-apply-btn:hover { background: #5b1ab8 !important; }

/* ---- Widget Earn Info Card ---- */
.lar-widget-earn-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f9f7ff;
    border: 1px solid #e4d9f7;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 4px;
}
.lar-widget-earn-icon {
    width: 44px;
    height: 44px;
    background: #ede9fe;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lar-widget-earn-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.lar-widget-earn-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
}
.lar-widget-earn-text span {
    font-size: 12px;
    color: #6b21d6;
    font-weight: 500;
}

/* ---- Widget Referral Card ---- */
.lar-widget-ref-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 4px;
}
.lar-widget-ref-top {
    display: flex;
    align-items: center;
    gap: 12px;
}
.lar-widget-ref-icon {
    width: 40px;
    height: 40px;
    background: #fef3c7;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lar-widget-ref-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
}
.lar-widget-ref-text strong {
    font-size: 13px;
    font-weight: 700;
    color: #1e1e1e;
}
.lar-widget-ref-text span {
    font-size: 12px;
    color: #92400e;
    font-weight: 500;
}
.lar-widget-ref-link-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #fde68a;
    border-radius: 7px;
    padding: 5px 8px;
}
.lar-widget-ref-link-text {
    flex: 1;
    font-size: 11px;
    color: #78350f;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: monospace;
    min-width: 0;
    user-select: all;
}
.lar-w-ref-copy-btn {
    flex-shrink: 0;
    background: #d97706;
    border: none;
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: background .15s;
}
.lar-w-ref-copy-btn:hover { background: #b45309; }
.lar-w-ref-copy-btn.copied { background: #059669; }

/* ---- How to Earn trigger button ---- */
.lar-w-earn-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    background: #f9f7ff;
    border: 1px solid #e4d9f7;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 13px;
    font-weight: 600;
    color: #6b21d6;
    cursor: pointer;
    margin: 0px 0 10px;
    transition: background .15s;
}
.lar-w-earn-trigger:hover { background: #ede9fe; }

/* ---- How to Earn sub-view header ---- */
.lar-w-earn-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 2px 0 12px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 12px;
}
.lar-w-earn-back {
    display: flex;
    align-items: center;
    gap: 5px;
    background: none;
    border: none;
    color: #6b21d6;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
}
.lar-w-earn-back:hover { opacity: .75; }
.lar-w-earn-title {
    font-size: 14px;
    font-weight: 700;
    color: #1e1e1e;
    margin-left: 4px;
}

/* ---- Widget View All link ---- */
.lar-widget-view-all {
    display: block;
    text-align: center;
    padding: 12px 0 14px;
    font-size: 13px;
    color: #6b21d6 !important;
    text-decoration: none !important;
    font-weight: 600;
    border-top: 1px solid #f0f0f0;
    margin-top: 4px;
}
.lar-widget-view-all:hover { opacity: .75; }

/* ================================================
   MY ACCOUNT — Points & Rewards Page
   ================================================ */
/* ---- Base isolation ---- */
.lar-account-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
    color: #1e1e1e !important;
    line-height: 1.5 !important;
    box-sizing: border-box !important;
}
.lar-account-wrap *,
.lar-account-wrap *::before,
.lar-account-wrap *::after {
    box-sizing: inherit;
    font-family: inherit;
}
.lar-account-wrap p { margin: 0; }
.lar-account-wrap a { text-decoration: none; }

/* ---- Section title ---- */
.lar-section-title {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: .1em !important;
    text-transform: uppercase !important;
    color: #6b7280 !important;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}
.lar-section-bar {
    display: inline-block !important;
    width: 3px !important;
    height: 14px !important;
    background: #6b21d6 !important;
    border-radius: 2px !important;
    flex-shrink: 0 !important;
}

/* ---- Stats grid ---- */
.lar-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 12px !important;
    margin-bottom: 32px !important;
}
.lar-stat-card {
    border: 1.5px solid #f0ebfb !important;
    border-radius: 14px !important;
    padding: 18px 16px 16px !important;
    position: relative !important;
    background: #fff !important;
    box-shadow: 0 1px 4px rgba(107,33,214,.06) !important;
    overflow: hidden !important;
}
.lar-stat-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important; left: 0 !important; right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #6b21d6, #a855f7) !important;
    border-radius: 14px 14px 0 0 !important;
}
.lar-icon-earn  .lar-stat-card::before { background: linear-gradient(90deg, #6b21d6, #a855f7) !important; }
.lar-icon-redeem .lar-stat-card::before { background: linear-gradient(90deg, #2563eb, #60a5fa) !important; }
.lar-icon-used  .lar-stat-card::before { background: linear-gradient(90deg, #059669, #34d399) !important; }

.lar-stat-icon {
    width: 38px !important;
    height: 38px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin-bottom: 14px !important;
}
.lar-icon-earn  { background: #ede9fe !important; }
.lar-icon-redeem { background: #dbeafe !important; }
.lar-icon-used   { background: #d1fae5 !important; }
.lar-icon-earn  svg { stroke: #6b21d6 !important; width: 20px !important; height: 20px !important; }
.lar-icon-redeem svg { stroke: #2563eb !important; width: 20px !important; height: 20px !important; }
.lar-icon-used  svg { stroke: #059669 !important; width: 20px !important; height: 20px !important; }

.lar-stat-label {
    font-size: 12px !important;
    color: #6b7280 !important;
    margin: 0 0 4px !important;
    font-weight: 500 !important;
    display: block !important;
}
.lar-stat-value {
    font-size: 26px !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
    line-height: 1.1 !important;
    color: #111827 !important;
    display: block !important;
}
.lar-stat-sub {
    font-size: 11px !important;
    color: #9ca3af !important;
    margin: 0 !important;
    display: block !important;
}
.lar-currency-badge {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    background: #f3f4f6 !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 5px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    color: #6b7280 !important;
    padding: 2px 6px !important;
    letter-spacing: .04em !important;
    line-height: 1.4 !important;
}

/* ---- Tabs ---- */
.lar-tabs {
    display: flex !important;
    background: #f9f7ff !important;
    border: 1.5px solid #ede9fe !important;
    border-radius: 10px !important;
    padding: 4px !important;
    margin-bottom: 20px !important;
    gap: 2px !important;
}
.lar-tab {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 8px 14px !important;
    background: transparent !important;
    border: none !important;
    border-radius: 7px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #6b7280 !important;
    cursor: pointer !important;
    transition: background .15s, color .15s !important;
    white-space: nowrap !important;
    box-shadow: none !important;
    outline: none !important;
    flex: 1 !important;
    justify-content: center !important;
    text-transform: none !important;
    letter-spacing: 0 !important;
    line-height: 1.4 !important;
}
.lar-tab:hover { color: #6b21d6 !important; background: rgba(107,33,214,.06) !important; }
.lar-tab.active {
    background: #fff !important;
    color: #6b21d6 !important;
    box-shadow: 0 1px 4px rgba(107,33,214,.15) !important;
}
.lar-tab-badge {
    background: #6b21d6 !important;
    color: #fff !important;
    border-radius: 10px !important;
    font-size: 10px !important;
    font-weight: 700 !important;
    padding: 1px 6px !important;
    min-width: 16px !important;
    text-align: center !important;
    line-height: 1.5 !important;
}

/* ---- Rewards tab grid ---- */
#lar-tab-rewards {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px !important;
    align-items: start !important;
}

/* ---- Reward Cards ---- */
.lar-reward-card {
    border: 1.5px solid #ede9fe !important;
    border-radius: 14px !important;
    padding: 20px 20px 18px !important;
    position: relative !important;
    background: #fff !important;
    display: block !important;
    box-shadow: 0 1px 4px rgba(107,33,214,.06) !important;
}
.lar-reward-tag {
    position: absolute !important;
    top: 14px !important;
    right: 14px !important;
    background: #f3f0ff !important;
    border: 1px solid #ddd6fe !important;
    border-radius: 20px !important;
    font-size: 10px !important;
    color: #7c3aed !important;
    padding: 2px 8px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: .04em !important;
    line-height: 1.4 !important;
}
.lar-reward-icon {
    width: 44px !important;
    height: 44px !important;
    background: #ede9fe !important;
    border-radius: 12px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 14px !important;
}
.lar-reward-icon svg {
    width: 22px !important;
    height: 22px !important;
    stroke: #6b21d6 !important;
}
.lar-referral-reward-card .lar-reward-icon {
    background: #fff7ed !important;
}
.lar-referral-reward-card .lar-reward-icon svg {
    stroke: #d97706 !important;
}
.lar-reward-title {
    font-size: 15px !important;
    font-weight: 700 !important;
    margin: 0 0 10px !important;
    color: #111827 !important;
    line-height: 1.3 !important;
}
.lar-reward-desc {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin: 0 0 14px !important;
    line-height: 1.55 !important;
}
.lar-not-enough {
    font-size: 13px !important;
    color: #9ca3af !important;
    margin: 8px 0 0 !important;
    line-height: 1.5 !important;
}

/* Redeem Now button */
.lar-redeem-now-btn.button,
.lar-redeem-now-btn.button-primary {
    background: #6b21d6 !important;
    color: #fff !important;
    border-color: #6b21d6 !important;
    border-radius: 50px !important;
    padding: 11px 24px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: background .2s, transform .15s;
}
.lar-redeem-now-btn[style*="display: none"] { display: none !important; }
.lar-redeem-now-btn:hover {
    background: #5b1ab8 !important;
    border-color: #5b1ab8 !important;
    transform: translateY(-1px);
}
.lar-redeem-now-btn svg:last-child { margin-left: auto; }

/* Inline redeem form */
.lar-inline-redeem {
    border: 1px solid #e8e8e8;
    border-radius: 8px;
    padding: 14px 14px 16px;
    margin-bottom: 14px;
    position: relative;
    background: #faf7ff;
}
.lar-close-inline {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    font-size: 16px;
    color: #999;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.lar-close-inline:hover { color: #333; }

/* ---- Calc grid (My Account redeem form) ---- */
.lar-calc-grid {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
}
.lar-calc-grid-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.lar-calc-grid-label {
    font-size: 10px;
    font-weight: 600;
    color: #999;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.lar-calc-grid-input-wrap {
    display: flex;
    align-items: center;
    background: #fff;
    border: 2px solid #6b21d6;
    border-radius: 8px;
    overflow: hidden;
}
.lar-pts-step-btn {
    flex-shrink: 0;
    width: 30px;
    height: 36px;
    background: #ede9fe;
    border: none;
    color: #6b21d6;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
    transition: background .15s;
}
.lar-pts-step-btn:hover { background: #ddd6fe; }
.lar-pts-step-btn:active { background: #c4b5fd; }
.lar-pts-step-btn:disabled { opacity: .4; cursor: not-allowed; }
.lar-calc-grid-input-wrap input[type=number] {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-size: 15px;
    font-weight: 700;
    color: #6b21d6;
    padding: 0;
    text-align: center;
    -moz-appearance: textfield;
    appearance: textfield;
    outline: none;
}
.lar-calc-grid-input-wrap input::-webkit-outer-spin-button,
.lar-calc-grid-input-wrap input::-webkit-inner-spin-button { -webkit-appearance: none; }
.lar-calc-grid-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    padding-top: 16px;
}
.lar-calc-grid-value {
    display: flex;
    align-items: center;
    gap: 3px;
    background: #f9f7ff;
    border: 2px solid #e0d7f5;
    border-radius: 8px;
    padding: 7px 10px;
    height: 36px;
    box-sizing: border-box;
}
.lar-calc-grid-sym {
    font-size: 13px;
    color: #888;
    font-weight: 500;
}
.lar-calc-grid-value #lar-discount-preview {
    font-size: 16px;
    font-weight: 700;
    color: #6b21d6;
}

/* ---- Redeem (submit) button ---- */
.lar-do-redeem-btn.button,
.lar-do-redeem-btn.button-primary {
    background: #6b21d6 !important;
    color: #fff !important;
    border-color: #6b21d6 !important;
    width: 100%;
    padding: 11px 20px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    border-radius: 50px !important;
    cursor: pointer;
    transition: background .2s, transform .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
}
.lar-do-redeem-btn:disabled { opacity: .65; cursor: not-allowed; transform: none; }
.lar-do-redeem-btn:hover:not(:disabled) { background: #5b1ab8 !important; transform: translateY(-1px); }
.lar-redeem-msg { font-size: 12px; margin: 8px 0 0; min-height: 16px; }
.lar-redeem-msg.success { color: #059669; }
.lar-redeem-msg.error   { color: #dc2626; }

/* Spinner */
.lar-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: lar-spin .7s linear infinite;
}
@keyframes lar-spin { to { transform: rotate(360deg); } }

/* Referral card link row */
.lar-ref-link-row {
    display: flex !important;
    gap: 8px !important;
    align-items: center !important;
}
.lar-ref-link-row input {
    flex: 1 !important;
    padding: 8px 10px !important;
    border: 1.5px solid #e5e7eb !important;
    border-radius: 8px !important;
    font-size: 12px !important;
    background: #f9fafb !important;
    min-width: 0 !important;
    color: #374151 !important;
    outline: none !important;
    font-family: monospace !important;
}
.lar-copy-ref-btn.button {
    padding: 8px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    background: #6b21d6 !important;
    color: #fff !important;
    border-color: #6b21d6 !important;
    border-radius: 8px !important;
    white-space: nowrap !important;
    cursor: pointer !important;
    transition: background .15s !important;
    display: inline-flex !important;
    align-items: center !important;
    flex-shrink: 0 !important;
}
.lar-copy-ref-btn.button:hover { background: #5b1ab8 !important; border-color: #5b1ab8 !important; }

/* ---- Coupon cards ---- */
.lar-coupon-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 16px 18px;
    margin-bottom: 12px;
    background: #fff;
    gap: 16px;
    flex-wrap: wrap;
}
.lar-coupon-card.lar-coupon-used { opacity: .65; }
.lar-coupon-left {
    display: flex;
    align-items: center;
    gap: 14px;
    flex: 1;
    min-width: 0;
}
.lar-coupon-icon-wrap {
    width: 46px;
    height: 46px;
    background: #f3eeff;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.lar-coupon-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.lar-coupon-info strong { font-size: 14px; font-weight: 700; }
.lar-coupon-info span   { font-size: 13px; color: #6b21d6; }
.lar-coupon-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    flex-shrink: 0;
}
.lar-coupon-code-box {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 2px dashed #f97316;
    border-radius: 6px;
    padding: 6px 12px;
    background: #fff8f0;
}
.lar-coupon-code {
    font-size: 14px;
    font-weight: 700;
    color: #f97316;
    letter-spacing: .05em;
    font-family: monospace;
}
.lar-copy-code-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #f97316;
    padding: 0;
    display: flex;
    align-items: center;
    transition: transform .15s;
}
.lar-copy-code-btn:hover { transform: scale(1.2); }
.lar-copy-code-btn.copied { color: #059669; }

.lar-apply-coupon-btn.button,
.lar-apply-coupon-btn.button-primary {
    background: #6b21d6 !important;
    color: #fff !important;
    border-color: #6b21d6 !important;
    border-radius: 6px !important;
    padding: 8px 18px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    cursor: pointer;
    white-space: nowrap;
    transition: background .2s;
}
.lar-apply-coupon-btn:hover { background: #5b1ab8 !important; }
.lar-apply-coupon-btn:disabled { opacity: .65; cursor: not-allowed; }

.lar-coupon-expiry {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #666;
    background: #f5f5f5;
    border-radius: 20px;
    padding: 3px 9px;
    font-weight: 500;
    white-space: nowrap;
}
.lar-coupon-expiry svg { flex-shrink: 0; }
.lar-expiry-soon {
    background: #fff3cd;
    color: #92400e;
    font-weight: 700;
}
.lar-expiry-soon svg { stroke: #92400e; }
.lar-no-expiry { color: #aaa; background: #f9f9f9; }
.lar-expiry-muted { color: #bbb; background: #f5f5f5; font-size: 11px; }

.lar-used-badge {
    background: #f0f0f0;
    color: #888;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    text-transform: uppercase;
}
.lar-used-code {
    font-size: 13px;
    color: #aaa;
    font-family: monospace;
    font-weight: 600;
}

/* ---- Empty state ---- */
.lar-empty-state {
    text-align: center;
    padding: 40px 20px;
    color: #aaa;
}
.lar-empty-state p { margin: 14px 0 0; font-size: 14px; }

/* ---- Notification bar ---- */
.lar-notification {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 99999;
    background: #1a7431;
    color: #fff;
    padding: 13px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.18);
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 260px;
    justify-content: center;
    animation: larNotifIn .25s ease;
}
.lar-notification.error { background: #dc2626; }
@keyframes larNotifIn {
    from { opacity: 0; transform: translateX(-50%) translateY(-10px); }
    to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* ---- Recent Activities ---- */
.lar-activities-wrap {
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}
.lar-activity-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}
.lar-activity-table thead tr {
    background: #ebebf5;
}
.lar-activity-table thead th {
    padding: 12px 16px;
    font-size: 13px;
    font-weight: 600;
    color: #444;
    text-align: left;
    white-space: nowrap;
}
.lar-activity-table tbody tr {
    border-top: 1px solid #f0f0f0;
    transition: background .12s;
}
.lar-activity-table tbody tr:hover {
    background: #faf7ff;
}
.lar-activity-table tbody td {
    padding: 13px 16px;
    vertical-align: top;
    color: #333;
    line-height: 1.5;
}
.lar-act-order a {
    color: #6b21d6;
    font-weight: 600;
    text-decoration: none;
}
.lar-act-order a:hover { text-decoration: underline; }
.lar-act-type {
    font-weight: 600;
    color: #222;
    max-width: 150px;
}
.lar-act-msg { color: #555; max-width: 340px; }
.lar-act-points { font-weight: 700; white-space: nowrap; }
.lar-positive { color: #059669; }
.lar-negative { color: #dc2626; }
.lar-dash { color: #bbb; }
.lar-act-chip {
    display: inline-block;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 11px;
    text-transform: uppercase;
    letter-spacing: .05em;
    white-space: nowrap;
}
.lar-chip-earned   { background: #d1fae5; color: #065f46; }
.lar-chip-coupon   { background: #ede9fe; color: #5b21b6; }
.lar-chip-referral { background: #dbeafe; color: #1e40af; }
.lar-chip-review   { background: #ffe4e6; color: #9f1239; }
.lar-chip-admin    { background: #f3f4f6; color: #6b7280; }

/* ---- VIP status card (top of My Account content, right-aligned) ---- */
.lar-vip-mount {
    display: flex;
    justify-content: flex-end;
    margin: 0 0 20px;
    /* position: absolute;
    top: 67px;
    right: 450px; */
}
.lar-vip-card {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    max-width: 360px;
    padding: 10px 16px 10px 13px;
    border-radius: 16px;
    line-height: 1.3;
    text-align: left;
    box-shadow: 0 4px 16px rgba(16, 24, 40, .08);
    -webkit-font-smoothing: antialiased;
}
.lar-vip-card * { box-sizing: border-box; }
.lar-vip-ic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    flex-shrink: 0;
}
.lar-vip-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.lar-vip-top { display: flex; align-items: center; gap: 8px; }
.lar-vip-name {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}
.lar-vip-chip {
    display: inline-block;
    padding: 2px 9px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}
.lar-vip-msg {
    font-size: 11.5px;
    font-weight: 500;
    line-height: 1.35;
    opacity: .85;
}
.lar-vip-msg strong { font-weight: 800; }
.lar-vip-bar {
    margin-top: 4px;
    height: 5px;
    border-radius: 4px;
    overflow: hidden;
    background: rgba(0, 0, 0, .08);
}
.lar-vip-bar-fill {
    display: block;
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #b45309, #f5b301);
    transition: width .4s ease;
}

/* Unlocked — gold */
.lar-vip-on {
    color: #6b3d00;
    background: linear-gradient(135deg, #fff6dc, #ffe9a8);
    border: 1px solid #f3d27a;
}
.lar-vip-on .lar-vip-ic { color: #a86a00; background: linear-gradient(135deg, #ffe08a, #f5b301); box-shadow: 0 2px 8px rgba(245, 179, 1, .4); }
.lar-vip-on .lar-vip-name { color: #7a4a00; }
.lar-vip-chip-on { color: #fff; background: #a86a00; }

/* Locked — neutral card */
.lar-vip-locked {
    color: #374151;
    background: #fff;
    border: 1px solid #e5e7eb;
}
.lar-vip-locked .lar-vip-ic { color: #b45309; background: #fff5e6; }
.lar-vip-locked .lar-vip-name { color: #111827; }
.lar-vip-locked .lar-vip-chip { color: #6b21d6; background: #f1ebfe; }
.lar-vip-locked .lar-vip-timeleft { color: #b45309; background: #fff2e0; }

/* Animated clock */
.lar-vip-clock .lar-vip-hand-m { transform-origin: 12px 12px; animation: lar-vip-spin 4s linear infinite; }
.lar-vip-clock .lar-vip-hand-h { transform-origin: 12px 12px; animation: lar-vip-spin 24s linear infinite; }
@keyframes lar-vip-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
    .lar-vip-clock .lar-vip-hand-m,
    .lar-vip-clock .lar-vip-hand-h { animation: none; }
}

@media (max-width: 640px) {
    .lar-vip-mount { justify-content: stretch; }
    .lar-vip-card { display: flex; max-width: none; width: 100%; }
}

/* ---- Cart / Checkout points preview notice ---- */
.lar-cart-points-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid #8fbc00;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    background: #f9ffe6;
    color: #5a7800;
    font-size: 14px;
    line-height: 1.5;
}

.lar-cart-points-icon {
    flex-shrink: 0;
    color: #8fbc00;
    display: flex;
    align-items: center;
}

.lar-thankyou-notice {
    margin-top: 20px;
    margin-bottom: 0;
}

/* ---- Inline points balance ---- */
.lar-points-balance { font-weight: 700; color: #6b21d6; }

/* ---- Responsive ---- */
@media (max-width: 700px) {
    .lar-stats-grid { grid-template-columns: 1fr; }
    .lar-tabs { overflow-x: auto; }
    .lar-coupon-card { flex-direction: column; align-items: flex-start; }
    .lar-coupon-right { align-items: flex-start; width: 100%; }
    #lar-tab-rewards { grid-template-columns: 1fr !important; }
}
