:root {
    --bg: #0a0612;
    --bg-2: #0f0a1e;
    --surface: #1a1130;
    --surface-2: #251943;
    --border: #34225e;
    --border-strong: #4a2f7d;
    --text: #f5f0ff;
    --muted: #a695c4;
    --accent: #9b5cff;
    --accent-2: #c084ff;
    --accent-dark: #7a3fd9;
    --glow: 0 0 30px rgba(155, 92, 255, 0.35);
    --success: #66d39a;
    --error: #ff6b8a;
    --radius: 14px;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
    line-height: 1.5;
    min-height: 100%;
}

body {
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(155, 92, 255, 0.18), transparent 60%),
        radial-gradient(800px 400px at -10% 30%, rgba(192, 132, 255, 0.10), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

img, svg, video { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: var(--accent); color: #fff; }

/* TOPBAR */
.topbar {
    position: sticky; top: 0; z-index: 50;
    display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px;
    justify-content: space-between;
    padding: 14px 18px;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
    direction: ltr; /* drapeaux lisibles même si la page est RTL (arabe) */
}
.brand { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; min-width: 0; }
.topbar-end {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 10px 12px;
    flex: 1 1 auto;
    min-width: 0;
}
.contact-tab {
    flex: 0 0 auto;
    padding: 10px 16px;
    border-radius: 12px;
    font-weight: 700;
    background: linear-gradient(135deg, rgba(155, 92, 255, 0.22) 0%, rgba(192, 132, 255, 0.12) 100%);
    border: 1px solid rgba(155, 92, 255, 0.55);
    color: var(--text);
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 0 18px rgba(155, 92, 255, 0.15);
}
.contact-tab:hover {
    border-color: var(--accent-2);
    box-shadow: 0 0 24px rgba(155, 92, 255, 0.35);
}
.contact-tab:active { transform: scale(0.97); }
.contact-tab:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}

.lang-switch {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    max-width: min(620px, 100%);
    flex: 1 1 240px;
    padding: 4px 0;
}
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.lang-flag {
    flex: 0 0 auto;
    position: relative;
    display: grid;
    place-items: center;
    min-width: 52px;
    height: 48px;
    padding: 6px 10px;
    text-decoration: none;
    border-radius: 12px;
    border: 2px solid rgba(155, 92, 255, 0.55);
    background:
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.09), transparent 55%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 2px 12px rgba(0, 0, 0, 0.25);
    transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.lang-flag-img {
    display: block;
    width: 40px;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12) inset;
}
.lang-flag:hover {
    border-color: var(--accent-2);
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.35) inset,
        0 0 22px rgba(155, 92, 255, 0.45),
        0 10px 24px rgba(0, 0, 0, 0.35);
}
.lang-flag.is-current {
    border-color: var(--accent-2);
    background:
        radial-gradient(circle at 50% 0%, rgba(192, 132, 255, 0.28), transparent 60%),
        linear-gradient(180deg, var(--surface-2) 0%, var(--surface) 100%);
    box-shadow:
        0 0 0 1px rgba(192, 132, 255, 0.45) inset,
        0 0 28px rgba(155, 92, 255, 0.55),
        0 10px 28px rgba(0, 0, 0, 0.4);
}
.lang-flag.is-current .lang-flag-img {
    box-shadow:
        0 0 0 2px rgba(192, 132, 255, 0.6),
        0 4px 14px rgba(0, 0, 0, 0.55);
}
.lang-flag:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.cart-btn {
    position: relative;
    flex: 0 0 auto;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 10px 14px;
    border-radius: 12px;
    font-weight: 600;
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.brand-mark {
    display: inline-grid; place-items: center;
    min-width: 38px; height: 38px; padding: 0 10px; border-radius: 10px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff; font-weight: 800; font-size: 12px; letter-spacing: 0.02em;
    box-shadow: var(--glow);
}
.brand h1 {
    font-size: 18px; font-weight: 700; letter-spacing: -0.01em;
    background: linear-gradient(135deg, #fff 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cart-btn:hover { background: var(--surface-2); border-color: var(--accent); }
.cart-btn:active { transform: scale(0.97); }
.cart-count {
    display: inline-grid; place-items: center;
    min-width: 22px; height: 22px; padding: 0 6px;
    margin-left: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 11px; font-size: 12px; font-weight: 700;
    box-shadow: 0 0 12px rgba(155, 92, 255, 0.5);
}

/* HERO */
.hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 28px;
    padding: 32px 18px 36px;
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, transparent 0%, rgba(15, 10, 30, 0.45) 100%);
}
.hero-intro {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
    text-align: center;
}
.hero-title {
    font-size: clamp(28px, 6vw, 44px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 14px;
}
.hero-title .accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.hero-slogan {
    color: var(--muted);
    font-size: clamp(15px, 2.5vw, 17px);
    max-width: 560px;
    margin: 0 auto;
}
.hero-figure {
    margin: 0 auto;
    max-width: 960px;
    width: 100%;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow), 0 0 40px rgba(155, 92, 255, 0.12);
    border: 1px solid var(--border);
}
.hero-photo {
    width: 100%;
    height: auto;
    display: block;
}
.hero-figure--placeholder {
    aspect-ratio: 16 / 10;
    min-height: 180px;
    background:
        radial-gradient(circle at 30% 50%, rgba(155, 92, 255, 0.35), transparent 55%),
        var(--surface);
}

/* CATEGORY NAV */
.cat-nav {
    display: flex; gap: 8px; overflow-x: auto;
    padding: 14px 18px; scrollbar-width: none;
    border-bottom: 1px solid var(--border);
    position: sticky; top: 67px; z-index: 40;
    background: rgba(10, 6, 18, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}
.cat-nav::-webkit-scrollbar { display: none; }
.cat-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 999px;
    color: var(--text); text-decoration: none;
    font-size: 14px; font-weight: 500;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.cat-nav a:hover {
    background: var(--surface-2); border-color: var(--accent); color: var(--accent-2);
}

/* MENU */
.menu { padding: 30px 18px 100px; max-width: 1280px; margin: 0 auto; }
.cat { margin-bottom: 40px; scroll-margin-top: 130px; }

/* Lunar : masqué tant qu’on n’a pas ouvert depuis la navigation */
.cat.cat-defer-reveal:not(.cat-defer-reveal--open) {
    display: none;
}
.cat-title-wrap {
    margin: 0 0 20px;
    font-size: inherit;
    font-weight: inherit;
    line-height: 1;
}
.cat-chip-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
    text-decoration: none;
    border-radius: 999px;
    border: 2px solid var(--accent);
    background: rgba(155, 92, 255, 0.08);
    box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
}
.cat-chip-btn:hover {
    border-color: var(--accent-2);
    background: rgba(155, 92, 255, 0.14);
    box-shadow: var(--glow), 0 0 0 1px rgba(192, 132, 255, 0.25);
}
.cat-chip-btn:active { transform: scale(0.98); }
.cat-chip-btn:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

/* Frozen catalog panel + weight tariffs */
.cat--tiered .cat-panel {
    scroll-margin-top: 110px;
    border-radius: calc(var(--radius) + 2px);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, rgba(155, 92, 255, 0.06) 0%, var(--surface) 52%);
    padding: 20px 18px 22px;
}
.cat-line {
    margin: 0 0 8px;
    font-size: 15px;
    line-height: 1.35;
}
.cat-line-accent { font-weight: 700; color: var(--text); letter-spacing: 0.01em; }
.cat-line-diamond { font-weight: 600; color: var(--accent-2); }
.cat-farm {
    margin-bottom: 16px !important;
    font-weight: 600;
    text-align: center;
    opacity: 0.95;
}

.cat-media {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
    margin: 14px 0 18px;
}
.cat-media-item {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(155, 92, 255, 0.2);
    background: rgba(0, 0, 0, 0.35);
}
.cat-media-item img,
.cat-media-item video {
    display: block;
    width: 100%;
    height: auto;
}
.cat-media-item--video video {
    aspect-ratio: 16 / 10;
    object-fit: cover;
    background: #000;
}

.cat-block {
    margin: 16px 0;
    padding: 14px 14px;
    border-radius: 12px;
    border: 1px solid rgba(155, 92, 255, 0.18);
    background: rgba(0, 0, 0, 0.22);
}
.cat-block-title {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 700;
    color: var(--accent-2);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.cat-variety-list {
    margin: 0;
    padding-inline-start: 22px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
}
.cat-variety-list li { padding: 4px 0; }
.cat-pitch {
    margin: 14px 0 4px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.55;
}
.tariffs-block { margin-bottom: 6px; }
.tariff-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 16px;
    align-items: baseline;
}
.tariff-cell {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 15px;
}
.tariff-cell:nth-last-child(-n+2) { border-bottom-color: transparent; }
.tariff-g { color: var(--text); font-weight: 600; }
.tariff-p {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--accent-2);
    text-align: end;
    unicode-bidi: plaintext;
}

.picker-wrap {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px dashed rgba(155, 92, 255, 0.28);
}
.picker-title {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 700;
}

.picker-variety-block { margin-bottom: 16px; }
.picker-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--muted);
}

.picker-kind-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: stretch;
}

.picker-kind-tab.cat-chip-btn {
    flex: 1 1 auto;
    justify-content: center;
    text-align: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 600;
    min-width: 0;
}

.picker-kind-tab.is-selected,
.picker-kind-tab[aria-pressed="true"] {
    border-color: var(--accent-2);
    background: rgba(155, 92, 255, 0.18);
    box-shadow: var(--glow), 0 0 0 1px rgba(192, 132, 255, 0.28);
}

.picker-kind-tab:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 3px;
}

.picker-kind-tabs[data-disabled="1"] .picker-kind-tab {
    pointer-events: none;
    opacity: 0.45;
}

@media (max-width: 420px) {
    .picker-kind-tab.cat-chip-btn {
        flex: 1 1 calc(50% - 6px);
    }
}

.picker-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
}
.picker-grid--tier {
    grid-template-columns: 1fr;
    max-width: 100%;
}
@media (min-width: 520px) {
    .picker-grid:not(.picker-grid--tier) { grid-template-columns: 1fr 1fr; }
}
.picker-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: var(--muted);
    min-width: 0;
}
.picker-field select {
    appearance: none;
    width: 100%;
    padding: 10px 34px 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath stroke='%23c084ff' stroke-width='1.8' stroke-linecap='round' d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 12px center;
    color: var(--text);
    font-size: 15px;
    cursor: pointer;
}
.picker-field select:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: 2px;
}
.picker-field select:disabled { opacity: 0.45; cursor: not-allowed; }

[dir="rtl"] .picker-field select {
    padding: 10px 12px 10px 34px;
    background-position: left 12px center;
}

.picker-add-btn {
    margin-top: 14px;
    width: 100%;
    padding: 12px 16px;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    color: #fff;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    box-shadow: 0 6px 20px rgba(155, 92, 255, 0.35);
    transition: transform 0.1s ease, box-shadow 0.2s ease, filter 0.15s ease;
}
.picker-add-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    box-shadow: 0 8px 26px rgba(155, 92, 255, 0.45);
}
.picker-add-btn:active:not(:disabled) { transform: scale(0.99); }
.picker-add-btn:disabled { opacity: 0.42; cursor: not-allowed; }

.items { display: grid; gap: 14px; grid-template-columns: 1fr; scroll-margin-top: 100px; }
@media (min-width: 720px)  { .items { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .items { grid-template-columns: repeat(3, 1fr); } }

.item {
    display: flex; gap: 14px; align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 14px;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.item:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(155, 92, 255, 0.15);
}
.item-info { flex: 1; min-width: 0; }
.item h4 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.item .desc { color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.item .price {
    color: var(--accent-2); font-weight: 700; font-size: 15px;
}

.add-btn {
    flex: 0 0 auto;
    width: 38px; height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    font-size: 22px; font-weight: 600; line-height: 1;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(155, 92, 255, 0.4);
}
.add-btn:hover { box-shadow: 0 6px 18px rgba(155, 92, 255, 0.6); }
.add-btn:active { transform: scale(0.92); }

/* CART DRAWER */
.overlay {
    position: fixed; inset: 0;
    background: rgba(0, 0, 0, 0.65);
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s ease;
    z-index: 90;
    backdrop-filter: blur(2px);
}
.overlay.show { opacity: 1; pointer-events: auto; }

.cart {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    background: var(--bg-2);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 100;
    display: flex; flex-direction: column;
}
.cart.show { transform: translateX(0); }
html[dir="rtl"] .item { flex-direction: row-reverse; text-align: right; }
html[dir="rtl"] .cart-row { flex-direction: row-reverse; }
html[dir="rtl"] .cart-row .name { text-align: right; }
html[dir="rtl"] .cart-row .name small { direction: ltr; unicode-bidi: embed; }

html[dir="rtl"] .cart {
    right: auto; left: 0;
    border-left: none;
    border-right: 1px solid var(--border-strong);
    transform: translateX(-100%);
}
html[dir="rtl"] .cart.show { transform: translateX(0); }

.contact-drawer {
    position: fixed; top: 0; right: 0; bottom: 0;
    width: min(420px, 92vw);
    background: var(--bg-2);
    border-left: 1px solid var(--border-strong);
    box-shadow: var(--shadow);
    transform: translateX(100%);
    transition: transform 0.25s ease;
    z-index: 101;
    display: flex; flex-direction: column;
}
.contact-drawer.show { transform: translateX(0); }
html[dir="rtl"] .contact-drawer {
    right: auto; left: 0;
    border-left: none;
    border-right: 1px solid var(--border-strong);
    transform: translateX(-100%);
}
html[dir="rtl"] .contact-drawer.show { transform: translateX(0); }

.drawer-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.drawer-head h3 {
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
    word-break: break-word;
}
.contact-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 18px 28px;
    display: grid;
    gap: 22px;
}
.contact-bl {
    padding: 14px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}
.contact-bl-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--accent-2);
}
.contact-bl p { margin-bottom: 8px; font-size: 14px; word-break: break-word; }
.contact-bl p:last-child { margin-bottom: 0; }
.contact-sub {
    margin-top: 10px !important;
    font-size: 12px !important;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted) !important;
}
.contact-bl a {
    color: var(--accent-2);
    font-weight: 600;
}
.contact-bl a:hover { text-decoration: underline; color: var(--accent); }
.contact-url { word-break: break-all; }
.contact-hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.contact-mono { font-family: ui-monospace, monospace; color: var(--muted); font-size: 13px; }

.cart-head {
    display: flex; justify-content: space-between; align-items: center;
    padding: 18px;
    border-bottom: 1px solid var(--border);
}
.cart-head h3 { font-size: 18px; }
.close-btn {
    font-size: 18px; padding: 6px 12px;
    border-radius: 8px;
    transition: background 0.15s ease;
}
.close-btn:hover { background: var(--surface); }

.cart-body {
    flex: 1;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: max(14px, env(safe-area-inset-bottom, 0px));
}

.cart-items { padding: 14px 18px; overflow: visible; }
.cart-items .empty { color: var(--muted); text-align: center; padding: 30px 0; }

.cart-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}
.cart-row .name { flex: 1; min-width: 0; font-size: 14px; }
.cart-row .name small { color: var(--muted); display: block; font-size: 12px; margin-top: 2px; }
.cart-row .qty { display: flex; align-items: center; gap: 6px; }
.cart-row .qty button {
    width: 28px; height: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-weight: 700;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.cart-row .qty button:hover {
    background: var(--accent); border-color: var(--accent); color: #fff;
}
.cart-row .qty span { min-width: 22px; text-align: center; font-weight: 600; }

.cart-total {
    display: flex; justify-content: space-between; align-items: flex-start;
    padding: 16px 18px;
    border-top: 1px solid var(--border);
    font-size: 17px; font-weight: 700;
}
.cart-total-stack {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    text-align: right;
}
.cart-fiat-line {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
}
.cart-row-fiat {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-top: 3px;
    font-weight: 500;
}
.cart-total-stack span:first-child {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.order-form { padding: 0 18px 18px; display: grid; gap: 10px; }
.order-form input,
.order-form textarea {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text); font: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-form input:focus,
.order-form textarea:focus {
    outline: 0; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.15);
}
.order-form input::placeholder,
.order-form textarea::placeholder { color: var(--muted); }
.order-form textarea { resize: vertical; min-height: 60px; }
.order-form select {
    width: 100%;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    color: var(--text); font: inherit;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.order-form select:focus {
    outline: 0; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.15);
}

.checkout-flow .checkout-step { display: grid; gap: 10px; }
.checkout-flow .checkout-step[hidden] { display: none !important; }
.checkout-step-title {
    font-size: 14px; font-weight: 700; margin: 0 0 4px;
    color: var(--text);
}
.checkout-field { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.checkout-field span { font-weight: 600; }
.checkout-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}
@media (max-width: 380px) {
    .checkout-grid-2 { grid-template-columns: 1fr; }
}
.checkout-crypto-intro {
    font-size: 13px; color: var(--muted); margin: 0 0 6px; line-height: 1.45;
}
.checkout-tx-intro {
    font-size: 13px; color: var(--muted); margin: 0 0 8px; line-height: 1.45;
}
.checkout-quote-banner {
    padding: 11px 13px;
    margin-bottom: 10px;
    font-size: 13px;
    line-height: 1.45;
    border-radius: 11px;
    background: rgba(155, 92, 255, 0.1);
    border: 1px solid rgba(155, 92, 255, 0.28);
    color: var(--text);
    white-space: pre-wrap;
}
.checkout-step--success .checkout-success-msg {
    margin: 12px 0;
    padding: 18px 14px;
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--success);
    border-radius: 12px;
    background: rgba(46, 204, 113, 0.08);
    border: 1px solid rgba(46, 204, 113, 0.35);
}
.crypto-wallet-list { display: grid; gap: 12px; margin-bottom: 4px; }
.crypto-wallet-card {
    display: block;
    width: 100%;
    margin: 0;
    padding: 12px;
    cursor: pointer;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: inherit;
    font: inherit;
    text-align: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.crypto-wallet-card:hover {
    border-color: rgba(155, 92, 255, 0.45);
    background: rgba(155, 92, 255, 0.06);
}
.crypto-wallet-card.is-selected {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.25);
}
.crypto-wallet-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.crypto-wallet-head {
    display: flex; align-items: center; gap: 10px;
    margin-bottom: 6px;
}
.crypto-wallet-logo {
    flex-shrink: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.06);
}
.crypto-wallet-titles { display: grid; gap: 2px; min-width: 0; text-align: left; }
.crypto-wallet-label { font-weight: 700; font-size: 14px; }
.crypto-wallet-net { font-size: 11px; color: var(--muted); }
.crypto-wallet-estimate {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent-2);
    margin-top: 4px;
    text-align: left;
}
.crypto-wallet-reveal-hint {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    text-align: left;
}
.crypto-wallet-card.is-selected .crypto-wallet-reveal-hint {
    display: none;
}
.crypto-wallet-address-panel {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px dashed var(--border);
    text-align: left;
}
.crypto-wallet-qr-wrap {
    display: flex;
    justify-content: center;
    margin: 10px 0 12px;
}
.crypto-wallet-qr {
    width: 168px;
    height: 168px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: #fff;
    object-fit: contain;
}
.crypto-addr-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.crypto-addr-label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 6px;
    width: 100%;
}
.crypto-wallet-addr {
    flex: 1;
    min-width: 0;
    display: block;
    font-size: 11px;
    word-break: break-all;
    line-height: 1.45;
    padding: 10px 11px;
    background: rgba(0,0,0,0.28);
    border-radius: 8px;
    color: var(--text);
}
.crypto-copy-btn {
    flex-shrink: 0;
    align-self: stretch;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-2);
    color: var(--text);
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.crypto-copy-btn:hover {
    border-color: var(--accent);
    background: rgba(155, 92, 255, 0.15);
}
.crypto-copy-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.checkout-next { margin-top: 4px; }
.checkout-back-btn {
    padding: 10px;
    font-size: 13px;
    font-weight: 600;
    background: transparent;
    border: 1px dashed var(--border);
    border-radius: 10px;
    color: var(--muted);
    cursor: pointer;
}
.checkout-back-btn:hover {
    border-style: solid;
    color: var(--text);
}

.submit-btn {
    padding: 14px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
    color: #fff;
    border-radius: 10px;
    font-weight: 700; font-size: 15px;
    transition: transform 0.1s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(155, 92, 255, 0.35);
}
.submit-btn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 24px rgba(155, 92, 255, 0.55);
}
.submit-btn:active:not(:disabled) { transform: translateY(0); }
.submit-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.form-msg { font-size: 13px; min-height: 18px; text-align: center; }
.form-msg.success { color: var(--success); }
.form-msg.error   { color: var(--error); }

/* FOOTER */
.foot {
    padding: 28px 18px;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--muted); font-size: 13px;
}
