/* =========================================
   YOURSGIFTS KIOSK — CUSTOMIZER SPECIFIC STYLES
   ========================================= */

body {
    display: flex;
    flex-direction: column;
}

/* 3D Visualizer Container */
.visualizer-pane {
    position: sticky;
    top: 0;
    width: 100%;
    height: 35vh;
    min-height: 210px;
    max-height: 280px;
    background:
        radial-gradient(120% 120% at 30% 20%, var(--bg-panel) 0%, var(--paper-2) 100%);
    z-index: 20;
    border-bottom: 2px solid var(--text-main);
}
/* cutting-mat grid behind the 3D model */
.visualizer-pane::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        linear-gradient(var(--border-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--border-color) 1px, transparent 1px);
    background-size: 28px 28px;
    -webkit-mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%);
    mask-image: radial-gradient(ellipse 75% 75% at 50% 45%, #000 55%, transparent 100%);
    opacity: .5;
    pointer-events: none;
}
.visualizer-canvas-wrap { z-index: 1; }

.visualizer-canvas-wrap {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Floating controls inside visualizer */
.floating-back-btn {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.85rem;
    border-radius: 12px;
    background: var(--bg-panel);
    border: 1.5px solid var(--text-main);
    box-shadow: 2px 2px 0 var(--text-main);
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 15;
    transition: var(--transition-smooth);
}

.floating-back-btn:active {
    transform: translate(1px, 1px);
    box-shadow: 0 0 0 var(--text-main);
}

.viewer-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: color-mix(in srgb, var(--bg-panel) 80%, transparent);
    backdrop-filter: blur(3px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 14;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.loader-spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border-color-hover);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

.visualizer-overlay-controls {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 12;
}

.visualizer-btn {
    padding: 0.45rem 0.8rem;
    border-radius: 99px;
    background: var(--bg-panel);
    border: 1.5px solid var(--text-main);
    box-shadow: 2px 2px 0 var(--text-main);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    transition: var(--transition-smooth);
}
.visualizer-btn:active { transform: translate(1px,1px); box-shadow: 0 0 0 var(--text-main); }

.visualizer-btn.active {
    color: #ffffff;
    border-color: var(--text-main);
    background: var(--primary);
}

.drag-hint {
    position: absolute;
    bottom: 0.55rem;
    right: 0.75rem;
    z-index: 11;
    pointer-events: none;
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    background: var(--bg-panel);
    border: 1.5px solid var(--text-main);
    box-shadow: 1.5px 1.5px 0 var(--text-main);
    padding: 0.18rem 0.55rem;
    border-radius: 99px;
    transition: opacity 0.35s ease, transform 0.35s ease;
    user-select: none;
}

.drag-hint.hidden {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}

/* Customizer Panel */
.customizer-pane {
    flex-grow: 1;
    padding: 0.65rem 0.85rem calc(4.8rem + env(safe-area-inset-bottom, 0px)) 0.85rem;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    scroll-margin-top: 36vh;
}

/* Stepper Progress Styles */
.stepper-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.25rem;
    padding: 0 0.35rem;
}

.step-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.step-dot.active {
    background: var(--primary);
    box-shadow: 0 0 6px var(--primary-glow);
    transform: scale(1.18);
}

.step-dot.completed {
    background: var(--primary);
}

.stepper-line {
    flex-grow: 1;
    height: 2px;
    background: var(--border-color);
    margin: 0 6px;
    transition: var(--transition-smooth);
}

.stepper-line.completed {
    background: var(--primary);
}

.stepper-text-indicator {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.45rem;
    text-align: center;
    padding: 0.1rem 0;
}

/* Stepper Navigation */
.stepper-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--bg-panel);
    border-top: 1.5px solid var(--text-main);
    padding: 0.65rem 1rem calc(0.65rem + env(safe-area-inset-bottom, 0px)) 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    z-index: 50;
    box-shadow: 0 -4px 18px rgba(0,0,0,0.08);
}

.stepper-btn-back {
    padding: 0.7rem 1.1rem;
    background: transparent;
    border: 1.5px solid var(--text-main);
    border-radius: 12px;
    color: var(--text-main);
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.stepper-btn-back:active {
    background: var(--paper-2);
}

.stepper-btn-next {
    flex-grow: 1;
    padding: 0.75rem 1.15rem;
    background: var(--primary-gradient);
    border: 1.5px solid var(--text-main);
    box-shadow: 2px 2px 0 var(--text-main);
    border-radius: 12px;
    color: #ffffff;
    font-weight: 800;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.stepper-btn-next:active {
    transform: translate(1px, 1px);
    box-shadow: 0 0 0 var(--text-main);
}

.panel-header {
    margin-bottom: 0.45rem;
}

.panel-header h2 {
    font-size: 1.25rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    line-height: 1.2;
}

.product-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Step Card block */
.step-card {
    background: var(--bg-panel);
    border: 1.5px solid var(--text-main);
    border-radius: 16px;
    padding: 0.85rem 0.95rem;
    margin-bottom: 0.75rem;
    box-shadow: 2px 2px 0 var(--text-main);
    scroll-margin-top: 36vh;
}

.step-header {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.65rem;
}

.step-num {
    width: 24px;
    height: 24px;
    min-width: 24px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.78rem;
    color: #ffffff;
}

.step-header h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-main);
}

.step-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.05rem;
}

/* Language Toggle Button */
.lang-toggle-btn {
    margin-left: auto;
    background: var(--paper-2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    padding: 0.3rem 0.75rem;
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.lang-toggle-btn.active {
    background: var(--primary-gradient);
    border-color: transparent;
    box-shadow: 0 0 8px var(--primary-glow);
}

/* Inputs styling */
.input-wrap {
    position: relative;
    width: 100%;
}

.custom-input {
    width: 100%;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.85rem 3.5rem 0.85rem 1rem;
    color: var(--text-main);
    font-family: var(--font-family);
    font-size: 1rem;
    font-weight: 600;
    outline: none;
    transition: var(--transition-smooth);
}

.custom-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-glow);
    background: rgba(15, 23, 42, 0.08);
}

.char-counter {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
}

.dual-inputs-wrap {
    display: flex;
    flex-direction: column;
}

.wordart-tip {
    font-size: 0.72rem;
    color: var(--accent);
    margin-top: 0.5rem;
    line-height: 1.3;
}

/* Font Selector Strip */
/* font strip + arrow navigation */
.font-strip-wrap { position: relative; display: flex; align-items: center; gap: .35rem; }
.font-selector-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.25rem 0.15rem;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    flex: 1;
    min-width: 0;
}
.font-nav-btn {
    flex: 0 0 auto;
    width: 32px; height: 32px;
    border: 1.5px solid var(--text-main);
    border-radius: 50%;
    background: var(--bg-panel);
    color: var(--text-main);
    font-size: 1.3rem; line-height: 1;
    font-family: var(--font-display);
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--text-main);
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition-smooth);
}
.font-nav-btn:hover { background: var(--primary); color: #fff; }
.font-nav-btn:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--text-main); }
/* arrows are a desktop affordance; on touch, swipe is natural so hide them */
@media (hover: none) and (pointer: coarse) { .font-nav-btn { display: none; } }
.font-scroll-hint {
    margin-top: .5rem; text-align: center;
    font-family: var(--font-mono); font-size: .68rem; color: var(--text-muted);
}

.font-card {
    scroll-snap-align: start;
    flex: 0 0 116px;
    height: 88px;
    background: var(--bg-panel);
    border: 1.5px solid var(--text-main);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 6px;
    cursor: pointer;
    box-shadow: 2px 2px 0 var(--text-main);
    transition: var(--transition-smooth);
}
.font-card:active { transform: translate(1px,1px); box-shadow: 1px 1px 0 var(--text-main); }

.font-card.selected {
    background: rgba(255, 77, 46, 0.1);
    border-color: var(--primary);
    box-shadow: 2px 2px 0 var(--primary);
}

/* the real glyph SVG preview */
.font-preview-text {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 46px;
    color: var(--text-main);
    font-size: 1rem;
    font-weight: 700;
    overflow: hidden;
}
.font-preview-text svg { width: 100%; height: 100%; display: block; }
.font-card.selected .font-preview-text { color: var(--primary-ink); }

.font-card-name {
    font-size: 0.68rem;
    color: var(--text-muted);
    font-weight: 600;
}

.font-card.selected .font-card-name {
    color: var(--primary-ink);
}

/* Font Category Filter Tabs */
.font-category-tabs {
    display: flex;
    gap: 0.35rem;
    overflow-x: auto;
    padding-bottom: 0.35rem;
    margin-bottom: 0.75rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.font-category-tabs::-webkit-scrollbar {
    display: none;
}
.font-cat-btn {
    white-space: nowrap;
    padding: 0.35rem 0.7rem;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: var(--font-main);
    color: var(--text-muted);
    background: var(--paper-2);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
    flex-shrink: 0;
}
.font-cat-btn:hover {
    color: var(--text-main);
    border-color: var(--text-main);
}
.font-cat-btn.active {
    background: var(--text-main);
    color: var(--bg-panel);
    border-color: var(--text-main);
    box-shadow: 1px 1px 0 var(--text-main);
}

/* Word Art Font slots */
.wordart-slot-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.85rem;
}

.slot-tab {
    flex: 1;
    background: rgba(15, 23, 42, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    padding: 0.5rem;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    transition: var(--transition-smooth);
}

.slot-tab.active {
    background: rgba(255, 77, 46, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.slot-letter {
    font-size: 0.85rem;
}

/* Color Palette row and swatches */
.color-options-wrap {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}

.color-row {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.color-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0.1rem;
}

.color-row-label {
    font-size: 0.76rem;
    font-weight: 700;
    color: var(--text-muted);
}

.color-badge {
    font-size: 0.68rem;
    font-weight: 800;
    padding: 0.08rem 0.45rem;
    border-radius: 99px;
    background: var(--paper-2);
    border: 1px solid var(--text-main);
    color: var(--text-main);
}

.swatches-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.38rem;
    padding: 0.15rem 0.05rem;
}

.swatch {
    width: 30px;
    height: 30px;
    min-width: 30px;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    border: 1.5px solid transparent;
    transition: var(--transition-smooth);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.swatch.selected {
    border-color: var(--text-main);
    transform: scale(1.1);
    box-shadow: 0 0 0 2px var(--bg-panel), 0 0 0 4px var(--text-main);
}

.swatch.selected::after {
    content: "✓";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 900;
    text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Special styling for light checkmark color */
.swatch[style*="background-color: rgb(255, 255, 255)"].selected::after,
.swatch[style*="background-color: #ffffff"].selected::after,
.swatch[style*="background-color: #FFFFFF"].selected::after {
    color: #000000;
    text-shadow: none;
}

/* Word Art Backing Toggle (word-art / LOVE Series only) */
.wa-backing-row {
    margin-top: 0.85rem;
}

.wa-backing-label {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.wa-backing-toggle {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 12px;
}

.wa-backing-opt {
    flex: 1;
    padding: 0.5rem 0.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 0.8rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.wa-backing-opt.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px var(--primary-glow);
}

.wa-backing-hint {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    line-height: 1.35;
}

/* Desk Organizer Chip Strips */
.organizer-chip-strip {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    padding: 0.15rem 0;
}

.symbol-chip {
    padding: 0.4rem 0.65rem;
    background: var(--paper-2);
    border: 1px solid var(--border-color);
    color: var(--text-main);
    font-size: 0.78rem;
    font-weight: 700;
    font-family: inherit;
    border-radius: 999px;
    cursor: pointer;
    transition: var(--transition-smooth);
    user-select: none;
}

.symbol-chip:hover {
    border-color: var(--text-main);
}

.symbol-chip.active {
    background: var(--primary);
    border-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px var(--primary-glow);
}

/* Ring Position Toggle */
.ring-pos-toggle {
    display: flex;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.25rem;
    border-radius: 12px;
}

.pos-opt {
    flex: 1;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.pos-opt.active {
    background: var(--primary);
    color: #ffffff;
    box-shadow: 0 2px 6px var(--primary-glow);
}

/* Active Batch Suggestion Alert */
.batch-suggestion-alert {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    padding: 0.85rem 1.15rem;
    border-radius: 16px;
    margin-bottom: 1.25rem;
}

.alert-icon {
    font-size: 1.25rem;
}

.alert-content {
    display: flex;
    flex-direction: column;
}

.alert-title {
    font-weight: 800;
    font-size: 0.85rem;
    color: var(--accent);
}

.alert-message {
    font-size: 0.78rem;
    color: #065f46;
    line-height: 1.35;
    margin-top: 0.05rem;
}

/* Price Breakdown card */
.price-breakdown-card {
    border-left: 4px solid var(--primary);
}

.breakdown-title {
    font-size: 0.95rem;
    font-weight: 750;
    color: var(--text-main);
    margin-bottom: 0.75rem;
}

.price-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 0.45rem;
}

.price-row span:last-child {
    font-weight: 600;
    color: var(--text-main);
}

.price-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.75rem 0;
}

.price-row.total-row {
    font-size: 0.95rem;
    color: var(--text-main);
    margin-bottom: 0.5rem;
}

.price-row.total-row span:first-child {
    font-weight: 700;
}

.final-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--accent) !important;
}

.print-time-info {
    font-size: 0.78rem;
    color: var(--text-muted);
    background: var(--paper-2);
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: inline-block;
}

/* Quantity Controls */
.qty-selector-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.15rem;
}

.qty-label {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-muted);
}

.qty-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    border: none;
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
}

.qty-btn:active {
    transform: scale(0.9);
    background: rgba(15, 23, 42, 0.15);
}

.qty-val {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
    min-width: 20px;
    text-align: center;
}

/* Primary checkout CTA */
.primary-pay-btn {
    width: 100%;
    background: var(--primary-gradient);
    border: none;
    padding: 1rem;
    border-radius: 16px;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 20px var(--primary-glow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    transition: var(--transition-smooth);
}

.primary-pay-btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 10px var(--primary-glow);
}

.primary-pay-btn .btn-text {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.primary-pay-btn .btn-subtext {
    font-size: 0.72rem;
    font-weight: 600;
    opacity: 0.8;
}

/* UPI Payment Modal Overlay */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.payment-modal {
    background: var(--bg-panel);
    border: 1px solid var(--border-color-hover);
    border-radius: 24px;
    width: 100%;
    max-width: 420px;
    padding: 1.5rem;
    box-shadow: var(--card-shadow);
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.payment-modal-overlay.active .payment-modal {
    transform: translateY(0);
}

.close-modal-btn {
    position: absolute;
    top: 1rem;
    right: 1.25rem;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.75rem;
    cursor: pointer;
    outline: none;
}

.modal-header {
    text-align: center;
    margin-bottom: 1.25rem;
    padding: 0 0.5rem;
}

.modal-header h3 {
    font-size: 1.15rem;
    font-weight: 800;
}

.modal-header p {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.modal-header strong {
    color: var(--accent);
    font-size: 0.95rem;
}

/* Mobile App UPI links */
.upi-app-list {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.upi-app-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 750;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    transition: var(--transition-smooth);
}

.upi-app-btn:active {
    transform: scale(0.98);
}

.upi-app-btn.gpay {
    background: #1a73e8;
}
.upi-app-btn.phonepe {
    background: #5f259f;
}
.upi-app-btn.generic {
    background: #22c55e;
}

.modal-divider {
    text-align: center;
    position: relative;
    margin: 1.25rem 0;
}

.modal-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
}

.modal-divider span {
    background: var(--bg-panel);
    padding: 0 0.75rem;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    position: relative;
    z-index: 2;
    letter-spacing: 0.5px;
}

/* QR Code Section */
.qr-code-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    background: rgba(15, 23, 42, 0.03);
    padding: 1.25rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.qr-code-wrap img {
    width: 175px;
    height: 175px;
    border-radius: 10px;
    background: #ffffff;
    padding: 6px;
}

.qr-instructions {
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.4;
}

/* Txn Verification section */
.txn-verification-section {
    margin-top: 1.25rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.txn-instructions {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
}

.txn-instructions strong {
    color: var(--text-main);
}

.verify-submit-btn {
    width: 100%;
    background: var(--accent);
    color: #ffffff;
    border: none;
    padding: 0.85rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 800;
    cursor: pointer;
    margin-top: 0.75rem;
    box-shadow: 0 4px 12px var(--accent-glow);
    transition: var(--transition-smooth);
}

.verify-submit-btn:active {
    transform: translateY(1px);
}

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

/* Responsive Fixes for 3D Viewer */
@media (max-width: 768px) {
    .floating-back-btn {
        top: 0.5rem;
        left: 0.5rem;
        padding: 0.35rem 0.65rem;
        font-size: 0.78rem;
    }
    .drag-hint {
        bottom: 0.45rem;
        right: 0.5rem;
        left: auto;
        transform: none;
        font-size: 0.6rem;
        padding: 0.16rem 0.45rem;
    }
}

/* =========================================================
   DESKTOP / WIDE SCREENS (>= 880px) — side-by-side configurator.
   Mobile layout above is untouched; this only activates on wide viewports.
   Big sticky 3D preview on the LEFT, the step form scrolls on the RIGHT.
   ========================================================= */
@media (min-width: 880px) {
    body { flex-direction: row; min-height: 100vh; }

    /* LEFT — large full-height 3D stage */
    .visualizer-pane {
        position: sticky;
        top: 0;
        width: 58%;
        height: 100vh;
        min-height: 100vh;
        border-bottom: none;
        border-right: 2px solid var(--text-main);
        flex-shrink: 0;
    }

    /* RIGHT — scrolling customizer column (shows ALL steps at once) */
    .customizer-pane {
        width: 42%;
        max-width: none;
        margin: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 2rem 2rem 3rem 2rem;
        scrollbar-width: thin;
    }
    .customizer-pane::-webkit-scrollbar { width: 10px; }
    .customizer-pane::-webkit-scrollbar-thumb { background: var(--border-color-hover); border-radius: 99px; border: 3px solid var(--bg-dark); }

    /* keep the panel content from stretching too wide on big monitors */
    .panel-header, .step-card { max-width: 560px; margin-left: auto; margin-right: auto; }

    /* All-steps mode: the wizard chrome is irrelevant when every step shows. */
    body.all-steps .stepper-progress,
    body.all-steps .stepper-text-indicator { display: none; }

    /* The Pay button is no longer a fixed bar — it flows inline after the last
       step inside the scrolling column. */
    body.all-steps .stepper-nav {
        position: static;
        width: 100%;
        max-width: 560px;
        margin: .5rem auto 0;
        padding: 0;
        box-shadow: none;
        border-top: none;
        background: transparent;
    }
    body.all-steps .primary-pay-btn { width: 100%; }

    /* FIX back-button collision: keep Back top-left, move the rotate/texture
       controls to the TOP-RIGHT so they never overlap it. */
    .floating-back-btn { top: 1.1rem; left: 1.1rem; z-index: 16; }
    .visualizer-overlay-controls { bottom: auto; top: 1.1rem; left: auto; right: 1.1rem; transform: none; }
    .drag-hint { bottom: 1.25rem; }

    /* a touch larger typography on the spacious desktop column */
    .panel-header h2 { font-size: 1.8rem; }
    .step-card { padding: 1.5rem; }
}

/* Extra-wide: cap the preview so the model isn't lost in a huge pane. */
@media (min-width: 1400px) {
    .visualizer-pane { width: 60%; }
    .customizer-pane { width: 40%; padding-left: 3rem; padding-right: 3rem; }
}
