        :root {
            --primary: #87CEEB;
            --secondary: #0077BE;
            --accent: #F0F8FF;
			--dark: #1B2845;
			--success: #4FC3F7;
			--text-dark: #2C3E50;
            --highlight: #A8DADC;
        }

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

        body {
            font-family: 'Noto Sans', sans-serif;
            background: linear-gradient(135deg, var(--dark) 0%, var(--secondary) 100%);
            color: var(--accent);
            min-height: 100vh;
            padding: 10px;
        }

        .container {
            max-width: 95%;
            margin: 0 auto;
        }

        h1 {
            font-family: 'Righteous', cursive;
            font-size: 3.5rem;
            text-align: center;
            margin-bottom: 5px;
            background: linear-gradient(135deg, var(--primary), var(--highlight));
            -webkit-background-clip: text;
            -webkit-text-fill-color: transparent;
            background-clip: text;
            letter-spacing: 2px;
        }

        .subtitle {
			text-align: center;
			font-size: 1.4rem;           /* CHANGED: Bigger font (was 1rem) */
			color: var(--primary);       /* CHANGED: Sky blue instead of highlight */
			margin-bottom: 30px;         /* CHANGED: Less space below (was 40px) */
			margin-top: 5px;             /* ADDED: Less space above */
			font-weight: 400;            /* CHANGED: Slightly bolder (was 300) */
		}

        /* Main Layout - Option B: Sidebar Left, Large Canvas Center, Controls Right */
        .main-wrapper {
            display: grid;
            grid-template-columns: 340px 1fr 440px;
            gap: 20px;
            margin-bottom: 30px;
			width: 100%;
        }

        /* Product Selection Panel */
        .selection-panel {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-height: 85vh;
            overflow-y: auto;
            color: white;
        }

        .selection-panel h3 {
            font-family: 'Righteous', cursive;
            font-size: 1.5rem;
            color: var(--primary);
            margin-bottom: 20px;
            letter-spacing: 1px;
        }

        .tier-container {
            display: none;
        }

        .tier-container.active {
            display: block;
        }

        .tier-item {
            padding: 16px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid transparent;
            border-radius: 10px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1.05rem;
            color: white;
        }

        .tier-item:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--highlight);
            transform: translateX(5px);
        }

        .tier-item.active {
            background: var(--primary);
            border-color: var(--accent);
            color: var(--accent);
        }

        .tier-item-detailed {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 12px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid transparent;
            border-radius: 10px;
            margin-bottom: 12px;
            cursor: pointer;
            transition: background 0.3s ease, border-color 0.3s ease;
            overflow: visible;
        }

        .tier-item-detailed:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--highlight);
        }

        .tier-item-detailed .tier-thumb {
            width: 70px;
            height: 70px;
            border-radius: 8px;
            object-fit: cover;
            background: rgba(255, 255, 255, 0.1);
            flex-shrink: 0;
            cursor: zoom-in;
        }

        .tier-thumb-preview {
            display: none;
            position: fixed;
            z-index: 99999;
            width: 220px;
            height: 220px;
            object-fit: cover;
            border-radius: 10px;
            box-shadow: 0 10px 35px rgba(0, 0, 0, 0.6);
            border: 2px solid rgba(255, 255, 255, 0.2);
            pointer-events: none;
        }

        .tier-item-detailed .tier-info {
            flex: 1;
            min-width: 0;
        }

        .tier-item-detailed .tier-name {
            font-weight: 600;
            font-size: 1.05rem;
            margin-bottom: 4px;
            color: white;
        }

        .tier-item-detailed .tier-price {
            font-size: 1rem;
            color: var(--primary);
            opacity: 0.9;
        }

        .back-button {
            padding: 12px 18px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: var(--accent);
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-size: 1rem;
            margin-bottom: 15px;
            display: none;
            text-align: center;
        }

        .back-button.visible {
            display: block;
        }

        .back-button:hover {
            background: rgba(255, 255, 255, 0.2);
        }

        .color-grid {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
        }

        .color-option {
            padding: 14px;
            background: rgba(255, 255, 255, 0.08);
            border: 2px solid transparent;
            border-radius: 8px;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            font-size: 1rem;
        }

        .color-option:hover {
            background: rgba(255, 255, 255, 0.15);
            border-color: var(--highlight);
        }

        .color-option.active {
            background: var(--primary);
            border-color: var(--accent);
            color: var(--accent);
        }

        /* Canvas Container */
        .canvas-section {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 15px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            display: flex;
            flex-direction: column;
            align-items: center;
			width: 100%;
        }

        .view-toggle {
            display: flex;
            gap: 15px;
            margin-bottom: 25px;
        }

        .view-btn {
            padding: 14px 32px;
            background: rgba(255, 255, 255, 0.1);
            border: 2px solid transparent;
            border-radius: 10px;
            color: var(--accent);
            font-size: 1.1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
            font-family: 'Righteous', cursive;
            letter-spacing: 1px;
        }

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

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

        .canvas-wrapper {
            position: relative;
            width: 100%;
            max-width: 800px !important;
            aspect-ratio: 1;
            background: #fff;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 15px 50px rgba(0, 0, 0, 0.5);
			margin: 0 auto;
			user-select: none;
			-webkit-user-select: none;
        }

        .mockup-canvas {
            display: block;
            cursor: grab;
            user-select: none;
        }

        .mockup-canvas:active {
            cursor: grabbing;
        }

        .canvas-overlay {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			pointer-events: none;
			display: flex;
			align-items: center;
			justify-content: center;
		}

        /* Resize Handles */
        .resize-handle {
            position: absolute;
            width: 24px;
            height: 24px;
            background: var(--primary);
            border: 3px solid white;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            z-index: 100;
			opacity: 0;
    		transition: opacity 0.3s ease;
            display: none;
        }
		
		.resize-handle.visible {
			opacity: 1;
            display: block;
		}

        .resize-handle.nw { cursor: nwse-resize; }
        .resize-handle.ne { cursor: nesw-resize; }
        .resize-handle.sw { cursor: nesw-resize; }
        .resize-handle.se { cursor: nwse-resize; }

        .rotate-handle {
            position: absolute;
            width: 36px;
            height: 36px;
            background: var(--highlight);
            border: 3px solid white;
            border-radius: 50%;
            cursor: pointer;
            pointer-events: auto;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            display: none;
            z-index: 100;
			opacity: 0;
    		transition: opacity 0.3s ease;
        }
		
		/* Text Layer Handles */
		.text-resize-handle {
			position: absolute;
			width: 24px;
			height: 24px;
			background: #FFD700;
			border: 3px solid white;
			border-radius: 50%;
			cursor: nwse-resize;
			opacity: 0;
			transition: opacity 0.3s ease;
			z-index: 100;
			touch-action: none;
		}

		.text-rotate-handle {
			position: absolute;
			width: 36px;
			height: 36px;
			background: #FFD700;
			border: 3px solid white;
			border-radius: 50%;
			cursor: grab;
			opacity: 0;
			transition: opacity 0.3s ease;
			z-index: 100;
			display: flex;
			align-items: center;
			justify-content: center;
			touch-action: none;
		}

		.text-rotate-handle::before {
			content: "↻";
			color: white;
			font-weight: bold;
			font-size: 24px;
		}

		.text-layer-selected .text-resize-handle,
		.text-layer-selected .text-rotate-handle {
			opacity: 1;
		}

		.text-layer-wrapper {
			position: absolute;
			cursor: grab;
			user-select: none;
			border: 2px solid #FFD700;
			padding: 8px;
			box-sizing: content-box;
			min-width: 60px;
			min-height: 30px;
		}

		.text-layer-selected {
			border-color: #FFD700;
		}

		.text-layer-selected.typing-active {
			animation: typing-pulse 1.5s ease-in-out infinite;
		}

		@keyframes typing-pulse {
			0%, 100% { border-color: #FFD700; box-shadow: 0 0 8px rgba(255, 215, 0, 0.3); }
			50% { border-color: #FFF176; box-shadow: 0 0 16px rgba(255, 215, 0, 0.6); }
		}

		.text-editable-overlay {
			position: absolute;
			top: 8px; left: 8px; right: 8px; bottom: 8px;
			color: transparent;
			caret-color: transparent;
			outline: none;
			overflow: hidden;
			white-space: pre-wrap;
			word-break: break-word;
			text-align: center;
			display: flex;
			align-items: center;
			justify-content: center;
			cursor: text;
			-webkit-user-select: text;
			user-select: text;
			min-width: 40px;
			min-height: 20px;
		}

		.text-editable-overlay:focus {
			caret-color: #FFFFFF;
		}

		.text-editable-overlay::selection {
			background: rgba(255, 215, 0, 0.4);
		}

		/* Custom thick caret overlay */
		.typing-caret {
			position: absolute;
			width: 3px;
			background: #FFFFFF;
			pointer-events: none;
			animation: caret-blink 1s step-end infinite;
			box-shadow: 0 0 8px rgba(255, 255, 255, 0.9), 0 0 16px rgba(255, 215, 0, 0.6);
			border-radius: 2px;
		}

		@keyframes caret-blink {
			0%, 100% { opacity: 1; }
			50% { opacity: 0; }
		}

        .rotate-handle.visible {
    		opacity: 1;
   	 		display: flex;
    		align-items: center;
    		justify-content: center;
    		font-size: 18px;
		}

        .rotate-handle::before {
            content: "↻";
            color: white;
            font-weight: bold;
        }

        /* Controls Panel */
        .controls-panel {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 20px;
            padding: 25px;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.1);
            max-height: 85vh;
            overflow-y: auto;
			overscroll-behavior: contain;
            color: white;
        }

        .control-section {
            margin-bottom: 25px;
            padding-bottom: 25px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .control-section:last-child {
            border-bottom: none;
            margin-bottom: 0;
            padding-bottom: 0;
        }

        .control-section h3 {
            font-family: 'Righteous', cursive;
            font-size: 1.35rem;
            color: var(--primary);
            margin-bottom: 15px;
            letter-spacing: 1px;
        }

        .file-upload-btn {
            display: block;
            width: 100%;
            padding: 16px;
            background: linear-gradient(135deg, var(--primary), #ff5a66);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            text-align: center;
            margin-bottom: 10px;
        }

        .file-upload-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
        }

        .file-upload-btn.has-file {
            background: linear-gradient(135deg, var(--success), #00e6b8);
        }

        .file-input {
            display: none;
        }

        .delete-design-btn {
            display: none;
            padding: 6px 14px;
            background: rgba(244, 67, 54, 0.15);
            border: 1px solid rgba(244, 67, 54, 0.4);
            border-radius: 20px;
            color: #EF5350;
            font-size: 0.9rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            margin-top: 5px;
            margin-left: 8px;
        }

        .delete-design-btn:hover {
            background: rgba(244, 67, 54, 0.3);
        }

        .delete-design-btn.visible {
            display: inline-block;
        }

		.crop-design-btn {
			display: none;
			padding: 6px 14px;
			background: rgba(79, 195, 247, 0.15);
			border: 1px solid rgba(135, 206, 235, 0.45);
			border-radius: 20px;
			color: #4FC3F7;
			font-size: 0.9rem;
			font-weight: 700;
			cursor: pointer;
			transition: all 0.3s ease;
			margin-top: 5px;
			margin-left: 8px;
		}

		.crop-design-btn:hover {
			background: rgba(79, 195, 247, 0.25);
			transform: translateY(-1px);
		}

		.crop-design-btn.visible {
			display: inline-block;
		}

        /* UX Guidance Styles */
        .welcome-toast {
            background: linear-gradient(135deg, rgba(135, 206, 235, 0.15), rgba(0, 119, 190, 0.15));
            border: 1px solid rgba(135, 206, 235, 0.3);
            border-radius: 10px;
            padding: 14px 16px;
            margin-bottom: 20px;
            position: relative;
            font-size: 0.95rem;
            line-height: 1.5;
            color: var(--accent);
        }

        .welcome-toast-close {
            position: absolute;
            top: 8px;
            right: 10px;
            background: none;
            border: none;
            color: var(--primary);
            font-size: 1.2rem;
            cursor: pointer;
            opacity: 0.7;
            transition: opacity 0.2s;
        }

        .welcome-toast-close:hover {
            opacity: 1;
        }

        .step-label {
            font-size: 0.8rem;
            color: var(--primary);
            opacity: 0.7;
            font-weight: 400;
            font-family: 'Noto Sans', sans-serif;
            letter-spacing: 0;
            margin-bottom: 4px;
            display: block;
        }

        .scroll-hint {
            position: sticky;
            bottom: 0;
            left: 0;
            right: 0;
            text-align: center;
            padding: 10px 0;
            background: none;
            color: #D4A830;
            font-size: 0.9rem;
            font-weight: 600;
            pointer-events: none;
            transition: opacity 0.5s ease;
        }

        .scroll-hint.hidden {
            opacity: 0;
        }

        .scroll-hint-arrow {
            display: block;
            animation: bounceDown 1.5s ease infinite;
        }

        @keyframes bounceDown {
            0%, 100% { transform: translateY(0); }
            50% { transform: translateY(5px); }
        }

        .hover-hint {
            font-size: 0.9rem;
            color: var(--highlight);
            opacity: 0.7;
            font-style: italic;
            margin-bottom: 10px;
        }

        .tooltip-wrapper {
            position: relative;
            display: inline-block;
            width: 100%;
        }

        .btn-tooltip {
            display: none;
            position: absolute;
            bottom: calc(100% + 8px);
            left: 50%;
            transform: translateX(-50%);
            background: rgba(27, 40, 69, 0.95);
            border: 1px solid var(--primary);
            color: var(--accent);
            padding: 8px 14px;
            border-radius: 8px;
            font-size: 0.85rem;
            white-space: nowrap;
            z-index: 100;
            pointer-events: none;
        }

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

        .tooltip-wrapper:hover .btn-tooltip.show-tooltip {
            display: block;
        }

        .status-badge {
            display: inline-block;
            padding: 6px 14px;
            background: rgba(255, 255, 255, 0.1);
            border-radius: 20px;
            font-size: 1rem;
            margin-top: 5px;
            color: rgba(255, 255, 255, 0.7);
        }

        .status-badge.active {
            background: var(--success);
            color: white;
        }
		
		.upload-loading {
			display: flex;
			align-items: center;
			gap: 10px;
			margin-top: 10px;
			color: var(--primary);
			font-size: 1rem;
		}

		.loading-spinner {
			width: 20px;
			height: 20px;
			border: 3px solid rgba(135, 206, 235, 0.3);
			border-top-color: var(--primary);
			border-radius: 50%;
			animation: spin 0.8s linear infinite;
		}

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

        .button-group {
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            gap: 10px;
            margin-bottom: 15px;
        }

        .control-btn {
            padding: 13px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.2);
            border-radius: 8px;
            color: var(--accent);
            font-size: 1rem;
            cursor: pointer;
            transition: all 0.3s ease;
            font-weight: 600;
        }

        .control-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            transform: translateY(-1px);
        }

        .control-btn:active {
            transform: translateY(0);
        }

        /* Print Guides Toggle (spans full width of the button grid) */
        .guides-toggle-btn {
            grid-column: 1 / -1;
        }

        .guides-toggle-btn.is-on {
            background: var(--secondary);
            border-color: rgba(135, 206, 235, 0.7);
            color: #fff;
        }

        /* Size and Quantity Selection */
        .form-group {
            margin-bottom: 15px;
        }

        .form-group label {
            display: block;
            margin-bottom: 8px;
            color: var(--highlight);
            font-weight: 600;
            font-size: 1.05rem;
        }

        .form-group select,
		.form-group input[type="number"] {
			width: 100%;
			padding: 14px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: #2C3E50;
			font-size: 1.05rem;
			font-family: 'Noto Sans', sans-serif;
			font-weight: 500;
		}
		
		/* Warp dropdown in right panel */
		#textWarpType {
			width: 100%;
			padding: 12px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: #2C3E50;
			font-size: 1rem;
			font-family: 'Noto Sans', sans-serif;
			font-weight: 500;
		}

		#textWarpType option {
			background: white;
			color: #2C3E50;
		}

		.form-group select:focus,
		.form-group input:focus {
			outline: none;
			border-color: var(--secondary);
			background: rgba(255, 255, 255, 1);    /* CHANGED */
		}

		.form-group select option {
			background: white;         /* CHANGED */
			color: #2C3E50;           /* CHANGED */
			padding: 10px;
		}

		/* Size selector row + size chart button */
		.size-row {
			display: flex;
			gap: 10px;
			align-items: center;
		}

		.size-row select {
			flex: 1 1 auto;
		}

		.size-chart-btn {
			flex: 0 0 auto;
			padding: 12px 14px;
			border-radius: 10px;
			border: 2px solid rgba(255, 255, 255, 0.18);
			background: rgba(255, 255, 255, 0.08);
			color: #fff;
			font-weight: 700;
			cursor: pointer;
			transition: all 0.2s ease;
			white-space: nowrap;
		}
		.size-chart-btn:hover {
			transform: translateY(-1px);
			background: rgba(255, 255, 255, 0.12);
			border-color: rgba(79, 195, 247, 0.6);
		}

        .price-display {
            background: rgba(79, 195, 247, 0.15);
            border: 1px solid rgba(135, 206, 235, 0.3);
            border-radius: 10px;
            padding: 12px 15px;
            margin-top: 10px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .price-label {
            color: var(--primary);
            font-weight: 600;
            font-size: 1.05rem;
        }

        .price-amount {
            font-family: 'Righteous', cursive;
            font-size: 1.4rem;
            color: #4FC3F7;
        }

        .price-each {
            color: rgba(135, 206, 235, 0.6);
            font-size: 1rem;
        }

        .action-buttons {
            display: flex;
            flex-direction: column;
            gap: 12px;
            align-items: center;
        }

        .cart-loading-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(27, 40, 69, 0.85);
            z-index: 99999;
            justify-content: center;
            align-items: center;
            flex-direction: column;
            gap: 20px;
        }

        .cart-loading-overlay.active {
            display: flex;
        }

        .cart-loading-spinner {
            width: 50px;
            height: 50px;
            border: 4px solid rgba(135, 206, 235, 0.3);
            border-top-color: var(--primary);
            border-radius: 50%;
            animation: spin 0.8s linear infinite;
        }

        .cart-loading-text {
            color: var(--accent);
            font-size: 1.2rem;
            font-weight: 600;
            text-align: center;
            max-width: 300px;
            line-height: 1.5;
        }

        .cart-loading-subtext {
            color: var(--primary);
            font-size: 0.95rem;
            opacity: 0.8;
        }

/* Generic modal (Size chart + Crop) */
.dt-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
}

.dt-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
}

.dt-modal-content {
    position: relative;
    max-width: 920px;
    width: calc(100% - 28px);
    max-height: calc(100% - 28px);
    margin: 14px auto;
    background: rgba(20, 25, 33, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 16px;
    padding: 18px;
    overflow: auto;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
}

.dt-modal-close {
    position: sticky;
    top: 0;
    float: right;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 28px;
    font-weight: 800;
    cursor: pointer;
}

.dt-modal-body {
    clear: both;
    padding-top: 10px;
}

.dt-modal-body img,
.dt-modal-body iframe {
    width: 100%;
    height: 75vh;
    border: 0;
    border-radius: 10px;
    background: #fff;
}

.dt-modal-title {
    margin: 0 0 12px 0;
    color: #fff;
    font-size: 1.25rem;
    font-weight: 800;
}

.crop-canvas {
    width: 100%;
    height: auto;
    border-radius: 10px;
    background: #fff;
}

.crop-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
    margin-top: 12px;
}

.crop-actions-spacer {
    flex: 1 1 auto;
}

        .action-buttons .tooltip-wrapper {
            width: 100%;
        }

        .action-buttons .primary-btn,
        .action-buttons .secondary-btn {
            width: 100%;
        }

        .primary-btn {
            padding: 16px;
            background: linear-gradient(135deg, var(--success), #00e6b8);
            color: white;
            border: none;
            border-radius: 10px;
            font-size: 1.2rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
            font-family: 'Righteous', cursive;
            letter-spacing: 1px;
        }

        .primary-btn:hover:not(:disabled) {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px rgba(6, 214, 160, 0.4);
        }

        .primary-btn:disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

        .secondary-btn {
            padding: 14px;
            background: transparent;
            border: 2px solid var(--primary);
            border-radius: 10px;
            color: var(--primary);
            font-size: 1.1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

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

        .info-text {
            font-size: 1rem;
            color: var(--highlight);
            margin-top: 8px;
            line-height: 1.5;
            opacity: 0.8;
        }

        .dpi-indicator {
            display: none;
            margin-top: 10px;
            padding: 8px 12px;
            border-radius: 8px;
            font-size: 1rem;
            font-weight: 600;
            text-align: center;
            white-space: pre-line;
            line-height: 1.35;
        }
        .dpi-indicator.dpi-good {
            display: block;
            background: rgba(76, 175, 80, 0.2);
            border: 1px solid rgba(76, 175, 80, 0.5);
            color: #66BB6A;
        }
        .dpi-indicator.dpi-warning {
            display: block;
            background: rgba(255, 193, 7, 0.2);
            border: 1px solid rgba(255, 193, 7, 0.5);
            color: #FFD54F;
        }
        .dpi-indicator.dpi-low {
            display: block;
            background: rgba(244, 67, 54, 0.2);
            border: 1px solid rgba(244, 67, 54, 0.5);
            color: #EF5350;
        }

		/* Inline Text Controls in Sidebar */
		#inlineTextControls {
			margin-top: 15px;
			padding-top: 15px;
			border-top: 1px solid rgba(255, 255, 255, 0.1);
			display: flex;
			flex-direction: column;
			gap: 8px;
		}

		#inlineTextControls .font-list {
			max-height: 250px;
		}

		.inline-text-actions {
			display: flex;
			flex-direction: column;
			gap: 8px;
			margin-top: 10px;
		}

		.delete-layer-btn {
			width: 100%;
			padding: 10px;
			background: rgba(244, 67, 54, 0.15);
			border: 2px solid rgba(244, 67, 54, 0.4);
			border-radius: 8px;
			color: #EF5350;
			font-weight: 600;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.delete-layer-btn:hover {
			background: rgba(244, 67, 54, 0.3);
			border-color: #EF5350;
		}

		.text-alignment-btns {
			display: flex;
			gap: 8px;
			margin-bottom: 15px;
		}

		.text-align-btn {
			flex: 1;
			padding: 10px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: var(--accent);
			font-size: 1rem;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.text-align-btn:hover {
			background: rgba(255, 255, 255, 0.2);
		}

		.text-align-btn.active {
			background: var(--secondary);
			border-color: var(--accent);
			color: white;
		}

		.text-curve-container {
			margin-top: 15px;
		}

		.text-curve-slider {
			width: 100%;
			height: 8px;
			border-radius: 5px;
			background: rgba(135, 206, 235, 0.3);
			outline: none;
			-webkit-appearance: none;
		}

		.text-curve-slider::-webkit-slider-thumb {
			-webkit-appearance: none;
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.text-curve-slider::-moz-range-thumb {
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			border: none;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.text-curve-value {
			text-align: center;
			color: var(--accent);
			font-weight: 700;
			font-size: 1rem;
			margin-top: 8px;
		}
		/* Force Select2 dropdown options to have dark text */
		.select2-container--default .select2-results__option {
			background-color: white !important;
			color: #2C3E50 !important;
			font-weight: 500 !important;
		}

		.select2-container--default .select2-results__option--highlighted {
			background-color: #87CEEB !important;
			color: white !important;
		}


        /* Responsive */
        @media (max-width: 1400px) {
            .main-wrapper {
                grid-template-columns: 260px 1fr 350px;
            }
        }

        @media (max-width: 1024px) {
            .main-wrapper {
                grid-template-columns: 1fr;
            }

            .selection-panel,
            .controls-panel {
                max-height: none;
            }

            h1 {
                font-size: 2.5rem;
            }
        }

        @media (max-width: 768px) {
            h1 {
                font-size: 2rem;
            }

            .color-grid {
                grid-template-columns: 1fr;
            }

            .view-toggle {
                flex-direction: column;
            }
			
			.canvas-wrapper {
        max-width: 800px !important;
			}
        }

        /* Scrollbar Styling */
        .selection-panel::-webkit-scrollbar,
        .controls-panel::-webkit-scrollbar {
            width: 8px;
        }

        .selection-panel::-webkit-scrollbar-track,
        .controls-panel::-webkit-scrollbar-track {
            background: rgba(255, 255, 255, 0.05);
            border-radius: 10px;
        }

        .selection-panel::-webkit-scrollbar-thumb,
        .controls-panel::-webkit-scrollbar-thumb {
            background: var(--primary);
            border-radius: 10px;
        }
		/* FORCE FULL WIDTH - Only for Mockup Designer Section */
		.mockup-full-width {
			max-width: 100% !important;
			width: 100% !important;
			padding: 0 !important;
		}

		.mockup-full-width .container {
			max-width: 100% !important;
			width: 100% !important;
			padding: 10px !important;
		}

		.mockup-full-width .main-wrapper {
			max-width: 100% !important;
			width: 100% !important;
		}

		.mockup-full-width .canvas-section {
			max-width: 100% !important;
			width: 100% !important;
		}

		.mockup-full-width .canvas-wrapper {
			max-width: 800px !important;
			width: 100% !important;
		}
		/* Fix footer visibility */
		#containerfooter,
		#containerfooter .container,
		#containerfooter .footercol1,
		#containerfooter .footercol2,
		#containerfooter .footercol3,
		#containerfooter .footercol4 {
			color: #ffffff !important;
		}

		#containerfooter h3 {
			color: #ffffff !important;
		}

		#containerfooter p,
		#containerfooter .vcard p,
		#containerfooter .tel,
		#containerfooter .virtue_image_widget_caption {
			color: rgba(255, 255, 255, 0.85) !important;
		}

		#containerfooter a,
		#containerfooter a.email,
		#containerfooter .menu a span,
		#containerfooter .widget_nav_menu a {
			color: rgba(255, 255, 255, 0.85) !important;
		}

		#containerfooter a:hover {
			color: #87CEEB !important;
		}

		#containerfooter i,
		#containerfooter .icon-mobile,
		#containerfooter .icon-envelope,
		#containerfooter .icon-instagram {
			color: #ffffff !important;
		}

		#containerfooter .footerbase,
		#containerfooter .footerbase p,
		#containerfooter .footerbase a,
		#containerfooter .footercredits p {
			color: rgba(255, 255, 255, 0.7) !important;
		}

		#containerfooter .footerbase a:hover {
			color: #87CEEB !important;
		}

		/* Prevent purple highlighting when resizing */
		.canvas-wrapper,
		.canvas-wrapper *,
		.mockup-canvas,
		.canvas-overlay,
		.resize-handle,
		.rotate-handle {
			user-select: none;
			-webkit-user-select: none;
			-moz-user-select: none;
			-ms-user-select: none;
		}

		/* Also prevent dragging of elements */
		.canvas-wrapper img,
		.mockup-canvas {
			-webkit-user-drag: none;
			-khtml-user-drag: none;
			-moz-user-drag: none;
			-o-user-drag: none;
			user-drag: none;
		}
		/* Canvas Placeholder Message */
		.canvas-placeholder {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
			display: flex;
			align-items: center;
			justify-content: center;
			background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(240, 248, 255, 0.1));
			border-radius: 15px;
			z-index: 10;
		}

		.canvas-placeholder.hidden {
			display: none;
		}

		.placeholder-content {
			text-align: center;
			padding: 40px;
		}

		.placeholder-content h2 {
			font-family: 'Righteous', cursive;
			font-size: 3rem;              /* CHANGED: Larger */
			color: var(--primary);
			margin-bottom: 20px;          /* CHANGED: More space */
			letter-spacing: 1px;
		}

		.placeholder-content p {
			font-size: 1.5rem;            /* CHANGED: Much larger */
			color: #2C3E50;               /* CHANGED: DARK BLUE for readability */
			margin-bottom: 30px;          /* CHANGED: More space */
			font-weight: 600;             /* ADDED: Bolder text */
			text-shadow: none;  /* Removed after dark blue chnage */
		}

		.placeholder-arrow {
			font-size: 4rem;              /* CHANGED: Bigger arrow */
			color: var(--primary);
			animation: slideLeft 2s infinite;  /* CHANGED: Left pointing animation */
		}

		/* Desktop: Arrow points LEFT */
		@keyframes slideLeft {
			0%, 20%, 50%, 80%, 100% {
				transform: translateX(0);
			}
			40% {
				transform: translateX(-20px);
			}
			60% {
				transform: translateX(-10px);
			}
		}

		/* Mobile/Tablet: Arrow points UP */
		@media (max-width: 1024px) {
			.placeholder-arrow {
				animation: bounce 2s infinite;
				font-size: 0;
			}

			.placeholder-arrow::after {
				content: '↑';
				font-size: 4rem;
			}

			.scroll-hint {
				display: none !important;
			}

			@keyframes bounce {
				0%, 20%, 50%, 80%, 100% {
					transform: translateY(0);
				}
				40% {
					transform: translateY(-20px);
				}
				60% {
					transform: translateY(-10px);
				}
			}
		}
		/* ==================== TEXT EDITOR STYLES ==================== */

		/* Google Fonts loaded via wp_enqueue_style in PHP for reliable availability */

		/* Add Text Button */
		.add-text-btn {
			padding: 16px;
			background: linear-gradient(135deg, var(--primary), #ff5a66);
			color: white;
			border: none;
			border-radius: 10px;
			font-size: 1.1rem;
			font-weight: 600;
			cursor: pointer;
			transition: all 0.3s ease;
			text-align: center;
			margin-bottom: 15px;
			font-family: 'Righteous', cursive;
			letter-spacing: 1px;
		}

		.add-text-btn:hover {
			transform: translateY(-2px);
			box-shadow: 0 10px 25px rgba(230, 57, 70, 0.4);
		}

		.add-text-btn:disabled {
			opacity: 0.5;
			cursor: not-allowed;
			transform: none;
		}


		/* Text Input */
		.text-input-group {
			margin-bottom: 25px;
		}

		.text-input-group label {
			display: block;
			margin-bottom: 10px;
			color: var(--primary);
			font-weight: 600;
			font-size: 1rem;
		}

		.text-input-field {
			width: 100%;
			padding: 15px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 10px;
			color: #2C3E50;
			font-size: 1.5rem;
			font-family: inherit;
			font-weight: bold;
			text-align: center;
		}

		.text-input-field:focus {
			outline: none;
			border-color: var(--secondary);
			background: white;
		}
		

		.control-group {
			background: rgba(135, 206, 235, 0.1);
			padding: 15px;
			border-radius: 10px;
		}

		.control-group label {
			display: block;
			margin-bottom: 8px;
			color: var(--primary);
			font-weight: 600;
			font-size: 0.9rem;
		}

		.control-group select,
		.control-group input {
			width: 100%;
			padding: 12px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: #2C3E50;
			font-size: 1rem;
			font-family: 'Noto Sans', sans-serif;
			font-weight: 500;
		}
		
		/* Force native dropdowns for pattern and gradient - override Select2 completely */
		#patternType.select2-hidden-accessible + .select2,
		#gradientType.select2-hidden-accessible + .select2 {
			display: none !important;
		}

		#patternType,
		#gradientType {
			display: block !important;
			visibility: visible !important;
			position: static !important;
			width: 100% !important;
			height: auto !important;
			clip: auto !important;
			-webkit-appearance: menulist !important;
			-moz-appearance: menulist !important;
			appearance: menulist !important;
			padding: 12px !important;
			background: rgba(255, 255, 255, 0.95) !important;
			border: 2px solid rgba(135, 206, 235, 0.3) !important;
			border-radius: 8px !important;
			color: #2C3E50 !important;
			font-size: 1rem !important;
		}

		.control-group select:focus,
		.control-group input:focus {
			outline: none;
			border-color: var(--secondary);
		}

		.control-group select option {
			background: white;
			color: #2C3E50;
		}

		/* Font Size Slider */
		.size-slider-container {
			display: flex;
			align-items: center;
			gap: 15px;
		}

		.size-slider {
			flex: 1;
			height: 8px;
			border-radius: 5px;
			background: rgba(135, 206, 235, 0.3);
			outline: none;
			-webkit-appearance: none;
		}

		.size-slider::-webkit-slider-thumb {
			-webkit-appearance: none;
			appearance: none;
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.size-slider::-moz-range-thumb {
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			border: none;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.size-value {
			min-width: 50px;
			text-align: center;
			color: var(--accent);
			font-weight: 700;
			font-size: 1.1rem;
		}

		/* Color Picker */
		.color-picker-container {
			display: flex;
			align-items: center;
			gap: 15px;
		}

		.color-picker {
			width: 60px;
			height: 60px;
			border: 3px solid var(--primary);
			border-radius: 10px;
			cursor: pointer;
		}

		.color-hex {
			flex: 1;
			padding: 12px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: #2C3E50;
			font-family: 'Courier New', monospace;
			font-weight: 600;
			text-align: center;
		}

		/* Style Toggles */
		.style-toggles {
			display: flex;
			gap: 10px;
		}

		.style-toggle-btn {
			flex: 1;
			padding: 12px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: var(--accent);
			font-size: 1rem;
			font-weight: 700;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.style-toggle-btn:hover {
			background: rgba(255, 255, 255, 0.2);
		}

		.style-toggle-btn.active {
			background: var(--secondary);
			border-color: var(--accent);
			color: white;
		}

		/* Alignment Buttons */
		.alignment-buttons {
			display: flex;
			gap: 10px;
		}

		.align-btn {
			flex: 1;
			padding: 12px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: var(--accent);
			font-size: 1.2rem;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.align-btn:hover {
			background: rgba(255, 255, 255, 0.2);
		}

		.align-btn.active {
			background: var(--secondary);
			border-color: var(--accent);
			color: white;
		}


		/* Advanced Effects Toggle */
		.advanced-toggle {
			padding: 12px;
			background: rgba(135, 206, 235, 0.15);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: var(--accent);
			font-size: 0.95rem;
			cursor: pointer;
			transition: all 0.3s ease;
			text-align: center;
			margin-bottom: 20px;
			font-weight: 600;
		}

		.advanced-toggle:hover {
			background: rgba(135, 206, 235, 0.25);
			border-color: var(--primary);
		}

		.advanced-toggle.active {
			background: var(--secondary);
			border-color: var(--accent);
			color: white;
		}

		.advanced-effects {
			display: none;
			animation: slideDown 0.3s ease;
		}

		.advanced-effects.visible {
			display: block;
		}

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

		/* Curve Slider */
		.curve-slider-container {
			display: flex;
			align-items: center;
			gap: 15px;
		}

		.curve-slider {
			flex: 1;
			height: 8px;
			border-radius: 5px;
			background: rgba(135, 206, 235, 0.3);
			outline: none;
			-webkit-appearance: none;
		}

		.curve-slider::-webkit-slider-thumb {
			-webkit-appearance: none;
			appearance: none;
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.curve-slider::-moz-range-thumb {
			width: 20px;
			height: 20px;
			border-radius: 50%;
			background: white;
			cursor: pointer;
			border: none;
			box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
		}

		.curve-value {
			min-width: 50px;
			text-align: center;
			color: var(--accent);
			font-weight: 700;
			font-size: 1rem;
		}

		/* Effect Toggles */
		.effect-toggle-group {
			display: flex;
			gap: 10px;
			margin-bottom: 15px;
		}

		.effect-toggle {
			flex: 1;
			padding: 10px;
			background: rgba(255, 255, 255, 0.1);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 8px;
			color: var(--accent);
			font-size: 0.9rem;
			cursor: pointer;
			transition: all 0.3s ease;
			text-align: center;
			font-weight: 600;
		}

		.effect-toggle:hover {
			background: rgba(255, 255, 255, 0.2);
		}

		.effect-toggle.active {
			background: var(--success);
			border-color: white;
			color: white;
		}

		/* Spacing Inputs */
		.spacing-group {
			display: grid;
			grid-template-columns: 1fr 1fr;
			gap: 10px;
		}

		.spacing-input {
			display: flex;
			flex-direction: column;
			gap: 5px;
		}

		.spacing-input label {
			font-size: 0.85rem;
			color: var(--primary);
		}

		.spacing-input input {
			padding: 8px;
			background: rgba(255, 255, 255, 0.95);
			border: 2px solid rgba(135, 206, 235, 0.3);
			border-radius: 6px;
			color: #2C3E50;
			font-size: 0.9rem;
		}
		
		.reset-text-btn {
			width: 100%;
			padding: 10px;
			background: transparent;
			border: 2px solid #e67e22;
			border-radius: 8px;
			color: #e67e22;
			font-weight: 600;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.reset-text-btn:hover {
			background: #e67e22;
			color: white;
		}

		/* Text Layer Preview on Canvas */
		.text-layer {
			position: absolute;
			cursor: move;
			user-select: none;
			white-space: nowrap;
			transform-origin: center center;
		}

		.text-layer.selected {
			outline: 2px dashed var(--primary);
			outline-offset: 5px;
		}

		/* Text Layer Controls */
		.text-layers-list {
			background: rgba(135, 206, 235, 0.05);
			border-radius: 10px;
			padding: 15px;
			margin-bottom: 15px;
		}

		.text-layer-item {
			display: flex;
			justify-content: space-between;
			align-items: center;
			padding: 10px;
			background: rgba(255, 255, 255, 0.1);
			border-radius: 8px;
			margin-bottom: 8px;
			border: 2px solid transparent;
			transition: all 0.2s ease;
			cursor: pointer;
		}

		.text-layer-item.active-layer {
			border-color: #FFD700;
			background: rgba(255, 215, 0, 0.15);
		}

		.text-layer-item:last-child {
			margin-bottom: 0;
		}

		.text-layer-name {
			color: var(--accent);
			font-weight: 500;
		}

		.text-layer-item.active-layer .text-layer-name {
			color: #FFD700;
		}

		.editing-layer-header {
			background: rgba(255, 215, 0, 0.15);
			border: 1px solid rgba(255, 215, 0, 0.4);
			border-radius: 8px;
			padding: 8px 12px;
			color: #FFD700;
			font-weight: 600;
			font-size: 0.9rem;
			text-align: center;
			margin-bottom: 5px;
		}

		.text-layer-actions {
			display: flex;
			gap: 8px;
		}

		.text-layer-btn {
			padding: 6px 12px;
			background: rgba(135, 206, 235, 0.2);
			border: 1px solid var(--primary);
			border-radius: 5px;
			color: var(--accent);
			font-size: 0.85rem;
			cursor: pointer;
			transition: all 0.3s ease;
		}

		.text-layer-btn:hover {
			background: var(--primary);
			color: white;
		}

		/* Custom Font Selector - WORKS ON ALL BROWSERS */
		.custom-font-selector {
			position: relative;
			width: 100%;
		}

		.current-font {
			width: 100%;
			padding: 15px;
			background: white;
			border: 2px solid #0077BE;
			border-radius: 8px;
			color: #2C3E50;
			font-size: 1.1rem;
			font-weight: 600;
			cursor: pointer;
			user-select: none;
			display: flex;
			justify-content: space-between;
			align-items: center;
			transition: all 0.3s ease;
		}

		.current-font:hover {
			background: #f0f8ff;
			border-color: #87CEEB;
		}

		.dropdown-arrow {
			color: #0077BE;
			font-size: 0.8rem;
			transition: transform 0.3s ease;
		}

		.current-font.open .dropdown-arrow {
			transform: rotate(180deg);
		}

		.font-list {
			display: none;
			position: absolute;
			top: calc(100% + 5px);
			left: 0;
			right: 0;
			max-height: 400px;
			overflow-y: auto;
			background: white;
			border: 2px solid #0077BE;
			border-radius: 8px;
			z-index: 10000;
			box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
		}

		.font-list.open {
			display: block;
		}

		.font-item {
			padding: 12px 15px;
			cursor: pointer;
			color: #2C3E50;
			font-size: 1.1rem;
			transition: all 0.2s ease;
			border-bottom: 1px solid #f0f0f0;
		}

		.font-item:hover {
			background: #87CEEB;
			color: white;
		}

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

		.font-list::-webkit-scrollbar {
			width: 8px;
		}

		.font-list::-webkit-scrollbar-track {
			background: #f0f0f0;
		}

		.font-list::-webkit-scrollbar-thumb {
			background: #0077BE;
			border-radius: 4px;
		}
		
