/* ============================================
   Theme Variables
   ============================================ */
:root {
    /* Colors */
    --color-bg: #ffffff;
    --color-text: #1f2937;
    --color-text-secondary: #6b7280;
    --color-secondary: #f3f4f6;
    --color-tertiary: #e5e7eb;
    --color-border: #e5e7eb;
    --color-accent: #1a73e8;
    --tw-ring-color: rgba(0, 0, 0, 0.07);
    --tw-ring-offset-color: #fff;

    /* Typography */
    --font-sans:
        Inter var, ui-sans-serif, system-ui, sans-serif, Apple Color Emoji,
        Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
}

html *,
html *::before,
html *::after {
    --tw-ring-color: rgba(0, 0, 0, 0.07);
    --tw-ring-offset-color: #fff;
}

.dark *,
.dark *::before,
.dark *::after {
    --tw-ring-color: hsla(0, 0%, 100%, 0.1);
    --tw-ring-offset-color: #0e0f12;
}

summary,
ul,
ol {
    list-style: none;
}
.dark {
    --color-bg: #0e0f12;
    --color-text: #f3f4f6;
    --color-text-secondary: #9ca3af;
    --color-secondary: #1a1b1e;
    --color-tertiary: #2a2b2e;
    --color-border: #374151;
    --color-accent: #3b82f6;
}

/* ============================================
   Base
   ============================================ */
*,
::after,
::before {
    box-sizing: border-box;
    border: 0 solid var(--color-border);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ============================================
   Headings
   ============================================ */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 500 !important;
    color: var(--color-text) !important;
}

.dark h1,
.dark h2,
.dark h3,
.dark h4,
.dark h5,
.dark h6 {
    color: #ffffff !important;
}

h1 {
    font-size: 1.5rem !important;
    line-height: 2rem !important;
}

h2 {
    font-size: 1.25rem !important;
    line-height: 1.75rem !important;
}

h3 {
    font-size: 1.125rem !important;
    line-height: 1.75rem !important;
}

/* ============================================
   Tables
   ============================================ */
table {
    width: 100%;
    font-size: 0.75rem;
    line-height: 1rem;
}

thead {
    border-color: rgba(0, 0, 0, 0.07);
    border-bottom-width: 1px;
}

.dark thead {
    border-color: hsla(0, 0%, 100%, 0.1);
}

th {
    padding: 0.625rem 0.75rem;
    text-align: left;
}

td {
    padding: 0.625rem 0.75rem;
}

tbody tr {
    border-color: rgba(0, 0, 0, 0.07);
    border-bottom-width: 1px;
}

.dark tbody tr {
    border-color: hsla(0, 0%, 100%, 0.1);
}

@media (min-width: 1024px) {
    th {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    td {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    tbody tr:hover {
        background-color: rgb(248 248 248 / 1);
    }

    .dark tbody tr:hover {
        background-color: rgb(24 25 28 / 1);
    }
}

/* ============================================
   FAQ Content
   ============================================ */
.faq-content-shell {
    font-size: 0.875rem;
    line-height: 1.625;
}

.faq-content-shell > * + * {
    margin-top: 1rem;
}

.faq-content-shell details {
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    background: var(--color-bg);
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.faq-content-shell summary {
    list-style: none;
    cursor: pointer;
    padding: 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
}

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

.faq-content-shell details > :not(summary) {
    padding: 1rem;
    border-top: 1px solid var(--color-border);
}

.faq-content-shell p {
    margin: 0;
}

/* ============================================
   Typography / Prose
   Matches style-example
   ============================================ */
.prose {
    --tw-prose-body: #374151;
    --tw-prose-headings: #111827;
    --tw-prose-lead: #4b5563;
    --tw-prose-links: #111827;
    --tw-prose-bold: #111827;
    --tw-prose-counters: #6b7280;
    --tw-prose-bullets: #d1d5db;
    --tw-prose-hr: #e5e7eb;
    --tw-prose-quotes: #111827;
    --tw-prose-quote-borders: #e5e7eb;
    --tw-prose-captions: #6b7280;
    --tw-prose-kbd: #111827;
    --tw-prose-kbd-shadows: 17 24 39;
    --tw-prose-code: #111827;
    --tw-prose-pre-code: #e5e7eb;
    --tw-prose-pre-bg: #1f2937;
    --tw-prose-th-borders: #d1d5db;
    --tw-prose-td-borders: #e5e7eb;
    --tw-prose-invert-body: #d1d5db;
    --tw-prose-invert-headings: #fff;
    --tw-prose-invert-lead: #9ca3af;
    --tw-prose-invert-links: #fff;
    --tw-prose-invert-bold: #fff;
    --tw-prose-invert-counters: #9ca3af;
    --tw-prose-invert-bullets: #4b5563;
    --tw-prose-invert-hr: #374151;
    --tw-prose-invert-quotes: #f3f4f6;
    --tw-prose-invert-quote-borders: #374151;
    --tw-prose-invert-captions: #9ca3af;
    --tw-prose-invert-kbd: #fff;
    --tw-prose-invert-kbd-shadows: 255 255 255;
    --tw-prose-invert-code: #fff;
    --tw-prose-invert-pre-code: #d1d5db;
    --tw-prose-invert-pre-bg: rgba(0, 0, 0, 0.5);
    --tw-prose-invert-th-borders: #4b5563;
    --tw-prose-invert-td-borders: #374151;
    color: var(--tw-prose-body);
    max-width: 65ch;
    font-size: 1rem;
    line-height: 1.75;
}

.prose :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose
    :where([class~="lead"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    color: var(--tw-prose-lead);
    font-size: 1.25em;
    line-height: 1.6;
    margin-top: 1.2em;
    margin-bottom: 1.2em;
}

.prose :where(a):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-links);
    text-decoration: underline;
    font-weight: 500;
}

.prose
    :where(strong):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-bold);
    font-weight: 600;
}

.prose
    :where(a strong, blockquote strong, thead th strong):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    color: inherit;
}

.prose :where(ol):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    list-style-type: decimal;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose
    :where(ol[type="A"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    list-style-type: upper-alpha;
}
.prose
    :where(ol[type="a"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    list-style-type: lower-alpha;
}
.prose
    :where(ol[type="I"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    list-style-type: upper-roman;
}
.prose
    :where(ol[type="i"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    list-style-type: lower-roman;
}

.prose :where(ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    list-style-type: disc;
    margin-top: 1.25em;
    margin-bottom: 1.25em;
    padding-inline-start: 1.625em;
}

.prose
    :where(ol > li):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::marker {
    font-weight: 400;
    color: var(--tw-prose-counters);
}

.prose
    :where(ul > li):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::marker {
    color: var(--tw-prose-bullets);
}

.prose :where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    margin-top: 1.25em;
}

.prose :where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    border-color: var(--tw-prose-hr);
    border-top-width: 1px;
    margin-top: 3em;
    margin-bottom: 3em;
}

.prose
    :where(blockquote):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-weight: 500;
    font-style: italic;
    color: var(--tw-prose-quotes);
    border-inline-start-width: 0.25rem;
    border-inline-start-color: var(--tw-prose-quote-borders);
    quotes: "\201C" "\201D" "\2018" "\2019";
    margin-top: 1.6em;
    margin-bottom: 1.6em;
    padding-inline-start: 1em;
}

.prose
    :where(blockquote p:first-of-type):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::before {
    content: open-quote;
}
.prose
    :where(blockquote p:last-of-type):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::after {
    content: close-quote;
}

.prose :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 800;
    font-size: 2.25em;
    margin-top: 0;
    margin-bottom: 0.8888889em;
    line-height: 1.1111111;
}

.prose :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 700;
    font-size: 1.5em;
    margin-top: 2em;
    margin-bottom: 1em;
    line-height: 1.3333333;
}

.prose :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    font-size: 1.25em;
    margin-top: 1.6em;
    margin-bottom: 0.6em;
    line-height: 1.6;
}

.prose :where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
    line-height: 1.5;
}

.prose
    :where(h1 strong):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-weight: 900;
    color: inherit;
}
.prose
    :where(h2 strong):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-weight: 800;
    color: inherit;
}
.prose
    :where(h3 strong, h4 strong):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-weight: 700;
    color: inherit;
}

.prose
    :where(img, picture, video):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose
    :where(picture):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    display: block;
}

.prose
    :where(picture > img):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose :where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-weight: 500;
    font-family: inherit;
    color: var(--tw-prose-kbd);
    box-shadow:
        0 0 0 1px rgb(var(--tw-prose-kbd-shadows) / 10%),
        0 3px 0 rgb(var(--tw-prose-kbd-shadows) / 10%);
    font-size: 0.875em;
    border-radius: 0.3125rem;
    padding-top: 0.1875em;
    padding-inline-end: 0.375em;
    padding-bottom: 0.1875em;
    padding-inline-start: 0.375em;
}

.prose :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-code);
    font-weight: 600;
    font-size: 0.875em;
}

.prose
    :where(code):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::before {
    content: "`";
}
.prose
    :where(code):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::after {
    content: "`";
}

.prose
    :where(
        a code,
        h1 code,
        h2 code,
        h3 code,
        h4 code,
        blockquote code,
        thead th code
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: inherit;
}

.prose
    :where(h2 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.875em;
}
.prose
    :where(h3 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.9em;
}

.prose :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-pre-code);
    background-color: var(--tw-prose-pre-bg);
    overflow-x: auto;
    font-weight: 400;
    font-size: 0.875em;
    line-height: 1.7142857;
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
    border-radius: 0.375rem;
    padding-top: 0.8571429em;
    padding-inline-end: 1.1428571em;
    padding-bottom: 0.8571429em;
    padding-inline-start: 1.1428571em;
}

.prose
    :where(pre code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    background-color: transparent;
    border-width: 0;
    border-radius: 0;
    padding: 0;
    font-weight: inherit;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    line-height: inherit;
}

.prose
    :where(pre code):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::before,
.prose
    :where(pre code):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    )::after {
    content: none;
}

.prose :where(table):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    width: 100%;
    table-layout: auto;
    margin-top: 2em;
    margin-bottom: 2em;
    font-size: 0.875em;
    line-height: 1.7142857;
}

.prose :where(thead):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    border-bottom-width: 1px;
    border-bottom-color: var(--tw-prose-th-borders);
}

.prose
    :where(thead th):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    color: var(--tw-prose-headings);
    font-weight: 600;
    vertical-align: bottom;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
}

.prose
    :where(tbody tr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    border-bottom-width: 1px;
    border-bottom-color: var(--tw-prose-td-borders);
}

.prose
    :where(tbody tr:last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    border-bottom-width: 0;
}
.prose
    :where(tbody td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    vertical-align: baseline;
}

.prose :where(tfoot):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    border-top-width: 1px;
    border-top-color: var(--tw-prose-th-borders);
}

.prose
    :where(tfoot td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    vertical-align: top;
}
.prose
    :where(th, td):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    text-align: start;
}

.prose
    :where(figure):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 2em;
    margin-bottom: 2em;
}

.prose
    :where(figure > *):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose
    :where(figcaption):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    color: var(--tw-prose-captions);
    font-size: 0.875em;
    line-height: 1.4285714;
    margin-top: 0.8571429em;
}

.prose :where(li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.prose
    :where(ol > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    padding-inline-start: 0.375em;
}
.prose
    :where(ul > li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    padding-inline-start: 0.375em;
}

.prose
    :where(.prose > ul > li p, .prose > ol > li p):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose
    :where(
        .prose > ul > li > p:first-child,
        .prose > ol > li > p:first-child
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.25em;
}
.prose
    :where(
        .prose > ul > li > p:last-child,
        .prose > ol > li > p:last-child
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-bottom: 1.25em;
}

.prose
    :where(ul ul, ul ol, ol ul, ol ol):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0.75em;
    margin-bottom: 0.75em;
}

.prose :where(dl):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.25em;
    margin-bottom: 1.25em;
}

.prose :where(dd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 0.5em;
    padding-inline-start: 1.625em;
}

.prose
    :where(hr + *, h2 + *, h3 + *, h4 + *):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
}

.prose
    :where(thead th:first-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ),
.prose
    :where(tbody td:first-child, tfoot td:first-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-inline-start: 0;
}

.prose
    :where(thead th:last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ),
.prose
    :where(tbody td:last-child, tfoot td:last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-inline-end: 0;
}

.prose
    :where(tbody td, tfoot td):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-top: 0.5714286em;
    padding-inline-end: 0.5714286em;
    padding-bottom: 0.5714286em;
    padding-inline-start: 0.5714286em;
}

.prose
    :where(.prose > :first-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
}
.prose
    :where(.prose > :last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-bottom: 0;
}

.prose-sm {
    font-size: 0.875rem;
    line-height: 1.7142857;
}

.prose-sm :where(p):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
}

.prose-sm
    :where([class~="lead"]):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-size: 1.2857143em;
    line-height: 1.5555556;
    margin-top: 0.8888889em;
    margin-bottom: 0.8888889em;
}

.prose-sm
    :where(blockquote):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 1.3333333em;
    margin-bottom: 1.3333333em;
    padding-inline-start: 1.1111111em;
}

.prose-sm :where(h1):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 2.1428571em;
    margin-top: 0;
    margin-bottom: 0.8em;
    line-height: 1.2;
}

.prose-sm :where(h2):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 1.4285714em;
    margin-top: 1.6em;
    margin-bottom: 0.8em;
    line-height: 1.4;
}

.prose-sm :where(h3):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 1.2857143em;
    margin-top: 1.5555556em;
    margin-bottom: 0.4444444em;
    line-height: 1.5555556;
}

.prose-sm :where(h4):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.4285714em;
    margin-bottom: 0.5714286em;
    line-height: 1.4285714;
}

.prose-sm
    :where(img, picture, video):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
}

.prose-sm
    :where(picture > img):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose-sm
    :where(kbd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.8571429em;
    border-radius: 0.3125rem;
    padding-top: 0.1428571em;
    padding-inline-end: 0.3571429em;
    padding-bottom: 0.1428571em;
    padding-inline-start: 0.3571429em;
}

.prose-sm
    :where(code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.8571429em;
}
.prose-sm
    :where(h2 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.9em;
}
.prose-sm
    :where(h3 code):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.8888889em;
}

.prose-sm
    :where(pre):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.8571429em;
    line-height: 1.6666667;
    margin-top: 1.6666667em;
    margin-bottom: 1.6666667em;
    border-radius: 0.25rem;
    padding-top: 0.6666667em;
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
}

.prose-sm
    :where(ol, ul):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
    padding-inline-start: 1.5714286em;
}

.prose-sm :where(li):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 0.2857143em;
    margin-bottom: 0.2857143em;
}

.prose-sm
    :where(ol > li, ul > li):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-inline-start: 0.4285714em;
}

.prose-sm
    :where(.prose-sm > ul > li p, .prose-sm > ol > li p):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0.5714286em;
    margin-bottom: 0.5714286em;
}

.prose-sm
    :where(
        .prose-sm > ul > li > p:first-child,
        .prose-sm > ol > li > p:first-child
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.1428571em;
}
.prose-sm
    :where(
        .prose-sm > ul > li > p:last-child,
        .prose-sm > ol > li > p:last-child
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-bottom: 1.1428571em;
}

.prose-sm
    :where(ul ul, ul ol, ol ul, ol ol):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0.5714286em;
    margin-bottom: 0.5714286em;
}

.prose-sm :where(dl):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.1428571em;
    margin-bottom: 1.1428571em;
}

.prose-sm :where(dt):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.1428571em;
}

.prose-sm :where(dd):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 0.2857143em;
    padding-inline-start: 1.5714286em;
}

.prose-sm :where(hr):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 2.8571429em;
    margin-bottom: 2.8571429em;
}

.prose-sm
    :where(hr + *, h2 + *, h3 + *, h4 + *):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
}

.prose-sm
    :where(table):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    font-size: 0.8571429em;
    line-height: 1.5;
}

.prose-sm
    :where(thead th):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
}

.prose-sm
    :where(
        thead th:first-child,
        tbody td:first-child,
        tfoot td:first-child
    ):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    padding-inline-start: 0;
}
.prose-sm
    :where(thead th:last-child, tbody td:last-child, tfoot td:last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-inline-end: 0;
}

.prose-sm
    :where(tbody td, tfoot td):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    padding-top: 0.6666667em;
    padding-inline-end: 1em;
    padding-bottom: 0.6666667em;
    padding-inline-start: 1em;
}

.prose-sm
    :where(figure):not(:where([class~="not-prose"], [class~="not-prose"] *)) {
    margin-top: 1.7142857em;
    margin-bottom: 1.7142857em;
}

.prose-sm
    :where(figure > *):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
    margin-bottom: 0;
}

.prose-sm
    :where(figcaption):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    font-size: 0.8571429em;
    line-height: 1.3333333;
    margin-top: 0.6666667em;
}

.prose-sm
    :where(.prose-sm > :first-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-top: 0;
}
.prose-sm
    :where(.prose-sm > :last-child):not(
        :where([class~="not-prose"], [class~="not-prose"] *)
    ) {
    margin-bottom: 0;
}

.dark\:prose-invert:where(.dark, .dark *) {
    --tw-prose-body: var(--tw-prose-invert-body);
    --tw-prose-headings: var(--tw-prose-invert-headings);
    --tw-prose-lead: var(--tw-prose-invert-lead);
    --tw-prose-links: var(--tw-prose-invert-links);
    --tw-prose-bold: var(--tw-prose-invert-bold);
    --tw-prose-counters: var(--tw-prose-invert-counters);
    --tw-prose-bullets: var(--tw-prose-invert-bullets);
    --tw-prose-hr: var(--tw-prose-invert-hr);
    --tw-prose-quotes: var(--tw-prose-invert-quotes);
    --tw-prose-quote-borders: var(--tw-prose-invert-quote-borders);
    --tw-prose-captions: var(--tw-prose-invert-captions);
    --tw-prose-kbd: var(--tw-prose-invert-kbd);
    --tw-prose-kbd-shadows: var(--tw-prose-invert-kbd-shadows);
    --tw-prose-code: var(--tw-prose-invert-code);
    --tw-prose-pre-code: var(--tw-prose-invert-pre-code);
    --tw-prose-pre-bg: var(--tw-prose-invert-pre-bg);
    --tw-prose-th-borders: var(--tw-prose-invert-th-borders);
    --tw-prose-td-borders: var(--tw-prose-invert-td-borders);
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    background-color: var(--color-bg);
    color: var(--color-text);
}

/* ============================================
   Details / Dropdown
   ============================================ */
details[open] > summary {
    background-color: var(--color-secondary);
}

.bg-none {
    background: unset !important;
}

details[open] .dropdown-menu {
    display: flex;
}

/* ============================================
   Theme Radio - checked state
   ============================================ */
/* ============================================
   Badge
   ============================================ */
.badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 500;
    background-color: var(--color-tertiary);
    color: var(--color-text);
}

/* ============================================
   Scroll Area
   ============================================ */
.scroll-area {
    scrollbar-width: thin;
    scrollbar-color: var(--color-tertiary) transparent;
}

.scroll-area::-webkit-scrollbar {
    width: 6px;
}

.scroll-area::-webkit-scrollbar-track {
    background: transparent;
}

.scroll-area::-webkit-scrollbar-thumb {
    background-color: var(--color-tertiary);
    border-radius: 3px;
}

/* ============================================
   Animations
   ============================================ */
@keyframes slidey {
    0% {
        transform: translateY(0);
    }
    100% {
        transform: translateY(-50%);
    }
}

.hover\:anim_pause:hover {
    animation-play-state: paused;
}

/* ============================================
   Text Colors
   ============================================ */
.textSecondary {
    color: var(--color-text-secondary);
}

.dark .textSecondary {
    color: var(--color-text-secondary);
}

/* ============================================
   Shadows
   ============================================ */
.shadow {
    box-shadow:
        0 1px 3px 0 rgba(0, 0, 0, 0.1),
        0 1px 2px -1px rgba(0, 0, 0, 0.1);
}

.shadow-sm {
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* ============================================
   Form Elements
   ============================================ */
input,
select,
textarea {
    background-color: rgb(248 248 248 / 1);
    outline: none;
}

.dark input,
.dark select,
.dark textarea {
    background-color: rgb(24 25 28 / 1);
}

.inputPrimary {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    display: inline-block;
    outline: 2px solid transparent;
    outline-offset: 2px;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.inputPrimary::placeholder {
    color: rgba(40, 40, 40, 0.3);
}

.inputPrimary:focus {
    outline: none;
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.dark .inputPrimary {
    background-color: var(--color-secondary);
    border-color: var(--color-border);
}

.dark .inputPrimary::placeholder {
    color: hsla(0, 0%, 100%, 0.4);
}

.dark .inputPrimary:focus {
    outline: none;
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
}

.btn-primary {
    width: 100%;
    color: #ffffff;
    background-color: #07080a;
    border: 1px solid transparent;
}

.btn-primary:hover {
    opacity: 0.92;
}

.dark .btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.dark .btn-primary:hover {
    opacity: 0.92;
}

.btn-secondary {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border-color: var(--color-border);
}

.dark .btn-secondary {
    background-color: var(--color-tertiary);
}

.btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

/* ============================================
   Checkbox
   ============================================ */
.checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    cursor: pointer;
    margin-right: 0.5rem;
}

.checkbox input[type="checkbox"] {
    width: 1.25rem;
    height: 1.25rem;
    padding: 0;
    vertical-align: middle;
    font-size: 1rem;
    line-height: 1.5rem;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: var(--color-bg);
    border-radius: 0.75rem;
}

.checkbox input[type="checkbox"]:checked {
    background-color: #2563eb;
    background-position: 50%;
    background-repeat: no-repeat;
    background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E");
    background-size: 0.75em;
}

.dark .checkbox input[type="checkbox"] {
    background-color: var(--color-tertiary);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
}

.alert-danger {
    color: #991b1b;
    background-color: #fee2e2;
    border: 1px solid #fecaca;
}

.dark .alert-danger {
    color: #fecaca;
    background-color: #450a0a;
    border-color: #7f1d1d;
}

.alert-success {
    color: #065f46;
    background-color: #d1fae5;
    border: 1px solid #a7f3d0;
}

.dark .alert-success {
    color: #d1fae5;
    background-color: #064e3b;
    border-color: #065f46;
}

/* ============================================
   Space utilities
   ============================================ */
.space-y-sm > * + * {
    margin-top: 0.75rem;
}

.space-y-1 > * + * {
    margin-top: 0.25rem;
}

.space-y-0\.5 > * + * {
    margin-top: 0.125rem;
}

/* ============================================
   Relative
   ============================================ */
.relative {
    position: relative;
}

/* ============================================
   Absolute
   ============================================ */
.absolute {
    position: absolute;
}

.inset-0 {
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
}

.-z-10 {
    z-index: -10;
}

.inline {
    display: inline;
}

.blur-2xl {
    filter: blur(1.5rem);
}

.blur-3xl {
    filter: blur(1.5rem);
}

.bg-blue-400\/50 {
    background-color: rgba(96, 165, 250, 0.5);
}

.bg-gradient-to-tr {
    background-image: linear-gradient(to right, var(--tw-gradient-stops));
}

.from-cyan-300 {
    --tw-gradient-from: #67e8f9;
    --tw-gradient-stops:
        var(--tw-gradient-from), var(--tw-gradient-to, rgba(103, 232, 249, 0));
}

.to-blue-600 {
    --tw-gradient-to: #2563eb;
}

.from-indigo-300 {
    --tw-gradient-from: #a5b4fc;
    --tw-gradient-stops:
        var(--tw-gradient-from), var(--tw-gradient-to, rgba(165, 180, 252, 0));
}

.to-sky-600 {
    --tw-gradient-to: #0284c7;
}

.opacity-20 {
    opacity: 0.2;
}

.transform-gpu {
    transform: translateZ(0);
}

/* ============================================
   Form Elements - Additional
   ============================================ */
.form-group {
    margin-bottom: 0.75rem;
}

.form-group:last-child {
    margin-bottom: 0;
}

.control-label {
    display: block;
    margin-bottom: 0.375rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text);
}

.form-control {
    width: 100%;
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    line-height: 1.25;
    color: var(--color-text);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 0.75rem;
    display: inline-block;
    outline: none;
    transition:
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}

.form-control::placeholder {
    color: rgba(40, 40, 40, 0.3);
}

.form-control:focus {
    outline: none;
}

.dark .form-control {
    background-color: var(--color-secondary);
}

.dark .form-control::placeholder {
    color: hsla(0, 0%, 100%, 0.4);
}

.dark .form-control:focus {
    outline: none;
}

/* ============================================
   Title
   ============================================ */
.title1 {
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 2.25rem;
    color: var(--color-text);
}

.dark .title1 {
    color: #ffffff;
}

.rounded-full {
    border-radius: 9999px;
}

/* ============================================
   Ring
   ============================================ */
.ring-1 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
        var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
        calc(1px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow:
        var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
        var(--tw-shadow, 0 0 #0000);
}

.ring-2 {
    --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0
        var(--tw-ring-offset-width) var(--tw-ring-offset-color);
    --tw-ring-shadow: var(--tw-ring-inset) 0 0 0
        calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
    box-shadow:
        var(--tw-ring-offset-shadow), var(--tw-ring-shadow),
        var(--tw-shadow, 0 0 #0000);
}

.ring-primary {
    box-shadow: 0 0 0 1px var(--color-border);
}

/* ============================================
   Custom Utilities
   Matches style-example exactly
   ============================================ */
.rounded-primary {
    border-radius: 0.75rem;
}

.rounded-secondary {
    border-radius: 1rem;
}

.rounded-tertiary {
    border-radius: 0.75rem;
}

.p-md {
    padding: 1.25rem;
}

.p-sm {
    padding: 0.75rem;
}

.p-xs {
    padding: 0.375rem;
}

.px-sm {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.px-xs {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
}

.py-xl {
    padding-top: 4rem;
    padding-bottom: 4rem;
}

.py-lg {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
}

.py-md {
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
}

.py-sm {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.py-xs {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

.py-xxs {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
}

.pt-lg {
    padding-top: 2.5rem;
}

.pt-sm {
    padding-top: 0.75rem;
}

.pt-xs {
    padding-top: 0.5rem;
}

.pb-2xl {
    padding-bottom: 5rem;
}

.pb-xl {
    padding-bottom: 4rem;
}

.pb-sm {
    padding-bottom: 1.25rem;
}

.my-sm {
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
}

.mt-lg {
    margin-top: 3.5rem;
}

.mt-md {
    margin-top: 2.5rem;
}

.mt-sm {
    margin-top: 1.25rem;
}

.mt-xs {
    margin-top: 0.5rem;
}

.mb-md {
    margin-bottom: 4rem;
}

.mb-sm {
    margin-bottom: 1.25rem;
}

.mb-xs {
    margin-bottom: 0.5rem;
}

.ml-xs {
    margin-left: 0.625rem;
}

.gap-sm {
    gap: 1.25rem;
}

.gap-xs {
    gap: 0.75rem;
}

.gap-xxs {
    gap: 0.5rem;
}

.gap-x-xs {
    column-gap: 0.625rem;
}

/* ============================================
   Arbitrary Variant Utilities
   Matches style-example for current layout usage
   ============================================ */
.\[\&\>\*\]\:w-full > * {
    width: 100%;
}

.\[\&\>li\>\*\]\:w-full > li > * {
    width: 100%;
}

.\[\&\>li\>\*\]\:flex > li > * {
    display: flex;
}

.\[\&\>li\>\*\]\:flex-col > li > * {
    flex-direction: column;
}

.\[\&\>li\>\*\]\:items-center > li > * {
    align-items: center;
}

.\[\&\>li\>\*\]\:py-xs > li > * {
    padding-top: 0.625rem;
    padding-bottom: 0.625rem;
}

@media (min-width: 1024px) {
    .lg\:p-md {
        padding: 1.25rem;
    }

    .lg\:px-sm {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .lg\:pt-2xl {
        padding-top: 5rem;
    }

    .lg\:pt-xl {
        padding-top: 4rem;
    }

    .lg\:pb-lg {
        padding-bottom: 3.5rem;
    }

    .lg\:pb-md {
        padding-bottom: 2.5rem;
    }

    .lg\:gap-lg {
        gap: 3rem;
    }

    .lg\:rounded-primary {
        border-radius: 0.75rem;
    }
}

.mb-4 {
    margin-bottom: 1rem;
}

.mt-5 {
    margin-top: 1.25rem;
}

.gap-4 {
    gap: 1rem;
}

.text-sm {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

.text-center {
    text-align: center;
}

.underline {
    text-decoration: underline;
}

/* ============================================
   Display
   ============================================ */
.block {
    display: block;
}

.inline-block {
    display: inline-block;
}

.w-full {
    width: 100%;
}

.w-auto {
    width: auto;
}

/* ============================================
   Button Primary (Sign Up)
   ============================================ */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    -webkit-user-select: none;
    -moz-user-select: none;
    user-select: none;
    width: auto;
    color: #ffffff;
    background-color: #07080a;
    border: 1px solid transparent;
}

.btn-primary:hover {
    opacity: 0.92;
}

.dark .btn-primary {
    background-color: #ffffff;
    color: #000000;
}

.dark .btn-primary:hover {
    opacity: 0.92;
}

/* ============================================
   hCaptcha
   ============================================ */
.h-captcha {
    display: flex;
    margin: 1rem 0;
}

.h-captcha iframe {
    border-radius: 4px;
}

/* ============================================
   New Order Page
   ============================================ */
.frontend-hidden {
    display: none !important;
}

[data-neworder-page] {
    --order-bg: linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(247, 248, 250, 0.98) 100%
    );
    --order-card-bg: rgba(255, 255, 255, 0.98);
    --order-card-muted: rgba(246, 247, 249, 0.92);
    --order-border: rgba(15, 23, 42, 0.08);
    --order-border-strong: rgba(37, 99, 235, 0.22);
    --order-text: #1f2937;
    --order-text-muted: #667085;
    --order-accent: #2563eb;
    --order-accent-soft: rgba(37, 99, 235, 0.08);
    --order-accent-strong: rgba(37, 99, 235, 0.14);
    --order-shadow:
        0 16px 40px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
    width: 100%;
    margin: 0 auto;
}

[data-neworder-page] summary {
    list-style: none;
}

[data-neworder-page] summary::-webkit-details-marker {
    display: none;
}

[data-neworder-page] .line-clamp-1 {
    overflow: hidden;
    min-width: 0;
    white-space: nowrap;
    text-overflow: ellipsis;
}

[data-neworder-page] .category-item,
[data-neworder-page] .service-item {
    color: var(--order-text);
    font: inherit;
}

[data-neworder-page] .platform-filter-btn {
    color: var(--order-text);
    transition:
        background-color 0.15s ease,
        box-shadow 0.15s ease,
        color 0.15s ease;
}

[data-neworder-page] .platform-filter-btn.is-active {
    background: var(--order-card-muted);
    box-shadow: inset 0 2px 4px rgba(15, 23, 42, 0.08);
    color: var(--order-accent);
}

[data-neworder-page] .category-item .icon,
[data-neworder-page] .service-item .icon,
[data-neworder-page] #selectedCategory .icon,
[data-neworder-page] #selectedService .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

[data-neworder-page] .category-item img,
[data-neworder-page] .service-item img,
[data-neworder-page] #selectedCategory img,
[data-neworder-page] #selectedService img {
    width: 1rem;
    height: 1rem;
    object-fit: contain;
}

[data-neworder-page] #service_description.frontend-empty {
    display: none;
}

[data-neworder-page] .serviceName,
[data-neworder-page] .serviceStartTime,
[data-neworder-page] .serviceSpeed,
[data-neworder-page] .serviceGuaranteed {
    word-break: break-word;
}

.dark [data-neworder-page] {
    --order-bg: linear-gradient(
        180deg,
        rgba(20, 24, 32, 0.98) 0%,
        rgba(13, 17, 23, 0.98) 100%
    );
    --order-card-bg: rgba(18, 24, 32, 0.96);
    --order-card-muted: rgba(255, 255, 255, 0.045);
    --order-border: rgba(255, 255, 255, 0.08);
    --order-border-strong: rgba(96, 165, 250, 0.32);
    --order-text: #f8fafc;
    --order-text-muted: rgba(226, 232, 240, 0.68);
    --order-accent: #60a5fa;
    --order-accent-soft: rgba(96, 165, 250, 0.12);
    --order-accent-strong: rgba(96, 165, 250, 0.2);
    --order-shadow:
        0 18px 48px rgba(2, 6, 23, 0.35), 0 1px 2px rgba(2, 6, 23, 0.16);
}

.ui-page-shell {
    position: relative;
}

.ui-page-shell::before,
.ui-page-shell::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.ui-page-shell::before {
    background:
        radial-gradient(
            circle at 12% 8%,
            rgba(37, 99, 235, 0.11),
            transparent 28%
        ),
        radial-gradient(
            circle at 88% 16%,
            rgba(14, 165, 233, 0.08),
            transparent 22%
        );
}

.ui-page-shell::after {
    inset: 10px;
    border-radius: 28px;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.08) 1px, transparent 1px);
    background-size: 88px 88px;
    opacity: 0.28;
}

.order-page-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.42fr) minmax(320px, 0.82fr);
    gap: 20px;
    align-items: start;
}

.order-page-layout__main,
.order-page-layout__side {
    min-width: 0;
}

.order-form-surface,
.order-details-card,
.order-note-card {
    margin: 0;
    padding: 20px;
    border: 1px solid var(--order-border);
    border-radius: 24px;
    background: var(--order-bg);
    box-shadow: var(--order-shadow);
    color: var(--order-text);
}

.order-form-surface__header {
    display: grid;
    gap: 8px;
    margin-bottom: 20px;
}

.order-form-surface__eyebrow,
.order-select-trigger__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--order-text-muted);
}

.order-form-surface__title {
    margin: 0;
    font-size: 2rem;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--order-text);
}

.order-form-surface__text {
    margin: 0;
    max-width: 680px;
    color: var(--order-text-muted);
    line-height: 1.6;
}

.order-platform-selector {
    margin-bottom: 22px;
    border: 1px solid var(--order-border);
    border-radius: 22px;
    overflow: hidden;
    background: var(--order-card-muted);
}

.order-platform-selector__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    cursor: pointer;
    color: var(--order-text);
    border-bottom: 1px solid var(--order-border);
}

.order-platform-selector__header span {
    font-size: 0.95rem;
    font-weight: 700;
}

.order-platform-selector__header:focus-visible,
.order-platform-selector__toggle:focus-visible,
.order-platform-tab:focus-visible,
.order-platform-btn:focus-visible,
.order-select-trigger:focus-visible,
.order-select-option:focus-visible,
.order-select-search-input:focus-visible {
    outline: 2px solid var(--order-accent);
    outline-offset: 2px;
}

.order-platform-selector__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0;
    border: 1px solid var(--order-border);
    border-radius: 10px;
    background: var(--order-card-bg);
    color: var(--order-text-muted);
}

.order-platform-selector__caret {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(-135deg);
    transition:
        transform 0.2s ease,
        margin 0.2s ease;
    margin-top: 4px;
}

.order-platform-selector.is-collapsed .order-platform-selector__caret {
    transform: rotate(45deg);
    margin-top: -1px;
}

.order-platform-selector.is-collapsed .order-platform-grid {
    display: none;
}

.order-platform-tabs,
.order-platform-icons {
    display: grid;
    gap: 0;
}

.order-platform-tabs {
    grid-template-columns: 1fr;
    border-bottom: 1px solid var(--order-border);
}

.order-platform-icons {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.order-platform-tab,
.order-platform-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 56px;
    padding: 12px 14px;
    border: 0;
    border-right: 1px solid var(--order-border);
    border-bottom: 1px solid var(--order-border);
    background: transparent;
    color: var(--order-text-muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-align: center;
    transition:
        background-color 0.2s ease,
        color 0.2s ease;
    cursor: pointer;
}

.order-platform-tab:last-child {
    border-right: 0;
}

.order-platform-btn:nth-child(4n) {
    border-right: 0;
}

.order-platform-btn:nth-last-child(-n + 4) {
    border-bottom: 0;
}

.order-platform-tab:hover,
.order-platform-btn:hover {
    background: rgba(255, 255, 255, 0.55);
    color: var(--order-text);
}

.dark .order-platform-tab:hover,
.dark .order-platform-btn:hover {
    background: rgba(255, 255, 255, 0.04);
}

.order-platform-tab.is-active,
.order-platform-btn.is-active {
    background: var(--order-accent-strong);
    color: var(--order-accent);
}

.order-platform-tab__icon,
.order-platform-btn__icon {
    font-size: 1rem;
}

.order-platform-tab[disabled],
.order-platform-btn[disabled] {
    opacity: 0.5;
    cursor: default;
    pointer-events: none;
}

.order-form-search-group {
    margin-bottom: 18px;
}

.order-form-search-label {
    margin-bottom: 8px;
}

.order-form-search-input .form-control {
    padding-left: 40px;
}

.order-section-label {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--order-text);
}

.order-field-group {
    position: relative;
}

.order-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[data-neworder-page] .form-group {
    margin-bottom: 18px;
}

[data-neworder-page] .control-label,
[data-neworder-page] label {
    color: var(--order-text);
}

[data-neworder-page] .form-control,
[data-neworder-page] .panel-body {
    background: var(--order-card-bg);
    color: var(--order-text);
    border: 1px solid var(--order-border);
    border-radius: 16px;
    box-shadow: none;
}

[data-neworder-page] .form-control::placeholder {
    color: var(--order-text-muted);
}

[data-neworder-page] .search-dropdown .form-control,
[data-neworder-page] .search-dropdown .form-control:hover,
[data-neworder-page] .search-dropdown .form-control:focus {
    box-shadow: none;
    outline: none;
}

.order-select-shell {
    position: relative;
}

.order-select-trigger {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    min-height: 64px;
    padding: 14px 16px;
    border: 1px solid var(--order-border);
    border-radius: 18px;
    background: var(--order-card-bg);
    color: var(--order-text);
    text-align: left;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.order-select-trigger::after {
    content: "";
    position: absolute;
    top: 24px;
    right: 18px;
    width: 10px;
    height: 10px;
    border-right: 2px solid var(--order-text-muted);
    border-bottom: 2px solid var(--order-text-muted);
    transform: rotate(45deg);
    transition:
        transform 0.18s ease,
        top 0.18s ease;
}

.order-select-shell.is-open .order-select-trigger::after {
    top: 28px;
    transform: rotate(-135deg);
}

.order-select-trigger__value {
    display: block;
    max-width: calc(100% - 28px);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.45;
}

.order-select-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    z-index: 30;
    padding: 12px;
    border: 1px solid var(--order-border);
    border-radius: 20px;
    background: var(--order-card-bg);
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.14);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease,
        transform 0.18s ease;
}

.order-select-shell.is-open .order-select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.order-select-search-row {
    margin-bottom: 10px;
}

.order-select-options {
    display: grid;
    gap: 6px;
    max-height: 280px;
    overflow-y: auto;
}

.order-select-option,
.order-select-empty {
    width: 100%;
    display: block;
    padding: 12px 13px;
    border: 1px solid transparent;
    border-radius: 14px;
    background: var(--order-card-muted);
    color: var(--order-text);
    text-align: left;
}

.order-select-option:hover,
.order-select-option.is-selected {
    background: rgba(255, 255, 255, 1);
    border-color: var(--order-border);
}

.dark .order-select-option:hover,
.dark .order-select-option.is-selected {
    background: rgba(255, 255, 255, 0.06);
}

.order-select-option.is-selected {
    border-color: var(--order-border-strong);
    background: var(--order-accent-soft);
}

.order-select-option.is-disabled,
.order-select-option:disabled {
    opacity: 0.52;
    cursor: not-allowed;
}

.order-select-empty {
    color: var(--order-text-muted);
}

.order-form-actions {
    margin-top: 20px;
}

.ui-btn-primaryAction,
[data-neworder-page] .btn-primary {
    width: 100%;
    min-height: 52px;
    border-radius: 16px;
    background: linear-gradient(180deg, #111827 0%, #0f172a 100%);
    color: #ffffff;
}

.ui-btn-primaryAction:hover,
[data-neworder-page] .btn-primary:hover {
    background: linear-gradient(180deg, #1f2937 0%, #0f172a 100%);
}

.dark .ui-btn-primaryAction,
.dark [data-neworder-page] .btn-primary {
    background: linear-gradient(180deg, #f8fafc 0%, #e2e8f0 100%);
    color: #0f172a;
}

.dark .ui-btn-primaryAction:hover,
.dark [data-neworder-page] .btn-primary:hover {
    background: linear-gradient(180deg, #ffffff 0%, #e5eefc 100%);
}

.order-terms-group {
    margin-top: 8px;
}

.order-terms-group label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.6;
}

.order-terms-group a {
    color: var(--order-accent);
}

.order-note-card--source {
    margin-top: 6px;
}

.order-note-card--source .panel-body {
    padding: 16px;
    border-radius: 16px;
    background: var(--order-card-muted);
    line-height: 1.65;
}

.order-note-card--source.hidden,
.order-note-card--source.frontend-empty {
    display: none;
}

.order-details-card__header h3 {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.3;
    color: var(--order-text);
}

.order-details-card__service {
    margin: 10px 0 16px;
    font-size: 1rem;
    line-height: 1.55;
    color: var(--order-accent);
    font-weight: 700;
}

.order-details-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.order-details-item {
    padding: 14px;
    border: 1px solid var(--order-border);
    border-radius: 18px;
    background: var(--order-card-muted);
}

.order-details-item span,
.order-details-summary span {
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--order-text-muted);
}

.order-details-item strong {
    display: block;
    margin-top: 8px;
    font-size: 0.96rem;
    line-height: 1.5;
    font-weight: 600;
    color: var(--order-text);
    word-break: break-word;
}

.order-details-item--full {
    grid-column: 1 / -1;
}

.order-details-summary {
    margin-top: 14px;
    padding: 15px 16px;
    border: 1px solid var(--order-border);
    border-radius: 18px;
    background: var(--order-card-muted);
}

.order-details-summary p {
    margin: 10px 0 0;
    color: var(--order-text);
    line-height: 1.65;
    white-space: pre-line;
}

[data-neworder-page] .alert {
    border-radius: 16px;
}

[data-neworder-page] .alert h4 {
    margin-top: 0;
    margin-bottom: 8px;
}

@media (max-width: 1100px) {
    .order-page-layout {
        grid-template-columns: 1fr;
    }

    .order-page-layout__side {
        order: -1;
    }
}

@media (max-width: 767px) {
    [data-neworder-page] {
        padding: 16px 10px 28px;
    }

    .ui-page-shell::after {
        display: none;
    }

    .order-form-surface,
    .order-details-card,
    .order-note-card {
        padding: 16px;
        border-radius: 20px;
    }

    .order-form-surface__title {
        font-size: 1.6rem;
    }

    .order-platform-icons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .order-platform-btn:nth-child(4n) {
        border-right: 1px solid var(--order-border);
    }

    .order-platform-btn:nth-child(3n) {
        border-right: 0;
    }

    .order-platform-btn:nth-last-child(-n + 4) {
        border-bottom: 1px solid var(--order-border);
    }

    .order-platform-btn:nth-last-child(-n + 3) {
        border-bottom: 0;
    }

    .order-details-grid {
        grid-template-columns: 1fr;
    }

    .order-details-item--full {
        grid-column: auto;
    }
}
