/* Familiar Lords Mobile gem calculator interface, revision 12. */
:root {
    color-scheme: dark;
    --page: #1a1a2e;
    --panel: #16213e;
    --row: #1a1a2e;
    --row-alt: #1f4068;
    --cyan: #00d2d3;
    --cyan-bright: #00ffff;
    --green: #00a896;
    --green-bright: #00ffaa;
    --yellow: #ffb703;
    --text: #e0e0e0;
    --muted: #9fb0c6;
    --danger: #e05263;
    --whatsapp: #25d366;
    --line: rgba(0, 210, 211, 0.72);
    --soft-line: rgba(0, 210, 211, 0.26);
    --shadow: 0 14px 42px rgba(2, 8, 25, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 50% -180px, rgba(0, 210, 211, 0.12), transparent 420px),
        var(--page);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

button,
input,
select {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

button {
    border: 0;
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

[hidden] {
    display: none !important;
}

.sr-only {
    position: absolute !important;
    top: 0;
    left: 0;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    clip-path: inset(50%) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.skip-link {
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 1000;
    transform: translateY(-150%);
    border-radius: 6px;
    background: var(--cyan);
    color: #071521;
    font-weight: 800;
    padding: 10px 14px;
    text-decoration: none;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-container {
    width: min(100%, 1480px);
    margin: 0 auto;
    padding: 18px 24px 56px;
}

.top-actions {
    min-height: 34px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.title {
    display: block;
    margin: 0 0 26px;
    background: linear-gradient(135deg, var(--cyan), var(--green-bright));
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 8px rgba(0, 210, 211, 0.38));
    font-size: clamp(1.85rem, 3.4vw, 2.65rem);
    font-weight: 800;
    letter-spacing: 2px;
    line-height: 1.18;
    text-align: center;
    text-transform: uppercase;
}

.calculator-header {
    position: relative;
    isolation: isolate;
    min-height: 84px;
    display: grid;
    place-items: center;
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid rgba(0, 210, 211, 0.52);
    border-radius: 14px;
    background:
        radial-gradient(circle at 15% 50%, rgba(0, 255, 200, 0.13), transparent 30%),
        radial-gradient(circle at 85% 50%, rgba(0, 210, 211, 0.12), transparent 30%),
        linear-gradient(120deg, rgba(0, 168, 150, 0.15), rgba(22, 33, 62, 0.96) 50%, rgba(0, 210, 211, 0.1)),
        var(--panel);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 12px 34px rgba(0, 0, 0, 0.25);
    padding: 13px 24px;
}

.calculator-header::after {
    content: "";
    position: absolute;
    z-index: -1;
    right: 12%;
    bottom: 0;
    left: 12%;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--cyan-bright), var(--green-bright), transparent);
    box-shadow: 0 0 14px rgba(0, 255, 213, 0.72);
}

.calculator-header .title {
    margin: 0;
    max-width: 100%;
    text-align: center;
}

.availability-notice {
    position: relative;
    z-index: 10;
    width: min(420px, calc(100vw - 28px));
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) 32px;
    align-items: center;
    gap: 11px;
    overflow: hidden;
    margin: -10px auto 18px;
    border: 1px solid var(--cyan-bright);
    border-radius: 10px;
    background: #001f3f;
    box-shadow:
        0 0 18px rgba(0, 255, 255, 0.42),
        0 18px 42px rgba(0, 0, 0, 0.42);
    color: var(--cyan-bright);
    padding: 13px 13px 15px;
    animation: notice-in 180ms ease-out both;
}

.availability-notice.is-closing {
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.availability-icon {
    width: 29px;
    height: 29px;
    display: grid;
    place-items: center;
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 900;
    font-style: normal;
}

.availability-notice strong,
.availability-notice small {
    display: block;
}

.availability-notice strong {
    font-size: 1rem;
}

.availability-notice small {
    margin-top: 2px;
    color: #b9ffff;
    font-size: 0.88rem;
}

.availability-notice button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: transparent;
    color: #b9ffff;
    cursor: pointer;
    font-size: 1.4rem;
    line-height: 1;
}

.availability-notice button:hover {
    background: rgba(0, 255, 255, 0.12);
}

.availability-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 3px;
    transform-origin: left;
    background: var(--cyan-bright);
    animation: notice-progress 4s linear both;
}

@keyframes notice-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes notice-progress {
    from {
        transform: scaleX(1);
    }
    to {
        transform: scaleX(0);
    }
}

.install-button,
.text-button,
.primary-button,
.secondary-button {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    transition:
        transform 120ms ease,
        border-color 120ms ease,
        background-color 120ms ease,
        box-shadow 120ms ease;
}

.install-button {
    min-height: 34px;
    border: 1px solid rgba(0, 210, 211, 0.55);
    background: rgba(22, 33, 62, 0.84);
    color: var(--cyan);
    padding: 6px 12px;
    font-size: 0.82rem;
}

.primary-button {
    border: 1px solid #218838;
    background: #28a745;
    color: #fff;
    padding: 10px 17px;
}

.primary-button:hover {
    background: #23923c;
    box-shadow: 0 8px 22px rgba(40, 167, 69, 0.22);
}

.secondary-button {
    border: 1px solid var(--cyan);
    background: rgba(0, 210, 211, 0.08);
    color: #dfffff;
    padding: 9px 15px;
}

.secondary-button:hover {
    background: rgba(0, 210, 211, 0.16);
}

.text-button {
    border: 1px solid rgba(224, 224, 224, 0.3);
    background: transparent;
    color: var(--text);
    padding: 9px 14px;
}

.text-button:hover {
    border-color: var(--cyan);
    color: var(--cyan);
}

.whatsapp-button {
    border-color: #1aaa50;
    background: linear-gradient(135deg, var(--whatsapp), #128c7e);
    border-radius: 50px;
}

.primary-button:active,
.secondary-button:active,
.text-button:active,
.install-button:active {
    transform: translateY(1px);
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.66;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
    outline: 3px solid rgba(255, 183, 3, 0.92);
    outline-offset: 2px;
}

.catalog-section {
    min-width: 0;
}

.form-grid select {
    width: 100%;
    min-height: 43px;
    border: 2px solid var(--cyan);
    border-radius: 6px;
    background: #111b35;
    color: #fff;
    padding: 8px 11px;
}

.tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    margin-bottom: 20px;
    border-bottom: 2px solid rgba(0, 210, 211, 0.78);
}

.tab-button {
    min-width: 0;
    min-height: 55px;
    border-bottom: 4px solid transparent;
    background: transparent;
    color: var(--cyan);
    cursor: pointer;
    padding: 12px 9px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
}

.tab-button:hover {
    background: rgba(0, 168, 150, 0.2);
    color: #a9fffa;
}

.tab-button.is-active {
    border-bottom-color: var(--yellow);
    background: var(--green);
    color: #fff;
}

.tab-panel {
    min-width: 0;
}

.table-wrap {
    overflow: hidden;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.catalog-table {
    width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--panel);
    color: var(--text);
}

.catalog-table th,
.catalog-table td {
    height: 57px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 7px 10px;
    text-align: center;
    vertical-align: middle;
}

.catalog-table th:last-child,
.catalog-table td:last-child {
    border-right: 0;
}

.catalog-table thead th {
    height: 41px;
    background: var(--green);
    color: #fff;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.catalog-table thead th:first-child {
    width: 14%;
}

.catalog-table thead th:nth-child(2) {
    width: 42%;
}

.catalog-table thead th:nth-child(3) {
    width: 20%;
}

.catalog-table thead th:nth-child(4) {
    width: 24%;
}

.catalog-table tbody tr:nth-child(odd) {
    background: var(--row);
}

.catalog-table tbody tr:nth-child(even) {
    background: var(--row-alt);
}

.catalog-table tbody tr:hover {
    background: #28547f;
}

.catalog-table tbody tr:last-child > * {
    border-bottom: 0;
}

.item-image img {
    width: 42px;
    height: 42px;
    margin: 0 auto;
    object-fit: contain;
    filter: drop-shadow(0 3px 4px rgba(0, 0, 0, 0.34));
}

.item-name {
    color: #f0f3f7;
    font-size: 0.9rem;
    font-weight: 400;
}

.item-gems {
    font-variant-numeric: tabular-nums;
}

.quantity-field {
    display: inline-flex;
}

.quantity-input {
    width: 70px;
    height: 39px;
    border: 2px solid var(--cyan);
    border-radius: 6px;
    background: var(--row-alt);
    color: #fff;
    font-weight: 700;
    text-align: center;
    appearance: textfield;
}

.quantity-input::-webkit-inner-spin-button,
.quantity-input::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
}

.empty-state {
    color: var(--muted);
    padding: 22px 16px;
    text-align: center;
}

.cal-container {
    margin-top: 20px;
    border: 1px solid var(--cyan);
    border-radius: 10px;
    background: var(--panel);
    box-shadow: var(--shadow);
    padding: 16px;
}

.order-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
}

.order-heading h2 {
    color: var(--cyan);
    font-size: 1.48rem;
    font-weight: 500;
}

.order-heading p {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.order-heading-actions,
.result-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
}

.order-table {
    overflow: hidden;
    border-radius: 9px;
}

.order-table-head,
.order-line {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) minmax(100px, 27%);
    align-items: center;
}

.order-table-head {
    min-height: 41px;
    background: var(--green);
    color: #fff;
}

.order-table-head > * {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-right: 1px solid var(--line);
    padding: 8px 10px;
    font-size: 0.82rem;
    letter-spacing: 0.04em;
}

.order-table-head > *:last-child {
    border-right: 0;
}

.order-lines {
    list-style: none;
}

.order-line {
    min-height: 62px;
    background: var(--row);
    border-bottom: 1px solid var(--line);
}

.order-line:nth-child(even) {
    background: var(--row-alt);
}

.order-line-details,
.order-line-gems {
    height: 100%;
    min-height: 62px;
    border-right: 1px solid var(--line);
}

.order-line-gems {
    border-right: 0;
}

.remove-line {
    width: 30px;
    height: 30px;
    min-height: 30px;
    align-self: center;
    justify-self: center;
    border-radius: 50%;
    background: var(--danger);
    color: #fff;
    cursor: pointer;
    font-size: 1.18rem;
    font-weight: 900;
    line-height: 1;
}

.remove-line:hover {
    background: #c94354;
}

.order-line-details {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 13px;
}

.order-line-details img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.order-line-copy {
    min-width: 0;
}

.order-line-copy strong,
.order-line-copy small {
    display: block;
}

.order-line-copy strong {
    overflow-wrap: anywhere;
    color: var(--cyan);
    font-size: 0.92rem;
}

.order-line-copy small {
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.78rem;
}

.order-line-gems {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--yellow);
    font-variant-numeric: tabular-nums;
    padding: 8px;
}

.total-line {
    min-height: 51px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 12px;
    border-top: 1px solid rgba(224, 224, 224, 0.45);
    border-bottom: 1px solid var(--line);
    color: var(--yellow);
    font-weight: 800;
    padding: 10px 9px;
}

.price-converter {
    margin-top: 15px;
}

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

.form-grid label {
    display: grid;
    gap: 7px;
}

.form-grid label > span {
    color: #f2f4f8;
    font-size: 0.92rem;
}

.form-grid select {
    cursor: pointer;
}

.price-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    border: 1px solid rgba(255, 183, 3, 0.42);
    border-radius: 8px;
    background: rgba(255, 183, 3, 0.06);
    padding: 14px 16px;
}

.price-result > span {
    font-size: 1.05rem;
    font-weight: 700;
}

.price-result strong {
    color: var(--yellow);
    font-size: clamp(1.35rem, 3vw, 1.9rem);
    font-variant-numeric: tabular-nums;
    text-align: right;
}

#estimated-price,
#estimated-currency {
    display: block;
}

#estimated-currency {
    margin-top: 2px;
    color: #e8edf3;
    font-size: 0.76rem;
    font-weight: 650;
    line-height: 1.2;
}

.order-result {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 16px;
    border: 1px solid rgba(37, 211, 102, 0.62);
    border-radius: 10px;
    background: rgba(37, 211, 102, 0.08);
    padding: 14px;
}

.order-result h3 {
    color: #7ef2a8;
    font-size: 1.1rem;
}

.order-result p {
    margin-top: 3px;
    color: #cbd8d7;
    font-size: 0.84rem;
}

.seo-content,
.payment-section,
.faq-section {
    margin-top: 34px;
}

.seo-content {
    display: grid;
    gap: 18px;
}

.seo-content article,
.payment-section,
.faq-section {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    background: rgba(20, 20, 35, 0.64);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
    padding: 22px;
}

.seo-content h2,
.payment-section > h2,
.faq-section > h2 {
    color: var(--cyan);
    font-size: clamp(1.28rem, 2.5vw, 1.72rem);
    line-height: 1.25;
}

.seo-content h3 {
    color: var(--yellow);
    font-size: 1.18rem;
}

.seo-content p {
    margin-top: 9px;
    color: #c9d2df;
}

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

.requirements {
    border-color: rgba(255, 183, 3, 0.22) !important;
}

.payment-section > h2,
.faq-section > h2 {
    margin-bottom: 18px;
    text-align: center;
}

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

.payment-card {
    min-width: 0;
    border: 1px solid var(--soft-line);
    border-radius: 12px;
    background: rgba(22, 33, 62, 0.8);
    padding: 14px;
}

.payment-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f2f7ff;
    font-size: 0.92rem;
}

.country-flag {
    width: 36px;
    height: 24px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: #fff;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.28);
    object-fit: cover;
}

.payment-card ul {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 11px;
    list-style: none;
}

.payment-card li {
    border: 1px solid rgba(0, 210, 211, 0.24);
    border-radius: 999px;
    color: #bdd0dc;
    padding: 4px 8px;
    font-size: 0.73rem;
}

.faq-list {
    display: grid;
    gap: 9px;
}

.faq-list details {
    border: 1px solid var(--soft-line);
    border-radius: 9px;
    background: rgba(22, 33, 62, 0.64);
    padding: 0 14px;
}

.faq-list summary {
    cursor: pointer;
    color: #f0f4f8;
    font-weight: 700;
    padding: 14px 0;
}

.faq-list details[open] summary {
    color: var(--cyan);
}

.faq-list p {
    border-top: 1px solid rgba(0, 210, 211, 0.18);
    color: #c2ced9;
    padding: 12px 0 15px;
}

.site-footer {
    border-top: 1px solid rgba(0, 210, 211, 0.2);
    color: #8ea0b5;
    padding: 20px;
    text-align: center;
}

.site-footer strong {
    color: var(--cyan);
}

.toast-region {
    position: fixed;
    right: 18px;
    bottom: max(18px, env(safe-area-inset-bottom));
    z-index: 950;
    width: min(360px, calc(100vw - 36px));
    display: grid;
    gap: 9px;
    pointer-events: none;
}

.toast {
    border: 1px solid rgba(0, 210, 211, 0.68);
    border-radius: 8px;
    background: #0b2741;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.34);
    color: #eaffff;
    padding: 12px 14px;
    animation: toast-in 180ms ease-out both;
}

.toast.is-error {
    border-color: rgba(224, 82, 99, 0.8);
    background: #3c1827;
    color: #ffe7eb;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(9px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Shared order link */
.shared-order-page {
    width: min(100%, 1100px);
    margin: 0 auto;
    padding: 22px 20px 56px;
}

.shared-order-card,
.shared-order-error {
    overflow: hidden;
    border: 1px solid var(--cyan);
    border-radius: 12px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.shared-order-title {
    margin-bottom: 22px;
}

.shared-order-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--line);
    padding: 15px 18px;
}

.shared-order-topline h2 {
    color: var(--cyan);
    font-size: 1.35rem;
}

.order-reference {
    border-radius: 999px;
    background: rgba(0, 210, 211, 0.12);
    color: #c9ffff;
    padding: 6px 10px;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.shared-items {
    width: 100%;
    border-collapse: collapse;
}

.shared-items th,
.shared-items td {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 9px 11px;
    text-align: center;
}

.shared-items th:last-child,
.shared-items td:last-child {
    border-right: 0;
}

.shared-items thead th {
    background: var(--green);
    color: #fff;
    font-size: 0.8rem;
    letter-spacing: 0.04em;
}

.shared-items tbody tr:nth-child(even) {
    background: var(--row-alt);
}

.shared-item-name {
    display: flex;
    align-items: center;
    gap: 11px;
    color: #dff;
    text-align: left;
}

.shared-item-name img {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    object-fit: contain;
}

.shared-items .shared-subtotal {
    color: var(--yellow);
    font-weight: 800;
}

.shared-order-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-bottom: 1px solid var(--line);
}

.shared-order-summary > div {
    border-right: 1px solid var(--line);
    padding: 14px;
    text-align: center;
}

.shared-order-summary > div:nth-child(2),
.shared-order-summary > div:last-child {
    border-right: 0;
}

.shared-order-summary .shared-commercial {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    padding: 0;
}

.shared-commercial > div {
    padding: 14px;
    text-align: center;
}

.shared-commercial > div:first-child {
    border-right: 1px solid var(--line);
}

.shared-order-summary span,
.shared-order-summary strong {
    display: block;
}

.shared-order-summary span {
    color: var(--muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.shared-order-summary strong {
    margin-top: 3px;
    color: #fff;
    font-size: 1rem;
}

.shared-order-summary .shared-price strong {
    color: var(--yellow);
    font-size: 1.2rem;
}

.shared-order-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 18px;
}

.shared-order-note {
    color: var(--muted);
    padding: 0 18px 18px;
    font-size: 0.78rem;
    text-align: center;
}

.shared-order-error {
    padding: 34px 22px;
    text-align: center;
}

.shared-order-error h1 {
    color: var(--cyan);
    font-size: 1.65rem;
}

.shared-order-error p {
    margin: 10px auto 20px;
    max-width: 560px;
    color: var(--muted);
}

@media (max-width: 1040px) {
    .tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

@media (max-width: 760px) {
    .site-container,
    .shared-order-page {
        padding-right: 14px;
        padding-left: 14px;
    }

    .top-actions {
        min-height: 0;
    }

    .title {
        margin-bottom: 11px;
        font-size: clamp(1.05rem, 4.7vw, 1.2rem);
        letter-spacing: 0.7px;
        line-height: 1.12;
    }

    .calculator-header {
        min-height: 72px;
        margin-bottom: 11px;
        border-radius: 11px;
        padding: 10px 14px;
    }

    .calculator-header .title {
        margin: 0;
        font-size: clamp(1.06rem, 5vw, 1.28rem);
        letter-spacing: 1px;
        line-height: 1.13;
        text-align: center;
    }

    .tabs {
        display: flex;
        gap: 7px;
        overflow-x: auto;
        margin-bottom: 10px;
        border-bottom: 0;
        padding: 1px 1px 5px;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        overscroll-behavior-inline: contain;
    }

    .tabs::-webkit-scrollbar {
        display: none;
    }

    .tab-button {
        min-width: max-content;
        min-height: 38px;
        flex: 0 0 auto;
        border: 1px solid rgba(0, 210, 211, 0.36);
        border-radius: 999px;
        background: rgba(22, 33, 62, 0.88);
        padding: 7px 13px;
        scroll-snap-align: start;
        color: #9ff8f4;
        cursor: pointer;
        font-size: 0.76rem;
        font-weight: 700;
    }

    .tab-button.is-active {
        border-color: var(--yellow);
        background: linear-gradient(135deg, var(--green), #087f78);
        box-shadow: 0 5px 14px rgba(0, 168, 150, 0.22);
        color: #fff;
    }

    .table-wrap {
        border-radius: 9px;
    }

    .catalog-table th,
    .catalog-table td {
        height: 55px;
        padding: 6px 5px;
    }

    .catalog-table thead th {
        height: 39px;
        font-size: 0.66rem;
        letter-spacing: 0;
    }

    .catalog-table thead th:first-child {
        width: 48px;
    }

    .catalog-table thead th:nth-child(2) {
        width: auto;
    }

    .catalog-table thead th:nth-child(3) {
        width: 60px;
    }

    .catalog-table thead th:nth-child(4) {
        width: 84px;
    }

    .item-image img {
        width: 34px;
        height: 34px;
    }

    .item-name,
    .item-gems {
        font-size: 0.75rem;
    }

    .quantity-input {
        width: 60px;
        height: 40px;
        font-size: 0.85rem;
    }

    .cal-container {
        padding: 12px;
    }

    .order-heading {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        justify-content: stretch;
        gap: 10px;
        text-align: center;
    }

    .order-heading h2 {
        font-size: 1.35rem;
    }

    .order-heading-actions {
        display: grid;
        grid-template-columns: 0.7fr 1.3fr;
        width: 100%;
    }

    .order-heading-actions > * {
        width: 100%;
    }

    .order-table-head,
    .order-line {
        grid-template-columns: 42px minmax(0, 1fr) 78px;
    }

    .order-table-head > * {
        padding: 7px 4px;
        font-size: 0.68rem;
        letter-spacing: 0;
    }

    .order-line-details {
        gap: 8px;
        padding: 6px 7px;
    }

    .order-line-details img {
        width: 36px;
        height: 36px;
    }

    .order-line-copy strong {
        font-size: 0.77rem;
    }

    .order-line-copy small {
        font-size: 0.68rem;
    }

    .order-line-gems {
        padding: 5px;
        font-size: 0.78rem;
    }

    .remove-line {
        position: relative;
        width: 44px;
        height: 44px;
        min-height: 44px;
        border: 0;
        background: transparent;
        color: transparent;
        font-size: 0;
    }

    .remove-line::before {
        content: "×";
        position: absolute;
        inset: 9px;
        width: 26px;
        height: 26px;
        display: grid;
        place-items: center;
        border: 2px solid #ff3b30;
        border-radius: 50%;
        background: #ff3b30;
        color: #fff;
        font-size: 1rem;
        font-weight: 900;
        line-height: 1;
    }

    .remove-line:hover {
        background: transparent;
    }

    .remove-line:hover::before {
        background: #c94354;
    }

    .info-columns {
        grid-template-columns: 1fr;
    }

    .form-grid {
        grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
        gap: 8px;
    }

    .form-grid label {
        grid-template-rows: minmax(42px, auto) 42px;
        gap: 5px;
    }

    .form-grid label > span {
        align-self: end;
        font-size: 0.8rem;
        line-height: 1.25;
    }

    .form-grid select {
        min-height: 42px;
        padding: 7px 28px 7px 9px;
        font-size: 0.82rem;
    }

    #currency {
        padding-right: 24px;
        font-size: 0.78rem;
    }

    .price-result {
        padding: 12px;
    }

    .order-result {
        display: grid;
        justify-content: stretch;
        text-align: center;
    }

    .result-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .result-actions > * {
        width: 100%;
    }

    .seo-content article,
    .payment-section,
    .faq-section {
        padding: 17px;
    }

    .payment-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .shared-order-topline {
        align-items: flex-start;
        flex-direction: column;
    }

    .shared-items th,
    .shared-items td {
        padding: 7px 5px;
        font-size: 0.75rem;
    }

    .shared-item-name {
        gap: 7px;
    }

    .shared-item-name img {
        width: 34px;
        height: 34px;
    }

}

@media (max-width: 430px) {
    .site-container {
        padding-right: 10px;
        padding-left: 10px;
    }

    .title {
        font-size: 1.05rem;
    }

    .catalog-table thead th:first-child {
        width: 43px;
    }

    .catalog-table thead th:nth-child(3) {
        width: 54px;
    }

    .catalog-table thead th:nth-child(4) {
        width: 76px;
        font-size: 0.61rem;
    }

    .item-name,
    .item-gems {
        font-size: 0.69rem;
    }

    .quantity-input {
        width: 54px;
        height: 38px;
    }

    .payment-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

@media print {
    body {
        background: #fff;
        color: #000;
    }

    .availability-notice,
    .shared-order-actions,
    .site-footer {
        display: none !important;
    }

    .shared-order-page {
        width: 100%;
        padding: 0;
    }

    .shared-order-card {
        border-color: #777;
        background: #fff;
        box-shadow: none;
        color: #000;
    }

    .shared-items th,
    .shared-items td,
    .shared-order-summary > div {
        border-color: #777;
        color: #000;
    }

    .shared-order-topline h2,
    .shared-item-name,
    .shared-order-summary strong,
    .shared-order-summary .shared-price strong {
        color: #000;
    }
}
