/* Base Styles & System Typography */
:root {
    --primary-color: #2563eb;
    --primary-hover: #1d4ed8;
    --primary-light: #eff6ff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-card: #ffffff;
    --border-color: #e2e8f0;
    --success-color: #16a34a;
    --success-light: #f0fdf4;
    --danger-color: #dc2626;
    --danger-light: #fef2f2;
    --warning-color: #d97706;
    --warning-light: #fffbeb;
    --info-color: #0284c7;
    --info-light: #f0f9ff;
    --radius-md: 10px;
    --radius-lg: 14px;
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--text-main);
    background-color: #f8fafc;
    margin: 0;
    padding: 1.5rem;
    line-height: 1.5;
}

h1:focus {
    outline: none;
}

/* Page Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.25rem 0;
    letter-spacing: -0.02em;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0;
}

/* Card Component */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 1.5rem;
}

.card-header {
    padding: 1.25rem 1.5rem;
    background: #ffffff;
    border-bottom: 1px solid var(--border-color);
}

.card-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-main);
}

.card-body {
    padding: 1.5rem;
}

/* State Containers (Loading, Error, Empty) */
.state-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: var(--shadow-sm);
    margin: 1.5rem 0;
}

.state-message {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: 0.5rem 0 0 0;
}

/* Loading State */
.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
}

.spinner-ring {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 3px solid #e2e8f0;
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 0.8s linear infinite;
    margin-bottom: 0.75rem;
}

.spinner-ring-sm {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 0.8s linear infinite;
    vertical-align: middle;
    margin-right: 0.35rem;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error State */
.error-container {
    border-color: #fecaca;
    background-color: #fffaf0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.error-badge {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

.error-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--danger-color);
    margin: 0;
}

.error-content {
    margin-bottom: 1.25rem;
}

/* Empty State */
.empty-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 3rem 2rem;
}

.empty-icon-wrapper {
    font-size: 3rem;
    margin-bottom: 0.75rem;
}

.empty-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
}

.empty-action {
    margin-top: 1.25rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.925rem;
    font-weight: 500;
    padding: 0.55rem 1.15rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    text-decoration: none;
}

.btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
}

.btn-primary {
    background-color: var(--primary-color);
    color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--primary-hover);
}

.btn-secondary {
    background-color: #ffffff;
    color: var(--text-main);
    border-color: var(--border-color);
}

.btn-secondary:hover:not(:disabled) {
    background-color: #f1f5f9;
}

.btn-retry {
    background-color: #ffffff;
    color: var(--danger-color);
    border-color: #fca5a5;
    font-weight: 600;
}

.btn-retry:hover:not(:disabled) {
    background-color: #fee2e2;
}

.btn-sm {
    padding: 0.4rem 0.85rem;
    font-size: 0.85rem;
}

/* Alerts */
.alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
    font-size: 0.925rem;
}

.alert-success {
    background-color: var(--success-light);
    color: #14532d;
    border: 1px solid #bbf7d0;
}

.alert-danger {
    background-color: var(--danger-light);
    color: #7f1d1d;
    border: 1px solid #fecaca;
}

.btn-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.7;
}

.btn-close:hover {
    opacity: 1;
}

/* Dashboard Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.25rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-card-primary { border-left: 4px solid var(--primary-color); }
.stat-card-success { border-left: 4px solid var(--success-color); }
.stat-card-info { border-left: 4px solid var(--info-color); }

.stat-icon {
    font-size: 2.25rem;
    flex-shrink: 0;
}

.stat-meta {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
}

.stat-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-main);
    line-height: 1.2;
    margin: 0.25rem 0;
}

.stat-hint {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Status Indicator */
.status-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
    font-weight: 500;
}

.status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-dot-online {
    background-color: var(--success-color);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.2);
}

/* Profile Form & Details */
.profile-card {
    max-width: 800px;
}

.profile-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
    margin: 0;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-item dt {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

.detail-item dd {
    margin: 0;
    font-size: 1rem;
    color: var(--text-main);
}

.badge-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    font-size: 0.9rem;
    display: inline-block;
    width: fit-content;
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    width: fit-content;
}

.badge-success {
    background-color: var(--success-light);
    color: #15803d;
}

.badge-neutral {
    background-color: #f1f5f9;
    color: var(--text-muted);
}

/* Form Styles */
.form-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.col-half {
    flex: 1 1 calc(50% - 0.5rem);
    min-width: 240px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-main);
}

.text-danger {
    color: var(--danger-color);
}

.form-control {
    padding: 0.6rem 0.85rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.95rem;
    color: var(--text-main);
    background-color: #ffffff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-control:disabled {
    background-color: #f8fafc;
    cursor: not-allowed;
}

.validation-message {
    color: var(--danger-color);
    font-size: 0.825rem;
    margin-top: 0.25rem;
}

.consent-box {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f8fafc;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.checkbox-container {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    cursor: pointer;
}

.form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-top: 0.2rem;
    accent-color: var(--primary-color);
    cursor: pointer;
}

.checkbox-label {
    font-size: 0.9rem;
    color: var(--text-main);
    line-height: 1.4;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.75rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1.5rem; }
.mb-3 { margin-bottom: 1rem; }
.font-medium { font-weight: 600; }

.stat-card-warning { border-left: 4px solid var(--warning-color); }
.stat-card-purple { border-left: 4px solid #8b5cf6; }

/* Filter Tabs */
.tabs-nav {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    white-space: nowrap;
}

.tab-btn:hover {
    color: var(--text-main);
    background: #f1f5f9;
}

.tab-btn.active {
    color: var(--primary-color);
    background: var(--primary-light);
    border-color: rgba(37, 99, 235, 0.2);
    font-weight: 600;
}

.tab-badge {
    background: #e2e8f0;
    color: var(--text-muted);
    padding: 0.1rem 0.45rem;
    border-radius: 9999px;
    font-size: 0.75rem;
}

.tab-btn.active .tab-badge {
    background: var(--primary-color);
    color: #ffffff;
}

/* Data Table */
.table-responsive {
    overflow-x: auto;
    width: 100%;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
    font-size: 0.925rem;
}

.data-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
}

.data-table td {
    padding: 1rem;
    border-bottom: 1px solid #f1f5f9;
    color: var(--text-main);
    vertical-align: middle;
}

.data-table tbody tr:hover td {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

/* Point Value Colors */
.points-value {
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
}

.points-earned {
    color: var(--success-color);
}

.points-redeemed {
    color: var(--danger-color);
}

.points-adjusted {
    color: var(--warning-color);
}

/* Specific Badges */
.badge-earn {
    background-color: var(--success-light);
    color: var(--success-color);
}

.badge-redeem {
    background-color: var(--danger-light);
    color: var(--danger-color);
}

.badge-adjust {
    background-color: var(--warning-light);
    color: var(--warning-color);
}

/* Expiry Callout */
.expiry-callout {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.85rem 1.15rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: var(--radius-md);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    color: #92400e;
}

.expiry-callout-icon {
    font-size: 1.35rem;
    flex-shrink: 0;
}

/* ==========================================================================
   Rewards Catalog, Redemptions & Digital Coupon Styling
   ========================================================================== */

/* Rewards Tabs */
.rewards-tabs-container {
    display: flex;
    gap: 0.5rem;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.rewards-tab-btn {
    background: transparent;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s ease;
}

.rewards-tab-btn:hover {
    color: var(--primary-color);
}

.rewards-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.15rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
}

.rewards-tab-btn.active .tab-badge {
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Toolbar & Filters */
.rewards-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.chip-btn {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 0.4rem 0.95rem;
    font-size: 0.875rem;
    color: var(--text-muted);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chip-btn:hover {
    border-color: #cbd5e1;
    color: var(--text-main);
    background: #f8fafc;
}

.chip-btn.active {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

.search-box {
    position: relative;
    min-width: 240px;
}

.search-input {
    width: 100%;
    padding: 0.5rem 0.85rem 0.5rem 2.25rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    background: #ffffff;
    outline: none;
    transition: border-color 0.15s ease;
}

.search-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.search-icon {
    position: absolute;
    left: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 0.9rem;
}

/* Rewards Grid & Cards */
.rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.reward-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}

.reward-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
    border-color: #cbd5e1;
}

.reward-card-banner {
    height: 120px;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.reward-banner-icon {
    font-size: 3.5rem;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
    transition: transform 0.25s ease;
}

.reward-card:hover .reward-banner-icon {
    transform: scale(1.1);
}

.reward-category-tag {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    letter-spacing: 0.02em;
}

.reward-stock-badge {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 6px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15);
}

.reward-card-body {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.reward-card-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.reward-card-desc {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    margin: 0 0 1rem 0;
    flex: 1;
}

.reward-card-footer {
    border-top: 1px dashed var(--border-color);
    padding-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.reward-points-required {
    display: flex;
    flex-direction: column;
}

.points-val {
    font-size: 1.25rem;
    font-weight: 800;
    color: #2563eb;
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.points-unit {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.points-insufficient {
    font-size: 0.72rem;
    color: #ef4444;
    font-weight: 600;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

.modal-dialog {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    width: 100%;
    max-width: 480px;
    overflow: hidden;
    animation: slideUp 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-dialog-success {
    max-width: 440px;
}

.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-main);
}

.modal-close-btn {
    background: transparent;
    border: none;
    font-size: 1.25rem;
    color: #94a3b8;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

.modal-close-btn:hover {
    color: var(--text-main);
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1rem 1.5rem;
    background: #f8fafc;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* Calculation summary box in Modal */
.calc-summary-box {
    background: #f8fafc;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin: 1rem 0;
}

.calc-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    padding: 0.35rem 0;
    color: var(--text-muted);
}

.calc-row-highlight {
    border-top: 1px dashed var(--border-color);
    margin-top: 0.35rem;
    padding-top: 0.5rem;
    font-weight: 700;
    color: var(--text-main);
    font-size: 0.95rem;
}

/* Digital Coupon Card (Ticket Style) */
.digital-ticket {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: #ffffff;
    border-radius: 16px;
    padding: 1.5rem;
    position: relative;
    box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.4);
    text-align: center;
    margin-bottom: 1.25rem;
    overflow: hidden;
}

.digital-ticket::before,
.digital-ticket::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    background: #ffffff;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
}

.digital-ticket::before {
    left: -12px;
}

.digital-ticket::after {
    right: -12px;
}

.ticket-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.ticket-brand {
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #38bdf8;
}

.ticket-reward-name {
    font-size: 1.15rem;
    font-weight: 700;
    margin: 0 0 1rem 0;
    line-height: 1.35;
}

/* QR Code Box */
.qr-code-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 1rem;
    display: inline-block;
    margin: 0.5rem auto 1rem auto;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.qr-code-svg {
    width: 160px;
    height: 160px;
    display: block;
}

.coupon-code-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.coupon-code-pill {
    background: rgba(255, 255, 255, 0.15);
    border: 1px dashed rgba(255, 255, 255, 0.4);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: #fbbf24;
}

.copy-icon-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 8px;
    color: #ffffff;
    padding: 0.5rem 0.75rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: background 0.15s ease;
}

.copy-icon-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.ticket-meta {
    font-size: 0.75rem;
    color: #94a3b8;
    margin: 0;
}

/* My Coupons List */
.coupons-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.25rem;
}

.coupon-wallet-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    border-left: 5px solid #2563eb;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.coupon-wallet-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.coupon-wallet-card.coupon-used {
    border-left-color: #94a3b8;
    opacity: 0.75;
}

.coupon-wallet-card.coupon-expired {
    border-left-color: #ef4444;
    opacity: 0.75;
}

.coupon-wallet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.5rem;
}

.coupon-wallet-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
    margin: 0;
}

.coupon-status-tag {
    font-size: 0.72rem;
    font-weight: 700;
    padding: 0.2rem 0.55rem;
    border-radius: 9999px;
    white-space: nowrap;
}

.status-tag-active {
    background: #dcfce7;
    color: #166534;
}

.status-tag-used {
    background: #f1f5f9;
    color: #475569;
}

.status-tag-expired {
    background: #fee2e2;
    color: #991b1b;
}

.coupon-wallet-body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8fafc;
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-md);
}

.coupon-wallet-code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    letter-spacing: 0.05em;
}

.coupon-wallet-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Auth & Identity Styles */
.auth-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(80vh - 100px);
    padding: 1.5rem 1rem;
}

.auth-card {
    width: 100%;
    max-width: 460px;
    padding: 2.25rem 2rem;
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
    background: #ffffff;
    border: 1px solid var(--border-color);
}

.auth-icon {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    font-size: 1.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.15s ease;
}

.auth-link:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
}

.nav-user-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.user-pill {
    display: flex;
    align-items: center;
    background: #f1f5f9;
    padding: 0.35rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.875rem;
}

.user-name {
    font-weight: 600;
    color: var(--text-main);
}

/* Digital Loyalty Member Card */
.member-card-wrapper {
    perspective: 1000px;
    max-width: 440px;
    margin: 0 auto;
}

.digital-loyalty-card {
    position: relative;
    background: linear-gradient(135deg, #94a3b8 0%, #cbd5e1 35%, #64748b 70%, #475569 100%);
    color: #ffffff;
    border-radius: 18px;
    padding: 1.75rem 1.75rem 1.5rem;
    box-shadow: 0 20px 30px -10px rgba(71, 85, 105, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    aspect-ratio: 1.586 / 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.card-bg-overlay {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.25) 0%, rgba(255, 255, 255, 0) 70%);
    border-radius: 50%;
    pointer-events: none;
}

.card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.card-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.card-logo-icon {
    font-size: 1.35rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.card-brand-name {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tier-pill {
    padding: 0.3rem 0.75rem;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.tier-silver {
    color: #ffffff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.35) 0%, rgba(203, 213, 225, 0.2) 100%);
}

.card-chip {
    width: 42px;
    height: 32px;
    background: linear-gradient(135deg, #fef08a 0%, #eab308 100%);
    border-radius: 6px;
    border: 1px solid #ca8a04;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2px 4px;
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.6), 0 2px 4px rgba(0, 0, 0, 0.2);
}

.chip-line {
    height: 1px;
    background: rgba(161, 98, 7, 0.6);
}

.card-middle {
    margin-top: auto;
    margin-bottom: 0.85rem;
}

.card-number-label {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    opacity: 0.8;
}

.card-number {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.card-holder .label,
.card-points .label {
    display: block;
    font-size: 0.65rem;
    letter-spacing: 0.08em;
    opacity: 0.8;
}

.card-holder .val {
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.card-points .val {
    font-size: 1.05rem;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.points-val {
    color: #fef08a;
}