:root {
    /* --- 2026 REF DESIGN TOKENS --- */

    /* Palette: Navy & Neon */
    --bg-depth: #182C4B;
    /* Deep Navy */
    --bg-surface: #12213A;
    /* Lighter Navy for cards */
    --primary-accent: #769A4B;
    /* Neon Lime/Green */
    --secondary-accent: #243B5C;
    /* Slate for secondary elements */
    --success: #10b981;
    --danger: #ef4444;

    --aurora-gradient: linear-gradient(135deg, var(--primary-accent) 0%, var(--secondary-accent) 100%);
    /* Green Gradient */

    /* Glassmorphism / Card Borders */
    --glass-bg: rgba(18, 33, 58, 0.95);
    --glass-border: rgba(118, 154, 75, 0.1);
    --glass-highlight: rgba(118, 154, 75, 0.2);
    --blur-strength: 10px;

    /* Typography */
    --font-heading: 'Outfit', 'Inter', sans-serif;
    --font-body: 'Inter', system-ui, sans-serif;
    --text-primary: #e0e6ed;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;

    /* Spacing & Shape */
    --radius-lg: 24px;
    --radius-md: 16px;
    --radius-sm: 8px;
    --gap-lg: 2rem;
    --gap-md: 1.5rem;

    /* Physics */
    --bounce-easing: cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Springy */
    --smooth-easing: cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET & BASE --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: clamp(16px, 0.6vw + 0.9rem, 20px);
    overflow-x: hidden;
    /* Force prevent scroll */
    width: 100%;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-depth);
    /* Subtle mesh or noise could go here, keeping it clean for now as per ref */
    background-image: radial-gradient(circle at 15% 50%, rgba(118, 154, 75, 0.03) 0%, transparent 25%);
    color: var(--text-primary);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    /* Critical for mobile */
    width: 100%;
    max-width: 100vw;
    /* Ensure no overflow */
    position: relative;
}

/* --- BENTO LAYOUT UTILITIES --- */
.bento-grid {
    display: grid;
    gap: var(--gap-lg);
}

.bento-card {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

.bento-card:hover {
    border-color: var(--glass-highlight);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5);
}

/* Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 99px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.2);
}

/* --- APP STRUCTURE --- */
.app-layout {
    display: flex;
    flex-direction: column;
    height: 100vh;
    width: 100%;
}

/* --- HEADER & NAVIGATION (Floating) --- */
.sidebar {
    width: 100%;
    padding: 1.5rem 0 0;
    /* Remove horizontal padding from sidebar itself */
    z-index: 20;
    flex-shrink: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    max-width: 100%;
    /* FULL WIDTH FIX */
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.sidebar-header a,
.sidebar-header img {
    width: 57%;
    max-width: 143px;
}

.sidebar-header img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Welcome Banner */
.welcome-banner {
    padding: 0.75rem 1rem;
    border-left: 3px solid var(--primary-accent);
    margin: 0.5rem 0.75rem;
    background: rgba(118, 154, 75, 0.04);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.welcome-name {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.9rem;
    color: var(--primary-accent);
    margin-bottom: 0.3rem;
}

.welcome-phrase {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
    line-height: 1.4;
}

/* Data Sheet Download Button */
.btn-download-datasheet {
    background: transparent;
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.3rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-download-datasheet:hover {
    background: var(--primary-accent);
    color: var(--bg-primary);
}

/* QR Share Button */
.btn-qr-share {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    background: transparent;
    border: 1px solid rgba(56, 189, 248, 0.3);
    color: var(--primary-accent);
    padding: 0.35rem 0.5rem;
    border-radius: var(--radius-sm);
    font-size: 0.6rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-qr-share:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: var(--primary-accent);
    transform: scale(1.05);
}

.btn-qr-share svg {
    opacity: 0.8;
}

.btn-qr-share:hover svg {
    opacity: 1;
}

/* WhatsApp accent */
.btn-qr-whatsapp {
    border-color: rgba(118, 154, 75, 0.3);
    color: var(--primary-accent);
}

.btn-qr-whatsapp:hover {
    background: rgba(118, 154, 75, 0.15);
    border-color: var(--primary-accent);
}

/* vCard accent */
.btn-qr-vcard {
    border-color: rgba(118, 154, 75, 0.3);
    color: var(--primary-accent);
}

.btn-qr-vcard:hover {
    background: rgba(118, 154, 75, 0.15);
    border-color: var(--primary-accent);
}

/* QR Modal */
.qr-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeIn 0.2s ease;
}

.qr-modal {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 340px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.qr-modal h3 {
    margin: 0 0 0.25rem;
    color: var(--text-primary);
    font-family: var(--font-heading);
    font-size: 1.1rem;
}

.qr-subtitle {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.qr-modal-close {
    position: absolute;
    top: 0.5rem;
    right: 0.75rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
}

.qr-modal-close:hover {
    color: var(--danger);
}

.qr-canvas-area {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0;
}

.qr-seller-info {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 0.75rem;
}

.qr-seller-info strong {
    font-size: 0.95rem;
    color: var(--primary-accent);
}

.sidebar-header h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--aurora-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: -0.02em;
}

.sidebar-header .back-link {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
    cursor: pointer;
}

.sidebar-header .back-link:hover {
    color: var(--text-primary);
}

.sidebar-header .btn-logout {
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-decoration: none;
    border: 1px solid var(--glass-border);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
    background: transparent;
}

.sidebar-header .btn-logout:hover {
    color: var(--primary-accent);
    border-color: var(--primary-accent);
    background: rgba(118, 154, 75, 0.05);
}

.currency-selector {
    background: rgba(255, 255, 255, 0.06);
    color: var(--primary-accent);
    border: 1px solid var(--glass-border);
    padding: 0.35rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23a3ff00'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.5rem center;
    padding-right: 1.5rem;
}

.currency-selector:hover,
.currency-selector:focus {
    border-color: var(--primary-accent);
    background-color: rgba(118, 154, 75, 0.08);
    outline: none;
}

.currency-selector option {
    background: #ffffff;
    color: #1a1a1a;
}

/* Product Ribbon (Responsive Grid) */
.product-list-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 2rem;
}

/* grid definition moved to bottom of file or merged above - ensuring cleanup */

.product-item:hover {
    transform: translateY(-5px);
    background: rgba(118, 154, 75, 0.05);
    border-color: var(--primary-accent);
}

.product-item.active {
    background: rgba(118, 154, 75, 0.05);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    box-shadow: 0 0 15px rgba(118, 154, 75, 0.1);
}

.product-item.active .product-info .price {
    color: var(--primary-accent);
}

.product-item.active h4 {
    color: var(--primary-accent);
}

.tab-icon-img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    flex-shrink: 0;
    /* Prevent shrinking */
    transition: transform 0.4s;
}

.product-thumb {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.3));
    transition: transform 0.4s;
}

.product-item:hover .product-thumb {
    transform: scale(1.1) rotate(5deg);
}

.product-info h4 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.product-info .price {
    font-size: 0.75rem;
    color: var(--primary-accent);
    font-weight: 600;
    margin-top: 0.25rem;
}

/* --- MAIN CONTENT (Grid) --- */
.main-content {
    flex: 1;
    padding: 0 2rem 2rem;
    display: block;
}

.calculator-container {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
    max-width: 600px;
    /* Centered on mobile */
    margin: 0 auto;
    align-items: stretch;
    padding-bottom: 6rem;
    /* Extra padding for bottom scroll */
}

/* Remove Tablet/Mobile query as it's now global */
/* @media (max-width: 1024px) { ... } Removed */

/* --- LEFT COLUMN: DETAILS --- */
.product-detail-container {
    display: flex;
    flex-direction: column;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    /* VISUAL SEPARATION GAP */
}

.mobile-close-btn,
.mobile-close-handle,
.detail-overlay {
    display: none;
    /* Hidden on Desktop */
}

/* Reusable Glass Card Style */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.glass-card:hover {
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.3);
}

.detail-h-split {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-h-split h2 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
}

.stock-badge {
    background: rgba(16, 185, 129, 0.2);
    color: #34d399;
    padding: 0.4rem 1rem;
    border-radius: 99px;
    font-size: 0.8rem;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

/* Compact Detail Layout */
.detail-body {
    display: flex;
    flex-direction: column;
    /* Stack specs and calc */
    gap: 2rem;
}

.info-area {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    width: 100%;
}

@media(max-width: 768px) {
    .info-area {
        gap: 1.5rem;
    }
}

/* Header Thumb & SKU */
.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.05);
    padding: 0.5rem;
    border: 1px solid var(--glass-border);
}

.header-text {
    display: flex;
    flex-direction: column;
}

.header-sku {
    font-size: 1rem;
    color: var(--primary-accent);
    font-family: monospace;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

.sku-mini {
    font-size: 0.7rem;
    color: var(--text-muted);
    font-family: monospace;
    margin-bottom: 0.25rem;
}



/* Specs & Calc */
/* .info-area definition moved to Compact Detail Layout section */

.specs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

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

.spec-item .label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    white-space: nowrap;
    /* Prevent label wrap */
}

.spec-item .value {
    font-size: 1.1rem;
    /* Slightly larger */
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    /* CRITICAL: Prevent value wrap */
    overflow: hidden;
    text-overflow: ellipsis;
    /* Ellipsis if it really overflows */
}

.single-calc-box {
    /* Reset: Inherits directly from glass-card parent now, or kept purely for structure */
    display: flex;
    flex-direction: column;
}

.single-calc-box h3 {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: var(--text-primary);
}

.input-group label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    background: #182C4B;
    /* Darker than surface */
    border: 1px solid var(--secondary-accent);
    color: #fff;
    padding: 1rem;
    border-radius: 8px;
    /* Tighter radius */
    font-size: 1rem;
    transition: all 0.2s;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 0 2px rgba(118, 154, 75, 0.2);
}

.compact-inputs {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .compact-inputs {
        flex-direction: column;
        gap: 1rem;
    }

    .compact-inputs .input-group {
        width: 100%;
    }
}

.price-preview {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px dashed var(--glass-border);
}

.price-highlight {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-accent);
}

.btn-primary {
    width: 100%;
    background: var(--primary-accent);
    color: var(--bg-depth);
    border: none;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(118, 154, 75, 0.4), 0 0 40px rgba(118, 154, 75, 0.15);
    filter: brightness(1.1);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(118, 154, 75, 0.3);
}

/* Auto-computed disabled input */
.input-auto {
    background: rgba(118, 154, 75, 0.04) !important;
    border-color: rgba(118, 154, 75, 0.15) !important;
    color: var(--text-secondary) !important;
    cursor: default;
    pointer-events: none;
    opacity: 0.7;
}


/* --- RIGHT COLUMN: QUOTE --- */
.quote-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}


/* --- RIGHT COLUMN: QUOTE --- */
.quote-section {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

/* Specs Grid - Refactored (Card "Ficha Técnica") */
.product-sheet-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.product-sheet-card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

.detail-header {
    margin-bottom: 0.5rem;
}

/* Ensure selectedName div treats spans as blocks */
#selectedName {
    display: block;
    /* content inside manages layout */
}

/* Ficha Header Layout */
.ficha-header-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.ficha-text {
    flex: 1;
}

.ficha-thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.03);
    /* Subtle bg */
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    flex-shrink: 0;
}

.specs-area {
    width: 100%;
}

.dimensions-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* 2 Cols looks better in card? Or 4? User said "organiza como sea mejor". 2 cols is cleaner for key-value pairs in a card. */
    gap: 1rem;
    width: 100%;
}

/* Mobile check for grid? */
@media (min-width: 768px) {
    .dimensions-info {
        grid-template-columns: repeat(4, 1fr);
        /* Keep 4 cols on desktop */
    }
}

.spec-item {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* Add subtle separator line between specs? */
.spec-item::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -0.5rem;
    width: 20px;
    height: 1px;
    background: var(--glass-border);
    opacity: 0.5;
}

.spec-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.25rem;
}

.spec-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-primary);
}

/* Calculator Card - Emphasized */
.calculator-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    /* Match others, remove green forced border for uniformity? User said "tengan el mismo diseño". */
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

/* Restore Calculator H3 style to match */
.calculator-card h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    color: var(--text-primary);
    font-weight: 600;
    border-bottom: 1px solid var(--glass-border);
    padding-bottom: 0.5rem;
}

/* Calculator Card Main Container */
.calculator-card {
    /* Green Border */
    box-shadow: 0 0 15px rgba(118, 154, 75, 0.1);
    /* Subtle Green Glow */
    border-radius: var(--radius-lg);
    padding: 2rem;
    position: relative;
    overflow: hidden;
    background: var(--bg-surface);
    /* Ensure background is set */
    border: 1px solid var(--primary-accent);
    /* missing border from context */
}

/* Add a subtle gradient overlay to calculator to make it pop */
.calculator-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at top right, rgba(118, 154, 75, 0.05), transparent 70%);
    pointer-events: none;
}



.cart-card,
.customer-form-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--blur-strength));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    /* Slightly reduced padding */
    width: 100%;
    margin-bottom: 1.5rem;
}

.cart-table-container {
    width: 100%;
    overflow-x: auto;
    /* Allow internal scroll */
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
    border: 1px solid var(--glass-border);
    border-radius: 8px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 380px;
    /* Force internal scroll */
    /* Force scroll on very small screens */
}

.cart-table th {
    text-align: left;
    color: var(--text-secondary);
    padding: 1rem 0;
    font-size: 0.85rem;
    border-bottom: 1px solid var(--glass-border);
}

.cart-table td {
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
}

.shipping-section {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    border-radius: var(--radius-md);
    margin: 1.5rem 0;
}

.form-select {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.75rem;
    border-radius: 8px;
}

.form-select option {
    background: var(--bg-surface);
    color: white;
}

.cart-totals {
    margin-top: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-end;
}

.total-row {
    display: flex;
    gap: 2rem;
    color: var(--text-secondary);
}

.main-total {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-accent);
    /* Make Total Green */
}

/* Form Styles */
.customer-form-card h3 {
    margin-bottom: 1.5rem;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr;
    /* Single column for easier typing */
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.form-group input {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--glass-border);
    color: white;
    padding: 0.8rem;
    border-radius: 8px;
    width: 100%;
}

.btn-action {
    width: 100%;
    padding: 1rem;
    border-radius: 12px;
    border: none;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.2s;
}

/* Button - Dynamic Theme */
.btn-action.btn-pdf {
    background: var(--primary-accent);
    color: var(--bg-depth);
    border: 1px solid var(--primary-accent);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.btn-action.btn-pdf:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
    transform: translateY(-2px) scale(1.02);
}

.btn-action:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Category Tabs */
.category-tabs {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    /* Separation */
    margin-bottom: 2rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 2rem;
}

.tab-item {
    display: flex;
    flex: 1;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    /* INTERACTIVITY FIX */
    transition: all 0.3s var(--smooth-easing);
    color: var(--text-secondary);
    width: auto;
    max-width: none;
    position: relative;
    user-select: none;
}

/* Product Ribbon (Responsive Grid) */
.product-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    /* Increased min-width slightly for better desktop fit */
    gap: 1.5rem;
    /* Increased gap for desktop */
    padding: 1rem 0.5rem 2rem;
    width: 100%;
}

.product-item {
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 1rem;
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.4s var(--bounce-easing);
    position: relative;
    will-change: transform;
    height: 100%;
    /* Fill grid cell */
}

/* Removed duplicate .tab-item styles that were here */

.tab-item:hover {
    background: transparent;
    color: var(--primary-accent);
    transform: none;
}

/* --- RESPONSIVE 2026 REF (V2 Mobile-First) --- */
@media (max-width: 1200px) {
    .calculator-container {
        grid-template-columns: 1fr;
    }

    .detail-body {
        grid-template-columns: 1fr;
    }

    .image-area {
        height: auto;
    }
}

/* Mobile Layout (Assuming Mobile < 768px in this context) */
@media (max-width: 768px) {

    /* 1. Mobile-First Navigation */
    .sidebar {
        width: 100%;
        padding: 0.5rem 0;
    }

    .sidebar-header img {
        height: 32px;
    }

    .sidebar-header h2 {
        font-size: 1.2rem;
    }

    /* 2. Full Width Containers */
    .product-list-container {
        padding: 0;
        width: 100%;
        overflow-x: hidden;
        overflow-y: visible;
    }

    /* 3. Fluid Grid (2 Columns on Mobile, more on tablet) */
    .product-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Explicit 2 columns for mobile */
        gap: 0.5rem;
        padding: 0 0.5rem 6rem;
        /* Extra bottom padding for scrolling past bottom sheet handle */
        width: 100%;
        box-sizing: border-box;
        visibility: visible;
        opacity: 1;
    }

    .product-item {
        padding: 0.75rem;
        min-height: 140px;
        /* Ensure touch target size */
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        border-radius: 8px;
    }

    .product-item h4 {
        font-size: 0.8rem;
        white-space: normal;
        margin: 0.5rem 0;
        line-height: 1.2;
        max-height: none;
    }

    .product-thumb {
        width: 3.5rem;
        height: 3.5rem;
        margin-bottom: 0;
    }

    .mode-selection {
        flex-direction: column;
    }

    .category-tabs {
        flex-direction: row;
        padding: 0 0.5rem;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .category-tabs::-webkit-scrollbar {
        display: none; /* Chrome/Safari */
    }

    /* 4. Collapsible Detail View (Bottom Sheet) */
    body.mobile-view-detail .sidebar-header {
        /* Compact header in detail view */
        padding: 0.5rem 1rem;
        border-bottom: 1px solid var(--glass-border);
    }

    /* FAILSAFE: Force hide back button if it exists in cache structure */
    .mobile-back-btn {
        display: none !important;
    }

    body.mobile-view-detail .product-detail-container {
        display: flex;
        flex-direction: column;
        animation: slideInRight 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    .detail-h-split h2 {
        font-size: 1.8rem;
    }

    /* --- MENU OPTIMIZATION (Sticky Pills) --- */
    /* Category tabs are now styled at the outer 768px level above.
       The sticky pill styling is applied directly: */
    .category-tabs {
        position: sticky;
        top: 0;
        z-index: 999;
        background: rgba(2, 13, 30, 0.95);
        backdrop-filter: blur(10px);
        padding: 0.75rem 0.5rem;
        margin: 0 0 1rem;
        border-bottom: 1px solid var(--glass-border);
        gap: 0.4rem;
        align-items: center;
        width: 100%;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
        flex-wrap: wrap;
        justify-content: center;
        overflow-x: visible;
    }

    .sidebar-header {
        position: relative;
        z-index: 1000;
        background: var(--bg-depth);
    }

    .tab-item {
        flex: 0 0 auto;
        border-radius: 99px;
        padding: 0.5rem 0.85rem;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid var(--glass-border);
        margin: 0;
        display: flex;
        align-items: center;
        gap: 0.4rem;
        min-width: auto;
        height: 36px;
    }

    .tab-item.active {
        background: rgba(118, 154, 75, 0.15);
        border-color: var(--primary-accent);
        box-shadow: 0 0 10px rgba(118, 154, 75, 0.2);
    }

    .tab-item:hover {
        transform: none;
    }

    .tab-icon-img {
        width: 18px;
        height: 18px;
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5));
    }

    .tab-label {
        font-size: 0.8rem;
        font-weight: 600;
        white-space: nowrap;
    }

    /* --- QUOTE MODE TOGGLE (Metros / Kilos) --- */
    /* NOTE: These styles are global — moved out of media query into parent scope below */

    /* --- HEADER ACTIONS (logout, badge) --- */
    .header-actions {
        display: flex;
        align-items: center;
        gap: 0.35rem;
        margin-left: auto;
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .user-badge {
        font-size: 0.75rem;
        color: var(--text-muted);
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .btn-logout {
        background: transparent;
        border: 1px solid var(--glass-border);
        color: var(--text-secondary);
        padding: 0.35rem 0.75rem;
        border-radius: var(--radius-sm);
        cursor: pointer;
        font-size: 0.75rem;
        font-family: var(--font-heading);
        transition: all 0.2s;
        white-space: nowrap;
    }

    .btn-logout:hover {
        color: #ef4444;
        border-color: #ef4444;
    }

    /* --- FICHA HEADER --- */
    .ficha-header-content {
        display: flex;
        align-items: center;
        gap: 1rem;
    }

    .ficha-thumb {
        width: 64px;
        height: 64px;
        object-fit: contain;
        border-radius: var(--radius-sm);
        background: rgba(255, 255, 255, 0.05);
        padding: 4px;
    }

    .ficha-text {
        flex: 1;
        min-width: 0;
    }

    .ficha-thumb {
        width: 48px;
        height: 48px;
    }

    .header-actions {
        gap: 0.25rem;
    }

    .user-badge {
        display: none;
    }

    .quote-mode-toggle .toggle-buttons {
        flex-direction: row;
    }
}

@media (min-width: 769px) {
    /* Keep header horizontal — NOT a vertical sidebar */
    .app-layout {
        flex-direction: column;
        height: auto;
        min-height: 100vh;
    }

    .sidebar {
        width: 100%;
        padding: 1rem 0;
        flex-shrink: 0;
        border-bottom: 1px solid var(--glass-border);
    }

    .sidebar-header {
        max-width: 1200px;
        margin: 0 auto 1rem;
        padding: 0 2rem;
    }

    .sidebar-header img {
        height: 36px;
    }

    .header-actions {
        gap: 0.5rem;
    }

    .welcome-banner {
        max-width: 1200px;
        margin: 0 auto;
    }

    /* Category tabs horizontal, full width */
    .category-tabs {
        max-width: 1200px;
        margin: 0.75rem auto 0;
        padding: 0 2rem;
        justify-content: flex-start;
    }

    /* Product grid: multi-column */
    .product-grid {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 2rem;
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 1rem;
    }

    .main-content {
        flex: 1;
        overflow-y: auto;
        padding: 2rem;
    }

    .calculator-container {
        max-width: 1200px;
        margin: 0 auto;
    }
}

/* Two-column layout for large desktops */
@media (min-width: 1024px) {
    .calculator-container {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
        max-width: 1200px;
        align-items: start;
    }

    /* Product detail spans left column, calculator right */
    .product-detail-container {
        grid-column: 1;
    }

    .calculator-card {
        grid-column: 2;
        position: sticky;
        top: 2rem;
    }

    /* Data sheet card spans full width */
    .product-sheet-card {
        grid-column: 1;
    }
}

/* --- ADMIN LINK BUTTON --- */
.btn-admin-link {
    background: rgba(118, 154, 75, 0.1);
    border: 1px solid var(--primary-accent);
    color: var(--primary-accent);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 600;
    transition: all 0.2s;
    white-space: nowrap;
    align-items: center;
    gap: 0.25rem;
}

.btn-admin-link:hover {
    background: rgba(118, 154, 75, 0.2);
    box-shadow: 0 0 10px rgba(118, 154, 75, 0.15);
}

/* --- PROFILE BUTTON --- */
.btn-profile-edit {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-primary);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-profile-edit:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.4);
    color: #ffffff;
}

/* --- LOGOUT BUTTON --- */
.btn-logout {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-family: var(--font-heading);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-logout:hover {
    color: #ef4444;
    border-color: #ef4444;
}

/* =============================================
   QUOTE MODE TOGGLE — Metros / Kilos (GLOBAL)
   ============================================= */
.quote-mode-toggle .toggle-buttons {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 4px;
    border: 1px solid rgba(118, 154, 75, 0.12);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.toggle-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    border-radius: 13px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    z-index: 1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.toggle-btn:hover {
    color: #e0e6ed;
    background: rgba(255, 255, 255, 0.06);
}

.toggle-btn.active {
    background: var(--primary-accent);
    color: var(--bg-depth);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.toggle-btn.active:hover {
    box-shadow:
        0 6px 20px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .toggle-btn {
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
}

/* =============================================
   CUT LENGTH PRESET BUTTONS
   ============================================= */
.cut-preset-buttons {
    display: flex;
    gap: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 16px;
    padding: 4px;
    border: 1px solid rgba(118, 154, 75, 0.12);
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.3);
    flex-wrap: wrap;
}

.cut-preset-btn {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.6rem 0.5rem;
    border: none;
    background: transparent;
    color: var(--text-muted, #64748b);
    border-radius: 13px;
    cursor: pointer;
    font-family: 'Outfit', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: normal;
    word-break: break-word;
    line-height: 1.1;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.cut-preset-btn:hover {
    color: #e0e6ed;
    background: rgba(255, 255, 255, 0.06);
}

.cut-preset-btn.active {
    background: var(--primary-accent);
    color: var(--bg-depth);
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.3),
        0 1px 3px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 0 rgba(255, 255, 255, 0.15);
    transform: scale(1.02);
}

.cut-custom-input input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(118, 154, 75, 0.25);
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 12px;
    font-family: 'Outfit', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.2s;
}

.cut-custom-input input:focus {
    outline: none;
    border-color: var(--primary-accent);
    box-shadow: 0 0 10px rgba(118, 154, 75, 0.15);
}

@media (max-width: 768px) {
    .cut-preset-btn {
        padding: 0.5rem 0.4rem;
        font-size: 0.8rem;
    }
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* =============================================
   POCO X7 Pro — 407px CSS viewport
   Base breakpoint for mobile-first
   ============================================= */
@media (max-width: 430px) {
    html {
        font-size: 16px;
    }

    /* --- HEADER --- */
    .sidebar-header {
        padding: 0 1rem;
        gap: 0.5rem;
    }

    .sidebar-header a,
    .sidebar-header img {
        width: 50%;
        max-width: 120px;
    }

    .header-actions {
        gap: 0.25rem;
        flex-wrap: wrap;
        justify-content: flex-end;
        max-width: 55%;
    }

    .btn-admin-link,
    .btn-profile-edit,
    .btn-logout {
        padding: 0.3rem 0.5rem;
        font-size: 0.7rem;
    }

    .currency-selector {
        padding: 0.3rem 0.4rem;
        padding-right: 1.3rem;
        font-size: 0.75rem;
    }

    /* --- WELCOME BANNER --- */
    .welcome-banner {
        padding: 0.5rem 0.75rem;
        margin: 0.35rem 0.5rem;
    }

    .welcome-name {
        font-size: 0.8rem;
    }

    .welcome-phrase {
        font-size: 0.72rem;
    }

    .btn-qr-share {
        padding: 0.25rem 0.4rem;
        font-size: 0.55rem;
    }

    .btn-qr-share svg {
        width: 14px;
        height: 14px;
    }

    /* --- CATEGORY TABS --- */
    .category-tabs {
        padding: 0.5rem 0.35rem;
        gap: 0.3rem;
        flex-wrap: wrap;
        overflow-x: visible;
        justify-content: center;
    }

    .tab-item {
        padding: 0.4rem 0.65rem;
        height: 32px;
        flex: 0 0 auto;
        min-width: calc(50% - 0.3rem);
        justify-content: center;
    }

    .tab-label {
        font-size: 0.72rem;
    }

    .tab-icon-img {
        width: 16px;
        height: 16px;
    }

    /* --- PRODUCT GRID --- */
    .product-list-container {
        padding: 0 0.35rem;
    }

    .product-list {
        gap: 0.4rem;
        padding: 0 0.25rem 5rem;
    }

    .product-item {
        padding: 0.6rem;
        min-height: 120px;
    }

    .product-item h4 {
        font-size: 0.75rem;
    }

    .product-thumb {
        width: 3rem;
        height: 3rem;
    }

    /* --- MAIN CONTENT & CARDS --- */
    .main-content {
        padding: 0 0.75rem 2rem;
    }

    .calculator-container {
        gap: 1.25rem;
        padding-bottom: 4rem;
    }

    .glass-card {
        padding: 1.25rem;
        gap: 1.25rem;
        border-radius: var(--radius-md);
    }

    .calculator-card {
        padding: 1.25rem;
        border-radius: var(--radius-md);
    }

    .product-sheet-card {
        padding: 1.25rem;
    }

    .product-sheet-card h3,
    .calculator-card h3 {
        font-size: 1.05rem;
        margin-bottom: 1rem;
    }

    /* --- SPECS GRID --- */
    .dimensions-info {
        gap: 0.75rem;
    }

    .spec-value {
        font-size: 0.85rem;
    }

    .spec-label {
        font-size: 0.65rem;
    }

    /* --- INPUTS & BUTTONS --- */
    .compact-inputs {
        flex-direction: column;
        gap: 0.75rem;
    }

    .compact-inputs .input-group {
        width: 100%;
    }

    .input-group input {
        padding: 0.85rem;
        font-size: 0.95rem;
    }

    .price-highlight {
        font-size: 1.5rem;
    }

    .btn-primary {
        padding: 0.85rem 1.25rem;
        font-size: 0.9rem;
    }

    /* --- TOGGLE & PRESETS --- */
    .toggle-btn {
        padding: 0.55rem 0.75rem;
        font-size: 0.8rem;
        gap: 0.3rem;
    }

    .cut-preset-btn {
        padding: 0.45rem 0.35rem;
        font-size: 0.75rem;
    }

    /* --- CART SECTION --- */
    .cart-card,
    .customer-form-card {
        padding: 1rem;
    }

    .cart-table {
        min-width: 340px;
    }

    .shipping-section {
        padding: 1rem;
    }

    .main-total {
        font-size: 1.3rem;
    }

    /* --- FICHA HEADER --- */
    .ficha-thumb {
        width: 44px;
        height: 44px;
    }

    .detail-h-split h2 {
        font-size: 1.5rem;
    }

    /* --- QR MODAL --- */
    .qr-modal {
        padding: 1.5rem 1.25rem;
        max-width: 300px;
    }
}

/* ==========================================
   SHARE MODAL (Post-Quote)
   ========================================== */
.share-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
    padding: 1rem;
}

.share-modal {
    background: var(--bg-surface);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    max-width: 420px;
    width: 100%;
    text-align: center;
    position: relative;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    animation: slideUp 0.4s var(--bounce-easing);
}

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

.share-modal-close {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}
.share-modal-close:hover { color: var(--danger); }

.share-modal-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.share-modal h3 {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.share-modal-ref {
    font-family: monospace;
    font-size: 0.9rem;
    color: var(--primary-accent);
    font-weight: 600;
    margin-bottom: 0.15rem;
}

.share-modal-detail {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.share-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.share-btn {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s var(--smooth-easing);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.share-btn-whatsapp {
    background: #25D366;
    color: #fff;
}
.share-btn-whatsapp:hover {
    background: #1EBF5A;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.share-btn-email {
    background: var(--secondary-accent);
    color: var(--text-primary);
    border: 1px solid var(--glass-border);
}
.share-btn-email:hover {
    background: rgba(118, 154, 75, 0.15);
    border-color: var(--primary-accent);
    transform: translateY(-1px);
}
.share-btn-email.sent {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border-color: var(--success);
    cursor: default;
}
.share-btn-email.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.share-btn-download {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--glass-border);
    margin-top: 0.25rem;
}
.share-btn-download:hover {
    color: var(--text-primary);
    border-color: var(--text-secondary);
}

.share-modal-status {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    min-height: 1.2rem;
}
.share-success { color: var(--success); }
.share-error { color: var(--danger); }
.share-info { color: var(--text-muted); }

@media (max-width: 480px) {
    .share-modal {
        padding: 1.5rem;
        max-width: 100%;
    }
    .share-btn { font-size: 0.85rem; padding: 0.75rem 1rem; }
}