/* ==========================================================================
   Build Your Own Kit  (page-build-a-kit.php + assets/js/everest-kit.js)
   Tokens from custom.css: --eyebrow --h2 --h3 --lead --body --small --label
   --accent #6bb3fb  --green #10b981
   ========================================================================== */

.evk-hero,
.evk-builder-wrap,
.evk-how {
    --evk-bg: #0a1628;
    --evk-card: #0f2137;
    --evk-card-2: #122a45;
    --evk-line: #234567;
    --evk-line-2: #2f5a86;
    --evk-text: #ffffff;
    --evk-muted: #a3c4d9;
    --evk-dim: #6a8fa8;
    --evk-amber: #fbbf24;
    --evk-radius: 16px;
    color: var(--evk-text);
}

.evk-hero *,
.evk-builder-wrap *,
.evk-how * {
    box-sizing: border-box;
}

/* ---------- Hero ---------- */

.evk-hero {
    padding: 2rem 0 1.75rem;
    background: linear-gradient(180deg, #0f2137 0%, #0a1628 100%);
}

@media (min-width: 1024px) {
    .evk-hero {
        padding: 3rem 0 2.5rem;
    }
}

.evk-crumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1.25rem;
    font-size: var(--small);
    color: var(--evk-dim);
}

.evk-crumbs a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.evk-crumbs a:hover {
    color: var(--accent);
}

.evk-crumbs svg {
    width: 16px;
    height: 16px;
}

.evk-crumbs span {
    color: #fff;
}

.evk-hero__grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .evk-hero__grid {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        align-items: end;
        gap: 3rem;
    }
}

.evk-hero__title {
    margin: 0.5rem 0 0.75rem;
    font-size: var(--h2);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.01em;
}

.evk-hero__lead {
    margin: 0;
    max-width: 38rem;
    color: #b8d4ed;
}

.evk-hero__points {
    list-style: none;
    margin: 0;
    padding: 1.1rem 1.25rem;
    display: grid;
    gap: 12px;
    background: rgba(107, 179, 251, 0.07);
    border: 1px solid rgba(107, 179, 251, 0.25);
    border-radius: var(--evk-radius);
}

.evk-hero__points li {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    font-size: 14px;
    line-height: 1.5;
    color: var(--evk-muted);
}

.evk-hero__points li strong {
    color: #fff;
}

.evk-hero__points svg {
    flex: none;
    width: 18px;
    height: 18px;
    margin-top: 2px;
    color: var(--green);
}

/* ---------- Layout ---------- */

.evk-builder-wrap {
    padding: 1.5rem 0 3rem;
    background: var(--evk-bg);
}

.evk {
    position: relative;
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 1024px) {
    .evk {
        grid-template-columns: minmax(0, 1fr) 380px;
        gap: 2rem;
        align-items: start;
    }
}

@media (min-width: 1280px) {
    .evk {
        grid-template-columns: minmax(0, 1fr) 420px;
    }
}

.evk-offline {
    max-width: 36rem;
    margin: 0 auto;
    padding: 2rem;
    text-align: center;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: var(--evk-radius);
}

.evk-offline p {
    color: var(--evk-muted);
    margin: 0.5rem 0 1.25rem;
}

/* ---------- Size selector ---------- */

.evk-sizebar__label {
    margin: 0 0 0.6rem;
    color: var(--accent);
}

.evk-sizebar__hint {
    font-weight: 500;
    letter-spacing: 0;
    text-transform: none;
    color: var(--evk-dim);
}

.evk-sizebar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.evk-size {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 0.95rem 1.1rem;
    font-family: inherit;
    text-align: left;
    color: #fff;
    background: var(--evk-card);
    border: 2px solid var(--evk-line);
    border-radius: 14px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s, transform 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.evk-size:hover {
    border-color: var(--evk-line-2);
    transform: translateY(-1px);
}

.evk-size:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.evk-size[aria-checked="true"] {
    border-color: var(--accent);
    background: linear-gradient(180deg, rgba(107, 179, 251, 0.26), rgba(107, 179, 251, 0.1));
    box-shadow: 0 0 0 3px rgba(107, 179, 251, 0.25), 0 10px 30px rgba(107, 179, 251, 0.18);
}

.evk-size[aria-checked="false"] {
    opacity: 0.8;
}

.evk-size[aria-checked="false"]:hover {
    opacity: 1;
}

/* "Selected" / "Tap to select" pill */
.evk-size__state {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 6px;
    padding: 3px 9px;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
    color: var(--evk-dim);
    border: 1px solid var(--evk-line);
}

.evk-size__state::before {
    content: 'Tap to select';
}

.evk-size[aria-checked="true"] .evk-size__state {
    color: #011a2e;
    background: var(--accent);
    border-color: var(--accent);
}

.evk-size[aria-checked="true"] .evk-size__state::before {
    content: 'Selected';
}

.evk-size__count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.01em;
}

.evk-size__count small {
    font-size: var(--small);
    font-weight: 600;
    color: var(--evk-muted);
    margin-left: 2px;
}

.evk-size__save {
    font-size: var(--small);
    font-weight: 700;
    color: var(--green);
}

.evk-size__tag {
    position: absolute;
    top: -10px;
    right: 12px;
    padding: 3px 9px;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #011a2e;
    background: var(--green);
    border-radius: 999px;
}

.evk-size[aria-checked="true"]::after {
    content: '';
    position: absolute;
    top: 12px;
    right: 12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23011a2e' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}

.evk-size[aria-checked="true"] .evk-size__tag {
    top: -10px;
    right: 40px;
}

@media (min-width: 640px) {
    .evk-size {
        flex-direction: row;
        align-items: center;
        gap: 0.9rem;
        padding-right: 3rem;
    }

    .evk-size__save {
        padding-left: 0.9rem;
        border-left: 1px solid rgba(255, 255, 255, 0.12);
    }

    .evk-size__state {
        margin-top: 0;
        margin-left: auto;
    }
}

/* ---------- Toolbar ---------- */

.evk-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.6rem 0.75rem;
    align-items: center;
    margin-bottom: 1rem;
}

.evk-search {
    position: relative;
    display: block;
}

.evk-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    width: 18px;
    height: 18px;
    transform: translateY(-50%);
    color: var(--evk-dim);
    pointer-events: none;
}

.evk-search input {
    width: 100%;
    padding: 0.7rem 1rem 0.7rem 2.6rem;
    font-family: inherit;
    font-size: var(--body);
    color: #fff;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: 999px;
    outline: none;
    transition: border-color 0.2s;
    -webkit-appearance: none;
}

.evk-search input::placeholder {
    color: var(--evk-dim);
}

.evk-search input:focus {
    border-color: var(--accent);
}

.evk-sort select {
    padding: 0.7rem 2.4rem 0.7rem 1rem;
    font-family: inherit;
    font-size: var(--small);
    font-weight: 600;
    color: #fff;
    background: var(--evk-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236bb3fb' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;
    border: 1px solid var(--evk-line);
    border-radius: 999px;
    outline: none;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
}

.evk-sort select:focus {
    border-color: var(--accent);
}

.evk-toolbar__count {
    grid-column: 1 / -1;
    margin: 0;
    color: var(--evk-dim);
}

/* ---------- Product grid ---------- */

.evk-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

@media (min-width: 640px) {
    .evk-grid {
        gap: 1rem;
    }
}

@media (min-width: 900px) {
    .evk-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1536px) {
    .evk-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.evk-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--evk-muted);
}

.evk-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: var(--evk-radius);
    overflow: hidden;
    transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

.evk-card:hover {
    border-color: var(--evk-line-2);
}

.evk-card.is-in {
    border-color: rgba(107, 179, 251, 0.6);
    box-shadow: 0 0 0 1px rgba(107, 179, 251, 0.25), 0 12px 30px rgba(1, 26, 46, 0.4);
}

.evk-card.is-added-pulse {
    animation: evk-pulse 0.5s ease;
}

@keyframes evk-pulse {
    0% { transform: scale(1); }
    40% { transform: scale(1.015); }
    100% { transform: scale(1); }
}

.evk-card__count {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--small);
    font-weight: 800;
    color: #011a2e;
    background: var(--accent);
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(1, 26, 46, 0.4);
    transform: scale(0);
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evk-card.is-in .evk-card__count {
    transform: scale(1);
}

.evk-card__sale {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: #DC2626;
    border-radius: 6px;
}

.evk-card__media {
    display: block;
    aspect-ratio: 1 / 1;
    background: #0b1b2e;
    overflow: hidden;
}

.evk-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.evk-card:hover .evk-card__media img {
    transform: scale(1.04);
}

.evk-card__body {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 0.85rem 0.85rem 0.9rem;
    flex: 1;
}

@media (min-width: 640px) {
    .evk-card__body {
        padding: 1rem;
    }
}

.evk-card__name {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--body);
    font-weight: 700;
    line-height: 1.3;
}

.evk-card__name a {
    color: #fff;
    text-decoration: none;
}

.evk-card__name a:hover {
    color: var(--accent);
}

.evk-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.evk-chip {
    position: relative;
    padding: 5px 10px;
    font-family: inherit;
    font-size: var(--label);
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--evk-muted);
    background: transparent;
    border: 1px solid var(--evk-line);
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.evk-chip:hover {
    border-color: var(--evk-line-2);
    color: #fff;
}

.evk-chip[aria-pressed="true"] {
    color: #011a2e;
    background: var(--accent);
    border-color: var(--accent);
}

.evk-chip__n {
    position: absolute;
    top: -8px;
    right: -7px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    color: #011a2e;
    background: var(--green);
    border-radius: 999px;
}

.evk-price {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-top: auto;
}

.evk-price__kit {
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.evk-price__now {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    color: #fff;
    letter-spacing: -0.01em;
}

.evk-price__was {
    font-size: 13px;
    color: var(--evk-dim);
    text-decoration: line-through;
}

.evk-price__note {
    font-size: 13px;
    line-height: 1.4;
    color: var(--green);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.evk-price__note--idle {
    color: var(--evk-muted);
    font-weight: 500;
}

.evk-step {
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: stretch;
    height: 44px;
    background: #0b1b2e;
    border: 1px solid var(--evk-line);
    border-radius: 999px;
    overflow: hidden;
}

.evk-step button {
    font-family: inherit;
    font-size: 22px;
    font-weight: 600;
    line-height: 1;
    color: #fff;
    background: transparent;
    border: 0;
    cursor: pointer;
    transition: background-color 0.15s, color 0.15s;
    -webkit-tap-highlight-color: transparent;
}

.evk-step button:hover:not(:disabled) {
    background: rgba(107, 179, 251, 0.15);
    color: var(--accent);
}

.evk-step button:disabled {
    color: var(--evk-dim);
    cursor: not-allowed;
    opacity: 0.5;
}

.evk-step__n {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--body);
    font-weight: 700;
}

.evk-step--zero {
    grid-template-columns: 1fr;
}

.evk-step--zero button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: var(--small);
    font-weight: 700;
    color: #011a2e;
    background: var(--accent);
}

.evk-step--zero button:hover:not(:disabled) {
    background: #9dcbfd;
    color: #011a2e;
}

.evk-step--zero button:disabled {
    color: var(--evk-dim);
    background: #0b1b2e;
    opacity: 1;
}

.evk-step--zero button svg {
    width: 16px;
    height: 16px;
}

/* ---------- Kit panel ---------- */

.evk-panel {
    position: relative;
}

@media (min-width: 1024px) {
    .evk-panel {
        position: sticky;
        top: 96px;
    }
}

.evk-panel__inner {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: 20px;
    overflow: hidden;
}

@media (min-width: 1024px) {
    .evk-panel__inner {
        max-height: calc(100vh - 120px);
    }
}

.evk-panel.is-complete .evk-panel__inner {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.2), 0 20px 50px rgba(1, 26, 46, 0.5);
}

.evk-panel__head {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.1rem 1.25rem 0.75rem;
}

.evk-panel__eyebrow {
    margin: 0 0 2px;
    color: var(--accent);
}

.evk-panel__progress {
    margin: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
}

.evk-panel__clear {
    margin-left: auto;
    padding: 6px 2px;
    font-family: inherit;
    font-size: var(--small);
    color: var(--evk-dim);
    background: transparent;
    border: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.evk-panel__clear:hover {
    color: #fff;
}

.evk-panel__close {
    display: none;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    color: var(--evk-muted);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.evk-panel__close svg {
    width: 20px;
    height: 20px;
}

/* Slot tray */
.evk-tray {
    display: grid;
    grid-template-columns: repeat(10, minmax(0, 1fr));
    gap: 6px;
    padding: 0 1.25rem 0.9rem;
}

.evk-tray[data-size="5"] {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.evk-slot {
    aspect-ratio: 1 / 1;
    border-radius: 10px;
    border: 1.5px dashed var(--evk-line-2);
    background: #0b1b2e;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s, transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evk-slot.is-filled {
    border-style: solid;
    border-color: rgba(107, 179, 251, 0.5);
    animation: evk-slot-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evk-slot.is-over {
    border-color: var(--evk-amber);
    background: rgba(251, 191, 36, 0.12);
}

.evk-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evk-slot__ph {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--label);
    font-weight: 700;
    color: var(--evk-dim);
}

@keyframes evk-slot-in {
    from { transform: scale(0.6); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.evk-panel__body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding: 0 1.25rem;
    border-top: 1px solid var(--evk-line);
}

.evk-items {
    list-style: none;
    margin: 0;
    padding: 0;
}

.evk-item {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--evk-line);
}

.evk-item:last-child {
    border-bottom: 0;
}

.evk-item__thumb {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b1b2e;
}

.evk-item__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.evk-item__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.evk-item__meta {
    margin: 2px 0 0;
    font-size: 14px;
    color: var(--evk-muted);
}

.evk-item__meta del {
    color: var(--evk-dim);
    margin-right: 6px;
}

.evk-item__meta b {
    color: #fff;
    font-weight: 700;
}

.evk-item__ctl {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.evk-item .evk-step {
    height: 34px;
    grid-template-columns: 34px 1fr 34px;
    min-width: 104px;
}

.evk-item .evk-step button {
    font-size: 18px;
}

.evk-item .evk-step__n {
    font-size: 14px;
}

.evk-item__total {
    font-size: 14px;
    font-weight: 700;
}

.evk-panel__empty {
    padding: 1.75rem 0 1.5rem;
    text-align: center;
    color: var(--evk-muted);
}

.evk-panel__empty svg {
    width: 40px;
    height: 40px;
    margin: 0 auto 0.6rem;
    display: block;
    color: var(--evk-line-2);
}

.evk-panel__empty p {
    margin: 0;
}

.evk-nudge {
    margin: 0 1.25rem;
    padding: 0.65rem 0.85rem;
    font-size: var(--small);
    line-height: 1.45;
    color: #fde68a;
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: 10px;
}

.evk-nudge--good {
    color: #a7f3d0;
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(16, 185, 129, 0.3);
}

.evk-nudge--info {
    color: #cfe5fb;
    background: rgba(107, 179, 251, 0.1);
    border-color: rgba(107, 179, 251, 0.3);
}

.evk-nudge button {
    font: inherit;
    font-weight: 700;
    color: inherit;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.evk-panel__foot {
    padding: 0.9rem 1.25rem 1.1rem;
    border-top: 1px solid var(--evk-line);
    background: linear-gradient(180deg, var(--evk-card) 0%, var(--evk-card-2) 100%);
}

.evk-totals {
    margin: 0 0 0.85rem;
    display: grid;
    gap: 5px;
}

.evk-totals > div {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    font-size: var(--small);
    color: var(--evk-muted);
}

.evk-totals dt,
.evk-totals dd {
    margin: 0;
}

.evk-totals del {
    color: var(--evk-dim);
}

.evk-totals__save {
    color: var(--green);
    font-weight: 700;
}

.evk-totals__kit {
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px dashed var(--evk-line);
}

.evk-totals__kit dt {
    color: #fff;
    font-weight: 700;
    font-size: var(--body);
}

.evk-totals__kit dd {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 26px;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.01em;
}

.evk-ship {
    margin: -0.25rem 0 0.75rem;
    color: var(--green);
    font-weight: 600;
}

.evk-ship--almost {
    color: var(--evk-muted);
    font-weight: 500;
}

.evk-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 0.8rem 1.4rem;
    font-family: inherit;
    font-size: var(--body);
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
    text-align: center;
    border-radius: 999px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s;
    -webkit-tap-highlight-color: transparent;
}

.evk-btn--primary {
    color: #011a2e;
    background: var(--accent);
}

.evk-btn--primary:hover:not(:disabled) {
    background: #9dcbfd;
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(107, 179, 251, 0.28);
}

.evk-btn--primary:disabled {
    color: var(--evk-muted);
    background: #1a3350;
    cursor: not-allowed;
}

.evk-btn--ghost {
    color: #fff;
    background: transparent;
    border-color: var(--evk-line-2);
}

.evk-btn--ghost:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.evk-cta {
    width: 100%;
}

.evk-panel.is-complete .evk-cta:not(:disabled) {
    background: var(--green);
    animation: evk-cta-glow 1.6s ease-in-out 2;
}

.evk-panel.is-complete .evk-cta:not(:disabled):hover {
    background: #34d399;
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

@keyframes evk-cta-glow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
    50% { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.25); }
}

.evk-cta.is-loading {
    pointer-events: none;
    opacity: 0.75;
}

.evk-panel__fine {
    margin: 0.65rem 0 0;
    font-size: 13px;
    line-height: 1.45;
    color: #557a95;
    text-align: center;
}

.evk-link {
    font: inherit;
    font-size: var(--small);
    font-weight: 600;
    color: var(--accent);
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Done state */
.evk-done {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 1.5rem;
    text-align: center;
    background: var(--evk-card);
    animation: evk-fade 0.3s ease;
}

.evk-done[hidden] {
    display: none;
}

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

.evk-done__check {
    width: 64px;
    height: 64px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #011a2e;
    background: var(--green);
    border-radius: 50%;
    margin-bottom: 0.5rem;
    animation: evk-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.evk-done__check svg {
    width: 32px;
    height: 32px;
}

@keyframes evk-pop {
    from { transform: scale(0.4); }
    to { transform: scale(1); }
}

.evk-done__title {
    margin: 0;
    font-size: var(--h3);
    font-weight: 700;
}

.evk-done p {
    margin: 0;
    color: var(--evk-muted);
}

.evk-done__actions {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    width: 100%;
    max-width: 260px;
    margin-top: 1rem;
}

/* ---------- Mobile bar + sheet ---------- */

.evk-bar {
    display: none;
}

.evk-scrim {
    display: none;
}

@media (max-width: 1023px) {
    .evk-bar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 60;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 0.75rem;
        padding: 0.7rem 1rem calc(0.7rem + env(safe-area-inset-bottom));
        background: rgba(10, 22, 40, 0.96);
        border-top: 1px solid var(--evk-line);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        transform: translateY(110%);
        transition: transform 0.3s ease;
    }

    .evk-bar.is-visible {
        transform: none;
    }

    .evk-bar__summary {
        display: flex;
        align-items: center;
        gap: 0.75rem;
        min-width: 0;
        padding: 0;
        font-family: inherit;
        text-align: left;
        color: #fff;
        background: transparent;
        border: 0;
        cursor: pointer;
    }

    .evk-bar__ring {
        flex: none;
        width: 44px;
        height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        font-size: var(--small);
        font-weight: 800;
        border-radius: 50%;
        background:
            radial-gradient(circle, var(--evk-bg) 58%, transparent 60%),
            conic-gradient(var(--green) calc(var(--p) * 1%), var(--evk-line) 0);
    }

    .evk-bar__text {
        display: flex;
        flex-direction: column;
        min-width: 0;
    }

    .evk-bar__text strong {
        font-size: var(--small);
        font-weight: 700;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .evk-bar__text span {
        font-size: var(--label);
        text-transform: none;
        letter-spacing: 0;
        font-weight: 500;
        color: var(--evk-muted);
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .evk-bar__cta {
        min-height: 44px;
        padding: 0.6rem 1.1rem;
        font-size: var(--small);
        white-space: nowrap;
    }

    .evk-builder-wrap {
        padding-bottom: 6rem;
    }

    .evk-panel {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 80;
        padding: 0;
        transform: translateY(105%);
        transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
        pointer-events: none;
    }

    .evk-panel.is-open {
        transform: none;
        pointer-events: auto;
    }

    .evk-panel__inner {
        max-height: 88vh;
        border-radius: 22px 22px 0 0;
        border-bottom: 0;
        box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
    }

    .evk-panel__inner::before {
        content: '';
        display: block;
        width: 44px;
        height: 4px;
        margin: 10px auto -4px;
        border-radius: 999px;
        background: var(--evk-line-2);
    }

    .evk-panel__close {
        display: inline-flex;
    }

    .evk-panel__foot {
        padding-bottom: calc(1.1rem + env(safe-area-inset-bottom));
    }

    .evk-scrim {
        position: fixed;
        inset: 0;
        z-index: 70;
        display: block;
        background: rgba(1, 26, 46, 0.7);
        backdrop-filter: blur(2px);
        -webkit-backdrop-filter: blur(2px);
        animation: evk-fade 0.25s ease;
    }

    .evk-scrim[hidden] {
        display: none;
    }
}

/* ---------- How it works + FAQ ---------- */

.evk-how {
    padding: 3rem 0 4rem;
    background: #011a2e;
    border-top: 1px solid var(--evk-line);
}

@media (min-width: 1024px) {
    .evk-how {
        padding: 4.5rem 0 5.5rem;
    }
}

.evk-how__title {
    margin: 0.5rem 0 2rem;
    max-width: 22ch;
}

.evk-steps {
    list-style: none;
    margin: 0 0 2.5rem;
    padding: 0;
    display: grid;
    gap: 1.25rem;
    counter-reset: evk;
}

@media (min-width: 768px) {
    .evk-steps {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

.evk-steps li {
    padding: 1.4rem 1.4rem 1.5rem;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: var(--evk-radius);
}

.evk-steps__num {
    display: block;
    margin-bottom: 0.6rem;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: var(--step-numeral-stacked);
    font-weight: 800;
    line-height: 1;
    color: rgba(107, 179, 251, 0.35);
}

.evk-steps h3 {
    margin: 0 0 0.4rem;
}

.evk-steps p {
    margin: 0;
    color: var(--evk-muted);
}

.evk-faq {
    max-width: 48rem;
    display: grid;
    gap: 0.75rem;
}

.evk-faq details {
    padding: 0 1.25rem;
    background: var(--evk-card);
    border: 1px solid var(--evk-line);
    border-radius: 14px;
}

.evk-faq summary {
    padding: 1rem 2rem 1rem 0;
    position: relative;
    cursor: pointer;
    list-style: none;
    font-weight: 600;
}

.evk-faq summary::-webkit-details-marker {
    display: none;
}

.evk-faq summary::after {
    content: '+';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-size: 22px;
    color: var(--accent);
}

.evk-faq details[open] summary::after {
    content: '\2212';
}

.evk-faq p {
    margin: 0 0 1.1rem;
    color: var(--evk-muted);
}

/* ---------- Toast fallback (only if theme toast is unavailable) ---------- */

.evk-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 200;
    transform: translate(-50%, 20px);
    padding: 0.75rem 1.1rem;
    font-size: var(--small);
    font-weight: 600;
    color: #fff;
    background: #0f2137;
    border: 1px solid var(--evk-line-2);
    border-radius: 999px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.25s, transform 0.25s;
}

.evk-toast.is-on {
    opacity: 1;
    transform: translate(-50%, 0);
}

@media (prefers-reduced-motion: reduce) {
    .evk-card,
    .evk-card__media img,
    .evk-slot,
    .evk-card__count,
    .evk-panel,
    .evk-bar,
    .evk-btn,
    .evk-size {
        transition: none !important;
        animation: none !important;
    }
}
