/* Design Tokens */
:root {
    --bg-app: #fcfdfe;
    --bg-section: #ffffff;
    --primary-green: #00873c;
    --primary-green-hover: #007031;
    --primary-green-light: #e6f6ec;
    --primary-green-border: rgba(0, 135, 60, 0.15);
    
    --text-primary: #121824;
    --text-secondary: #64748b;
    --text-light: #94a3b8;
    
    --border-color: #f1f5f9;
    --border-color-hover: #e2e8f0;
    
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 20px -2px rgba(0, 0, 0, 0.05), 0 2px 8px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.05), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-main);
    background-color: var(--bg-app);
    color: var(--text-primary);
    line-height: 1.5;
    padding-bottom: 110px; /* Space for sticky pay bar */
    min-height: 100vh;
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
}

/* Header */
.app-header {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    height: 64px;
}

.header-container {
    max-width: 600px;
    margin: 0 auto;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.back-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.back-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.header-title {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-primary);
}

.header-spacer {
    width: 40px;
}

/* Multi-step Navigation Visibility */
.step-view {
    display: none;
    animation: fadeIn var(--transition-normal) forwards;
}

.step-view.active {
    display: block;
}

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

/* Main Content */
.main-content {
    max-width: 600px;
    margin: 20px auto 0 auto;
    padding: 0 16px;
}

/* Card Sections */
.card-section {
    background-color: var(--bg-section);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    padding: 20px;
    margin-bottom: 16px;
    transition: var(--transition-normal);
}

.card-section:hover {
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Upload Section Header */
.upload-container-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.add-file-btn {
    background-color: var(--primary-green);
    color: #ffffff;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
    box-shadow: 0 4px 10px rgba(0, 135, 60, 0.2);
}

.add-file-btn:hover {
    background-color: var(--primary-green-hover);
    transform: scale(1.05);
}

.add-file-btn:active {
    transform: scale(0.95);
}

/* Drag & Drop Zone */
.drag-drop-zone {
    border: 2px dashed #cbd5e1;
    border-radius: 12px;
    padding: 32px 20px;
    text-align: center;
    background-color: #fafbfc;
    transition: var(--transition-normal);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.drag-drop-zone.dragover {
    border-color: var(--primary-green);
    background-color: var(--primary-green-light);
}

.upload-icon-wrapper {
    color: var(--text-secondary);
    margin-bottom: 12px;
    transition: var(--transition-fast);
}

.drag-drop-zone.dragover .upload-icon-wrapper {
    color: var(--primary-green);
    transform: translateY(-4px);
}

.drag-title {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.drag-title .highlight {
    color: var(--primary-green);
    font-weight: 600;
    text-decoration: underline;
}

.drag-subtitle {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* Carousel wrapper for files */
.carousel-wrapper {
    position: relative;
    width: 100%;
}

.carousel-list {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 8px 4px 16px 4px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
}

.carousel-list::-webkit-scrollbar {
    height: 6px;
}

.carousel-list::-webkit-scrollbar-track {
    background: transparent;
}

.carousel-list::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

/* Document Item Card */
.document-card {
    flex: 0 0 160px;
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid var(--border-color-hover);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-normal);
    display: flex;
    flex-direction: column;
}

.document-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.card-preview-area {
    height: 200px;
    background: #f8fafc;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
    padding: 12px;
}

/* Beautiful realistic CSS layout document preview inside card */
.document-thumbnail {
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    border: 1px solid #e2e8f0;
    padding: 12px 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    overflow: hidden;
    user-select: none;
    position: relative;
}

.thumbnail-lines {
    width: 100%;
    height: 4px;
    background-color: #cbd5e1;
    border-radius: 2px;
}
.thumbnail-lines:nth-child(2) { width: 85%; }
.thumbnail-lines:nth-child(3) { width: 90%; }
.thumbnail-lines:nth-child(4) { width: 50%; margin-bottom: 10px; }
.thumbnail-lines:nth-child(5) { width: 95%; height: 8px; background-color: #f1f5f9; border-radius: 3px;}
.thumbnail-lines:nth-child(6) { width: 40%; }
.thumbnail-lines:nth-child(7) { width: 60%; }

.thumbnail-format-tag {
    position: absolute;
    bottom: 6px;
    right: 6px;
    background-color: #f1f5f9;
    color: var(--text-secondary);
    font-size: 0.65rem;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
    text-transform: uppercase;
}

/* Hover overlays on Card Preview */
.card-overlay-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 8px;
    z-index: 10;
}

.card-action-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.card-action-btn:hover {
    transform: scale(1.1);
}

.card-action-btn.btn-zoom:hover {
    color: var(--primary-green);
}

.card-action-btn.btn-delete:hover {
    color: #e11d48;
}

.card-info {
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.card-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    font-size: 0.7rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Alert Banner */
.preview-status-banner {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-green-light);
    border: 1px solid var(--primary-green-border);
    padding: 10px 16px;
    border-radius: 12px;
    margin-top: 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary-green-hover);
}

.preview-status-banner .check-icon {
    flex-shrink: 0;
}

.format-help-text {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-align: center;
    margin: -8px auto 20px auto;
}

/* Config Rows & Sections */
.config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.config-label {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Stepper Copies Control */
.stepper {
    display: flex;
    align-items: center;
    background-color: var(--primary-green);
    border-radius: 30px;
    padding: 2px;
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 135, 60, 0.15);
}

.step-btn {
    color: #ffffff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.step-btn:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.step-btn:active {
    transform: scale(0.85);
}

.step-value {
    font-size: 0.95rem;
    font-weight: 700;
    min-width: 24px;
    text-align: center;
    padding: 0 4px;
}

/* Color Mode Group */
.config-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.color-mode-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.option-card {
    border: 1px solid var(--border-color-hover);
    border-radius: 16px;
    padding: 16px;
    cursor: pointer;
    background-color: #ffffff;
    transition: var(--transition-normal);
    position: relative;
    user-select: none;
}

.option-card:hover {
    border-color: #cbd5e1;
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.option-card.active {
    border-color: var(--primary-green);
    background-color: #ffffff;
    box-shadow: 0 0 0 1px var(--primary-green);
}

.option-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}

.option-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.price-info {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    position: absolute;
    top: 38px;
    left: 16px;
}

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

.empty-circle {
    width: 16px;
    height: 16px;
    border: 1.5px solid var(--text-light);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.option-card:hover .empty-circle {
    border-color: var(--text-secondary);
}

.option-graphic {
    height: 64px;
    position: relative;
    margin-top: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

/* Circle graphic inside color mode */
.option-graphic .circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    position: absolute;
    mix-blend-mode: multiply;
}

/* Grayscale graphics */
.graphic-bw .c1 {
    background-color: #94a3b8;
    left: 0;
}
.graphic-bw .c2 {
    background-color: #475569;
    left: 20px;
    opacity: 0.85;
}
.graphic-bw .c3 {
    background-color: #0f172a;
    left: 40px;
    opacity: 0.7;
}

/* Color graphics */
.graphic-color .color-cyan {
    background-color: #00d2ff;
    left: 0;
}
.graphic-color .color-magenta {
    background-color: #ff007f;
    left: 20px;
    opacity: 0.85;
}
.graphic-color .color-yellow {
    background-color: #ffea00;
    left: 40px;
    opacity: 0.7;
}

/* Duplex Pill Options */
.duplex-options {
    display: flex;
    gap: 16px;
}

.duplex-option {
    flex: 1;
    border: 1px solid var(--border-color-hover);
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background-color: #ffffff;
    transition: var(--transition-normal);
    user-select: none;
}

.duplex-option:hover {
    border-color: #cbd5e1;
    background-color: #fafbfc;
}

.duplex-option.active {
    background-color: var(--primary-green-light);
    border-color: var(--primary-green);
    color: var(--primary-green-hover);
    font-weight: 600;
}

.duplex-text {
    font-size: 0.9rem;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.duplex-option.active .duplex-text {
    color: var(--primary-green-hover);
}

.duplex-icon {
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.duplex-option.active .duplex-icon {
    color: var(--primary-green-hover);
}

/* STEP 2: Verify Mobile Number Styles */
.verify-card {
    background: var(--bg-section);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    box-shadow: var(--shadow-md);
    padding: 36px 24px;
    text-align: center;
    max-width: 440px;
    margin: 40px auto;
}

.verify-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.verify-subtitle {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 30px;
}

.input-group {
    text-align: left;
    margin-bottom: 28px;
}

.input-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 8px;
    display: block;
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    border: 1.5px solid var(--border-color-hover);
    border-radius: 12px;
    overflow: hidden;
    background-color: #fcfdfe;
    transition: var(--transition-fast);
}

.phone-input-wrapper:focus-within {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 135, 60, 0.1);
}

.phone-prefix {
    padding: 14px 16px;
    font-weight: 600;
    background-color: #f8fafc;
    border-right: 1.5px solid var(--border-color-hover);
    color: var(--text-primary);
    font-size: 1rem;
    user-select: none;
}

#phone-input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: 0.5px;
}

#phone-input::placeholder {
    color: var(--text-light);
    font-weight: 400;
}

.verify-proceed-btn {
    background-color: #8cc38c; /* Lighter soft green from mockup */
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    width: 100%;
    padding: 14px;
    border-radius: 12px;
    transition: var(--transition-normal);
    box-shadow: 0 4px 10px rgba(140, 195, 140, 0.2);
}

.verify-proceed-btn:not(:disabled) {
    background-color: #6eb06e;
    cursor: pointer;
}

.verify-proceed-btn:not(:disabled):hover {
    background-color: #5c9e5c;
    transform: translateY(-1px);
}

.verify-proceed-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* STEP 3: Review Order Styles */
.review-section {
    padding: 16px;
    margin-bottom: 12px;
}

.review-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-title-alt {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
}

.edit-link-btn {
    border: 1px solid var(--border-color-hover);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    transition: var(--transition-fast);
    background-color: #ffffff;
}

.edit-link-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

/* File row styling in Review */
.review-files-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.review-file-item {
    display: flex;
    align-items: center;
    gap: 14px;
}

.review-file-thumb {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--border-color-hover);
    flex-shrink: 0;
    background-color: #fafbfc;
}

.review-file-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.review-file-info {
    flex: 1;
    min-width: 0;
}

.review-file-name {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
    display: block;
}

.review-file-pages {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: block;
    margin-bottom: 6px;
}

.review-file-meta-badges {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.badge-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: var(--text-light);
}

.review-badge-text {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

/* Mini visual icon SVGs for B/W, duplex, file status */
.review-badge-icon {
    display: inline-flex;
    align-items: center;
    color: var(--text-secondary);
}

/* Shop and Personal Details Box */
.shop-details-card {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    border: 1.5px solid var(--border-color-hover);
    border-radius: 16px;
    padding: 16px;
    background-color: #ffffff;
}

.shop-details-left {
    flex: 1;
    padding-right: 12px;
}

.phone-display-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.phone-display-value {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.phone-edit-icon-btn {
    color: var(--text-secondary);
    padding: 6px;
    border-radius: 8px;
    background-color: #f8fafc;
    border: 1px solid var(--border-color-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-fast);
}

.phone-edit-icon-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.divider-line {
    height: 1px;
    background-color: var(--border-color);
    margin-bottom: 12px;
}

.kiosk-status-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kiosk-name-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.kiosk-tag-name {
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.status-badge {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
}

.status-badge.open {
    background-color: var(--primary-green-light);
    color: var(--primary-green);
}

.kiosk-address {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.kiosk-hours {
    font-size: 0.75rem;
    color: var(--text-light);
}

/* Premium CSS Kiosk Machine Mockup */
.shop-details-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.kiosk-machine-mockup {
    width: 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.kiosk-cabinet {
    width: 50px;
    height: 90px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 8px 8px 2px 2px;
    position: relative;
    box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
    border: 1px solid #047857;
}

.kiosk-screen {
    width: 38px;
    height: 30px;
    background-color: #1e293b;
    border-radius: 4px;
    border: 2px solid #64748b;
    padding: 2px;
    overflow: hidden;
}

.kiosk-screen-content {
    width: 100%;
    height: 100%;
    background-color: #0ea5e9;
    border-radius: 2px;
    position: relative;
    animation: screenPulse 2s infinite alternate;
}

@keyframes screenPulse {
    0% { background-color: #0ea5e9; opacity: 0.8; }
    100% { background-color: #38bdf8; opacity: 1; }
}

.kiosk-slot {
    width: 32px;
    height: 4px;
    background-color: #0f172a;
    border-radius: 1px;
    margin-top: 16px;
    position: relative;
}

.kiosk-slot::after {
    content: '';
    position: absolute;
    top: 4px;
    left: 8px;
    width: 16px;
    height: 12px;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-top: none;
    border-radius: 0 0 2px 2px;
}

.kiosk-badge {
    position: absolute;
    bottom: 6px;
    font-size: 0.5rem;
    color: #ffffff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    opacity: 0.9;
}

.kiosk-stand {
    width: 58px;
    height: 6px;
    background-color: #334155;
    border-radius: 3px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}

/* Collapsible Bill Details Card */
.bill-details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.chevron-icon {
    color: var(--text-secondary);
    transition: transform var(--transition-normal);
}

.bill-details-header[aria-expanded="false"] .chevron-icon {
    transform: rotate(-90deg);
}

.bill-details-content {
    margin-top: 16px;
    border-top: 1px dashed var(--border-color-hover);
    padding-top: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    transition: max-height var(--transition-normal), opacity var(--transition-normal);
    overflow: hidden;
}

.bill-details-header[aria-expanded="false"] + .bill-details-content {
    max-height: 0;
    padding-top: 0;
    margin-top: 0;
    opacity: 0;
    border-top: none;
}

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

.bill-label {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.bill-value {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
}

.total-cost-row {
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
    margin-top: 4px;
}

.total-cost-row .bill-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.total-cost-row .bill-value {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--primary-green);
}

/* Bottom Sticky Pay Bar */
.bottom-pay-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid var(--border-color);
    padding: 16px 20px;
    z-index: 90;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.03);
}

.pay-bar-container {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.total-pages-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 2px;
}

.total-price-value {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
}

.proceed-btn {
    background-color: var(--primary-green);
    color: #ffffff;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 24px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 135, 60, 0.25);
    transition: var(--transition-normal);
}

.proceed-btn:hover:not(:disabled) {
    background-color: var(--primary-green-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 135, 60, 0.3);
}

.proceed-btn:active:not(:disabled) {
    transform: translateY(0);
}

.proceed-btn:disabled {
    background-color: #cbd5e1;
    color: #94a3b8;
    box-shadow: none;
    cursor: not-allowed;
}

.arrow-icon {
    transition: var(--transition-fast);
}

.proceed-btn:hover:not(:disabled) .arrow-icon {
    transform: translateX(4px);
}

/* Modal Overlay & Transitions */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 110;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.modal.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
}

.modal-container {
    background-color: #ffffff;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    height: 80vh;
    max-height: 600px;
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.98);
    transition: transform var(--transition-normal);
}

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

.modal-header {
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title-area {
    display: flex;
    flex-direction: column;
}

.modal-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    max-width: 320px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.modal-subtitle {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.modal-close-btn {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: var(--transition-fast);
}

.modal-close-btn:hover {
    background-color: var(--border-color);
    color: var(--text-primary);
}

.modal-body {
    flex: 1;
    background-color: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    position: relative;
}

.nav-arrow {
    background-color: #ffffff;
    border: 1px solid var(--border-color-hover);
    color: var(--text-primary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    z-index: 5;
}

.nav-arrow:hover {
    background-color: var(--border-color);
    transform: scale(1.05);
}

.nav-arrow:active {
    transform: scale(0.95);
}

.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    background-color: #f1f5f9;
}

.preview-page-canvas {
    flex: 1;
    height: 100%;
    margin: 0 16px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border: 1px solid var(--border-color-hover);
    padding: 24px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    position: relative;
}

/* Styled text rows inside the zoomed modal page preview to make it look like a document */
.preview-row {
    height: 6px;
    background-color: #e2e8f0;
    border-radius: 3px;
    width: 100%;
}
.preview-row.h1 {
    height: 12px;
    background-color: var(--text-primary);
    margin-bottom: 12px;
    width: 60%;
}
.preview-row.h2 {
    height: 8px;
    background-color: var(--text-secondary);
    margin-bottom: 8px;
    width: 40%;
}
.preview-row.img-block {
    height: 120px;
    background-color: #f1f5f9;
    border-radius: 8px;
    margin: 16px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.modal-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
}

.pagination-dots {
    display: flex;
    gap: 8px;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #cbd5e1;
    transition: var(--transition-fast);
}

.dot.active {
    background-color: var(--primary-green);
    transform: scale(1.2);
}

/* Toasts */
.toast-container {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 200;
    width: 90%;
    max-width: 360px;
    pointer-events: none;
}

.toast {
    background-color: #0f172a;
    color: #ffffff;
    padding: 14px 20px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    transform: translateY(-20px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
    pointer-events: auto;
}

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

.toast-success-icon {
    color: #10b981;
}

/* Responsive adjustments */
@media (max-width: 520px) {
    .color-mode-cards {
        grid-template-columns: 1fr;
    }
    
    .duplex-options {
        flex-direction: column;
    }
    
    .price-info {
        position: static;
        margin-top: 4px;
        display: block;
    }
    
    .option-card-header {
        flex-direction: column;
        gap: 2px;
    }
    
    .option-card-header .selection-indicator {
        position: absolute;
        top: 16px;
        right: 16px;
    }
    
    .option-graphic {
        margin-top: 8px;
    }
}

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

.card-copies-stepper {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 8px;
}
.card-copies-btn {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color-hover);
    background: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    transition: var(--transition-fast);
}
.card-copies-btn:hover {
    border-color: var(--primary-green);
    color: var(--primary-green);
}
.card-copies-val {
    font-size: 0.85rem;
    font-weight: 700;
    min-width: 16px;
    text-align: center;
}

.otp-box:focus {
    border-color: var(--primary-green) !important;
    box-shadow: 0 0 0 3px rgba(0, 135, 60, 0.15);
}

