/* start redeem points----------------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Sora:wght@400;500;600;700&display=swap');

.ezw-rp-wrap * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.ezw-rp-wrap {
    font-family: 'Sora', sans-serif;
    color: #1a1f3a;
    padding: 20px 0;
}

.ezw-rp-wrap .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.ezw-rp-wrap .redemption-header {
    margin-bottom: 40px;
    animation: ezwRpSlideDown 0.6s ease-out;
}

.ezw-rp-wrap .redemption-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #2563eb 0%, #1e40af 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ezw-rp-wrap .redemption-header p {
    color: #6b7280;
    font-size: 1rem;
    font-weight: 300;
}

/* Grid */
.ezw-rp-wrap .redemption-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 24px;
    margin-bottom: 32px;
    animation: ezwRpFadeIn 0.8s ease-out 0.1s both;
}

@media (max-width: 768px) {
    .ezw-rp-wrap .redemption-grid {
        grid-template-columns: 1fr;
    }
}

/* Cards */
.ezw-rp-wrap .card {
    background: white;
    border-radius: 16px;
    padding: 28px;
    border: 1px solid #e5e7eb;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    animation: ezwRpCardFloat 0.6s ease-out backwards;
}

.ezw-rp-wrap .card:nth-child(1) {
    animation-delay: 0.2s;
}

.ezw-rp-wrap .card:nth-child(2) {
    animation-delay: 0.3s;
}

.ezw-rp-wrap .card:nth-child(3) {
    animation-delay: 0.4s;
}

.ezw-rp-wrap .card:nth-child(4) {
    animation-delay: 0.5s;
}

.ezw-rp-wrap .card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #3b82f6, #1e40af);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ezw-rp-wrap .card:hover {
    border-color: #d1d5db;
    box-shadow: 0 20px 40px rgba(37, 99, 235, .08);
    transform: translateY(-4px);
}

.ezw-rp-wrap .card:hover::before {
    opacity: 1;
}

.ezw-rp-wrap .card-label {
    font-size: .875rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ezw-rp-wrap .card-icon {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: .75rem;
    font-weight: 600;
}

.ezw-rp-wrap .card-value {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1f3a;
    margin-bottom: 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ezw-rp-wrap .card-value span {
    font-size: .9rem;
    color: #9ca3af;
    font-weight: 400;
}

.ezw-rp-wrap .card-meta {
    font-size: .875rem;
    color: #9ca3af;
    font-weight: 400;
}

.ezw-rp-wrap .card-progress {
    margin-top: 16px;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    overflow: hidden;
}

.ezw-rp-wrap .card-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #2563eb, #3b82f6);
    border-radius: 3px;
    transition: width .6s ease-out;
}

/* Converter */
.ezw-rp-wrap .converter-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    animation: ezwRpSlideUp 0.6s ease-out 0.3s both;
}

.ezw-rp-wrap .converter-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #1a1f3a;
}

.ezw-rp-wrap .converter-form {
    display: grid;
    gap: 24px;
}

.ezw-rp-wrap .form-group {
    display: grid;
    gap: 8px;
}

.ezw-rp-wrap .form-label {
    font-size: .95rem;
    font-weight: 500;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ezw-rp-wrap .form-label span:last-child {
    font-size: .875rem;
    color: #9ca3af;
    font-weight: 400;
}

.ezw-rp-wrap .input-wrapper {
    position: relative;
    display: flex;
    gap: 12px;
    align-items: center;
}

.ezw-rp-wrap .form-input {
    flex: 1;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    color: #1a1f3a;
    font-weight: 500;
    transition: all .3s ease;
}

.ezw-rp-wrap .form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
}

.ezw-rp-wrap .form-input::placeholder {
    color: #d1d5db;
}

.ezw-rp-wrap .input-unit {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 0 16px;
    background: #f3f4f6;
    border-radius: 10px;
    font-weight: 600;
    color: #6b7280;
    font-size: .95rem;
    height: 48px;
    min-width: 80px;
    border: 2px solid transparent;
    transition: all .3s ease;
}

.ezw-rp-wrap .exchange-rate {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .9rem;
    color: #166534;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.ezw-rp-wrap .exchange-rate strong {
    font-weight: 600;
}

/* Conversion result */
.ezw-rp-wrap .conversion-result {
    background: linear-gradient(135deg, #eff6ff, #f0f9ff);
    padding: 20px;
    border-radius: 12px;
    border: 2px dashed #2563eb;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    margin: 8px 0 0;
}

@media (max-width: 480px) {
    .ezw-rp-wrap .conversion-result {
        grid-template-columns: 1fr;
    }
}

.ezw-rp-wrap .result-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ezw-rp-wrap .result-label {
    font-size: .85rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .3px;
}

.ezw-rp-wrap .result-value {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: #2563eb;
}

.ezw-rp-wrap .result-arrow {
    font-size: 1.5rem;
    color: #2563eb;
    opacity: .4;
    animation: ezwRpPulse 2s ease-in-out infinite;
}

/* Buttons */
.ezw-rp-wrap .button-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 28px;
}

@media (max-width: 480px) {
    .ezw-rp-wrap .button-group {
        grid-template-columns: 1fr;
    }
}

.ezw-rp-wrap .btn {
    padding: 14px 24px;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all .3s ease;
    text-transform: uppercase;
    letter-spacing: .5px;
    position: relative;
    overflow: hidden;
}

.ezw-rp-wrap .btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, .2);
    transition: left .4s ease;
}

.ezw-rp-wrap .btn:hover::before {
    left: 100%;
}

.ezw-rp-wrap .btn-primary {
    background: linear-gradient(135deg, #2563eb, #1e40af);
    color: white;
    box-shadow: 0 10px 25px rgba(37, 99, 235, .3);
}

.ezw-rp-wrap .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, .4);
}

.ezw-rp-wrap .btn-primary:active {
    transform: translateY(0);
}

.ezw-rp-wrap .btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 2px solid #e5e7eb;
}

.ezw-rp-wrap .btn-secondary:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}

.ezw-rp-wrap .btn:disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none !important;
}

/* Alerts */
.ezw-rp-wrap .alert-box {
    display: none;
    padding: 16px;
    border-radius: 8px;
    margin-top: 20px;
    animation: ezwRpSlideDown .3s ease-out;
}

.ezw-rp-wrap .alert-box.show {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ezw-rp-wrap .alert-success {
    background: #f0fdf4;
    border-left: 4px solid #22c55e;
    color: #166534;
}

.ezw-rp-wrap .alert-error {
    background: #fef2f2;
    border-left: 4px solid #ef4444;
    color: #991b1b;
}

.ezw-rp-wrap .alert-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    flex-shrink: 0;
}

.ezw-rp-wrap .alert-success .alert-icon {
    background: #22c55e;
    color: white;
}

.ezw-rp-wrap .alert-error .alert-icon {
    background: #ef4444;
    color: white;
}

.ezw-rp-wrap .info-box {
    background: #fef3c7;
    border-left: 4px solid #f59e0b;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: .875rem;
    color: #92400e;
    margin-bottom: 20px;
}

.ezw-rp-wrap .conversion-tooltip {
    font-size: .85rem;
    color: #6b7280;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f9fafb;
    border-radius: 8px;
    display: none;
}

.ezw-rp-wrap .conversion-tooltip.show {
    display: block;
}

/* ── History Section ─────────────────────────────────────────────────── */
.ezw-rp-wrap .history-section {
    background: white;
    border-radius: 16px;
    padding: 32px;
    border: 1px solid #e5e7eb;
    margin-top: 32px;
    animation: ezwRpSlideUp 0.6s ease-out 0.5s both;
}

.ezw-rp-wrap .history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.ezw-rp-wrap .history-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1a1f3a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ezw-rp-wrap .history-badge {
    background: linear-gradient(135deg, #2563eb, #3b82f6);
    color: white;
    font-size: .75rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    font-family: 'Outfit', sans-serif;
}

.ezw-rp-wrap .history-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.ezw-rp-wrap .history-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .9rem;
}

.ezw-rp-wrap .history-table thead th {
    background: linear-gradient(135deg, #f8faff, #eff6ff);
    padding: 14px 20px;
    text-align: left;
    font-size: .78rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid #e5e7eb;
    white-space: nowrap;
}

.ezw-rp-wrap .history-table tbody tr {
    border-bottom: 1px solid #f3f4f6;
    transition: background .2s ease;
}

.ezw-rp-wrap .history-table tbody tr:last-child {
    border-bottom: none;
}

.ezw-rp-wrap .history-table tbody tr:hover {
    background: #f9fafb;
}

.ezw-rp-wrap .ezw-rp-row-even td {
    background: transparent;
}

.ezw-rp-wrap .ezw-rp-row-odd td {
    background: #fafbff;
}

.ezw-rp-wrap .history-table tbody td {
    padding: 14px 20px;
    color: #374151;
    vertical-align: middle;
}

/* ID column */
.ezw-rp-wrap .history-table tbody td:first-child {
    font-family: 'Outfit', sans-serif;
    font-size: .8rem;
    font-weight: 600;
    color: #9ca3af;
}

/* Points column */
.ezw-rp-wrap .history-table .col-points {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1f3a;
}

/* Amount column */
.ezw-rp-wrap .history-table .col-amount {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #16a34a;
}

/* Date column */
.ezw-rp-wrap .history-table .col-date {
    color: #6b7280;
    font-size: .85rem;
    white-space: nowrap;
}

/* Empty state */
.ezw-rp-wrap .ezw-rp-empty td {
    text-align: center;
    padding: 48px 20px !important;
    color: #9ca3af;
    font-style: italic;
}

.ezw-rp-wrap .history-spinner {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    color: #6b7280;
    font-size: .9rem;
}

.ezw-rp-wrap .history-spinner.show {
    display: flex;
}

.ezw-rp-wrap .spinner-ring {
    width: 20px;
    height: 20px;
    border: 3px solid #e5e7eb;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: ezwRpSpin .7s linear infinite;
}

/* Status pill in history */
.ezw-rp-wrap .pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .75rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
}

.ezw-rp-wrap .pill-success {
    background: #f0fdf4;
    color: #16a34a;
}

/* Animations */
@keyframes ezwRpSlideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ezwRpSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ezwRpFadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes ezwRpCardFloat {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes ezwRpPulse {

    0%,
    100% {
        opacity: .4;
    }

    50% {
        opacity: 1;
    }
}

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


/* end redeem points */