        :root {
            --bg-page: #ffffff;
            --bg-white: #F7F6F4;
            --bg-section: #F7F6F4;
            --bg-input: #ffffff;
            --border-light: #e8e8e8;
            --border-medium: #d0d0d0;
            --text-primary: #1a1a1a;
            --text-secondary: #555555;
            --text-muted: #888888;
            --text-placeholder: #aaaaaa;
            --accent-primary: #ff9505;
            --accent-hover: #e88600;
            --accent-light: #fff8f0;
            --accent-lighter: #fffcf8;
            --success: #22c55e;
            --success-light: #dcfce7;
            --warning: #f59e0b;
            --warning-light: #fef3c7;
            --error: #ef4444;
            --error-light: #fee2e2;
            --info: #3b82f6;
            --info-light: #dbeafe;
            --radius-sm: 8px;
            --radius-md: 12px;
            --radius-lg: 16px;
            --radius-xl: 24px;
            --radius-pill: 100px;
            --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
            --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
            --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
            --shadow-xl: 0 16px 48px rgba(0,0,0,0.15);
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }

        /* Ensure site header/footer use their own styles from styles.css */
        .header .container,
        .footer .container {
            max-width: 1300px;
        }

        body {
            font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, sans-serif;
            font-size: 16px;
            background: var(--bg-page);
            color: var(--text-primary);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* ===== LAYOUT ===== */
        .app-container {
            width: 100%;
            max-width: 900px;
            margin: 0 auto;
            padding: 24px 24px 80px;
            flex: 1;
        }

        /* ===== PROGRESS BAR ===== */
        .progress-wrapper {
            background: transparent;
            padding: 16px 0;
            margin: 0 0 24px 0;
        }

        .progress-inner {
            max-width: 100%;
            margin: 0 auto;
        }

        .progress-steps {
            display: flex;
            justify-content: space-between;
            position: relative;
        }

        .progress-steps::before {
            content: '';
            position: absolute;
            top: 16px;
            left: 40px;
            right: 40px;
            height: 2px;
            background: var(--border-light);
        }

        .progress-step {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            position: relative;
            z-index: 1;
        }

        .progress-dot {
            width: 32px;
            height: 32px;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 13px;
            font-weight: 700;
            background: #ffffff;
            border: 2px solid var(--border-light);
            color: var(--text-muted);
            transition: all 0.3s ease;
        }

        .progress-step.active .progress-dot {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
            box-shadow: 0 0 0 4px var(--accent-light);
        }

        .progress-step.completed .progress-dot {
            background: var(--success);
            border-color: var(--success);
            color: white;
        }

        .progress-label {
            font-size: 11px;
            font-weight: 600;
            color: var(--text-muted);
            text-align: center;
            transition: color 0.2s ease;
        }

        .progress-step.active .progress-label { color: var(--accent-primary); }
        .progress-step.completed .progress-label { color: var(--success); }

        .progress-step:hover .progress-dot {
            transform: scale(1.1);
            box-shadow: 0 0 0 4px var(--accent-light);
        }

        .progress-step:hover .progress-label {
            color: var(--accent-primary);
        }

        .progress-step.disabled {
            cursor: not-allowed !important;
            opacity: 0.5;
            position: relative;
        }

        .progress-step.disabled .progress-dot {
            background: var(--bg-section);
            border-color: var(--border-light);
            color: var(--text-muted);
        }

        .progress-step.disabled:hover .progress-dot {
            transform: none;
            box-shadow: none;
        }

        .progress-step.disabled:hover .progress-label {
            color: var(--text-muted);
        }

        .progress-step.disabled .progress-tooltip {
            display: none;
            position: absolute;
            bottom: 100%;
            left: 50%;
            transform: translateX(-50%);
            background: var(--text-primary);
            color: white;
            padding: 8px 12px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            white-space: nowrap;
            margin-bottom: 8px;
            z-index: 100;
        }

        .progress-step.disabled .progress-tooltip::after {
            content: '';
            position: absolute;
            top: 100%;
            left: 50%;
            transform: translateX(-50%);
            border: 6px solid transparent;
            border-top-color: var(--text-primary);
        }

        .progress-step.disabled:hover .progress-tooltip {
            display: block;
        }

        @media (max-width: 700px) {
            .progress-label { display: none; }
            .progress-dot {
                width: 20px;
                height: 20px;
                font-size: 0;
            }
            .progress-dot svg {
                width: 10px;
                height: 10px;
            }
            .progress-steps::before {
                top: 10px;
                left: 20px;
                right: 20px;
            }
        }

        /* ===== STEP SECTIONS ===== */
        .step-section {
            display: none;
            animation: fadeIn 0.3s ease;
        }

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

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

        /* ===== HEADERS ===== */
        .page-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .page-header-title {
            font-size: clamp(22px, 5.5vw, 28px);
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .page-header-subtitle {
            font-size: 16px;
            color: var(--text-secondary);
            max-width: 500px;
            margin: 0 auto;
        }

        /* ===== CARDS ===== */
        .card {
            background: var(--bg-white);
            border-radius: var(--radius-lg);
            border: 1px solid var(--border-light);
            padding: 28px;
            margin-bottom: 20px;
        }

        .card-flat {
            border: none;
            background: var(--bg-section);
        }

        .card-title {
            font-size: 17px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .card-subtitle {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 20px;
        }

        /* ===== TOOLTIPS ===== */
        .help-tip {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            background: var(--bg-section);
            border-radius: 50%;
            font-size: 11px;
            font-weight: 700;
            color: var(--text-muted);
            cursor: help;
            position: relative;
            transition: all 0.2s;
        }

        .help-tip:hover {
            background: var(--accent-light);
            color: var(--accent-primary);
        }

        .help-tip::after {
            content: attr(data-tip);
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: var(--text-primary);
            color: white;
            padding: 10px 14px;
            border-radius: var(--radius-sm);
            font-size: 13px;
            font-weight: 500;
            line-height: 1.4;
            white-space: normal;
            width: 220px;
            text-align: left;
            opacity: 0;
            visibility: hidden;
            transition: all 0.2s;
            z-index: 100;
            box-shadow: var(--shadow-lg);
        }

        .help-tip:hover::after {
            opacity: 1;
            visibility: visible;
        }

        /* ===== FORMS ===== */
        .form-group { margin-bottom: 20px; }
        .form-group:last-child { margin-bottom: 0; }

        .form-label {
            display: flex;
            align-items: center;
            gap: 6px;
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .form-label-optional {
            font-weight: 400;
            color: var(--text-muted);
        }

        .required-star { color: var(--accent-primary); }

        .form-input, .form-select, .form-textarea {
            width: 100%;
            padding: 14px 16px;
            font-size: 16px;
            font-family: inherit;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: var(--bg-input);
            color: var(--text-primary);
            transition: all 0.2s;
        }

        .form-select, select {
            height: 52px;
            cursor: pointer;
        }

        .form-input:hover, .form-select:hover, .form-textarea:hover {
            border-color: var(--border-medium);
        }

        .form-input:focus, .form-select:focus, .form-textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px var(--accent-light);
        }

        .form-input::placeholder, .form-textarea::placeholder {
            color: var(--text-placeholder);
        }

        .form-textarea {
            min-height: 180px;
            resize: vertical;
            line-height: 1.6;
        }

        .form-hint {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* Segment control for address type */
        .segment-control {
            display: flex;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 10px;
            padding: 4px;
            gap: 4px;
        }

        .segment-btn {
            flex: 1;
            padding: 10px 16px;
            border: none;
            background: transparent;
            border-radius: 8px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-secondary);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .segment-btn:hover:not(.active) {
            background: #f5f5f5;
        }

        .segment-btn.active {
            background: #e8e8e8;
            color: var(--text-primary);
            box-shadow: none;
        }

        /* Address autocomplete styles */
        .address-autocomplete-wrapper {
            position: relative;
        }

        .smarty-autocomplete-dropdown {
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border: 1px solid #e0e0e0;
            border-radius: 8px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.12);
            max-height: 280px;
            overflow-y: auto;
            z-index: 9999;
            margin-top: 4px;
        }

        .smarty-autocomplete-item {
            padding: 12px 16px;
            cursor: pointer;
            border-bottom: 1px solid #f0f0f0;
            font-size: 14px;
            color: var(--text-primary);
            transition: background-color 0.15s ease;
            line-height: 1.4;
        }

        .smarty-autocomplete-item:hover,
        .smarty-autocomplete-item.highlighted {
            background-color: var(--accent-light, #fff5eb);
        }

        .smarty-autocomplete-item:last-child {
            border-bottom: none;
        }

        .smarty-autocomplete-loading {
            padding: 16px;
            text-align: center;
            color: var(--text-muted, #999);
            font-size: 14px;
        }

        .smarty-autocomplete-loading::before {
            content: '';
            display: inline-block;
            width: 16px;
            height: 16px;
            border: 2px solid #e0e0e0;
            border-top-color: var(--accent-primary, #f7941d);
            border-radius: 50%;
            animation: autocomplete-spin 0.8s linear infinite;
            margin-right: 8px;
            vertical-align: middle;
        }

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

        .smarty-autocomplete-no-results {
            padding: 16px;
            text-align: center;
            color: var(--text-muted, #999);
            font-size: 14px;
            font-style: italic;
        }

        .form-row {
            display: grid;
            gap: 16px;
        }

        .form-row-2 { grid-template-columns: 1fr 1fr; }
        .form-row-3 { grid-template-columns: 1fr 1fr 1fr; }

        @media (max-width: 600px) {
            .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
        }

        /* Phone Input */
        .phone-group {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .phone-input {
            width: 70px;
            text-align: center;
            padding: 14px 8px;
        }

        .phone-input.wide { width: 90px; }
        .phone-sep { color: var(--text-muted); font-weight: 500; }

        /* ===== BUTTONS ===== */
        .btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            font-size: 15px;
            font-weight: 600;
            font-family: inherit;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.2s ease;
            text-decoration: none;
            border: none;
        }

        .btn-primary {
            background: var(--accent-primary);
            color: white;
        }

        .btn-primary:hover:not(:disabled) {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .btn-primary:disabled,
        .btn-primary.btn-disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none;
            box-shadow: none;
        }

        .btn-primary.btn-disabled:hover {
            opacity: 0.5;
            transform: none;
            box-shadow: none;
            background: var(--accent-primary);
        }

        .btn-secondary {
            background: var(--bg-white);
            color: var(--text-primary);
            border: 2px solid var(--border-light);
        }

        .btn-secondary:hover {
            border-color: var(--border-medium);
            background: var(--bg-section);
        }

        .btn-ghost {
            background: transparent;
            color: var(--text-muted);
            padding: 10px 16px;
        }

        .btn-ghost:hover {
            color: var(--text-primary);
            background: var(--bg-section);
        }

        .btn-sm { padding: 10px 20px; font-size: 13px; }
        .btn-lg { padding: 18px 36px; font-size: 16px; }
        .btn-full { width: 100%; }

        .btn-row-wrapper {
            margin-top: 32px;
            padding-top: 24px;
            border-top: 1px solid var(--border-light);
        }

        .btn-row {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 16px;
        }

        .account-lookup-row {
            display: flex;
            gap: 12px;
        }

        @media (max-width: 600px) {
            .btn-row {
                flex-direction: column-reverse;
            }
            .btn-row .btn { width: 100%; }

            .option-item .btn-sm {
                background: none;
                border: none;
                padding: 4px 0;
                font-size: 12px;
                color: var(--text-muted);
                text-decoration: underline;
                margin-left: 0;
                margin-top: 0;
                white-space: nowrap;
                border-radius: 0;
                align-self: flex-start;
                margin-top: 2px;
            }

            .account-lookup-row {
                flex-direction: column;
            }
            .account-lookup-row .btn {
                width: 100%;
            }
        }

        /* ===== PRODUCT TYPE SELECTION ===== */
        .product-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 20px;
        }

        @media (max-width: 700px) {
            .product-grid { grid-template-columns: 1fr; }
        }

        .product-card {
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: 16px;
            padding: 32px 28px;
            cursor: pointer;
            transition: all 0.25s ease;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            min-height: 180px;
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
        }

        .product-card-content {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
        }

        .product-card:hover {
            border-color: var(--accent-primary);
            transform: translateY(-4px);
            box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
        }

        .product-card.selected {
            border-color: var(--accent-primary);
            background: linear-gradient(to bottom, var(--accent-lighter), rgba(255, 255, 255, 0.5));
            box-shadow: 0 4px 16px rgba(232, 119, 34, 0.15);
        }

        .product-title {
            font-size: 20px;
            font-weight: 800;
            color: var(--text-primary);
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .product-desc {
            font-size: 13px;
            color: #9ca3af;
            line-height: 1.5;
            max-width: 200px;
        }

        .product-price {
            font-size: 14px;
            font-weight: 600;
            color: var(--accent-primary);
            margin-top: 8px;
        }

        /* ===== VIDEO SECTION ===== */
        .video-wrapper {
            max-width: 720px;
            margin: 0 auto;
        }

        .video-container {
            position: relative;
            padding-bottom: 56.25%;
            border: 2px solid #000;
        }

        .video-container iframe {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            border: 0 !important;
            outline: none;
        }

        .video-thumbnail {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
        }



        /* ===== FILE UPLOAD ===== */
        .upload-zone {
            border: 2px dashed var(--border-medium);
            border-radius: var(--radius-lg);
            padding: 48px 24px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
            background: var(--bg-section);
        }

        .upload-zone:hover, .upload-zone.dragover {
            border-color: var(--accent-primary);
            background: var(--accent-light);
        }

        .upload-icon {
            width: 56px;
            height: 56px;
            background: #ffffff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 16px;
            border: 1px solid var(--border-light);
        }

        .upload-icon svg {
            width: 24px;
            height: 24px;
            stroke: var(--text-muted);
        }

        .upload-text {
            font-size: 16px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .upload-hint {
            font-size: 13px;
            color: var(--text-muted);
        }

        .upload-hint strong {
            color: var(--accent-primary);
            cursor: pointer;
        }

        /* Upload Rejection Error Box */
        .upload-rejection {
            background: #fef2f2;
            border: 1px solid #fecaca;
            border-radius: var(--radius-md);
            padding: 20px 24px;
            text-align: left;
        }

        .upload-rejection-header {
            display: flex;
            align-items: center;
            gap: 8px;
            font-size: 16px;
            font-weight: 600;
            color: #dc2626;
            margin-bottom: 12px;
        }

        .upload-rejection-message {
            font-size: 14px;
            color: var(--text-primary);
            margin-bottom: 16px;
            line-height: 1.5;
        }

        .upload-rejection-details {
            font-size: 13px;
            color: var(--text-secondary);
            margin-bottom: 16px;
            padding: 12px 14px;
            background: rgba(0,0,0,0.03);
            border-radius: var(--radius-sm);
            max-height: 120px;
            overflow-y: auto;
            white-space: pre-line;
            line-height: 1.7;
        }

        .upload-rejection-fix {
            margin-bottom: 20px;
        }

        .upload-rejection-actions {
            text-align: center;
        }

        .upload-rejection-fix-title {
            font-size: 13px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .upload-rejection-fix-list {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.6;
            padding-left: 20px;
            margin: 0;
        }

        .upload-rejection-fix-list li {
            margin-bottom: 4px;
        }

        .upload-rejection-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            background: var(--accent-primary);
            color: white;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: background 0.2s;
        }

        .upload-rejection-btn:hover {
            background: var(--accent-hover);
        }

        .upload-columns-preview {
            margin-top: 16px;
            width: 100%;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
        }

        .upload-divider {
            height: 1px;
            background: var(--border-medium);
            margin: 0 auto 12px;
            width: 80%;
        }

        .upload-columns-row {
            display: flex;
            flex-wrap: nowrap;
            gap: 0;
            background: white;
            border: 1px solid var(--border-medium);
            border-radius: 8px;
            overflow: hidden;
            box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
            min-width: 520px;
        }

        .upload-columns-row span {
            flex: 1;
            font-size: 12px;
            font-weight: 600;
            color: var(--text-primary);
            padding: 10px 12px;
            border-right: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 3px;
            background: linear-gradient(to bottom, white, #fafafa);
        }

        .upload-columns-row span:last-child {
            border-right: none;
        }

        .upload-columns-row span small {
            font-size: 10px;
            font-weight: 400;
            color: var(--text-muted);
        }

        .upload-file-types {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 12px;
        }

        .upload-examples-label {
            font-size: 10px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
        }

        .upload-examples-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 12px;
            line-height: 1.5;
        }

        /* ===== TEMPLATE DOWNLOAD ===== */
        .template-download-section {
            margin-top: 16px;
            text-align: center;
        }

        .btn-template {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 18px;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            color: var(--accent-primary);
            background: transparent;
            border: 2px solid var(--accent-primary);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .btn-template:hover {
            background: var(--accent-light);
            transform: translateY(-1px);
        }

        .btn-template svg {
            stroke: var(--accent-primary);
        }

        /* ===== SELECTION CARDS ===== */
        .selection-grid {
            display: grid;
            gap: 12px;
        }

        .selection-grid-2 { grid-template-columns: repeat(2, 1fr); }
        .selection-grid-3 { grid-template-columns: repeat(3, 1fr); }
        .selection-grid-4 { grid-template-columns: repeat(4, 1fr); }

        @media (max-width: 600px) {
            .selection-grid-3, .selection-grid-4 { grid-template-columns: 1fr; }
        }

        .selection-card {
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s;
        }

        .selection-card:hover {
            border-color: var(--accent-primary);
        }

        .selection-card.selected {
            border-color: var(--accent-primary);
            background: var(--accent-lighter);
        }

        .selection-card-title {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .selection-card-subtitle {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        /* Paper Size with Preview */
        .paper-selection-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 8px;
            padding: 16px 12px;
        }

        .paper-mini-preview {
            width: 40px;
            height: 52px;
            background: white;
            border: 1px solid var(--border-medium);
            border-radius: 2px;
            box-shadow: var(--shadow-sm);
        }

        .paper-mini-preview.size-4x6 { width: 32px; height: 48px; }
        .paper-mini-preview.size-5x8 { width: 36px; height: 58px; }
        .paper-mini-preview.size-8x11 { width: 44px; height: 56px; }
        .paper-mini-preview.size-custom { 
            background: var(--bg-section);
            border-style: dashed;
        }

        /* Envelope Preview */
        .envelope-img {
            width: 100%;
            height: 80px;
            border-radius: var(--radius-sm);
            margin-bottom: 8px;
            object-fit: contain;
        }

        .envelope-preview {
            width: 100%;
            height: 80px;
            border-radius: var(--radius-sm);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            justify-content: center;
        }

        .envelope-preview.envelope-custom::before {
            content: '';
            width: 72px;
            height: 47px;
            border: 2px dashed var(--border-medium);
            border-radius: var(--radius-sm);
            background: var(--bg-section);
        }

        /* Ink Color Dot */
        .ink-dot {
            width: 20px;
            height: 20px;
            border-radius: 50%;
            display: inline-block;
            vertical-align: middle;
            margin-right: 8px;
            border: 1px solid var(--border-light);
        }

        .ink-dot.black { background: #1a1a1a; }
        .ink-dot.blue { background: #1a4d8c; }

        /* ===== COLUMN MAPPER ===== */
        .mapper-grid {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 1px;
            background: var(--border-light);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-top: 20px;
        }

        .mapper-header {
            background: var(--bg-section);
            padding: 12px 16px;
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .mapper-cell {
            background: #ffffff;
            padding: 12px 16px;
            display: flex;
            align-items: center;
        }

        .mapper-field {
            font-size: 14px;
            font-weight: 500;
        }

        .mapper-select {
            width: 100%;
            height: 52px;
            padding: 14px 16px;
            font-size: 16px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: #ffffff;
            font-family: inherit;
            cursor: pointer;
        }

        /* ===== ADDRESS PREVIEW ===== */
        .address-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
            gap: 12px;
            margin-top: 24px;
        }

        .address-card {
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 16px;
            font-size: 13px;
            position: relative;
        }

        .address-badge {
            position: absolute;
            top: -8px;
            right: 12px;
            background: var(--accent-primary);
            color: white;
            padding: 2px 8px;
            border-radius: var(--radius-sm);
            font-size: 10px;
            font-weight: 700;
            font-family: 'JetBrains Mono', monospace;
        }

        .address-name {
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .address-line {
            color: var(--text-secondary);
            line-height: 1.5;
        }

        /* ===== NOTE BUILDER ===== */
        .builder-layout {
            display: grid;
            grid-template-columns: 1fr 260px;
            gap: 24px;
            align-items: start;
        }

        @media (max-width: 900px) {
            .builder-layout {
                grid-template-columns: 1fr;
            }
            .builder-sidebar { order: -1; }
        }

        .builder-main { min-width: 0; }

        .builder-sidebar {
            position: sticky;
            top: 100px;
        }

        .sidebar-card {
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .sidebar-header {
            background: var(--bg-section);
            padding: 16px 20px;
            font-size: 14px;
            font-weight: 700;
            border-bottom: 1px solid var(--border-light);
        }

        .sidebar-body {
            padding: 16px 20px;
        }

        .sidebar-item {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 8px 0;
            font-size: 13px;
            border-bottom: 1px solid var(--border-light);
        }

        .sidebar-item:last-child { border-bottom: none; }

        .sidebar-item-label { color: var(--text-muted); }
        .sidebar-item-value { font-weight: 600; color: var(--text-primary); }

        /* ===== NOTE MODE TABS ===== */
        .mode-tabs {
            display: flex;
            background: var(--bg-section);
            border-radius: var(--radius-md);
            padding: 4px;
            margin-bottom: 24px;
        }

        .mode-tab {
            flex: 1;
            padding: 12px 16px;
            background: transparent;
            border: none;
            border-radius: var(--radius-sm);
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            color: var(--text-muted);
            cursor: pointer;
            transition: all 0.2s;
        }

        .mode-tab:hover { color: var(--text-primary); }

        .mode-tab.active {
            background: #ffffff;
            color: var(--accent-primary);
            box-shadow: var(--shadow-sm);
        }

        /* ===== TOKEN CHIPS ===== */
        .tokens-wrapper {
            margin-bottom: 16px;
        }

        .tokens-label {
            font-size: 12px;
            font-weight: 600;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 10px;
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .tokens-list {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .token-chip {
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            color: var(--accent-primary);
            padding: 6px 12px;
            border-radius: var(--radius-pill);
            font-size: 12px;
            font-family: 'JetBrains Mono', monospace;
            font-weight: 500;
            cursor: pointer;
            transition: all 0.2s;
        }

        .token-chip:hover {
            background: var(--accent-primary);
            color: white;
        }

        /* ===== WORD COUNT BAR ===== */
        .word-count-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-section);
            border-radius: var(--radius-md);
            padding: 16px 20px;
            margin-top: 16px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .word-stat {
            text-align: center;
        }

        .word-stat-value {
            font-size: 20px;
            font-weight: 700;
            color: var(--accent-primary);
        }

        .word-stat-value.warning { color: var(--warning); }
        .word-stat-value.over { color: var(--error); }

        .word-stat-label {
            font-size: 11px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
        }

        .page-dots {
            display: flex;
            gap: 4px;
            align-items: center;
        }

        .page-dot {
            width: 12px;
            height: 16px;
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            border-radius: 2px;
        }

        .page-dot.filled { background: var(--accent-primary); }

        /* ===== MESSAGE TYPE SELECTION ===== */
        .message-type-cards {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 24px;
            margin: 40px 0;
        }

        .message-type-card {
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 40px 28px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .message-type-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 6px 20px rgba(255, 149, 5, 0.15);
            transform: translateY(-4px);
        }

        .message-type-icon {
            color: var(--accent-primary);
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
        }

        .message-type-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .message-type-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        /* ===== RECIPIENT SOURCE SELECTION ===== */
        .recipient-source-cards {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 24px;
            margin: 40px 0;
        }

        .recipient-source-cards.single-card {
            grid-template-columns: 1fr;
            max-width: 500px;
            margin-left: auto;
            margin-right: auto;
        }

        .recipient-source-card {
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 40px 28px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .recipient-source-card:hover {
            border-color: var(--accent-primary);
            box-shadow: 0 6px 20px rgba(255, 149, 5, 0.15);
            transform: translateY(-4px);
        }

        .recipient-source-icon {
            color: var(--accent-primary);
            margin-bottom: 20px;
            display: flex;
            justify-content: center;
        }

        .recipient-source-title {
            font-size: 19px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 12px;
        }

        .recipient-source-desc {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.6;
        }

        .recipient-source-price {
            margin-top: 16px;
            font-size: 15px;
            font-weight: 600;
            color: var(--accent-primary);
        }

        @media (max-width: 600px) {
            .recipient-source-cards {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .recipient-source-card {
                padding: 28px 20px;
            }
        }

        /* ===== CONTACT SOURCING FORM ===== */
        .sourcing-form {
            margin-top: 24px;
        }

        .form-input-lg {
            font-size: 16px;
            padding: 14px 16px;
        }

        .form-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        /* Target Area Blocks */
        .target-areas-container {
            display: flex;
            flex-direction: column;
            gap: 16px;
        }

        .target-area-block {
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-lg);
            padding: 20px;
        }

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

        .target-area-label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .remove-area-link {
            font-size: 13px;
            color: var(--error);
            text-decoration: none;
            cursor: pointer;
        }

        .remove-area-link:hover {
            text-decoration: underline;
        }

        .area-type-select {
            width: 100%;
            height: 52px;
            padding: 14px 16px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 16px;
            background: white;
            cursor: pointer;
            margin-bottom: 16px;
        }

        .area-type-select:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

        .area-dynamic-fields {
            margin-bottom: 16px;
        }

        .area-fields-row {
            display: grid;
            grid-template-columns: 1fr 1fr;
            gap: 12px;
        }

        .area-fields-row.radius-row {
            grid-template-columns: 1fr 120px;
        }

        .radius-input-wrapper {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .radius-input-wrapper input {
            flex: 1;
        }

        .radius-input-wrapper .miles-label {
            font-size: 14px;
            color: var(--text-secondary);
            white-space: nowrap;
        }

        .zip-tags-container {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
            margin-top: 8px;
            min-height: 20px;
        }

        .zip-tag {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            border-radius: var(--radius-pill);
            padding: 6px 10px 6px 14px;
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
        }

        .zip-tag .remove-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 18px;
            height: 18px;
            border: none;
            background: var(--accent-primary);
            border-radius: 50%;
            cursor: pointer;
            color: white;
            transition: all 0.2s;
            padding: 0;
        }

        .zip-tag .remove-btn:hover {
            background: var(--error);
        }

        .area-description-field {
            margin-top: 16px;
        }

        .area-description-field label {
            font-size: 14px;
            font-weight: 500;
            color: var(--text-primary);
            margin-bottom: 6px;
            display: block;
        }

        .area-description-field label .optional-hint {
            font-size: 12px;
            font-weight: 400;
            color: var(--text-muted);
        }

        .area-description-input {
            width: 100%;
            padding: 10px 12px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 14px;
        }

        .area-description-input:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

        .add-area-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 10px 20px;
            background: transparent;
            border: 2px solid var(--accent-primary);
            border-radius: var(--radius-md);
            color: var(--accent-primary);
            font-size: 14px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.2s;
            margin-top: 8px;
        }

        .add-area-btn:hover {
            background: var(--accent-light);
        }

        .state-select {
            width: 100%;
            height: 52px;
            padding: 14px 16px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 16px;
            background: white;
            cursor: pointer;
        }

        .state-select:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

        .form-textarea {
            width: 100%;
            padding: 12px 14px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            font-family: inherit;
            font-size: 16px;
            line-height: 1.5;
            resize: vertical;
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
        }

        .form-textarea:focus {
            outline: none;
            border-color: var(--accent-primary);
            box-shadow: 0 0 0 3px var(--accent-lighter);
        }

        .form-textarea::placeholder {
            color: var(--text-muted);
        }

        /* ===== BUILDER HEADER ===== */
        .builder-header {
            margin-bottom: 24px;
        }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
            text-decoration: none;
            font-size: 14px;
            font-weight: 600;
            transition: color 0.2s ease;
        }

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

        /* ===== TEMPLATE BUILDER STYLES ===== */
        .template-upload-box {
            border: 3px dashed var(--accent-primary);
            border-radius: var(--radius-lg);
            padding: 40px 28px;
            margin-bottom: 24px;
            background: var(--bg-section);
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .template-upload-box:hover {
            background: rgba(255, 149, 5, 0.05);
        }

        .template-upload-box.has-file {
            border: 3px dashed var(--accent-primary);
            background: var(--bg-section);
            cursor: default;
            padding: 16px 24px;
        }

        .upload-prompt {
            text-align: center;
            padding: 20px;
        }

        .upload-icon-large {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .upload-title {
            font-size: 17px;
            font-weight: 700;
            margin-bottom: 6px;
            color: var(--text-primary);
        }

        .upload-subtitle {
            font-size: 13px;
            color: var(--text-muted);
            margin-bottom: 4px;
        }

        .template-file-info {
            display: block;
        }

        .template-file-info.hidden {
            display: none;
        }

        .file-info-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            padding: 12px 16px;
            background: #ffffff;
            border-radius: var(--radius-sm);
            border: 1px solid var(--border-light);
        }

        .file-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            max-width: calc(100% - 100px);
        }

        .change-file-btn {
            background: none;
            border: none;
            color: var(--accent-primary);
            font-size: 13px;
            font-weight: 600;
            cursor: pointer;
            font-family: inherit;
            padding: 0;
            flex-shrink: 0;
        }

        .change-file-btn:hover {
            text-decoration: underline;
        }

        .tokens-grid {
            display: flex;
            flex-wrap: wrap;
            gap: 8px;
        }

        .field-token {
            display: inline-flex;
            align-items: center;
            padding: 6px 12px;
            background: #fff3e0;
            border: 2px solid var(--accent-primary);
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            color: #e88600;
            cursor: pointer;
            user-select: none;
            transition: all 0.2s ease;
            font-weight: 600;
        }

        .field-token:hover {
            background: #ffe8cc;
            transform: translateY(-1px);
        }

        .template-editor-container {
            background: var(--bg-section);
            border-radius: var(--radius-lg);
            overflow: hidden;
            margin-bottom: 16px;
        }

        .template-editor {
            min-height: auto;
            padding: 20px;
            padding-bottom: 40px;
            outline: none;
            position: relative;
        }

        .template-editor::after {
            content: '↵ Press Enter for new paragraph';
            position: absolute;
            bottom: 12px;
            left: 20px;
            font-size: 12px;
            color: var(--text-muted);
            opacity: 0.5;
            pointer-events: none;
        }

        .token-instruction-hint {
            text-align: center;
            font-size: 12px;
            color: var(--text-muted);
            opacity: 0.7;
            margin-top: 12px;
        }

        .editor-block {
            position: relative;
            padding: 14px 18px;
            padding-top: 10px;
            background: #ffffff;
            border-radius: var(--radius-sm);
            margin-bottom: 12px;
            min-height: 60px;
            border: none;
        }

        .editor-block:focus-within {
            box-shadow: 0 0 0 2px rgba(255, 149, 5, 0.2);
        }

        .block-label {
            font-size: 9px;
            font-weight: 600;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--accent-primary);
            margin-bottom: 6px;
            display: block;
        }

        .block-content {
            min-height: 24px;
            outline: none;
            color: var(--text-primary);
            font-size: 16px;
            line-height: 1.6;
        }

        .block-content:empty::before {
            content: 'Type your message here...';
            color: var(--text-muted);
            pointer-events: none;
        }

        .block-divider {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 8px 0;
            margin: 6px 0;
            user-select: none;
        }

        .block-divider-line {
            flex: 1;
            height: 1px;
            background: var(--border-light);
        }

        .inline-token {
            display: inline;
            padding: 1px 4px;
            background: #fff3e0;
            border: 1px solid var(--accent-primary);
            border-radius: 3px;
            font-family: inherit;
            font-size: 0.9em;
            color: #e88600;
            white-space: nowrap;
            vertical-align: baseline;
            margin: 0;
            font-weight: 500;
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
            cursor: default;
            line-height: 1.4;
            pointer-events: auto;
        }

        .template-editor-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 14px 18px;
            background: var(--bg-section);
            border-top: 1px solid var(--border-light);
            border-radius: 0 0 var(--radius-lg) var(--radius-lg);
            font-size: 13px;
            margin-bottom: 24px;
        }

        .word-count-inline {
            display: flex;
            align-items: center;
            gap: 18px;
            color: var(--text-secondary);
            flex-wrap: wrap;
        }

        .word-count-item {
            display: flex;
            align-items: center;
            gap: 6px;
        }

        .word-count-item strong {
            font-family: 'Quicksand', sans-serif;
            font-weight: 700;
            color: var(--text-primary);
        }

        .block-counts {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
        }

        .block-count {
            background: #ffffff;
            padding: 6px 14px;
            border-radius: 6px;
            font-size: 14px;
            color: var(--text-secondary);
            border: 1px solid var(--border-light);
        }

        .block-count.warning {
            background: #fff3cd;
            border-color: #ffc107;
            color: #856404;
        }

        .block-count.over {
            background: #f8d7da;
            border-color: #dc3545;
            color: #721c24;
        }

        .block-count-tag {
            background: #ffffff;
            padding: 3px 10px;
            border-radius: 4px;
            font-size: 11px;
            border: 1px solid var(--border-light);
            font-weight: 600;
        }

        .block-count-tag.warning {
            border-color: var(--warning);
            color: var(--warning);
        }

        .block-count-tag.error {
            border-color: var(--error);
            color: var(--error);
        }

        .template-preview-section {
            margin-top: 24px;
        }

        .template-preview-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-bottom: 16px;
            flex-wrap: wrap;
            gap: 16px;
        }

        .preview-toggle {
            display: flex;
            background: var(--bg-section);
            border-radius: var(--radius-sm);
            padding: 4px;
        }

        .preview-toggle-btn {
            padding: 8px 16px;
            font-size: 13px;
            font-weight: 600;
            border: none;
            background: transparent;
            color: var(--text-muted);
            cursor: pointer;
            border-radius: 4px;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .preview-toggle-btn.active {
            background: var(--accent-primary);
            color: white;
        }

        .footer-nav-row {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
        }

        .footer-nav-row.hidden {
            visibility: hidden;
        }

        .footer-nav-btn {
            width: 36px;
            height: 36px;
            border-radius: 50%;
            border: 1.5px solid var(--accent-primary);
            background: white;
            color: var(--accent-primary);
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
            font-family: inherit;
        }

        .footer-nav-btn:hover:not(:disabled) {
            background: var(--accent-light);
        }

        .footer-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .footer-nav-counter {
            font-family: 'Quicksand', sans-serif;
            font-size: 13px;
            font-weight: 500;
            color: var(--text-secondary);
            min-width: 140px;
            text-align: center;
        }

        .template-preview-content {
            background: white;
            padding: 32px;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            min-height: 300px;
        }

        .empty-preview-state {
            text-align: center;
            padding: 60px 20px;
            color: var(--text-muted);
        }

        .empty-state-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-secondary);
            margin-bottom: 6px;
        }

        .empty-state-desc {
            font-size: 13px;
        }

        .letter-paragraph {
            margin-bottom: 1.5em;
            font-size: 16px;
            line-height: 1.8;
        }

        .letter-paragraph:last-child {
            margin-bottom: 0;
        }

        .letter-token-placeholder {
            display: inline;
            padding: 2px 6px;
            background: #fff3e0;
            border: 1.5px solid var(--accent-primary);
            border-radius: 4px;
            font-family: 'JetBrains Mono', monospace;
            font-size: 13px;
            color: #e88600;
            font-weight: 600;
        }

        /* Responsive */
        @media (max-width: 768px) {
            .message-type-cards {
                grid-template-columns: 1fr;
                gap: 16px;
            }

            .message-type-card {
                padding: 28px 20px;
            }

            .template-preview-header {
                flex-direction: column;
                align-items: stretch;
            }

            .preview-toggle {
                justify-content: center;
            }

            .footer-nav-row {
                justify-content: center;
            }
        }

        /* ===== PREVIEW CARDS ===== */
        .preview-area {
            padding: 40px;
            background: var(--bg-section);
            border-radius: var(--radius-lg);
            display: flex;
            flex-direction: column;
            align-items: center;
            gap: 40px;
        }

        .preview-column {
            text-align: center;
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .preview-label {
            font-size: 12px;
            font-weight: 700;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 16px;
        }

        .preview-note-card {
            background: white;
            border: 1px solid #d0d0d0;
            border-radius: 6px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.1);
            padding: 24px;
            position: relative;
            text-align: left;
            width: 100%;
            max-width: 650px;
        }

        .preview-content {
            font-family: 'Quicksand', sans-serif;
            font-size: 16px;
            line-height: 1.5;
            color: #1a1a1a;
            white-space: pre-wrap;
        }

        .preview-content.ink-blue { color: #1a4d8c; }

        .preview-signature {
            font-family: 'Quicksand', sans-serif;
            font-size: 18px;
            font-weight: 600;
            color: #1a1a1a;
            margin-top: 16px;
            padding-top: 8px;
        }

        .preview-signature.ink-blue { color: #1a4d8c; }

        /* Page Navigation for multi-page notes */
        .page-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 12px;
            margin-top: 16px;
            padding-top: 12px;
            border-top: 1px solid #e8e8e8;
        }

        .page-nav.hidden {
            display: none;
        }

        .page-nav-btn {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 28px;
            height: 28px;
            border: 1px solid var(--accent-primary);
            border-radius: 50%;
            background: white;
            color: var(--accent-primary);
            cursor: pointer;
            transition: all 0.2s;
        }

        .page-nav-btn:hover:not(:disabled) {
            background: var(--accent-primary);
            color: white;
        }

        .page-nav-btn:disabled {
            border-color: #d0d0d0;
            color: #d0d0d0;
            cursor: not-allowed;
        }

        .page-nav-counter {
            font-size: 13px;
            color: var(--text-muted);
            min-width: 80px;
            text-align: center;
        }

        /* Address Card Preview - matches note card style */
        .preview-address-card {
            background: white;
            border: 1px solid #d0d0d0;
            border-radius: 6px;
            box-shadow: 0 3px 12px rgba(0,0,0,0.1);
            padding: 24px;
            position: relative;
            text-align: left;
            width: 100%;
            max-width: 650px;
        }

        .address-content {
            font-family: 'Quicksand', sans-serif;
            font-size: 16px;
            line-height: 1.6;
            color: #1a1a1a;
        }

        .address-content.placeholder {
            color: var(--text-muted);
            font-style: italic;
        }

        .address-content div {
            margin-bottom: 2px;
        }

        .address-content div:last-child {
            margin-bottom: 0;
        }

        .preview-nav {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 20px;
            margin-top: 24px;
        }

        .preview-nav-btn {
            width: 44px;
            height: 44px;
            border-radius: 50%;
            background: #ffffff;
            border: 1px solid var(--border-light);
            cursor: pointer;
            font-size: 18px;
            color: var(--text-muted);
            transition: all 0.2s;
        }

        .preview-nav-btn:hover:not(:disabled) {
            background: var(--accent-light);
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .preview-nav-btn:disabled {
            opacity: 0.3;
            cursor: not-allowed;
        }

        .preview-counter {
            font-size: 14px;
            color: var(--text-muted);
            font-weight: 600;
        }

        /* ===== ALERTS ===== */
        .alert {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px 20px;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
        }

        .alert-success { background: var(--success-light); border: 1px solid #86efac; }
        .alert-info { background: var(--info-light); border: 1px solid #93c5fd; }
        .alert-warning { background: var(--warning-light); border: 1px solid #fcd34d; }
        .alert-error { background: var(--error-light); border: 1px solid #fca5a5; }

        .alert-content { flex: 1; }
        .alert-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
        .alert-text { font-size: 13px; color: var(--text-secondary); }

        /* ===== RADIO/CHECKBOX GROUPS ===== */
        .option-group {
            display: flex;
            flex-direction: column;
            gap: 12px;
        }

        .option-item {
            display: flex;
            align-items: flex-start;
            gap: 14px;
            padding: 18px 20px;
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s;
        }

        .option-item:hover {
            border-color: var(--accent-primary);
        }

        .option-item.selected {
            border-color: var(--accent-primary);
            background: var(--accent-lighter);
        }

        .option-item input {
            margin-top: 2px;
            accent-color: var(--accent-primary);
        }

        .option-label {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
        }

        .option-desc {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .option-price {
            margin-left: auto;
            font-size: 14px;
            font-weight: 600;
            color: var(--accent-primary);
        }

        /* ===== ORDER SUMMARY ===== */
        .summary-card {
            background: var(--bg-white);
            border: 2px solid var(--border-light);
            border-radius: var(--radius-lg);
            overflow: hidden;
        }

        .checkout-sticky-wrapper {
            position: sticky;
            top: 100px;
        }

        .summary-header {
            background: var(--bg-section);
            padding: 18px 24px;
            font-size: 16px;
            font-weight: 700;
            border-bottom: 1px solid var(--border-light);
        }

        .summary-body { padding: 20px 24px; }

        .summary-row {
            display: flex;
            justify-content: space-between;
            padding: 10px 0;
            border-bottom: 1px solid var(--border-light);
            font-size: 14px;
        }

        .summary-row:last-child { border-bottom: none; }

        .summary-row-label { color: var(--text-secondary); }
        .summary-row-value { font-weight: 600; }

        .summary-addons-row {
            /* inherits .summary-row styling */
        }

        /* Price breakdown table styles */
        .price-header-row, .price-row {
            display: grid;
            grid-template-columns: 1fr 50px 60px 70px;
            gap: 8px;
            padding: 8px 0;
            font-size: 14px;
        }

        .price-header-row {
            border-bottom: 1px solid var(--border-light);
            font-weight: 600;
            color: var(--text-secondary);
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            padding-bottom: 10px;
            margin-bottom: 4px;
        }

        .price-row {
            border-bottom: 1px solid var(--border-light);
        }

        .price-row:last-child {
            border-bottom: none;
        }

        .price-col-item {
            color: var(--text-secondary);
        }

        .price-col-qty, .price-col-unit {
            text-align: right;
            color: var(--text-secondary);
        }

        .price-col-total {
            text-align: right;
            font-weight: 600;
        }

        .price-discount-row {
            border-top: 1px solid var(--border-light);
            margin-top: 4px;
            padding-top: 12px;
        }

        .price-discount-row .price-col-item {
            color: var(--success);
        }

        .price-discount-row .price-col-total {
            color: var(--success);
        }

        .summary-total {
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 20px 24px;
            background: var(--bg-section);
            border-top: 2px solid var(--border-light);
        }

        .summary-total-label {
            font-size: 16px;
            font-weight: 700;
        }

        .summary-total-value {
            font-size: 26px;
            font-weight: 700;
            color: var(--accent-primary);
        }

        /* ===== MODAL ===== */
        .modal-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

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

        .modal {
            background: #ffffff;
            border-radius: var(--radius-lg);
            padding: 32px;
            max-width: 500px;
            width: 90%;
            max-height: 80vh;
            overflow-y: auto;
            transform: scale(0.95);
            transition: transform 0.3s;
        }

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

        .modal-title {
            font-size: 20px;
            font-weight: 700;
            margin-bottom: 8px;
        }

        .modal-text {
            font-size: 14px;
            color: var(--text-muted);
            margin-bottom: 24px;
        }

        .modal-actions {
            display: flex;
            gap: 12px;
            justify-content: flex-end;
            margin-top: 24px;
        }

        /* ===== HANDWRITING SIDE-BY-SIDE SELECTOR ===== */
        .handwriting-inline-selector {
            display: flex;
            gap: 16px;
            align-items: stretch;
        }

        /* Left column - style list */
        .handwriting-style-list {
            display: flex;
            flex-direction: column;
            gap: 8px;
            min-width: 140px;
        }

        .handwriting-style-option {
            padding: 12px 16px;
            cursor: pointer;
            transition: all 0.15s;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            background: white;
            font-weight: 600;
            color: var(--text-primary);
            font-size: 14px;
            text-align: center;
        }

        .handwriting-style-option:hover {
            border-color: #ff9505;
        }

        .handwriting-style-option.selected {
            background: white;
            border: 2px solid #ff9505 !important;
            color: var(--text-primary);
        }

        /* Right column - preview panel */
        .handwriting-preview-panel {
            flex: 1;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            background: white;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        .handwriting-preview-placeholder {
            display: flex;
            align-items: center;
            justify-content: center;
            color: var(--text-muted);
            font-size: 15px;
            flex: 1;
        }

        .handwriting-preview-content {
            display: flex;
            flex-direction: column;
            padding: 4px;
            flex: 1;
            min-height: 0;
        }

        .handwriting-preview-image {
            background: var(--bg-subtle);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: all 0.2s;
            flex: 1;
            padding: 4px;
            overflow: hidden;
            min-height: 0;
        }

        .handwriting-preview-image:hover {
            background: var(--border-color);
        }

        .handwriting-sample-text {
            font-size: 24px;
            color: var(--text-primary);
            text-align: center;
            line-height: 1.8;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: space-evenly;
            overflow-y: auto;
            padding: 8px 0;
        }

        .handwriting-sample-text img.handwriting-stack-img {
            width: 85%;
            height: auto;
            border-radius: 4px;
            opacity: 0;
            transition: opacity 0.2s ease-in-out;
        }

        .handwriting-sample-text img.handwriting-stack-img.loaded {
            opacity: 1;
        }

        .handwriting-sample-text img.handwriting-numbers-img {
            width: 65%;
        }

        .handwriting-sample-text img.handwriting-sentence-img {
            width: 65%;
        }

        .handwriting-section {
            width: 100%;
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .handwriting-section-label {
            font-size: 10px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
            font-weight: 500;
            text-align: center;
        }

        .handwriting-enlarge-stack {
            display: flex;
            flex-direction: column;
            gap: 24px;
            width: 100%;
            max-width: 100%;
        }

        .handwriting-enlarge-section-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 8px;
            font-weight: 500;
            text-align: center;
        }

        .handwriting-enlarge-stack img {
            width: 85%;
            height: auto;
            object-fit: contain;
        }

        .handwriting-enlarge-stack img.handwriting-enlarge-sentence-img,
        .handwriting-enlarge-stack img.handwriting-enlarge-numbers-img {
            width: 65%;
        }

        .handwriting-enlarge-section {
            display: flex;
            flex-direction: column;
            align-items: center;
        }

        .handwriting-enlarge-link {
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
            margin-top: 12px;
            font-size: 13px;
            color: var(--accent-primary);
            cursor: pointer;
            transition: all 0.15s;
            flex-shrink: 0;
        }

        .handwriting-enlarge-link:hover {
            color: var(--accent-hover);
        }

        /* Custom handwriting button - in left column */
        #customHandwritingOption {
            background: white;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 20px 16px;
            cursor: pointer;
            transition: all 0.15s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            gap: 4px;
            text-align: center;
            margin-top: 8px;
            flex: 1;
        }

        #customHandwritingOption:hover {
            border-color: #ff9505;
        }

        #customHandwritingOption .handwriting-style-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.3;
        }

        #customHandwritingOption .handwriting-style-price {
            font-size: 13px;
            font-weight: 600;
            color: var(--accent-primary);
        }

        #customHandwritingOption.selected {
            border-color: var(--accent-primary);
            background: linear-gradient(to bottom, var(--accent-lighter), rgba(255, 255, 255, 0.5));
            box-shadow: 0 4px 12px rgba(232, 119, 34, 0.15);
        }

        #customHandwritingOption.selected .handwriting-style-price {
            color: var(--accent-primary);
        }

        /* Enlarge lightbox */
        .handwriting-enlarge-overlay {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.85);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1100;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

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

        .handwriting-enlarge-content {
            background: white;
            border-radius: var(--radius-lg);
            padding: 40px;
            width: 90vw;
            max-width: 1200px;
            height: 85vh;
            max-height: 900px;
            position: relative;
            display: flex;
            flex-direction: column;
        }

        .handwriting-enlarge-close {
            position: absolute;
            top: -20px;
            right: -20px;
            width: 48px;
            height: 48px;
            border-radius: 50%;
            background: white;
            border: none;
            cursor: pointer;
            font-size: 28px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: var(--shadow-lg);
            transition: all 0.2s;
        }

        .handwriting-enlarge-close:hover {
            color: var(--text-primary);
        }

        .handwriting-enlarge-title {
            display: none;
        }

        .handwriting-enlarge-image {
            flex: 1;
            background: var(--bg-subtle);
            border-radius: var(--radius-md);
            display: flex;
            align-items: center;
            justify-content: center;
            overflow: hidden;
        }

        .handwriting-enlarge-sample {
            font-size: 48px;
            color: var(--text-primary);
            text-align: center;
            line-height: 1.8;
            padding: 40px;
            max-width: 100%;
            max-height: 100%;
        }

        .handwriting-enlarge-sample img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
        }

        /* Mobile responsive */
        @media (max-width: 600px) {
            .handwriting-style-tabs {
                gap: 6px;
            }

            .handwriting-style-tab {
                padding: 8px 12px;
                font-size: 13px;
            }

            .handwriting-inline-selector {
                flex-direction: column;
            }

            .handwriting-style-list {
                flex-direction: column;
                min-width: unset;
            }

            .handwriting-preview-panel {
                min-height: 300px;
            }

            .handwriting-preview-placeholder {
                min-height: 200px;
            }

            .handwriting-preview-image {
                min-height: 250px;
            }

            .handwriting-enlarge-content {
                width: 95vw;
                height: 90vh;
                padding: 24px;
            }

            .handwriting-enlarge-close {
                top: -12px;
                right: -12px;
                width: 40px;
                height: 40px;
                font-size: 24px;
            }

            .handwriting-enlarge-sample {
                font-size: 32px;
                padding: 0;
            }

            .handwriting-enlarge-sample img {
                width: 100%;
                max-width: 100%;
            }

            .handwriting-enlarge-content {
                padding: 10px;
                padding-top: 32px;
            }

            .handwriting-enlarge-image {
                padding: 0;
            }
        }

        /* ===== TOGGLE SWITCH ===== */
        .toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 16px 0;
            border-bottom: 1px solid var(--border-light);
        }

        .toggle-row:last-child { border-bottom: none; }

        .toggle-label {
            font-size: 15px;
            font-weight: 600;
        }

        .toggle-desc {
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 2px;
        }

        .toggle-switch {
            position: relative;
            width: 52px;
            height: 28px;
            flex-shrink: 0;
        }

        .toggle-switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }

        .toggle-slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: var(--border-medium);
            transition: 0.3s;
            border-radius: 28px;
        }

        .toggle-slider::before {
            position: absolute;
            content: "";
            height: 22px;
            width: 22px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: 0.3s;
            border-radius: 50%;
            box-shadow: var(--shadow-sm);
        }

        .toggle-switch input:checked + .toggle-slider {
            background-color: var(--accent-primary);
        }

        .toggle-switch input:checked + .toggle-slider::before {
            transform: translateX(24px);
        }

        /* ===== TOGGLE ROW ===== */
        .toggle-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            gap: 16px;
        }

        .toggle-info {
            flex: 1;
        }

        .toggle-label {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 4px;
        }

        .toggle-desc {
            font-size: 13px;
            color: var(--text-secondary);
        }

        .toggle-right {
            display: flex;
            align-items: center;
        }

        /* ===== ANALYTICS FEATURE CARDS ===== */
        .analytics-feature-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 24px;
        }

        .analytics-feature-card {
            background: white;
            border: 2px solid var(--accent-primary);
            border-radius: var(--radius-lg);
            padding: 20px;
            text-align: center;
        }

        .analytics-feature-icon {
            width: 40px;
            height: 40px;
            margin: 0 auto 12px;
            color: var(--accent-primary);
        }

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

        .analytics-feature-title {
            font-size: 15px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .analytics-feature-desc {
            font-size: 13px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .analytics-preview-note {
            text-align: center;
            font-size: 13px;
            color: var(--text-muted);
            margin-top: 20px;
            font-style: italic;
        }

        /* ===== QR DESTINATION GRID ===== */
        .qr-destination-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 12px;
            margin-top: 20px;
        }

        .qr-destination-card {
            background: white;
            border: 1.5px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 20px 16px;
            text-align: center;
            cursor: pointer;
            transition: all 0.2s ease;
        }

        .qr-destination-card:hover {
            border-color: var(--accent-primary);
            background: #fffaf5;
        }

        .qr-destination-card.selected {
            border-color: var(--accent-primary);
            background: #fff8f0;
            box-shadow: 0 0 0 3px rgba(255, 149, 5, 0.1);
        }

        .qr-destination-icon {
            width: 32px;
            height: 32px;
            margin: 0 auto 10px;
            color: var(--text-secondary);
        }

        .qr-destination-card:hover .qr-destination-icon,
        .qr-destination-card.selected .qr-destination-icon {
            color: var(--accent-primary);
        }

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

        .qr-destination-name {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-primary);
            margin-bottom: 2px;
        }

        .qr-destination-desc {
            font-size: 12px;
            color: var(--text-muted);
        }

        .form-hint {
            font-size: 12px;
            color: var(--text-muted);
            margin-top: 6px;
        }

        @media (max-width: 768px) {
            .analytics-feature-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        @media (max-width: 600px) {
            .analytics-feature-grid {
                grid-template-columns: 1fr;
            }

            .qr-destination-grid {
                grid-template-columns: 1fr;
            }

            .qr-destination-card {
                display: flex;
                align-items: center;
                gap: 14px;
                text-align: left;
                padding: 16px;
            }

            .qr-destination-icon {
                margin: 0;
                flex-shrink: 0;
            }

            .toggle-row {
                flex-direction: column;
                align-items: flex-start;
                gap: 12px;
            }

            .toggle-right {
                width: 100%;
                justify-content: space-between;
            }
        }

        /* ===== DIVIDER ===== */
        .divider {
            height: 1px;
            background: var(--border-light);
            margin: 24px 0;
        }

        /* ===== UTILITIES ===== */
        .text-center { text-align: center; }
        .text-muted { color: var(--text-muted); }
        .text-error { color: var(--error); }
        .text-success { color: var(--success); }
        .font-mono { font-family: 'JetBrains Mono', monospace; }
        .mt-8 { margin-top: 8px; }
        .mt-12 { margin-top: 12px; }
        .mt-16 { margin-top: 16px; }
        .mt-24 { margin-top: 24px; }
        .mb-8 { margin-bottom: 8px; }
        .mb-16 { margin-bottom: 16px; }
        .mb-24 { margin-bottom: 24px; }
        .hidden { display: none !important; }

        /* ===== SHIPPING ESTIMATOR ===== */
        .shipping-modal {
            position: relative;
        }

        .modal-close-btn {
            position: absolute;
            top: 16px;
            right: 16px;
            width: 36px;
            height: 36px;
            border-radius: 50%;
            background: var(--bg-section);
            border: none;
            cursor: pointer;
            font-size: 24px;
            color: var(--text-muted);
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            line-height: 1;
        }

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

        .zone-map-container {
            background: #ffffff;
            border-radius: var(--radius-md);
            margin-bottom: 20px;
            text-align: center;
        }

        .zone-map-svg {
            width: 100%;
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }

        .shipping-calculator {
            margin-bottom: 20px;
        }

        .shipping-result-card {
            background: var(--accent-light);
            border: 1px solid var(--accent-primary);
            border-radius: var(--radius-md);
            padding: 20px;
            margin-top: 16px;
        }

        .shipping-result-row {
            display: flex;
            justify-content: space-between;
            padding: 8px 0;
            border-bottom: 1px solid rgba(255, 149, 5, 0.2);
        }

        .shipping-result-row:last-of-type {
            border-bottom: none;
        }

        .shipping-result-label {
            color: var(--text-secondary);
            font-size: 14px;
        }

        .shipping-result-value {
            font-weight: 600;
            color: var(--text-primary);
        }

        .shipping-result-total {
            display: flex;
            justify-content: space-between;
            padding-top: 12px;
            margin-top: 8px;
            border-top: 2px solid var(--accent-primary);
        }

        .shipping-result-total .shipping-result-label {
            font-weight: 700;
            color: var(--text-primary);
        }

        .shipping-result-total .shipping-result-value {
            font-size: 18px;
            color: var(--accent-primary);
        }

        .zone-table-wrapper {
            background: var(--bg-section);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-top: 20px;
            margin-bottom: 20px;
        }

        .zone-table-header {
            padding: 12px 16px;
            font-size: 12px;
            font-weight: 700;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            color: var(--text-muted);
            border-bottom: 1px solid var(--border-light);
        }

        .zone-table {
            width: 100%;
            border-collapse: collapse;
            font-size: 14px;
        }

        .zone-table th,
        .zone-table td {
            padding: 12px 16px;
            text-align: left;
        }

        .zone-table th {
            font-weight: 600;
            color: white;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.3px;
            background: #1a1a1a;
        }

        .zone-table tbody tr {
            border-bottom: 1px solid var(--border-light);
        }

        .zone-table tbody tr:last-child {
            border-bottom: none;
        }

        .zone-table td {
            color: var(--text-secondary);
            background: #ffffff;
        }

        .zone-badge {
            display: inline-block;
            padding: 4px 10px;
            border-radius: var(--radius-sm);
            font-size: 12px;
            font-weight: 700;
            color: white;
        }

        .zone-badge.zone-1 { background: #6b7ff5; }
        .zone-badge.zone-2 { background: #7dd4c8; }
        .zone-badge.zone-3 { background: #8ed98d; }
        .zone-badge.zone-4 { background: #a8e6a8; }
        .zone-badge.zone-5 { background: #b8e8b8; }
        .zone-badge.zone-6 { background: #d4e8c8; }
        .zone-badge.zone-7 { background: #e8d4a8; }
        .zone-badge.zone-8 { background: #f5b87c; }

        /* ===== LOADING ===== */
        .spinner {
            width: 20px;
            height: 20px;
            border: 2px solid var(--border-light);
            border-top-color: var(--accent-primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

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

        /* ===== SUCCESS SCREEN ===== */
        .success-icon {
            width: 80px;
            height: 80px;
            background: var(--success-light);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 24px;
        }

        .success-icon svg {
            width: 40px;
            height: 40px;
            stroke: var(--success);
        }

        /* Two column layout */
        .two-col {
            display: grid;
            grid-template-columns: 1fr 360px;
            gap: 32px;
            align-items: start;
        }

        @media (max-width: 900px) {
            .two-col { grid-template-columns: 1fr; }
        }

        /* Stats row */
        .stats-row {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 16px;
            margin-top: 24px;
        }

        .stat-box {
            background: #ffffff;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 20px;
            text-align: center;
        }

        .stat-box-value {
            font-size: 28px;
            font-weight: 700;
            color: var(--accent-primary);
        }

        .stat-box-label {
            font-size: 12px;
            color: var(--text-muted);
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-top: 4px;
        }

        /* ===== RECIPIENT ORDER SECTION ===== */
        .recipient-order-section {
            margin-bottom: 24px;
        }

        .recipient-order-header {
            margin-bottom: 16px;
        }

        .recipient-order-title {
            font-size: 16px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 6px;
        }

        .recipient-order-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
        }

        .recipient-order-controls {
            display: flex;
            align-items: center;
            gap: 12px;
            margin-bottom: 16px;
            flex-wrap: wrap;
        }

        .recipient-order-controls label {
            font-size: 14px;
            font-weight: 600;
            color: var(--text-secondary);
        }

        .sort-select {
            height: 52px;
            padding: 14px 16px;
            font-size: 15px;
            font-family: inherit;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: white;
            cursor: pointer;
            min-width: 160px;
        }

        .sort-select:focus {
            outline: none;
            border-color: var(--accent-primary);
        }

        .sort-direction-btns {
            display: flex;
            gap: 4px;
        }

        .sort-arrow-btn {
            width: 36px;
            height: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            font-weight: 600;
            border: 1px solid var(--border-light);
            border-radius: var(--radius-sm);
            background: white;
            cursor: pointer;
            color: var(--text-muted);
            transition: all 0.2s;
        }

        .sort-arrow-btn:hover {
            border-color: var(--accent-primary);
            color: var(--accent-primary);
        }

        .sort-arrow-btn.active {
            background: var(--accent-primary);
            border-color: var(--accent-primary);
            color: white;
        }

        .sort-arrow-btn svg {
            width: 16px;
            height: 16px;
        }

        /* Recipient Order Table */
        .recipient-order-table-wrapper {
            background: var(--bg-section);
            border-radius: var(--radius-md);
            overflow: hidden;
            border: 1px solid var(--border-light);
        }

        .recipient-order-table {
            width: 100%;
            border-collapse: collapse;
        }

        .recipient-order-table th,
        .recipient-order-table td {
            padding: 12px 16px;
            text-align: left;
            font-size: 14px;
        }

        .recipient-order-table th {
            background: #1a1a1a;
            font-weight: 700;
            color: white;
            font-size: 12px;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            border-bottom: 1px solid #333;
        }

        .recipient-order-table td {
            background: #ffffff;
            color: var(--text-primary);
            border-bottom: 1px solid var(--border-light);
        }

        .recipient-order-table tr:last-child td {
            border-bottom: none;
        }

        .recipient-order-table .row-number {
            font-weight: 700;
            color: var(--accent-primary);
            width: 50px;
        }

        .recipient-order-table .name-cell {
            font-weight: 600;
        }

        .recipient-order-table .company-cell {
            color: var(--text-secondary);
        }

        .recipient-order-table .location-cell {
            color: var(--text-muted);
        }

        .show-all-link {
            display: block;
            text-align: center;
            padding: 14px;
            font-size: 14px;
            font-weight: 600;
            color: var(--accent-primary);
            cursor: pointer;
            background: #ffffff;
            border-top: 1px solid var(--border-light);
            transition: background 0.2s;
        }

        .show-all-link:hover {
            background: var(--accent-light);
        }

        /* Download and Confirm Section */
        .recipient-order-actions {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 16px;
        }

        .btn-outline-orange {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 12px 20px;
            font-size: 14px;
            font-weight: 600;
            font-family: inherit;
            color: var(--accent-primary);
            background: white;
            border: 2px solid var(--accent-primary);
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.2s;
        }

        .btn-outline-orange:hover {
            background: var(--accent-light);
        }

        .btn-outline-orange svg {
            width: 18px;
            height: 18px;
        }

        /* Confirmation Checkbox */
        .order-confirm-checkbox {
            display: flex;
            align-items: flex-start;
            gap: 12px;
            padding: 16px 20px;
            background: #ffffff;
            border: 2px solid var(--border-light);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.2s;
        }

        .order-confirm-checkbox:hover {
            border-color: var(--accent-primary);
        }

        .order-confirm-checkbox.checked {
            border-color: var(--accent-primary);
            background: var(--accent-lighter);
        }

        .order-confirm-checkbox input[type="checkbox"] {
            width: 20px;
            height: 20px;
            margin-top: 2px;
            accent-color: var(--accent-primary);
            cursor: pointer;
        }

        .order-confirm-checkbox .checkbox-label {
            font-size: 15px;
            font-weight: 600;
            color: var(--text-primary);
            line-height: 1.4;
        }

        /* Disabled Upload Area */
        .upload-area-gated {
            position: relative;
        }

        .upload-area-gated.disabled {
            opacity: 0.5;
            pointer-events: none;
        }

        .upload-area-gated.disabled::after {
            content: 'Confirm the order above to enable upload';
            position: absolute;
            bottom: -24px;
            left: 0;
            font-size: 13px;
            color: var(--text-muted);
            font-style: italic;
        }

        /* Sourced Recipients Message */
        .sourced-recipients-notice {
            background: var(--info-light);
            border: 1px solid #93c5fd;
            border-radius: var(--radius-md);
            padding: 16px 20px;
            margin-bottom: 20px;
        }

        .sourced-recipients-notice p {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            margin: 0;
        }

        /* Reorder Recipients Modal */
        .reorder-modal-overlay {
            position: fixed;
            inset: 0;
            background: rgba(0, 0, 0, 0.5);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 1000;
            opacity: 0;
            visibility: hidden;
            transition: all 0.3s;
        }

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

        .reorder-modal {
            background: white;
            border-radius: var(--radius-lg);
            width: 90%;
            max-width: 700px;
            max-height: 80vh;
            overflow: hidden;
            display: flex;
            flex-direction: column;
            transform: scale(0.95);
            transition: transform 0.3s;
        }

        .reorder-modal-overlay.active .reorder-modal {
            transform: scale(1);
        }

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

        .reorder-modal-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
        }

        .reorder-modal-close {
            background: none;
            border: none;
            font-size: 24px;
            color: var(--text-muted);
            cursor: pointer;
            padding: 4px;
            line-height: 1;
        }

        .reorder-modal-close:hover {
            color: var(--text-primary);
        }

        .reorder-modal-body {
            padding: 24px;
            overflow-y: auto;
            flex: 1;
        }

        .reorder-modal-warning {
            background: var(--warning-light);
            border: 1px solid #fcd34d;
            border-radius: var(--radius-md);
            padding: 12px 16px;
            margin-bottom: 20px;
            font-size: 14px;
            color: var(--text-secondary);
        }

        .reorder-modal-footer {
            display: flex;
            justify-content: flex-end;
            gap: 12px;
            padding: 16px 24px;
            border-top: 1px solid var(--border-light);
            background: var(--bg-section);
        }

        /* Recipient list changed warning */
        .recipient-changed-warning {
            background: var(--warning-light);
            border: 1px solid #fcd34d;
            border-radius: var(--radius-md);
            padding: 14px 18px;
            margin-bottom: 16px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }

        .recipient-changed-warning svg {
            width: 20px;
            height: 20px;
            color: var(--warning);
            flex-shrink: 0;
            margin-top: 2px;
        }

        .recipient-changed-warning p {
            font-size: 14px;
            color: var(--text-secondary);
            margin: 0;
            line-height: 1.5;
        }

        /* ===== TWO-STEP MESSAGE FLOW ===== */

        .verify-order-header {
            text-align: center;
            margin-bottom: 24px;
        }

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

        .verify-order-subtitle {
            font-size: 14px;
            color: var(--text-secondary);
            line-height: 1.5;
            max-width: 500px;
            margin: 0 auto;
        }

        .verify-order-actions {
            display: flex;
            flex-direction: column;
            gap: 16px;
            margin-top: 24px;
            padding-top: 20px;
            border-top: 1px solid var(--border-light);
        }

        .continue-builder-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
            padding: 14px 28px;
            font-size: 15px;
            font-weight: 600;
            font-family: inherit;
            color: white;
            background: var(--accent-primary);
            border: none;
            border-radius: var(--radius-pill);
            cursor: pointer;
            transition: all 0.2s;
            align-self: flex-start;
        }

        .continue-builder-btn:hover:not(:disabled) {
            background: var(--accent-hover);
            transform: translateY(-1px);
            box-shadow: var(--shadow-md);
        }

        .continue-builder-btn:disabled {
            background: var(--border-light);
            color: var(--text-muted);
            cursor: not-allowed;
        }

        .continue-builder-btn svg {
            width: 18px;
            height: 18px;
        }

        /* Step 2: Summary bar above builder */
        .order-summary-bar {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: var(--bg-section);
            border: 1px solid var(--border-light);
            border-radius: var(--radius-md);
            padding: 12px 16px;
            margin-bottom: 20px;
            font-size: 14px;
        }

        .order-summary-info {
            display: flex;
            align-items: center;
            gap: 8px;
            color: var(--text-secondary);
        }

        .order-summary-info strong {
            color: var(--text-primary);
            font-weight: 600;
        }

        .order-summary-arrow {
            color: var(--accent-primary);
            font-weight: 700;
        }

        .order-summary-divider {
            color: var(--border-light);
            margin: 0 8px;
        }

        .change-order-link {
            color: var(--accent-primary);
            font-weight: 600;
            cursor: pointer;
            text-decoration: none;
            transition: opacity 0.2s;
        }

        .change-order-link:hover {
            text-decoration: underline;
            opacity: 0.8;
        }

        /* No recipients error */
        .no-recipients-error {
            text-align: center;
            padding: 40px 20px;
        }

        .no-recipients-error .error-icon {
            font-size: 48px;
            margin-bottom: 16px;
        }

        .no-recipients-error .error-title {
            font-size: 18px;
            font-weight: 700;
            color: var(--text-primary);
            margin-bottom: 8px;
        }

        .no-recipients-error .error-text {
            font-size: 14px;
            color: var(--text-secondary);
            margin-bottom: 20px;
        }

        /* Issue Report Footer */
        .issue-report-footer {
            text-align: center;
            padding-top: 16px;
        }

        .issue-report-link {
            font-size: 13px;
            color: var(--accent-primary);
            text-decoration: none;
            transition: opacity 0.15s;
        }

        .issue-report-link:hover {
            opacity: 0.8;
            text-decoration: underline;
        }
