:root {
    --bg-dark: #050A05;
    --bg-card: #0F1F12;
    --primary-green: #4ADE80;
    --text-white: #FFFFFF;
    --text-muted: #9CA3AF;
    --font-family: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    background-color: var(--bg-dark);
    color: var(--text-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    overflow-x: hidden;
}

.app-container {
    width: 100%;
    max-width: 480px;
    /* Mobile-first constraint similar to screenshot */
    background: radial-gradient(circle at top center, #1a3320 0%, var(--bg-dark) 60%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 24px;
    position: relative;
}

header {
    display: flex;
    justify-content: center;
    padding: 24px 0;
    z-index: 10;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon svg {
    /* Custom styling for the logo icon if needed */
}

.logo-text {
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-top: -20px;
    /* Pull up into the gradient */
}

.hero-image-container {
    position: relative;
    width: 280px;
    height: 280px;
    margin-bottom: 40px;
    border-radius: 50%;
    overflow: hidden;
    /* Soft glow behind the circle */
    box-shadow: 0 0 60px rgba(74, 222, 128, 0.1);
    border: 1px solid rgba(74, 222, 128, 0.1);
}

.image-wrapper {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-graphic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.9;
}

.overlay-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle, transparent 50%, #050A05 100%);
    pointer-events: none;
}

.content-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: center;
}

h1 {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.subtitle {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.5;
    max-width: 320px;
}

.cta-button {
    background-color: var(--primary-green);
    color: #000000;
    border: none;
    padding: 16px 32px;
    border-radius: 100px;
    /* Pill shape */
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.2s, box-shadow 0.2s;
    width: 100%;
    max-width: 320px;
    justify-content: center;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 222, 128, 0.3);
}

.trust-indicators {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #4B5563;
    font-size: 0.75rem;
    margin-top: 16px;
    flex-wrap: wrap;
}

.indicator {
    display: flex;
    align-items: center;
    gap: 4px;
}

.separator {
    opacity: 0.5;
}

/* Animations included for premium feel as requested */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-image-container {
    animation: fadeIn 0.8s ease-out;
}

.content-container {
    animation: fadeIn 0.8s ease-out 0.2s backwards;
}

/* --- Upload Screen Styles --- */

.upload-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 32px;
}

.back-button {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.2s;
}

.back-button:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.header-title {
    font-size: 1.25rem;
    font-weight: 600;
}

.header-spacer {
    width: 40px;
    /* Balances the back button */
}

.upload-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.upload-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 90%;
}

.upload-zone {
    width: 100%;
    border: 2px dashed rgba(74, 222, 128, 0.2);
    border-radius: 24px;
    background-color: rgba(15, 31, 18, 0.5);
    padding: 40px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    margin-bottom: 32px;
}

.upload-zone:hover {
    border-color: rgba(74, 222, 128, 0.5);
    background-color: rgba(15, 31, 18, 0.8);
}

.upload-visuals {
    position: relative;
    height: 80px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.main-upload-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(74, 222, 128, 0.15);
    /* Darker inner circle */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.1);
}

.main-upload-icon svg path {
    stroke: #4ADE80;
}

/* Specific styling for the cloud icon specific path fill */
.main-upload-icon svg {
    filter: drop-shadow(0 0 5px rgba(74, 222, 128, 0.5));
}

.floating-icon {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9CA3AF;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.gallery-icon {
    left: 50%;
    transform: translate(-160%, 10%);
    /* Adjust based on visuals */
    z-index: 1;
}

.pdf-icon {
    right: 50%;
    transform: translate(160%, -20%);
    z-index: 1;
}

.upload-text-group {
    text-align: center;
}

.upload-cta-text {
    font-size: 1.125rem;
    font-weight: 600;
    color: white;
    margin-bottom: 4px;
}

.upload-subtext {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.format-pills {
    display: flex;
    gap: 8px;
}

.pill-format {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 6px 16px;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #34D399;
    /* Slightly different green text as per image */
    letter-spacing: 0.05em;
}

.upload-constraints {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.constraint-row {
    display: flex;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.constraint-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: rgba(74, 222, 128, 0.05);
    border: 1px solid rgba(74, 222, 128, 0.1);
    padding: 10px 16px;
    border-radius: 100px;
    font-size: 0.85rem;
    color: #D1D5DB;
}

.constraint-pill.single {
    background-color: rgba(74, 222, 128, 0.1);
    /* Slightly more prominent */
    border-color: rgba(74, 222, 128, 0.2);
}

.upload-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.full-width {
    width: 100%;
    max-width: 100%;
    /* Override the max-width: 320px from global if needed, but container is constrained */
}

.security-note {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #6B7280;
}

/* --- Processing Screen Styles --- */

.processing-header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-top: 16px;
    margin-bottom: 40px;
}

.processing-logo {
    display: flex;
    align-items: center;
    gap: 8px;
}

.processing-logo-text {
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    color: #D1D5DB;
}

.processing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.scanner-container {
    position: relative;
    width: 280px;
    height: 280px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 40px;
}

.scanner-circle {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, rgba(15, 31, 18, 1) 0%, rgba(5, 10, 5, 1) 100%);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid rgba(74, 222, 128, 0.2);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.scanner-icon {
    position: relative;
    z-index: 11;
}

/* Ripples */
.ripple {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(74, 222, 128, 0.1);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: rippleEffect 3s infinite linear;
}

.ripple-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ripple-2 {
    width: 75%;
    height: 75%;
    animation-delay: 1s;
}

.ripple-3 {
    width: 50%;
    height: 50%;
    animation-delay: 2s;
}

@keyframes rippleEffect {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0;
    }

    20% {
        opacity: 1;
        border-color: rgba(74, 222, 128, 0.3);
    }

    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Scanner Line */
.scanner-line {
    position: absolute;
    width: 100%;
    height: 2px;
    background: #4ADE80;
    box-shadow: 0 0 10px #4ADE80, 0 0 20px #4ADE80;
    top: 0;
    left: 0;
    animation: scanMove 2s infinite ease-in-out;
    opacity: 0.8;
}

@keyframes scanMove {
    0% {
        top: 10%;
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    80% {
        opacity: 1;
    }

    100% {
        top: 90%;
        opacity: 0;
    }
}

.processing-text-group {
    text-align: center;
    margin-bottom: 32px;
    animation: pulseText 2s infinite ease-in-out;
}

@keyframes pulseText {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }
}

.processing-title {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.processing-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.progress-section {
    width: 100%;
    max-width: 320px;
}

.progress-bar-container {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    background-color: #4ADE80;
    width: 0%;
    border-radius: 100px;
    transition: width 0.2s ease-out;
    box-shadow: 0 0 10px rgba(74, 222, 128, 0.5);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: #4B5563;
}

.processing-footer {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-bottom: 24px;
    margin-top: auto;
}

.cancel-button {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    transition: color 0.2s;
}

.cancel-button:hover {
    color: #FFFFFF;
}

/* --- Payment Screen Styles --- */

.payment-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.payment-page-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 24px;
    text-align: center;
}

.benefits-card {
    width: 100%;
    background-color: #142819;
    /* Darker green card background */
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid rgba(74, 222, 128, 0.1);
}

.benefits-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: #6B7280;
    /* Muted Green/Gray */
    letter-spacing: 0.05em;
    margin-bottom: 20px;
}

.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.benefit-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.check-icon {
    min-width: 20px;
    min-height: 20px;
    background-color: #22c55e;
    /* Green-600 approx */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

/* Inner tick color */
.check-icon svg path {
    stroke: #050A05;
}

.benefit-text h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 4px;
    color: white;
}

.benefit-text p {
    font-size: 0.85rem;
    color: #9CA3AF;
    line-height: 1.4;
}

.price-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    margin-bottom: 32px;
}

.price-display {
    display: flex;
    align-items: flex-start;
    line-height: 1;
}

.currency {
    font-size: 1.5rem;
    font-weight: 500;
    margin-top: 6px;
    margin-right: 4px;
    color: #D1D5DB;
}

.amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: white;
}

.price-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 0.7rem;
    color: #D1D5DB;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods {
    width: 100%;
}

.methods-label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 12px;
    color: white;
}

.method-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background-color: #111827;
    /* Dark gray for method card */
    border: 2px solid #4ADE80;
    /* Selected Green Border */
    border-radius: 100px;
    /* Pill shape */
    padding: 12px 24px 12px 16px;
    cursor: pointer;
    margin-bottom: 12px;
}

.method-card.disabled {
    border: 2px solid rgba(255, 255, 255, 0.05);
    /* Deselected/Disabled */
    opacity: 0.6;
}

.method-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.method-icon-apple {
    width: 36px;
    height: 36px;
    background-color: black;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.method-icon-generic {
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.method-icon-generic svg {
    width: 18px;
    height: 18px;
}

.method-name {
    font-weight: 600;
    font-size: 1rem;
}

.method-sub {
    font-size: 0.75rem;
    color: #9CA3AF;
    margin-left: 4px;
}

.payment-footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 16px;
    gap: 16px;
    margin-top: auto;
}

/* --- Results Screen Styles --- */

.results-intro {
    text-align: center;
    margin-bottom: 32px;
}

.results-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.results-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.share-button {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.share-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.results-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 32px;
}

.result-card {
    background-color: #0F1F12;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid rgba(74, 222, 128, 0.05);
}

.result-card.warning-border {
    border: 1px solid rgba(250, 204, 21, 0.2);
    background: linear-gradient(180deg, rgba(250, 204, 21, 0.05) 0%, rgba(15, 31, 18, 0) 100%);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.result-name {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.result-category {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

.status-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 100px;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
}

.status-badge.success {
    background-color: rgba(74, 222, 128, 0.1);
    color: #4ADE80;
    border: 1px solid rgba(74, 222, 128, 0.2);
}

.status-badge.warning {
    background-color: rgba(250, 204, 21, 0.1);
    color: #FACC15;
    border: 1px solid rgba(250, 204, 21, 0.2);
}

.result-value-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 16px;
}

.result-value {
    font-size: 2.5rem;
    font-weight: 600;
    line-height: 1;
}

.result-unit {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.bar-container {
    width: 100%;
    margin-bottom: 16px;
}

.bar-background {
    width: 100%;
    height: 6px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 100px;
    position: relative;
    margin-bottom: 8px;
}

.bar-fill {
    height: 100%;
    border-radius: 100px;
    position: absolute;
    left: 0;
    top: 0;
}

.bar-fill.success {
    background-color: #4ADE80;
}

.bar-fill.warning {
    background: linear-gradient(90deg, #5C5C68 0%, #FACC15 100%);
}

.bar-marker {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: white;
    z-index: 2;
}

.bar-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.7rem;
    color: #6B7280;
}

.insight-box {
    background-color: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}

.insight-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.insight-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
}

.insight-text {
    font-size: 0.8rem;
    color: #9CA3AF;
    line-height: 1.5;
}

.disclaimer-footer {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background-color: rgba(20, 30, 20, 0.5);
    border-radius: 16px;
    margin-bottom: 16px;
}

.disclaimer-footer p {
    font-size: 0.75rem;
    color: #6B7280;
    line-height: 1.4;
    flex: 1;
}