/* Loyalty Program Styles */

/* Common Styles */
.program-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f0f0f0;
    text-decoration: none !important;
}

.program-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.res-logo {
    object-fit: cover;
    border: 1px solid #f1f5f9;
}

/* Loyalty List Page */
.loyalty-list .program-card {
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.loyalty-list .res-logo {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-right: 20px;
}

[dir="rtl"] .loyalty-list .res-logo {
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .loyalty-list .program-info {
    text-align: right;
}

.loyalty-list .program-info {
    flex-grow: 1;
}

.loyalty-list .program-info h3 {
    margin: 0 0 5px 0;
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.loyalty-list .program-info .menu-category {
    color: #64748b;
    font-size: 14px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.loyalty-list .program-info .menu-category img {
    width: 16px;
    margin-right: 6px;
}

[dir="rtl"] .loyalty-list .program-info .menu-category img {
    margin-right: 0;
    margin-left: 6px;
}

.loyalty-list .program-info .points {
    color: #E22400;
    font-weight: 700;
    font-size: 16px;
}

.loyalty-list .btn-join {
    background: #E22400;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.loyalty-list .btn-join:hover {
    background: #c21f00;
    color: #fff;
    transform: scale(1.05);
}

.loyalty-list .btn-view {
    background: transparent;
    color: #E22400;
    border: 2px solid #E22400;
    padding: 8px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.loyalty-list .btn-view:hover {
    background: #E22400;
    color: #fff;
    transform: scale(1.05);
}

/* My Programs Page */
.my-programs .program-card {
    border-radius: 24px;
    padding: 25px;
    margin-bottom: 25px;
    display: block;
    cursor: pointer;
}

.my-programs .program-card:hover {
    border-color: #fee2e2;
}

.my-programs .res-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.my-programs .res-logo {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    margin-right: 15px;
}

[dir="rtl"] .my-programs .res-logo {
    margin-right: 0;
    margin-left: 15px;
}

[dir="rtl"] .my-programs .res-info {
    text-align: right;
}

.my-programs .res-info h3 {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.my-programs .res-info .menu-category {
    color: #64748b;
    font-size: 13px;
    display: flex;
    align-items: center;
}

.my-programs .res-info .menu-category img {
    width: 14px;
    margin-right: 5px;
}

[dir="rtl"] .my-programs .res-info .menu-category img {
    margin-right: 0;
    margin-left: 5px;
}

.my-programs .points-box {
    background: #FFD7D9;
    border-radius: 16px;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.my-programs .points-label {
    font-size: 12px;
    font-weight: 600;
    color: #E22400;
    display: block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.my-programs .points-value {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.my-programs .points-box img {
    width: 32px;
    opacity: 0.9;
}

.my-programs .rewards-count {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
}

/* Loyalty Details Page */
.loyalty-details .back-nav {
    margin-bottom: 25px;
}

.loyalty-details .back-link {
    color: #64748b;
    font-weight: 600;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: color 0.2s;
}

.loyalty-details .back-link:hover {
    color: #E22400;
}

[dir="rtl"] .loyalty-details .back-link i {
    transform: rotate(180deg);
}

.loyalty-details .res-profile {
    display: flex;
    align-items: center;
    margin-bottom: 30px;
    background: #fff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.loyalty-details .res-logo {
    width: 70px;
    height: 70px;
    border-radius: 15px;
    margin-right: 20px;
}

[dir="rtl"] .loyalty-details .res-logo {
    margin-right: 0;
    margin-left: 20px;
}

[dir="rtl"] .loyalty-details .res-info {
    text-align: right;
}

.loyalty-details .res-info h2 {
    margin: 0 0 5px 0;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
}

.loyalty-details .res-info .category {
    color: #64748b;
    font-size: 15px;
    display: flex;
    align-items: center;
}

.loyalty-details .points-highlight {
    background: #FFD7D9;
    border-radius: 24px;
    padding: 30px;
    margin-bottom: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #fee2e2;
}

[dir="rtl"] .loyalty-details .points-highlight {
    text-align: right;
}

[dir="rtl"] .loyalty-details .points-main {
    text-align: right;
    flex: 1;
}

.loyalty-details .points-main .label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    display: block;
    margin-bottom: 5px;
}

.loyalty-details .points-main .value {
    font-size: 48px;
    font-weight: 900;
    color: #1e293b;
    line-height: 1.2;
}

.loyalty-details .points-highlight img {
    width: 60px;
    opacity: 0.9;
}

.loyalty-details .sub-msg {
    margin-top: 5px;
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.loyalty-details .section-title {
    font-size: 20px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

[dir="rtl"] .loyalty-details .section-title {
    justify-content: flex-start;
}

.loyalty-details .section-title img {
    width: 25px;
}

.loyalty-details .reward-card {
    background: #fff;
    border-radius: 20px;
    padding: 25px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid #f0f0f0;
}

.loyalty-details .reward-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.loyalty-details .reward-info h4 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

[dir="rtl"] .loyalty-details .reward-info {
    text-align: right;
}

.loyalty-details .reward-info .pts-needed {
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    margin-top: 2px;
}

.loyalty-details .btn-redeem {
    background: #E22400;
    color: #fff;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    transition: all 0.3s ease;
}

.loyalty-details .btn-redeem:hover {
    background: #c21f00;
    color: #fff;
    transform: scale(1.05);
}

.loyalty-details .btn-locked {
    background: #f1f5f9;
    color: #94a3b8;
    border: none;
    padding: 10px 25px;
    border-radius: 12px;
    font-weight: 700;
    cursor: not-allowed;
}

.loyalty-details .progress-wrapper {
    margin-top: 10px;
}

.loyalty-details .progress {
    height: 8px;
    border-radius: 4px;
    background-color: #f1f5f9;
    overflow: visible;
    margin-bottom: 8px;
}

.loyalty-details .progress-bar {
    background-color: #E22400;
    border-radius: 4px;
}

.loyalty-details .progress-info {
    font-size: 12px;
    color: #64748b;
    font-weight: 600;
}

/* Redemption Modal */
#redeemModal .modal-content {
    border-radius: 24px;
    border: none;
    padding: 30px 20px;
    text-align: center;
}

.modal-icon-wrapper {
    width: 70px;
    height: 70px;
    background: #F6F6F6;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.modal-icon-wrapper img {
    width: 35px;
}

#redeemModal h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 5px;
}

#redeemModal .subtitle {
    color: #94a3b8;
    font-size: 14px;
    margin-bottom: 25px;
}

.code-container {
    background: #4096a6;
    border-radius: 16px;
    padding: 25px 15px;
    margin-bottom: 25px;
}

.code-value {
    font-size: 56px;
    font-weight: 800;
    letter-spacing: 12px;
    color: #fff;
    line-height: 1;
    text-indent: 12px;
}

.timer-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
    color: #E22400;
    font-weight: 700;
    font-size: 16px;
}

.timer-container img {
    width: 18px;
}

.btn-cancel-modal {
    background: #F6F6F6;
    color: #222222;
    border: none;
    width: 100%;
    padding: 15px;
    border-radius: 16px;
    font-weight: 700;
    font-size: 16px;
    transition: background 0.2s;
}

/* Search Bar & Location Button Consistency */
.loyalty-list .location-btn, 
.my-programs .location-btn {
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Back Navigation */
.back-nav {
    margin-bottom: 20px;
    text-align: left;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #1e293b;
    font-weight: 600;
    text-decoration: none;
    border: 1.5px solid #cbd5e1;
    border-radius: 8px;
    padding: 8px 16px;
    transition: background 0.2s, border-color 0.2s;
}

.back-link:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    color: #1e293b;
    text-decoration: none;
}

.back-link i {
    font-size: 18px;
}

/* RTL: flip arrow and align right */
[dir="rtl"] .back-nav {
    text-align: right;
}

[dir="rtl"] .back-link i.zmdi-arrow-left::before {
    content: '\f2ee'; /* zmdi-arrow-right */
}
