/* Design System & Variables */
:root {
    --bg-main: #06070d;
    --bg-surface: rgba(20, 22, 37, 0.45);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.18);
    
    --primary: #ff3366;
    --primary-glow: rgba(255, 51, 102, 0.4);
    --secondary: #00f0ff;
    --secondary-glow: rgba(0, 240, 255, 0.4);
    
    --text-primary: #f5f6f9;
    --text-secondary: #9ea4b0;
    --text-muted: #646a78;
    
    --glass-blur: blur(16px);
    --transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --font-sans: 'Inter', sans-serif;
    --font-display: 'Outfit', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography & Layout Containers */
h1, h2, h3, h4 {
    font-family: var(--font-display);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1.5rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition);
}

/* Glassmorphism utility */
.glass {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    font-family: var(--font-display);
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), #e6005c);
    color: white;
    box-shadow: 0 4px 15px var(--primary-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 51, 102, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 8px;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(6, 7, 13, 0.7);
    backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    display: flex;
    align-items: center;
}

.logo-accent {
    color: var(--primary);
    text-shadow: 0 0 10px var(--primary-glow);
}

.logo-sub {
    color: var(--text-secondary);
    font-weight: 400;
}

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

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--text-primary);
    text-shadow: 0 0 8px rgba(255,255,255,0.3);
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* Cart Button */
.cart-btn {
    position: relative;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.6rem;
    color: var(--text-primary);
    cursor: pointer;
    display: flex;
    transition: var(--transition);
}

.cart-btn:hover {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    background: rgba(255, 51, 102, 0.05);
}

.cart-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    min-width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

/* Hero Section */
.hero {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    align-items: center;
    max-width: 1200px;
    margin: 3rem auto;
    padding: 0 1.5rem;
    gap: 3rem;
    position: relative;
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-content .badge {
    background: rgba(255, 51, 102, 0.1);
    color: var(--primary);
    border: 1px solid rgba(255, 51, 102, 0.2);
    padding: 0.4rem 1rem;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 40%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    max-width: 500px;
}

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

/* Hero Visual & Glowing Orbs */
.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 400px;
}

.glow-orb {
    position: absolute;
    width: 250px;
    height: 250px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.35;
    z-index: 1;
    animation: pulseOrbs 8s infinite alternate ease-in-out;
}

.glow-orb.red {
    background: var(--primary);
    top: 10%;
    left: 10%;
}

.glow-orb.blue {
    background: var(--secondary);
    bottom: 10%;
    right: 10%;
    animation-delay: -4s;
}

@keyframes pulseOrbs {
    0% { transform: scale(1) translate(0, 0); }
    100% { transform: scale(1.2) translate(15px, -15px); }
}

.hero-card {
    position: relative;
    z-index: 2;
    width: 85%;
    padding: 2.5rem;
    border-color: rgba(255, 255, 255, 0.12);
}

.hero-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.hero-card .chip {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.3rem 0.8rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--secondary);
}

.hero-card .price {
    font-size: 1.5rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

.hero-card h3 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

/* Store Section Header */
.section-header {
    text-align: center;
    margin-top: 4rem;
    margin-bottom: 2.5rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: var(--text-secondary);
}

/* Creator Section Grid Layout */
.creator-section {
    margin-top: 2rem;
    margin-bottom: 5rem;
}

.creator-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 2.5rem;
    align-items: start;
}

/* Multi-View Tab Switcher Styling */
.view-tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.view-tabs {
    display: inline-flex;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    padding: 0.3rem;
    border-radius: 30px;
}

.view-tab {
    background: none;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 20px;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.view-tab.active {
    background: var(--text-primary);
    color: var(--bg-main);
    box-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

/* T-Shirt 3D Preview Canvas Container */
.canvas-container {
    display: flex;
    flex-direction: column;
    padding: 0;
    height: 520px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
}

.viewer-3d-wrap {
    width: 100%;
    height: 100%;
    position: relative;
    flex: 1;
}

#tshirt-3d-canvas {
    width: 100%;
    height: 100%;
    display: block;
    cursor: grab;
    touch-action: none;
    outline: none;
    border-radius: 20px;
}

#tshirt-3d-canvas:focus-visible {
    box-shadow: inset 0 0 0 2px var(--secondary);
}

.viewer-loading {
    --secondary: #63e2d1;
    --text-secondary: #c4ccd8;
    position: absolute;
    inset: 0;
    z-index: 4;
    display: grid;
    place-items: center;
    padding: 24px;
    background: rgba(6, 7, 13, .82);
    backdrop-filter: blur(8px);
    border-radius: inherit;
}

.viewer-loading[hidden] { display: none; }
.viewer-loading-card { width: min(100%, 280px); text-align: center; color: #fff; }
.viewer-loading-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--secondary); font-size: 2rem; font-weight: 900; }
.viewer-loading-brand span { color: #fff; font-size: .75rem; letter-spacing: .24em; }
.viewer-loading-card p { margin: 20px 0 14px; font-size: .95rem; font-weight: 600; }
.viewer-loading-detail { display: block; margin-top: 12px; color: var(--text-secondary); font-size: .78rem; font-variant-numeric: tabular-nums; }
#viewer-loading-progress { display: block; width: 100%; height: 6px; border: 0; border-radius: 99px; overflow: hidden; appearance: none; background: rgba(255,255,255,.12); accent-color: var(--secondary); }
#viewer-loading-progress::-webkit-progress-bar { background: rgba(255,255,255,.12); border-radius: 99px; }
#viewer-loading-progress::-webkit-progress-value { background: var(--secondary); border-radius: 99px; transition: width .2s ease; }
#viewer-loading-progress::-moz-progress-bar { background: var(--secondary); border-radius: 99px; }
#viewer-loading-progress:indeterminate { animation: viewer-loading-pulse 1.2s ease-in-out infinite alternate; }
@keyframes viewer-loading-pulse { to { opacity: .35; } }
@media (prefers-reduced-motion: reduce) {
    #viewer-loading-progress:indeterminate { animation: none; }
    #viewer-loading-progress::-webkit-progress-value { transition: none; }
}

.viewer-error {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    z-index: 5;
    width: min(360px, calc(100% - 40px));
    padding: 18px;
    border: 1px solid rgba(255, 51, 102, .55);
    border-radius: 14px;
    background: rgba(20, 5, 12, .94);
    color: #fff;
    text-align: center;
}

.viewer-error[hidden] {
    display: none;
}

.viewer-error strong,
.viewer-error span {
    display: block;
}

.viewer-error span {
    margin-top: 6px;
    color: var(--text-secondary);
    font-size: .78rem;
    overflow-wrap: anywhere;
}

.viewer-hint, .view-badge, .viewer-camera-controls {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.viewer-hint {
    bottom: 10px;
    background: rgba(0, 0, 0, .55);
    color: #aaa;
    font-size: .7rem;
    padding: 4px 10px;
    border-radius: 20px;
    pointer-events: none;
    white-space: nowrap;
}

.view-badge {
    top: 12px;
    background: rgba(0, 0, 0, .6);
    color: #fff;
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 20px;
    pointer-events: none;
    letter-spacing: .04em;
}

.viewer-camera-controls {
    bottom: 38px;
    display: flex;
    gap: 6px;
    max-width: calc(100% - 24px);
    overflow-x: auto;
    padding: 2px;
}

.cam-preset-btn, .viewer-icon-btn {
    flex: 0 0 auto;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    background: rgba(8, 10, 18, .78);
    color: var(--text-secondary);
    min-height: 30px;
    padding: 0 10px;
    font: 600 .68rem var(--font-body);
    cursor: pointer;
}

.cam-preset-btn:hover, .cam-preset-btn.active, .viewer-icon-btn:hover, .viewer-icon-btn[aria-pressed="true"] {
    color: #fff;
    border-color: var(--secondary);
    background: rgba(0, 240, 255, .16);
}

.viewer-icon-btn { font-size: 1rem; padding: 0 9px; }

.tshirt-canvas {
    position: relative;
    width: 380px;
    height: 380px;
    transition: var(--transition);
}

/* Base T-shirt SVG shapes styling */
.view-shape {
    display: none;
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.6));
    transition: color 0.4s ease;
}

/* Toggle SVG based on active data-view value */
.tshirt-canvas[data-view="frente"] .view-shape.frente { display: block; }
.tshirt-canvas[data-view="espalda"] .view-shape.espalda { display: block; }
.tshirt-canvas[data-view="manga_izq"] .view-shape.manga { display: block; transform: scaleX(-1); } /* flip left sleeve */
.tshirt-canvas[data-view="manga_der"] .view-shape.manga { display: block; }

/* Colors styling for shirt canvas */
.tshirt-canvas[data-color="black"] .view-shape { color: #111111; }
.tshirt-canvas[data-color="white"] .view-shape { 
    color: #f7f7f9; 
    filter: drop-shadow(0 15px 30px rgba(0,0,0,0.4)) drop-shadow(0 0 2px rgba(255,255,255,0.05));
}
.tshirt-canvas[data-color="navy"] .view-shape { color: #1c2d42; }
.tshirt-canvas[data-color="grey"] .view-shape { color: #7f8c8d; }

/* Chest Print Area Outline */
.print-area {
    position: absolute;
    top: 24%;
    left: 30%;
    width: 40%;
    height: 48%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    pointer-events: none;
    z-index: 10;
    transition: var(--transition);
}

/* Sleeve close-up: the artwork follows the direction of the fabric. */
.tshirt-canvas[data-view="manga_izq"] .print-area,
.tshirt-canvas[data-view="manga_der"] .print-area {
    top: 38%;
    width: 34%;
    height: 30%;
    border: 1px dashed rgba(255, 255, 255, 0.38);
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.08);
    overflow: visible;
}

.tshirt-canvas[data-view="manga_der"] .print-area {
    left: 23%;
    transform: rotate(30deg);
}

.tshirt-canvas[data-view="manga_izq"] .print-area {
    left: 43%;
    transform: rotate(-30deg);
}

.tshirt-canvas[data-view="manga_izq"] .print-area::before,
.tshirt-canvas[data-view="manga_der"] .print-area::before {
    content: "ZONA DE IMPRESIÓN";
    position: absolute;
    top: -22px;
    left: 50%;
    transform: translateX(-50%);
    color: var(--text-muted);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.design-overlay {
    width: 100%;
    height: 70%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.design-overlay.loaded {
    opacity: 1;
    transform: scale(1);
}

.design-overlay img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
}

.text-overlay {
    width: 100%;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    word-break: break-word;
    margin-top: 8px;
    padding: 0 4px;
    color: #fff;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.3s ease;
}

.text-overlay.active {
    opacity: 1;
    transform: translateY(0);
}

.canvas-footer {
    margin-top: 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Interactive Controls Container */
.controls-container {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.control-group {
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 1.8rem;
}

.control-group:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.control-group h3 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
    color: var(--text-primary);
}

.control-group .control-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.8rem;
}

.group-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.sparkle-badge {
    background: rgba(0, 240, 255, 0.1);
    color: var(--secondary);
    border: 1px solid rgba(0, 240, 255, 0.2);
    padding: 0.2rem 0.6rem;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    animation: sparkleGlow 2s infinite alternate;
}

@keyframes sparkleGlow {
    to {
        box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
        border-color: rgba(0, 240, 255, 0.4);
    }
}

/* Color Selectors */
.color-selectors {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

#shirt-color-palette {
    max-height: 190px;
    overflow-y: auto;
    gap: .55rem;
    padding: .25rem .25rem .4rem;
}

.selected-shirt-color {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin: .65rem 0 .75rem;
    color: var(--text-secondary);
    font-size: .78rem;
}

#selected-color-swatch {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 50%;
    background: #111214;
}

.color-dot {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.color-dot:hover {
    transform: scale(1.1);
}

.color-dot.active {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--primary-glow);
    outline: 2px solid rgba(255, 255, 255, 0.4);
    outline-offset: 3px;
}

/* AI Generator input panel */
.generator-options { display:flex; align-items:center; justify-content:space-between; gap:1rem; margin-bottom:.8rem; }
.generator-options label { color:var(--text-secondary); font-size:.8rem; font-weight:600; }
.generator-options select { min-width:210px; background:#11141f; border:1px solid var(--border-color); border-radius:8px; padding:.55rem .7rem; color:var(--text-primary); font-family:var(--font-body); }
.generator-options select:focus { outline:none; border-color:var(--secondary); }

@media (max-width: 560px) {
    .generator-options { align-items:stretch; flex-direction:column; gap:.4rem; }
    .generator-options select { min-width:0; width:100%; }
}

.ai-input-group {
    display: flex;
    gap: 0.8rem;
}

.ai-input-group input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    flex-grow: 1;
    transition: var(--transition);
}

.ai-input-group input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.admin-open { overflow:hidden; }

/* AI progress bar */
.ai-progress-bar {
    margin-top: 1rem;
    height: 32px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.15);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: none;
}

.ai-progress-bar.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.progress-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 240, 255, 0.2), transparent);
    animation: scanProgress 1.5s infinite linear;
}

.progress-text {
    position: relative;
    z-index: 2;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--secondary);
    text-shadow: 0 0 5px rgba(0,240,255,0.5);
}

@keyframes scanProgress {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

/* Pre-made Art Gallery grid */
.art-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.8rem;
}

.gallery-item {
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.02);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-item:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover);
}

.gallery-item.active {
    border-color: var(--secondary);
    box-shadow: 0 0 10px var(--secondary-glow);
}

.no-art-icon {
    font-size: 1.8rem;
    color: var(--text-muted);
}

/* Text Subcontrols custom styling */
.text-subcontrols {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 1.2rem;
    margin-top: 1rem;
}

.text-subcontrols label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.3rem;
    display: block;
}

.text-subcontrols select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.5rem 0.8rem;
    color: var(--text-primary);
    width: 100%;
    outline: none;
    font-size: 0.85rem;
}

#custom-text-input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    width: 100%;
    font-size: 0.9rem;
    outline: none;
    transition: var(--transition);
}

#custom-text-input:focus {
    border-color: var(--primary);
}

.design-scale-control {
    margin-top: 1rem;
}

.design-scale-control label,
.range-labels {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.design-option-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .45rem;
    margin-top: .7rem;
}

#design-position-options {
    grid-template-columns: repeat(2, 1fr);
}

.design-option-buttons button {
    min-height: 34px;
    padding: .35rem .55rem;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 9px;
    background: rgba(255, 255, 255, .04);
    color: var(--text-secondary);
    font: 600 .72rem var(--font-body);
    cursor: pointer;
}

.design-option-buttons button:hover,
.design-option-buttons button.active {
    border-color: var(--secondary);
    background: rgba(0, 240, 255, .12);
    color: #fff;
}

.design-option-buttons button:disabled {
    opacity: .4;
    cursor: not-allowed;
}

.design-position-control {
    margin-top: 1rem;
}

.design-position-control > label {
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 600;
}

#design-position-note {
    display: block;
    margin-top: .45rem;
    color: var(--text-muted);
    font-size: .68rem;
}

.design-scale-control label {
    margin-bottom: .55rem;
    color: var(--text-secondary);
    font-size: .82rem;
    font-weight: 600;
}

#design-scale-value {
    color: var(--secondary);
    font-variant-numeric: tabular-nums;
}

#design-scale {
    width: 100%;
    accent-color: var(--secondary);
    cursor: pointer;
}

.range-labels {
    margin-top: .2rem;
    color: var(--text-muted);
    font-size: .68rem;
}

.text-color-selectors {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.text-color-dot {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.text-color-dot.active {
    outline: 2px solid var(--primary);
    outline-offset: 1px;
}

/* Size Selectors */
.size-selectors {
    display: flex;
    gap: 0.6rem;
}

.size-btn {
    flex-grow: 1;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.6rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-display);
    transition: var(--transition);
}

.size-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.size-btn.active {
    background: var(--text-primary);
    color: var(--bg-main);
    border-color: var(--text-primary);
}

/* Pricing Summary Box */
.pricing-summary {
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.2rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

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

.price-row.total {
    border-top: 1px solid var(--border-color);
    padding-top: 0.6rem;
    margin-top: 0.3rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Pre-made Products Grid & Card */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
    min-height: 300px;
}

.loading {
    grid-column: 1 / -1;
    text-align: center;
    padding: 5rem 0;
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 1.2rem;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.product-img-wrapper {
    position: relative;
    width: 100%;
    padding-top: 95%;
    border-radius: 12px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.04) 0%, rgba(255,255,255,0.01) 100%);
    overflow: hidden;
    margin-bottom: 1.2rem;
    border: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    position: absolute;
    width: 80%;
    height: 80%;
    object-fit: contain;
    top: 10%;
    left: 10%;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.4));
    transition: var(--transition);
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

.product-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.product-category {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--secondary);
    margin-bottom: 0.3rem;
}

.product-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.product-desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-bottom: 1.2rem;
    flex-grow: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.product-price {
    font-size: 1.3rem;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--text-primary);
}

/* Process Section */
.process-section {
    margin-top: 5rem;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.8rem;
}

.process-card {
    padding: 2.2rem;
    border-radius: 16px;
    transition: var(--transition);
}

.process-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-3px);
}

.process-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(255, 51, 102, 0.1);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.process-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.8rem;
}

.process-card p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

/* Cart Drawer Slider */
.cart-drawer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 1000;
    visibility: hidden;
    transition: visibility 0.4s;
}

.cart-drawer.active {
    visibility: visible;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    opacity: 0;
    transition: opacity 0.4s ease;
}

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

.cart-content {
    position: absolute;
    top: 0;
    right: -450px;
    width: 450px;
    max-width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 0;
    border-top: none;
    border-bottom: none;
    border-right: none;
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 2;
}

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

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

.cart-header h3 {
    font-size: 1.4rem;
}

.close-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    transition: var(--transition);
}

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

/* Cart Items List */
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.empty-cart-msg {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 3rem;
}

.cart-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.cart-item-img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.03);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-title {
    font-size: 0.95rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.cart-item-details {
    font-size: 0.75rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 0.2rem;
}

.cart-item-price {
    font-size: 0.9rem;
    color: var(--secondary);
    font-weight: 500;
}

.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.2rem 0.5rem;
}

.qty-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
}

.qty-btn:hover {
    color: var(--text-primary);
}

.qty-num {
    font-size: 0.9rem;
    min-width: 15px;
    text-align: center;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.3rem;
    transition: var(--transition);
}

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

/* Cart Footer Summary */
.cart-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    background: rgba(10, 11, 20, 0.8);
}

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

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

.summary-line .free-shipping {
    color: #00e676;
    font-weight: 600;
}

.summary-line.total {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 0.8rem;
    margin-top: 0.4rem;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

/* Checkout Modal */
.modal-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    transition: visibility 0.3s;
}

.modal-wrapper.active {
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-wrapper.active .modal-overlay {
    opacity: 1;
}

.modal-content {
    position: relative;
    width: 500px;
    max-width: 90%;
    padding: 2rem;
    transform: scale(0.9);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 2;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-wrapper.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkout-form {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

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

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

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

.form-group input, .form-group select {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.8rem 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 10px rgba(255, 51, 102, 0.2);
    background: rgba(255, 255, 255, 0.05);
}

/* Toast Notifications */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 3000;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    pointer-events: none;
}

.toast {
    background: rgba(10, 11, 20, 0.9);
    border-left: 4px solid var(--primary);
    border-top: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    color: var(--text-primary);
    min-width: 280px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    gap: 0.8rem;
    transform: translateY(20px);
    opacity: 0;
    animation: toastSlideIn 0.3s forwards cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(10px);
}

.toast.success {
    border-left-color: #00e676;
}
.toast.info {
    border-left-color: var(--secondary);
}

@keyframes toastSlideIn {
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Footer Section */
.footer {
    background: rgba(5, 6, 10, 0.9);
    border-top: 1px solid var(--border-color);
    padding: 4rem 0 2rem 0;
    margin-top: 6rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 1rem;
    max-width: 280px;
}

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

.footer-links h4, .footer-newsletter h4 {
    font-size: 1.1rem;
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.footer-links a:hover {
    color: var(--text-primary);
    padding-left: 4px;
}

.footer-newsletter p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.newsletter-box {
    display: flex;
    gap: 0.5rem;
}

.newsletter-box input {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0.6rem 1rem;
    color: var(--text-primary);
    flex-grow: 1;
    font-size: 0.9rem;
}

.newsletter-box input:focus {
    outline: none;
    border-color: var(--secondary);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding-top: 2rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Responsiveness */
@media (max-width: 992px) {
    .hero {
        grid-template-columns: 1fr;
        text-align: center;
        margin-top: 1rem;
        gap: 2rem;
    }
    .hero-content {
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-visual {
        height: auto;
    }
    .hero-card {
        width: 100%;
    }
    .creator-grid {
        grid-template-columns: 1fr;
    }
    .process-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
    .footer-newsletter {
        grid-column: 1 / -1;
    }
}

@media (max-width: 576px) {
    .nav-links {
        display: none;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .newsletter-box {
        flex-direction: column;
    }
    .tshirt-canvas {
        width: 300px;
        height: 300px;
    }
}

/* The admin is a full application view, not a centered modal. Keep this after
   the shared modal rules so they cannot constrain its dimensions. */
#admin-modal .admin-saas-shell {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    transform: none;
    overflow-y: auto;
}

#admin-modal.active .admin-saas-shell {
    transform: none;
}

/* 2026 light editorial storefront */
:root {
    --bg-main:#fff; --bg-surface:#fff; --border-color:#e5e5e1; --border-hover:#b9b9b4;
    --primary:#111; --primary-glow:rgba(0,0,0,.12); --secondary:#187e69;
    --secondary-glow:rgba(24,126,105,.16); --text-primary:#111;
    --text-secondary:#5f605c; --text-muted:#92938e;
}
body { background:#fff; color:#111; }
::-webkit-scrollbar-track { background:#f3f3f0; }
::-webkit-scrollbar-thumb { background:#c9cac5; }
.navbar { background:rgba(255,255,255,.94); border-bottom:1px solid #e9e9e5; box-shadow:none; backdrop-filter:blur(14px); }
.logo,.nav-links a,.cart-btn { color:#111; }
.logo-accent { color:#111; }
.logo-sub { color:#777873; }
.nav-links a::after { background:#111; }
.glass { background:#fff; border:1px solid #e7e7e4; box-shadow:0 12px 38px rgba(17,17,17,.06); backdrop-filter:none; }
.btn { border-radius:0; letter-spacing:.035em; text-transform:uppercase; font-size:.78rem; }
.btn-primary { background:#111; color:#fff; box-shadow:none; }
.btn-primary:hover { background:#30302e; box-shadow:none; }
.btn-secondary { background:#fff; color:#111; border-color:#111; }
.btn-secondary:hover { background:#f1f1ed; }

.hero {
    position:relative; display:flex; align-items:center; max-width:none;
    min-height:min(78vh,780px); margin:0; padding:clamp(4rem,9vw,9rem);
    background:linear-gradient(90deg,rgba(248,246,241,.98) 0%,rgba(248,246,241,.91) 30%,rgba(248,246,241,.12) 63%),
               url('assets/veloce-collections-hero.png') center/cover no-repeat;
}
.hero-content { position:relative; z-index:1; max-width:610px; text-align:left; }
.hero-content .badge,.section-kicker {
    display:block; margin-bottom:1rem; color:#5f605c; font-size:.68rem;
    font-weight:700; letter-spacing:.18em; text-transform:uppercase;
}
.hero-content h1 {
    max-width:650px; color:#111; font-size:clamp(3.2rem,7vw,7.2rem); line-height:.89;
    letter-spacing:-.065em; background:none; -webkit-text-fill-color:currentColor;
}
.hero-content p { max-width:520px; margin:1.7rem 0 2rem; color:#4e4f4b; font-size:clamp(.95rem,1.3vw,1.12rem); }
.hero-actions { justify-content:flex-start; }
.hero-visual { display:none; }
.container { max-width:1440px; padding-inline:clamp(1.25rem,4vw,4.5rem); }
.creator-section,#productos,.process-section { padding-top:clamp(5rem,9vw,9rem); padding-bottom:clamp(5rem,9vw,9rem); }
.section-header { margin-bottom:3rem; }
.section-header h2 { color:#111; font-size:clamp(2.1rem,4vw,4.4rem); line-height:1; letter-spacing:-.05em; }
.section-header p { max-width:620px; margin:.9rem auto 0; color:#686964; }
.creator-grid { align-items:start; }
.canvas-container,.controls-container { border-radius:0; }
.control-group { border-bottom-color:#e8e8e4; }
.controls-container input,.controls-container select,.generator-options select,#custom-text-input {
    background:#f7f7f4; color:#111; border-color:#deded9;
}
.controls-container select option { background:#fff; color:#111; }
.sparkle-badge { background:#eef8f4; color:#176c5a; border-color:#bcded5; }
.garment-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.55rem; margin-top:1rem; }
.garment-option {
    min-height:68px; padding:.75rem; border:1px solid #deded9; border-radius:0;
    background:#fafaf8; color:#111; text-align:left; cursor:pointer;
}
.garment-option strong,.garment-option span { display:block; }
.garment-option strong { font:600 .78rem var(--font-sans); }
.garment-option span { margin-top:.2rem; color:#8a8b86; font-size:.65rem; }
.garment-option.active { border-color:#111; background:#111; color:#fff; }
.garment-option.active span { color:#c9cac5; }
.garment-option:disabled { opacity:.55; cursor:not-allowed; }

#productos { max-width:none; background:#f7f7f4; }
.collection-filters {
    display:flex; justify-content:center; gap:.5rem; margin:-1rem 0 2.5rem;
    overflow-x:auto; padding:.5rem;
}
.collection-filters button {
    flex:0 0 auto; padding:.65rem 1.1rem; border:1px solid #d8d8d3; border-radius:999px;
    background:transparent; color:#555651; cursor:pointer; font:600 .73rem var(--font-sans);
}
.collection-filters button.active,.collection-filters button:hover { background:#111; border-color:#111; color:#fff; }
.products-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1rem,2.4vw,2.25rem); }
.product-card { overflow:hidden; border:0; border-radius:0; background:transparent; box-shadow:none; }
.product-card:hover { border-color:transparent; box-shadow:none; transform:none; }
.product-img-wrapper { height:clamp(330px,38vw,540px); border-radius:0; background:#ecece7; }
.product-img-wrapper img { width:100%; height:100%; object-fit:cover; }
.product-info { padding:1.1rem 0 0; }
.product-category { color:#858680; font-size:.65rem; letter-spacing:.13em; text-transform:uppercase; }
.product-title { color:#111; font-size:1.1rem; }
.product-desc { color:#6e6f69; }
.product-price { color:#111; }
.product-footer { align-items:flex-end; }
.process-card { border-radius:0; background:#fafaf8; box-shadow:none; }
.process-icon { background:#111; color:#fff; }

@media (max-width:900px) {
    .hero {
        min-height:680px; padding:5rem 1.5rem 3rem; align-items:flex-end;
        background:linear-gradient(0deg,rgba(248,246,241,.98) 0%,rgba(248,246,241,.76) 48%,rgba(248,246,241,.05) 78%),
                   url('assets/veloce-collections-hero.png') 66% center/cover no-repeat;
    }
    .products-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:560px) {
    .hero-content h1 { font-size:3.25rem; }
    .hero-actions { align-items:stretch; }
    .products-grid { grid-template-columns:1fr; }
    .product-img-wrapper { height:440px; }
    .collection-filters { justify-content:flex-start; }
}

/* Responsible environmental marketing */
.impact-strip {
    display:flex;
    justify-content:center;
    gap:0;
    overflow-x:auto;
    border-top:1px solid #dfdfda;
    border-bottom:1px solid #dfdfda;
    background:#fff;
    white-space:nowrap;
}
.impact-strip span {
    position:relative;
    flex:0 0 auto;
    padding:1rem clamp(1.2rem,3vw,3rem);
    color:#4e514c;
    font-size:.68rem;
    font-weight:700;
    letter-spacing:.11em;
    text-transform:uppercase;
}
.impact-strip span + span::before {
    content:"";
    position:absolute;
    left:0;
    top:50%;
    width:3px;
    height:3px;
    border-radius:50%;
    background:#187e69;
}
.made-to-order-note {
    margin-top:.8rem;
    color:#6b6d67;
    font-size:.72rem;
    line-height:1.5;
    text-align:center;
}
.eco-section {
    padding:clamp(5rem,9vw,9rem) clamp(1.25rem,6vw,7rem);
    background:#173f36;
    color:#f5f2e9;
}
.eco-section .section-kicker { color:#9dc6b6; }
.eco-intro {
    display:grid;
    grid-template-columns:minmax(0,.8fr) minmax(300px,1.2fr);
    column-gap:clamp(2rem,7vw,8rem);
    align-items:end;
    max-width:1500px;
    margin:0 auto clamp(3rem,7vw,6rem);
}
.eco-intro .section-kicker { grid-column:1/-1; }
.eco-intro h2 {
    font-size:clamp(2.7rem,5.7vw,6.5rem);
    line-height:.92;
    letter-spacing:-.055em;
}
.eco-intro p {
    max-width:620px;
    color:#c7d8d0;
    font-size:clamp(1rem,1.4vw,1.2rem);
}
.eco-grid {
    display:grid;
    grid-template-columns:repeat(4,minmax(0,1fr));
    max-width:1500px;
    margin:auto;
    border-top:1px solid rgba(255,255,255,.22);
    border-bottom:1px solid rgba(255,255,255,.22);
}
.eco-grid article {
    min-height:310px;
    padding:2rem clamp(1rem,2vw,2.2rem);
    border-right:1px solid rgba(255,255,255,.22);
}
.eco-grid article:last-child { border-right:0; }
.eco-number {
    display:block;
    margin-bottom:4.5rem;
    color:#8fbcaa;
    font:600 .72rem var(--font-sans);
}
.eco-grid h3 { margin-bottom:.8rem; color:#fff; font-size:1.2rem; }
.eco-grid p { color:#bfd1c9; font-size:.88rem; line-height:1.7; }
.eco-transparency {
    display:grid;
    grid-template-columns:.65fr 1.35fr;
    gap:clamp(1.5rem,5vw,5rem);
    max-width:1500px;
    margin:3rem auto 0;
    padding:2rem;
    background:rgba(255,255,255,.07);
}
.eco-transparency strong { color:#fff; font-size:1.15rem; }
.eco-transparency p { color:#c7d8d0; }
.eco-sources {
    grid-column:2;
    display:flex;
    flex-wrap:wrap;
    gap:1.5rem;
}
.eco-sources a {
    color:#e8f3ee;
    border-bottom:1px solid #8fbcaa;
    font-size:.75rem;
}

/* ==========================================================================
   VELOCE WORKSPACE - SAAS ADMIN & ERP DESIGN SYSTEM (ISOLATED THEME)
   ========================================================================== */

#admin-modal,
#admin-login-modal {
    --adm-bg: #0b0f19;
    --adm-sidebar: #080c14;
    --adm-card: #111827;
    --adm-card-subtle: #141c2c;
    --adm-card-hover: #19243a;
    --adm-input: #131b2a;
    --adm-input-border: #243149;
    --adm-border: #1f293d;
    --adm-border-hover: #334155;
    --adm-text-main: #f8fafc;
    --adm-text-secondary: #94a3b8;
    --adm-text-muted: #64748b;
    --adm-cyan: #38bdf8;
    --adm-cyan-hover: #7dd3fc;
    --adm-cyan-glow: rgba(56, 189, 248, 0.2);
    --adm-emerald: #10b981;
    --adm-rose: #f43f5e;
    --adm-amber: #f59e0b;
}

/* Base Modal Shell */
#admin-modal {
    align-items: stretch;
    justify-content: stretch;
    background: rgba(0, 0, 0, 0.85);
}

#admin-modal > .modal-overlay {
    display: none;
}

#admin-modal .admin-saas-shell {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: var(--adm-bg) !important;
    color: var(--adm-text-main) !important;
    display: grid !important;
    grid-template-columns: 260px minmax(0, 1fr) !important;
    column-gap: 0 !important;
    overflow-y: auto !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    font-family: var(--font-body), system-ui, -apple-system, sans-serif;
}

/* Sidebar Navigation */
.admin-sidebar {
    grid-column: 1;
    grid-row: 1 / span 50;
    position: sticky;
    top: 0;
    align-self: start;
    height: 100vh;
    min-height: 100vh;
    padding: 1.5rem 1.1rem;
    background: var(--adm-sidebar) !important;
    border-right: 1px solid var(--adm-border) !important;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.2rem 0.35rem 1.4rem;
    border-bottom: 1px solid var(--adm-border);
    margin-bottom: 1.2rem;
}

.admin-brand > span {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    color: #ffffff;
    font-weight: 900;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.35);
    font-size: 1.15rem;
}

.admin-brand div {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.admin-brand strong {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff !important;
    letter-spacing: -0.01em;
}

.admin-brand small {
    margin-top: 0.25rem;
    color: var(--adm-cyan) !important;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.admin-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-nav button {
    width: 100%;
    min-height: 42px;
    padding: 0.65rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    border: none;
    border-radius: 8px;
    color: var(--adm-text-secondary) !important;
    background: transparent;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    text-align: left;
    transition: all 0.15s ease;
}

.admin-nav button > span {
    width: 22px;
    color: var(--adm-text-muted);
    font-size: 1.1rem;
    text-align: center;
    transition: color 0.15s ease;
}

.admin-nav button:hover:not(:disabled) {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.05);
}

.admin-nav button:hover:not(:disabled) > span {
    color: var(--adm-cyan);
}

.admin-nav button.active {
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.12) !important;
    font-weight: 700;
    border-left: 3px solid var(--adm-cyan);
    border-radius: 4px 8px 8px 4px;
}

.admin-nav button.active > span {
    color: var(--adm-cyan) !important;
}

.admin-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.2rem 0.4rem 0.2rem;
    border-top: 1px solid var(--adm-border);
}

.admin-sidebar-footer button#admin-logout {
    border: none;
    background: transparent;
    color: #f87171 !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    padding: 0.35rem 0.2rem;
    transition: color 0.15s ease;
}

.admin-sidebar-footer button#admin-logout:hover {
    color: #ef4444 !important;
    text-decoration: underline;
}

.admin-sidebar-footer > span {
    color: var(--adm-text-muted) !important;
    font-size: 0.72rem;
    display: flex;
    align-items: center;
}

.admin-sidebar-footer i {
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: var(--adm-emerald);
    box-shadow: 0 0 10px var(--adm-emerald);
}

/* Header Bar */
#admin-modal .modal-header {
    grid-column: 2;
    position: sticky;
    top: 0;
    z-index: 15;
    margin: 0 0 1.5rem 0;
    padding: 1.25rem 2.5rem;
    background: rgba(11, 15, 25, 0.94) !important;
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--adm-border) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

#admin-modal .modal-header small {
    color: var(--adm-cyan) !important;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.65rem;
    font-weight: 800;
    display: block;
}

#admin-modal .modal-header h3#admin-section-title {
    margin: 0.2rem 0 0 0;
    font-size: 1.35rem;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

#admin-modal .close-btn#admin-modal-close {
    color: var(--adm-text-secondary) !important;
    background: var(--adm-card-subtle) !important;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: all 0.2s ease;
}

#admin-modal .close-btn#admin-modal-close:hover {
    color: #ffffff !important;
    border-color: var(--adm-cyan) !important;
    background: var(--adm-card-hover) !important;
}

/* Content Area Layout */
#admin-modal .admin-saas-shell > :not(.admin-sidebar):not(.modal-header) {
    grid-column: 2;
    margin-left: 2.5rem;
    margin-right: 2.5rem;
    max-width: 1400px;
}

.admin-view {
    display: none;
    padding-bottom: 3rem;
    animation: adminViewFadeIn 0.2s ease-out;
}

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

@keyframes adminViewFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.admin-page-heading {
    margin-bottom: 1.4rem;
}

.admin-page-heading span {
    color: var(--adm-cyan) !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
}

.admin-page-heading h2 {
    margin: 0.25rem 0 0.4rem;
    font-size: 1.6rem;
    color: #ffffff !important;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.admin-page-heading p,
.admin-helper-text {
    color: var(--adm-text-secondary) !important;
    font-size: 0.85rem;
    line-height: 1.5;
}

.admin-helper-text {
    margin-bottom: 1.2rem;
}

/* Overview Cards */
.admin-welcome {
    padding: 1.8rem;
    border: 1px solid var(--adm-border) !important;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.08), rgba(139, 92, 246, 0.05)), var(--adm-card) !important;
    margin-bottom: 1.5rem;
}

.admin-welcome span {
    color: var(--adm-cyan) !important;
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.admin-welcome h2 {
    margin: 0.4rem 0 0.5rem;
    font-size: 1.65rem;
    color: #ffffff !important;
    font-weight: 700;
}

.admin-welcome p {
    color: var(--adm-text-secondary) !important;
    font-size: 0.88rem;
}

.admin-stat-grid,
.erp-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1rem 0 1.5rem;
}

.admin-stat-grid article,
.erp-kpi-grid article,
.erp-card {
    padding: 1.25rem;
    border: 1px solid var(--adm-border) !important;
    border-radius: 12px;
    background: var(--adm-card) !important;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.admin-stat-grid article:hover,
.erp-kpi-grid article:hover {
    border-color: var(--adm-border-hover) !important;
    transform: translateY(-2px);
}

.admin-stat-grid article span,
.erp-kpi-grid span {
    color: var(--adm-text-secondary) !important;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: block;
}

.admin-stat-grid article strong,
.erp-kpi-grid strong {
    margin: 0.4rem 0;
    font-size: 1.8rem;
    color: var(--adm-cyan) !important;
    font-weight: 800;
    display: block;
}

.admin-stat-grid article small {
    color: var(--adm-text-muted) !important;
    font-size: 0.72rem;
}

/* ==========================================================================
   INPUTS, FORMS & LABELS (HIGH-CONTRAST READABLE TEXT)
   ========================================================================== */

#admin-modal input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
#admin-modal select,
#admin-modal textarea {
    min-height: 42px;
    padding: 0.65rem 0.9rem;
    border: 1px solid var(--adm-input-border) !important;
    border-radius: 8px !important;
    background: var(--adm-input) !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    font-family: inherit;
    color-scheme: dark;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}

#admin-modal input:focus,
#admin-modal select:focus,
#admin-modal textarea:focus {
    border-color: var(--adm-cyan) !important;
    box-shadow: 0 0 0 3px var(--adm-cyan-glow) !important;
    background: #172338 !important;
}

#admin-modal input::placeholder,
#admin-modal textarea::placeholder {
    color: var(--adm-text-muted) !important;
    opacity: 0.85;
}

#admin-modal select option {
    background: #0f172a !important;
    color: #ffffff !important;
}

#admin-modal label,
.erp-form > label,
.erp-form-grid label,
#admin-pricing-form label,
#admin-design-form label {
    color: #cbd5e1 !important;
    font-size: 0.76rem !important;
    font-weight: 600 !important;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

/* Forms & Panels */
#erp-product-form,
#erp-purchase-form,
#erp-sale-form,
#admin-pricing-form,
.admin-design-manager {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
    border: 1px solid var(--adm-border) !important;
    border-radius: 12px !important;
    background: var(--adm-card) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}

.erp-form[hidden] {
    display: none !important;
}

.erp-form-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(130px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.erp-form textarea {
    resize: vertical;
    width: 100%;
}

.erp-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid var(--adm-border);
}

.erp-form-actions > strong {
    margin-right: auto;
    color: #ffffff !important;
    font-size: 1rem;
}

/* Toolbar & Action Buttons */
.erp-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    margin: 0 0 1.2rem;
}

.erp-toolbar input {
    flex: 1 1 240px;
}

.erp-toolbar select {
    min-width: 180px;
}

#admin-modal .btn-primary,
.erp-toolbar .btn-primary {
    min-height: 42px;
    background: var(--adm-cyan) !important;
    color: #080c14 !important;
    font-weight: 700 !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 0 1.25rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#admin-modal .btn-primary:hover,
.erp-toolbar .btn-primary:hover {
    background: var(--adm-cyan-hover) !important;
    box-shadow: 0 4px 16px rgba(56, 189, 248, 0.4) !important;
    transform: translateY(-1px);
}

#admin-modal .btn-secondary,
.erp-toolbar .btn-secondary {
    min-height: 42px;
    background: #1e293b !important;
    color: #e2e8f0 !important;
    border: 1px solid #334155 !important;
    border-radius: 8px !important;
    padding: 0 1.1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

#admin-modal .btn-secondary:hover,
.erp-toolbar .btn-secondary:hover {
    background: #28354d !important;
    border-color: #475569 !important;
    color: #ffffff !important;
}

.erp-selection-tools {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-height: 44px;
    margin-bottom: 0.85rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--adm-border) !important;
    border-radius: 8px;
    background: var(--adm-card-subtle) !important;
    color: var(--adm-text-secondary) !important;
    font-size: 0.78rem;
}

.erp-selection-tools span {
    margin-right: auto;
}

.erp-selection-tools strong[data-selection-count] {
    color: var(--adm-cyan) !important;
    font-weight: 700;
}

.erp-selection-tools.has-selection {
    border-color: rgba(56, 189, 248, 0.4) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.erp-selection-tools button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ==========================================================================
   ERP DATA TABLES (CRISP VISIBILITY & HIGH CONTRAST)
   ========================================================================== */

.erp-table-wrap {
    overflow-x: auto;
    border: 1px solid var(--adm-border) !important;
    border-radius: 12px !important;
    background: var(--adm-card) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
    margin-bottom: 1.5rem;
}

.erp-table {
    width: 100%;
    border-collapse: collapse;
    color: #e2e8f0 !important;
    font-size: 0.82rem;
}

.erp-table th {
    padding: 0.9rem 1rem !important;
    color: var(--adm-text-secondary) !important;
    background: #151d2e !important;
    text-align: left;
    font-size: 0.68rem !important;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
    border-bottom: 1px solid var(--adm-border) !important;
    font-weight: 700;
}

.erp-table td {
    padding: 0.85rem 1rem !important;
    border-top: 1px solid #1a2336 !important;
    vertical-align: middle;
    color: #cbd5e1 !important;
}

.erp-table td > strong {
    color: #ffffff !important;
    font-weight: 600 !important;
    font-size: 0.86rem !important;
    display: block;
}

.erp-table td > small {
    color: var(--adm-text-muted) !important;
    font-size: 0.74rem !important;
    margin-top: 0.2rem;
    display: block;
}

.erp-table tbody tr {
    background: var(--adm-card);
    transition: background 0.15s ease;
}

.erp-table tbody tr:nth-child(even) {
    background: #131b2a !important;
}

.erp-table tbody tr:hover {
    background: #192438 !important;
}

.erp-stock-low {
    background: rgba(244, 63, 94, 0.1) !important;
}

.erp-stock-low td:first-child {
    box-shadow: inset 3px 0 var(--adm-rose) !important;
}

.erp-empty {
    padding: 3rem !important;
    color: var(--adm-text-muted) !important;
    text-align: center !important;
    font-size: 0.9rem;
    font-style: italic;
}

.erp-table input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--adm-cyan);
    cursor: pointer;
}

/* Row Actions */
.erp-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.erp-action {
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--adm-input-border);
    border-radius: 6px;
    background: #172236;
    color: #cbd5e1 !important;
    cursor: pointer;
    font-size: 0.72rem;
    font-weight: 600;
    transition: all 0.15s ease;
}

.erp-action:hover {
    color: #ffffff !important;
    border-color: var(--adm-cyan) !important;
    background: #23314a !important;
}

.erp-action.danger {
    color: #fca5a5 !important;
    border-color: rgba(244, 63, 94, 0.3);
    background: rgba(244, 63, 94, 0.08);
}

.erp-action.danger:hover {
    color: #ffffff !important;
    border-color: var(--adm-rose) !important;
    background: #e11d48 !important;
}

/* Status Badges */
.erp-status-badge {
    display: inline-block;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: capitalize;
}

.erp-status-pendiente {
    color: #fbbf24 !important;
    background: rgba(245, 158, 11, 0.15) !important;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.erp-status-recibida,
.erp-status-completada {
    color: #34d399 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.erp-status-cancelada {
    color: #f87171 !important;
    background: rgba(244, 63, 94, 0.15) !important;
    border: 1px solid rgba(244, 63, 94, 0.3);
}

/* ==========================================================================
   FLOATING CONTACT MODAL (CLIENTES / PROVEEDORES)
   ========================================================================== */

.erp-contact-form {
    position: fixed !important;
    z-index: 1050 !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: min(640px, 94vw) !important;
    max-height: 88vh !important;
    overflow-y: auto !important;
    background: #111827 !important;
    border: 1px solid var(--adm-border-hover) !important;
    border-radius: 16px !important;
    padding: 2rem !important;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.8), 0 0 0 100vmax rgba(0, 0, 0, 0.65) !important;
    animation: erpModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

@keyframes erpModalIn {
    from { opacity: 0; transform: translate(-50%, -46%) scale(0.97); }
    to { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.erp-contact-form-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.25rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--adm-border);
}

.erp-contact-form-header h3 {
    color: #ffffff !important;
    font-size: 1.3rem !important;
    font-weight: 700;
    margin: 0;
}

.erp-contact-close {
    background: transparent;
    border: none;
    color: var(--adm-text-secondary);
    font-size: 1.3rem;
    cursor: pointer;
    padding: 0.2rem 0.5rem;
    border-radius: 6px;
    transition: all 0.15s;
}

.erp-contact-close:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.erp-form-full {
    grid-column: 1 / -1;
}

/* Autocomplete for Customers and Products */
.erp-autocomplete-wrap {
    position: relative;
}

.erp-autocomplete-field {
    position: relative;
    display: flex;
    align-items: center;
}

.erp-autocomplete-field input {
    flex: 1;
    padding-right: 2.2rem;
}

.erp-autocomplete-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(244, 63, 94, 0.2);
    border: none;
    color: #f87171;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.15s ease;
}

.erp-autocomplete-clear:hover {
    background: rgba(244, 63, 94, 0.4);
    color: #fff;
}

.erp-autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--adm-border);
    border-radius: 8px;
    margin-top: 4px;
    max-height: 280px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.erp-autocomplete-results:not(:empty) {
    padding: 0.4rem 0;
}

.erp-autocomplete-item {
    padding: 0.6rem 0.9rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background 0.1s ease;
}

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

.erp-autocomplete-item:hover,
.erp-autocomplete-item.active {
    background: rgba(56, 189, 248, 0.1);
}

.erp-autocomplete-item strong {
    display: block;
    color: #ffffff !important;
    font-size: 0.9rem;
    margin-bottom: 0.15rem;
}

.erp-autocomplete-item small {
    display: block;
    color: var(--adm-text-muted) !important;
    font-size: 0.75rem;
}

.erp-autocomplete-item small span {
    margin-right: 0.5rem;
}

.erp-autocomplete-empty {
    padding: 1rem;
    color: var(--adm-text-muted);
    font-size: 0.85rem;
    text-align: center;
}

/* Product line with autocomplete */
.erp-line {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) 90px 120px 100px 36px;
    gap: 0.6rem;
    align-items: center;
    margin-bottom: 0.6rem;
}

.erp-line-product {
    position: relative;
}

.erp-line-product-search {
    width: 100%;
}

.erp-line-product-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #1e293b;
    border: 1px solid var(--adm-border);
    border-radius: 6px;
    margin-top: 2px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 50;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.35);
}

.erp-line-product-results:not(:empty) {
    padding: 0.3rem 0;
}

.erp-line-subtotal {
    text-align: right;
    font-size: 0.8rem;
    color: var(--adm-cyan) !important;
    font-weight: 700;
}

/* Lines for Purchases and Sales */
.erp-lines {
    margin-top: 1rem;
}

.erp-lines-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.6rem;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 0.85rem;
}


/* Reports */
.erp-report-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.erp-card h3 {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    color: #ffffff !important;
    font-weight: 700;
}

.erp-chart {
    overflow: hidden;
}

.erp-chart canvas {
    display: block;
    max-width: none;
}

/* Designs manager */
.admin-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-section-heading h4 {
    margin: 0 0 0.25rem;
    color: #ffffff !important;
    font-size: 1.1rem;
    font-weight: 700;
}

.admin-section-heading p,
.admin-design-manager small {
    color: var(--adm-text-muted) !important;
    font-size: 0.78rem;
}

#admin-design-count {
    color: var(--adm-cyan) !important;
    font-size: 0.8rem;
    font-weight: 700;
}

.admin-design-form {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.admin-zone-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    color: var(--adm-text-secondary);
    font-size: 0.8rem;
}

.admin-zone-options label,
.admin-publish-option {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--adm-text-secondary) !important;
    font-size: 0.8rem;
    cursor: pointer;
}

.admin-file-drop {
    min-height: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 2px dashed rgba(56, 189, 248, 0.35) !important;
    border-radius: 12px;
    color: var(--adm-text-secondary);
    background: rgba(56, 189, 248, 0.03) !important;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 1rem;
}

.admin-file-drop:hover,
.admin-file-drop.dragging {
    border-color: var(--adm-cyan) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

.admin-file-drop > span {
    color: var(--adm-cyan) !important;
    font-size: 1.6rem;
}

.admin-file-drop strong {
    color: #ffffff !important;
    font-size: 0.85rem;
}

.admin-file-drop small {
    color: var(--adm-text-muted) !important;
    font-size: 0.72rem;
}

.admin-design-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1.2rem;
}

.admin-design-entry {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.8rem;
    border: 1px solid var(--adm-border) !important;
    border-radius: 10px;
    background: var(--adm-card-subtle) !important;
}

.admin-design-entry img {
    width: 48px;
    height: 48px;
    object-fit: cover;
    border-radius: 8px;
}

.admin-design-details {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-design-details strong {
    color: #ffffff !important;
    font-size: 0.82rem;
}

.admin-design-details span,
.admin-design-details small {
    color: var(--adm-text-muted) !important;
    font-size: 0.7rem;
}

.admin-design-entry button {
    border: none;
    background: transparent;
    color: #f87171;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.3rem;
}

.admin-design-entry button[data-toggle-design] {
    color: var(--adm-cyan);
}

/* Login Modal */
#admin-login-modal .modal-content.admin-login-card {
    background: #111827 !important;
    border: 1px solid var(--adm-border-hover) !important;
    border-radius: 16px !important;
    color: #ffffff !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.7) !important;
    padding: 2.2rem;
    width: min(420px, 92vw);
    text-align: center;
}

#admin-login-modal .admin-login-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 1.2rem;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(135deg, #38bdf8, #8b5cf6);
    color: #ffffff;
    font-size: 1.35rem;
    font-weight: 900;
    box-shadow: 0 8px 24px rgba(56, 189, 248, 0.35);
}

#admin-login-modal small {
    color: var(--adm-cyan) !important;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
}

#admin-login-modal h3#admin-login-title {
    margin: 0.5rem 0;
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
}

#admin-login-modal p {
    color: var(--adm-text-secondary) !important;
    font-size: 0.85rem;
    margin-bottom: 1.4rem;
}

#admin-login-modal .admin-password-field {
    display: flex;
    border: 1px solid var(--adm-input-border) !important;
    border-radius: 9px;
    background: var(--adm-input) !important;
    overflow: hidden;
}

#admin-login-modal .admin-password-field:focus-within {
    border-color: var(--adm-cyan) !important;
    box-shadow: 0 0 0 3px var(--adm-cyan-glow);
}

#admin-login-modal .admin-password-field input {
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    color: #ffffff !important;
}

#admin-login-modal .admin-password-field button {
    padding: 0 0.9rem;
    border: none;
    color: var(--adm-cyan) !important;
    background: transparent;
    font-size: 0.75rem;
    font-weight: 700;
    cursor: pointer;
}

#admin-login-modal .admin-login-error {
    min-height: 1.2rem;
    color: #f87171 !important;
    font-size: 0.75rem;
    margin: 0.4rem 0;
}

/* Responsiveness */
@media (max-width: 1000px) {
    .erp-form-grid { grid-template-columns: repeat(2, 1fr); }
    .erp-kpi-grid { grid-template-columns: repeat(2, 1fr); }
    .erp-report-grid { grid-template-columns: 1fr; }
    .erp-line { grid-template-columns: minmax(180px, 2fr) 75px 100px 90px 34px; }
}

@media (max-width: 850px) {
    #admin-modal .admin-saas-shell { grid-template-columns: 68px minmax(0, 1fr) !important; }
    .admin-sidebar { min-height: 100vh; padding: 1.2rem 0.5rem; }
    .admin-brand { padding: 0.2rem 0 1.2rem; justify-content: center; }
    .admin-brand div, .admin-nav button:not(.active) small, .admin-nav button { font-size: 0; }
    .admin-nav button { justify-content: center; padding: 0.65rem; }
    .admin-nav button > span { font-size: 1.15rem; }
    .admin-sidebar-footer button, .admin-sidebar-footer > span { font-size: 0; }
    #admin-modal .admin-saas-shell > :not(.admin-sidebar):not(.modal-header) { margin-left: 1.25rem; margin-right: 1.25rem; }
    #admin-modal .modal-header { padding: 1rem 1.25rem; }
    .admin-design-list { grid-template-columns: 1fr; }
}

@media (max-width: 650px) {
    .erp-form-grid { grid-template-columns: 1fr; }
    .erp-toolbar > * { flex: 1 1 100% !important; margin-left: 0 !important; }
    .erp-line { grid-template-columns: 1fr 1fr; padding: 0.6rem; border: 1px solid var(--adm-border); border-radius: 8px; }
    .erp-line-product { grid-column: 1 / -1; }
    .erp-kpi-grid { grid-template-columns: 1fr; }
    .erp-table { min-width: 720px; }
    .erp-contact-form { width: 95vw !important; padding: 1.25rem !important; }
}

@media (max-width:900px) {
    .eco-intro { grid-template-columns:1fr; align-items:start; }
    .eco-intro p { margin-top:1.5rem; }
    .eco-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .eco-grid article:nth-child(2) { border-right:0; }
    .eco-grid article:nth-child(-n+2) { border-bottom:1px solid rgba(255,255,255,.22); }
}
@media (max-width:560px) {
    .impact-strip { justify-content:flex-start; }
    .eco-grid { grid-template-columns:1fr; }
    .eco-grid article { min-height:auto; border-right:0; border-bottom:1px solid rgba(255,255,255,.22); }
    .eco-number { margin-bottom:2rem; }
    .eco-transparency { grid-template-columns:1fr; padding:1.3rem; }
    .eco-sources { grid-column:1; }
}
