/* ================================================================
   Lens Configurator — Frontend Styles  v2.0
   ================================================================ */

:root {
    --lc-primary:       #1a4fa0;
    --lc-primary-dark:  #153d7a;
    --lc-primary-light: #e8f0fe;
    --lc-accent:        #2563eb;
    --lc-green:         #16a34a;
    --lc-border:        #e2e8f0;
    --lc-border-sel:    #1a4fa0;
    --lc-bg:            #ffffff;
    --lc-bg-soft:       #f8faff;
    --lc-text:          #1e293b;
    --lc-muted:         #64748b;
    --lc-radius:        12px;
    --lc-radius-sm:     8px;
    --lc-shadow:        0 4px 24px rgba(0,0,0,.09);
    --lc-shadow-sm:     0 2px 8px rgba(0,0,0,.05);
    --lc-tr:            .22s ease;
    /* Category palette */
    --lc-economic:      #16a34a;
    --lc-smart:         #2563eb;
    --lc-digital:       #7c3aed;
    --lc-fotocromic:    #d97706;
}

/* ── Wrapper ─────────────────────────────────────────────────── */
.lc-configurator-wrapper {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin: 28px 0 24px;
    font-family: inherit;
    align-items: start;
}

/* ── Wizard panel ────────────────────────────────────────────── */
.lc-wizard-panel {
    background: var(--lc-bg);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    padding: 28px 28px 20px;
    box-shadow: var(--lc-shadow-sm);
}

/* ── Step progress with labels ───────────────────────────────── */
.lc-step-progress {
    display: flex;
    align-items: flex-start;
    margin-bottom: 32px;
}
.lc-step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}
.lc-step-dot {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 2px solid var(--lc-border);
    background: var(--lc-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--lc-muted);
    flex-shrink: 0;
    transition: all .3s cubic-bezier(.4,0,.2,1);
}
.lc-step-dot.active {
    border-color: var(--lc-primary);
    background: var(--lc-primary);
    color: #fff;
    box-shadow: 0 0 0 4px var(--lc-primary-light);
    transform: scale(1.1);
}
.lc-step-dot.done {
    border-color: var(--lc-green);
    background: var(--lc-green);
    color: #fff;
    transform: scale(1);
}
.lc-step-label {
    font-size: 10px;
    font-weight: 600;
    color: var(--lc-muted);
    letter-spacing: .03em;
    text-align: center;
    white-space: nowrap;
    transition: color var(--lc-tr);
}
.lc-step-label.lc-label-active { color: var(--lc-primary); }
.lc-step-line {
    flex: 1;
    height: 2px;
    background: var(--lc-border);
    margin-top: 18px;
    position: relative;
    overflow: hidden;
}
.lc-step-line::after {
    content: '';
    position: absolute;
    left: 0; top: 0; bottom: 0;
    background: var(--lc-green);
    width: 0;
    transition: width .35s ease;
}
.lc-step-line.done::after { width: 100%; }

/* ── Step title ──────────────────────────────────────────────── */
.lc-step h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--lc-text);
    margin: 0 0 20px;
    padding: 0;
    border: none;
    display: flex;
    align-items: center;
    gap: 10px;
}
.lc-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    min-width: 28px;
    background: var(--lc-primary-light);
    color: var(--lc-primary);
    border-radius: 8px;
    font-size: 13px;
    font-weight: 800;
}
.lc-step-hint {
    margin: -12px 0 16px;
    font-size: 13px;
}
.lc-info-link {
    display: inline-flex; align-items: center; gap: 5px;
    color: var(--lc-accent); font-size: 13px; font-weight: 600;
    text-decoration: none; cursor: pointer;
}
.lc-info-link:hover { text-decoration: underline; }
.lc-info-link svg { flex-shrink: 0; }

/* ── Prescription help modal ─────────────────────────────── */
.lc-rx-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 99999;
    background: rgba(0,0,0,.55); backdrop-filter: blur(3px);
    overflow-y: auto; padding: 20px 12px;
}
.lc-rx-modal-overlay.open { display: flex; align-items: flex-start; justify-content: center; }
.lc-rx-modal {
    background: #fff; border-radius: 16px; width: 100%; max-width: 520px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25); overflow: hidden;
    margin: auto;
}
.lc-rx-modal__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 20px 14px; border-bottom: 1px solid #e2e8f0;
}
.lc-rx-modal__title {
    font-size: 15px; font-weight: 800; color: var(--lc-text); margin: 0;
}
.lc-rx-modal__close {
    width: 32px; height: 32px; border-radius: 50%; border: none;
    background: #f1f5f9; cursor: pointer; display: flex; align-items: center; justify-content: center;
    font-size: 18px; color: #64748b; transition: background .15s;
}
.lc-rx-modal__close:hover { background: #e2e8f0; color: #1e293b; }
.lc-rx-modal__body { padding: 20px; overflow-y: auto; max-height: 80vh; }

/* Sample prescription table */
.lc-rx-modal__sample-label {
    font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase;
    letter-spacing: .05em; margin: 0 0 8px;
}
.lc-rx-sample-table {
    width: 100%; border-collapse: collapse; border-radius: 10px;
    overflow: hidden; font-size: 12px; margin-bottom: 20px;
    border: 1px solid #e2e8f0;
}
.lc-rx-sample-table th {
    background: var(--lc-primary); color: #fff; padding: 7px 8px;
    font-weight: 700; text-align: center;
}
.lc-rx-sample-table td {
    padding: 7px 8px; text-align: center; border-top: 1px solid #f1f5f9;
    font-weight: 600; color: var(--lc-text);
}
.lc-rx-sample-table tr:nth-child(even) td { background: #f8faff; }
.lc-rx-sample-table .lc-rx-sample-eye {
    font-weight: 800; color: var(--lc-primary); text-align: left;
    white-space: nowrap; min-width: 32px;
}
.lc-rx-sample-table .lc-col-sf  { background: #fff0f3 !important; }
.lc-rx-sample-table .lc-col-cyl { background: #f0fdf4 !important; }
.lc-rx-sample-table .lc-col-ax  { background: #eff6ff !important; }
.lc-rx-sample-table .lc-col-add { background: #fffbeb !important; }
/* Black text on colored th cells */
.lc-rx-sample-table th.lc-col-sf,
.lc-rx-sample-table th.lc-col-cyl,
.lc-rx-sample-table th.lc-col-ax,
.lc-rx-sample-table th.lc-col-add { color: #1e293b; }

/* Near label variant */
.lc-rx-modal__sample-label--near { margin-top: 14px; }

/* ADD color band */
.lc-rx-modal__band--add { background: #fffbeb; border: 1px solid #fde68a; }

/* DP dual card */
.lc-rx-modal__dp-card {
    display: flex; flex-direction: column; gap: 4px;
    background: #f8faff; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 10px 14px; margin-bottom: 14px;
}
.lc-rx-modal__dp-card--near { background: #f0fdf4; border-color: #bbf7d0; }
.lc-rx-modal__dp-row {
    display: flex; align-items: center; gap: 10px;
}
.lc-rx-modal__dp-pill {
    display: inline-flex; align-items: center; border-radius: 20px;
    padding: 3px 10px; font-size: 11px; font-weight: 700; white-space: nowrap;
}
.lc-rx-modal__dp-pill--dist { background: var(--lc-primary); color: #fff; }
.lc-rx-modal__dp-pill--near { background: #059669; color: #fff; }
.lc-rx-modal__dp-val { font-size: 15px; font-weight: 800; color: var(--lc-text); }
.lc-rx-modal__dp-hint { font-size: 11px; color: #6b7280; margin: 4px 0 0; line-height: 1.4; }

/* Color-coded field bands */
.lc-rx-modal__section-label {
    font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase;
    letter-spacing: .05em; margin: 0 0 10px;
}
.lc-rx-modal__band {
    border-radius: 10px; padding: 12px 14px; margin-bottom: 10px;
}
.lc-rx-modal__band--sf   { background: #fff0f3; border: 1px solid #fecdd3; }
.lc-rx-modal__band--cyl  { background: #f0fdf4; border: 1px solid #bbf7d0; }
.lc-rx-modal__band--ax   { background: #eff6ff; border: 1px solid #bfdbfe; }
.lc-rx-modal__band-title {
    font-size: 13px; font-weight: 800; color: var(--lc-text); margin: 0 0 3px;
}
.lc-rx-modal__band-hint  { font-size: 12px; color: #64748b; margin: 0; line-height: 1.4; }

/* Explanatory text */
.lc-rx-modal__divider { border: none; border-top: 1px solid #e2e8f0; margin: 16px 0; }
.lc-rx-modal__glossary { display: flex; flex-direction: column; gap: 10px; }
.lc-rx-modal__glossary-item p { margin: 0; font-size: 13px; line-height: 1.5; color: #374151; }
.lc-rx-modal__glossary-item strong { color: var(--lc-primary); }

/* ── Slide-in animation for steps ────────────────────────────── */
@keyframes lcSlideInRight {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: none; }
}
@keyframes lcSlideInLeft {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: none; }
}
.lc-step-in-right { animation: lcSlideInRight .25s ease both; }
.lc-step-in-left  { animation: lcSlideInLeft  .25s ease both; }

/* ── Card entry stagger ──────────────────────────────────────── */
@keyframes lcCardIn {
    from { opacity: 0; transform: translateY(10px) scale(.97); }
    to   { opacity: 1; transform: none; }
}

/* ── Visual option cards grid (steps 1, 2, 4) ────────────────── */
.lc-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.lc-options--2col { grid-template-columns: repeat(2, 1fr); }

.lc-visual-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 10px 16px;
    border: 2px solid var(--lc-border);
    border-radius: var(--lc-radius);
    cursor: pointer;
    text-align: center;
    gap: 10px;
    transition: border-color var(--lc-tr), background var(--lc-tr),
                transform var(--lc-tr), box-shadow var(--lc-tr);
    position: relative;
    background: var(--lc-bg);
    animation: lcCardIn .3s ease both;
}
.lc-visual-card:nth-child(1) { animation-delay: .04s; }
.lc-visual-card:nth-child(2) { animation-delay: .09s; }
.lc-visual-card:nth-child(3) { animation-delay: .14s; }
.lc-visual-card:nth-child(4) { animation-delay: .19s; }

.lc-visual-card:hover {
    border-color: #93c5fd;
    background: #f5f9ff;
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(37,99,235,.13);
}
.lc-visual-card.selected {
    border-color: var(--lc-primary);
    background: var(--lc-primary-light);
    box-shadow: 0 4px 18px rgba(26,79,160,.18);
}
.lc-visual-card input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0; height: 0;
}

/* Selection checkmark */
.lc-visual-card::after {
    content: '';
    position: absolute;
    top: 8px; right: 8px;
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--lc-border);
    background: #fff;
    transition: all var(--lc-tr);
    background-image: none;
}
.lc-visual-card.selected::after {
    border-color: var(--lc-primary);
    background: var(--lc-primary);
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 10 10' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M2 5l2.5 2.5L8 3' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-size: 12px;
    background-repeat: no-repeat;
    background-position: center;
}

/* Icon area */
.lc-visual-card__icon {
    width: 68px; height: 68px;
    border-radius: 18px;
    background: #f0f4ff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--lc-primary);
    transition: background var(--lc-tr), color var(--lc-tr), transform var(--lc-tr);
    flex-shrink: 0;
}
.lc-visual-card__icon svg { width: 38px; height: 38px; }
.lc-visual-card:hover .lc-visual-card__icon { transform: scale(1.1); }
.lc-visual-card.selected .lc-visual-card__icon {
    background: var(--lc-primary);
    color: #fff;
}

/* Brand avatar */
.lc-visual-card__avatar {
    width: 68px; height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    flex-shrink: 0;
    transition: transform var(--lc-tr), box-shadow var(--lc-tr);
}
.lc-visual-card:hover  .lc-visual-card__avatar { transform: scale(1.1); }
.lc-visual-card.selected .lc-visual-card__avatar {
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

.lc-visual-card__name {
    font-weight: 700;
    font-size: 13px;
    color: var(--lc-text);
    line-height: 1.3;
}
.lc-visual-card.selected .lc-visual-card__name { color: var(--lc-primary); }
.lc-visual-card__desc {
    font-size: 11px;
    color: var(--lc-muted);
    line-height: 1.4;
}
.lc-visual-card__badge {
    font-size: 10px;
    font-weight: 600;
    color: var(--lc-muted);
    background: #f1f5f9;
    padding: 2px 8px;
    border-radius: 99px;
}

/* ── Prescription section headers (progressive/bifocal) ─────── */
.lc-rx-section-hdr {
    display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
    background: var(--lc-primary-light); border-radius: 10px;
    padding: 10px 14px; margin-bottom: 14px; margin-top: 4px;
}
.lc-rx-section-num {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 50%;
    background: var(--lc-primary); color: #fff;
    font-size: 12px; font-weight: 800; flex-shrink: 0;
}
.lc-rx-section-title {
    font-size: 14px; font-weight: 800; color: var(--lc-primary); flex: 1;
}
.lc-rx-section-hdr .lc-info-link { font-size: 12px; margin-left: auto; }

/* ── ADD (Aditie) section ─────────────────────────────────────── */
.lc-rx-add-section {
    border: 1.5px solid #e0d7ff; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 14px;
    background: #faf7ff;
}
.lc-rx-add-header {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; flex-wrap: wrap; gap: 6px;
}
.lc-rx-add-title {
    font-size: 13px; font-weight: 700; color: var(--lc-text);
    display: flex; align-items: center; gap: 4px;
}
.lc-rx-add-grid {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}

/* ── Near section (secțiunea pentru aproape) ─────────────────── */
.lc-rx-near-section {
    border: 1.5px solid #d1fae5; border-radius: 10px;
    padding: 4px 14px 14px; margin-bottom: 14px;
    background: #f0fdf8;
}
.lc-rx-near-section .lc-rx-section-hdr {
    background: #d1fae5; margin: 0 -14px 14px; border-radius: 8px 8px 0 0;
    padding: 10px 14px;
}
.lc-rx-near-section .lc-rx-section-num { background: #059669; }
.lc-rx-near-section .lc-rx-section-title { color: #065f46; }
.lc-rx-near-section .lc-rx-grid { margin-bottom: 0; }

/* ── Prescription grid ───────────────────────────────────────── */
.lc-rx-grid {
    display: grid;
    grid-template-columns: 130px 1fr 1fr;
    gap: 10px 12px;
    align-items: center;
    margin-bottom: 16px;
    min-width: 0;
}
.lc-rx-eye-label {
    font-size: 12px;
    font-weight: 700;
    color: var(--lc-primary);
    text-align: center;
    padding: 5px;
    background: var(--lc-primary-light);
    border-radius: 6px;
}
.lc-rx-param-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-text);
}
.lc-rx-select {
    width: 100%;
    min-width: 0;
    padding: 9px 10px;
    border: 1.5px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    font-size: 14px;
    color: var(--lc-text);
    background: var(--lc-bg);
    appearance: auto;
    transition: border-color .2s, box-shadow .2s;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lc-rx-select:focus {
    outline: none;
    border-color: var(--lc-primary);
    box-shadow: 0 0 0 3px rgba(26,79,160,.12);
}
.lc-rx-select:disabled {
    background: #f3f4f6;
    color: #adb5bd;
    cursor: not-allowed;
}
.lc-dp-cell { grid-column: 2 / 4; }
.lc-dp-toggle-wrap { margin-bottom: 8px; }
.lc-toggle-label {
    font-size: 13px;
    color: var(--lc-muted);
    display: flex;
    align-items: flex-start;
    gap: 6px;
    cursor: pointer;
    line-height: 1.4;
    white-space: normal;
    word-break: break-word;
}
.lc-toggle-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}
#lc-dp-dual-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
.lc-info-icon {
    display: inline-block;
    color: var(--lc-muted);
    cursor: help;
    margin-left: 4px;
    font-size: 13px;
}
.lc-rx-confirm {
    background: var(--lc-bg-soft);
    border: 1.5px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    padding: 12px 14px;
    font-size: 13px;
    color: var(--lc-text);
    margin-top: 4px;
}
.lc-rx-confirm label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    cursor: pointer;
}
.lc-rx-confirm label span {
    line-height: 1.5;
    min-width: 0;
}
.lc-rx-confirm input[type="checkbox"] {
    margin-top: 2px;
    flex-shrink: 0;
    width: 16px; height: 16px;
    accent-color: var(--lc-primary);
}

/* ── Package categories ──────────────────────────────────────── */
.lc-pkg-category {
    margin-bottom: 10px;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    overflow: hidden;
    transition: box-shadow var(--lc-tr);
}
.lc-pkg-category:hover { box-shadow: var(--lc-shadow-sm); }

.lc-pkg-cat-header {
    background: linear-gradient(135deg, #f8faff, #f1f5f9);
    padding: 11px 16px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    user-select: none;
    border-bottom: 1px solid var(--lc-border);
}
.lc-cat-badge {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
}
.lc-cat-economic  .lc-cat-badge { background: #dcfce7; color: #166534; }
.lc-cat-smart     .lc-cat-badge { background: #dbeafe; color: #1e40af; }
.lc-cat-digital   .lc-cat-badge { background: #ede9fe; color: #6d28d9; }
.lc-cat-fotocromic .lc-cat-badge { background: #fef3c7; color: #92400e; }
.lc-cat-other     .lc-cat-badge { background: #f1f5f9; color: var(--lc-muted); }

.lc-pkg-cat-header .lc-cat-from {
    font-weight: 400;
    color: var(--lc-muted);
    font-size: 12px;
    margin-left: auto;
    margin-right: 4px;
}
.lc-pkg-cat-toggle {
    font-size: 12px;
    color: var(--lc-muted);
    transition: transform .2s;
    flex-shrink: 0;
}
.lc-pkg-category.collapsed .lc-pkg-cat-toggle { transform: rotate(-90deg); }

.lc-pkg-cat-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: var(--lc-bg-soft);
}
.lc-pkg-card {
    display: flex;
    align-items: center;
    gap: 12px;
    border: 1.5px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    padding: 11px 14px;
    cursor: pointer;
    transition: border-color .2s, background .2s, transform .2s, box-shadow .2s;
    position: relative;
    background: var(--lc-bg);
    overflow: hidden;
    animation: lcCardIn .25s ease both;
}

/* Left color stripe by category */
.lc-pkg-card::before {
    content: '';
    position: absolute;
    left: 0; top: 0;
    width: 4px; height: 100%;
}
.lc-cat-economic  .lc-pkg-card::before { background: var(--lc-economic); }
.lc-cat-smart     .lc-pkg-card::before { background: var(--lc-smart); }
.lc-cat-digital   .lc-pkg-card::before { background: var(--lc-digital); }
.lc-cat-fotocromic .lc-pkg-card::before { background: var(--lc-fotocromic); }

.lc-pkg-card:hover {
    border-color: #93c5fd;
    background: #f5f9ff;
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(37,99,235,.1);
}
.lc-pkg-card.selected {
    border-color: var(--lc-primary);
    background: var(--lc-primary-light);
    box-shadow: 0 4px 16px rgba(26,79,160,.16);
}
.lc-pkg-card.incompatible {
    opacity: .4;
    pointer-events: none;
}

.lc-pkg-radio {
    width: 18px; height: 18px;
    border-radius: 50%;
    border: 2px solid var(--lc-border);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all .2s;
}
.lc-pkg-card.selected .lc-pkg-radio {
    border-color: var(--lc-primary);
    background: var(--lc-primary);
}
.lc-pkg-card.selected .lc-pkg-radio::after {
    content: '';
    width: 7px; height: 7px;
    border-radius: 50%;
    background: #fff;
}

.lc-pkg-info { flex: 1; min-width: 0; }
.lc-pkg-name {
    font-weight: 700;
    font-size: 14px;
    color: var(--lc-text);
    display: block;
}
.lc-pkg-desc {
    font-size: 11px;
    color: var(--lc-muted);
    margin-top: 3px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.lc-pkg-price {
    font-weight: 800;
    font-size: 15px;
    color: var(--lc-text);
    white-space: nowrap;
    text-align: right;
}
.lc-no-packages-msg {
    padding: 20px 16px;
    background: #fef9c3;
    border: 1px solid #fbbf24;
    border-radius: 8px;
    font-size: 13px;
    color: #92400e;
    text-align: center;
}

/* ── Navigation buttons ──────────────────────────────────────── */
.lc-nav-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--lc-border);
    gap: 10px;
}
.lc-btn-back,
.lc-btn-next {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: var(--lc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transition: all .2s;
    letter-spacing: .01em;
}
.lc-btn-back {
    background: var(--lc-bg);
    border: 1.5px solid var(--lc-border);
    color: var(--lc-text);
}
.lc-btn-back:hover { background: #f1f5f9; border-color: #94a3b8; }
.lc-btn-next {
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-accent));
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(26,79,160,.28);
}
.lc-btn-next:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26,79,160,.38);
}
.lc-btn-next:active { transform: none; }
.lc-btn-next:disabled,
.lc-btn-back:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lc-btn-cart-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: var(--lc-radius-sm);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    border: none;
    background: linear-gradient(135deg, var(--lc-green), #15803d);
    color: #fff;
    margin-left: auto;
    box-shadow: 0 4px 12px rgba(22,163,74,.3);
    transition: all .2s;
    letter-spacing: .01em;
}
.lc-btn-cart-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(22,163,74,.42);
}
.lc-btn-cart-nav:active { transform: none; }
.lc-btn-cart-nav:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.lc-btn-cart-nav.lc-loading { background: var(--lc-muted); box-shadow: none; }

/* ── Summary panel ───────────────────────────────────────────── */
.lc-summary-panel {
    background: var(--lc-bg);
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius);
    padding: 20px;
    height: fit-content;
    position: sticky;
    top: 100px;
    box-shadow: var(--lc-shadow);
}
.lc-product-image-wrap {
    text-align: center;
    margin-bottom: 14px;
    background: var(--lc-bg-soft);
    border-radius: 10px;
    padding: 12px;
}
.lc-product-img {
    max-width: 160px;
    height: auto;
    object-fit: contain;
    border-radius: 6px;
}
.lc-product-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--lc-text);
    text-align: center;
    margin: 0 0 8px;
}
.lc-product-price {
    text-align: center;
    font-size: 21px;
    font-weight: 800;
    color: var(--lc-primary);
    margin-bottom: 16px;
}
.lc-product-price .woocommerce-Price-amount { color: inherit; }

.lc-config-summary {
    border-top: 1px solid var(--lc-border);
    padding-top: 14px;
    margin-top: 4px;
}
.lc-config-summary h5 {
    font-size: 11px;
    font-weight: 700;
    color: var(--lc-muted);
    margin: 0 0 12px;
    text-align: center;
    letter-spacing: .06em;
    text-transform: uppercase;
}

@keyframes lcFadeSlideIn {
    from { opacity: 0; transform: translateY(5px); }
    to   { opacity: 1; transform: none; }
}
.lc-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 13px;
    animation: lcFadeSlideIn .2s ease both;
}
.lc-sum-label { color: var(--lc-muted); }
.lc-sum-value { font-weight: 600; color: var(--lc-accent); text-align: right; }
.lc-sum-row-price { flex-wrap: wrap; }
.lc-sum-price { font-weight: 700; color: var(--lc-text); margin-left: auto; }

.lc-delivery-note {
    font-size: 12px;
    color: var(--lc-muted);
    border-top: 1px solid var(--lc-border);
    padding-top: 12px;
    margin-top: 12px;
    line-height: 1.5;
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.lc-delivery-note::before { content: '🕐'; font-size: 14px; flex-shrink: 0; }

.lc-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 800;
    color: var(--lc-text);
    border-top: 1px solid var(--lc-border);
    padding-top: 12px;
    margin-top: 10px;
    animation: lcFadeSlideIn .25s ease both;
}

.lc-add-to-cart-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, var(--lc-primary), var(--lc-accent));
    color: #fff;
    border: none;
    border-radius: var(--lc-radius-sm);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 14px;
    transition: all .2s;
    box-shadow: 0 4px 14px rgba(26,79,160,.3);
    letter-spacing: .01em;
}
.lc-add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,79,160,.4);
}
.lc-add-to-cart-btn:active { transform: none; }
.lc-add-to-cart-btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.lc-add-to-cart-btn.lc-loading { background: var(--lc-muted); box-shadow: none; }

/* ── Error / success messages ────────────────────────────────── */
.lc-error-msg {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--lc-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #991b1b;
    margin-top: 12px;
    display: none;
    animation: lcFadeSlideIn .2s ease;
}
.lc-success-msg {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: var(--lc-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: #166534;
    margin-top: 12px;
    display: none;
}

/* ── Auto-detected frame type banner ─────────────────────────── */
.lc-detected-frame {
    display: flex;
    align-items: center;
    gap: 7px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: var(--lc-radius-sm);
    padding: 8px 12px;
    font-size: 13px;
    color: #1e40af;
    margin-bottom: 14px;
}

/* ── Detalii button on package card ──────────────────────────── */
.lc-pkg-detalii {
    flex-shrink: 0;
    background: none;
    border: 1px solid var(--lc-border);
    border-radius: var(--lc-radius-sm);
    font-size: 11px;
    color: var(--lc-muted);
    padding: 4px 8px;
    cursor: pointer;
    white-space: nowrap;
    transition: border-color .2s, color .2s;
    align-self: center;
    margin-left: 6px;
}
.lc-pkg-detalii:hover { border-color: var(--lc-primary); color: var(--lc-primary); }

/* ── Package specs panel ──────────────────────────────────────── */
.lc-pkg-specs-panel {
    background: #f8faff;
    border: 1px solid var(--lc-border);
    border-top: none;
    border-radius: 0 0 var(--lc-radius-sm) var(--lc-radius-sm);
    padding: 10px 14px;
    font-size: 13px;
    color: var(--lc-text);
    line-height: 1.5;
}

/* ── RX Special box ───────────────────────────────────────────── */
.lc-rx-special-box {
    text-align: center;
    padding: 28px 20px;
    border: 2px dashed #93c5fd;
    border-radius: var(--lc-radius);
    background: #f0f9ff;
}
.lc-rx-special-icon { font-size: 36px; margin-bottom: 10px; }
.lc-rx-special-box h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--lc-text);
    margin: 0 0 8px;
}
.lc-rx-special-box p { font-size: 13px; color: #475569; margin: 0 0 6px; }
.lc-rx-special-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 4px 0;
    padding: 9px 18px;
    border-radius: var(--lc-radius-sm);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: opacity .2s;
}
.lc-rx-special-cta:hover { opacity: .85; }
.lc-rx-special-cta--phone {
    background: var(--lc-primary);
    color: #fff;
}
.lc-rx-special-cta--email {
    background: #f1f5f9;
    color: var(--lc-text);
    border: 1px solid var(--lc-border);
}

/* ── Termeni și condiții (T&C) ────────────────────────────────── */
.lc-tc-wrap {
    margin-top: 14px;
    padding: 12px 14px;
    background: #fefce8;
    border: 1.5px solid #fde68a;
    border-radius: var(--lc-radius-sm);
}
.lc-tc-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #78350f;
    cursor: pointer;
    line-height: 1.5;
}
.lc-tc-label input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
    width: 16px; height: 16px;
    accent-color: #d97706;
}
.lc-tc-label span { min-width: 0; }

/* ── "Adaugă lentile" button on shop listing ─────────────────── */
.lc-listing-btn {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin-top: 6px !important;
    font-size: 13px !important;
    padding: 8px 14px !important;
    background: var(--lc-primary) !important;
    color: #fff !important;
    border-color: var(--lc-primary) !important;
    border-radius: var(--lc-radius-sm) !important;
    width: 100%;
    justify-content: center;
}
.lc-listing-btn:hover { opacity: .88 !important; color: #fff !important; }

/* ── ADD (Aditie) field ──────────────────────────────────────── */
.lc-add-field { transition: opacity .2s; }

/* ── Package per pereche label ───────────────────────────────── */
.lc-pkg-price-wrap { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.lc-pkg-pereche {
    font-size: 10px;
    color: #94a3b8;
    white-space: nowrap;
    letter-spacing: .02em;
}

/* ── Upload rețetă ────────────────────────────────────────────── */
.lc-rx-upload {
    margin: 16px 0 4px;
}
.lc-rx-upload__label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--lc-text);
    margin-bottom: 8px;
}
.lc-rx-upload__optional {
    font-weight: 400;
    color: #94a3b8;
    font-size: 12px;
}
.lc-rx-upload__area {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #cbd5e1;
    border-radius: var(--lc-radius);
    padding: 18px 12px;
    cursor: pointer;
    transition: border-color .2s, background .2s;
    background: #f8faff;
    min-height: 80px;
    position: relative;
}
.lc-rx-upload__area:hover { border-color: var(--lc-blue); background: #eff6ff; }
.lc-rx-upload__input {
    position: absolute;
    inset: 0;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
}
.lc-rx-upload__placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    text-align: center;
    pointer-events: none;
    color: #64748b;
}
.lc-rx-upload__placeholder span { font-size: 13px; }
.lc-rx-upload__placeholder small { font-size: 11px; color: #94a3b8; }
.lc-rx-upload__done {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #166534;
    pointer-events: none;
}
#lc-upload-status { font-size: 12px; margin-top: 6px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
    .lc-configurator-wrapper { grid-template-columns: 1fr; }
    .lc-summary-panel { position: static; order: -1; }
}
@media (max-width: 640px) {
    .lc-wizard-panel { padding: 16px; }
    .lc-options { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .lc-visual-card { padding: 14px 8px 12px; }
    .lc-visual-card__icon,
    .lc-visual-card__avatar { width: 52px; height: 52px; border-radius: 14px; }
    .lc-visual-card__icon svg { width: 28px; height: 28px; }
    .lc-rx-grid {
        grid-template-columns: 100px 1fr 1fr;
        gap: 8px;
        font-size: 12px;
    }
    .lc-rx-select { font-size: 13px; padding: 7px 8px; }
    .lc-dp-cell { grid-column: 1 / -1; }
    .lc-step-label { font-size: 10px; }
    .lc-step-dot { width: 32px; height: 32px; font-size: 12px; }
    .lc-step-line { margin-top: 15px; }
}

/* ── Telefoane foarte mici: 2 coloane fără label ──────────────── */
@media (max-width: 480px) {
    .lc-rx-grid {
        grid-template-columns: 1fr 1fr;
        gap: 6px 8px;
    }
    /* Ascunde primul spacer din header row */
    .lc-rx-grid > div:nth-child(1) { display: none; }
    /* Label-urile parametrilor ocupă ambele coloane */
    .lc-rx-param-label {
        grid-column: 1 / -1;
        background: #f1f5f9;
        border-radius: 6px;
        padding: 4px 8px;
        font-size: 12px;
        margin-top: 4px;
    }
    .lc-dp-cell { grid-column: 1 / -1; }
    /* Elimină celula goală de după dp-cell */
    .lc-rx-grid > div:last-child:empty { display: none; }
    .lc-rx-select { font-size: 12px; padding: 6px 6px; }
    .lc-rx-eye-label { font-size: 11px; padding: 4px 3px; }
    .lc-step-label { display: none; }
    .lc-step-dot { width: 28px; height: 28px; }
    .lc-wizard-panel { padding: 14px 12px; }
    .lc-nav-buttons { gap: 8px; }
    .lc-btn-back, .lc-btn-next { font-size: 13px; padding: 10px 16px; }
}
