/* --- SCOPED CSS: Will not affect other pages --- */
/*     .rev-page-container {
        padding: 24px;
        background-color: #f4f7f8;
        min-height: 100vh;
    } */
.rev-wrapper {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #364153;
    display: flex;
    flex-direction: column;
    gap: 24px; /* Perfect uniform spacing between all main cards */
    width: 100%;
    max-width: 1596px;
    margin: 0 auto;
    -webkit-font-smoothing: antialiased;
}

/* --- Status Banner --- */
.rev-banner {
    background-color: #f2fbf5;
    border: 1px solid #e5f7eb;
    border-radius: 8px;
    padding: 16px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.rev-status-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.rev-dot-halo {
    width: 20px;
    height: 20px;
    background-color: #d1fae5;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.rev-dot {
    width: 10px;
    height: 10px;
    background-color: #6ee7b7;
    border-radius: 50%;
}

.rev-banner-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

    .rev-banner-text h2 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #374151;
    }

    .rev-banner-text p {
        margin: 0;
        font-size: 13px;
        color: #8792a2;
    }

.rev-banner-icon {
    color: #a7f3d0;
    flex-shrink: 0;
}

/* --- Scheme Details Card --- */
.rev-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px 32px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.rev-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 16px;
}

.rev-header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.rev-header-icon {
    background-color: #ecfdf5;
    color: #10b981;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rev-header-left h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #374151;
}

.rev-badges {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.rev-badge-applicable {
    display: flex;
    align-items: center;
    border: 1px solid #10b981;
    border-radius: 20px;
    padding: 3px 3px 3px 12px;
    gap: 8px;
}

.rev-badge-label {
    font-size: 11px;
    font-weight: 600;
    color: #065f46;
    display: flex;
    align-items: center;
    gap: 6px;
    letter-spacing: 0.5px;
}

.rev-badge-pill {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 12px;
    letter-spacing: 0.5px;
}

.rev-badge-active {
    background-color: #22c55e;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    padding: 7px 16px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rev-title-row {
    display: flex;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

    .rev-title-row h1 {
        margin: 0;
        font-size: 22px;
        font-weight: 700;
        color: #374151;
    }

.rev-date {
    font-size: 12px;
    color: #9ca3af;
    font-weight: 500;
}

.rev-desc-box {
    background-color: #f7fbf9;
    border-left: 2px solid #059669;
    border-radius: 8px;
    padding: 16px 20px;
}

    .rev-desc-box p {
        margin: 0;
        font-size: 13px;
        line-height: 1.6;
        color: #4b5563;
    }

/* --- Middle Grid Layout --- */
.rev-middle-grid {
    display: grid;
    grid-template-columns: 1fr 2fr; /* Exact 1:2 ratio from Figma */
    gap: 24px;
    width: 100%;
}

/* --- Campine Time Line Card --- */
.rev-timeline-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.rev-timeline-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

    .rev-timeline-header svg {
        color: #059669;
    }

    .rev-timeline-header h3 {
        margin: 0;
        font-size: 16px;
        font-weight: 600;
        color: #4b5563;
    }

.rev-timeline-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.rev-date-box {
    flex: 1;
    background-color: #f4fbf7;
    border: 1px solid #e8f5ed;
    border-radius: 8px;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rev-date-label {
    font-size: 11px;
    font-weight: 600;
    color: #4b5563;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.rev-date-value {
    font-size: 18px;
    font-weight: 700;
    color: #064e3b;
}

.rev-date-arrow {
    color: #6ee7b7;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* --- Reward Showcase Card --- */
.rev-reward-card {
    position: relative;
    background: linear-gradient(100deg, #ffffff 0%, #e6fcf0 100%);
    border: 1px solid #d1fae5;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    align-items: stretch;
}

.rev-reward-bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.rev-shape-circle-1 {
    position: absolute;
    top: -40px;
    right: 15%;
    width: 120px;
    height: 120px;
    background-color: rgba(167, 243, 208, 0.3);
    border-radius: 50%;
}

.rev-shape-circle-2 {
    position: absolute;
    bottom: -60px;
    right: 25%;
    width: 200px;
    height: 200px;
    background-color: rgba(167, 243, 208, 0.2);
    border-radius: 50%;
}

.rev-shape-gift {
    position: absolute;
    bottom: -5px;
    right: -10px;
    width: 140px;
    height: auto;
    opacity: 0.9;
}

.rev-reward-curve-overlay {
    position: absolute;
    top: -50%;
    left: 120px;
    width: 400px;
    height: 200%;
    background-color: #ffffff;
    border-radius: 50%;
    z-index: 1;
    opacity: 0.5;
}

.rev-reward-img-container {
    width: 160px;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
}

.rev-reward-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.rev-reward-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 32px 32px 32px 40px;
    position: relative;
    z-index: 3;
}

.rev-reward-badge {
    background-color: #10b981;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 6px 14px;
    border-radius: 20px;
    width: fit-content;
    margin-bottom: 12px;
}

.rev-reward-title {
    margin: 0 0 8px 0;
    font-size: 24px;
    font-weight: 700;
    color: #065f46;
}

.rev-reward-desc {
    margin: 0;
    font-size: 13px;
    line-height: 1.6;
    color: #6b7280;
    max-width: 90%;
}

/* --- Product Rules Card & Table --- */
.rev-product-rules-card {
    background-color: #107248; /* Exact dark green */
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

    .rev-product-rules-card h3 {
        color: #ffffff;
        font-size: 16px;
        font-weight: 600;
        margin: 0 0 20px 0;
    }

.rev-table-wrapper {
    background-color: #ffffff;
    border-radius: 8px;
    overflow-x: auto;
    overflow-y: hidden;
}

.rev-rules-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

    .rev-rules-table th {
        background-color: #cbe8d7; /* Soft mint */
        color: #115e3c; /* Dark text matching header */
        font-size: 13px;
        font-weight: 600;
        padding: 16px;
        text-align: center;
    }

    .rev-rules-table td {
        padding: 16px;
        font-size: 13px;
        color: #374151;
        text-align: center;
        border-bottom: 1px solid #f3f4f6;
        vertical-align: middle;
    }

    .rev-rules-table tr:last-child td {
        border-bottom: none;
    }

.rev-qty-pill {
    background-color: #f3f4f6;
    color: #16a34a;
    padding: 6px 16px;
    border-radius: 6px;
    font-weight: 600;
    display: inline-block;
}

.rev-action-icons {
    display: flex;
    justify-content: center;
    gap: 16px;
    align-items: center;
}

.rev-icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s ease;
}

    .rev-icon-btn:hover {
        opacity: 0.6;
    }

.rev-delete-btn {
    color: #ef4444;
}

.rev-edit-btn {
    color: #3b82f6;
}

/* --- Bottom Grid Layout --- */
.rev-bottom-grid {
    display: grid;
    grid-template-columns: 1fr 1.6fr; /* Ratio to match Figma */
    gap: 24px;
    width: 100%;
}

.rev-bottom-card {
    background-color: #ffffff;
    border: 1px solid #f3f4f6;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
    display: flex;
    flex-direction: column;
}

.rev-section-title {
    font-size: 16px;
    font-weight: 600;
    color: #6b7280;
    margin: 0 0 20px 0;
}

/* Target Segment Box */
.rev-segment-box {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0 20px;
    flex: 1; /* Stretch to fill card if needed */
}

.rev-segment-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e5e7eb;
    flex-wrap: wrap;
    gap: 12px;
}

    .rev-segment-row:last-child {
        border-bottom: none;
    }

.rev-segment-label {
    font-size: 13px;
    font-weight: 500;
    color: #4b5563;
}

.rev-segment-pills {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.rev-pill-green {
    background-color: #d1fae5;
    color: #065f46;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

.rev-pill-blue {
    background-color: #e0f2fe;
    color: #1e40af;
    border: 1px solid #bfdbfe;
    font-size: 12px;
    font-weight: 500;
    padding: 4px 12px;
    border-radius: 20px;
}

/* Review Checklist */
.rev-checklist-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.rev-check-item {
    background-color: #f3f5f4;
    padding: 16px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rev-check-label {
    font-size: 12px;
    color: #065f46;
    font-weight: 500;
}

.rev-check-value {
    font-size: 20px;
    font-weight: 700;
    color: #064e3b;
}

.rev-check-sub {
    font-size: 12px;
    color: #9ca3af;
}

.rev-check-footer {
    background-color: #1b4f31; /* Deep green */
    border-radius: 8px;
    padding: 20px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.rev-footer-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.rev-footer-label {
    font-size: 12px;
    color: #ffffff;
    font-weight: 500;
}

.rev-footer-value {
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
}

/* --- Action Buttons --- */
.rev-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 16px;
    width: 100%;
}

.rev-btn {
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.rev-btn-outline {
    background-color: transparent;
    border: 1px solid #10b981;
    color: #059669;
}

    .rev-btn-outline:hover {
        background-color: #f0fdf4;
    }

.rev-btn-solid {
    background-color: #3b82f6;
    border: 1px solid #3b82f6;
    color: #ffffff;
}

    .rev-btn-solid:hover {
        background-color: #2563eb;
    }

/* --- Responsive Queries --- */
@media (max-width: 1024px) {
    .rev-middle-grid,
    .rev-bottom-grid {
        grid-template-columns: 1fr;
    }

    .rev-checklist-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    /*  .rev-page-container {
            padding: 12px;
        } */

    .rev-card {
        padding: 20px 16px;
    }

    .rev-banner {
        align-items: flex-start;
    }

    .rev-banner-icon {
        display: none;
    }

    .rev-title-row {
        flex-direction: column;
        gap: 4px;
    }

    .rev-timeline-body {
        flex-direction: column;
        align-items: stretch;
    }

    .rev-date-arrow {
        transform: rotate(90deg);
        padding: 8px 0;
    }

    .rev-reward-card {
        flex-direction: column;
    }

    .rev-reward-img-container {
        width: 100%;
        height: 200px;
    }

    .rev-reward-content {
        padding: 24px;
    }

    .rev-reward-desc {
        max-width: 100%;
    }

    .rev-reward-curve-overlay {
        display: none;
    }

    .rev-segment-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .rev-segment-pills {
        justify-content: flex-start;
    }

    .rev-checklist-grid {
        grid-template-columns: 1fr;
    }

    .rev-check-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .rev-action-row {
        flex-direction: column;
    }

    .rev-btn {
        width: 100%;
        justify-content: center;
    }
}

