/* public/css/ventacontrol.css - JAS VentaControl Design System */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

:root {
    /* Base Color Palette (Light, Modern & Crystal-Clear) */
    --primary-dark: #ffffff;
    --primary-bg: #f8fafc;
    --secondary-bg: #ffffff;
    --surface-bg: #ffffff;
    
    /* Accents */
    --accent-blue: #2563eb;
    --accent-blue-hover: #1d4ed8;
    --accent-blue-light: rgba(37, 99, 235, 0.1);
    --accent-gold: #d97706;
    --accent-gold-hover: #b45309;
    
    /* Status Colors */
    --success: #059669;
    --success-light: rgba(5, 150, 105, 0.1);
    --warning: #d97706;
    --warning-light: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-light: rgba(220, 38, 38, 0.1);
    --info: #0284c7;
    --info-light: rgba(2, 132, 199, 0.1);
    --neutral: #475569;
    --neutral-light: rgba(71, 85, 105, 0.1);
    
    /* Typography Colors (Ultra High-Contrast & Legible) */
    --text-primary: #0f172a;   /* Slate 900 - Deep crisp dark text */
    --text-secondary: #334155; /* Slate 700 - Highly visible secondary text */
    --text-muted: #475569;     /* Slate 600 - High contrast muted text */
    --text-inverse: #ffffff;
    
    /* Borders & Shadows */
    --border-color: #cbd5e1;
    --border-light: #e2e8f0;
    --border-focus: rgba(37, 99, 235, 0.5);
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
    --shadow-glow: 0 0 15px rgba(37, 99, 235, 0.15);
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    
    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-full: 9999px;
    
    /* Typography */
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    /* Layout */
    --sidebar-width: 260px;
    --header-height: 70px;
    
    /* Z-index */
    --z-sidebar: 100;
    --z-header: 90;
    --z-dropdown: 200;
    --z-modal: 300;
    --z-overlay: 250;
    --z-tooltip: 400;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

a {
    color: var(--accent-blue);
    text-decoration: none;
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
    color: var(--info);
}

ul, ol {
    list-style: none;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
    color: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--text-primary);
    font-weight: 600;
    line-height: 1.2;
}

h1 { font-size: 2.25rem; }
h2 { font-size: 1.875rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.125rem; }
h6 { font-size: 1rem; }

/* ==========================================================================
   ANIMATIONS
   ========================================================================== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulseGlow {
    0% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(67, 97, 238, 0); }
    100% { box-shadow: 0 0 0 0 rgba(67, 97, 238, 0); }
}

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

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.app-container {
    display: grid;
    grid-template-columns: var(--sidebar-width) 1fr;
    min-height: 100vh;
    width: 100%;
}

.main-wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    width: 100%;
    overflow-x: hidden;
    grid-column: 2;
}

.main-content {
    flex-grow: 1;
    padding: var(--spacing-xl);
    overflow-y: auto;
    animation: fadeIn 0.4s ease-out;
}

/* ==========================================================================
   SIDEBAR
   ========================================================================== */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    width: var(--sidebar-width);
    height: 100vh;
    background: linear-gradient(180deg, #0f172a 0%, #1e293b 100%);
    border-right: 1px solid #334155;
    z-index: var(--z-sidebar);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-logo {
    display: flex;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
    font-size: 1.5rem;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-logo span {
    color: #38bdf8;
}

.sidebar-nav {
    flex-grow: 1;
    padding: var(--spacing-md) 0;
}

.sidebar-section {
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: 0.75rem;
    font-weight: 800;
    color: #38bdf8;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: var(--spacing-md);
}

.sidebar-nav ul {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    padding: 0.75rem var(--spacing-lg);
    color: #cbd5e1;
    font-weight: 600;
    border-left: 4px solid transparent;
    transition: all 0.2s ease;
}

.sidebar-nav a:hover {
    color: #ffffff;
    background-color: rgba(255, 255, 255, 0.06);
    border-left-color: #38bdf8;
}

.sidebar-nav a.active {
    color: #ffffff;
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.25) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-left-color: #3b82f6;
    font-weight: 700;
}

.sidebar-nav a span.icon {
    margin-right: var(--spacing-md);
    font-size: 1.2rem;
}

.sidebar-user {
    padding: var(--spacing-lg);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    background-color: rgba(0, 0, 0, 0.2);
}

.sidebar-user-name {
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 0.25rem;
}

.sidebar-user-role {
    font-size: 0.875rem;
    color: #94a3b8;
    font-weight: 500;
}

.sidebar-logout {
    display: block;
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: #f87171;
    font-weight: 600;
    transition: color 0.2s ease;
}

.sidebar-logout:hover {
    color: #ef4444;
}

/* ==========================================================================
   HEADER
   ========================================================================== */
.header-bar {
    height: var(--header-height);
    background-color: #ffffff;
    border-bottom: 1px solid #cbd5e1;
    color: #0f172a;
    font-weight: 700;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--spacing-xl);
    position: sticky;
    top: 0;
    z-index: var(--z-header);
}

.header-left {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    color: #0f172a;
}

.header-right {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    color: #0f172a;
}

/* ==========================================================================
   PAGES & CONTAINERS
   ========================================================================== */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    animation: slideInRight 0.4s ease-out;
}

.page-title {
    font-size: 2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.page-subtitle {
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: #0f172a;
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
    background-color: #ffffff;
    border-radius: 16px;
    border: 1px solid #cbd5e1;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: var(--spacing-lg);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.5s ease-out both;
}

.card:hover {
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
    border-color: #94a3b8;
}

.card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
    color: #0f172a;
}

.card-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 800;
    color: #0f172a;
}

.card-body {
    padding: 1.5rem;
    color: #1e293b;
}

.card-footer {
    padding: 1.25rem 1.5rem;
    border-top: 1px solid #e2e8f0;
    background-color: #f8fafc;
}

/* ==========================================================================
   STAT CARDS (Vibrant & High-Contrast Cards)
   ========================================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: slideInUp 0.5s ease-out both;
}

.stat-card:nth-child(1) { animation-delay: 0.1s; }
.stat-card:nth-child(2) { animation-delay: 0.2s; }
.stat-card:nth-child(3) { animation-delay: 0.3s; }
.stat-card:nth-child(4) { animation-delay: 0.4s; }

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.08);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 5px;
    background: linear-gradient(90deg, #2563eb, #0284c7);
}

.stat-card:nth-child(1)::before { background: linear-gradient(90deg, #10b981, #059669); }
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, #3b82f6, #1d4ed8); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #ef4444, #dc2626); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, #8b5cf6, #6d28d9); }

.stat-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--spacing-md);
}

.stat-label {
    font-size: 0.8125rem;
    color: #334155;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background-color: #eff6ff;
    color: #2563eb;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.35rem;
}

.stat-card:nth-child(1) .stat-icon { background-color: #d1fae5; color: #059669; }
.stat-card:nth-child(2) .stat-icon { background-color: #dbeafe; color: #1d4ed8; }
.stat-card:nth-child(3) .stat-icon { background-color: #fee2e2; color: #dc2626; }
.stat-card:nth-child(4) .stat-icon { background-color: #f3e8ff; color: #7c3aed; }

.stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #0f172a;
    background: none;
    -webkit-text-fill-color: #0f172a;
    margin-bottom: var(--spacing-xs);
}

.stat-trend {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.stat-trend.positive { color: var(--success); }
.stat-trend.negative { color: var(--danger); }
.stat-trend.neutral { color: var(--neutral); }

/* ==========================================================================
   DATA TABLES
   ========================================================================== */
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    text-align: left;
}

.data-table th,
.data-table td {
    padding: var(--spacing-md) var(--spacing-lg);
    border-bottom: 1px solid var(--border-color);
}

.data-table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 2px solid #cbd5e1;
}

.data-table td {
    color: #1e293b;
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.data-table tbody tr {
    transition: background-color 0.2s ease;
}

.data-table tbody tr:hover {
    background-color: #f8fafc;
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.table-empty {
    text-align: center;
    padding: var(--spacing-2xl) !important;
    color: var(--text-muted);
}

.table-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: flex-end;
}

/* ==========================================================================
   BADGES
   ========================================================================== */
.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.badge-success {
    background-color: var(--success-light);
    color: var(--success);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

.badge-warning {
    background-color: var(--warning-light);
    color: var(--warning);
    border: 1px solid rgba(253, 203, 110, 0.2);
}

.badge-danger {
    background-color: var(--danger-light);
    color: var(--danger);
    border: 1px solid rgba(225, 112, 85, 0.2);
}

.badge-info {
    background-color: var(--info-light);
    color: var(--info);
    border: 1px solid rgba(116, 185, 255, 0.2);
}

.badge-neutral {
    background-color: var(--neutral-light);
    color: var(--text-secondary);
    border: 1px solid rgba(113, 128, 150, 0.2);
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: center;
    white-space: nowrap;
    user-select: none;
}

.btn:focus {
    outline: none;
}

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

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), #2a41a8);
    color: var(--text-inverse);
    box-shadow: 0 4px 6px rgba(67, 97, 238, 0.2);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(67, 97, 238, 0.3);
    background: linear-gradient(135deg, var(--accent-blue-hover), #213486);
}

.btn-primary:active:not(:disabled) {
    transform: translateY(1px);
}

.btn-success {
    background-color: var(--success);
    color: var(--text-inverse);
}
.btn-success:hover:not(:disabled) { background-color: #00a383; }

.btn-warning {
    background-color: var(--warning);
    color: #000;
}
.btn-warning:hover:not(:disabled) { background-color: #eab763; }

.btn-danger {
    background-color: var(--danger);
    color: var(--text-inverse);
}
.btn-danger:hover:not(:disabled) { background-color: #cc654d; }

.btn-outline {
    background-color: transparent;
    border-color: var(--border-color);
    color: var(--text-primary);
}
.btn-outline:hover:not(:disabled) {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
}

.btn-sm {
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-icon {
    padding: 0.5rem;
    border-radius: var(--radius-md);
    width: 36px;
    height: 36px;
}
.btn-icon.btn-sm {
    width: 28px;
    height: 28px;
    padding: 0.25rem;
}

/* ==========================================================================
   FORMS & INPUTS
   ========================================================================== */
.form-group {
    margin-bottom: var(--spacing-md);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 var(--spacing-lg);
}

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

.field-help {
    margin-top: var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.product-photo-field {
    display: grid;
    justify-items: start;
}

.product-photo-preview,
.product-photo-placeholder {
    width: 180px;
    height: 180px;
    margin-bottom: var(--spacing-md);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
}

.product-photo-preview {
    object-fit: cover;
    background: #fff;
}

.product-photo-placeholder {
    display: grid;
    place-items: center;
    background: var(--primary-bg);
    color: var(--text-muted);
}

.product-photo-input {
    max-width: 480px;
}

.product-thumb,
.product-thumb-placeholder {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
}

.product-thumb {
    object-fit: cover;
    border: 1px solid var(--border-light);
}

.product-thumb-placeholder {
    display: inline-grid;
    place-items: center;
    background: var(--primary-bg);
    font-size: 1.4rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-md);
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0f172a;
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    line-height: 1.5;
    color: #0f172a;
    background-color: #ffffff;
    background-clip: padding-box;
    border: 1.5px solid #94a3b8;
    border-radius: var(--radius-md);
    font-weight: 600;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control::placeholder {
    color: #475569;
    font-weight: 500;
    opacity: 1;
}

.form-control:focus {
    outline: 0;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.form-control:disabled {
    background-color: rgba(0, 0, 0, 0.2);
    opacity: 0.7;
    cursor: not-allowed;
}

select.form-control {
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23a0aec0' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
    padding-right: 2.25rem;
}

textarea.form-control {
    min-height: 100px;
    resize: vertical;
}

.form-control[aria-invalid="true"] {
    border-color: var(--danger);
}
.form-control[aria-invalid="true"]:focus {
    box-shadow: 0 0 0 3px rgba(225, 112, 85, 0.25);
}

.field-error {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.75rem;
    color: var(--danger);
}

.form-actions {
    margin-top: var(--spacing-xl);
    display: flex;
    justify-content: flex-end;
    gap: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--border-color);
}

/* Checkbox & Radio */
.form-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.form-check-input {
    width: 1em;
    height: 1em;
    margin-top: 0.25em;
    vertical-align: top;
    background-color: var(--surface-bg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    border: 1px solid var(--border-color);
    appearance: none;
    color-adjust: exact;
    transition: background-color 0.15s ease-in-out, border-color 0.15s ease-in-out;
}
.form-check-input[type="checkbox"] { border-radius: 0.25em; }
.form-check-input[type="radio"] { border-radius: 50%; }

.form-check-input:checked {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
}
.form-check-input[type="checkbox"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
}
.form-check-input[type="radio"]:checked {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e");
}

/* ==========================================================================
   ALERTS
   ========================================================================== */
.alert {
    position: relative;
    padding: 1rem 1.25rem;
    margin-bottom: var(--spacing-md);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: fadeIn 0.3s ease-out;
}

.alert-success {
    color: #a3e6d8;
    background-color: rgba(0, 184, 148, 0.1);
    border-color: rgba(0, 184, 148, 0.2);
    border-left: 4px solid var(--success);
}

.alert-warning {
    color: #fce4b3;
    background-color: rgba(253, 203, 110, 0.1);
    border-color: rgba(253, 203, 110, 0.2);
    border-left: 4px solid var(--warning);
}

.alert-danger {
    color: #f3bba8;
    background-color: rgba(225, 112, 85, 0.1);
    border-color: rgba(225, 112, 85, 0.2);
    border-left: 4px solid var(--danger);
}

.alert-info {
    color: #baddff;
    background-color: rgba(116, 185, 255, 0.1);
    border-color: rgba(116, 185, 255, 0.2);
    border-left: 4px solid var(--info);
}

/* ==========================================================================
   MONEY
   ========================================================================== */
.money {
    font-variant-numeric: tabular-nums;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-weight: 500;
}
.money-positive { color: var(--success); }
.money-negative { color: var(--danger); }

/* ==========================================================================
   PAGINATION
   ========================================================================== */
.pagination {
    display: flex;
    list-style: none;
    gap: 0.25rem;
    margin-top: var(--spacing-lg);
    justify-content: flex-end;
}

.pagination a,
.pagination span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 32px;
    padding: 0 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    background-color: var(--surface-bg);
    border: 1px solid var(--border-color);
    transition: all 0.2s ease;
}

.pagination a:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--text-muted);
    text-decoration: none;
}

.pagination .active {
    background-color: var(--accent-blue);
    border-color: var(--accent-blue);
    color: var(--text-inverse);
    pointer-events: none;
}

.pagination .disabled {
    color: var(--text-muted);
    background-color: transparent;
    pointer-events: none;
    opacity: 0.5;
}

/* ==========================================================================
   SEARCH & FILTERS
   ========================================================================== */
.search-box {
    position: relative;
    display: flex;
    width: 100%;
    max-width: 400px;
}

.search-box .form-control {
    padding-left: 2.5rem;
    border-radius: var(--radius-full);
}

.search-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.filter-bar {
    display: flex;
    gap: var(--spacing-md);
    background-color: var(--secondary-bg);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    margin-bottom: var(--spacing-lg);
    align-items: flex-end;
}

/* ==========================================================================
   LOGIN PAGE
   ========================================================================== */
.login-page,
.login-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--primary-bg) 0%, var(--primary-dark) 100%);
    padding: var(--spacing-xl);
}

.login-card {
    width: 100%;
    max-width: 400px;
    background: rgba(22, 33, 62, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: var(--spacing-2xl);
    animation: fadeIn 0.6s ease-out;
}

.login-logo {
    text-align: center;
    margin-bottom: var(--spacing-xl);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.login-logo span {
    color: var(--accent-blue);
}

/* ==========================================================================
   ERROR PAGE
   ========================================================================== */
.error-page {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    text-align: center;
    padding: var(--spacing-xl);
}

.error-code {
    font-size: 6rem;
    font-weight: 800;
    color: var(--accent-blue);
    line-height: 1;
    margin-bottom: var(--spacing-md);
    text-shadow: var(--shadow-glow);
}

.error-title {
    font-size: 2rem;
    margin-bottom: var(--spacing-md);
}

.error-desc {
    color: var(--text-secondary);
    max-width: 500px;
    margin-bottom: var(--spacing-xl);
}

/* ==========================================================================
   RESPONSIVE DESIGN (CSS Only Sidebar Toggle)
   ========================================================================== */
#sidebar-toggle {
    display: none;
}

.sidebar-toggle-label {
    display: none;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: var(--radius-md);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.sidebar-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: var(--z-overlay);
    backdrop-filter: blur(2px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

@media (max-width: 768px) {
    .app-container {
        grid-template-columns: 1fr;
    }
    
    .main-wrapper {
        grid-column: 1;
    }
    
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar-toggle-label {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    #sidebar-toggle:checked ~ .sidebar {
        transform: translateX(0);
    }
    
    #sidebar-toggle:checked ~ .sidebar-overlay {
        display: block;
        opacity: 1;
    }
    
    .header-left {
        gap: var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: 1fr;
    }
    
    .main-content {
        padding: var(--spacing-md);
    }
}

/* ==========================================================================
   PRINT STYLES
   ========================================================================== */
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
    
    .sidebar,
    .header-bar,
    .btn,
    .table-actions,
    .pagination,
    .filter-bar,
    .sidebar-toggle-label {
        display: none !important;
    }
    
    .app-container {
        display: block;
    }
    
    .main-wrapper {
        margin: 0;
        padding: 0;
    }
    
    .main-content {
        padding: 0;
        overflow: visible;
    }
    
    .card {
        border: 1px solid #ccc;
        box-shadow: none;
        background: none;
        page-break-inside: avoid;
    }
    
    .card-header {
        background: #f0f0f0;
        border-bottom: 1px solid #000;
    }
    
    .data-table th {
        background-color: #f0f0f0;
        color: #000;
        border-bottom: 2px solid #000;
    }
    
    .data-table th,
    .data-table td {
        border-color: #ccc;
        color: #000;
    }
    
    .badge {
        border: 1px solid #000;
        color: #000;
        background: transparent !important;
    }
    
    .stat-card {
        background: none;
        border: 1px solid #000;
        box-shadow: none;
    }
    
    .stat-value,
    .stat-label {
        color: #000;
        -webkit-text-fill-color: #000;
    }
}

/* Public virtual storefront */
.store-body { margin: 0; min-height: 100vh; color: #172033; background: #f5f7fb; font-family: Inter, ui-sans-serif, system-ui, -apple-system, sans-serif; }
.store-shell { width: min(1180px, calc(100% - 32px)); margin-inline: auto; }
.store-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid #dce3ee; background: rgba(255,255,255,.96); }
.store-header-inner { min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.store-brand { color: #162033; font-size: 1.35rem; font-weight: 800; letter-spacing: .03em; text-decoration: none; text-transform: uppercase; }
.store-brand span { color: #2aa8e8; }
.store-nav { display: flex; align-items: center; gap: 22px; }
.store-nav a { color: #38445a; font-weight: 650; text-decoration: none; }
.store-cart-link { padding: 10px 16px; border-radius: 999px; color: white !important; background: #2357e8; }
.store-main { min-height: calc(100vh - 150px); padding-block: 44px 72px; }
.store-hero { position: relative; overflow: hidden; margin-bottom: 38px; padding: clamp(34px, 6vw, 72px); border-radius: 28px; color: white; background: linear-gradient(120deg, #111b35 0%, #174b8c 58%, #20a9df 130%); box-shadow: 0 20px 55px rgba(25,55,110,.2); }
.store-hero::after { position: absolute; width: 280px; height: 280px; right: -80px; top: -120px; border: 52px solid rgba(255,255,255,.09); border-radius: 50%; content: ''; }
.store-hero > div { position: relative; z-index: 1; max-width: 680px; }
.store-eyebrow { display: inline-block; margin-bottom: 12px; color: #67d5ff; font-size: .78rem; font-weight: 800; letter-spacing: .16em; }
.store-hero h1, .store-page-heading h1, .store-thanks h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.store-hero h1 { color: white; }
.store-hero p { max-width: 590px; margin: 20px 0 0; color: #e5efff; font-size: 1.08rem; line-height: 1.7; }
.store-product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(245px, 1fr)); gap: 24px; }
.store-product-card { overflow: hidden; border: 1px solid #dfe6f0; border-radius: 20px; background: white; box-shadow: 0 12px 34px rgba(33,52,87,.08); transition: transform .2s, box-shadow .2s; }
.store-product-card:hover { transform: translateY(-4px); box-shadow: 0 18px 45px rgba(33,52,87,.14); }
.store-product-image { display: block; width: 100%; aspect-ratio: 4 / 3; background: #edf1f7; object-fit: cover; }
.store-product-placeholder { display: grid; place-items: center; color: #8e9bb1; font-size: 4rem; }
.store-product-content { display: flex; min-height: 275px; padding: 22px; flex-direction: column; align-items: flex-start; }
.store-category { color: #238ac2; font-size: .72rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.store-product-content h2 { margin: 8px 0 6px; font-size: 1.25rem; }
.store-product-content p { min-height: 46px; margin: 0 0 14px; color: #68748a; line-height: 1.5; }
.store-product-content small { color: #788399; }
.store-product-price { display: flex; margin-top: auto; margin-bottom: 4px; align-items: baseline; gap: 9px; font-size: 1.35rem; }
.store-old-price { color: #9ba5b5; font-size: .86rem; text-decoration: line-through; }
.store-add-form { display: flex; width: 100%; margin-top: 16px; gap: 8px; }
.store-add-form input { width: 64px; }
.store-add-form button { flex: 1; }
.store-primary { display: inline-flex; min-height: 44px; padding: 10px 18px; border: 0; border-radius: 11px; align-items: center; justify-content: center; color: white; background: #2357e8; font: inherit; font-weight: 750; text-decoration: none; cursor: pointer; }
.store-primary:hover { background: #1946c6; }
.store-soldout { width: 100%; margin-top: 16px; padding: 11px; border-radius: 10px; color: #7d2935; background: #fff0f1; text-align: center; font-weight: 700; }
.store-page-heading { margin-bottom: 28px; }
.store-page-heading h1 { font-size: clamp(2rem, 4vw, 3rem); }
.store-page-heading p { color: #68748a; }
.store-checkout-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.store-panel { padding: 28px; border: 1px solid #dfe6f0; border-radius: 20px; background: white; box-shadow: 0 10px 30px rgba(33,52,87,.07); }
.store-panel h2 { margin: 0 0 22px; }
.store-cart-row { display: grid; padding: 15px 0; border-bottom: 1px solid #e9edf4; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; }
.store-cart-row small { display: block; margin-top: 5px; color: #7d8798; }
.store-link-button { border: 0; color: #c6374b; background: none; cursor: pointer; text-decoration: underline; }
.store-totals { display: flex; padding-top: 18px; flex-direction: column; align-items: flex-end; gap: 7px; color: #596579; }
.store-totals strong { color: #172033; font-size: 1.15rem; }
.store-checkout-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.store-checkout-form h2, .store-checkout-form .store-privacy, .store-checkout-form .store-submit { grid-column: 1 / -1; }
.store-checkout-form label { display: flex; color: #3c475b; font-size: .9rem; font-weight: 650; flex-direction: column; gap: 7px; }
.store-checkout-form input, .store-checkout-form select, .store-checkout-form textarea, .store-add-form input { min-height: 44px; padding: 10px 12px; border: 1px solid #cbd4e1; border-radius: 9px; color: #172033; background: white; font: inherit; box-sizing: border-box; }
.store-checkout-form textarea { min-height: 86px; resize: vertical; }
.store-privacy { margin: 0; color: #778297; font-size: .82rem; line-height: 1.5; }
.store-error { margin-bottom: 20px; padding: 14px 18px; border-left: 4px solid #d84458; border-radius: 8px; color: #8b2332; background: #fff0f2; }
.store-empty, .store-thanks { max-width: 650px; margin: 50px auto; padding: 50px 30px; border: 1px solid #dfe6f0; border-radius: 24px; background: white; text-align: center; box-shadow: 0 14px 45px rgba(33,52,87,.08); }
.store-thanks { display: flex; align-items: center; flex-direction: column; gap: 18px; }
.store-thanks h1 { font-size: clamp(2rem, 4vw, 3rem); }
.store-thanks p { max-width: 510px; margin: 0; color: #69758a; line-height: 1.65; }
.store-check { display: grid; width: 72px; height: 72px; border-radius: 50%; place-items: center; color: white; background: #20a46b; font-size: 2.2rem; font-weight: 800; }
.store-footer { padding: 28px 0; color: #7a8597; background: #111a2e; text-align: center; }
.store-body > .skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: 8px; color: white; background: #111a2e; }
.store-body > .skip-link:focus { top: 12px; }

@media (max-width: 760px) {
    .store-checkout-grid { grid-template-columns: 1fr; }
    .store-checkout-form { grid-template-columns: 1fr; }
    .store-checkout-form h2, .store-checkout-form .store-privacy, .store-checkout-form .store-submit { grid-column: auto; }
    .store-header-inner { min-height: 64px; }
    .store-nav { gap: 10px; }
    .store-nav > a:first-child { display: none; }
    .store-main { padding-top: 24px; }
    .store-hero { border-radius: 20px; }
    .store-cart-row { grid-template-columns: 1fr auto; }
    .store-cart-row form { grid-column: 1 / -1; }
}

/* JAS Mentor Helpers */
.sintesis-card {
    border-left: 5px solid #4361ee;
    background: #1e293b;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
}
.sintesis-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.sintesis-title {
    margin: 0;
    font-size: 1.15rem;
    color: #f59e0b;
    font-weight: 700;
}
.sintesis-body {
    font-size: 1.05rem;
    line-height: 1.6;
    color: #e2e8f0;
    margin: 0;
}
.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #334155;
    border-radius: 4px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: #10b981;
    border-radius: 4px;
}
.recom-alert {
    background: #0f172a;
    border-left: 4px solid #3b82f6;
    border-radius: 8px;
    padding: 1rem;
    color: #f1f5f9;
}
.recom-title {
    color: #60a5fa;
    font-size: 1rem;
}
.recom-leccion {
    margin: 0 0 0.5rem 0;
    font-size: 0.95rem;
    font-style: italic;
    color: #cbd5e1;
}
.recom-mensaje {
    margin: 0 0 0.75rem 0;
    font-size: 0.95rem;
    color: #f8fafc;
}

/* ==========================================================================
   UTILITIES
   ========================================================================== */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger { color: var(--danger); }
.text-info { color: var(--info); }
.text-muted { color: var(--text-muted); }

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }

.flex { display: flex; }
.flex-column { flex-direction: column; }
.flex-between { justify-content: space-between; }
.flex-end { justify-content: flex-end; }
.items-center { align-items: center; }

.gap-1 { gap: var(--spacing-xs); }
.gap-2 { gap: var(--spacing-sm); }
.gap-3 { gap: var(--spacing-md); }

.w-full { width: 100%; }
.h-full { height: 100%; }

.hidden { display: none !important; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

.inline-form {
    display: inline-block;
}

.branch-edit-details {
    display: inline-block;
    margin-right: 8px;
}

.branch-edit-form {
    margin-top: 5px;
    padding: 10px;
    border: 1px solid #2d3748;
    border-radius: 8px;
    background: #1a1a2e;
}


/* Camera and commercial QR labels */
.webcam-preview { width: 100%; max-height: 360px; background: #020617; border-radius: 10px; object-fit: contain; }
.label-sheet { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.product-label { min-height: 50mm; border: 1px dashed #94a3b8; border-radius: 6px; padding: 4mm; text-align: center; background: #fff; color: #111827; display: flex; flex-direction: column; align-items: center; justify-content: center; break-inside: avoid; }
.label-product-name { font-size: 14px; line-height: 1.15; }
.label-sku, .label-code { font-size: 10px; overflow-wrap: anywhere; }
.label-price { font-size: 18px; font-weight: 700; margin: 2mm 0; }
.label-qr img, .label-qr canvas { display: block; max-width: 100%; height: auto; }
.qr-error { color: #b91c1c; font-size: 12px; }
@media print {
    @page { margin: 5mm; }
    .no-print, #print-labels, .page-header { display: none !important; }
    .label-sheet { display: grid !important; grid-template-columns: repeat(4, 48mm); gap: 2mm; align-items: start; }
    .product-label { width: 48mm; height: 50mm; min-height: 50mm; box-sizing: border-box; border: 0.2mm solid #999; padding: 2mm; page-break-inside: avoid; }
    .label-qr-box svg, .label-qr img, .label-qr canvas { width: 30mm !important; height: 30mm !important; }
    .label-code { font-size: 6pt; }
}


/* --- Storefront marketing refresh --- */
.store-topbar { color: #d9ebff; background: #0d1630; font-size: .92rem; }
.store-topbar-inner { display: flex; min-height: 42px; align-items: center; justify-content: space-between; gap: 16px; }
.store-topbar-inner span { opacity: .95; }
.store-header { top: 0; }
.store-main { padding-block: 32px 80px; }
.store-header-inner { gap: 16px; }
.store-nav { flex-wrap: wrap; }
.store-nav a { position: relative; }
.store-nav a:not(.store-cart-link)::after { position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: #2357e8; content: ''; transition: width .18s ease; }
.store-nav a:not(.store-cart-link):hover::after { width: 100%; }
.store-hero { padding: clamp(28px, 5vw, 64px); }
.store-hero-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr); gap: 28px; align-items: center; }
.store-hero-copy { position: relative; z-index: 1; }
.store-hero-copy p { margin-bottom: 0; }
.store-hero-actions { display: flex; margin-top: 28px; flex-wrap: wrap; gap: 14px; }
.store-secondary { display: inline-flex; min-height: 44px; padding: 10px 18px; border: 1px solid rgba(255,255,255,.3); border-radius: 11px; align-items: center; justify-content: center; color: white; background: rgba(255,255,255,.08); font-weight: 700; text-decoration: none; backdrop-filter: blur(4px); }
.store-secondary:hover { background: rgba(255,255,255,.16); }
.store-hero-microcopy { display: flex; margin-top: 18px; flex-wrap: wrap; gap: 10px; }
.store-hero-microcopy span { display: inline-flex; padding: 8px 12px; border-radius: 999px; color: #edf6ff; background: rgba(255,255,255,.12); font-size: .88rem; font-weight: 600; }
.store-hero-panel { position: relative; z-index: 1; padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(10,18,36,.25); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(8px); }
.store-hero-panel h2 { margin: 0 0 16px; color: white; font-size: 1.35rem; }
.store-check-list { display: grid; margin: 0; padding: 0; gap: 12px; list-style: none; }
.store-check-list li { position: relative; padding-left: 28px; line-height: 1.55; }
.store-check-list li::before { position: absolute; left: 0; top: 0; color: #69d5ff; content: '✓'; font-weight: 800; }
.store-highlight-card { margin-top: 18px; padding: 18px; border-radius: 18px; color: #10213f; background: white; }
.store-highlight-card strong { display: block; font-size: 1.15rem; }
.store-highlight-card p { margin: 8px 0 0; color: #61708a; font-size: .95rem; }
.store-stats { display: grid; margin: 0 0 28px; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.store-stat-card { padding: 22px; border: 1px solid #dfe6f0; border-radius: 18px; background: white; box-shadow: 0 10px 25px rgba(33,52,87,.06); }
.store-stat-card small { display: block; color: #6d7990; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.store-stat-card strong { display: block; margin: 12px 0 6px; color: #15213a; font-size: 1.9rem; }
.store-stat-card span { color: #5f6b80; line-height: 1.45; }
.store-benefit-strip { display: grid; margin-bottom: 34px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.store-benefit-card { padding: 24px; border: 1px solid #dfe6f0; border-radius: 20px; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); box-shadow: 0 12px 34px rgba(33,52,87,.06); }
.store-benefit-card h2 { margin: 0 0 10px; font-size: 1.08rem; }
.store-benefit-card p { margin: 0; color: #637087; line-height: 1.65; }
.store-section-heading { display: flex; margin-bottom: 18px; flex-direction: column; gap: 8px; }
.store-section-heading h2 { margin: 0; font-size: clamp(1.6rem, 3vw, 2.4rem); }
.store-section-heading p { margin: 0; color: #637087; line-height: 1.6; }
.store-eyebrow-dark { color: #1d74b3; }
.store-categories, .store-offers, .store-catalog-section { margin-bottom: 38px; }
.store-chip-row { display: flex; flex-wrap: wrap; gap: 12px; }
.store-chip { display: inline-flex; padding: 10px 14px; border: 1px solid #d7e0ef; border-radius: 999px; align-items: center; gap: 10px; color: #244061; background: white; font-weight: 700; }
.store-chip small { display: inline-grid; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 999px; place-items: center; color: white; background: #2357e8; font-size: .75rem; }
.store-offer-grid .store-product-card { border-color: #d8e6ff; background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%); }
.store-product-card-highlight { box-shadow: 0 18px 40px rgba(28,72,160,.12); }
.store-product-media { position: relative; }
.store-badge-row { position: absolute; left: 14px; top: 14px; display: flex; flex-wrap: wrap; gap: 8px; }
.store-badge { display: inline-flex; min-height: 28px; padding: 6px 10px; border-radius: 999px; align-items: center; font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.store-badge-accent { color: white; background: #de495f; }
.store-badge-warning { color: #704400; background: #ffe8b0; }
.store-badge-success { color: #126543; background: #daf7e8; }
.store-product-content { min-height: 305px; }
.store-product-meta { display: flex; width: 100%; margin-top: 2px; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.store-save-badge { display: inline-flex; padding: 5px 10px; border-radius: 999px; color: #13613d; background: #e5f8ed; font-size: .78rem; font-weight: 800; }
.store-inline-note { display: inline-block; margin-top: 7px; color: #1f6a9a; font-size: .82rem; font-weight: 700; }
.store-primary { box-shadow: 0 10px 24px rgba(35,87,232,.18); }
.store-primary:hover { transform: translateY(-1px); }
.store-cta-banner { display: grid; padding: 28px; border: 1px solid #dbe5f3; border-radius: 24px; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px; color: #172033; background: linear-gradient(120deg, #f7fbff 0%, #edf3ff 100%); box-shadow: 0 12px 32px rgba(33,52,87,.07); }
.store-cta-banner h2 { margin: 0 0 8px; font-size: clamp(1.5rem, 3vw, 2.25rem); }
.store-cta-banner p { margin: 0; color: #637087; line-height: 1.65; }
.store-steps { display: grid; margin-bottom: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.store-step { display: flex; padding: 16px 18px; border: 1px solid #dfe6f0; border-radius: 18px; align-items: center; gap: 14px; background: white; box-shadow: 0 10px 25px rgba(33,52,87,.05); }
.store-step.is-active { border-color: #bfd4ff; background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%); }
.store-step-number { display: grid; width: 38px; height: 38px; border-radius: 50%; place-items: center; color: white; background: #2357e8; font-weight: 800; }
.store-step strong { display: block; margin-bottom: 4px; }
.store-step small { color: #677489; line-height: 1.45; }
.store-summary-panel { position: sticky; top: 100px; }
.store-summary-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.store-panel-intro { margin: 0 0 14px; color: #68748a; line-height: 1.6; }
.store-mini-pill { display: inline-flex; padding: 7px 10px; border-radius: 999px; color: #184068; background: #edf4ff; font-size: .82rem; font-weight: 800; }
.store-trust-box { margin-top: 20px; padding: 18px; border-radius: 18px; background: #f7faff; }
.store-trust-box strong { display: block; margin-bottom: 12px; }
.store-field-hint { color: #738096; font-size: .79rem; line-height: 1.45; }
.store-field-wide { grid-column: 1 / -1; }
.store-thanks-next { width: min(100%, 520px); padding: 20px; border-radius: 18px; background: #f7faff; text-align: left; }
.store-thanks-next h2 { margin: 0 0 12px; font-size: 1.15rem; }
.store-thanks-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-footer { padding: 42px 0; }
.store-footer-grid { display: grid; grid-template-columns: 1.1fr .9fr .9fr; gap: 24px; text-align: left; }
.store-footer-brand p { margin: 10px 0 0; color: #a7b4ca; line-height: 1.65; }
.store-footer-list { display: grid; margin: 12px 0 0; padding: 0; gap: 8px; color: #ced9eb; list-style: none; }
.store-footer-list li { line-height: 1.55; }

@media (max-width: 980px) {
    .store-hero-grid, .store-cta-banner, .store-footer-grid, .store-stats, .store-benefit-strip, .store-steps { grid-template-columns: 1fr 1fr; }
    .store-hero-grid > :first-child, .store-cta-banner > :first-child, .store-footer-grid > :first-child { grid-column: 1 / -1; }
    .store-summary-panel { position: static; }
}

@media (max-width: 760px) {
    .store-topbar-inner { min-height: auto; padding: 8px 0; flex-direction: column; align-items: flex-start; }
    .store-hero-grid, .store-stats, .store-benefit-strip, .store-steps, .store-cta-banner, .store-footer-grid { grid-template-columns: 1fr; }
    .store-hero-panel { padding: 20px; }
    .store-hero-actions, .store-thanks-actions { flex-direction: column; }
    .store-secondary, .store-primary { width: 100%; }
    .store-chip-row { gap: 10px; }
}
