/* ========================================
   DESIGN SYSTEM — Light Blue Healthcare
   ======================================== */

:root {
    /* Color Palette */
    --bg-primary: #F0F4F8;
    --bg-white: #FFFFFF;
    --bg-card: #FFFFFF;
    --bg-hover: #F8FAFC;

    --blue-50: #EFF6FF;
    --blue-100: #DBEAFE;
    --blue-200: #BFDBFE;
    --blue-300: #93C5FD;
    --blue-400: #60A5FA;
    --blue-500: #3B82F6;
    --blue-600: #2563EB;
    --blue-700: #1D4ED8;

    --cyan-400: #22D3EE;
    --cyan-500: #06B6D4;

    --green-50: #ECFDF5;
    --green-100: #D1FAE5;
    --green-400: #34D399;
    --green-500: #10B981;
    --green-600: #059669;

    --amber-50: #FFFBEB;
    --amber-400: #FBBF24;
    --amber-500: #F59E0B;

    --red-50: #FEF2F2;
    --red-400: #F87171;
    --red-500: #EF4444;

    --text-primary: #1E293B;
    --text-secondary: #64748B;
    --text-tertiary: #94A3B8;
    --text-white: #FFFFFF;

    --border-light: #E2E8F0;
    --border-medium: #CBD5E1;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.08), 0 8px 10px -6px rgba(0,0,0,0.04);
    --shadow-blue: 0 4px 14px -2px rgba(59, 130, 246, 0.3);
    --shadow-green: 0 4px 14px -2px rgba(16, 185, 129, 0.3);

    /* Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========== RESET & BASE ========== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* ========== MAIN ========== */
.main {
    width: 100%;
    max-width: 520px;
    margin: 0 auto;
    padding: 24px 16px 40px;
    min-height: 100vh;
}

.page-header {
    margin-bottom: 20px;
    text-align: center;
}

.page-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.025em;
}

.page-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ========== SINGLE EXAM CARD WRAPPER ========== */
.exam-single-wrapper {
    width: 100%;
}


/* ========== EXAM CARD ========== */
.exam-card {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    transition: var(--transition-base);
    position: relative;
    animation: cardSlideUp 0.6s ease-out backwards;
}

.exam-card:nth-child(1) { animation-delay: 0.1s; }
.exam-card:nth-child(2) { animation-delay: 0.2s; }
.exam-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes cardSlideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exam-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

/* Card Badge */
.card-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0 0 var(--radius-md) 0;
    letter-spacing: 0.02em;
}

.badge-pending {
    background: var(--amber-50);
    color: var(--amber-500);
    border-bottom: 2px solid var(--amber-400);
}

.badge-paid {
    background: var(--green-50);
    color: var(--green-500);
    border-bottom: 2px solid var(--green-400);
}

/* Card Header */
.card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 24px 0;
}

.exam-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.exam-icon.generic {
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    color: var(--blue-600);
}

.exam-icon.blood {
    background: linear-gradient(135deg, #FEE2E2, #FECACA);
    color: var(--red-500);
}

.exam-icon.xray {
    background: linear-gradient(135deg, var(--blue-100), var(--blue-200));
    color: var(--blue-600);
}

.exam-icon.urine {
    background: linear-gradient(135deg, var(--green-100), #A7F3D0);
    color: var(--green-600);
}

.exam-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
}

.exam-lab {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* Card Details */
.card-details {
    padding: 18px 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 0.8125rem;
    color: var(--text-tertiary);
    font-weight: 400;
}

.detail-value {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 500;
}

.status-ready {
    display: flex;
    align-items: center;
    gap: 6px;
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--amber-400);
    animation: statusBlink 2s ease-in-out infinite;
}

.status-dot.dot-green {
    background: var(--green-400);
    animation: none;
}

@keyframes statusBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* ========== BLURRED REPORT PREVIEW ========== */
.report-preview-wrapper {
    position: relative;
    margin: 0 18px 16px;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid var(--border-light);
    background: #FFFFFF;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

/* PDF Toolbar */
.pdf-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    background: #3B3B3B;
    border-bottom: 1px solid #2a2a2a;
}

.pdf-toolbar-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pdf-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pdf-filename {
    font-size: 0.6875rem;
    color: #D4D4D4;
    font-weight: 500;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pdf-pages {
    font-size: 0.625rem;
    color: #9CA3AF;
    font-family: 'Inter', sans-serif;
    white-space: nowrap;
}

/* PDF Document Area */
.pdf-document-area {
    position: relative;
    background: #525659;
    padding: 10px 8px;
    height: 240px;
    overflow: hidden;
}

.report-preview-blur {
    filter: blur(4px);
    opacity: 0.7;
    padding: 14px 16px;
    pointer-events: none;
    user-select: none;
    height: 100%;
    overflow: hidden;
    background: #FFFFFF;
    border-radius: 2px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

/* Lock overlay now covers just the document area */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}


/* Simulated Report Text */
.fake-report-text {
    font-family: 'Times New Roman', Georgia, serif;
    font-size: 0.7rem;
    color: #334155;
    line-height: 1.5;
}

.report-hospital {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    color: #1E3A5F;
    letter-spacing: 0.05em;
}

.report-subtitle {
    font-size: 0.6rem;
    text-align: center;
    color: #64748B;
    margin-bottom: 4px;
}

.report-hr {
    border: none;
    border-top: 1px solid #CBD5E1;
    margin: 6px 0;
}

.report-section-title {
    font-size: 0.7rem;
    font-weight: 700;
    color: #1E3A5F;
    margin-bottom: 4px;
    letter-spacing: 0.03em;
}

.report-line {
    font-size: 0.65rem;
    color: #475569;
    margin-bottom: 2px;
}

.report-line strong {
    color: #1E293B;
}

.report-table {
    width: 100%;
    border-collapse: collapse;
    margin: 6px 0;
    font-size: 0.6rem;
}

.report-table th {
    background: #F1F5F9;
    text-align: left;
    padding: 3px 6px;
    font-weight: 600;
    color: #1E3A5F;
    border: 1px solid #E2E8F0;
    font-size: 0.6rem;
}

.report-table td {
    padding: 2px 6px;
    border: 1px solid #E2E8F0;
    color: #475569;
    font-size: 0.6rem;
}

.report-table tbody tr:nth-child(even) {
    background: #F8FAFC;
}

.report-signature {
    font-size: 0.65rem;
    font-weight: 600;
    color: #1E293B;
    text-align: center;
    margin-top: 4px;
}

.report-signature-sub {
    font-size: 0.55rem;
    color: #64748B;
    text-align: center;
}


/* Lock Overlay (on PDF area) */
.lock-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(82, 86, 89, 0.65);
    backdrop-filter: blur(2px);
}

.lock-icon-big {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    border: 2px solid rgba(255, 255, 255, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
    animation: lockBounce 3s ease-in-out infinite;
}

@keyframes lockBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.lock-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #FFFFFF;
}

.lock-subtext {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 2px;
    text-align: center;
    max-width: 240px;
}

/* Card Footer */
.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px 24px;
    border-top: 1px solid var(--border-light);
}

.price-tag {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.6875rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 500;
}

.price-value {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.price-value.paid-value {
    color: var(--green-500);
    text-decoration: line-through;
    opacity: 0.6;
    font-size: 1.125rem;
}

/* Buttons */
.btn-pay {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--green-500), #059669);
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-green);
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn-pay::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, transparent, rgba(255,255,255,0.2));
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-pay:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -3px rgba(16, 185, 129, 0.4);
}

.btn-pay:hover::before {
    opacity: 1;
}

.btn-pay:active {
    transform: translateY(0);
}

.btn-view {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--blue-500), var(--blue-600));
    color: var(--text-white);
    border: none;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    box-shadow: var(--shadow-blue);
    font-family: inherit;
}

.btn-view:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px -3px rgba(59, 130, 246, 0.4);
}

.btn-view:active {
    transform: translateY(0);
}

/* ========== UNLOCKED CARD ========== */
.exam-card.unlocked {
    border-color: var(--green-200, #A7F3D0);
}

.exam-card.unlocked .card-header::after {
    display: none;
}

/* ========== MODAL OVERLAY ========== */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-base);
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal-content {
    background: var(--bg-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    max-width: 460px;
    width: 100%;
    padding: 32px;
    position: relative;
    transform: translateY(30px) scale(0.95);
    transition: var(--transition-slow);
    max-height: 92vh;
    overflow-y: auto;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.modal-close:hover {
    background: var(--red-50);
    color: var(--red-500);
}

/* Modal Header */
.modal-header {
    text-align: center;
    margin-bottom: 24px;
}

.pix-logo {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #E0F7F5, #B2F0E8);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    animation: pixLogoFloat 3s ease-in-out infinite;
}

@keyframes pixLogoFloat {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-4px) rotate(2deg); }
}

.modal-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* Exam Summary */
.modal-exam-summary {
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 24px;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}

.summary-row span {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.summary-row strong {
    font-size: 0.8125rem;
    color: var(--text-primary);
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: var(--border-light);
    margin: 8px 0;
}

.summary-row.total strong {
    font-size: 1.125rem;
    color: var(--green-600);
    font-weight: 800;
}

.total-price {
    background: linear-gradient(135deg, var(--green-500), var(--green-600));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* QR Code Area */
.qr-code-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 20px;
}

.qr-code {
    width: 200px;
    height: 200px;
    background: white;
    border: 2px solid var(--border-light);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    position: relative;
    overflow: hidden;
}

.qr-code canvas {
    width: 100% !important;
    height: 100% !important;
}

.qr-timer {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 12px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.qr-timer strong {
    color: var(--amber-500);
    font-weight: 700;
}

/* PIX Code Section */
.pix-code-section {
    margin-bottom: 24px;
}

.pix-code-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 8px;
}

.pix-code-field {
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition-fast);
}

.pix-code-field:focus-within {
    border-color: var(--blue-400);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.pix-code-input {
    flex: 1;
    padding: 12px 14px;
    border: none;
    background: transparent;
    font-size: 0.75rem;
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    outline: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.btn-copy {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: var(--blue-500);
    color: var(--text-white);
    border: none;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    font-family: inherit;
    white-space: nowrap;
}

.btn-copy:hover {
    background: var(--blue-600);
}

.btn-copy.copied {
    background: var(--green-500);
}

/* Modal Loading State */
.modal-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 60px 20px;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
}

.spinner-large {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-light);
    border-top-color: var(--blue-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

/* Payment Status Indicator */
.payment-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--amber-50);
    border-radius: var(--radius-full);
    margin-bottom: 18px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--amber-500);
}

.status-indicator {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: relative;
}

.status-indicator.waiting {
    background: var(--amber-400);
}

.status-indicator.paid {
    background: var(--green-500);
}

.status-indicator.expired {
    background: var(--red-400);
}

.status-pulse {
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    border: 2px solid var(--amber-400);
    animation: pulseRing 2s ease-in-out infinite;
}

.status-indicator.paid .status-pulse {
    border-color: var(--green-500);
    animation: none;
}

.status-indicator.expired .status-pulse {
    border-color: var(--red-400);
    animation: none;
}

@keyframes pulseRing {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.8); opacity: 0; }
}

/* Modal Success State */
.modal-success {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 60px 20px;
    text-align: center;
    animation: successPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes successPop {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-400), var(--green-500));
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 8px 24px -4px rgba(16, 185, 129, 0.4);
}

.success-title {
    font-size: 1.375rem;
    font-weight: 800;
    color: var(--text-primary);
}

.success-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Secure Badge */
.secure-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
    padding-top: 16px;
    border-top: 1px solid var(--border-light);
    margin-top: 18px;
}

/* ========== TOAST ========== */
.toast {
    position: fixed;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: var(--text-primary);
    color: var(--text-white);
    padding: 12px 24px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    font-weight: 500;
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    opacity: 0;
    transition: var(--transition-base);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

/* ========== SCROLLBAR ========== */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: var(--border-medium);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-tertiary);
}

/* ========== MOBILE-FIRST DEFAULTS ========== */
.exam-card {
    border-radius: var(--radius-lg);
}

.card-header {
    padding: 16px 18px 0;
}

.card-details {
    padding: 14px 18px;
}

.report-preview-wrapper {
    margin: 0 18px 16px;
}

.card-footer {
    padding: 14px 18px 20px;
    flex-direction: column;
    gap: 14px;
    align-items: stretch;
}

.card-footer .price-tag {
    text-align: center;
}

.btn-pay, .btn-view {
    justify-content: center;
    padding: 16px 24px;
    font-size: 1rem;
    border-radius: var(--radius-md);
}

.modal-content {
    padding: 24px 20px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    max-height: 95vh;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    max-width: 100%;
    border-radius: 24px 24px 0 0;
}

.modal-overlay {
    align-items: flex-end;
    padding: 0;
}

.modal-overlay.active .modal-content {
    transform: translateY(0) scale(1);
}

.pix-steps {
    gap: 4px;
}

.step p {
    font-size: 0.6875rem;
    max-width: 90px;
}

.qr-code {
    width: 200px;
    height: 200px;
}

/* ========== DESKTOP ENHANCEMENTS ========== */
@media (min-width: 520px) {
    .main {
        padding: 40px 24px 60px;
    }

    .page-title {
        font-size: 1.625rem;
    }

    .exam-card {
        border-radius: var(--radius-xl);
    }

    .card-header {
        padding: 20px 24px 0;
    }

    .card-details {
        padding: 18px 24px;
    }

    .report-preview-wrapper {
        margin: 0 24px 20px;
    }

    .card-footer {
        flex-direction: row;
        padding: 16px 24px 24px;
        align-items: center;
    }

    .card-footer .price-tag {
        text-align: left;
    }

    .btn-pay, .btn-view {
        border-radius: var(--radius-full);
        padding: 12px 24px;
        font-size: 0.875rem;
    }

    .modal-overlay {
        align-items: center;
        padding: 24px;
    }

    .modal-content {
        position: relative;
        bottom: auto;
        left: auto;
        right: auto;
        max-width: 460px;
        border-radius: var(--radius-xl);
        padding: 32px;
    }

    .qr-code {
        width: 220px;
        height: 220px;
    }

    .step p {
        font-size: 0.75rem;
        max-width: 100px;
    }
}

