/* ================================================================
   WOO APP MI CUENTA v6 — Premium Stylesheet
   Integrated with Woodmart Theme
   ================================================================ */

/* ─── 1. DESIGN TOKENS ─────────────────────────────────────────── */
:root {    /* Primary brand colors */
    --app-accent: #0061a5;
    --app-accent-hover: #00497e;
    --app-accent-light: #d2e4ff;
    --app-accent-ultra-light: #f0edec;
    --app-accent-container: #0099ff;

    /* Surfaces - Soft Minimalism */
    --app-bg: #fcf9f8;
    --app-card-bg: rgba(255, 255, 255, 0.95);
    --app-card-border: rgba(191, 199, 213, 0.15);
    --app-card-shadow: 0 12px 32px rgba(28, 27, 27, 0.06);

    /* Text */
    --app-text: #1c1b1b;
    --app-text-secondary: #3f4753;
    --app-text-muted: #656464;

    /* Layout */
    --app-sidebar-width: 250px;
    --app-radius: 3rem;
    --app-radius-sm: 1.5rem;
    --app-radius-xs: 1rem;

    /* Spacing */
    --app-padding: 40px;
    --app-gap: 20px;

    /* Transitions */
    --app-transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Status colors */
    --status-pending: #f6c343;
    --status-processing: #4361ee;
    --status-on-hold: #ff9f43;
    --status-completed: #2ec4b6;
    --status-cancelled: #e74c3c;
    --status-refunded: #8e8e93;
    --status-failed: #e74c3c;
}

/* ─── 2. RESET / BASE ──────────────────────────────────────────── */
.wamc-shell *,
.wamc-shell *::before,
.wamc-shell *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.wamc-shell {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    background: var(--app-bg);
    border-radius: var(--app-radius);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.07);
    overflow: hidden;
    position: relative;
    min-height: 80vh;
    line-height: 1.5;
    color: var(--app-text);
    -webkit-font-smoothing: antialiased;
}

/* ─── 3. NAVIGATION — SIDEBAR (Desktop) ────────────────────────── */
.wamc-nav {
    width: var(--app-sidebar-width);
    display: flex;
    flex-direction: column;
    padding: 30px 16px;
    background: var(--app-bg);
    border-right: 1px solid rgba(0, 0, 0, 0.04);
    gap: 6px;
    flex-shrink: 0;
}

.wamc-nav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: var(--app-radius-sm);
    font-size: 15px;
    font-weight: 600;
    color: var(--app-text-muted);
    cursor: pointer;
    transition: all var(--app-transition);
    text-decoration: none;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    outline: none;
    overflow: hidden;
    letter-spacing: 0.01em;
}

.wamc-nav-item i {
    font-size: 22px;
    transition: transform var(--app-transition);
    flex-shrink: 0;
}

.wamc-nav-item:hover {
    background: var(--app-accent-ultra-light);
    color: var(--app-accent);
    transform: translateX(4px);
}

.wamc-nav-item:hover i {
    transform: scale(1.1);
}

.wamc-nav-item.active {
    background: var(--app-accent-light);
    color: var(--app-accent);
    font-weight: 700;
    box-shadow: inset 3px 0 0 var(--app-accent);
}

/* Ripple */
.wamc-ripple {
    position: absolute;
    border-radius: 50%;
    transform: scale(0);
    animation: wamc-ripple-anim 0.6s ease-out;
    background: color-mix(in srgb, var(--app-accent) 18%, transparent);
    pointer-events: none;
}

@keyframes wamc-ripple-anim {
    to { transform: scale(2.5); opacity: 0; }
}

/* ─── 4. MAIN CONTENT ──────────────────────────────────────────── */
.wamc-content {
    flex: 1;
    padding: var(--app-padding);
    overflow-y: auto;
    background: #fff;
    position: relative;
    min-width: 0;
}

/* ─── 5. HEADER ────────────────────────────────────────────────── */
.wamc-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.wamc-header-user {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wamc-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid var(--app-accent-light);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.wamc-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wamc-header-info h3 {
    font-size: clamp(20px, 3vw, 26px);
    font-weight: 800;
    color: var(--app-text);
    line-height: 1.2;
    margin-bottom: 2px;
}

.wamc-header-info span {
    font-size: 14px;
    color: var(--app-text-secondary);
}

.wamc-wave {
    display: inline-block;
    animation: wamc-wave 1.5s ease-in-out infinite;
    transform-origin: 70% 70%;
}

@keyframes wamc-wave {
    0%, 100% { transform: rotate(0deg); }
    15% { transform: rotate(14deg); }
    30% { transform: rotate(-8deg); }
    45% { transform: rotate(14deg); }
    60% { transform: rotate(-4deg); }
    75% { transform: rotate(10deg); }
}

.wamc-btn-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border: none;
    color: var(--app-text-secondary);
    font-size: 20px;
    cursor: pointer;
    transition: all var(--app-transition);
}

.wamc-btn-icon:hover {
    background: #fee2e2;
    color: #e74c3c;
    transform: scale(1.05);
}

/* ─── 6. TABS ──────────────────────────────────────────────────── */
.wamc-tab {
    display: none;
    animation: wamc-fadeIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.wamc-tab.active {
    display: block;
}

@keyframes wamc-fadeIn {
    from {
        opacity: 0;
        transform: translateY(16px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* ─── 7. CARDS ─────────────────────────────────────────────────── */
.wamc-card {
    background: var(--app-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--app-card-border);
    border-radius: var(--app-radius-sm);
    padding: 32px;
    margin-bottom: var(--app-gap);
    box-shadow: var(--app-card-shadow);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow var(--app-transition);
}

.wamc-card:hover {
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.06), 0 20px 60px rgba(0, 0, 0, 0.08);
}

.wamc-card:active {
    transform: scale(0.985);
}

.wamc-card-animated {
    opacity: 0;
    animation: wamc-fadeIn 0.5s ease forwards;
    animation-delay: calc(var(--delay, 0) * 1ms);
}

.wamc-card h4 {
    margin: 0 0 20px 0;
    font-family: 'Manrope', -apple-system, sans-serif;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--app-text);
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.wamc-card h4 i {
    color: var(--app-accent);
    font-size: 22px;
}

.wamc-subtitle {
    font-size: 13px;
    color: var(--app-text-secondary);
    margin-bottom: 20px;
}

/* ─── 8. STATS GRID ────────────────────────────────────────────── */
.wamc-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: var(--app-gap);
}

.wamc-stat-card {
    background: var(--app-card-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--app-card-border);
    border-radius: var(--app-radius);
    padding: 24px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--app-card-shadow);
    opacity: 0;
    animation: wamc-slideUp 0.5s ease forwards;
    animation-delay: calc(var(--delay, 0) * 1ms);
    transition: transform var(--app-transition);
}

.wamc-stat-card:hover {
    transform: translateY(-4px);
}

@keyframes wamc-slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.wamc-stat-icon {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #fff;
    background: var(--stat-color, var(--app-accent));
    box-shadow: 0 6px 20px color-mix(in srgb, var(--stat-color, var(--app-accent)) 35%, transparent);
    flex-shrink: 0;
}

.wamc-stat-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.wamc-stat-prefix {
    font-size: 14px;
    font-weight: 600;
    color: var(--app-text-secondary);
    line-height: 1;
}

.wamc-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--app-text);
    line-height: 1.1;
    letter-spacing: -0.02em;
}

.wamc-stat-label {
    font-size: 13px;
    color: var(--app-text-secondary);
    font-weight: 500;
    margin-top: 2px;
}

/* ─── 9. ACTIVE ORDER ──────────────────────────────────────────── */
.wamc-active-order {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.wamc-order-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.wamc-order-id {
    font-size: 18px;
    font-weight: 700;
    color: var(--app-text);
    margin-right: 8px;
}

.wamc-order-date {
    font-size: 13px;
    color: var(--app-text-secondary);
}

/* Badges */
.wamc-badge {
    padding: 6px 14px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.wamc-badge-pending    { background: #fff8e1; color: #f6c343; }
.wamc-badge-on-hold    { background: #fff3e0; color: #ff9f43; }
.wamc-badge-processing { background: #e8eaf6; color: #4361ee; }
.wamc-badge-completed  { background: #e0f7f5; color: #2ec4b6; }
.wamc-badge-cancelled  { background: #fee2e2; color: #e74c3c; }
.wamc-badge-refunded   { background: #f3f4f6; color: #8e8e93; }
.wamc-badge-failed     { background: #fee2e2; color: #e74c3c; }

/* Progress Bar */
.wamc-progress-track {
    height: 8px;
    background: #f0f2f5;
    border-radius: 50px;
    overflow: hidden;
    position: relative;
}

.wamc-progress-bar {
    height: 100%;
    width: var(--progress, 0%);
    background: linear-gradient(90deg, var(--app-accent), color-mix(in srgb, var(--app-accent) 70%, #4361ee));
    border-radius: 50px;
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wamc-progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: wamc-shimmer 2s infinite;
}

@keyframes wamc-shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.wamc-progress-steps {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: var(--app-text-muted);
    font-weight: 500;
}

.wamc-progress-steps .reached {
    color: var(--app-accent);
    font-weight: 700;
}

.wamc-order-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 12px;
    border-top: 1px solid #f0f2f5;
    font-size: 14px;
    color: var(--app-text-secondary);
}

.wamc-order-total strong {
    font-size: 20px;
    color: var(--app-text);
    font-weight: 800;
}

/* ─── 10. QUICK ACTIONS ────────────────────────────────────────── */
.wamc-quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.wamc-quick-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 12px;
    border-radius: var(--app-radius-sm);
    background: #f8f9fa;
    border: 1px solid #f0f2f5;
    color: var(--app-text);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--app-transition);
}

.wamc-quick-btn i {
    font-size: 26px;
    color: var(--app-accent);
    transition: transform var(--app-transition);
}

.wamc-quick-btn:hover {
    background: var(--app-accent-light);
    border-color: var(--app-accent);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
}

.wamc-quick-btn:hover i {
    transform: scale(1.15);
}

/* ─── 11. EMPTY STATES ─────────────────────────────────────────── */
.wamc-empty-state {
    text-align: center;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: linear-gradient(180deg, transparent, rgba(0,0,0,0.01) 100%);
    border-radius: var(--app-radius);
    border: 1px dashed rgba(0,0,0,0.06);
    margin-bottom: var(--app-gap);
}

.wamc-empty-state > i {
    font-size: 64px;
    color: var(--app-accent);
    opacity: 0.15;
    background: var(--app-accent-ultra-light);
    width: 100px;
    height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-bottom: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.04);
}

.wamc-empty-state p {
    font-size: 15px;
    color: var(--app-text-secondary);
    font-weight: 500;
    max-width: 280px;
}

.wamc-empty-hint {
    font-size: 12px;
    color: var(--app-text-muted);
    font-weight: 400;
}

.wamc-empty-sm {
    padding: 24px 16px;
}

.wamc-empty-sm > i {
    font-size: 40px;
}

/* ─── 12. BUTTONS ──────────────────────────────────────────────── */
.wamc-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: var(--app-radius-xs);
    font-size: 14px;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all var(--app-transition);
    text-decoration: none;
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.wamc-btn-primary {
    background: var(--app-accent);
    color: #fff;
    box-shadow: 0 4px 14px color-mix(in srgb, var(--app-accent) 30%, transparent);
}

.wamc-btn-primary:active {
    transform: scale(0.95);
}

.wamc-btn-primary:hover {
    background: var(--app-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px color-mix(in srgb, var(--app-accent) 40%, transparent);
    color: #fff;
}

.wamc-btn-secondary {
    background: #f0f2f5;
    color: var(--app-text-secondary);
}

.wamc-btn-secondary:hover {
    background: #e4e7eb;
    color: var(--app-text);
}

.wamc-btn-danger {
    background: #fee2e2;
    color: #e74c3c;
    font-weight: 700;
}

.wamc-btn-danger:hover {
    background: #e74c3c;
    color: #fff;
    transform: translateY(-2px);
}

.wamc-btn-sm {
    padding: 10px 18px;
    font-size: 13px;
}

.wamc-btn-block {
    width: 100%;
    padding: 16px;
}

/* ─── 13. FORMS ────────────────────────────────────────────────── */
.wamc-card form {
    display: grid;
    gap: 14px;
}

.wamc-card input[type="text"],
.wamc-card input[type="email"],
.wamc-card input[type="password"],
.wamc-card input[type="tel"],
.wamc-card input[type="number"],
.wamc-card select,
.wamc-card textarea {
    padding: 14px 16px;
    border: 1.5px solid #e4e7eb;
    border-radius: var(--app-radius-xs);
    width: 100%;
    background: #fafbfc;
    outline: none;
    font-size: 14px;
    box-sizing: border-box;
    transition: all var(--app-transition);
    font-family: inherit;
    color: var(--app-text);
}

.wamc-card input:focus,
.wamc-card select:focus,
.wamc-card textarea:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light);
    background: #fff;
}

.wamc-card label {
    font-size: 13px;
    font-weight: 600;
    color: var(--app-text-secondary);
    margin-bottom: 4px;
    display: block;
}

.wamc-card button.button,
.wamc-card button[type="submit"] {
    background: var(--app-accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: var(--app-radius-xs);
    border: none;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: all var(--app-transition);
    font-family: inherit;
}

.wamc-card button.button:hover,
.wamc-card button[type="submit"]:hover {
    background: var(--app-accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px color-mix(in srgb, var(--app-accent) 30%, transparent);
}

/* ─── 14. TABLES ───────────────────────────────────────────────── */
.wamc-table-responsive {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--app-radius-sm);
    position: relative;
}

.wamc-card table {
    width: 100%;
    border-collapse: collapse;
}

.wamc-card th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--app-text-secondary);
    background: #f8f9fa;
    border-bottom: 2px solid #f0f2f5;
}

.wamc-card th:first-child {
    border-radius: var(--app-radius-xs) 0 0 0;
}

.wamc-card th:last-child {
    border-radius: 0 var(--app-radius-xs) 0 0;
}

.wamc-card td {
    padding: 14px 16px;
    font-size: 14px;
    color: var(--app-text);
    border-bottom: 1px solid #f5f5f7;
    vertical-align: middle;
}

.wamc-card tr:last-child td {
    border-bottom: none;
}

.wamc-card tbody tr {
    transition: background var(--app-transition);
}

.wamc-card tbody tr:hover {
    background: #fafbfc;
}

/* Woo action buttons inside tables */
.wamc-card td a.button,
.wamc-card td a.woocommerce-button {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    background: var(--app-accent-light);
    color: var(--app-accent);
    text-decoration: none;
    transition: all var(--app-transition);
    border: none;
}

.wamc-card td a.button:hover,
.wamc-card td a.woocommerce-button:hover {
    background: var(--app-accent);
    color: #fff;
}

/* ─── 15. ADDRESS FORM (Inline) ────────────────────────────────── */
.wamc-address-form-wrapper .wamc-form-header h4 {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 4px;
}

.wamc-form-subtitle {
    font-size: 13px;
    color: var(--app-text-secondary);
    margin-bottom: 20px;
}

.wamc-form-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.wamc-edit-address-form .form-row {
    width: 100% !important;
    float: none !important;
    margin-bottom: 12px !important;
}

.wamc-edit-address-form .select2-container {
    width: 100% !important;
}

/* ─── 16. TOAST NOTIFICATIONS ──────────────────────────────────── */
.wamc-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 380px;
    pointer-events: none;
}

.wamc-toast {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    border-radius: var(--app-radius-sm);
    background: #fff;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0,0,0,0.04);
    animation: wamc-toastIn 0.4s cubic-bezier(0.21, 1.02, 0.73, 1) forwards;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(20px);
}

.wamc-toast.exit {
    animation: wamc-toastOut 0.3s ease forwards;
}

@keyframes wamc-toastIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

@keyframes wamc-toastOut {
    to {
        opacity: 0;
        transform: translateX(40px) scale(0.96);
    }
}

.wamc-toast-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.wamc-toast-body {
    flex: 1;
    min-width: 0;
}

.wamc-toast-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--app-text);
    margin-bottom: 2px;
}

.wamc-toast-message {
    font-size: 13px;
    color: var(--app-text-secondary);
    line-height: 1.4;
}

.wamc-toast-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border: none;
    background: none;
    color: var(--app-text-muted);
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    transition: background 0.2s;
}

.wamc-toast-close:hover {
    background: #f0f2f5;
}

/* Toast progress bar */
.wamc-toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    height: 3px;
    border-radius: 0 0 var(--app-radius-sm) var(--app-radius-sm);
    animation: wamc-toastProgress var(--duration, 4s) linear forwards;
}

@keyframes wamc-toastProgress {
    from { width: 100%; }
    to { width: 0%; }
}

/* Toast variants */
.wamc-toast-success .wamc-toast-icon { background: #e0f7f5; color: #2ec4b6; }
.wamc-toast-success .wamc-toast-progress { background: #2ec4b6; }

.wamc-toast-error .wamc-toast-icon { background: #fee2e2; color: #e74c3c; }
.wamc-toast-error .wamc-toast-progress { background: #e74c3c; }

.wamc-toast-warning .wamc-toast-icon { background: #fff3e0; color: #ff9f43; }
.wamc-toast-warning .wamc-toast-progress { background: #ff9f43; }

.wamc-toast-info .wamc-toast-icon { background: #e8eaf6; color: #4361ee; }
.wamc-toast-info .wamc-toast-progress { background: #4361ee; }

/* ─── 17. BOTTOM SHEET ─────────────────────────────────────────── */
.wamc-bottom-sheet {
    position: fixed;
    inset: 0;
    z-index: 100000;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0.3s;
}

.wamc-bottom-sheet.active {
    visibility: visible;
    pointer-events: auto;
}

.wamc-bs-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s;
    backdrop-filter: blur(4px);
}

.wamc-bottom-sheet.active .wamc-bs-overlay {
    opacity: 1;
}

.wamc-bs-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 24px 24px 0 0;
    padding: 20px;
    transform: translateY(100%);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.12);
}

.wamc-bottom-sheet.active .wamc-bs-panel {
    transform: translateY(0);
}

@media (min-width: 769px) {
    .wamc-bs-panel {
        left: 50%;
        right: auto;
        bottom: 50vh;
        width: 100%;
        max-width: 600px;
        transform: translate(-50%, 200%);
        border-radius: 24px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    }
    .wamc-bottom-sheet.active .wamc-bs-panel {
        transform: translate(-50%, 50%);
    }
}

/* ── Hide WooCommerce Navigation in Favorites ── */
#wamc-tab-favoritos .woocommerce-MyAccount-navigation,
.wamc-shell .wd-my-account-sidebar,
.wamc-shell .yith-wcwl-sidebar {
    display: none !important;
}
#wamc-tab-favoritos .woocommerce-MyAccount-content,
.wamc-shell .wd-wishlist-content {
    width: 100% !important;
    float: none !important;
}

.wamc-bs-handle {
    width: 40px;
    height: 5px;
    background: #ddd;
    border-radius: 5px;
    margin: 0 auto 20px auto;
}

/* ─── 18. CHECKOUT ENHANCEMENTS ────────────────────────────────── */
.wamc-checkout-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--app-accent-ultra-light);
    padding: 16px 22px;
    border-radius: var(--app-radius-sm);
    margin-bottom: 24px;
    border: 1px solid var(--app-accent-light);
    transition: all var(--app-transition);
}

.wamc-toggle-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--app-text);
}

/* Toggle Switch */
.wamc-switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 28px;
    flex-shrink: 0;
}

.wamc-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.wamc-switch-slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #d1d5db;
    transition: 0.35s;
    border-radius: 50px;
}

.wamc-switch-slider::before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background: #fff;
    border-radius: 50%;
    transition: 0.35s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.wamc-switch input:checked + .wamc-switch-slider {
    background: var(--app-accent);
}

.wamc-switch input:checked + .wamc-switch-slider::before {
    transform: translateX(24px);
}

/* Save Data Box */
.wamc-save-data-box {
    background: var(--app-accent-ultra-light);
    padding: 16px 20px;
    border-radius: var(--app-radius-xs);
    margin-top: 16px;
    border: 1px solid var(--app-accent-light);
}

/* ─── 19. SKELETON / SHIMMER LOADING ───────────────────────────── */
.wamc-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: wamc-skeleton-shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

@keyframes wamc-skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ─── 20. WOO OVERRIDES (inside our shell) ─────────────────────── */
.wamc-shell .woocommerce-notices-wrapper,
.wamc-shell .woocommerce-message,
.wamc-shell .woocommerce-error,
.wamc-shell .woocommerce-info {
    border-radius: var(--app-radius-xs) !important;
    font-size: 14px !important;
    margin-bottom: 16px !important;
}

.wamc-shell .woocommerce-Address {
    margin-bottom: 20px;
}

.wamc-shell .woocommerce-Address-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.wamc-shell .woocommerce-Address-title h3 {
    font-size: 16px;
    font-weight: 700;
}

.wamc-shell .woocommerce-Address-title a,
.wamc-shell a.edit {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 14px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    background: var(--app-accent-light);
    color: var(--app-accent);
    text-decoration: none;
    transition: all var(--app-transition);
}

.wamc-shell .woocommerce-Address-title a:hover,
.wamc-shell a.edit:hover {
    background: var(--app-accent);
    color: #fff;
}

/* ─── 21. RESPONSIVE — MOBILE ──────────────────────────────────── */
@media (max-width: 991px) {
    .wamc-shell {
        flex-direction: column;
        border-radius: 0;
        min-height: auto;
        background: transparent;
        box-shadow: none;
        gap: 0;
    }

    .wamc-content {
        padding: 20px 16px;
        border-radius: var(--app-radius);
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
        margin-top: 12px;
        background: #fff;
    }

    /* ── Bottom Nav Capsule ── */
    .wamc-nav {
        position: relative;
        width: 100%;
        margin: 0 auto;
        height: auto;
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 4px !important;
        background: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
        order: -1;
    }

    .wamc-nav-item {
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 4px;
        padding: 12px 6px !important;
        border-radius: 16px !important;
        font-size: 10px;
        flex: 1;
        min-width: 0;
        background: transparent !important;
        border: none !important;
        position: relative;
        z-index: 1;
        transition: transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .wamc-nav-item i {
        margin: 0;
        font-size: 24px;
    }

    .wamc-nav-item span {
        display: none;
        font-size: 10px;
        white-space: nowrap;
    }

    .wamc-nav-item.active span {
        display: block;
    }

    .wamc-nav-item:hover {
        transform: none;
    }

    .wamc-nav-item.active {
        background: transparent !important;
        color: var(--app-accent) !important;
        box-shadow: none !important;
    }

    .wamc-nav-item:active {
        transform: scale(0.92);
    }

    .wamc-nav-item.active::before {
        content: '';
        position: absolute;
        inset: 4px;
        background: var(--app-accent-ultra-light);
        border-radius: 12px;
        z-index: -1;
        animation: wamcNavPill 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }

    @keyframes wamcNavPill {
        0% { transform: scale(0.7); opacity: 0; }
        100% { transform: scale(1); opacity: 1; }
    }

    /* Stats */
    .wamc-stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* Quick Actions */
    .wamc-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Header */
    .wamc-header-info h3 {
        font-size: 20px;
    }

    .wamc-avatar {
        width: 48px;
        height: 48px;
    }

    /* Card padding */
    .wamc-card {
        padding: 20px 16px;
    }

    /* Toast */
    .wamc-toast-container {
        top: auto;
        bottom: 100px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wamc-content {
        padding: 16px 12px;
    }

    .wamc-stat-card {
        padding: 18px;
    }

    .wamc-stat-number {
        font-size: 24px;
    }

    .wamc-nav-item {
        padding: 6px 4px;
    }

    .wamc-nav-item i {
        font-size: 20px;
    }
}

/* ─── 22. PRINT ────────────────────────────────────────────────── */
@media print {
    .wamc-nav,
    .wamc-toast-container,
    .wamc-bottom-sheet,
    .wamc-btn-icon {
        display: none !important;
    }
    .wamc-shell {
        box-shadow: none;
    }
}

/* ─── 23. ACCESSIBILITY ────────────────────────────────────────── */
.wamc-nav-item:focus-visible,
.wamc-btn:focus-visible,
.wamc-quick-btn:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

/* ─── 24. SELECT2 OVERRIDES ────────────────────────────────────── */
.wamc-shell .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1.5px solid #e4e7eb;
    border-radius: var(--app-radius-xs);
    padding: 4px 8px;
    display: flex;
    align-items: center;
}

.wamc-shell .select2-container--default .select2-selection--single:focus,
.wamc-shell .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light);
}

.wamc-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* ==========================================================================
 * WOO APP MI CUENTA v6 - APPLE STYLE AUTH / SKELETONS / TIMELINE CSS
 * ========================================================================== */

/* ── 1. Glassmorphism Pro Scroll Blur ── */
.wamc-shell.is-scrolling .wamc-header {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    z-index: 100;
}
.wamc-shell.is-scrolling .wamc-nav {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

/* ── 2. Avatar Hover Upload UI ── */
.wamc-avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 65px;
    height: 65px;
}
.wamc-avatar-wrapper .wamc-avatar {
    width: 100%;
    height: 100%;
}
.wamc-avatar-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.wamc-avatar-wrapper:hover .wamc-avatar-overlay {
    opacity: 1;
}

/* Loader Screen */
.wamc-loader {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

/* ── 3. Skeletons for Tabs ── */
.wamc-skeleton-loading * {
    color: transparent !important;
    background-color: #e2e5e7 !important;
    border-color: #e2e5e7 !important;
    background-image: linear-gradient(90deg, #e2e5e7 0px, #f0f2f4 40px, #e2e5e7 80px) !important;
    background-size: 600px !important;
    animation: wamc-shimmer 2s infinite linear !important;
    box-shadow: none !important;
}
.wamc-skeleton-loading img { opacity: 0; }
@keyframes wamc-shimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}

/* ── 4. Enhanced Timeline ── */
.wamc-timeline-wrapper {
    margin: 25px 0 15px 0;
    padding: 10px 10px;
    position: relative;
}
.wamc-progress-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 6px;
    position: absolute;
    top: 18px; /* Algigned with dots */
    left: 10%; right: 10%; /* Center the track leaving margins */
    z-index: 1;
}
.wamc-progress-bar {
    background: var(--wd-primary-color);
    height: 100%;
    border-radius: 6px;
    width: var(--progress);
    .wamc-quick-actions {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Header */
    .wamc-header-info h3 {
        font-size: 20px;
    }

    .wamc-avatar {
        width: 48px;
        height: 48px;
    }

    /* Card padding */
    .wamc-card {
        padding: 20px 16px;
    }

    /* Toast */
    .wamc-toast-container {
        top: auto;
        bottom: 100px;
        right: 12px;
        left: 12px;
        max-width: none;
    }
}

@media (max-width: 480px) {
    .wamc-content {
        padding: 16px 12px;
    }

    .wamc-stat-card {
        padding: 18px;
    }

    .wamc-stat-number {
        font-size: 24px;
    }

    .wamc-nav-item {
        padding: 6px 4px;
    }

    .wamc-nav-item i {
        font-size: 20px;
    }
}

/* ─── 22. PRINT ────────────────────────────────────────────────── */
@media print {
    .wamc-nav,
    .wamc-toast-container,
    .wamc-bottom-sheet,
    .wamc-btn-icon {
        display: none !important;
    }
    .wamc-shell {
        box-shadow: none;
    }
}

/* ─── 23. ACCESSIBILITY ────────────────────────────────────────── */
.wamc-nav-item:focus-visible,
.wamc-btn:focus-visible,
.wamc-quick-btn:focus-visible {
    outline: 2px solid var(--app-accent);
    outline-offset: 2px;
}

/* ─── 24. SELECT2 OVERRIDES ────────────────────────────────────── */
.wamc-shell .select2-container--default .select2-selection--single {
    height: 48px;
    border: 1.5px solid #e4e7eb;
    border-radius: var(--app-radius-xs);
    padding: 4px 8px;
    display: flex;
    align-items: center;
}

.wamc-shell .select2-container--default .select2-selection--single:focus,
.wamc-shell .select2-container--default.select2-container--open .select2-selection--single {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light);
}

.wamc-shell .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 100%;
}

/* ==========================================================================
 * WOO APP MI CUENTA v6 - APPLE STYLE AUTH / SKELETONS / TIMELINE CSS
 * ========================================================================== */

/* ── 1. Glassmorphism Pro Scroll Blur ── */
.wamc-shell.is-scrolling .wamc-header {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 4px 20px rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(255,255,255,0.4);
    z-index: 100;
}
.wamc-shell.is-scrolling .wamc-nav {
    background: rgba(255, 255, 255, 0.45) !important;
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

/* ── 2. Avatar Hover Upload UI ── */
.wamc-avatar-wrapper {
    position: relative;
    cursor: pointer;
    border-radius: 50%;
    overflow: hidden;
    width: 65px;
    height: 65px;
}
.wamc-avatar-wrapper .wamc-avatar {
    width: 100%;
    height: 100%;
}
.wamc-avatar-overlay {
    position: absolute;
    top:0; left:0; width:100%; height:100%;
    background: rgba(0,0,0,0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    opacity: 0;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(2px);
}
.wamc-avatar-wrapper:hover .wamc-avatar-overlay {
    opacity: 1;
}

/* Loader Screen */
.wamc-loader {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 15px 25px;
    border-radius: 20px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    backdrop-filter: blur(10px);
}

/* ── 3. Skeletons for Tabs ── */
.wamc-skeleton-loading * {
    color: transparent !important;
    background-color: #e2e5e7 !important;
    border-color: #e2e5e7 !important;
    background-image: linear-gradient(90deg, #e2e5e7 0px, #f0f2f4 40px, #e2e5e7 80px) !important;
    background-size: 600px !important;
    animation: wamc-shimmer 2s infinite linear !important;
    box-shadow: none !important;
}
.wamc-skeleton-loading img { opacity: 0; }
@keyframes wamc-shimmer {
    0% { background-position: -300px 0; }
    100% { background-position: 300px 0; }
}

/* ── 4. Enhanced Timeline ── */
.wamc-timeline-wrapper {
    margin: 25px 0 15px 0;
    padding: 10px 10px;
    position: relative;
}
.wamc-progress-track {
    background: #e2e8f0;
    height: 6px;
    border-radius: 6px;
    position: absolute;
    top: 18px; /* Algigned with dots */
    left: 10%; right: 10%; /* Center the track leaving margins */
    z-index: 1;
}
.wamc-progress-bar {
    background: var(--wd-primary-color);
    height: 100%;
    border-radius: 6px;
    width: var(--progress);
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}
.wamc-progress-bar::after {
    content:'';
    position:absolute; right: -8px; top: -6px;
    width: 18px; height: 18px;
    background: white; border: 4px solid var(--wd-primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.wamc-progress-steps {
    display: flex;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}
.wamc-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 25%;
    text-align: center;
}
.wamc-step-dot {
    width: 14px; height: 14px;
    background: #e2e8f0;
    border: 3px solid white;
    border-radius: 50%;
    transition: all 0.3s ease;
    box-shadow: 0 0 0 2px #e2e8f0;
}
.wamc-step.reached .wamc-step-dot {
    background: var(--wd-primary-color);
    box-shadow: 0 0 0 2px var(--wd-primary-color);
}
.wamc-step span {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.wamc-step.reached span {
    color: #1e293b;
    font-weight: 600;
}

/* ── 5. Apple Style Login/Register Forms ── */
.wamc-auth-shell {
    max-width: 900px;
    margin: 40px auto;
    font-weight: 600;
    background: #111;
    color: white;
    border: none;
    transition: transform 0.2s;
}
.wamc-auth-forms-wrapper button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.wamc-auth-footer {
    padding: 20px;
    background: rgba(0,0,0,0.02);
    text-align: center;
    font-size: 0.8rem;
    color: #888;
    border-top: 1px solid rgba(0,0,0,0.05);
}
@media (max-width: 768px) {
    .wamc-auth-forms-wrapper .col2-set {
        grid-template-columns: 1fr;
    }
    .wamc-auth-container {
        padding: 30px 20px;
    }
}

/* ── 6. Thank You Enhancer ── */
.wamc-thankyou-shell.glass-pro {
    background: rgba(255,255,255,0.6);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    border: 1px solid rgba(255,255,255,0.8);
    box-shadow: 0 20px 40px rgba(0,0,0,0.05);
    margin: 40px auto;
    max-width: 800px;
}
p.woocommerce-notice--success {
    background: rgba(46, 196, 182, 0.1);
    color: #2ec4b6;
    border-radius: 12px;
    padding: 15px 20px;
    border: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
p.woocommerce-notice--success::before {
    content: '\eb81'; /* boxicons check */
    font-family: 'boxicons';
    font-size: 1.5rem;
}
.woocommerce-order-details {
    background: white;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-top: 30px;
}
/* ── View Order Style ── */
.wamc-shell .woocommerce-order-details {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    margin-top: 20px;
    border: 1px solid rgba(0,0,0,0.03);
}
.wamc-shell .woocommerce-order-details h2 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wamc-shell .woocommerce-order-details h2::before {
    content: '\eb3a'; /* bx-receipt */
    font-family: 'boxicons';
    color: var(--wd-primary-color);
    font-size: 1.5rem;
}
.wamc-shell .woocommerce-customer-details {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.04);
    margin-top: 20px;
    border: 1px solid rgba(0,0,0,0.03);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.wamc-shell .woocommerce-customer-details h2 {
    grid-column: 1 / -1;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.wamc-shell .woocommerce-customer-details h2::before {
    content: '\eb8f'; /* bx-user */
    font-family: 'boxicons';
    color: var(--wd-primary-color);
    font-size: 1.5rem;
}
.wamc-shell .woocommerce-column__title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}
.wamc-shell address {
    font-style: normal;
    background: #f8f9fa;
    padding: 15px;
    border-radius: 12px;
    color: #666;
    line-height: 1.6;
    font-size: 0.9rem;
}
@media (max-width: 768px) {
    .wamc-shell .woocommerce-customer-details {
        grid-template-columns: 1fr;
    }
    .wamc-shell .woocommerce-table--order-details thead {
        display: none;
    }
    .wamc-shell .woocommerce-table--order-details, 
    .wamc-shell .woocommerce-table--order-details tbody, 
    .wamc-shell .woocommerce-table--order-details tr, 
    .wamc-shell .woocommerce-table--order-details td {
        display: block;
        width: 100%;
    }
    .wamc-shell .woocommerce-table--order-details tr.order_item {
        margin-bottom: 15px;
        border: 1px solid #f0f0f0;
        border-radius: 12px;
        padding: 15px;
    }
    .wamc-shell .woocommerce-table--order-details td {
        border: none !important;
        padding: 5px 0;
        text-align: right;
    }
    .wamc-shell .woocommerce-table--order-details td::before {
        content: attr(data-title);
        float: left;
        font-weight: 600;
        color: #333;
    }
}

/* ═════════════════════════════════════════════════════════════════
   LOYALTY CARD MODULE — Modern App Design
   ═════════════════════════════════════════════════════════════════ */

/* ─── Loyalty Header ─────────────────────────────────────────── */
.wamc-loyalty-header-card {
    background: linear-gradient(135deg, var(--app-accent), color-mix(in srgb, var(--app-accent) 70%, #4361ee)) !important;
    color: #fff !important;
    border: none !important;
}

.wamc-loyalty-header {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.wamc-loyalty-icon-wrap {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    flex-shrink: 0;
}

.wamc-loyalty-header-info h4 {
    color: #fff !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 1.2rem;
}

.wamc-loyalty-subtitle {
    font-size: 0.9rem;
    opacity: 0.85;
}

.wamc-loyalty-badge-redeemed {
    margin-left: auto;
    background: rgba(255,255,255,0.2);
    backdrop-filter: blur(10px);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* ─── Progress Ring ──────────────────────────────────────────── */
.wamc-loyalty-progress-ring-wrap {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 20px auto;
}

.wamc-loyalty-ring {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.wamc-loyalty-ring-bg {
    fill: none;
    stroke: #f0f2f5;
    stroke-width: 8;
}

.wamc-loyalty-ring-fill {
    fill: none;
    stroke: var(--app-accent);
    stroke-width: 8;
    stroke-linecap: round;
    stroke-dasharray: 326.7;
    stroke-dashoffset: calc(326.7 - (326.7 * var(--progress, 0) / 100));
    transition: stroke-dashoffset 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 6px color-mix(in srgb, var(--app-accent) 40%, transparent));
}

.wamc-loyalty-ring-text {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.wamc-loyalty-ring-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--app-text);
    line-height: 1;
}

.wamc-loyalty-ring-label {
    font-size: 0.85rem;
    color: var(--app-text-secondary);
    font-weight: 600;
}

/* ─── Stamps Grid ────────────────────────────────────────────── */
.wamc-loyalty-stamps-grid {
    display: grid;
    grid-template-columns: repeat(var(--cols, 5), 1fr);
    gap: 12px;
    padding: 20px 0;
}

.wamc-loyalty-stamp {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: #f8f9fa;
    border: 2px dashed #e0e3e8;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: default;
    opacity: 0;
    animation: wamc-stampAppear 0.4s ease forwards;
}

@keyframes wamc-stampAppear {
    from { opacity: 0; transform: scale(0.5); }
    to   { opacity: 1; transform: scale(1); }
}

.wamc-loyalty-stamp i {
    font-size: clamp(20px, 4vw, 28px);
    color: #ccc;
    transition: all 0.3s;
}

.wamc-stamp-number {
    font-size: 10px;
    font-weight: 700;
    color: var(--app-text-muted);
}

/* Filled stamp */
.wamc-loyalty-stamp.filled {
    background: var(--app-accent-light);
    border: 2px solid var(--app-accent);
    box-shadow: 0 4px 14px color-mix(in srgb, var(--app-accent) 20%, transparent);
}

.wamc-loyalty-stamp.filled i {
    color: var(--app-accent);
}

.wamc-loyalty-stamp.filled .wamc-stamp-number {
    color: var(--app-accent);
}

/* Next stamp (pulsing) */
.wamc-loyalty-stamp.next {
    border: 2px dashed var(--app-accent);
    background: var(--app-accent-ultra-light);
}

.wamc-loyalty-stamp.next i {
    color: var(--app-accent);
    opacity: 0.5;
}

.wamc-pulse {
    animation: wamc-pulseAnim 2s ease-in-out infinite;
}

@keyframes wamc-pulseAnim {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50%      { transform: scale(1.2); opacity: 1; }
}

/* ─── Progress Bar ───────────────────────────────────────────── */
.wamc-loyalty-progress-bar-wrap {
    margin-top: 10px;
}

.wamc-loyalty-progress-bar {
    height: 10px;
    background: #f0f2f5;
    border-radius: 50px;
    overflow: hidden;
}

.wamc-loyalty-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--app-accent), color-mix(in srgb, var(--app-accent) 70%, #4361ee));
    border-radius: 50px;
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.wamc-loyalty-progress-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: wamc-shimmer 2s infinite;
}

.wamc-loyalty-progress-labels {
    display: flex;
    justify-content: space-between;
    margin-top: 8px;
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    font-weight: 600;
}

/* ─── Prize Card ─────────────────────────────────────────────── */
.wamc-loyalty-prize-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    border: 2px solid var(--app-accent) !important;
}

.wamc-loyalty-prize-glow {
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, color-mix(in srgb, var(--app-accent) 8%, transparent) 0%, transparent 60%);
    animation: wamc-glowRotate 6s linear infinite;
    pointer-events: none;
}

@keyframes wamc-glowRotate {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.wamc-loyalty-prize-content {
    position: relative;
    z-index: 1;
}

.wamc-loyalty-prize-icon {
    font-size: 3rem;
    margin-bottom: 12px;
    animation: wamc-bounce 2s ease-in-out infinite;
}

@keyframes wamc-bounce {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}

.wamc-loyalty-prize-content h4 {
    border: none !important;
    padding: 0 !important;
    justify-content: center !important;
    font-size: 1.3rem !important;
    color: var(--app-accent) !important;
}

.wamc-loyalty-prize-content p {
    color: var(--app-text-secondary);
    margin-bottom: 20px;
}

.wamc-loyalty-redeem-btn {
    font-size: 1rem !important;
    padding: 16px 32px !important;
    border-radius: 14px !important;
    animation: wamc-pulseBtn 2s ease-in-out infinite;
}

@keyframes wamc-pulseBtn {
    0%, 100% { box-shadow: 0 4px 14px color-mix(in srgb, var(--app-accent) 30%, transparent); }
    50%      { box-shadow: 0 8px 30px color-mix(in srgb, var(--app-accent) 50%, transparent); }
}

/* ─── Info Card ──────────────────────────────────────────────── */
.wamc-loyalty-info-row {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.wamc-loyalty-info-row > i {
    font-size: 24px;
    color: var(--app-accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.wamc-loyalty-info-row strong {
    display: block;
    margin-bottom: 4px;
}

.wamc-loyalty-info-row p {
    font-size: 0.9rem;
    color: var(--app-text-secondary);
    margin: 0;
}

/* ═══ STAFF VIEW ═══════════════════════════════════════════════ */
.wamc-loyalty-staff-card {
    border: 2px solid #e8eaf6 !important;
}

.wamc-loyalty-staff-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 20px;
}

.wamc-loyalty-staff-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    background: linear-gradient(135deg, #4361ee, #764ba2);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
}

.wamc-loyalty-staff-header h4 {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wamc-loyalty-staff-header span {
    font-size: 0.85rem;
    color: var(--app-text-secondary);
}

/* Search */
.wamc-loyalty-search-wrap {
    margin-bottom: 20px;
}

.wamc-loyalty-search-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.wamc-loyalty-search-input-wrap > i {
    position: absolute;
    left: 16px;
    font-size: 20px;
    color: var(--app-text-muted);
    pointer-events: none;
}

.wamc-loyalty-search-input-wrap input {
    width: 100%;
    padding: 14px 16px 14px 48px;
    border: 2px solid #e4e7eb;
    border-radius: 14px;
    font-size: 15px;
    background: #fafbfc;
    transition: all var(--app-transition);
    outline: none;
}

.wamc-loyalty-search-input-wrap input:focus {
    border-color: var(--app-accent);
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light);
    background: #fff;
}

.wamc-loyalty-search-spinner {
    position: absolute;
    right: 16px;
    color: var(--app-accent);
    font-size: 20px;
}

.wamc-loyalty-search-results {
    margin-top: 8px;
    max-height: 240px;
    overflow-y: auto;
    border-radius: 14px;
}

.wamc-loyalty-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    cursor: pointer;
    transition: all var(--app-transition);
    border: 1px solid transparent;
}

.wamc-loyalty-search-result-item:hover {
    background: var(--app-accent-ultra-light);
    border-color: var(--app-accent-light);
}

.wamc-loyalty-search-result-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.wamc-loyalty-search-result-info {
    flex: 1;
    min-width: 0;
}

.wamc-loyalty-search-result-info strong {
    display: block;
    font-size: 0.95rem;
}

.wamc-loyalty-search-result-info small {
    color: var(--app-text-secondary);
    font-size: 0.8rem;
}

.wamc-loyalty-search-result-stamps {
    background: var(--app-accent-light);
    color: var(--app-accent);
    padding: 4px 10px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    white-space: nowrap;
}

/* Customer Panel */
.wamc-loyalty-customer-panel {
    background: #fafbfc;
    border-radius: 16px;
    padding: 20px;
    border: 1px solid #f0f2f5;
    animation: wamc-fadeIn 0.4s ease;
}

.wamc-loyalty-customer-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 16px;
    border-bottom: 1px solid #f0f2f5;
    margin-bottom: 16px;
}

.wamc-loyalty-customer-avatar img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.wamc-loyalty-customer-info {
    flex: 1;
    min-width: 0;
}

.wamc-loyalty-customer-info strong {
    display: block;
    font-size: 1rem;
}

.wamc-loyalty-customer-info small {
    color: var(--app-text-secondary);
}

.wamc-loyalty-stamps-staff {
    margin: 16px 0;
}

.wamc-loyalty-staff-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 16px;
    border-top: 1px solid #f0f2f5;
}

.wamc-loyalty-stamp-counter {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--app-text);
}

.wamc-loyalty-add-stamp-btn {
    min-width: 160px;
}

/* stamp added animation */
@keyframes wamc-stampPop {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); opacity: 1; }
}

.wamc-loyalty-stamp.just-added {
    animation: wamc-stampPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards !important;
}

/* ═════════════════════════════════════════════════════════════════
   "MORE" MENU — Overflow Navigation
   ═════════════════════════════════════════════════════════════════ */

/* More menu items displayed in bottom sheet */
.wamc-more-menu-list {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 10px 0;
}

.wamc-more-menu-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    border-radius: 14px;
    background: transparent;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 15px;
    font-weight: 600;
    color: var(--app-text-secondary);
    cursor: pointer;
    transition: all var(--app-transition);
}

.wamc-more-menu-item i {
    font-size: 22px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f0f2f5;
    color: var(--app-accent);
    transition: all var(--app-transition);
    flex-shrink: 0;
}

.wamc-more-menu-item:hover {
    background: var(--app-accent-ultra-light);
    color: var(--app-accent);
}

.wamc-more-menu-item:hover i {
    background: var(--app-accent-light);
    transform: scale(1.05);
}

.wamc-more-menu-item.active {
    background: var(--app-accent-light);
    color: var(--app-accent);
    font-weight: 700;
}

.wamc-more-menu-item.active i {
    background: var(--app-accent);
    color: #fff;
}

/* ─── Loyalty Responsive ─────────────────────────────────────── */
@media (max-width: 768px) {
    .wamc-loyalty-header {
        flex-direction: column;
        text-align: center;
    }

    .wamc-loyalty-badge-redeemed {
        margin-left: 0;
    }

    .wamc-loyalty-stamps-grid {
        gap: 8px;
    }

    .wamc-loyalty-stamp i {
        font-size: 18px;
    }

    .wamc-loyalty-staff-actions {
        flex-direction: column;
    }

    .wamc-loyalty-add-stamp-btn {
        width: 100%;
        min-width: unset;
    }

    .wamc-loyalty-customer-header {
        flex-wrap: wrap;
    }

    .wamc-loyalty-progress-ring-wrap {
        width: 100px;
        height: 100px;
    }

    .wamc-loyalty-ring-number {
        font-size: 1.6rem;
    }
}

@media (max-width: 480px) {
    .wamc-loyalty-stamps-grid {
        grid-template-columns: repeat(var(--cols, 5), 1fr) !important;
        gap: 6px;
    }

    .wamc-loyalty-stamp {
        border-radius: 10px;
    }

    .wamc-stamp-number {
        font-size: 8px;
    }

    .wamc-loyalty-search-input-wrap input {
        font-size: 14px;
        padding: 12px 12px 12px 42px;
    }
}

/* ═════════════════════════════════════════════════════════════════
   REDEEM RESULT — Bottom Sheet Content
   ═════════════════════════════════════════════════════════════════ */

.wamc-redeem-result {
    text-align: center;
    padding: 10px 0;
}

.wamc-redeem-celebration {
    font-size: 4rem;
    margin-bottom: 12px;
    animation: wamc-bounce 2s ease-in-out infinite;
}

.wamc-redeem-title {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--app-text);
    margin: 0 0 8px 0;
}

.wamc-redeem-subtitle {
    font-size: 1rem;
    color: var(--app-text-secondary);
    margin: 0 0 24px 0;
    line-height: 1.5;
}

/* ── Coupon Box ── */
.wamc-redeem-coupon-box {
    background: linear-gradient(135deg, #f8f9ff, #eef0ff);
    border: 2px dashed var(--app-accent);
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.wamc-redeem-coupon-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--app-text-secondary);
    font-weight: 700;
    margin-bottom: 12px;
}

.wamc-redeem-coupon-code {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--app-accent);
    letter-spacing: 0.1em;
    padding: 12px 0;
    margin-bottom: 16px;
    font-family: 'Courier New', monospace;
    user-select: all;
    cursor: text;
    word-break: break-all;
}

.wamc-btn-success {
    background: #2ec4b6 !important;
    color: #fff !important;
}

/* ── Manual Box ── */
.wamc-redeem-manual-box {
    background: linear-gradient(135deg, #fff7ed, #fffbf0);
    border: 2px solid #ffd6a0;
    border-radius: 20px;
    padding: 24px 20px;
    margin-bottom: 24px;
}

.wamc-redeem-manual-icon {
    font-size: 3rem;
    margin-bottom: 10px;
}

.wamc-redeem-manual-box h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--app-text);
    margin: 0 0 8px 0;
    border: none !important;
    padding: 0 !important;
    display: block !important;
}

.wamc-redeem-manual-box p {
    font-size: 0.95rem;
    color: var(--app-text-secondary);
    margin: 0;
    line-height: 1.5;
}

/* ── Instructions ── */
.wamc-redeem-instructions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
}

.wamc-redeem-instruction-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    background: #f8f9fa;
    border-radius: 14px;
    transition: all var(--app-transition);
}

.wamc-redeem-instruction-item i {
    font-size: 22px;
    color: var(--app-accent);
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent-light);
    border-radius: 10px;
}

.wamc-redeem-instruction-item span {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--app-text);
}

.wamc-redeem-step-num {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--app-accent);
    color: #fff;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 800;
    flex-shrink: 0;
}

/* ── Expiry & Status Badges ── */
.wamc-redeem-expiry {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f2f5;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--app-text-secondary);
    margin-bottom: 20px;
}

.wamc-redeem-expiry i {
    color: var(--app-accent);
}

.wamc-redeem-status-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    background: #e0f7f5;
    border-radius: 14px;
    font-size: 0.9rem;
    font-weight: 700;
    color: #2ec4b6;
    margin-bottom: 20px;
}

.wamc-redeem-status-badge i {
    font-size: 1.2rem;
}

.wamc-redeem-close-btn {
    margin-top: 8px;
}

/* ═════════════════════════════════════════════════════════════════
   CONFETTI ANIMATION
   ═════════════════════════════════════════════════════════════════ */

.wamc-confetti-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    overflow: hidden;
    z-index: 999999;
}

.wamc-confetti-piece {
    position: absolute;
    top: -20px;
    border-radius: 3px;
    animation: wamc-confettiFall linear forwards;
    will-change: transform;
}

@keyframes wamc-confettiFall {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 1;
    }
    70% {
        opacity: 1;
    }
    100% {
        transform: translateY(110vh) rotate(720deg) scale(0.3);
        opacity: 0;
    }
}

/* ══════════════════════════════════════════════
 *  LOYALTY 2.0 — TIER THEMES & NEW FEATURES
 * ══════════════════════════════════════════════ */

/* ── Tier Colors ── */
.wamc-tier-bronze { --tier-color: #cd7f32; --tier-glow: rgba(205, 127, 50, 0.3); --tier-bg: linear-gradient(135deg, #f5e6d3, #fff7ee); }
.wamc-tier-silver { --tier-color: #8e9fad; --tier-glow: rgba(142, 159, 173, 0.3); --tier-bg: linear-gradient(135deg, #e8eef2, #f8fbff); }
.wamc-tier-gold { --tier-color: #d4a024; --tier-glow: rgba(212, 160, 36, 0.3); --tier-bg: linear-gradient(135deg, #fff8e1, #fffdf5); }

/* ── Loyalty Header Card (Tier-aware) ── */
.wamc-loyalty-header-card {
    position: relative;
    overflow: hidden;
}
.wamc-loyalty-header {
    display: flex;
    align-items: center;
    gap: 12px;
}
.wamc-loyalty-icon-wrap {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.5rem;
    color: #fff;
    background: var(--tier-color, var(--app-accent));
    flex-shrink: 0;
}
.wamc-tier-icon-gold { background: linear-gradient(135deg, #f5c518, #d4a024); box-shadow: 0 4px 16px rgba(212,160,36,0.4); }
.wamc-tier-icon-silver { background: linear-gradient(135deg, #b0c4d8, #8e9fad); box-shadow: 0 4px 16px rgba(142,159,173,0.4); }
.wamc-tier-icon-bronze { background: linear-gradient(135deg, #d4955a, #cd7f32); box-shadow: 0 4px 16px rgba(205,127,50,0.3); }

.wamc-loyalty-header-info { flex: 1; }
.wamc-loyalty-header-info h4 { margin: 0; font-size: 1.1rem; font-weight: 700; }
.wamc-loyalty-subtitle { font-size: 0.85rem; color: var(--app-text-secondary); margin-top: 2px; display: block; }

/* ── Tier Badge ── */
.wamc-loyalty-tier-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    white-space: nowrap;
}
.wamc-tier-badge-bronze { background: linear-gradient(135deg, #f5e6d3, #eddcc7); color: #8b5e34; }
.wamc-tier-badge-silver { background: linear-gradient(135deg, #e8eef2, #d8e4ec); color: #5a6d7e; }
.wamc-tier-badge-gold { background: linear-gradient(135deg, #fff8e1, #fcefc0); color: #8b6914; animation: goldShimmer 3s ease-in-out infinite; }

@keyframes goldShimmer {
    0%, 100% { box-shadow: 0 0 6px rgba(212,160,36,0.2); }
    50% { box-shadow: 0 0 18px rgba(212,160,36,0.5); }
}

/* ── Double Day Banner ── */
.wamc-loyalty-double-day-banner {
    margin-top: 12px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    animation: bannerPulse 2s ease-in-out infinite;
}
@keyframes bannerPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.01); box-shadow: 0 4px 16px rgba(255,107,53,0.4); }
}

/* ── Streak Banner ── */
.wamc-loyalty-streak-banner {
    margin-top: 8px;
    padding: 8px 14px;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
}
.wamc-streak-bonus {
    color: #ffd93d;
    text-decoration: underline;
}

/* ── Action Buttons Row ── */
.wamc-loyalty-actions-row {
    display: flex;
    gap: 8px;
    padding: 12px !important;
}
.wamc-loyalty-action-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    padding: 10px 6px;
    border: 1px solid var(--app-border);
    border-radius: 12px;
    background: var(--app-surface);
    color: var(--app-text-primary);
    font-size: 0.7rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}
.wamc-loyalty-action-btn i { font-size: 1.3rem; color: var(--app-accent); }
.wamc-loyalty-action-btn:hover { background: var(--app-accent); color: #fff; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.wamc-loyalty-action-btn:hover i { color: #fff; }
.wamc-loyalty-action-highlight { border-color: var(--app-accent); background: rgba(var(--app-accent-rgb, 99,102,241), 0.05); }

.wamc-action-badge {
    position: absolute;
    top: -4px; right: -4px;
    width: 18px; height: 18px;
    border-radius: 50%;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    line-height: 1;
}

/* ── Tier Card Visual ── */
.wamc-tier-card-silver { border: 1px solid rgba(142,159,173,0.3); background: linear-gradient(135deg, #f8fbff, #e8eef2) !important; }
.wamc-tier-card-gold { border: 1px solid rgba(212,160,36,0.3); background: linear-gradient(135deg, #fffdf5, #fff8e1) !important; position: relative; overflow: hidden; }
.wamc-tier-card-gold::before {
    content: '';
    position: absolute;
    top: -50%; left: -50%;
    width: 200%; height: 200%;
    background: linear-gradient(45deg, transparent 48%, rgba(255,255,255,0.15) 49%, rgba(255,255,255,0.15) 51%, transparent 52%);
    animation: goldSweep 4s ease-in-out infinite;
}
@keyframes goldSweep {
    0% { transform: translateX(-100%) translateY(-100%); }
    100% { transform: translateX(100%) translateY(100%); }
}

/* ── Tier Stamps ── */
.wamc-tier-stamp-silver.filled { background: linear-gradient(135deg, #b0c4d8, #8e9fad) !important; }
.wamc-tier-stamp-silver.filled i { color: #fff !important; }
.wamc-tier-stamp-gold.filled { background: linear-gradient(135deg, #f5c518, #d4a024) !important; }
.wamc-tier-stamp-gold.filled i { color: #fff !important; }

/* ── Tier Ring fill ── */
.wamc-tier-ring-silver { stroke: #8e9fad !important; }
.wamc-tier-ring-gold { stroke: #d4a024 !important; }

/* ── Tier Progress ── */
.wamc-tier-progress-silver { background: linear-gradient(90deg, #b0c4d8, #8e9fad) !important; }
.wamc-tier-progress-gold { background: linear-gradient(90deg, #f5c518, #d4a024) !important; }

/* ── ID Card (Bottom Sheet) ── */
.wamc-id-card {
    text-align: center;
    padding: 24px 16px;
}
.wamc-id-card-header {
    margin-bottom: 16px;
}
.wamc-id-card-tier {
    display: inline-block;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
}

.wamc-id-card-qr {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px auto;
    padding: 16px;
    background: #fff;
    border-radius: 16px;
    width: fit-content;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}
.wamc-id-card-qr img { border-radius: 8px; }

.wamc-id-card-code {
    font-size: 2.5rem;
    font-weight: 800;
    letter-spacing: 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    color: var(--app-text-primary);
    margin: 12px 0 4px;
}
.wamc-id-card-name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--app-text-secondary);
    margin-bottom: 16px;
}
.wamc-id-card-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 16px;
}
.wamc-id-stat { text-align: center; }
.wamc-id-stat-num { display: block; font-size: 1.5rem; font-weight: 800; color: var(--app-text-primary); }
.wamc-id-stat-label { font-size: 0.75rem; color: var(--app-text-secondary); font-weight: 500; }

.wamc-id-card-hint {
    font-size: 0.8rem;
    color: var(--app-text-secondary);
    margin: 0;
    padding: 12px;
    background: var(--app-surface);
    border-radius: 10px;
    border: 1px dashed var(--app-border);
}

/* ── Tier-specific ID Cards ── */
.wamc-tier-id-silver .wamc-id-card-code { color: #5a6d7e; }
.wamc-tier-id-silver .wamc-id-card-qr { border: 2px solid rgba(142,159,173,0.3); }
.wamc-tier-id-gold .wamc-id-card-code { color: #8b6914; }
.wamc-tier-id-gold .wamc-id-card-qr { border: 2px solid rgba(212,160,36,0.3); box-shadow: 0 4px 20px rgba(212,160,36,0.15); }

/* ── History Panel ── */
.wamc-history-panel {
    padding: 4px 0;
}
.wamc-history-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wamc-history-title i { font-size: 1.2rem; color: var(--app-accent); }

.wamc-history-section {
    margin-bottom: 20px;
}
.wamc-history-section-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--app-text-secondary);
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.wamc-history-section-title i { font-size: 1rem; }

/* ── History Items ── */
.wamc-history-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 10px;
    background: var(--app-surface);
    margin-bottom: 6px;
    transition: background 0.2s;
}
.wamc-history-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.wamc-history-stamp .wamc-history-icon { background: rgba(99,102,241,0.1); color: #6366f1; }
.wamc-history-prize .wamc-history-icon { background: rgba(16,185,129,0.1); color: #10b981; }
.wamc-history-referral .wamc-history-icon { background: rgba(244,63,94,0.1); color: #f43f5e; }
.wamc-history-default .wamc-history-icon { background: rgba(107,114,128,0.1); color: #6b7280; }

.wamc-history-info { flex: 1; min-width: 0; }
.wamc-history-text { display: block; font-size: 0.85rem; font-weight: 500; color: var(--app-text-primary); }
.wamc-history-text code { background: rgba(99,102,241,0.1); padding: 2px 6px; border-radius: 4px; font-size: 0.75rem; font-weight: 600; color: #6366f1; }
.wamc-history-date { display: block; font-size: 0.7rem; color: var(--app-text-secondary); margin-top: 2px; }

.wamc-badge-mini {
    display: inline-block;
    padding: 1px 6px;
    border-radius: 8px;
    background: linear-gradient(135deg, #ff6b35, #ff4500);
    color: #fff;
    font-size: 0.65rem;
    font-weight: 700;
    vertical-align: middle;
}

/* ── History Coupon Items ── */
.wamc-history-coupon-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    border-radius: 12px;
    background: var(--app-surface);
    border: 1px solid var(--app-border);
    margin-bottom: 8px;
}
.wamc-history-coupon-code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--app-accent);
    letter-spacing: 1px;
}
.wamc-history-coupon-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.wamc-history-coupon-value { font-size: 0.8rem; font-weight: 600; color: #10b981; }
.wamc-history-coupon-exp { font-size: 0.7rem; color: var(--app-text-secondary); }

.wamc-btn-mini {
    width: 34px; height: 34px;
    border-radius: 8px;
    border: 1px solid var(--app-border);
    background: transparent;
    color: var(--app-text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}
.wamc-btn-mini:hover { background: var(--app-accent); color: #fff; border-color: var(--app-accent); }

.wamc-history-empty {
    text-align: center;
    padding: 32px 16px;
    color: var(--app-text-secondary);
}
.wamc-history-empty i { font-size: 2.5rem; margin-bottom: 8px; display: block; opacity: 0.4; }
.wamc-history-empty p { margin: 0; font-size: 0.9rem; }

/* ── Staff: Search Input ── */
.wamc-loyalty-search-wrap {
    margin-top: 16px;
    position: relative;
}
#wamc-app .wamc-loyalty-search-input-wrap {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    background: var(--app-surface) !important;
    border: 1.5px solid var(--app-border) !important;
    border-radius: 14px !important;
    padding: 0 12px 0 40px !important;
    transition: border-color 0.25s, box-shadow 0.25s;
    gap: 0 !important;
    flex-wrap: nowrap !important;
}
#wamc-app .wamc-loyalty-search-input-wrap::before {
    content: '\ea11' !important; /* Boxicons bx-search unicode */
    font-family: 'boxicons' !important;
    position: absolute !important;
    left: 12px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    font-size: 1.25rem !important;
    color: var(--app-text-secondary) !important;
    pointer-events: none !important;
    z-index: 1 !important;
    line-height: 1 !important;
    transition: color 0.25s;
}
#wamc-app .wamc-loyalty-search-input-wrap:focus-within {
    border-color: var(--app-accent) !important;
    box-shadow: 0 0 0 3px rgba(99,102,241,0.12) !important;
}
#wamc-app .wamc-loyalty-search-input-wrap:focus-within::before {
    color: var(--app-accent) !important;
}
#wamc-app .wamc-loyalty-search-input-wrap input,
#wamc-app .wamc-loyalty-search-input-wrap input[type="text"] {
    flex: 1 1 auto !important;
    border: none !important;
    background: transparent !important;
    padding: 12px 0 !important;
    font-size: 0.9rem !important;
    color: var(--app-text-primary) !important;
    outline: none !important;
    min-width: 0 !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    box-shadow: none !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    border-radius: 0 !important;
    height: auto !important;
}
#wamc-app .wamc-loyalty-search-input-wrap input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
#wamc-app .wamc-loyalty-search-input-wrap input::placeholder {
    color: var(--app-text-secondary) !important;
    opacity: 0.7;
}
/* Hide native browser search clear/icon */
#wamc-app .wamc-loyalty-search-input-wrap input::-webkit-search-cancel-button,
#wamc-app .wamc-loyalty-search-input-wrap input::-webkit-search-decoration,
#wamc-app .wamc-loyalty-search-input-wrap input::-webkit-search-results-button,
#wamc-app .wamc-loyalty-search-input-wrap input::-webkit-search-results-decoration {
    -webkit-appearance: none !important;
    display: none !important;
}
#wamc-app .wamc-loyalty-search-spinner {
    flex-shrink: 0;
    margin-left: 8px;
    font-size: 1.1rem;
    color: var(--app-accent);
}

/* Staff: QR Scan Button */
.wamc-loyalty-qr-scan-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    margin-left: 8px;
    border-radius: 12px;
    border: 1.5px solid var(--app-border);
    background: linear-gradient(135deg, rgba(99,102,241,0.08), rgba(99,102,241,0.04));
    color: var(--app-accent);
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.25s;
}
.wamc-loyalty-qr-scan-btn:hover {
    background: var(--app-accent);
    color: #fff;
    border-color: var(--app-accent);
    transform: scale(1.05);
    box-shadow: 0 4px 16px rgba(99,102,241,0.3);
}
.wamc-loyalty-qr-scan-btn:active {
    transform: scale(0.95);
}

/* Staff: Search Results */
.wamc-loyalty-search-results {
    margin-top: 8px;
}
.wamc-loyalty-search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 2px;
}
.wamc-loyalty-search-result-item:hover {
    background: var(--app-surface);
}
.wamc-loyalty-search-result-item img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wamc-loyalty-search-result-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.wamc-loyalty-search-result-info strong {
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wamc-loyalty-search-result-info small {
    font-size: 0.75rem;
    color: var(--app-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.wamc-loyalty-search-result-stamps {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--app-text-secondary);
}

/* ── QR Scanner Overlay ── */
.wamc-qr-scanner-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: #000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: wamcFadeIn 0.3s;
}
@keyframes wamcFadeIn { from { opacity: 0; } to { opacity: 1; } }

.wamc-qr-scanner-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    z-index: 2;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7), transparent);
}
.wamc-qr-scanner-header h4 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}
.wamc-qr-scanner-header h4 i {
    font-size: 1.2rem;
}
.wamc-qr-scanner-close {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    backdrop-filter: blur(8px);
}
.wamc-qr-scanner-close:hover {
    background: rgba(255,255,255,0.25);
}

.wamc-qr-scanner-video-wrap {
    position: relative;
    width: 100%;
    max-width: 400px;
    aspect-ratio: 1;
}
.wamc-qr-scanner-video-wrap video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 20px;
}

.wamc-qr-scanner-frame {
    position: absolute;
    inset: 10%;
    border: 2.5px solid rgba(255,255,255,0.6);
    border-radius: 16px;
    pointer-events: none;
}
.wamc-qr-scanner-frame::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 2px;
    background: var(--app-accent, #6366f1);
    box-shadow: 0 0 12px var(--app-accent, #6366f1);
    animation: wamcScanLine 2.5s ease-in-out infinite;
    border-radius: 2px;
}
@keyframes wamcScanLine {
    0%, 100% { top: 15%; }
    50% { top: 85%; }
}

.wamc-qr-scanner-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    padding: 24px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
    z-index: 2;
}
.wamc-qr-scanner-hint p {
    margin: 0;
    color: rgba(255,255,255,0.85);
    font-size: 0.9rem;
    font-weight: 500;
}
.wamc-qr-scanner-hint small {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,0.5);
    font-size: 0.75rem;
}

.wamc-qr-scanner-error {
    text-align: center;
    padding: 40px 24px;
    color: #fff;
}
.wamc-qr-scanner-error i {
    font-size: 3rem;
    margin-bottom: 12px;
    display: block;
    color: #f43f5e;
}
.wamc-qr-scanner-error p {
    margin: 0 0 4px;
    font-size: 1rem;
    font-weight: 600;
}
.wamc-qr-scanner-error small {
    display: block;
    font-size: 0.85rem;
    opacity: 0.7;
}

/* ── Staff FAB ── */
.wamc-loyalty-fab {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: var(--app-accent);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 24px rgba(99,102,241,0.4);
    z-index: 999;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wamc-loyalty-fab:hover { transform: scale(1.1) translateY(-2px); box-shadow: 0 8px 32px rgba(99,102,241,0.5); }
.wamc-loyalty-fab:active { transform: scale(0.95); }

/* ── Staff: Customer Tier & ID Badge ── */
.wamc-loyalty-customer-tier {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
}
.wamc-staff-tier-badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 700;
}
.wamc-staff-id-badge {
    padding: 2px 8px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(99,102,241,0.1);
    color: #6366f1;
    font-family: 'SF Mono', 'Fira Code', monospace;
    letter-spacing: 1px;
}

/* ── Search: Tier Badge & ID ── */
.wamc-search-result-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}
.wamc-search-tier-badge {
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 0.65rem;
    font-weight: 700;
}
.wamc-tier-result-bronze { background: rgba(205,127,50,0.1); color: #8b5e34; }
.wamc-tier-result-silver { background: rgba(142,159,173,0.15); color: #5a6d7e; }
.wamc-tier-result-gold { background: rgba(212,160,36,0.15); color: #8b6914; }

.wamc-search-id {
    display: block;
    color: var(--app-accent);
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wamc-loyalty-search-empty {
    text-align: center;
    padding: 24px 16px;
    color: var(--app-text-secondary);
}
.wamc-loyalty-search-empty i { font-size: 2rem; display: block; margin-bottom: 8px; opacity: 0.4; }
.wamc-loyalty-search-empty p { margin: 0; font-size: 0.85rem; }

/* ── Redeem: Tier Upgrade ── */
.wamc-redeem-tier-upgrade {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 14px;
    border-radius: 10px;
    margin: 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
}
.wamc-redeem-tier-upgrade small {
    font-size: 0.7rem;
    font-weight: 500;
    opacity: 0.8;
}

/* ── Redeem: Persistent Note ── */
.wamc-redeem-persistent-note {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--app-text-secondary);
    margin: 12px 0;
    padding: 10px;
    background: var(--app-surface);
    border-radius: 8px;
    border: 1px dashed var(--app-border);
}
.wamc-redeem-persistent-note i { flex-shrink: 0; font-size: 1rem; }

/* ── Prize Glow ── */
.wamc-loyalty-prize-card {
    position: relative;
    overflow: hidden;
}
.wamc-loyalty-prize-glow {
    position: absolute;
    top: 50%; left: 50%;
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,0.15), transparent);
    transform: translate(-50%, -50%);
    animation: prizeGlow 2s ease-in-out infinite;
}
@keyframes prizeGlow {
    0%, 100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
}
.wamc-loyalty-prize-content {
    position: relative;
    z-index: 1;
    text-align: center;
}
.wamc-loyalty-prize-icon { font-size: 2.5rem; margin-bottom: 8px; }
.wamc-loyalty-prize-content h4 { margin: 0 0 8px; font-size: 1.2rem; }
.wamc-loyalty-prize-content p { margin: 0 0 16px; color: var(--app-text-secondary); font-size: 0.9rem; }

/* ── Info Card ── */
.wamc-loyalty-info-card { padding: 18px 22px; }
.wamc-loyalty-info-row {
    display: flex;
    gap: 12px;
    align-items: center;
}
.wamc-loyalty-info-row > i {
    font-size: 1.6rem;
    color: var(--app-accent);
    flex-shrink: 0;
}
.wamc-loyalty-info-row strong { display: block; margin-bottom: 2px; font-size: 0.95rem; }
.wamc-loyalty-info-row p { margin: 0; font-size: 0.85rem; color: var(--app-text-secondary); line-height: 1.4; }

/* ── Custom Stamp Icons (Media Library) ── */
.wamc-loyalty-stamp-custom {
    width: 24px;
    height: 24px;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.wamc-loyalty-stamp.filled .wamc-loyalty-stamp-custom {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}
.wamc-loyalty-stamp.next .wamc-loyalty-stamp-custom {
    opacity: 0.5;
}
.wamc-loyalty-stamp:not(.filled):not(.next) .wamc-loyalty-stamp-custom {
    opacity: 0.2;
    filter: grayscale(1);
}

/* ── Responsive ── */
@media (max-width: 480px) {
    .wamc-loyalty-actions-row { flex-wrap: wrap; }
    .wamc-loyalty-action-btn { min-width: 60px; }
    .wamc-id-card-code { font-size: 2rem; letter-spacing: 6px; }
    .wamc-loyalty-fab { bottom: 90px; right: 16px; width: 50px; height: 50px; font-size: 1.3rem; border-radius: 14px; }
}
@media (min-width: 769px) {
    .wamc-loyalty-fab { display: none; }
}

/* ─── 21. AUTH SHELL (Login / Register) ───────────────────────── */
.wamc-auth-shell {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc; /* Light gray background for the whole page */
    padding: 40px 20px;
}

.wamc-auth-container {
    background: #ffffff;
    width: 100%;
    max-width: 900px;
    border-radius: 28px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08);
    overflow: hidden;
    padding: 40px;
    text-align: center;
}

.wamc-auth-logo {
    font-size: 3rem;
    color: var(--app-accent);
    margin-bottom: 20px;
}

.wamc-auth-logo img {
    max-width: 180px;
    height: auto;
}

.wamc-auth-title {
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px !important;
}

.wamc-auth-subtitle {
    color: #64748b;
    font-size: 15px;
    margin-bottom: 40px;
}

.wamc-auth-forms-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    text-align: left;
    position: relative;
}

/* Vertical Divider */
.wamc-auth-forms-wrapper::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: #e2e8f0;
}

.wamc-auth-forms-wrapper h2 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px !important;
}

.wamc-auth-forms-wrapper form {
    padding: 0;
}

.wamc-auth-forms-wrapper .woocommerce-form-row {
    margin-bottom: 20px;
}

.wamc-auth-forms-wrapper label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 8px;
}

.wamc-auth-forms-wrapper input[type="text"],
.wamc-auth-forms-wrapper input[type="email"],
.wamc-auth-forms-wrapper input[type="password"] {
    width: 100%;
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    padding: 12px 16px !important;
    font-size: 15px !important;
    transition: all 0.2s;
}

.wamc-auth-forms-wrapper input:focus {
    background: #fff !important;
    border-color: var(--app-accent) !important;
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light) !important;
}

.wamc-auth-forms-wrapper .button {
    width: 100%;
    background: var(--app-accent) !important;
    color: #fff !important;
    border: none !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    margin-top: 10px;
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.wamc-auth-forms-wrapper .button:active {
    transform: scale(0.98);
}

.wamc-auth-footer {
    margin-top: 30px;
    font-size: 13px;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .wamc-auth-container {
        padding: 30px 20px;
        border-radius: 0;
    }
    .wamc-auth-forms-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    .wamc-auth-forms-wrapper::after {
        display: none;
    }
}

/* ─── 22. MODERN REWARDS CARD & SCRATCH WIDGET ───────────────────── */
.wamc-rewards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.wamc-reward-card-premium {
    position: relative;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.4);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s;
}

.wamc-reward-card-premium:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
}

.wamc-reward-premium-content {
    display: flex;
    padding: 20px;
    gap: 15px;
    align-items: stretch;
}

.wamc-reward-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.wamc-coupon-used {
    opacity: 0.6;
    filter: grayscale(1);
    pointer-events: none;
}

.wamc-reward-code-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #f1f5f9;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    padding: 8px 12px;
    margin-bottom: 8px;
}

.wamc-code-text {
    font-family: monospace;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    letter-spacing: 1px;
}

.wamc-code-copy {
    background: none;
    border: none;
    color: var(--app-accent);
    cursor: pointer;
    font-size: 18px;
    padding: 4px;
    border-radius: 4px;
    transition: background 0.2s, color 0.2s;
}

.wamc-code-copy:hover {
    background: var(--app-accent-ultra-light);
    color: var(--app-accent-dark);
}

.wamc-reward-desc {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 6px;
    line-height: 1.4;
}

.wamc-reward-expiry {
    font-size: 12px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

/* Scratch Area Overlay */
.wamc-unscratched .wamc-reward-premium-content {
    opacity: 0;
    pointer-events: none;
}

.wamc-scratch-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
    cursor: crosshair;
}

.wamc-scratch-prompt {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 11;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    text-align: center;
}

.wamc-scratch-prompt i {
    font-size: 32px;
    margin-bottom: 8px;
    animation: wamc-pulse 2s infinite;
}

.wamc-scratch-prompt span {
    font-weight: 700;
    font-size: 14px;
    background: rgba(0,0,0,0.5);
    padding: 6px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
}

/* ══════════════════════════════════════════════
 *  AUTH (LOGIN / REGISTER) SHELL
 * ══════════════════════════════════════════════ */
.wamc-auth-shell {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
    overflow: hidden;
    padding: 40px;
}

.wamc-auth-logo {
    text-align: center;
    font-size: 48px;
    color: var(--app-accent);
    margin-bottom: 20px;
}

.wamc-auth-logo img {
    max-width: 100px;
    height: auto;
}

.wamc-auth-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 10px;
}

.wamc-auth-subtitle {
    text-align: center;
    font-size: 15px;
    color: #64748b;
    margin-bottom: 40px;
}

.wamc-auth-shell form {
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wamc-auth-forms-wrapper > .u-columns {
    display: flex;
    gap: 40px;
    margin: 0;
    padding: 0;
}

.wamc-auth-forms-wrapper > .u-columns > .u-column1,
.wamc-auth-forms-wrapper > .u-columns > .u-column2 {
    flex: 1;
    width: 100%;
}

.wamc-auth-footer {
    text-align: center;
    font-size: 13px;
    color: #94a3b8;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f1f5f9;
}

.wamc-auth-shell form p {
    margin-bottom: 20px;
}

.wamc-auth-shell form label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}

.wamc-auth-shell form input[type="text"],
.wamc-auth-shell form input[type="email"],
.wamc-auth-shell form input[type="password"] {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    font-size: 15px;
    transition: all 0.3s ease;
}

.wamc-auth-shell form input[type="text"]:focus,
.wamc-auth-shell form input[type="email"]:focus,
.wamc-auth-shell form input[type="password"]:focus {
    border-color: var(--app-accent);
    background: #fff;
    box-shadow: 0 0 0 3px var(--app-accent-ultra-light);
    outline: none;
}

.wamc-auth-shell form button[type="submit"] {
    width: 100%;
    padding: 14px;
    background: var(--app-accent);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
}

.wamc-auth-shell form button[type="submit"]:hover {
    background: var(--app-accent-dark);
}

.wamc-auth-shell .woocommerce-privacy-policy-text {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 20px;
}

.wamc-auth-shell .woocommerce-privacy-policy-text a {
    color: var(--app-accent);
}

@media (max-width: 768px) {
    .wamc-auth-shell {
        margin: 20px 15px;
        padding: 30px 20px;
    }
    
    .wamc-auth-forms-wrapper > .u-columns {
        flex-direction: column;
        gap: 0;
    }
}


/* ================================================================
   STITCH MCP - MODERN UI INJECTIONS (PC & App-Like)
   ================================================================ */

/* Enhanced Sidebar for Desktop */
@media (min-width: 992px) {
    .wamc-shell {
        box-shadow: 0 30px 80px rgba(0, 0, 0, 0.08); /* Stronger standalone "app" shadow */
        border: 1px solid rgba(0,0,0,0.03);
        margin: 40px auto;
        min-height: 85vh;
        border-radius: var(--app-radius);
    }
    
    .wamc-nav {
        width: 260px;
        padding: 40px 20px;
        background: rgba(252, 249, 248, 0.6); /* surface-low but glass */
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-right: 1px solid rgba(0, 0, 0, 0.03);
    }

    .wamc-nav-item {
        font-family: 'Inter', sans-serif;
        font-size: 16px;
        padding: 16px 20px;
        margin-bottom: 8px;
        border-radius: var(--app-radius-sm);
    }
    
    .wamc-nav-item.active {
        box-shadow: none; /* remove native line */
        background: var(--app-card-bg);
        border: 1px solid rgba(0, 0, 0, 0.03);
        box-shadow: 0 8px 24px rgba(28,27,27,0.05); /* ambient shadow */
    }
    
    .wamc-content {
        padding: 50px 60px;
        background: var(--app-surface);
    }
    
    /* Stats Grid refinement */
    .wamc-stats-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 on PC */
        gap: 24px;
    }
    
    /* Reward Cards structural fix for large screens */
    .wamc-rewards-grid {
        grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
        gap: 24px;
    }
}

/* Micro animations & Glassmorphism across app */
.wamc-btn-primary {
    background: linear-gradient(135deg, var(--app-accent), var(--app-accent-container));
    box-shadow: 0 12px 24px rgba(0, 97, 165, 0.25);
    border: none;
    border-radius: var(--app-radius-sm);
    border: 1px solid rgba(255,255,255,0.2);
}

.wamc-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(0, 97, 165, 0.35);
}

.wamc-card {
    background: var(--app-card-bg);
    border: 1px solid var(--app-card-border);
}

/* Smooth input fields */
.wamc-card input[type="text"],
.wamc-card input[type="email"],
.wamc-card input[type="password"],
.wamc-card input[type="tel"] {
    background: var(--app-surface-low);
    border: 1px solid transparent;
    border-radius: var(--app-radius-sm);
    box-shadow: none;
    transition: all 0.3s ease;
}

.wamc-card input[type="text"]:focus,
.wamc-card input[type="email"]:focus {
    background: var(--app-surface);
    border-color: var(--app-accent-light);
    box-shadow: 0 0 0 4px var(--app-accent-ultra-light);
}

