/* ==========================================================================
   MIXEL - PREMIUM STYLE SHEET
   ========================================================================== */

/* Google Fonts Integration */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;500;600;700;800&display=swap');

:root {
    /* Color Palette - Warm Craft Light Mode */
    --bg-dark: #faf7f2;
    --bg-surface: rgba(255, 255, 255, 0.75);
    --bg-surface-solid: #ffffff;
    --bg-surface-hover: rgba(244, 241, 222, 0.6);
    
    --color-text-primary: #3c3530;
    --color-text-secondary: #6d625a;
    --color-text-muted: #a3968e;
    
    /* Brand Gradients & Accents - Warm Rose & Soft Sage */
    --accent-violet: #d48c70; /* Clay / Terracotta Tint */
    --accent-violet-glow: rgba(212, 140, 112, 0.2);
    --accent-cyan: #7a9a7b; /* Soft Sage Green */
    --accent-cyan-glow: rgba(122, 154, 123, 0.2);
    --accent-rose: #e07a5f; /* Rich Terracotta */
    
    --grad-primary: linear-gradient(135deg, #e07a5f 0%, #d4a373 100%);
    --grad-primary-hover: linear-gradient(135deg, #e89178 0%, #deb186 100%);
    --grad-dark: linear-gradient(180deg, #faf7f2 0%, #f4eee1 100%);
    
    /* Layout Constants */
    --border-glass: 1px solid rgba(60, 53, 48, 0.08);
    --border-glass-active: 1px solid rgba(224, 122, 95, 0.4);
    --radius-sm: 10px;
    --radius-md: 18px;
    --radius-lg: 26px;
    
    /* Shadows */
    --shadow-soft: 0 12px 36px -12px rgba(60, 53, 48, 0.12);
    --shadow-glow: 0 0 20px rgba(224, 122, 95, 0.08);
    --shadow-glow-cyan: 0 0 20px rgba(122, 154, 123, 0.08);
}

html {
    scroll-behavior: smooth;
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Inter', sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(224, 122, 95, 0.07) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(122, 154, 123, 0.06) 0px, transparent 50%);
    background-attachment: fixed;
    color: var(--color-text-primary);
    min-height: 100vh;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* Glassmorphism Utility */
.glass-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(16px) saturate(120%);
    -webkit-backdrop-filter: blur(16px) saturate(120%);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), 
                border-color 0.3s ease, 
                box-shadow 0.3s ease;
}

.glass-panel:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

/* Scrollbar Customization */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* Header & Navigation */
header {
    padding: 1.5rem 2rem;
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(250, 247, 242, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(60, 53, 48, 0.06);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--color-text-primary);
    text-decoration: none;
    font-family: 'Outfit', sans-serif;
    letter-spacing: -0.03em;
}

.logo-img {
    height: 36px;
    width: auto;
    object-fit: contain;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.logo:hover .logo-img {
    transform: scale(1.08) rotate(-3deg);
}

.logo-text span {
    background: linear-gradient(135deg, #78c5bb 0%, #4fa296 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    align-items: center;
}

.nav-links a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--color-text-primary);
}

.btn-primary {
    background: var(--grad-primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--shadow-glow);
    transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
    text-decoration: none;
}

.btn-primary:hover {
    background: var(--grad-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(139, 92, 246, 0.4);
}

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

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

.btn-secondary {
    background: rgba(60, 53, 48, 0.05);
    color: var(--color-text-primary);
    border: var(--border-glass);
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: rgba(60, 53, 48, 0.09);
    border-color: rgba(60, 53, 48, 0.15);
    transform: translateY(-2px);
}

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

/* Hero Section */
.hero {
    max-width: 1400px;
    margin: 4rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.badge {
    align-self: flex-start;
    background: rgba(224, 122, 95, 0.1);
    color: #c35c43;
    border: 1px solid rgba(224, 122, 95, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero h1 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
}

.hero h1 span {
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
}

.hero p {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 580px;
}

/* Hero Image Pixelator Card & Dropzone */
.hero-upload-card {
    margin-top: 1.5rem;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-soft);
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 480px;
    text-align: left;
}

/* Glowing Border Pulse Animation */
.hero-upload-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(135deg, rgba(224, 122, 95, 0.4), rgba(6, 182, 212, 0.4));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    animation: borderGlow 4s infinite alternate;
}

@keyframes borderGlow {
    0% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
        box-shadow: inset 0 0 15px rgba(224, 122, 95, 0.1);
    }
}

.hero-dropzone {
    border: 2px dashed rgba(224, 122, 95, 0.3);
    border-radius: 12px;
    padding: 2.25rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    background: rgba(255, 255, 255, 0.15);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.hero-dropzone:hover {
    border-color: var(--accent-rose);
    background: rgba(224, 122, 95, 0.05);
    box-shadow: 0 0 15px rgba(224, 122, 95, 0.12);
}

.hero-dropzone.dragover {
    border-color: var(--accent-cyan);
    background: rgba(6, 182, 212, 0.08);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.2);
    transform: scale(1.02);
}

.upload-icon-container {
    color: var(--accent-rose);
    background: rgba(224, 122, 95, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.25rem;
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.hero-dropzone:hover .upload-icon-container {
    transform: translateY(-4px) scale(1.1);
    background: rgba(224, 122, 95, 0.15);
}

.hero-dropzone h4 {
    font-size: 1.05rem;
    margin: 0;
    font-weight: 700;
    color: var(--color-text-primary);
}

.hero-dropzone p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--color-text-secondary);
}

.hero-dropzone p span.browse-link {
    color: var(--accent-rose);
    font-weight: 600;
    text-decoration: underline;
}

.hero-dropzone span.file-spec {
    font-size: 0.72rem;
    color: var(--color-text-muted);
}

.hero-upload-actions {
    display: flex;
    gap: 0.75rem;
}

.hero-upload-actions button {
    flex: 1;
    padding: 0.75rem 1.25rem;
    font-size: 0.88rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

#btn-hero-demo-btn {
    background: rgba(60, 53, 48, 0.05);
    border: 1px solid rgba(60, 53, 48, 0.1);
    color: var(--color-text-primary);
}

#btn-hero-demo-btn:hover {
    background: rgba(60, 53, 48, 0.1);
    border-color: rgba(60, 53, 48, 0.15);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-collage {
    position: relative;
    width: 100%;
    max-width: 520px;
    height: 480px;
    margin: 2rem 0;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1000px;
}

.collage-frame {
    position: absolute;
    width: 280px;
    border-radius: 12px;
    background: #1e1b18; /* Wood-like physical frame backing */
    padding: 0.9rem;
    border: 4px solid #2d241c; /* Oak frame color */
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.6),
        inset 0 0 15px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(139, 92, 246, 0.05);
    transform: 
        translate3d(var(--translate-x), var(--translate-y), 0) 
        rotate(var(--rotate));
    z-index: var(--z-index);
    transition: all 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
}

/* Glass shine overlay */
.collage-frame::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -150%;
    width: 300%;
    height: 200%;
    background: linear-gradient(
        105deg, 
        rgba(255, 255, 255, 0) 30%, 
        rgba(255, 255, 255, 0.08) 40%, 
        rgba(255, 255, 255, 0.15) 50%, 
        rgba(255, 255, 255, 0.08) 60%, 
        rgba(255, 255, 255, 0) 70%
    );
    transform: rotate(25deg);
    transition: all 0.75s ease;
    pointer-events: none;
    mix-blend-mode: overlay;
}

.collage-frame:hover::after {
    left: 100%;
}

.collage-frame img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.7);
    filter: saturate(1.05) contrast(1.05);
}

.collage-label {
    display: block;
    text-align: center;
    font-size: 0.75rem;
    font-weight: 700;
    color: #e0a96d; /* Warm bronze text */
    margin-top: 0.6rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    opacity: 0.85;
    transition: opacity 0.3s ease, color 0.3s ease, transform 0.3s ease;
}

/* Interactive hover behaviors */
.hero-collage:hover .collage-frame {
    opacity: 0.55;
    filter: saturate(0.85) blur(1px);
    transform: 
        translate3d(calc(var(--translate-x) * 0.7), calc(var(--translate-y) * 0.7), -30px) 
        rotate(calc(var(--rotate) * 0.7));
}

.hero-collage .collage-frame:hover {
    opacity: 1;
    filter: saturate(1.1) contrast(1.05);
    z-index: 10;
    transform: 
        translate3d(var(--translate-x), calc(var(--translate-y) - 25px), 50px) 
        rotate(calc(var(--rotate) * 0.2)) 
        scale(1.18);
    box-shadow: 
        0 35px 70px rgba(0, 0, 0, 0.85),
        0 0 30px rgba(139, 92, 246, 0.25),
        inset 0 0 20px rgba(0, 0, 0, 0.9);
    border-color: #5c4533; /* Brighter wood highlight on hover */
}

.hero-collage .collage-frame:hover .collage-label {
    opacity: 1;
    color: #e07a5f;
    transform: translateY(-2px);
}

/* Pre-made Kits Gallery Section */
.gallery-section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.section-header h2 {
    font-size: 2.5rem;
    letter-spacing: -0.03em;
}

.section-header p {
    color: var(--color-text-secondary);
    max-width: 600px;
}

/* Filter Tabs */
.filter-tabs {
    display: flex;
    gap: 0.6rem;
    justify-content: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-tab {
    background: var(--bg-surface);
    border: var(--border-glass);
    color: var(--color-text-secondary);
    padding: 0.6rem 1.2rem;
    border-radius: 30px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(60, 53, 48, 0.04);
}

.filter-tab:hover {
    background: var(--bg-surface-hover);
    color: var(--color-text-primary);
    transform: translateY(-1px);
}

.filter-tab.active {
    background: var(--accent-rose);
    border-color: var(--accent-rose);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(224, 122, 95, 0.25);
}

.kits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
}

.kit-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
}

.kit-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-cyan);
    border-color: rgba(6, 182, 212, 0.3);
}

.kit-image {
    aspect-ratio: 1;
    width: 100%;
    background: #f0ebe2;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-bottom: var(--border-glass);
}

.kit-preview-canvas {
    image-rendering: pixelated;
    width: 80%;
    height: 80%;
    box-shadow: 0 8px 24px rgba(0,0,0,0.5);
    border-radius: 4px;
    transition: transform 0.3s ease;
}

.kit-card:hover .kit-preview-canvas {
    transform: scale(1.05);
}

/* Customer Creations frame styles */
.creation-frame {
    width: 85%;
    max-width: 250px;
    border-radius: 8px;
    background: #1e1b18; /* Wood-like backing */
    padding: 0.75rem;
    border: 3px solid #2d241c; /* Oak frame border */
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.55),
        inset 0 0 10px rgba(0, 0, 0, 0.7);
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.4s ease;
    display: flex;
    justify-content: center;
    align-items: center;
}

.kit-card:hover .creation-frame {
    transform: scale(1.05) rotate(1deg);
    box-shadow: 
        0 15px 35px rgba(0, 0, 0, 0.7),
        inset 0 0 10px rgba(0, 0, 0, 0.7),
        0 0 20px rgba(224, 122, 95, 0.15);
    border-color: #5c4533;
}

.kit-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex-grow: 1;
}

.kit-tags {
    display: flex;
    gap: 0.5rem;
}

.kit-tag {
    font-size: 0.7rem;
    background: rgba(60, 53, 48, 0.05);
    color: var(--color-text-secondary);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.kit-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
}

.kit-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255,255,255,0.05);
}

.kit-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

.kit-resolution {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Interactive Workspace Generator */
.workspace-section {
    max-width: 1400px;
    margin: 6rem auto;
    padding: 0 2rem;
    scroll-margin-top: 100px;
}

.workspace-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: start;
}

/* Generator Canvas Board */
.editor-container {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.canvas-wrapper {
    aspect-ratio: 1;
    background: #f0ebe2;
    border-radius: var(--radius-lg);
    box-shadow: 
        inset 0 0 30px rgba(60, 53, 48, 0.1),
        0 15px 45px rgba(60, 53, 48, 0.08);
    border: var(--border-glass);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2.5rem;
    overflow: hidden;
}

.canvas-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(240, 235, 226, 0.85);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: opacity 0.3s ease;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(60, 53, 48, 0.1);
    border-top: 4px solid var(--accent-rose, #e07a5f);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1.25rem;
}

.loading-phrase {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--color-text-primary, #3c3530);
    text-align: center;
    max-width: 80%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

/* Physical Board frame simulation styling */
.mdf-board-frame {
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.9),
        0 0 30px rgba(139, 92, 246, 0.05);
    background: #1a1715; /* MDF brown edge */
    padding: 12px;
    border-radius: 8px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: width 0.3s ease, height 0.3s ease;
}

.mdf-board-frame.premium-frame {
    background: #2a201a;
    border: 3px double #f59e0b; /* Elegant gold highlight for premium shape border */
    box-shadow: 
        0 25px 60px -10px rgba(0, 0, 0, 0.9),
        0 0 40px rgba(245, 158, 11, 0.15);
}

.pixel-canvas {
    background: #23201e;
    display: block;
    cursor: crosshair;
    box-shadow: inset 0 0 10px rgba(0,0,0,0.8);
    image-rendering: pixelated;
}

/* Editor Toolbar */
.toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-radius: var(--radius-md);
    background: rgba(60, 53, 48, 0.02);
    border: var(--border-glass);
    gap: 1rem;
}

.tool-group {
    display: flex;
    gap: 0.5rem;
}

.tool-btn {
    background: rgba(60, 53, 48, 0.03);
    border: var(--border-glass);
    color: var(--color-text-secondary);
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
}

.tool-btn:hover {
    background: rgba(60, 53, 48, 0.08);
    color: var(--color-text-primary);
}

.tool-btn.active {
    background: var(--accent-rose);
    color: white;
    border-color: var(--accent-rose);
    box-shadow: 0 0 15px rgba(224, 122, 95, 0.3);
}

.tool-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

.tool-divider {
    width: 1px;
    height: 24px;
    background: rgba(60, 53, 48, 0.12);
    align-self: center;
    margin: 0 0.25rem;
}

/* Tooltip */
.tool-btn::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-surface-solid);
    border: var(--border-glass);
    color: var(--color-text-primary);
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-soft);
}

.tool-btn:hover::after {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Sidebar Configurations & Summary */
.config-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.config-section {
    padding: 1.75rem;
}

.config-section h3 {
    font-size: 1.3rem;
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.config-section h3 svg {
    color: var(--accent-violet);
}

/* Grid controls & Uploader */
.dimension-sliders {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.slider-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.slider-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    font-weight: 500;
}

.slider-label {
    color: var(--color-text-secondary);
}

.slider-value {
    color: var(--accent-cyan);
    font-weight: 700;
}

/* Custom Styled Range Input */
input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    background: rgba(60, 53, 48, 0.08);
    border-radius: 3px;
    outline: none;
    transition: background 0.3s;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--accent-rose);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.3);
    cursor: pointer;
    transition: transform 0.1s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.2);
}

/* Backing Board Package Toggles */
.board-toggles {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 1rem;
}

.board-card {
    border: var(--border-glass);
    background: rgba(60, 53, 48, 0.02);
    border-radius: var(--radius-sm);
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    position: relative;
    overflow: hidden;
}

.board-card:hover {
    background: rgba(60, 53, 48, 0.05);
    border-color: rgba(60, 53, 48, 0.15);
}

.board-card.active {
    background: rgba(224, 122, 95, 0.06);
    border-color: var(--accent-rose);
    box-shadow: 0 0 15px rgba(224, 122, 95, 0.1);
}

.board-card .board-title {
    font-weight: 600;
    font-size: 0.95rem;
}

.board-card .board-desc {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.board-card .board-price {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--accent-cyan);
}

/* Image Upload Area */
.upload-area {
    border: 2px dashed rgba(60, 53, 48, 0.12);
    border-radius: var(--radius-md);
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s ease;
    background: rgba(60, 53, 48, 0.01);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.upload-area:hover {
    border-color: var(--accent-rose);
    background: rgba(224, 122, 95, 0.03);
}

.upload-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(224, 122, 95, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-rose);
}

.upload-area h4 {
    font-size: 1rem;
    font-weight: 600;
}

.upload-area p {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Palette Color Picker */
.palette-container {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 0.75rem;
}

.palette-swatch {
    aspect-ratio: 1;
    border-radius: 8px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5), 0 2px 4px rgba(0,0,0,0.2);
}

.palette-swatch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    right: 2px;
    bottom: 50%;
    background: rgba(255,255,255,0.15);
    border-radius: 5px 5px 0 0;
    pointer-events: none;
}

.palette-swatch:hover {
    transform: scale(1.15) translateY(-2px);
    box-shadow: inset 0 0 6px rgba(0,0,0,0.5), 0 6px 12px rgba(0,0,0,0.3);
}

.palette-swatch.active {
    border-color: #fff;
    box-shadow: 
        inset 0 0 6px rgba(0,0,0,0.5),
        0 0 15px rgba(255, 255, 255, 0.4);
    transform: scale(1.1) translateY(-2px);
}

/* Palette Swatch Tooltip */
.palette-swatch::before {
    content: attr(data-name);
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    background: var(--bg-surface-solid);
    border: var(--border-glass);
    color: var(--color-text-primary);
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
    font-weight: 500;
    border-radius: 4px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all 0.15s ease;
    box-shadow: var(--shadow-soft);
    z-index: 10;
}

.palette-swatch:hover::before {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* E-Commerce Summary & Checkout Box */
.summary-card {
    padding: 2rem;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #ffffff 0%, #f7f3ec 100%);
    box-shadow: var(--shadow-soft), var(--shadow-glow);
    border: 1px solid rgba(224, 122, 95, 0.15);
}

.summary-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding-bottom: 0.75rem;
}

.summary-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
}

.summary-item .item-label {
    color: var(--color-text-secondary);
}

.summary-item .item-val {
    font-weight: 600;
}

.summary-divider {
    height: 1px;
    background: rgba(60, 53, 48, 0.08);
    margin: 1.5rem 0;
}

.price-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

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

.price-total .total-val {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--accent-rose);
}

.btn-checkout {
    width: 100%;
    justify-content: center;
    padding: 1rem;
    font-size: 1.1rem;
    border-radius: var(--radius-md);
}

/* Modal Styling */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 37, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

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

.modal-container {
    width: 100%;
    max-width: 540px;
    max-height: 90vh;
    overflow-y: auto;
    border-radius: var(--radius-lg);
    box-shadow: 0 30px 60px rgba(0,0,0,0.8), 0 0 40px rgba(139, 92, 246, 0.1);
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
    padding: 2.5rem;
    position: relative;
}

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

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease;
}

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

.modal-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Checkout Form elements */
.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.form-control {
    background: #ffffff;
    border: 1px solid rgba(60, 53, 48, 0.15);
    border-radius: var(--radius-sm);
    padding: 0.75rem 1rem;
    color: var(--color-text-primary);
    font-size: 0.95rem;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus {
    border-color: var(--accent-rose);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.15);
    background: #ffffff;
}

.checkout-summary-mini {
    background: rgba(60, 53, 48, 0.02);
    border-radius: var(--radius-sm);
    padding: 1rem;
    border: 1px solid rgba(60, 53, 48, 0.08);
    margin-bottom: 0.5rem;
}

/* Order Success State UI */
.success-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1.5rem;
    padding: 2rem 0;
}

.success-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: rgba(6, 182, 212, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-cyan);
    box-shadow: var(--shadow-glow-cyan);
    animation: success-pulse 2s infinite;
}

.success-state h3 {
    font-size: 1.8rem;
    color: var(--accent-cyan);
}

.success-state p {
    color: var(--color-text-secondary);
    max-width: 400px;
}

.manifest-download-box {
    width: 100%;
    background: rgba(255,255,255,0.02);
    border: var(--border-glass);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.manifest-info-text {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* Animations */
@keyframes success-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0.4);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(6, 182, 212, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(6, 182, 212, 0);
    }
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--accent-rose);
    box-shadow: var(--shadow-glow), var(--shadow-soft);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-primary);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    z-index: 10000;
    transform: translateY(100px);
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    pointer-events: none;
}

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

.toast-icon {
    color: var(--accent-violet);
}

/* Footer styling */
footer {
    border-top: 1px solid rgba(60, 53, 48, 0.06);
    background: #f4eee1;
    padding: 4rem 2rem 2rem 2rem;
    margin-top: 8rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-brand p {
    color: var(--color-text-secondary);
    font-size: 0.95rem;
    max-width: 320px;
}

.footer-links-col {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-links-col h4 {
    font-size: 1.1rem;
    color: var(--color-text-primary);
}

.footer-links-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links-col a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 2rem;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer-bottom a {
    color: var(--color-text-secondary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-bottom a:hover {
    color: var(--accent-rose);
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
        margin: 2rem auto;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-collage {
        margin: 1rem 0 3rem 0;
    }
    .workspace-grid {
        grid-template-columns: 1fr;
        gap: 4rem;
    }
    .footer-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .header-container {
        flex-direction: column;
        gap: 1rem;
    }
    .nav-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 1rem;
    }
    .hero h1 {
        font-size: 2.8rem;
    }
    .hero-collage {
        max-width: 440px;
        height: 400px;
        margin: 1rem 0 2rem 0;
    }
    .collage-frame {
        width: 230px;
        padding: 0.7rem;
        border-width: 3px;
    }
    .collage-label {
        font-size: 0.7rem;
        margin-top: 0.4rem;
    }
}

@media (max-width: 480px) {
    .hero-collage {
        max-width: 320px;
        height: 300px;
    }
    .collage-frame {
        width: 180px;
        padding: 0.5rem;
        border-width: 2px;
    }
    .collage-label {
        font-size: 0.6rem;
        margin-top: 0.3rem;
    }
    .footer-top {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   SHIPPING & LOGISTICS CALCULATOR STYLES
   ========================================================================== */
.shipping-details-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 0.5rem 0;
}

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

.shipping-status-label {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--color-text-secondary);
}

.shipping-badge {
    padding: 0.3rem 0.8rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.shipping-badge.large-letter {
    background: rgba(6, 182, 212, 0.15);
    color: var(--accent-cyan);
    border: 1px solid rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.1);
}

.shipping-badge.small-parcel {
    background: rgba(139, 92, 246, 0.15);
    color: #a78bfa;
    border: 1px solid rgba(139, 92, 246, 0.3);
    box-shadow: 0 0 10px rgba(139, 92, 246, 0.1);
}

.shipping-badge.medium-parcel {
    background: rgba(244, 63, 94, 0.15);
    color: var(--accent-rose);
    border: 1px solid rgba(244, 63, 94, 0.3);
    box-shadow: 0 0 10px rgba(244, 63, 94, 0.1);
}

.weight-progress-container {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.weight-labels {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: var(--color-text-secondary);
}

.weight-labels strong {
    color: var(--color-text-primary);
}

.weight-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 9999px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.weight-bar-fill {
    height: 100%;
    background: var(--grad-primary);
    border-radius: 9999px;
    width: 0%;
    transition: width 0.4s cubic-bezier(0.1, 0.8, 0.2, 1);
    box-shadow: 0 0 8px rgba(139, 92, 246, 0.4);
}

.shipping-specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem 1rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.spec-item {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

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

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

.carrier-recommendation {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    background: rgba(6, 182, 212, 0.04);
    border: 1px solid rgba(6, 182, 212, 0.12);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    transition: all 0.3s ease;
}

.carrier-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-cyan);
    flex-shrink: 0;
}

.carrier-info {
    display: flex;
    flex-direction: column;
}

.carrier-title {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.carrier-desc {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

.surcharge-alert {
    display: flex;
    gap: 0.75rem;
    background: rgba(244, 63, 94, 0.08);
    border: 1px solid rgba(244, 63, 94, 0.2);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    animation: pulse-surcharge 2s infinite ease-in-out;
}

.surcharge-icon {
    font-size: 1.25rem;
    flex-shrink: 0;
    line-height: 1.2;
}

.surcharge-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.surcharge-text strong {
    font-size: 0.85rem;
    color: var(--accent-rose);
    font-weight: 600;
}

.surcharge-text span {
    font-size: 0.75rem;
    color: var(--color-text-secondary);
    line-height: 1.3;
}

@keyframes pulse-surcharge {
    0% { border-color: rgba(244, 63, 94, 0.2); box-shadow: 0 0 0 rgba(244, 63, 94, 0); }
    50% { border-color: rgba(244, 63, 94, 0.4); box-shadow: 0 0 10px rgba(244, 63, 94, 0.05); }
    100% { border-color: rgba(244, 63, 94, 0.2); box-shadow: 0 0 0 rgba(244, 63, 94, 0); }
}

/* Background Swatch Picker */
.bg-picker-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.25rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.bg-swatch-card {
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid rgba(60, 53, 48, 0.12);
    border-radius: 8px;
    padding: 0.45rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
}

.bg-swatch-card:hover {
    transform: translateY(-2px);
    background: white;
    border-color: var(--accent-rose);
    box-shadow: var(--shadow-soft);
}

.bg-swatch-card.active {
    background: white;
    border-color: var(--accent-rose);
    box-shadow: 0 0 10px rgba(224, 122, 95, 0.25);
    outline: 2px solid var(--accent-rose);
}

.bg-swatch-card.disabled {
    opacity: 0.4;
    cursor: not-allowed;
    pointer-events: none;
}

.bg-swatch-preview {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 4px;
    border: 1px solid rgba(0, 0, 0, 0.08);
}

.bg-swatch-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.bg-swatch-card.active .bg-swatch-label {
    color: var(--color-text-primary);
}

/* Background Swatch Previews */
.bg-preview-original {
    background: #e0dbd5;
    background-image: linear-gradient(45deg, #ccc 25%, transparent 25%), linear-gradient(-45deg, #ccc 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #ccc 75%), linear-gradient(-45deg, transparent 75%, #ccc 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
}
.bg-preview-sunset {
    background: linear-gradient(180deg, #7b5bcf, #e07a5f, #f2cc8f);
}
.bg-preview-gradual-sunset {
    background: linear-gradient(180deg, #3d2a70, #c84b31, #f4b183);
}
.bg-preview-sun-rays {
    background: radial-gradient(circle at center, #ffd166 0%, #f78c6c 100%);
}
.bg-preview-beach {
    background: linear-gradient(135deg, #f2cc8f 30%, #3d5a80 100%);
}
.bg-preview-cotton-candy {
    background: linear-gradient(135deg, #ffcad4, #b5e2fa);
}
.bg-preview-retro-check {
    background: linear-gradient(45deg, #e07a5f 25%, transparent 25%), linear-gradient(-45deg, #e07a5f 25%, transparent 25%), linear-gradient(45deg, transparent 75%, #e07a5f 75%), linear-gradient(-45deg, transparent 75%, #e07a5f 75%);
    background-size: 8px 8px;
    background-position: 0 0, 0 4px, 4px -4px, -4px 0px;
    background-color: #f4f1de;
}
.bg-preview-waves {
    background: linear-gradient(135deg, #8b9a7b, #c2d5a8);
}
.bg-preview-rainbow {
    background: linear-gradient(90deg, #ffadad, #ffd6a5, #fdffb6, #caffbf, #9bf6ff, #a0c4ff, #bdb2ff);
}

/* Pulsing highlight for background group */
.bg-picker-group.highlight-pulse {
    position: relative;
    border-radius: var(--radius-sm);
}

.bg-picker-group.highlight-pulse::before {
    content: '';
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 2px dashed var(--accent-rose);
    border-radius: var(--radius-sm);
    animation: border-dash-pulse 1.8s infinite;
    pointer-events: none;
    z-index: 10;
}

@keyframes border-dash-pulse {
    0% {
        opacity: 0.3;
        transform: scale(0.99);
    }
    50% {
        opacity: 1;
        transform: scale(1.01);
    }
    100% {
        opacity: 0.3;
        transform: scale(0.99);
    }
}

/* Coachmark Tooltip styling */
.bg-picker-tooltip {
    position: absolute;
    top: -85px;
    left: 50%;
    transform: translateX(-50%);
    background: #1e1b18;
    color: white;
    padding: 0.65rem 0.85rem;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    font-size: 0.78rem;
    width: 280px;
    z-index: 100;
    animation: bounceTooltip 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bg-tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 12px;
    height: 12px;
    background: #1e1b18;
}

.bg-tooltip-content {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.bg-tooltip-content span {
    line-height: 1.35;
    flex: 1;
    text-align: left;
}

.bg-tooltip-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0;
    margin: -3px 0 0 0;
    line-height: 1;
    transition: color 0.2s ease;
}

.bg-tooltip-close:hover {
    color: white;
}

@keyframes bounceTooltip {
    0% {
        transform: translateX(-50%) translateY(10px) scale(0.9);
        opacity: 0;
    }
    100% {
        transform: translateX(-50%) translateY(0) scale(1);
        opacity: 1;
    }
}

/* Standalone Premade Kit Details Modal Styles */
.premade-modal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
    align-items: start;
    margin-top: 0.5rem;
}

.premade-modal-preview {
    width: 240px;
    height: 240px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #fdfdfb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.05), 0 10px 30px rgba(0,0,0,0.15);
}

.premade-modal-preview canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

.premade-modal-specs {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1rem;
}

.spec-tile {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(60, 53, 48, 0.08);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.8rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.spec-tile .spec-label {
    font-size: 0.7rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.spec-tile strong {
    font-size: 0.95rem;
    color: var(--color-text);
}

@media (max-width: 650px) {
    .premade-modal-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .premade-modal-preview {
        margin: 0 auto;
    }
}

/* ==========================================================================
   Shopping Cart Drawer Styles
   ========================================================================== */

.cart-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(45, 37, 30, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 1050; /* Above regular modals if needed */
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.cart-drawer-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.cart-drawer {
    position: fixed;
    top: 0;
    right: -460px;
    width: 100%;
    max-width: 450px;
    height: 100%;
    background: rgba(30, 24, 21, 0.85);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: -15px 0 50px rgba(0, 0, 0, 0.6);
    z-index: 1051;
    display: flex;
    flex-direction: column;
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.cart-drawer-overlay.active .cart-drawer {
    right: 0;
}

.cart-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.cart-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    background: var(--grad-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.cart-close-btn {
    background: none;
    border: none;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-close-btn:hover {
    color: var(--color-text-primary);
    transform: rotate(90deg);
}

.cart-items-list {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

/* Empty cart state */
.cart-empty-message {
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cart-empty-icon {
    opacity: 0.2;
    color: var(--color-text-primary);
}

.cart-item {
    display: flex;
    gap: 1.15rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: var(--radius-md);
    padding: 1.1rem;
    position: relative;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.cart-item:hover {
    border-color: rgba(255, 255, 255, 0.09);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.cart-item-preview {
    width: 70px;
    height: 70px;
    border-radius: var(--radius-sm);
    background: #fdfdfb;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

.cart-item-preview canvas {
    width: 100%;
    height: 100%;
    image-rendering: pixelated;
    object-fit: contain;
}

.cart-item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Prevents overflow of flex child */
}

.cart-item-name {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 0 0 0.15rem 0;
    font-family: 'Outfit', sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cart-item-details {
    font-size: 0.76rem;
    color: var(--color-text-muted);
    line-height: 1.35;
}

.cart-item-price {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--accent-cyan);
    margin-top: 0.35rem;
}

.cart-item-actions {
    display: flex;
    gap: 0.85rem;
    margin-top: 0.5rem;
}

.cart-item-action-btn {
    background: none;
    border: none;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-edit-cart-item {
    color: var(--accent-rose);
}

.btn-edit-cart-item:hover {
    color: #fca5a5;
}

.btn-remove-cart-item {
    color: var(--color-text-muted);
}

.btn-remove-cart-item:hover {
    color: var(--color-text-primary);
}

.cart-footer {
    padding: 1.5rem 2rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(30, 24, 21, 0.95);
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.cart-summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}

.cart-summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-text-primary);
    border-top: 1px dashed rgba(255, 255, 255, 0.1);
    padding-top: 0.85rem;
    margin-top: 0.25rem;
}

.btn-checkout-cart {
    width: 100%;
    margin-top: 0.5rem;
}

@media (max-width: 480px) {
    .cart-drawer {
        max-width: 100%;
        right: -100%;
    }
}

