/* ==========================================================
   Livreson — inner pages, forms, tracking timeline, zones
   (extends front.css, same tokens)
   ========================================================== */

/* ---------- Skip link / focus ---------- */
.skip-link { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 300; padding: 10px 16px; border-radius: 10px; background: var(--ink); color: #fff; transition: top .2s; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid rgba(240,124,30,.55); outline-offset: 2px; border-radius: 6px; }

/* ---------- Header: account button ---------- */
.header__account { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; color: var(--ink-2); box-shadow: inset 0 0 0 1.5px var(--line); transition: box-shadow .3s, color .3s, transform .3s var(--ease); }
.header__account:hover { box-shadow: inset 0 0 0 1.5px var(--orange); color: var(--orange-dark); transform: translateY(-2px); }
.header__account .ic { width: 18px; height: 18px; }
.nav { gap: 26px; }
@media (max-width: 1180px) { .nav { gap: 18px; } .nav__link { font-size: .9rem; } .header__account span { display: none; } }
@media (max-width: 900px) { .header__account { display: none; } .nav__link--mobile { display: block !important; } }
.nav__link--mobile { display: none !important; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; overflow: hidden; padding: calc(var(--header-h) + 60px) 0 70px; background: linear-gradient(160deg, var(--bg) 0%, var(--bg-alt) 100%); }
.page-hero::before { content: ""; position: absolute; inset-inline-end: -10%; top: -30%; width: 560px; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 40%, #FCDDBC, #F9C895 60%, transparent 70%); opacity: .55; animation: blobMorph 14s ease-in-out infinite; }
.page-hero .container { position: relative; }
.page-hero__title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 800; letter-spacing: -.03em; margin: 18px 0 14px; max-width: 760px; }
.page-hero__title em { font-style: normal; color: var(--orange); }
.page-hero__text { font-size: 1.1rem; color: var(--ink-2); max-width: 620px; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: .85rem; color: var(--muted); }
.breadcrumb a:hover { color: var(--orange-dark); }
.breadcrumb span::before { content: "/"; margin-inline-end: 8px; opacity: .5; }

/* ---------- Generic cards & grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  position: relative; padding: 30px; border-radius: var(--radius-lg); background: var(--card);
  border: 1.5px solid var(--line); transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .4s;
}
.card--hover:hover { transform: translateY(-8px); box-shadow: var(--shadow); border-color: var(--orange-soft); }
.card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); }
.card__icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--orange-soft); color: var(--orange-dark); transition: transform .5s var(--ease), background .3s, color .3s; }
.card__icon .ic { width: 26px; height: 26px; }
.card--hover:hover .card__icon { transform: rotate(-10deg) scale(1.08); background: var(--orange); color: #fff; }
.checklist { display: grid; gap: 10px; margin-top: 16px; }
.checklist li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); font-size: .95rem; }
.checklist .ic { width: 18px; height: 18px; color: var(--orange); margin-top: 3px; }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); counter-increment: step; transition: transform .45s var(--ease), box-shadow .45s var(--ease); }
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.step::before { content: counter(step, decimal-leading-zero); display: block; font-size: 2.4rem; font-weight: 800; color: var(--orange-soft); line-height: 1; margin-bottom: 14px; transition: color .4s; }
.step:hover::before { color: var(--orange); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { font-size: .9rem; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 46px 52px; border-radius: var(--radius-lg); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-end: -80px; bottom: -120px; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(240,124,30,.45), transparent 65%); transition: transform .8s var(--ease); }
.cta-band:hover::after { transform: scale(1.25); }
.cta-band h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -.02em; }
.cta-band p { color: #cfc6bd; margin-top: 8px; }
.cta-band .btn { position: relative; z-index: 1; flex-shrink: 0; }

/* ---------- Forms ---------- */
.form-card { padding: 36px; border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px 20px; }
.form-grid .span-2 { grid-column: 1 / -1; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 7px; color: var(--ink-2); }
.field.is-required > label::after { content: " *"; color: var(--orange); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: var(--bg);
  outline: 0; transition: border-color .25s, box-shadow .25s, background .25s;
}
.field textarea { resize: vertical; min-height: 130px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--orange); background: #fff; box-shadow: 0 0 0 4px var(--orange-soft); }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: #D64545; background: #FFF6F5; }
.field__errors { margin-top: 6px; color: #C2410C; font-size: .84rem; }
.field__help { display: block; margin-top: 6px; color: var(--muted); font-size: .82rem; }
.field--check .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; cursor: pointer; }
.field--check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-actions { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Flash messages ---------- */
.flash { display: flex; gap: 12px; align-items: flex-start; padding: 16px 20px; border-radius: 16px; margin-bottom: 22px; font-weight: 500; animation: rise .6s var(--ease) both; }
.flash .ic { margin-top: 2px; }
.flash--success { background: #E8F6EE; color: #1F6B3E; }
.flash--error { background: #FDECEC; color: #A12F2F; }
.flash--info { background: var(--orange-softer); color: var(--orange-dark); }

/* ---------- Tracking page ---------- */
.track-page { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: start; }
.track-page > * { min-width: 0; }
.track-result__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 18px; }
.track-result__code { font-size: 1.5rem; font-weight: 800; letter-spacing: .02em; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700; }
.pill i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pill--slate { background: #EEF1F5; color: #475569; } .pill--blue { background: #E7EFFD; color: #2459B8; }
.pill--violet { background: #EFEAFB; color: #5B3FB0; } .pill--teal { background: #E2F5F2; color: #0B7A6D; }
.pill--orange { background: var(--orange-soft); color: var(--orange-dark); } .pill--green { background: #E3F4EA; color: #1F7A45; }
.pill--amber { background: #FBF0D9; color: #94660A; } .pill--red { background: #FBE6E6; color: #B23434; }
.pill--gray { background: #EFEBE7; color: #6E655C; }
.pill--orange i, .pill--blue i { animation: blink 1.4s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .3; } }

.timeline { position: relative; margin-top: 8px; padding-inline-start: 34px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 11px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding: 0 0 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline__dot { position: absolute; inset-inline-start: -34px; top: 2px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line); color: var(--muted); }
.timeline__dot .ic { width: 12px; height: 12px; stroke-width: 3; }
.timeline li.is-current .timeline__dot { border-color: var(--orange); background: var(--orange); color: #fff; box-shadow: 0 0 0 6px var(--orange-soft); }
.timeline li.is-done .timeline__dot { border-color: var(--orange); color: var(--orange); }
.timeline strong { display: block; font-size: .98rem; }
.timeline time { display: block; font-size: .8rem; color: var(--muted); margin-top: 2px; }
.timeline p { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.js .timeline li { opacity: 0; transform: translateX(-14px); transition: opacity .6s var(--ease), transform .6s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
[dir="rtl"] .js .timeline li { transform: translateX(14px); }
.js .timeline.is-visible li { opacity: 1; transform: none; }
.empty-state { text-align: center; padding: 50px 24px; color: var(--muted); }
.empty-state .ic { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--orange); }

/* ---------- Zones ---------- */
.zone-legend { display: flex; flex-wrap: wrap; gap: 18px; margin-bottom: 26px; font-size: .9rem; color: var(--ink-2); }
.zone-legend span { display: inline-flex; align-items: center; gap: 8px; }
.zone-legend i { width: 14px; height: 14px; border-radius: 4px; }
.zone-search { max-width: 420px; margin-bottom: 26px; }
.zones-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.zone { padding: 20px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .3s, opacity .3s; }
.zone:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.zone h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-size: 1.05rem; }
.zone h3 small { font-family: "Cairo", sans-serif; font-weight: 600; color: var(--muted); font-size: .9rem; }
.zone p { margin-top: 10px; font-size: .84rem; color: var(--muted); }
.zone__tag { display: inline-block; margin-top: 12px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.zone--own { border-color: var(--orange); background: linear-gradient(160deg, #fff, var(--orange-softer)); }
.zone--own .zone__tag { background: var(--orange); color: #fff; }
.zone--partner .zone__tag { background: #E2F5F2; color: #0B7A6D; }
.zone--none .zone__tag { background: #EFEBE7; color: var(--muted); }
.zone.is-hidden { display: none; }

/* ---------- Pricing extras ---------- */
.price-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.price-table th, .price-table td { padding: 16px 20px; text-align: start; border-bottom: 1px solid var(--line); }
.price-table th { background: var(--orange-softer); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); }
.price-table tr:last-child td { border-bottom: 0; }
.price-table td:last-child { font-weight: 700; white-space: nowrap; }
.price-table tbody tr { transition: background .25s; }
.price-table tbody tr:hover { background: var(--bg); }
.faq { display: grid; gap: 12px; }
.faq details { padding: 18px 22px; border-radius: var(--radius); background: #fff; border: 1.5px solid var(--line); transition: border-color .3s, box-shadow .3s; }
.faq details[open] { border-color: var(--orange); box-shadow: var(--shadow-sm); }
.faq summary { cursor: pointer; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--orange); font-size: 1.4rem; line-height: 1; transition: transform .35s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { margin-top: 12px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-info { display: grid; gap: 16px; }
.contact-item { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); transition: transform .4s var(--ease); }
.contact-item:hover { transform: translateX(6px); }
[dir="rtl"] .contact-item:hover { transform: translateX(-6px); }
.contact-item .icon-circle { width: 48px; height: 48px; }
.contact-item strong { display: block; }
.contact-item span, .contact-item a { color: var(--muted); font-size: .92rem; }
.contact-item a:hover { color: var(--orange-dark); }

.prose { max-width: 780px; }
.prose h2 { font-size: 1.3rem; margin: 30px 0 10px; }
.prose p, .prose li { color: var(--ink-2); margin-bottom: 10px; }
.prose ul { list-style: disc; padding-inline-start: 22px; }

/* ---------- Footer CTA ---------- */
.footer__cta { display: inline-flex; margin-top: 16px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .zones-grid { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .grid-3, .grid-2, .track-page { grid-template-columns: 1fr; }
  .zones-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .page-hero { padding-top: calc(var(--header-h) + 40px); }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px 18px; }
  .steps, .zones-grid { grid-template-columns: 1fr; }
  .price-table th, .price-table td { padding: 12px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .timeline li { opacity: 1; transform: none; }
  .page-hero::before { animation: none; }
}
a.marquee { display: block; }

/* ---------- Error pages ---------- */
.error-page { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 14px; padding: calc(var(--header-h, 80px) + 40px) 20px 80px; }
.error-page__code { font-size: clamp(5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; background: linear-gradient(135deg, #F07C1E, #FFB066); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .8s var(--ease) both; }
.error-page h1 { font-size: 1.8rem; }
.error-page p { color: var(--muted); max-width: 460px; }
.error-page__actions { display: flex; gap: 12px; margin-top: 10px; }
.error-page__trace { text-align: left; max-width: 90vw; overflow: auto; font-size: .75rem; background: #fff; padding: 16px; border-radius: 12px; }
.flashes .flash__close { margin-inline-start: auto; background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
