/* Edremit Protez Tırnak - public site design system.
 *
 * Plain CSS on top of the prebuilt Tailwind file (app.css), so no build step is
 * needed on the server. Every class here is prefixed "ep-" (public pages) or
 * "nail-" (the Nail Art calculator) to stay clear of Tailwind's utilities.
 */
:root {
    --ep-bg: #fdf6fa;
    --ep-surface: #ffffff;
    --ep-ink: #2b1f25;
    --ep-muted: #75636b;
    --ep-line: #f3dde9;
    --ep-primary: #d1358f;
    --ep-primary-dark: #a82471;
    --ep-primary-soft: #ffeaf6;
    --ep-gold: #c9a24b;
    --ep-ok: #2f8f5b;
    --ep-ok-soft: #e8f5ee;
    --ep-warn: #b7791f;
    --ep-warn-soft: #fdf3e0;
    --ep-bad: #b83a2e;
    --ep-bad-soft: #fbeae8;
    --ep-radius: 16px;
    --ep-radius-sm: 10px;
    --ep-shadow: 0 10px 30px rgba(168, 36, 113, .10);
    --ep-shadow-sm: 0 2px 10px rgba(168, 36, 113, .08);
    --ep-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* One typeface everywhere: Inter (headings just use heavier weights). */
    --ep-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Almond nail silhouette (own drawing, 2:5) used to clip nail pictures in the calculator. */
    --nail-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 250'%3E%3Cpath d='M50 4C74 4 92 60 94 130C96 200 84 246 50 246C16 246 4 200 6 130C8 60 26 4 50 4Z' fill='black'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
.ep-body { margin: 0; background: var(--ep-bg); color: var(--ep-ink); font-family: var(--ep-font); -webkit-font-smoothing: antialiased; line-height: 1.55; min-height: 100vh; }
.ep-body * { font-family: inherit; }
.ep-body h1, .ep-body h2, .ep-body h3 { margin: 0; }
.ep-body a { color: var(--ep-primary); }
.ep-container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.ep-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---- header --------------------------------------------------------- */
.ep-header { position: sticky; top: 0; z-index: 40; background: rgba(251, 245, 243, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ep-line); }
.ep-header__row { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.ep-brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ep-ink) !important; min-width: 0; }
.ep-brand__logo { display: block; height: 44px; width: auto; max-width: 200px; }
.ep-nav { display: flex; align-items: center; gap: 6px; }
.ep-nav a { padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 600; font-size: .92rem; color: var(--ep-ink); }
.ep-nav a:hover { background: var(--ep-primary-soft); color: var(--ep-primary-dark); }
.ep-nav .ep-btn { color: #fff; }
@media (max-width: 640px) {
    .ep-nav a:not(.ep-btn) { display: none; }
    .ep-brand__name { font-size: 1rem; }
}

/* ---- buttons -------------------------------------------------------- */
.ep-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid transparent; background: var(--ep-primary); color: #fff !important; font-weight: 700; font-size: .95rem; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; box-shadow: 0 8px 18px rgba(209, 53, 143, .25); }
.ep-btn:hover { background: var(--ep-primary-dark); transform: translateY(-1px); }
.ep-btn:active { transform: translateY(0); }
.ep-btn:disabled, .ep-btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.ep-btn--ghost { background: transparent; color: var(--ep-primary-dark) !important; border-color: var(--ep-line); box-shadow: none; }
.ep-btn--ghost:hover { background: var(--ep-primary-soft); }
.ep-btn--light { background: #fff; color: var(--ep-primary-dark) !important; box-shadow: var(--ep-shadow-sm); }
.ep-btn--light:hover { background: var(--ep-primary-soft); }
.ep-btn--danger { background: var(--ep-bad); box-shadow: none; }
.ep-btn--danger:hover { background: #932d24; }
.ep-btn--sm { min-height: 36px; padding: 6px 14px; font-size: .85rem; }
.ep-btn--block { width: 100%; }
.ep-btn--wa { background: #1fa855; box-shadow: 0 8px 18px rgba(31, 168, 85, .25); }
.ep-btn--wa:hover { background: #178a45; }

/* ---- hero & sections (landing) --------------------------------------- */
.ep-hero { position: relative; overflow: hidden; padding: 60px 0 8px; text-align: center; isolation: isolate; }
.ep-hero::before {
    content: ''; position: absolute; inset: -12%; z-index: -1;
    background:
        radial-gradient(ellipse 70% 55% at 14% -8%, rgba(209, 53, 143, .16), transparent 58%),
        radial-gradient(ellipse 62% 48% at 92% 4%, rgba(201, 162, 75, .16), transparent 55%),
        radial-gradient(ellipse 55% 42% at 50% 108%, rgba(209, 53, 143, .10), transparent 62%),
        linear-gradient(165deg, #fff 0%, var(--ep-bg) 55%, #fff9fc 100%);
    animation: ep-glow-in 1s ease-out both;
}
@keyframes ep-glow-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes ep-rise-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.ep-hero__mark { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(180deg, #fff, var(--ep-primary-soft)); border: 1px solid var(--ep-line); box-shadow: var(--ep-shadow); color: var(--ep-primary-dark); font-size: 26px; animation: ep-rise-in .5s ease-out both; }
.ep-hero__badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: #fff; border: 1px solid var(--ep-line); border-radius: 999px; font-size: .82rem; font-weight: 600; color: var(--ep-primary-dark); box-shadow: var(--ep-shadow-sm); }
.ep-hero h1 { font-family: var(--ep-display); font-weight: 800; font-size: clamp(2.1rem, 6vw, 3.4rem); line-height: 1.1; letter-spacing: -.03em; margin: 18px auto 14px; max-width: 18ch; animation: ep-rise-in .55s ease-out .05s both; }
.ep-hero h1 em { font-style: normal; color: var(--ep-primary); }
.ep-hero p { max-width: 52ch; margin: 0 auto 30px; color: var(--ep-muted); font-size: 1.05rem; animation: ep-rise-in .55s ease-out .1s both; }
.ep-hero__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.ep-hero__facts { display: flex; flex-wrap: wrap; gap: 10px 22px; justify-content: center; margin-top: 26px; color: var(--ep-muted); font-size: .9rem; }
.ep-hero__facts span::before { content: '✓'; color: var(--ep-ok); font-weight: 800; margin-right: 6px; }

/* quick links (pill cards under the hero, tap-first navigation) */
.ep-quicklinks { position: relative; width: min(460px, 100%); margin: 0 auto; padding: 4px 0 40px; display: grid; gap: 10px; }
.ep-qlink { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 60px; padding: 12px 16px 12px 12px; border-radius: 18px; background: var(--ep-surface); border: 1px solid var(--ep-line); color: var(--ep-ink) !important; text-decoration: none; box-shadow: var(--ep-shadow-sm); transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; animation: ep-rise-in .4s ease-out both; animation-delay: calc(var(--i, 0) * 70ms + .12s); }
.ep-qlink:hover { transform: translateY(-2px); border-color: #eec0dd; box-shadow: var(--ep-shadow); }
.ep-qlink:active { transform: scale(.985); }
button.ep-qlink { appearance: none; font: inherit; text-align: left; cursor: pointer; }
.ep-qlink__icon { flex: 0 0 40px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--ep-primary-soft); border: 1px solid var(--ep-line); color: var(--ep-primary-dark); }
.ep-qlink__icon svg { width: 21px; height: 21px; }
.ep-qlink--ig { background: linear-gradient(45deg, #f9ce34, #ee2a7b 46%, #6228d7); border-color: transparent; color: #fff !important; }
.ep-qlink--ig:hover { border-color: transparent; }
.ep-qlink--ig .ep-qlink__icon { background: rgba(255, 255, 255, .22); border-color: transparent; color: #fff; }
.ep-qlink--ig .ep-qlink__label small, .ep-qlink--ig .ep-qlink__arrow { color: #fff; }
.ep-qlink__label { flex: 1; min-width: 0; font-size: .95rem; font-weight: 700; }
.ep-qlink__label small { display: block; margin-top: 1px; font-weight: 500; color: var(--ep-muted); font-size: .78rem; }
.ep-qlink__arrow { flex: 0 0 auto; color: var(--ep-muted); font-size: 1.3rem; line-height: 1; }

.ep-section { padding: 44px 0; }
.ep-section__head { text-align: center; margin-bottom: 26px; }
.ep-section__head h2 { font-family: var(--ep-display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.02em; }
.ep-section__head p { color: var(--ep-muted); margin: 6px 0 0; }
.ep-groups { display: grid; gap: 28px; }
.ep-group__title { font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ep-primary); margin: 0 0 12px; }
.ep-tiles { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.ep-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: var(--ep-radius); background: var(--ep-surface); border: 1px solid var(--ep-line); text-decoration: none; color: var(--ep-ink) !important; box-shadow: var(--ep-shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.ep-tile:hover { transform: translateY(-3px); box-shadow: var(--ep-shadow); border-color: #eec0dd; }
.ep-tile__dot { width: 12px; height: 12px; border-radius: 50%; }
.ep-tile__top { display: flex; align-items: center; gap: 10px; }
.ep-tile h3 { font-size: 1.02rem; font-weight: 700; }
.ep-tile p { margin: 0; color: var(--ep-muted); font-size: .9rem; }
.ep-tile__meta { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; font-size: .85rem; color: var(--ep-muted); font-weight: 600; }
.ep-tile__price { color: var(--ep-primary-dark); }

.ep-feature-band { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.ep-feature { background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 22px; box-shadow: var(--ep-shadow-sm); }
.ep-feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.ep-feature p { margin: 0 0 14px; color: var(--ep-muted); font-size: .92rem; }
.ep-feature__icon { width: 44px; height: 44px; border-radius: 14px; background: var(--ep-primary-soft); color: var(--ep-primary); display: grid; place-items: center; margin-bottom: 12px; font-size: 1.3rem; }

.ep-contact { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ep-contact__item { background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); padding: 18px; }
.ep-contact__item small { display: block; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--ep-muted); font-size: .72rem; margin-bottom: 6px; }
.ep-contact__item div, .ep-contact__item a { font-weight: 600; white-space: pre-line; overflow-wrap: anywhere; }

.ep-footer { border-top: 1px solid var(--ep-line); padding: 26px 0 34px; margin-top: 34px; text-align: center; color: var(--ep-muted); font-size: .88rem; }
.ep-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; margin-bottom: 10px; }
.ep-footer a { color: var(--ep-muted); text-decoration: none; font-weight: 600; }
.ep-footer a:hover { color: var(--ep-primary); }

/* ---- alerts, toast --------------------------------------------------- */
.ep-alert { padding: 14px 16px; border-radius: var(--ep-radius-sm); border: 1px solid var(--ep-line); background: #fff; font-size: .92rem; }
.ep-alert--info { background: var(--ep-primary-soft); border-color: #f7cde5; color: var(--ep-primary-dark); }
.ep-alert--warn { background: var(--ep-warn-soft); border-color: #f0dcae; color: #7a5210; }
.ep-alert--bad { background: var(--ep-bad-soft); border-color: #f0c5c0; color: #8a2a21; }
.ep-alert--ok { background: var(--ep-ok-soft); border-color: #bfe3cf; color: #1f6d43; }
.ep-alert a { font-weight: 700; }
.ep-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 200; max-width: min(92vw, 460px); padding: 13px 18px; border-radius: 12px; background: var(--ep-ink); color: #fff; font-weight: 600; font-size: .92rem; box-shadow: 0 14px 34px rgba(0, 0, 0, .25); }
.ep-toast--bad { background: var(--ep-bad); }
.ep-toast--ok { background: var(--ep-ok); }

/* ---- wizard ---------------------------------------------------------- */
.ep-wizard { padding-top: 28px; padding-bottom: 90px; }
.ep-wizard__head { margin-bottom: 22px; }
.ep-wizard__head h1 { font-family: var(--ep-display); font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.02em; }
.ep-wizard__head p { color: var(--ep-muted); margin: 6px 0 0; }
.ep-wizard__grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.ep-steps { display: grid; gap: 14px; min-width: 0; }

.ep-step { background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow-sm); transition: opacity .2s, border-color .2s; }
.ep-step__head { display: flex; align-items: center; gap: 12px; padding: 16px 18px; }
.ep-step__num { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ep-primary-soft); color: var(--ep-primary-dark); display: grid; place-items: center; font-weight: 800; font-size: .9rem; }
.ep-step__title { font-size: 1.05rem; font-weight: 700; flex: 1; min-width: 0; }
.ep-step__value { color: var(--ep-muted); font-size: .9rem; font-weight: 500; display: block; margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ep-step__edit { border: 0; background: none; color: var(--ep-primary); font-weight: 700; font-size: .85rem; cursor: pointer; padding: 6px 8px; }
.ep-step__body { padding: 0 18px 18px; }
.ep-step__hint { margin: 0; padding: 0 18px 16px; color: var(--ep-muted); font-size: .9rem; }
.ep-step.is-active { border-color: #f0b3d8; box-shadow: var(--ep-shadow); }
.ep-step.is-active .ep-step__num { background: var(--ep-primary); color: #fff; }
.ep-step.is-locked { opacity: .55; }
.ep-step.is-locked .ep-step__body, .ep-step.is-done .ep-step__body, .ep-step.is-done .ep-step__hint, .ep-step.is-active .ep-step__hint { display: none; }
.ep-step.is-done .ep-step__num { background: var(--ep-ok); color: #fff; }
.ep-step.is-done .ep-step__num::before { content: '✓'; }
.ep-step.is-done .ep-step__num span { display: none; }
.ep-step:not(.is-done) .ep-step__edit { display: none; }

/* service list */
.ep-cat { margin-top: 14px; }
.ep-cat:first-child { margin-top: 0; }
.ep-cat__title { font-size: .74rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ep-primary); margin: 0 0 8px; }
.ep-options { display: grid; gap: 8px; }
.ep-option { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 13px 14px; background: #fff; border: 1.5px solid var(--ep-line); border-radius: 12px; cursor: pointer; color: var(--ep-ink); transition: border-color .15s, background .15s, transform .1s, box-shadow .15s; }
.ep-option:hover { border-color: #f0b3d8; background: #fffafd; box-shadow: var(--ep-shadow-sm); }
.ep-option:active { transform: scale(.995); }
.ep-option.is-selected { border-color: var(--ep-primary); background: var(--ep-primary-soft); }
.ep-option__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--ep-line); display: grid; place-items: center; font-size: .75rem; color: transparent; }
.ep-option.is-selected .ep-option__mark { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }
.ep-option__main { flex: 1; min-width: 0; }
.ep-option__title { display: block; font-weight: 700; font-size: .98rem; }
.ep-option__desc { display: block; color: var(--ep-muted); font-size: .84rem; margin-top: 2px; }
.ep-option__side { flex: none; text-align: right; font-weight: 700; font-size: .9rem; color: var(--ep-primary-dark); line-height: 1.25; }
.ep-option__side small { display: block; color: var(--ep-muted); font-weight: 600; font-size: .75rem; }

/* service rows: a touch more compact, colored accent dot, price as a small badge */
.ep-option--service { padding: 11px 13px; gap: 11px; }
.ep-option__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(0, 0, 0, .04); }
.ep-option--service .ep-option__title { font-size: .95rem; }
.ep-option--service .ep-option__desc { font-size: .82rem; }
.ep-option__price { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--ep-primary-soft); color: var(--ep-primary-dark); font-size: .82rem; font-weight: 800; white-space: nowrap; }
.ep-option--service .ep-option__side small { margin-top: 4px; }
.ep-option--service.is-selected .ep-option__dot { box-shadow: 0 0 0 3px rgba(255, 255, 255, .7); }
.ep-avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 1rem; }

/* calendar */
.ep-cal { max-width: 420px; }
.ep-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ep-cal__title { font-weight: 800; font-size: 1.05rem; }
.ep-cal__nav { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--ep-line); background: #fff; cursor: pointer; font-size: 1.1rem; color: var(--ep-ink); }
.ep-cal__nav:disabled { opacity: .35; cursor: not-allowed; }
.ep-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.ep-cal__dow { text-align: center; font-size: .72rem; font-weight: 800; color: var(--ep-muted); text-transform: uppercase; padding: 4px 0; }
.ep-cal__day { aspect-ratio: 1; border-radius: 12px; border: 1.5px solid transparent; background: #fdf3f9; color: var(--ep-ink); font-weight: 700; font-size: .95rem; cursor: pointer; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.ep-cal__day:hover:not(:disabled) { background: var(--ep-primary-soft); border-color: #f0b3d8; }
.ep-cal__day.is-today { border-color: #f0b3d8; }
.ep-cal__day.is-selected { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }
.ep-cal__day.is-full { text-decoration: line-through; color: #b6a4ab; background: #f4ecee; }
.ep-cal__day:disabled { cursor: not-allowed; }
.ep-cal__day.is-closed { background: transparent; color: #cdbec4; font-weight: 500; }
.ep-cal__empty { visibility: hidden; }
.ep-cal__legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: .78rem; color: var(--ep-muted); }
.ep-cal__legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; vertical-align: -1px; }

/* time slots */
.ep-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.ep-slot { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--ep-line); background: #fff; font-weight: 700; font-size: .95rem; color: var(--ep-ink); cursor: pointer; transition: background .12s, border-color .12s; }
.ep-slot:hover:not(:disabled) { border-color: var(--ep-primary); background: var(--ep-primary-soft); }
.ep-slot.is-selected { background: var(--ep-primary); border-color: var(--ep-primary); color: #fff; }
.ep-slot:disabled { background: #f4ecee; color: #b6a4ab; text-decoration: line-through; cursor: not-allowed; }
.ep-slots__tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ep-slots__date { font-weight: 700; }
.ep-empty { padding: 18px; text-align: center; color: var(--ep-muted); background: #fdf3f9; border-radius: 12px; font-size: .92rem; }
.ep-spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--ep-primary-soft); border-top-color: var(--ep-primary); border-radius: 50%; animation: ep-spin .8s linear infinite; vertical-align: -3px; }
@keyframes ep-spin { to { transform: rotate(360deg); } }

/* form */
.ep-form { display: grid; gap: 14px; }
.ep-field { display: grid; gap: 6px; }
.ep-field label { font-weight: 700; font-size: .88rem; }
.ep-field label small { font-weight: 500; color: var(--ep-muted); }
.ep-input { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1.5px solid var(--ep-line); background: #fff; font-size: 1rem; color: var(--ep-ink); transition: border-color .12s, box-shadow .12s; }
.ep-input:focus { outline: none; border-color: var(--ep-primary); box-shadow: 0 0 0 4px rgba(209, 53, 143, .12); }
.ep-input.is-invalid { border-color: var(--ep-bad); }
textarea.ep-input { min-height: 84px; resize: vertical; }
.ep-phone { display: flex; }
.ep-phone__prefix { display: grid; place-items: center; padding: 0 12px; background: #fdf3f9; border: 1.5px solid var(--ep-line); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 700; color: var(--ep-muted); }
.ep-phone .ep-input { border-radius: 0 12px 12px 0; }
.ep-field__error { color: var(--ep-bad); font-size: .82rem; font-weight: 600; min-height: 0; }
.ep-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; }
.ep-check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--ep-primary); flex: none; }
.ep-hp { position: absolute; left: -5000px; opacity: 0; pointer-events: none; }
.ep-link-btn { border: 0; background: none; padding: 0; color: var(--ep-primary); font-weight: 700; text-decoration: underline; cursor: pointer; font-size: inherit; }

/* summary */
.ep-summary { position: sticky; top: 84px; background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow); overflow: hidden; }
.ep-summary__head { padding: 16px 18px; background: linear-gradient(135deg, var(--ep-primary), var(--ep-primary-dark)); color: #fff; }
.ep-summary__head h2 { font-family: var(--ep-display); font-weight: 800; font-size: 1.15rem; }
.ep-summary__body { padding: 8px 18px; }
.ep-summary__row { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed var(--ep-line); font-size: .92rem; }
.ep-summary__row:last-child { border-bottom: 0; }
.ep-summary__row span { color: var(--ep-muted); }
.ep-summary__row strong { text-align: right; overflow-wrap: anywhere; }
.ep-summary__row.is-empty strong { color: #b6a4ab; font-weight: 500; }
.ep-summary__nail { padding: 12px 18px; background: #fffafd; border-top: 1px solid var(--ep-line); }
.ep-summary__nail-title { display: flex; justify-content: space-between; align-items: center; font-weight: 700; font-size: .9rem; margin-bottom: 8px; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ep-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 8px 3px 3px; background: #fff; border: 1px solid var(--ep-line); border-radius: 999px; font-size: .76rem; font-weight: 600; }
.ep-chip img { width: 20px; height: 26px; border-radius: 6px; object-fit: cover; }
.ep-summary__foot { padding: 14px 18px 18px; }
.ep-summary__note { font-size: .8rem; color: var(--ep-muted); margin: 10px 0 0; text-align: center; }
.ep-summary__price { display: flex; justify-content: space-between; font-weight: 800; padding: 10px 18px; background: var(--ep-primary-soft); }

.ep-mobilebar { display: none; }
@media (max-width: 900px) {
    .ep-wizard__grid { grid-template-columns: 1fr; }
    .ep-summary { position: static; }
    .ep-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--ep-line); box-shadow: 0 -8px 24px rgba(168, 36, 113, .08); }
    .ep-mobilebar__text { min-width: 0; font-size: .84rem; color: var(--ep-muted); line-height: 1.3; }
    .ep-mobilebar__text strong { display: block; color: var(--ep-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* modal */
.ep-modal { position: fixed; inset: 0; z-index: 150; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(43, 31, 37, .55); backdrop-filter: blur(3px); }
.ep-modal.is-open { display: flex; }
.ep-modal__box { width: 100%; max-width: 460px; max-height: 92vh; overflow: auto; background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .28); animation: ep-pop .18s ease-out; }
.ep-modal__box h3 { font-family: var(--ep-display); font-weight: 800; font-size: 1.25rem; margin-bottom: 8px; }
.ep-modal__box p { color: var(--ep-muted); margin: 0 0 12px; font-size: .95rem; }
.ep-modal__actions { display: flex; gap: 10px; margin-top: 18px; }
.ep-modal__actions .ep-btn { flex: 1; }
.ep-modal__list { margin: 12px 0; padding: 12px 14px; background: #fdf3f9; border-radius: 12px; font-size: .92rem; }
.ep-modal__list div { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.ep-modal__list span { color: var(--ep-muted); }
.ep-modal__list strong { text-align: right; }
@keyframes ep-pop { from { transform: translateY(10px) scale(.98); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---- success / manage pages ------------------------------------------ */
.ep-narrow { max-width: 640px; margin: 0 auto; padding: 36px 16px 60px; }
.ep-card { background: var(--ep-surface); border: 1px solid var(--ep-line); border-radius: var(--ep-radius); box-shadow: var(--ep-shadow-sm); padding: 22px; }
.ep-card + .ep-card { margin-top: 16px; }
.ep-success { text-align: center; }
.ep-success__icon { width: 76px; height: 76px; border-radius: 50%; background: var(--ep-ok-soft); color: var(--ep-ok); display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 14px; animation: ep-pop .4s ease-out; }
.ep-success__icon--bad { background: var(--ep-bad-soft); color: var(--ep-bad); }
.ep-success h1 { font-family: var(--ep-display); font-weight: 800; font-size: clamp(1.6rem, 5vw, 2.2rem); letter-spacing: -.02em; }
.ep-success p { color: var(--ep-muted); margin: 8px 0 0; }
.ep-code { display: inline-block; margin-top: 12px; padding: 8px 16px; background: var(--ep-primary-soft); color: var(--ep-primary-dark); font-weight: 800; letter-spacing: .12em; border-radius: 12px; font-size: 1.1rem; }
.ep-detail { margin: 18px 0 0; text-align: left; }
.ep-detail__row { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--ep-line); }
.ep-detail__row:last-child { border-bottom: 0; }
.ep-detail__row span { color: var(--ep-muted); }
.ep-detail__row strong { text-align: right; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.ep-picks { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px; margin-top: 8px; }
.ep-pick { text-align: center; font-size: .72rem; font-weight: 600; }
.ep-pick img { width: 100%; aspect-ratio: 2 / 5; object-fit: cover; border-radius: 12px; border: 1px solid var(--ep-line); }
.ep-picks__total { margin-top: 10px; text-align: right; font-weight: 800; }

/* ---- Nail Art calculator --------------------------------------------- */
.nail-page { padding-top: 28px; padding-bottom: 70px; }
.nail-hero { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.nail-hero h1 { font-family: var(--ep-display); font-weight: 800; font-size: clamp(1.7rem, 4.5vw, 2.4rem); letter-spacing: -.02em; }
.nail-hero p { margin: 6px 0 0; color: var(--ep-muted); }
.nail-hero__actions { display: flex; gap: 10px; flex-wrap: wrap; }
.nail-stage { display: grid; grid-template-columns: minmax(0, 1fr) 230px; gap: 20px; align-items: center; padding: 22px; border: 1px solid var(--ep-line); border-radius: 22px; background: #fff; box-shadow: var(--ep-shadow); }
.nail-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 28px; touch-action: none; }
.nail-hand { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.nail-hand__title { grid-column: 1 / -1; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ep-muted); }
.nail-slot { position: relative; text-align: center; -webkit-user-select: none; user-select: none; }
.nail-slot__index { display: block; font-size: 11px; color: #a89aa0; margin-bottom: 6px; font-weight: 700; }
.nail-slot__hand { position: absolute; }
.nail-shape { position: relative; width: 100%; max-width: 64px; margin: 0 auto; aspect-ratio: 2 / 5; overflow: hidden;
    -webkit-mask-image: var(--nail-mask); mask-image: var(--nail-mask); -webkit-mask-size: 100% 100%; mask-size: 100% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
.nail-slot__body { background: linear-gradient(180deg, #f3e3e8, #ead2da); filter: drop-shadow(0 8px 10px rgba(168, 36, 113, .18)); transition: transform .2s; }
.nail-slot.is-filled .nail-slot__body { background: none; transform: scale(1.03); }
.nail-slot.is-over .nail-slot__body { outline: 3px solid rgba(209, 53, 143, .45); outline-offset: 2px; border-radius: 30%; }
.nail-slot.is-flash .nail-slot__body { transform: scale(1.08); }
.nail-slot.is-dragging .nail-slot__body img, .nail-slot.is-dragging .nail-slot__clear { opacity: 0; }
.nail-slot__body img, .nail-card__art img, .nail-ghost__art img { width: 100%; height: 100%; object-fit: contain; object-position: center; pointer-events: none; -webkit-user-drag: none; transform-origin: center; }
.nail-slot__body img { animation: nail-pop .22s ease; }
.nail-slot__empty { position: absolute; inset: 0; display: grid; place-items: center; color: #b58b9a; font-size: 1.2rem; }
.nail-slot__clear { position: absolute; top: 18px; right: -3px; width: 20px; height: 20px; border: 0; border-radius: 50%; background: rgba(43, 31, 37, .78); color: #fff; font-size: 13px; line-height: 20px; cursor: pointer; opacity: 0; transition: opacity .15s; padding: 0; }
.nail-slot:hover .nail-slot__clear, .nail-slot.is-filled .nail-slot__clear { opacity: 1; }
.nail-slot__label { display: block; margin-top: 4px; font-size: 10px; line-height: 1.2; color: var(--ep-muted); font-weight: 600; min-height: 24px; overflow: hidden; }
.nail-total { text-align: right; }
.nail-total span { display: block; font-size: .8rem; color: var(--ep-muted); font-weight: 700; }
.nail-total strong { display: block; margin-top: 2px; font-family: var(--ep-display); font-weight: 800; font-size: 2.3rem; letter-spacing: -.03em; line-height: 1.1; color: var(--ep-primary-dark); }
.nail-total em { display: block; margin-top: 4px; font-style: normal; font-size: .8rem; color: var(--ep-muted); }
.nail-total.is-pulse strong { animation: nail-pulse .28s ease; }
.nail-hint { margin: 14px 0 18px; color: var(--ep-muted); font-size: .85rem; }
.nail-toolbar { display: flex; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; flex-wrap: wrap; }
.nail-cats { display: flex; gap: 6px; overflow-x: auto; min-width: 0; padding-bottom: 2px; scrollbar-width: none; }
.nail-cats::-webkit-scrollbar { display: none; }
.nail-cats button { flex: none; border: 0; background: transparent; color: var(--ep-muted); font-weight: 700; font-size: .85rem; padding: 7px 13px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nail-cats button.is-on { background: var(--ep-primary); color: #fff; }
.nail-search input { width: 240px; max-width: 100%; }
.nail-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.nail-card { display: flex; flex-direction: column; align-items: center; min-width: 0; border: 0; background: transparent; padding: 0; cursor: pointer; text-align: center; color: var(--ep-ink); touch-action: manipulation; }
.nail-card__art { width: 78%; max-width: 76px; aspect-ratio: 2 / 5; margin: 0 auto 6px; filter: drop-shadow(0 8px 10px rgba(168, 36, 113, .14)); transition: transform .2s; }
.nail-card:hover .nail-card__art { transform: translateY(-3px); }
.nail-card.is-picked .nail-card__art { filter: drop-shadow(0 0 4px rgba(201, 162, 75, .9)); }
.nail-card__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .75rem; font-weight: 700; line-height: 1.2; }
.nail-card__price { margin-top: 4px; padding: 2px 10px; border: 1px solid var(--ep-line); border-radius: 999px; background: #fff; color: var(--ep-primary-dark); font-size: .75rem; font-weight: 700; }
.nail-empty { text-align: center; padding: 30px; color: var(--ep-muted); }
.nail-more { text-align: center; margin: 22px 0 0; }
.nail-ghost { position: fixed; left: 0; top: 0; z-index: 180; pointer-events: none; opacity: 0; will-change: transform; filter: drop-shadow(0 12px 18px rgba(43, 31, 37, .3)); }
.nail-ghost.is-on { opacity: 1; }
.nail-ghost__art { width: 100%; height: 100%; }
.nail-selected { margin-top: 18px; display: none; }
.nail-selected.is-on { display: block; }
.nail-selected h3 { font-size: .95rem; margin-bottom: 8px; }
.nail-selected ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: .88rem; }
.nail-selected li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px dashed var(--ep-line); }
@keyframes nail-pop { from { transform: scale(.9); opacity: .4; } to { opacity: 1; } }
@keyframes nail-pulse { 0% { transform: scale(1); } 45% { transform: scale(1.06); } 100% { transform: scale(1); } }
@media (max-width: 900px) {
    .nail-stage { grid-template-columns: 1fr; }
    .nail-total { text-align: left; }
    .nail-row { grid-template-columns: 1fr; }
    .nail-search input { width: 100%; }
    .nail-search { flex: 1 1 100%; }
}
@media (max-width: 480px) {
    .nail-stage { padding: 14px; }
    .nail-grid { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 12px 6px; }
    .nail-slot__clear { opacity: 1; }
}

/* ---- misc ------------------------------------------------------------ */
.ep-maintenance { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 30px; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
