:root {
    --brand-50: #f0f9ff;
    --brand-100: #e0f2fe;
    --brand-200: #bae6fd;
    --brand-300: #7dd3fc;
    --brand-500: #0ea5e9;
    --brand-600: #0284c7;
    --brand-700: #0369a1;
    --brand-900: #0c4a6e;
    --slate-50: #f8fafc;
    --slate-100: #f1f5f9;
    --slate-200: #e2e8f0;
    --slate-300: #cbd5e1;
    --slate-400: #94a3b8;
    --slate-500: #64748b;
    --slate-600: #475569;
    --slate-800: #1e293b;
    --slate-900: #0f172a;
    --white: #ffffff;
    --green-100: #dcfce7;
    --green-500: #22c55e;
    --green-600: #16a34a;
    --purple-300: #d8b4fe;
}

/* Global Reset */
*, *::before, *::after {
    box-sizing: border-box;
}

/* Prevent horizontal overflow */
img, video, iframe, embed, object {
    max-width: 100%;
    height: auto;
}

html {
    overflow-x: hidden;
    width: 100%;
}

body {
    background-color: var(--slate-50);
    color: var(--slate-900);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    margin: 0;
    width: 100%;
    max-width: 100vw;
}

body::selection {
    background-color: var(--brand-100);
    color: var(--brand-900);
}

/* Main Content */
.main-content {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 1rem;
    padding-bottom: 2rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
}

@media (min-width: 640px) {
    .main-content {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.safe-area-padding {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
    padding-bottom: max(2rem, env(safe-area-inset-bottom));
}

.hero-grid {
    width: 100%;
    max-width: 80rem;
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-grid {
        grid-template-columns: repeat(12, 1fr);
        gap: 4rem;
    }
}

/* Left Column */
.hero-input-section {
    grid-column: span 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

@media (min-width: 640px) {
    .hero-input-section {
        gap: 1.5rem;
    }
}

@media (min-width: 1024px) {
    .hero-input-section {
        grid-column: span 6;
    }
}

/* Tabs */
.tab-container {
    display: flex;
    padding: 0.25rem;
    background-color: rgba(226, 232, 240, 0.5);
    border-radius: 0.75rem;
    width: 100%;
    margin-bottom: 0.5rem;
}

@media (min-width: 640px) {
    .tab-container {
        width: fit-content;
    }
}

.tab-btn {
    flex: 1;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--slate-500);
    background: none;
    border: none;
    cursor: pointer;
    transition: all 0.15s;
    text-align: center;
}

@media (min-width: 640px) {
    .tab-btn {
        flex: none;
    }
}

.tab-btn:hover {
    color: var(--slate-900);
}

.tab-btn.active {
    font-weight: 600;
    background-color: var(--white);
    color: var(--slate-900);
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Headline */
.hero-header {
    transition: all 0.5s ease-in-out;
}

.hero-headline {
    font-size: 1.875rem;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--slate-900);
    margin-bottom: 1rem;
    line-height: 1.15;
}

@media (min-width: 640px) {
    .hero-headline {
        font-size: 3rem;
    }
}

@media (min-width: 768px) {
    .hero-headline {
        font-size: 3.75rem;
    }
}

.hero-headline span {
    color: var(--brand-600);
    transition: opacity 0.3s ease-in-out;
    white-space: nowrap;
    display: inline-block;
    max-width: 100%;
    overflow-wrap: break-word;
}

@media (max-width: 640px) {
    .hero-headline span {
        white-space: normal;
    }
}

/* Input Card */
.input-card {
    background: rgba(255, 255, 255, 0.25); /* Semi-transparent base for glassmorphism */
    backdrop-filter: blur(30px) saturate(120%); /* The frosted effect */
    -webkit-backdrop-filter: blur(30px) saturate(120%); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.6); /* Crisp light edge */
    border-radius: 1rem;
    padding: 1.25rem;
    width: 100%;
    max-width: 100%;
    margin-top: 0.5rem;
    position: relative;
    overflow: hidden;
    margin-bottom: 2rem; /* Add space for keyboard/navbar */
    box-sizing: border-box;
    
    /* Rich, deep navy shadow with inner glow */
    box-shadow: 
        0 10px 15px -3px rgba(12, 74, 110, 0.1), 
        0 4px 6px -2px rgba(12, 74, 110, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.2); /* Inner glow */
}

/* The "Liquid" Reflection Sheen */
.input-card::before {
    content: '';
    position: absolute;
    top: 0; 
    left: 0; 
    right: 0; 
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 1;
}

@media (min-width: 640px) {
    .input-card {
        padding: 2rem;
    }
}

.loading-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 0.25rem;
    background-color: var(--brand-500);
    width: 0;
    transition: width 1s;
    z-index: 10;
}

.hero-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    position: relative;
    z-index: 2; /* Above the reflection sheen (z-index: 1) */
}

.trust-badge-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.trust-badge-row i {
    width: 1rem;
    height: 1rem;
    color: var(--green-600);
}

/* Value Props */
.value-props {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 0.625rem;
    font-weight: 500;
    color: var(--slate-400);
}

@media (min-width: 640px) {
    .value-props {
        font-size: 0.75rem;
    }
}

.prop-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.prop-item i {
    width: 0.75rem;
    height: 0.75rem;
}

/* Right Column (Visual) */
.hero-visual-section {
    display: none;
}

@media (min-width: 1024px) {
    .hero-visual-section {
        display: block;
        grid-column: span 6;
        position: relative;
        height: 600px;
    }
}

.blob {
    position: absolute;
    width: 18rem;
    height: 18rem;
    border-radius: 9999px;
    mix-blend-mode: multiply;
    filter: blur(48px);
    opacity: 0.2;
}

.blob-1 {
    top: 2.5rem;
    right: 2.5rem;
    background-color: var(--brand-300);
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.blob-2 {
    bottom: 2.5rem;
    left: 2.5rem;
    background-color: var(--purple-300);
    animation: pulse 3s cubic-bezier(0.4, 0, 0.6, 1) infinite;
    animation-delay: 2s;
}

.doc-container {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.5s;
}

.doc-container:hover {
    transform: scale(1.02);
}

.doc-paper {
    background-color: var(--white);
    width: 100%;
    max-width: 420px;
    height: 580px;
    border-radius: 0.125rem;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--slate-200);
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 24px 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

.doc-header {
    height: 5rem;
    border-bottom: 1px solid var(--slate-100);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.5rem;
    background-color: rgba(248, 250, 252, 0.5);
}

.header-text {
    display: flex;
    flex-direction: column;
    text-align: right;
}

.header-title {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    color: var(--slate-800);
    font-size: 0.75rem;
}

.header-subtitle {
    font-family: 'Noto Sans Arabic', sans-serif;
    font-size: 0.625rem;
    color: var(--slate-500);
}

.header-logo {
    width: 2.5rem;
    height: 2.5rem;
    border: 2px solid var(--slate-200);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.5;
}

.header-logo-inner {
    width: 1.5rem;
    height: 1.5rem;
    border: 1px solid var(--slate-300);
    border-radius: 9999px;
}

.doc-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--slate-600);
    flex-grow: 1;
}

.doc-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--slate-100);
    padding-bottom: 0.5rem;
}

.doc-value-highlight {
    font-weight: 700;
    color: var(--slate-900);
}

.doc-field-group {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.field-label {
    text-transform: uppercase;
    font-size: 0.625rem;
    color: var(--slate-400);
}

.field-value-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.preview-text {
    font-size: 1.125rem; /* xl */
    font-weight: 700;
    word-break: break-all;
    max-width: 200px;
    transition: color 0.2s;
}

.preview-text.pending {
    color: var(--slate-300);
}

.preview-text.filled {
    color: var(--brand-600);
}

.preview-suffix {
    font-size: 1.125rem;
    font-family: 'Noto Sans Arabic', sans-serif;
    font-weight: 700;
    color: var(--slate-400);
}

.doc-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.partners-list {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.partner-item-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.partner-badge {
    width: 1rem;
    height: 1rem;
    background-color: var(--slate-100);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.5rem;
}

.legalese-mock {
    margin-top: auto;
    margin-bottom: 2rem;
    opacity: 0.3;
    user-select: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mock-line {
    background-color: var(--slate-200);
    border-radius: 0.25rem;
    height: 0.5rem;
}

.stamp-container {
    align-self: flex-end;
    transform: rotate(-12deg);
    opacity: 0.8;
}

.stamp-outer {
    width: 6rem;
    height: 6rem;
    border: 4px solid var(--brand-200);
    color: var(--brand-200);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.625rem;
    letter-spacing: 0.1em;
    padding: 0.25rem;
}

.stamp-inner {
    width: 100%;
    height: 100%;
    border: 1px solid var(--brand-200);
    border-radius: 9999px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Toast */
.toast-notification {
    position: absolute;
    right: 1rem;
    bottom: 5rem;
    background-color: var(--white);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border: 1px solid var(--slate-100);
    padding: 1rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transform: translateY(1rem);
    opacity: 0;
    transition: all 0.5s;
}

.toast-notification.show {
    transform: translateY(0);
    opacity: 1;
}

.toast-icon {
    width: 2rem;
    height: 2rem;
    background-color: var(--green-100);
    color: var(--green-600);
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--slate-900);
}

.toast-subtitle {
    font-size: 0.625rem;
    color: var(--slate-500);
}

/* Footer */
.landing-footer {
    border-top: 1px solid var(--slate-200);
    background-color: var(--white);
    padding: 2rem 0;
}

.footer-container {
    max-width: 80rem;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 640px) {
    .footer-container {
        padding: 0 1.5rem;
    }
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    text-align: center;
}

@media (min-width: 768px) {
    .trust-grid {
        grid-template-columns: repeat(4, 1fr);
        text-align: left;
    }
}

.trust-item span {
    display: block;
}

.trust-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--slate-900);
}

.trust-label {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.footer-bottom {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--slate-100);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    font-size: 0.75rem;
    color: var(--slate-400);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
    }
}

.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--slate-400);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-links a:hover {
    color: var(--slate-900);
}

/* Animations */
@keyframes pulse {
    0%, 100% { opacity: 0.2; }
    50% { opacity: 0.15; }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); max-height: 0; margin-bottom: 0; }
    to { opacity: 1; transform: translateY(0); max-height: 500px; margin-bottom: 1rem; }
}

@keyframes slideUp {
    from { opacity: 1; transform: translateY(0); max-height: 500px; margin-bottom: 1rem; }
    to { opacity: 0; transform: translateY(-10px); max-height: 0; margin-bottom: 0; }
}

.animate-slide-down {
    animation: slideDown 0.3s ease-out forwards;
}

.animate-slide-up {
    animation: slideUp 0.2s ease-in forwards;
}

.fade-enter-active {
    animation: fadeEnter 0.5s ease-out forwards;
}

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

.hidden {
    display: none !important;
}

/* Utilities */
.text-brand-500 { color: var(--brand-500); }

/* Existing .doc-paper style override */
@media (max-height: 800px) and (min-width: 1024px) {
    .hero-grid {
        align-items: start; /* Pull content up */
        padding-top: 0;
    }
    
    .doc-paper {
        transform: scale(0.85); /* Shrink the document visually */
        transform-origin: top center;
    }
    
    .hero-headline {
        font-size: 2.5rem; /* Shrink text slightly on short screens */
        margin-bottom: 0.5rem;
    }
    
    .input-card {
        padding: 1.5rem; /* Reduce padding to save vertical space */
    }
}

.story-intro {
    text-align: center;
    margin: 3rem auto;
    max-width: 500px;
    width: 100%;
    padding: 0 1rem;
    overflow-x: hidden; /* Prevent pseudo-elements from causing scroll */
}

.story-intro-tagline {
    display: block;
    color: var(--brand-600);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    letter-spacing: 0.05em;
}

.story-intro-description {
    margin-top: 1.5rem;
    font-size: 1rem;
    color: var(--slate-600);
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.story-intro-headline {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--slate-600);
    margin: 0;
    position: relative;
    display: inline-block;
    padding: 0 1rem;
    max-width: 100%;
}

.story-intro-headline.with-margin {
    margin-bottom: 2rem;
}

.story-intro-headline::before,
.story-intro-headline::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 50px;
    height: 1px;
    background-color: var(--slate-300);
}

.story-intro-headline::before {
    left: -50px;
}

.story-intro-headline::after {
    right: -50px;
}

@media (max-width: 640px) {
    .story-intro-headline::before,
    .story-intro-headline::after {
        display: none; /* Hide lines on small screens to prevent overflow */
    }
}

/* --- THE LIQUID GLASS CONTAINER --- */
.card-container {
    margin-left: auto;
    margin-right: auto;
    width: calc(100% - 2rem);
    max-width: 400px;
    height: 500px;
    border-radius: 1.5rem; /* Softer corners for Apple feel */
    overflow: hidden;
    position: relative;
    box-sizing: border-box;
    
    /* GLASSMORPHISM MAGIC */
    background: rgba(255, 255, 255, 0.25); /* Semi-transparent base */
    backdrop-filter: blur(30px) saturate(120%); /* The frosted effect */
    -webkit-backdrop-filter: blur(30px) saturate(120%); /* Safari support */
    border: 1px solid rgba(255, 255, 255, 0.6); /* Crisp light edge */
    
    /* Rich, deep navy shadow */
    box-shadow: 
        0 10px 15px -3px rgba(12, 74, 110, 0.1), 
        0 4px 6px -2px rgba(12, 74, 110, 0.05),
        inset 0 0 20px rgba(255, 255, 255, 0.2); /* Inner glow */
}

/* The "Liquid" Reflection Sheen */
.card-container::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.4) 0%, transparent 50%);
    pointer-events: none;
    z-index: 2;
}

.swiper {
    width: 100%;
    height: 100%;
    z-index: 3; /* Ensure content is above reflection */
}

.swiper-slide {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 2rem;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.7); /* Make slides semi-opaque */
    border-radius: 1.5rem; /* Add border-radius to individual slides */
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.1); /* Add a subtle shadow */
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px) saturate(100%);
    -webkit-backdrop-filter: blur(10px) saturate(100%);
    gap: 0.5rem; /* Consistent spacing between elements */
}

@media (min-width: 640px) {
    .swiper-slide {
        padding: 2.5rem;
        gap: 0.75rem;
    }
}

/* --- TYPOGRAPHY (NAVY) --- */
/* Swiper Slide Typography - Clear Hierarchy */
.swiper-slide h2 {
    font-size: 1.75rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 1.25rem 0;
    color: var(--brand-900); /* Deep Navy */
    letter-spacing: -0.02em;
}

@media (min-width: 640px) {
    .swiper-slide h2 {
        font-size: 2.25rem;
        margin-bottom: 1.5rem;
    }
}

.swiper-slide p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--slate-600); /* Softer for body text */
    font-weight: 400;
    margin: 0 0 0.75rem 0;
}

@media (min-width: 640px) {
    .swiper-slide p {
        font-size: 1.125rem;
        line-height: 1.8;
    }
}

/* General h2 and p for other sections */
h2 {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    color: var(--brand-900); /* Deep Navy */
    letter-spacing: -0.02em;
}

p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--brand-700); /* Medium Navy for readability */
    font-weight: 500;
    margin: 0;
}

/* NUMBERS & HIGHLIGHTS */
.stat-block {
    margin-top: 1.5rem;
    padding: 1.5rem 0;
    /* Subtle divider on glass */
    border-top: 1px solid rgba(12, 74, 110, 0.1);
    width: 100%;
}

.stat-block.no-border {
    border-top: none;
    padding-top: 0;
}

.stat-block p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--slate-500);
    margin-top: 0.75rem;
    font-weight: 400;
}

.big-number {
    font-size: 3rem;
    display: block;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--brand-900); /* Navy */
    line-height: 1.1;
    margin-top: 0.5rem;
}

@media (min-width: 640px) {
    .big-number {
        font-size: 3.5rem;
    }
}

.sub-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: var(--brand-600); /* Brighter blue for labels */
    display: block;
    margin-bottom: 0.25rem;
}

/* CTA BUTTON (Navy filled) */
.cta-button {
    margin-top: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2rem;
    background: var(--brand-900); /* Navy background */
    color: #ffffff; /* White text */
    font-weight: 700;
    text-decoration: none;
    border-radius: 0.75rem;
    transition: all 0.2s;
    width: 100%;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(12, 74, 110, 0.2);
}

.cta-button:hover {
    background: var(--brand-700);
    transform: translateY(-2px);
}

/* PROGRESS RING (Brighter Blue) */
.autoplay-progress {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
    width: 2rem;
    height: 2rem;
    color: var(--brand-600);
}

.autoplay-progress svg {
    --progress: 0;
    position: absolute;
    left: 0; top: 0;
    width: 100%; height: 100%;
    stroke-width: 3px;
    stroke: currentColor;
    fill: none;
    stroke-dashoffset: calc(125.6px * (1 - var(--progress)));
    stroke-dasharray: 125.6;
    transform: rotate(-90deg);
    opacity: 0.8;
}

/* PAGINATION DOTS (Navy) */
.swiper-pagination-bullet {
    background: var(--brand-900);
    opacity: 0.2;
}
.swiper-pagination-bullet-active {
    background: var(--brand-900);
    opacity: 1;
}

/* --- RECEIPT / VALUE BREAKDOWN SECTION --- */
.receipt-section {
    margin: 3rem auto;
    max-width: 500px;
    width: 100%;
    padding: 0 1rem;
    box-sizing: border-box;
}

.receipt-card {
    background: var(--white);
    border: 1px solid var(--slate-200);
    border-radius: 0; /* Receipt look */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    position: relative;
    padding: 1.5rem;
    margin-top: 1rem;
}

/* Zigzag border effect for receipt (optional, simplified here with border) */
.receipt-card::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 0;
    right: 0;
    height: 5px;
    background: radial-gradient(circle, transparent 70%, var(--white) 70%) repeat-x;
    background-size: 10px 10px;
    display: none; /* Keep simple for now */
}

.receipt-header {
    text-align: center;
    border-bottom: 2px dashed var(--slate-200);
    padding-bottom: 1.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.receipt-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--brand-900);
}

.receipt-subtitle {
    font-size: 0.875rem;
    color: var(--slate-500);
}

.receipt-items {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.receipt-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.receipt-item.highlight-bg {
    background-color: var(--brand-50);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin: 0 -0.75rem; /* Negative margin to pull to edges */
}

.item-text {
    display: flex;
    flex-direction: column;
}

.item-name {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--slate-800);
}

.item-desc {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.item-desc.highlight {
    color: var(--green-600);
    font-weight: 600;
}

.item-check {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--green-500);
    flex-shrink: 0;
}

.receipt-footer {
    border-top: 2px dashed var(--slate-200);
    margin-top: 1.5rem;
    padding-top: 1.5rem;
}

.receipt-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
}

.receipt-disclaimer {
    text-align: center;
    font-size: 0.75rem;
    color: var(--slate-500);
    margin-top: 0.75rem;
    background-color: var(--slate-50);
    padding: 0.5rem;
    border-radius: 0.25rem;
}
