/* Loyalty Page Styles */
.loyalty-page {
    padding: 2rem 0;
    min-height: 60vh;
}

.breadcrumb {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumb a:hover {
    color: var(--primary-color, #5b8de8);
}

.breadcrumb span {
    margin: 0 0.5rem;
    color: #999;
}

/* Header */
.loyalty-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    padding: 2.5rem;
    margin-bottom: 2rem;
    color: white;
}

.loyalty-header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.loyalty-header-icon {
    font-size: 3rem;
    opacity: 0.9;
}

.loyalty-header-text h1 {
    margin: 0 0 0.5rem 0;
    font-size: 2rem;
    font-weight: 700;
}

.loyalty-header-text p {
    margin: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Guest View */
.loyalty-guest-view {
    text-align: center;
    padding: 3rem 0;
}

.loyalty-guest-card {
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.guest-card-icon {
    font-size: 4rem;
    color: #667eea;
    margin-bottom: 1.5rem;
}

.loyalty-guest-card h2 {
    margin: 0 0 1rem 0;
    font-size: 1.5rem;
    color: #333;
}

.loyalty-guest-card p {
    margin: 0 0 2rem 0;
    color: #666;
    line-height: 1.6;
}

.guest-card-actions .btn {
    padding: 0.75rem 2rem;
    font-size: 1rem;
}

/* Dashboard */
.loyalty-dashboard {
    margin-top: 2rem;
}

/* Stats Grid */
.loyalty-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.loyalty-stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
}

.loyalty-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
}

.stat-card-icon {
    font-size: 2.5rem;
    color: #667eea;
    opacity: 0.8;
}

.stat-card-content {
    flex: 1;
}

.stat-card-label {
    display: block;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.stat-card-value {
    display: block;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
}

/* Tabs */
.loyalty-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.loyalty-tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    color: #666;
    cursor: pointer;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.loyalty-tab:hover {
    background: #f5f5f5;
    color: #333;
}

.loyalty-tab.active {
    background: #667eea;
    color: white;
}

.loyalty-tab i {
    font-size: 0.9rem;
}

/* Tab Content */
.loyalty-tab-content {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    min-height: 400px;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.tab-panel-header {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.tab-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

/* Loading */
.loading {
    text-align: center;
    padding: 3rem;
    color: #666;
    font-size: 1.1rem;
}

/* Tab Panel Header */
.tab-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.tab-panel-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.tab-panel-header .btn {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.tab-panel-header .btn-primary {
    background: #667eea;
    color: white;
}

.tab-panel-header .btn-primary:hover {
    background: #5568d3;
}

.tab-panel-header .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.tab-panel-header .btn-secondary:hover {
    background: #e0e0e0;
}

/* Info Cards */
.referral-info-card,
.discount-info-card,
.spin-wheel-info-card {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.info-card-icon {
    font-size: 2rem;
    color: #667eea;
    opacity: 0.8;
}

.info-card-content h4 {
    margin: 0 0 0.5rem 0;
    font-size: 1.1rem;
    color: #333;
}

.info-card-content p {
    margin: 0.5rem 0;
    color: #666;
    line-height: 1.6;
}

.points-info {
    margin-top: 0.75rem !important;
    padding-top: 0.75rem;
    border-top: 1px solid #ddd;
    font-size: 0.95rem;
}

/* Referral Link Card */
.referral-link-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    color: white;
}

.referral-link-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.referral-link-header h5 {
    margin: 0;
    font-size: 1.1rem;
    color: white;
}

.referral-link-header .btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    transition: all 0.3s;
}

.referral-link-header .btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

.referral-link-header .btn.copied {
    background: rgba(15, 47, 54, 0.8);
    border-color: rgba(15, 47, 54, 1);
}

.referral-link-content {
    margin-top: 1rem;
}

.referral-link-input-wrapper {
    position: relative;
    margin-bottom: 0.75rem;
}

.referral-link-input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    font-size: 0.9rem;
    font-family: monospace;
    cursor: text;
    transition: all 0.3s;
}

.referral-link-input:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.15);
}

.referral-link-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.referral-link-help {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

/* Points History Styles */
.points-history-container {
    padding: 0;
}

.points-history-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.points-history-item {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.points-history-item::before {
    content: '';
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #667eea;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.points-history-item:hover {
    transform: translateX(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
}

.points-history-item:hover::before {
    opacity: 1;
}

.points-history-item.credit {
    border-right: 4px solid #0f2f36;
}

.points-history-item.credit::before {
    background: #0f2f36;
}

.points-history-item.debit {
    border-right: 4px solid #dc3545;
}

.points-history-item.debit::before {
    background: #dc3545;
}

.history-item-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.points-history-item.credit .history-item-icon {
    background: linear-gradient(135deg, #0f2f36 0%, #3f595e 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(15, 47, 54, 0.3);
}

.points-history-item.debit .history-item-icon {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.points-history-item:hover .history-item-icon {
    transform: scale(1.1) rotate(5deg);
}

.history-item-content {
    flex: 1;
    min-width: 0;
}

.history-item-title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.history-item-meta {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: center;
}

.history-item-type {
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    background: #e9ecef;
    color: #495057;
}

.points-history-item.credit .history-item-type {
    background: rgba(15, 47, 54, 0.1);
    color: #0f2f36;
}

.points-history-item.debit .history-item-type {
    background: rgba(220, 53, 69, 0.1);
    color: #dc3545;
}

.history-item-date {
    font-size: 0.85rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-item-date::before {
    content: '\f073';
    font-family: 'Font Awesome 5 Free';
    font-weight: 400;
    font-size: 0.75rem;
    opacity: 0.6;
}

.history-item-points {
    font-size: 1.5rem;
    font-weight: 700;
    padding: 0.5rem 1rem;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.history-item-points.positive {
    color: #0f2f36;
    background: rgba(15, 47, 54, 0.1);
}

.history-item-points.negative {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.points-history-item:hover .history-item-points {
    transform: scale(1.05);
}

/* Empty State for Points History */
.points-history-container .empty-state {
    text-align: center;
    padding: 3rem 2rem;
    color: #6c757d;
}

.points-history-container .empty-state i {
    font-size: 3rem;
    color: #dee2e6;
    margin-bottom: 1rem;
}

.points-history-container .empty-state p {
    font-size: 1rem;
    margin: 0;
}

/* Error State */
.points-history-container .error {
    text-align: center;
    padding: 2rem;
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(220, 53, 69, 0.2);
}

/* Points History Pagination */
.points-history-pagination {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 2px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.pagination-info {
    font-size: 0.9rem;
    color: #6c757d;
}

.pagination-buttons {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pagination-btn:hover:not(.disabled) {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.pagination-btn.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #f5f5f5;
}

.pagination-pages {
    display: flex;
    gap: 0.25rem;
}

.pagination-page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0.5rem;
    border: 2px solid #e9ecef;
    background: white;
    color: #333;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pagination-page-btn:hover {
    background: #f8f9fa;
    border-color: #667eea;
    color: #667eea;
}

.pagination-page-btn.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

@media (max-width: 768px) {
    .points-history-pagination {
        flex-direction: column;
        align-items: stretch;
    }
    
    .pagination-info {
        text-align: center;
        order: 2;
    }
    
    .pagination-buttons {
        justify-content: center;
        order: 1;
    }
    
    .pagination-pages {
        display: none; /* Hide page numbers on mobile, show only prev/next */
    }
}

/* Referrals List */
.referrals-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.referral-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.referral-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.referral-item.used {
    opacity: 0.7;
    background: #f5f5f5;
}

.referral-item-content {
    flex: 1;
}

.referral-item-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
}

.referral-item-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.referral-code {
    font-family: monospace;
    background: #f0f0f0;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
}

.referral-item-points {
    font-weight: 700;
    color: #0f2f36;
    font-size: 1.1rem;
}

/* Discount Codes List */
.discount-codes-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.discount-code-item {
    background: white;
    border-radius: 8px;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #e0e0e0;
    transition: all 0.3s;
}

.discount-code-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.discount-code-item .btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.discount-code-item .btn-sm.btn-primary {
    background: #667eea;
    color: white;
}

.discount-code-item .btn-sm.btn-primary:hover {
    background: #5568d3;
}

.discount-code-item.used {
    opacity: 0.7;
    background: #f5f5f5;
}

.discount-code-item.expired {
    opacity: 0.5;
    background: #f9f9f9;
}

.discount-code-content {
    flex: 1;
}

.discount-code-title {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.discount-code-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: #666;
    flex-wrap: wrap;
}

.discount-percentage {
    color: #0f2f36;
    font-weight: 600;
}

/* Spin Wheel Section */
.spin-wheel-section {
    margin-top: 1.5rem;
}

.spin-wheel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2.5rem;
    align-items: center;
}

.spin-wheel-visual {
    text-align: center;
}

.spin-wheel-wrapper {
    position: relative;
    width: min(360px, 80vw);
    aspect-ratio: 1 / 1;
    margin: 0 auto;
}

.spin-wheel-wrapper canvas {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at center, #111827 0%, #0f172a 50%, #0b1220 100%);
    box-shadow: 0 30px 50px rgba(15, 23, 42, 0.25);
}

.spin-wheel-pointer {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-right: 18px solid transparent;
    border-bottom: 32px solid #f2844a;
    filter: drop-shadow(0 6px 10px rgba(242, 132, 74, 0.45));
    z-index: 3;
}

.spin-wheel-trigger {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 140px;
    height: 140px;
    border-radius: 50%;
    border: none;
    background: linear-gradient(135deg, #0f2f36 0%, #134b57 100%);
    color: #fff;
    font-weight: 700;
    font-size: 1.05rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    box-shadow: 0 25px 40px rgba(15, 47, 54, 0.45);
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    z-index: 2;
}

.spin-wheel-trigger small {
    font-size: 0.75rem;
    font-weight: 400;
    opacity: 0.9;
}

.spin-wheel-trigger:not(.disabled):hover {
    transform: translate(-50%, -50%) scale(1.05);
    box-shadow: 0 30px 45px rgba(15, 47, 54, 0.55);
}

.spin-wheel-trigger.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

.spin-wheel-result {
    margin-top: 1.5rem;
    padding: 1rem 1.5rem;
    border-radius: 16px;
    font-size: 0.95rem;
    color: #0f172a;
    background: #f8fafc;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    min-height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.7;
}

.spin-wheel-result.state-loading {
    background: #fff7ed;
    color: #c2410c;
}

.spin-wheel-result.state-success {
    background: #ecfdf5;
    color: #047857;
}

.spin-wheel-result.state-error {
    background: #fef2f2;
    color: #b91c1c;
}

.spin-wheel-details {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.prizes-preview {
    margin: 0;
}

.prizes-preview h5 {
    margin: 0 0 1rem 0;
    color: #0f172a;
    font-size: 1.1rem;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
}

.prize-preview-item {
    background: #fff;
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid #eceff3;
    box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.prize-preview-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
}

.spin-prize-item.active {
    transform: translateY(-8px);
    box-shadow: 0 24px 50px rgba(15, 23, 42, 0.2);
}

.prize-preview-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 0.9rem;
}

.prize-preview-name {
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 0.35rem;
    font-size: 1rem;
}

.prize-preview-type {
    font-size: 0.85rem;
    color: #475569;
    font-weight: 600;
}

.prize-preview-desc {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #6b7280;
    line-height: 1.6;
}

.spin-wheel-actions {
    margin-top: 2rem;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Modal */
.loyalty-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #eee;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.3rem;
    color: #333;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #f0f0f0;
    color: #333;
}

.modal-form .form-group {
    margin-bottom: 1.5rem;
}

.modal-form label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #333;
}

.modal-form input {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.modal-form input:focus {
    outline: none;
    border-color: #667eea;
}

.modal-form small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.85rem;
}

.form-message {
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.form-message.info {
    background: #e3f2fd;
    color: #1976d2;
}

.form-message.success {
    background: #cfd5d7;
    color: #0f2f36;
}

.form-message.error {
    background: #ffebee;
    color: #d32f2f;
}

.form-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 1.5rem;
}

.form-actions .btn {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.form-actions .btn-primary {
    background: #667eea;
    color: white;
}

.form-actions .btn-primary:hover {
    background: #5568d3;
}

.form-actions .btn-secondary {
    background: #f0f0f0;
    color: #333;
}

.form-actions .btn-secondary:hover {
    background: #e0e0e0;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.btn-large.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.btn-large.btn-primary:hover:not(.disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.btn.disabled {
    opacity: 0.6;
    cursor: not-allowed;
    background: #ccc !important;
    color: #666 !important;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: #666;
}

.empty-state i {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 1rem;
}

.empty-state p {
    margin: 0;
    font-size: 1.1rem;
}

/* Error State */
.error {
    background: #ffebee;
    color: #d32f2f;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
    .loyalty-header-content {
        flex-direction: column;
        text-align: center;
    }

    .loyalty-header-icon {
        font-size: 2.5rem;
    }

    .loyalty-header-text h1 {
        font-size: 1.5rem;
    }

    .loyalty-stats-grid {
        grid-template-columns: 1fr;
    }

    .loyalty-tabs {
        flex-direction: column;
    }

    .loyalty-tab {
        width: 100%;
        justify-content: center;
    }
    
    .tab-panel-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .tab-panel-header .btn {
        width: 100%;
    }
    
    .prizes-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        padding: 1.5rem;
    }

    .spin-wheel-grid {
        grid-template-columns: 1fr;
    }

    .spin-wheel-wrapper {
        width: min(320px, 90vw);
    }

    .prizes-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    }
}

