/* Auto Pay Print - Modern Indian Design System */
:root {
    /* Terracotta Studio Palette - Warm, earthy tones */
    --color-primary: #B5563E;
    --color-primary-light: #D4896A;
    --color-primary-dark: #8B3D2A;
    --color-secondary: #3D2B1F;
    --color-background: #F2E6D9;
    --color-surface: #FFFFFF;
    --color-text: #3D2B1F;
    --color-text-light: #6B5344;
    --color-text-muted: #9B8B7A;
    --color-accent: #C9A87C;
    --color-success: #2D6A1E;
    --color-error: #B5563E;
    
    /* Typography */
    --font-display: 'Playfair Display', serif;
    --font-body: 'Noto Sans Devanagari', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    --radius-full: 9999px;
    
    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(61, 43, 31, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(61, 43, 31, 0.1), 0 2px 4px -1px rgba(61, 43, 31, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(61, 43, 31, 0.1), 0 4px 6px -2px rgba(61, 43, 31, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(61, 43, 31, 0.1), 0 10px 10px -5px rgba(61, 43, 31, 0.04);
    
    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--color-background);
    color: var(--color-text);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Noise Texture Overlay */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-md) var(--space-xl);
    background: rgba(242, 230, 217, 0.85);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(61, 43, 31, 0.08);
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.logo-icon {
    width: 40px;
    height: 40px;
    color: var(--color-primary);
}

.logo-icon svg {
    width: 100%;
    height: 100%;
}

.logo-text {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text);
}

.nav {
    display: flex;
    gap: var(--space-xl);
}

.nav-link {
    color: var(--color-text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    transition: width var(--transition-base);
}

.nav-link:hover {
    color: var(--color-primary);
}

.nav-link:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: var(--space-3xl);
    padding: calc(80px + var(--space-3xl)) var(--space-3xl) var(--space-3xl);
    max-width: 1400px;
    margin: 0 auto;
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-xs) var(--space-md);
    background: rgba(181, 86, 62, 0.1);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: var(--space-lg);
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-primary);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: var(--space-lg);
}

.title-line {
    display: block;
}

.title-line.accent {
    color: var(--color-primary);
    position: relative;
}

.title-line.accent::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    opacity: 0.3;
    z-index: -1;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
    max-width: 480px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-lg);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    border: none;
    text-decoration: none;
}

.btn-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-icon svg {
    width: 100%;
    height: 100%;
}

.btn-primary {
    background: var(--color-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-text);
    color: var(--color-background);
}

.btn-outline {
    background: transparent;
    color: var(--color-text);
    border: 2px solid var(--color-text-light);
}

.btn-outline:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.btn-large {
    padding: var(--space-lg) var(--space-2xl);
    font-size: 1.125rem;
}

.btn-full {
    width: 100%;
}

.btn-icon-only {
    width: 40px;
    height: 40px;
    padding: 0;
    background: transparent;
    border: none;
    color: var(--color-text-light);
    cursor: pointer;
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.btn-icon-only:hover {
    background: rgba(61, 43, 31, 0.08);
    color: var(--color-text);
}

.btn-icon-only svg {
    width: 20px;
    height: 20px;
}

/* Hero Visual */
.hero-visual {
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease-out 0.3s both;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.scanner-frame {
    position: relative;
    width: 320px;
    height: 400px;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

.scanner-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
    animation: scan 2s ease-in-out infinite;
    z-index: 10;
}

@keyframes scan {
    0%, 100% { top: 0; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.scanner-glow {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(180deg, rgba(181, 86, 62, 0.2), transparent);
    animation: scanGlow 2s ease-in-out infinite;
    z-index: 5;
}

@keyframes scanGlow {
    0%, 100% { top: -60px; opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { top: 100%; opacity: 0; }
}

.document-preview {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    height: 280px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    padding: var(--space-md);
}

.doc-lines {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    height: 100%;
}

.doc-line {
    height: 8px;
    background: var(--color-text-muted);
    border-radius: var(--radius-sm);
    opacity: 0.3;
}

.doc-line.short {
    width: 60%;
}

.doc-line.medium {
    width: 80%;
}

/* Scan Section */
.scan-section {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.section-subtitle {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.scan-container {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-lg);
}

.scan-options {
    display: flex;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
    border-bottom: 2px solid rgba(61, 43, 31, 0.08);
    padding-bottom: var(--space-md);
}

.scan-option {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text-light);
}

.scan-option:hover {
    background: rgba(61, 43, 31, 0.05);
}

.scan-option.active {
    background: rgba(181, 86, 62, 0.1);
    color: var(--color-primary);
}

.option-icon {
    width: 24px;
    height: 24px;
}

.option-icon svg {
    width: 100%;
    height: 100%;
}

.option-label {
    font-weight: 500;
}

/* Camera View */
.camera-view {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.camera-view video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camera-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.focus-frame {
    position: relative;
    width: 80%;
    height: 60%;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.corner {
    position: absolute;
    width: 20px;
    height: 20px;
    border-color: var(--color-primary);
    border-style: solid;
    border-width: 0;
}

.corner.top-left {
    top: -2px;
    left: -2px;
    border-top-width: 3px;
    border-left-width: 3px;
}

.corner.top-right {
    top: -2px;
    right: -2px;
    border-top-width: 3px;
    border-right-width: 3px;
}

.corner.bottom-left {
    bottom: -2px;
    left: -2px;
    border-bottom-width: 3px;
    border-left-width: 3px;
}

.corner.bottom-right {
    bottom: -2px;
    right: -2px;
    border-bottom-width: 3px;
    border-right-width: 3px;
}

.camera-hint {
    position: absolute;
    bottom: 20%;
    color: white;
    font-size: 0.9rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.capture-btn {
    position: absolute;
    bottom: var(--space-lg);
    left: 50%;
    transform: translateX(-50%);
    width: 72px;
    height: 72px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.capture-ring {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 4px solid white;
    background: rgba(255, 255, 255, 0.2);
    transition: all var(--transition-fast);
}

.capture-btn:hover .capture-ring {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

.capture-btn:active .capture-ring {
    transform: scale(0.95);
}

/* Upload View */
.upload-zone {
    width: 100%;
    aspect-ratio: 4/3;
    border: 3px dashed var(--color-text-muted);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.upload-zone:hover {
    border-color: var(--color-primary);
    background: rgba(181, 86, 62, 0.05);
}

.upload-icon {
    width: 64px;
    height: 64px;
    color: var(--color-text-muted);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-text {
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--color-text);
}

.upload-subtext {
    font-size: 0.9rem;
    color: var(--color-text-light);
}

/* Preview Area */
.preview-area {
    animation: fadeIn 0.3s ease;
}

.preview-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.preview-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.preview-image-container {
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--color-secondary);
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: var(--space-lg);
}

.preview-image-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.preview-actions {
    display: flex;
    gap: var(--space-md);
    justify-content: flex-end;
}

/* Print Settings */
.print-settings {
    padding: var(--space-3xl) var(--space-xl);
    max-width: 900px;
    margin: 0 auto;
}

.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-lg);
    margin-bottom: var(--space-2xl);
}

.setting-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.setting-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.option-group {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.radio-option {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-md);
    transition: background var(--transition-fast);
}

.radio-option:hover {
    background: rgba(61, 43, 31, 0.05);
}

.radio-option input {
    display: none;
}

.radio-custom {
    width: 20px;
    height: 20px;
    border: 2px solid var(--color-text-muted);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
}

.radio-option input:checked + .radio-custom {
    border-color: var(--color-primary);
    background: var(--color-primary);
}

.radio-option input:checked + .radio-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
}

.radio-label {
    font-size: 0.95rem;
    color: var(--color-text);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: var(--space-md);
}

.qty-btn {
    width: 40px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    background: transparent;
    border-radius: var(--radius-md);
    font-size: 1.25rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    color: var(--color-text);
}

.qty-btn:hover {
    border-color: var(--color-primary);
    color: var(--color-primary);
}

.quantity-selector input {
    width: 60px;
    height: 40px;
    border: 2px solid var(--color-text-light);
    border-radius: var(--radius-md);
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    background: transparent;
}

/* Price Summary */
.price-summary {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-xl);
    box-shadow: var(--shadow-md);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-sm) 0;
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.price-row.total {
    border-top: 2px solid rgba(61, 43, 31, 0.1);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text);
}

/* Payment Section */
.payment-section {
    text-align: center;
}

.payment-note {
    margin-top: var(--space-md);
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Features Section */
.features {
    padding: var(--space-3xl) var(--space-xl);
    background: linear-gradient(180deg, transparent, rgba(201, 168, 124, 0.1));
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

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

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--space-lg);
    color: var(--color-primary);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

.feature-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
    color: var(--color-text);
}

.feature-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

/* How It Works */
.how-it-works {
    padding: var(--space-3xl) var(--space-xl);
}

.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 1000px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.step {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    flex: 1;
    min-width: 280px;
}

.step-number {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
    opacity: 0.3;
    line-height: 1;
}

.step-content {
    flex: 1;
}

.step-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-xs);
    color: var(--color-text);
}

.step-desc {
    color: var(--color-text-light);
    font-size: 0.95rem;
}

.step-connector {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary-light), transparent);
    flex-shrink: 0;
}

/* Pricing Section */
.pricing {
    padding: var(--space-3xl) var(--space-xl);
    background: var(--color-surface);
}

.pricing-cards {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    max-width: 800px;
    margin: 0 auto;
    flex-wrap: wrap;
}

.pricing-card {
    flex: 1;
    min-width: 280px;
    max-width: 360px;
    background: var(--color-background);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    position: relative;
    transition: all var(--transition-base);
}

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

.pricing-card.featured {
    background: var(--color-primary);
    color: white;
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-4px);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-accent);
    color: var(--color-text);
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
}

.pricing-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.pricing-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.pricing-card.featured .pricing-name {
    color: white;
}

.pricing-price {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-primary);
}

.pricing-card.featured .pricing-price {
    color: white;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 400;
    opacity: 0.8;
}

.pricing-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-size: 0.95rem;
}

.pricing-features li::before {
    content: '✓';
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: white;
    border-radius: 50%;
    font-size: 0.75rem;
    flex-shrink: 0;
}

.pricing-card.featured .pricing-features li::before {
    background: white;
    color: var(--color-primary);
}

/* Footer */
.footer {
    background: var(--color-secondary);
    color: var(--color-background);
    padding: var(--space-3xl) var(--space-xl) var(--space-xl);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    flex-wrap: wrap;
    gap: var(--space-2xl);
}

.footer-brand .logo {
    margin-bottom: var(--space-sm);
}

.footer-brand .logo-icon {
    color: var(--color-primary-light);
}

.footer-brand .logo-text {
    color: var(--color-background);
}

.footer-tagline {
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: var(--space-3xl);
    flex-wrap: wrap;
}

.footer-col h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: var(--space-md);
    color: var(--color-background);
}

.footer-col a {
    display: block;
    color: var(--color-text-muted);
    text-decoration: none;
    margin-bottom: var(--space-sm);
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: var(--color-primary-light);
}

.footer-bottom {
    text-align: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(242, 230, 217, 0.1);
}

.footer-bottom p {
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

/* Modals */
.payment-modal,
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(61, 43, 31, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--color-surface);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 1;
    animation: modalSlideUp 0.3s ease;
}

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

.modal-close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--color-text-light);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: rgba(61, 43, 31, 0.08);
    color: var(--color-text);
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.modal-amount {
    color: var(--color-text-light);
    font-size: 1.1rem;
}

.modal-amount span {
    color: var(--color-primary);
    font-weight: 700;
    font-size: 1.25rem;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

.payment-method {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md);
    border: 2px solid rgba(61, 43, 31, 0.1);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.payment-method:hover {
    border-color: var(--color-primary-light);
}

.payment-method.active {
    border-color: var(--color-primary);
    background: rgba(181, 86, 62, 0.05);
}

.method-icon {
    width: 28px;
    height: 28px;
    color: var(--color-text-light);
}

.payment-method.active .method-icon {
    color: var(--color-primary);
}

.payment-method span {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text-light);
}

.payment-method.active span {
    color: var(--color-primary);
}

/* UPI Section */
.upi-section {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.qr-placeholder {
    background: var(--color-background);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-md);
}

.qr-code {
    width: 160px;
    height: 160px;
    margin: 0 auto var(--space-md);
    color: var(--color-text);
}

.qr-code svg {
    width: 100%;
    height: 100%;
}

.qr-placeholder p {
    font-weight: 600;
    color: var(--color-text);
}

.upi-hint {
    color: var(--color-text-light);
    font-size: 0.9rem;
}

/* Success Modal */
.modal-content.success {
    text-align: center;
}

.success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--space-lg);
    color: var(--color-success);
}

.success-icon svg {
    width: 100%;
    height: 100%;
}

.modal-content.success h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.modal-content.success p {
    color: var(--color-text-light);
    margin-bottom: var(--space-xl);
}

/* Print Animation */
.print-animation {
    width: 100px;
    height: 80px;
    margin: 0 auto var(--space-xl);
    position: relative;
    overflow: hidden;
}

.paper {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 80px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
    animation: printPaper 1.5s ease-in-out infinite;
}

@keyframes printPaper {
    0% {
        transform: translateX(-50%) translateY(100%);
        opacity: 0;
    }
    30% {
        opacity: 1;
    }
    100% {
        transform: translateX(-50%) translateY(-20%);
        opacity: 1;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header {
        padding: var(--space-sm) var(--space-md);
    }
    
    .nav {
        display: none;
    }
    
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        padding-top: calc(70px + var(--space-xl));
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .hero-visual {
        order: -1;
    }
    
    .scanner-frame {
        width: 260px;
        height: 320px;
    }
    
    .steps {
        flex-direction: column;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        background: linear-gradient(180deg, var(--color-primary-light), transparent);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-4px);
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .btn {
        width: 100%;
    }
    
    .settings-grid {
        grid-template-columns: 1fr;
    }
    
    .payment-methods {
        flex-wrap: wrap;
    }
    
    .payment-method {
        min-width: calc(50% - var(--space-xs));
    }
}

/* Print Styles */
@media print {
    .header,
    .hero-actions,
    .scan-section,
    .features,
    .how-it-works,
    .pricing,
    .footer,
    .payment-modal,
    .success-modal {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: var(--space-md);
    }
    
    .hero-visual {
        display: none;
    }
}