/* --- REDEEM LAYOUT --- */
.redeem-section {
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 60px 20px;
    background: #f8f9fa;
}

.redeem-container {
    width: 100%;
    max-width: 550px;
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    border: 1px solid #eee;
}

/* --- STEPPER --- */
.stepper-wrapper {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
    position: relative;
}

.step {
    text-align: center;
    position: relative;
    z-index: 2;
    flex: 1;
}

.circle {
    width: 35px; height: 35px;
    background: #eee;
    color: #999;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: bold;
    margin: 0 auto 8px;
    transition: 0.3s;
}

.label { font-size: 0.8rem; color: #999; font-weight: 600; }

.step.active .circle { background: var(--primary); color: white; }
.step.active .label { color: var(--primary); }

.line {
    flex: 2;
    height: 2px;
    background: #eee;
    margin-top: 17px; /* Align with center of circle */
}

/* --- STEP CONTENT --- */
.step-content { display: none; text-align: center; animation: fadeIn 0.5s; }
.step-content.active { display: block; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

h2 { margin-bottom: 10px; color: #2d3436; }
p { color: #636e72; margin-bottom: 30px; font-size: 0.95rem; }

/* Input Styles */
.input-group {
    position: relative;
    margin-bottom: 20px;
    text-align: left;
}

.input-icon {
    position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888;
}

input {
    width: 100%;
    padding: 14px 15px 14px 45px; /* Space for icon */
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    outline: none;
    transition: 0.3s;
}
input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(0, 112, 186, 0.1); }

/* Buttons */
.btn-full {
    width: 100%;
    background: var(--primary);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.2s;
}
.btn-full:disabled { background: #ccc; cursor: not-allowed; }
.btn-full:hover:not(:disabled) { background: var(--dark); }

.btn-outline {
    width: 100%;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 10px;
}

/* --- LOADER --- */
.scan-loader {
    margin-top: 30px;
    display: none;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    margin: 0 auto 15px;
    animation: spin 1s linear infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* --- CARD REVEAL STYLE --- */
.found-card {
    background: linear-gradient(135deg, #1e1e1e, #333);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 30px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.2);
    text-align: left;
    position: relative;
    overflow: hidden;
}
.found-card::after {
    content: '';
    position: absolute; top: 0; right: 0;
    width: 100px; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1));
    transform: skewX(-20deg);
}
.card-top { display: flex; justify-content: space-between; font-weight: bold; margin-bottom: 30px; text-transform: uppercase; letter-spacing: 1px; }
.card-amount { font-size: 2.5rem; font-weight: 800; margin-bottom: 10px; }
.card-code { font-family: monospace; letter-spacing: 2px; opacity: 0.8; }
.validity { color: #00c851; }

/* --- STEP 2: METHODS --- */
.method-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 30px; }
.method-card {
    border: 1px solid #ddd;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.method-card:hover, .method-card.selected { border-color: var(--primary); background: #f0f8ff; }
.method-icon { font-size: 2rem; margin-bottom: 10px; color: orange; }
.method-card h3 { font-size: 1rem; margin-bottom: 5px; }
.method-card p { font-size: 0.8rem; color: #666; margin: 0; }

.method-inputs { display: none; text-align: left; margin-bottom: 30px; }
.method-inputs label { font-weight: 600; font-size: 0.9rem; display: block; margin-bottom: 8px; }

/* --- MODAL --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.5); z-index: 2000;
    display: none; align-items: center; justify-content: center;
}
.modal-box {
    background: white; width: 90%; max-width: 400px;
    padding: 30px; border-radius: 16px; box-shadow: 0 20px 50px rgba(0,0,0,0.2);
    animation: slideUp 0.3s;
}
@keyframes slideUp { from { transform: translateY(50px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.modal-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; border-bottom: 1px solid #eee; padding-bottom: 10px; }
.modal-header button { background: none; border: none; font-size: 1.2rem; cursor: pointer; }
.summary-row { display: flex; justify-content: space-between; margin-bottom: 12px; font-size: 0.95rem; }
.summary-row.total { border-top: 1px solid #eee; padding-top: 15px; font-weight: 800; font-size: 1.2rem; color: var(--primary); }