/* ============================================================

   ============================================================ */

#endless-widget-wrapper {
    --bg: #f6f6f4;
    --panel: #ffffff;
    --panel-2: #fafafa;
    --panel-3: #f1f1ef;
    --line: rgba(0, 0, 0, 0.12);
    --line-strong: rgba(0, 0, 0, 0.30);
    --text: #0b0b0b;
    --muted: #5f5f5f;
    --dim: #9a9a9a;
    --blue: #3E6AE1;           /* accent: Tesla blue — selections, highlights, errors */
    --blue-soft: rgba(62, 106, 225, 0.10);
    --blue-glow: 0 0 0 1px rgba(62, 106, 225, 0.55), 0 0 20px rgba(62, 106, 225, 0.22);
    --radius: 2px;             /* hard, industrial corners */
    --radius-lg: 4px;
    --font: 'Helvetica Neue', 'Inter', -apple-system, Arial, sans-serif;
    --mono: 'SF Mono', 'IBM Plex Mono', Menlo, Consolas, monospace;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);

    font-family: var(--font);
    color: var(--text);
    background: var(--bg);
    display: flex;
    justify-content: center;
    padding: clamp(16px, 4vw, 56px) clamp(8px, 3vw, 40px);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -webkit-user-select: none;
    user-select: none;
    position: relative;
    min-height: 100%;
}

/* Zero-specificity reset — :where() keeps this from overriding the
   class-based paddings/margins below (an ID-prefixed reset would win). */
:where(#endless-widget-wrapper *) { box-sizing: border-box; margin: 0; padding: 0; }

#endless-widget-wrapper.ec-cursor-active,
#endless-widget-wrapper.ec-cursor-active * { cursor: none !important; }

/* ---------- Film grain overlay ---------- */
.ec-grain {
    position: fixed;
    inset: -100px;
    z-index: 2147483000;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
    animation: ec-grain-shift 0.9s steps(4) infinite;
}
@keyframes ec-grain-shift {
    0%   { transform: translate(0, 0); }
    25%  { transform: translate(-38px, 22px); }
    50%  { transform: translate(24px, -30px); }
    75%  { transform: translate(-16px, -14px); }
    100% { transform: translate(0, 0); }
}
@media (prefers-reduced-motion: reduce) {
    .ec-grain { animation: none; }
}

/* ---------- Custom cursor ---------- */
.ec-cursor-dot, .ec-cursor-ring {
    position: fixed;
    top: 0; left: 0;
    z-index: 2147483200;
    pointer-events: none;
    border-radius: 50%;
    mix-blend-mode: difference;
    opacity: 0;
    transition: opacity 0.25s ease;
}
.ec-cursor-dot {
    width: 6px; height: 6px;
    background: #fff;
    transform: translate(-50%, -50%);
}
.ec-cursor-ring {
    width: 34px; height: 34px;
    border: 1px solid #fff;
    transform: translate(-50%, -50%) scale(1);
    transition: opacity 0.25s ease, width 0.3s var(--ease), height 0.3s var(--ease), border-color 0.3s ease;
}
.ec-cursor-visible .ec-cursor-dot,
.ec-cursor-visible .ec-cursor-ring { opacity: 1; }
.ec-cursor-ring.ec-cursor-hover {
    width: 56px; height: 56px;
    border-color: var(--blue);
    mix-blend-mode: normal;
    background: rgba(62, 106, 225, 0.08);
}
.ec-cursor-ring.ec-cursor-down { width: 26px; height: 26px; }
@media (hover: none), (pointer: coarse) {
    .ec-cursor-dot, .ec-cursor-ring { display: none; }
}

/* ---------- Shell ---------- */
.ec-shell { width: 100%; max-width: 1080px; position: relative; }

/* Top bar */
.ec-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    border-bottom: 1px solid var(--line);
    padding-bottom: 26px;
    margin-bottom: 52px;
}
.ec-brand { display: flex; flex-direction: column; gap: 4px; }
.ec-brand h1 {
    font-size: clamp(26px, 4.4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    line-height: 0.95;
}
.ec-brand h1 em { font-style: normal; color: var(--dim); }
.ec-topbar-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}
.ec-lang-toggle {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--mono);
}
.ec-lang-sep { color: var(--dim); font-size: 11px; }
.ec-lang-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--dim);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 5px 9px;
    transition: color 0.25s ease, border-color 0.25s ease;
}
.ec-lang-btn:hover { color: var(--text); }
.ec-lang-btn.active { color: var(--blue); border-color: var(--blue); }
.ec-steps {
    display: flex;
    align-items: center;
    gap: 14px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.26em;
    color: var(--muted);
    text-transform: uppercase;
}
.ec-step-dots { display: flex; gap: 8px; }
.ec-step-dot {
    width: 22px; height: 3px;
    background: #d9d9d6;
    transition: background 0.4s ease, box-shadow 0.4s ease;
}
.ec-step-dot.active { background: var(--blue); box-shadow: 0 0 10px rgba(62,106,225,0.5); }

/* ---------- Section labels ---------- */
.ec-label {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 22px;
}
.ec-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.ec-label .ec-idx { color: var(--dim); }

/* ---------- Service tabs ---------- */
.ec-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--line);
    background: var(--panel);
    position: relative;
    isolation: isolate;
    margin-bottom: 64px;
}
.ec-glider {
    position: absolute;
    top: 0; left: 0; height: 100%;
    width: 25%;
    background: var(--blue);
    box-shadow: 0 4px 16px rgba(62, 106, 225, 0.35);
    z-index: 1;
    transition: transform 0.5s var(--ease), width 0.5s var(--ease);
}
.ec-service-tab {
    position: relative;
    z-index: 2;
    background: transparent;
    border: none;
    border-right: 1px solid var(--line);
    padding: 24px 10px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    color: var(--muted);
    font-family: inherit;
    transition: color 0.35s ease;
    overflow: hidden;
}
.ec-service-tab:last-child { border-right: none; }
.ec-service-tab .ec-tab-icon {
    width: 26px; height: 26px;
    position: relative;
}
.ec-service-tab .ec-tab-icon img {
    width: 100%; height: 100%;
    object-fit: contain;
    position: absolute;
    inset: 0;
    transition: opacity 0.35s ease;
}
.ec-service-tab .ec-icon-idle { filter: grayscale(1); opacity: 0.55; }
.ec-service-tab .ec-icon-on   { filter: grayscale(1) brightness(0) invert(1); opacity: 0; }
.ec-service-tab.active { color: #ffffff; }
.ec-service-tab.active .ec-icon-idle { opacity: 0; }
.ec-service-tab.active .ec-icon-on   { opacity: 1; }
.ec-service-tab .ec-tab-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.3;
}
/* Hourly rate — space is always reserved, but only the selected service shows it */
.ec-tab-price {
    font-family: var(--mono);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    height: 15px;
    line-height: 15px;
    visibility: hidden;
}
.ec-tab-price em { font-style: normal; font-size: 9px; opacity: 0.75; }
.ec-service-tab.active .ec-tab-price { visibility: visible; animation: ec-fade-item 0.35s var(--ease); }
.ec-service-tab:hover:not(.active) { color: var(--text); }
.ec-service-tab:hover:not(.active) .ec-icon-idle { opacity: 0.95; }

/* ---------- Main grid ---------- */
.ec-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 32px;
    align-items: start;
}
.ec-panel {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 36px 32px;
    position: relative;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
}

/* Spotlight hover on panels/cards */
.ec-spot { position: relative; overflow: hidden; }
.ec-spot::before {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
    background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%),
        rgba(0, 0, 0, 0.035), transparent 60%);
    z-index: 0;
}
.ec-spot:hover::before { opacity: 1; }
.ec-spot > * { position: relative; z-index: 1; }

/* ---------- Header row inside left panel ---------- */
.ec-quote-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 24px;
    padding-bottom: 30px;
    margin-bottom: 34px;
    border-bottom: 1px solid var(--line);
}
.ec-quote-head h2 {
    font-size: 24px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.01em;
}
.ec-quote-head p {
    color: var(--muted);
    font-size: 13px;
    max-width: 340px;
    margin-top: 8px;
    line-height: 1.6;
}

/* Date trigger */
.ec-date-box { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.ec-field-tag {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--muted);
}
.ec-date-trigger {
    display: flex;
    align-items: center;
    gap: 14px;
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    padding: 12px 16px;
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.08em;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.ec-date-trigger:hover { border-color: var(--blue); box-shadow: var(--blue-glow); }
.ec-date-trigger svg { color: var(--muted); transition: color 0.3s ease; }
.ec-date-trigger:hover svg { color: var(--blue); }
.ec-date-trigger .ec-date-value { padding-right: 6px; }
.ec-date-trigger .ec-date-value.placeholder { color: var(--dim); }
.ec-date-trigger.has-date { border-color: var(--blue); }
.ec-date-trigger.has-date .ec-date-value { color: var(--text); }

/* ---------- Timeline ---------- */
.ec-timeline-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 28px;
    gap: 16px;
    flex-wrap: wrap;
}
.ec-toolbox { display: flex; gap: 10px; position: relative; }
.ec-tool-btn {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    padding: 11px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease, transform 0.2s ease;
    position: relative;
}
.ec-tool-btn .ec-plus { color: var(--blue); font-size: 14px; font-weight: 700; }
.ec-tool-btn:hover { border-color: var(--blue); background: var(--blue); color: #ffffff; }
.ec-tool-btn:hover .ec-plus { color: #ffffff; }
.ec-tool-btn:active { transform: scale(0.97); }

.ec-timeline {
    position: relative;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 38px;
}
.ec-timeline::before {
    content: '';
    position: absolute;
    left: 7px; top: 14px; bottom: 14px;
    width: 2px;
    background: #e5e5e6;
}
.ec-row { position: relative; animation: ec-slide-in 0.45s var(--ease); }
@keyframes ec-slide-in {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.ec-marker {
    position: absolute;
    left: -31px; top: 50%;
    transform: translateY(-50%);
    width: 14px; height: 14px;
    background: #ffffff;
    border: 3px solid var(--blue);      /* service dots: blue */
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--panel); /* masks the rail behind the dot */
    transition: border-color 0.3s ease, background 0.3s ease;
}
.ec-row.is-complete .ec-marker { background: var(--blue); }
.ec-row.type-intermission .ec-marker { border-color: #c9c9c6; } /* intermission dots: grey */

.ec-card {
    background: #f5f5f7;
    border: none;
    border-radius: 12px;
    padding: 20px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: background 0.3s ease;
}
.ec-card:hover { background: #f0f0f3; }
.ec-card-info { display: flex; flex-direction: column; gap: 3px; flex-shrink: 0; }
.ec-card-title-row { display: flex; align-items: center; gap: 10px; }
.ec-card-title { font-size: 13.5px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }
.ec-badge {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.22em;
    padding: 3px 7px;
    text-transform: uppercase;
}
.ec-badge-live  { background: var(--blue); color: #fff; }
.ec-badge-break { background: #e7e7e4; color: var(--muted); }
.ec-card-sub { font-size: 11px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.06em; text-transform: uppercase; }
.ec-card-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

/* Time triggers */
.ec-time-group { display: flex; align-items: center; gap: 10px; width: 260px; flex-shrink: 0; }
.ec-time-sep { color: var(--dim); font-family: var(--mono); }
.ec-time-btn {
    flex: 1;
    background: #ffffff;
    border: 1px solid rgba(62, 106, 225, 0.45);
    border-radius: 8px;
    color: var(--muted);
    height: 44px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    padding: 0 8px;
    overflow: hidden;
}
.ec-time-btn:hover { border-color: var(--blue); box-shadow: var(--blue-glow); color: var(--text); }
.ec-time-btn .ec-time-tag {
    font-size: 8px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--dim);
    display: none;
}
.ec-time-btn.is-set { border-color: var(--blue); color: var(--text); }
.ec-time-btn.is-set .ec-time-tag { display: block; }
.ec-time-btn .ec-time-val { font-weight: 600; }
.ec-time-btn.is-set .ec-time-val { color: var(--blue); }

.ec-del-btn {
    background: none;
    border: none;
    color: var(--dim);
    width: 30px; height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color 0.25s ease, transform 0.25s ease;
}
.ec-del-btn:hover { color: var(--blue); transform: rotate(90deg); }
.ec-del-spacer { width: 30px; height: 30px; flex-shrink: 0; }

/* Intermission select */
.ec-select {
    width: 260px;
    height: 44px;
    background: #ffffff;
    border: 1px solid rgba(62, 106, 225, 0.45);
    border-radius: 8px;
    color: var(--text);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 0 14px;
    appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'><path d='M1 1l4 4 4-4' stroke='%238f8f8f' fill='none' stroke-width='1.5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.ec-select:hover, .ec-select:focus { border-color: var(--blue); box-shadow: var(--blue-glow); outline: none; }
.ec-select option { background: var(--panel-2); color: var(--text); }

/* Toolbox error tooltip */
.ec-tool-error {
    position: absolute;
    top: -42px; left: 50%;
    transform: translateX(-50%);
    background: var(--blue);
    color: #fff;
    padding: 8px 12px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 60;
    animation: ec-fade-up 0.3s var(--ease) forwards;
    box-shadow: 0 6px 20px rgba(62, 106, 225, 0.35);
}
.ec-tool-error::after {
    content: '';
    position: absolute;
    bottom: -4px; left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 8px; height: 8px;
    background: var(--blue);
}
@keyframes ec-fade-up {
    from { opacity: 0; transform: translate(-50%, 8px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
.ec-shake { animation: ec-shake 0.45s ease-in-out; border-color: var(--blue) !important; }
@keyframes ec-shake {
    0%, 100% { transform: translateX(0); }
    20% { transform: translateX(-4px); }
    40% { transform: translateX(4px); }
    60% { transform: translateX(-3px); }
    80% { transform: translateX(3px); }
}

/* ---------- Summary ---------- */
.ec-summary { border-top: 1px solid var(--line); padding-top: 30px; }
.ec-sum-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}
.ec-sum-row strong { color: var(--text); font-weight: 600; }
.ec-pkg-chip {
    background: var(--blue);
    color: #fff;
    font-size: 9px;
    letter-spacing: 0.24em;
    padding: 4px 8px;
    text-transform: uppercase;
}
.ec-status-banner {
    display: none;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    padding: 11px 14px;
    border: 1px solid var(--blue);
    background: var(--blue-soft);
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10.5px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    animation: ec-slide-in 0.35s var(--ease);
}
.ec-status-banner.show { display: flex; }
.ec-status-banner svg { flex-shrink: 0; }

.ec-price-block { margin-top: 32px; }
.ec-price-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.34em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}
.ec-price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.ec-price {
    font-size: clamp(40px, 6vw, 58px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}
.ec-savings {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    display: none;
}

.ec-book-btn {
    width: 100%;
    background: var(--blue);
    color: #ffffff;
    border: 1px solid var(--blue);
    padding: 19px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    overflow: hidden;
    transition: color 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
}
.ec-book-btn:hover { box-shadow: 0 8px 28px rgba(62, 106, 225, 0.45); transform: translateY(-2px); }
.ec-book-btn:active { transform: scale(0.985); }
.ec-secure-note {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    color: var(--muted);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-align: center;
}

/* ---------- Packages column ---------- */
.ec-packages-col { display: flex; flex-direction: column; }
.ec-opt-flag { color: var(--blue); }
.ec-pkg-optional {
    font-size: 12.5px;
    color: var(--muted);
    line-height: 1.6;
    margin: -8px 0 18px;
}
.ec-pkg-grid { display: flex; flex-direction: column; gap: 16px; }
.ec-pkg-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 24px;
    text-align: left;
    color: var(--text);
    font-family: inherit;
    position: relative;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.35s var(--ease), opacity 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
}
.ec-pkg-card:hover { border-color: var(--line-strong); }
.ec-pkg-card.selected {
    border-color: var(--blue);
    box-shadow: var(--blue-glow);
}
.ec-pkg-card.selected::after {
    content: 'SELECTED';
    position: absolute;
    top: -1px; right: -1px;
    background: var(--blue);
    color: #fff;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 0.3em;
    padding: 4px 9px 4px 11px;
}
[data-lang="es"] .ec-pkg-card.selected::after { content: 'ELEGIDO'; }
.ec-pkg-card.dimmed { opacity: 0.35; transform: scale(0.985); }
.ec-pkg-card.error-border { border-color: var(--blue); box-shadow: var(--blue-glow); }
.ec-pkg-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.ec-pkg-name { font-size: 17px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.ec-pkg-price {
    font-family: var(--mono);
    font-size: 14px;
    font-weight: 700;
    border: 1px solid var(--line-strong);
    padding: 5px 10px;
    transition: border-color 0.3s ease, color 0.3s ease;
}
.ec-pkg-card.selected .ec-pkg-price { border-color: var(--blue); color: var(--blue); }
.ec-pkg-features { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.ec-pkg-features li {
    font-size: 12.5px;
    color: var(--muted);
    padding-left: 22px;
    position: relative;
    letter-spacing: 0.02em;
    line-height: 1.55;
}
.ec-pkg-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.78em;             /* centered on the first text line */
    width: 10px; height: 1px;
    background: currentColor; /* dash matches the text color */
}
.ec-symbols {
    display: flex;
    gap: 0;
    align-items: center;
    margin-top: 10px;
    min-height: 54px;
    filter: grayscale(1);
}
.ec-symbols img { height: 52px; width: auto; object-fit: contain; }
.ec-deselect-btn {
    margin-top: 14px;
    background: transparent;
    border: 1px dashed var(--dim);
    color: var(--muted);
    padding: 12px;
    width: 100%;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: border-color 0.3s ease, color 0.3s ease;
    animation: ec-slide-in 0.35s var(--ease);
}
.ec-deselect-btn:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Modals ---------- */
.ec-modal {
    position: fixed;
    inset: 0;
    z-index: 2147483100;
    background: rgba(246, 246, 244, 0.78);
    backdrop-filter: blur(6px) grayscale(1);
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.ec-modal.open { display: flex; opacity: 1; }
.ec-modal-backdrop { position: absolute; inset: 0; }
.ec-popup {
    position: relative;
    background: var(--panel-2);
    border: 1px solid var(--line-strong);
    width: 340px;
    max-width: calc(100vw - 32px);
    padding: 22px;
    transform: translateY(12px);
    transition: transform 0.4s var(--ease);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
}
.ec-modal.open .ec-popup { transform: translateY(0); }
.ec-popup-x {
    position: absolute;
    top: 10px; right: 12px;
    background: none;
    border: none;
    color: var(--dim);
    font-size: 22px;
    line-height: 1;
    transition: color 0.25s ease, transform 0.25s ease;
    z-index: 5;
}
.ec-popup-x:hover { color: var(--text); transform: rotate(90deg); }

/* Calendar */
.ec-cal-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}
.ec-cal-head span {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.ec-cal-head button {
    background: none;
    border: 1px solid var(--line);
    color: var(--muted);
    width: 30px; height: 30px;
    font-size: 14px;
    transition: border-color 0.25s ease, color 0.25s ease;
}
.ec-cal-head button:hover { border-color: var(--blue); color: var(--text); }
.ec-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; text-align: center; }
.ec-cal-dow {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.2em;
    color: var(--dim);
    padding-bottom: 8px;
    text-transform: uppercase;
}
.ec-cal-day {
    padding: 9px 0;
    font-family: var(--mono);
    font-size: 12px;
    color: var(--text);
    border: 1px solid transparent;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ec-cal-day:not(:empty):not(.disabled):hover { background: #ededec; }
.ec-cal-day.selected { background: var(--blue); color: #fff; }
.ec-cal-day.disabled { color: #c9c9c6; text-decoration: line-through; text-decoration-color: rgba(62,106,225,0.4); }
.ec-picker-actions {
    border-top: 1px solid var(--line);
    margin-top: 16px;
    padding-top: 12px;
    text-align: right;
}
.ec-done-btn {
    background: transparent;
    border: 1px solid var(--blue);
    color: var(--blue);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    padding: 10px 22px;
    transition: background 0.3s ease, color 0.3s ease;
}
.ec-done-btn:hover { background: var(--blue); color: #fff; }

/* Time odometer */
.ec-odometer {
    display: flex;
    height: 180px;
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
    -webkit-mask-image: linear-gradient(to bottom, transparent, black 22%, black 78%, transparent);
}
.ec-odometer-highlight {
    position: absolute;
    top: 50%; left: 8px; right: 8px;
    height: 36px;
    margin-top: -18px;
    border-top: 1px solid var(--blue);
    border-bottom: 1px solid var(--blue);
    background: var(--blue-soft);
    pointer-events: none;
    z-index: 1;
}
.ec-wheel {
    flex: 1;
    height: 100%;
    overflow-y: auto;
    scroll-snap-type: y mandatory;
    padding: 72px 0;
    scrollbar-width: none;
    cursor: grab;
    position: relative;
    z-index: 5;
    touch-action: pan-y;
}
.ec-wheel::-webkit-scrollbar { display: none; }
.ec-wheel-item {
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    scroll-snap-align: center;
    font-family: var(--mono);
    font-size: 16px;
    color: var(--dim);
    transition: color 0.2s ease;
}
.ec-wheel-item.active { color: var(--text); font-weight: 700; }
.ec-picker-note {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    text-align: center;
    display: none;
}
.ec-picker-note.show { display: block; }

/* ---------- STEP 2 ---------- */
.ec-step2-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 36px;
}
.ec-step2-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 32px;
    align-items: stretch; /* both columns share the same top and bottom edge */
}
.ec-step2-main { display: flex; flex-direction: column; gap: 30px; }
.ec-step2-main .ec-panel:last-child { flex: 1; } /* timeline panel absorbs leftover height */
.ec-step2-side { display: flex; flex-direction: column; }
.ec-back-link {
    background: transparent;
    border: 1px solid var(--line-strong);
    color: var(--text);
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    padding: 10px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: border-color 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}
.ec-back-link:hover { border-color: var(--blue); color: var(--blue); }
.ec-step2-title { font-size: clamp(24px, 4vw, 34px); font-weight: 700; text-transform: uppercase; letter-spacing: -0.02em; }
.ec-step2-sub { color: var(--muted); font-size: 13px; margin-top: 6px; max-width: 480px; }

.ec-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ec-input-group { display: flex; flex-direction: column; gap: 7px; }
.ec-input-group label {
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    color: var(--muted);
}
.ec-input {
    width: 100%;
    background: var(--panel-3);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 14px 14px;
    font-family: inherit;
    font-size: 14px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    outline: none;
}
.ec-input::placeholder { color: var(--dim); }
.ec-input:hover { border-color: var(--line-strong); }
.ec-input:focus { border-color: var(--blue); box-shadow: var(--blue-glow); background: var(--panel-2); }

.ec-s2-timeline { position: relative; padding-left: 28px; display: flex; flex-direction: column; gap: 16px; }
.ec-s2-timeline::before {
    content: '';
    position: absolute;
    left: 5px; top: 14px; bottom: 14px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, var(--line-strong) 0 4px, transparent 4px 9px);
}
.ec-s2-item { position: relative; }
.ec-s2-dot {
    position: absolute;
    left: -27px; top: 18px;
    width: 9px; height: 9px;
    border: 2px solid var(--blue);
    background: var(--bg);
    border-radius: 50%;
}
.ec-s2-content { background: var(--panel-2); border: 1px solid var(--line); padding: 16px; }
.ec-s2-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; gap: 10px; flex-wrap: wrap; }
.ec-s2-item-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; }
.ec-s2-item-time {
    font-family: var(--mono);
    font-size: 11px;
    color: var(--blue);
    border: 1px solid rgba(62, 106, 225, 0.4);
    padding: 4px 9px;
    letter-spacing: 0.06em;
}
.ec-address-wrap { width: 100%; }
.ec-address-wrap input {
    width: 100%;
    background: var(--panel-3);
    border: 1px solid var(--line);
    color: var(--text);
    padding: 12px 12px 12px 38px;
    font-family: inherit;
    font-size: 13px;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='15' height='15' viewBox='0 0 24 24' fill='none' stroke='%235c5c5c' stroke-width='2'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0z'/><circle cx='12' cy='10' r='3'/></svg>");
    background-repeat: no-repeat;
    background-position: 12px center;
}
.ec-address-wrap input::placeholder { color: var(--dim); }
.ec-address-wrap input:focus { border-color: var(--blue); box-shadow: var(--blue-glow); }

/* Order summary sidebar */
.ec-order-card {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 30px 28px;
    box-shadow: 0 2px 14px rgba(0, 0, 0, 0.04);
    flex: 1;                 /* stretches so its bottom lines up with the left column */
    display: flex;
    flex-direction: column;
}
.ec-order-footer { margin-top: auto; } /* pins confirm button to the card's bottom */
.ec-order-title {
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border-bottom: 1px solid var(--line);
    padding-bottom: 14px;
    margin-bottom: 18px;
}
.ec-order-toprow { display: flex; justify-content: space-between; gap: 14px; margin-bottom: 20px; }
.ec-order-col .ec-mini-label {
    font-family: var(--mono);
    font-size: 8.5px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--dim);
    display: block;
    margin-bottom: 5px;
}
.ec-order-col h4 { font-size: 13px; font-weight: 700; text-transform: uppercase; }
.ec-order-col.right { text-align: right; }
.ec-pkg-letter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--blue);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    width: 20px; height: 20px;
    margin-left: 8px;
    vertical-align: middle;
}
.ec-order-details { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.ec-detail-item { display: flex; gap: 12px; align-items: flex-start; }
.ec-detail-icon {
    width: 28px; height: 28px;
    border: 1px solid var(--line-strong);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    flex-shrink: 0;
}
.ec-detail-bold { font-size: 12.5px; font-weight: 700; }
.ec-detail-sub { font-size: 10.5px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.ec-breakdown { border: 1px solid var(--line); padding: 16px; margin-bottom: 18px; }
.ec-bd-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--muted);
    margin-bottom: 8px;
    font-family: var(--mono);
    letter-spacing: 0.04em;
}
.ec-bd-row .ec-bd-val { color: var(--text); }
.ec-bd-row.highlight, .ec-bd-row.highlight .ec-bd-val { color: var(--blue); }
.ec-bd-divider { height: 1px; background: var(--line); margin: 12px 0; }
.ec-bd-row.total { color: var(--text); align-items: baseline; margin-bottom: 0; }
.ec-bd-total { font-size: 24px; font-weight: 700; letter-spacing: -0.02em; font-family: var(--font); }
.ec-confirm-btn {
    width: 100%;
    background: var(--blue);
    border: 1px solid var(--blue);
    color: #ffffff;
    padding: 17px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.26em;
    text-transform: uppercase;
    transition: background 0.35s ease, color 0.35s ease, box-shadow 0.35s ease, transform 0.2s ease;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
}
.ec-confirm-btn:hover { box-shadow: 0 8px 28px rgba(62, 106, 225, 0.45); transform: translateY(-2px); }
.ec-confirm-btn:active { transform: scale(0.985); }
.ec-confirm-btn:disabled { opacity: 0.5; }

/* ---------- STEP 3: ANIMATED CONFIRMATION ---------- */
.ec-confirm-hero {
    position: relative;
    text-align: center;
    padding: 34px 20px 44px;
    overflow: hidden;
}
.ec-check-wrap {
    position: relative;
    width: 104px; height: 104px;
    margin: 0 auto 26px;
}
.ec-check { width: 104px; height: 104px; display: block; }
.ec-check-circle {
    stroke: var(--blue);
    stroke-width: 3;
    stroke-dasharray: 289;
    stroke-dashoffset: 289;
    transform: rotate(-90deg);
    transform-origin: center;
    animation: ec-draw 0.9s var(--ease) 0.2s forwards;
}
.ec-check-mark {
    stroke: var(--text);
    stroke-width: 6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 62;
    stroke-dashoffset: 62;
    animation: ec-draw 0.5s var(--ease) 1s forwards;
}
@keyframes ec-draw { to { stroke-dashoffset: 0; } }
.ec-check-pulse {
    position: absolute;
    inset: -6px;
    border: 1px solid var(--blue);
    border-radius: 50%;
    opacity: 0;
    animation: ec-ping 2s ease-out 1.3s infinite;
}
@keyframes ec-ping {
    0%   { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.5); opacity: 0; }
}
.ec-confirm-title {
    font-size: clamp(28px, 5vw, 42px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    opacity: 0;
    animation: ec-fade-item 0.6s var(--ease) 0.5s forwards;
}
.ec-confirm-sub {
    color: var(--muted);
    font-size: 14px;
    margin-top: 10px;
    opacity: 0;
    animation: ec-fade-item 0.6s var(--ease) 0.7s forwards;
}
.ec-confirm-sub span { color: var(--blue); font-weight: 700; }
@keyframes ec-fade-item {
    from { opacity: 0; transform: translateY(12px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Confetti — monochrome + blue slips falling behind the checkmark */
.ec-confetti { position: absolute; inset: 0; pointer-events: none; }
.ec-confetti i {
    position: absolute;
    top: -12px;
    width: 6px; height: 14px;
    opacity: 0;
    animation: ec-confetti-fall 2.6s ease-in forwards;
}
.ec-confetti i:nth-child(3n)   { background: var(--blue); }
.ec-confetti i:nth-child(3n+1) { background: #0b0b0b; }
.ec-confetti i:nth-child(3n+2) { background: #c9c9c6; }
.ec-confetti i:nth-child(1)  { left: 6%;  animation-delay: 0.9s; }
.ec-confetti i:nth-child(2)  { left: 14%; animation-delay: 1.4s; }
.ec-confetti i:nth-child(3)  { left: 22%; animation-delay: 1.0s; }
.ec-confetti i:nth-child(4)  { left: 30%; animation-delay: 1.7s; }
.ec-confetti i:nth-child(5)  { left: 38%; animation-delay: 1.1s; }
.ec-confetti i:nth-child(6)  { left: 46%; animation-delay: 1.5s; }
.ec-confetti i:nth-child(7)  { left: 54%; animation-delay: 0.95s; }
.ec-confetti i:nth-child(8)  { left: 62%; animation-delay: 1.6s; }
.ec-confetti i:nth-child(9)  { left: 70%; animation-delay: 1.15s; }
.ec-confetti i:nth-child(10) { left: 78%; animation-delay: 1.45s; }
.ec-confetti i:nth-child(11) { left: 86%; animation-delay: 1.05s; }
.ec-confetti i:nth-child(12) { left: 94%; animation-delay: 1.55s; }
.ec-confetti i:nth-child(13) { left: 18%; animation-delay: 2.0s; }
.ec-confetti i:nth-child(14) { left: 74%; animation-delay: 2.1s; }
@keyframes ec-confetti-fall {
    0%   { opacity: 0; transform: translateY(0) rotate(0deg); }
    10%  { opacity: 1; }
    100% { opacity: 0; transform: translateY(340px) rotate(320deg); }
}

.ec-confirm-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 32px;
    align-items: stretch;
}
.ec-confirm-card { display: flex; flex-direction: column; }
.ec-conf-list { display: flex; flex-direction: column; }
.ec-conf-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
    opacity: 0;
    animation: ec-fade-item 0.5s var(--ease) forwards;
}
.ec-conf-row:last-child { border-bottom: none; }
.ec-conf-key {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--muted);
    flex-shrink: 0;
}
.ec-conf-val { font-size: 13.5px; font-weight: 600; text-align: right; word-break: break-word; }
.ec-conf-timeline { flex-direction: column; align-items: flex-start; }
.ec-conf-pre {
    font-family: var(--mono);
    font-size: 11.5px;
    line-height: 1.8;
    color: var(--text);
    background: var(--panel-3);
    padding: 14px;
    width: 100%;
    white-space: pre-wrap;
    word-break: break-word;
}
.ec-promise {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 26px;
    opacity: 0;
    animation: ec-fade-item 0.6s var(--ease) 1.2s forwards;
}
.ec-promise p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.ec-promise strong { color: var(--text); }
.ec-badge-24 {
    flex-shrink: 0;
    background: var(--blue);
    color: #fff;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    padding: 8px 10px;
    animation: ec-badge-pulse 2s ease-in-out 1.4s infinite;
}
@keyframes ec-badge-pulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(62, 106, 225, 0.45); }
    50%      { box-shadow: 0 0 0 7px rgba(62, 106, 225, 0); }
}
.ec-hotline {
    border: 1px solid var(--line);
    background: var(--panel-2);
    padding: 20px;
    text-align: center;
    margin-bottom: 22px;
    opacity: 0;
    animation: ec-fade-item 0.6s var(--ease) 1.4s forwards;
}
.ec-hotline .ec-mini-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 8px;
}
.ec-phone {
    display: inline-block;
    font-size: clamp(21px, 3.4vw, 27px);
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--blue);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: opacity 0.25s ease;
}
.ec-phone:hover { opacity: 0.75; }
.ec-new-request-btn {
    margin-top: auto;
    background: transparent;
    border: 1px dashed var(--dim);
    color: var(--muted);
    padding: 13px;
    width: 100%;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    transition: border-color 0.3s ease, color 0.3s ease;
    opacity: 0;
    animation: ec-fade-item 0.6s var(--ease) 1.6s forwards;
}
.ec-new-request-btn:hover { border-color: var(--blue); color: var(--blue); }

/* Click ripple (white — primary buttons are ink-dark) */
.ec-ripple {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.35);
    transform: scale(0);
    animation: ec-ripple 0.6s ease-out forwards;
    pointer-events: none;
}
@keyframes ec-ripple {
    to { transform: scale(3); opacity: 0; }
}

/* Step containers */
.ec-step { animation: ec-step-in 0.5s var(--ease); }
@keyframes ec-step-in {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* Field error state (blue, per theme) */
.ec-field-error { border-color: var(--blue) !important; box-shadow: var(--blue-glow) !important; }

/* Toast */
.ec-toast {
    position: fixed;
    bottom: 28px; left: 50%;
    transform: translate(-50%, 80px);
    background: var(--panel-3);
    border: 1px solid var(--blue);
    color: var(--text);
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: 14px 22px;
    z-index: 2147483300;
    transition: transform 0.45s var(--ease), opacity 0.45s ease;
    opacity: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.18);
}
.ec-toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
    .ec-grid, .ec-step2-grid, .ec-confirm-grid { grid-template-columns: 1fr; gap: 36px; }
    .ec-packages-col { order: -1; }
    .ec-pkg-grid { flex-direction: row; gap: 12px; }
    .ec-pkg-card { flex: 1; min-width: 0; padding: 16px 12px; }
    .ec-pkg-name { font-size: 13px; }
    .ec-pkg-price { font-size: 11px; padding: 4px 7px; }
    .ec-pkg-features li { font-size: 10.5px; padding-left: 16px; }
    .ec-symbols img { height: 36px; }
    .ec-quote-head { flex-direction: column; align-items: stretch; }
    .ec-date-box { align-items: stretch; }
    .ec-date-trigger { justify-content: space-between; }
    .ec-order-card { position: static; }
    .ec-form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    #endless-widget-wrapper { padding: 16px 12px; }
    .ec-panel { padding: 26px 18px; }
    .ec-services { margin-bottom: 44px; }
    .ec-pkg-grid { flex-direction: column; }
    .ec-services { grid-template-columns: repeat(2, 1fr); }
    .ec-glider { width: 50%; }
    .ec-service-tab:nth-child(3) { border-right: none; }
    .ec-service-tab { border-bottom: 1px solid var(--line); }
    .ec-service-tab:nth-last-child(-n+2) { border-bottom: none; }
    .ec-card { flex-direction: column; align-items: stretch; }
    .ec-card-controls { justify-content: space-between; }
    .ec-time-group, .ec-select { width: 100%; flex: 1; }
    .ec-timeline-head { flex-direction: column; align-items: stretch; }
    .ec-toolbox { width: 100%; }
    .ec-tool-btn { flex: 1; justify-content: center; }
    .ec-topbar { flex-direction: column; align-items: flex-start; gap: 14px; }
    .ec-topbar-right { align-items: flex-start; flex-direction: column-reverse; }
}