:root {
    color-scheme: light;
    --ink: #10213b;
    --muted: #60708a;
    --line: #d9e2ef;
    --surface: #ffffff;
    --surface-soft: #f8fafd;
    --wash: #f4f7fb;
    --primary: #1764c0;
    --primary-dark: #0d478e;
    --primary-soft: #edf5ff;
    --accent: #0b8c80;
    --accent-soft: #e9f8f5;
    --success: #087c55;
    --warning: #9b6400;
    --shadow-sm: 0 8px 22px rgba(29, 48, 77, 0.06);
    --shadow-md: 0 20px 46px rgba(29, 48, 77, 0.12);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    min-height: 100vh;
    background: var(--wash);
    color: var(--ink);
    font-family: "Segoe UI", Inter, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

h1,
h2,
h3,
p {
    letter-spacing: 0;
}

h1,
h2,
h3 {
    margin-top: 0;
}

.brand-lockup {
    align-items: center;
    display: inline-flex;
    gap: 10px;
    min-width: 0;
}

.brand-lockup strong {
    color: var(--ink);
    font-size: 22px;
    letter-spacing: 0;
    line-height: 1;
}

.brand-mark {
    align-items: center;
    background: var(--primary);
    border-radius: 7px;
    box-shadow: 0 5px 12px rgba(23, 100, 192, 0.22);
    color: #ffffff;
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 12px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    letter-spacing: 0;
    width: 34px;
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    color: var(--primary-dark);
}

.landing-page {
    background: #f8faff;
    color: #0f172a;
    font-family: "Plus Jakarta Sans", "Segoe UI", Inter, Arial, sans-serif;
    font-synthesis: none;
    min-height: 100vh;
    padding: 77px 0 42px;
    text-rendering: optimizeLegibility;
}

.landing-nav {
    align-items: center;
    background: #ffffff;
    border-bottom: 1px solid #edf1f7;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    left: 0;
    margin: 0;
    padding: 16px max(24px, calc((100% - 1500px) / 2));
    position: fixed;
    right: 0;
    top: 0;
    width: 100%;
    z-index: 30;
}

.landing-brand {
    display: block;
    flex: 0 1 240px;
    line-height: 0;
}

.landing-brand img {
    height: 48px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 210px;
}

.landing-nav > .landing-nav-actions,
.landing-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.landing-install-app {
    background: #ffffff;
    border: 1px solid #bfd4ee;
    border-radius: 6px;
    color: var(--primary-dark);
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 14px;
}

.landing-install-app:hover {
    background: var(--primary-soft);
    border-color: #8fb5df;
}

.landing-page .button-link,
.landing-page .secondary-link {
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.landing-page .button-link:hover,
.landing-page .secondary-link:hover {
    transform: translateY(-2px);
}

.landing-page .button-link:active,
.landing-page .secondary-link:active {
    transform: translateY(0) scale(0.98);
}

.landing-language-switcher {
    margin: 0;
}

.landing-hero {
    align-items: center;
    display: block;
    background: #f5f8ff;
    margin: 0 auto;
    padding: 34px max(24px, calc((100% - 1360px) / 2)) 38px;
    width: 100%;
}

.landing-copy h1 {
    font-size: 52px;
    font-weight: 800;
    line-height: 1.14;
    margin-bottom: 14px;
    max-width: 1180px;
}

.landing-copy p {
    color: #475569;
    font-size: 17px;
    line-height: 1.65;
    max-width: 1180px;
}

.landing-actions {
    margin-top: 22px;
}

.landing-proof {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 700;
    gap: 10px 18px;
    margin-top: 18px;
}

.landing-proof span {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.landing-proof span::before {
    background: var(--accent);
    border-radius: 999px;
    content: "";
    height: 6px;
    width: 6px;
}

.landing-dashboard {
    background: #ffffff;
    border: 1px solid #dbe5f1;
    border-radius: 16px;
    box-shadow: 0 24px 56px rgba(13, 59, 102, 0.12);
    margin-top: 24px;
    padding: 22px;
    position: relative;
    transition: box-shadow 0.28s ease, transform 0.28s ease;
}

.landing-dashboard:hover {
    box-shadow: 0 30px 68px rgba(13, 59, 102, 0.16);
    transform: translateY(-4px);
}

.landing-dashboard::before {
    background: #0052cc;
    border-radius: 16px 16px 0 0;
    content: "";
    height: 5px;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
}

.preview-top {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 4px;
    padding-bottom: 16px;
}

.preview-status-row {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.preview-active-status,
.preview-sync {
    align-items: center;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.preview-active-status {
    color: #087c55;
}

.preview-active-status i,
.preview-sync i {
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    height: 9px;
    width: 9px;
}

.preview-sync {
    background: #f1f5f9;
    border-radius: 999px;
    color: #526277;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
    padding: 5px 9px;
    text-transform: none;
}

.preview-sync i {
    height: 6px;
    width: 6px;
}

.preview-top span,
.preview-grid span {
    color: var(--muted);
    font-size: 13px;
}

.preview-top strong {
    font-size: 24px;
}

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

.preview-grid div {
    background: #f8faff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 14px;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.preview-grid div:hover {
    background: #eef5ff;
    border-color: #b9d0f1;
    transform: translateY(-2px);
}

.preview-grid div:last-child {
    background: #fff8f8;
    border-color: #ffd9de;
}

.preview-grid div:last-child span,
.preview-grid div:last-child strong {
    color: #e11d48;
}

.preview-grid strong {
    color: #0f172a;
    font-size: 19px;
}

.preview-list {
    display: grid;
    gap: 10px;
}

.preview-list p {
    background: #f8fafc;
    border-left: 3px solid #10b981;
    border-radius: 0 8px 8px 0;
    margin: 0;
    padding: 10px 12px;
}

.landing-features {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    width: min(1200px, 100%);
}

.landing-capabilities {
    background: #ffffff;
    border-top: 1px solid #e8eef6;
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
    margin: 0 auto;
    padding: 36px 0;
    width: min(1360px, calc(100% - 48px));
}

.landing-capabilities-heading {
    margin-bottom: 20px;
}

.landing-features article {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(13, 59, 102, 0.045);
    min-height: 0;
    padding: 22px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.landing-features article:hover {
    border-color: #b9cbed;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.feature-index {
    align-items: center;
    background: var(--primary-soft);
    border-radius: 10px;
    color: var(--primary-dark);
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.feature-index svg {
    fill: none;
    height: 20px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 20px;
}

.landing-features span {
    display: block;
    font-weight: 800;
    margin-bottom: 12px;
}

.landing-features h2 {
    font-size: 21px;
    margin-bottom: 8px;
}

.landing-pricing {
    background: #ffffff;
    border-top: 1px solid var(--line);
    box-shadow: 0 0 0 100vmax #ffffff;
    clip-path: inset(0 -100vmax);
    margin: 0 auto;
    padding: 36px 0;
    width: min(1360px, calc(100% - 48px));
}

.landing-steps,
.landing-faq {
    background: #f5f8ff;
    border-top: 1px solid var(--line);
    box-shadow: 0 0 0 100vmax #f5f8ff;
    clip-path: inset(0 -100vmax);
    margin: 0 auto;
    padding: 36px 0;
    width: min(1360px, calc(100% - 48px));
}

.landing-faq .landing-section-heading,
.landing-faq .faq-list {
    margin-left: auto;
    margin-right: auto;
    max-width: 960px;
}

.steps-list {
    display: grid;
    gap: 18px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    list-style: none;
    margin: 20px 0 0;
    padding: 0;
}

.steps-list li {
    align-items: flex-start;
    border-top: 3px solid var(--primary);
    display: flex;
    gap: 16px;
    padding: 14px 4px 0;
}

.steps-list > li > span {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 13px;
    font-weight: 800;
    height: 34px;
    justify-content: center;
    width: 34px;
}

.steps-list h3 {
    font-size: 18px;
    margin: 5px 0 8px;
}

.steps-list p {
    font-size: 14px;
    margin-bottom: 0;
}

.faq-list {
    display: grid;
    gap: 10px;
    max-width: 820px;
}

.faq-list details {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0 18px;
}

.faq-list details[open] {
    border-color: #b8cdeb;
    box-shadow: var(--shadow-sm);
}

.faq-list summary {
    color: var(--ink);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    list-style: none;
    padding: 18px 30px 18px 0;
    position: relative;
}

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

.faq-list summary::after {
    color: var(--primary);
    content: "+";
    font-size: 22px;
    font-weight: 400;
    position: absolute;
    right: 2px;
    top: 12px;
}

.faq-list details[open] summary::after {
    content: "−";
}

.faq-list p {
    margin: -2px 0 18px;
}

.landing-contact {
    align-items: center;
    background: #0d3f7f;
    border-radius: 16px;
    color: white;
    display: grid;
    gap: 32px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 36px auto 0;
    padding: 32px;
    width: min(1200px, 100%);
}

.landing-feedback {
    align-items: center;
    background: #eef7ff;
    border: 1px solid #cbdff5;
    border-radius: 8px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 30px auto 0;
    padding: 24px 28px;
    width: min(960px, 100%);
}

.landing-feedback h2 {
    font-size: 22px;
    margin-bottom: 6px;
}

.landing-feedback p {
    margin: 0;
    max-width: 660px;
}

.landing-feedback .secondary-link {
    flex: 0 0 auto;
}

.landing-contact .eyebrow {
    color: #8ed7ff;
}

.landing-contact h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.landing-contact p {
    color: #d9e9ff;
    margin-bottom: 0;
    max-width: 600px;
}

.contact-actions {
    align-items: flex-start;
    display: grid;
    gap: 10px;
    justify-items: stretch;
    width: 360px;
}

.contact-actions > a {
    justify-content: center;
    text-align: center;
    width: 100%;
}

.contact-actions .button-link {
    background: white;
    color: var(--primary-dark);
}

.contact-actions .button-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.contact-actions .secondary-link {
    background: transparent;
    border-color: #7db9e8;
    color: white;
}

.contact-actions .secondary-link:hover {
    background: rgba(255, 255, 255, 0.12);
    color: white;
}

.contact-actions span {
    color: #c3dcfa;
    font-size: 13px;
    font-weight: 600;
}

.landing-section-heading {
    margin-bottom: 18px;
    max-width: 640px;
}

.landing-section-heading h2 {
    font-size: 30px;
    margin-bottom: 10px;
}

.pricing-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pricing-plan {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    box-shadow: var(--shadow-sm);
    min-height: 330px;
    padding: 22px;
    position: relative;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.pricing-plan-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 30px;
}

.pricing-plan-status {
    display: flex;
    min-height: 30px;
}

.pricing-plan-number {
    align-items: center;
    border: 1px solid #c5d9f4;
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    flex: 0 0 40px;
    font-size: 14px;
    font-weight: 800;
    height: 40px;
    justify-content: center;
    width: 40px;
}

.pricing-plan:hover,
.pricing-plan:focus-within {
    transform: translateY(-5px);
}

.pricing-plan-starter {
    background: #f3f8ff;
    border-color: #cddff7;
}

.pricing-plan-starter .button-link {
    background: #456a9b;
}

.pricing-plan-starter:hover,
.pricing-plan-starter:focus-within {
    border-color: #7b9dc7;
    box-shadow: 0 18px 36px rgba(69, 106, 155, 0.2);
}

.pricing-plan-starter .button-link:hover {
    background: #35567f;
}

.pricing-plan-pro {
    background: #f0fbf9;
    border-color: #a9dfd7;
}

.pricing-plan-pro .pricing-plan-name {
    color: #087c73;
}

.pricing-plan-pro .plan-action button {
    background: #087c73;
}

.pricing-plan-pro .plan-action button:hover {
    background: #05655f;
}

.pricing-plan-business {
    background: #fff8ed;
    border-color: #f0d2a2;
}

.pricing-plan-business .pricing-plan-name {
    color: #a65a00;
}

.pricing-plan-business .button-link,
.pricing-plan-business .plan-action button {
    background: #a65a00;
}

.pricing-plan-business .button-link:hover,
.pricing-plan-business .plan-action button:hover {
    background: #7f4400;
}

.pricing-plan-business:hover,
.pricing-plan-business:focus-within {
    border-color: #dfab65;
    box-shadow: 0 18px 36px rgba(166, 90, 0, 0.18);
}

.pricing-plan-featured {
    border-color: var(--primary);
    box-shadow: 0 18px 46px rgba(23, 100, 192, 0.18);
    position: relative;
}

.pricing-plan-featured:hover,
.pricing-plan-featured:focus-within {
    border-color: #0e5ec8;
    box-shadow: 0 22px 46px rgba(23, 100, 192, 0.29);
}

.landing-motion-ready .pricing-plan-featured {
    animation: landing-pro-glow 3.8s ease-in-out infinite;
}

@keyframes landing-pro-glow {
    0%, 100% {
        box-shadow: 0 18px 46px rgba(23, 100, 192, 0.14);
    }

    50% {
        box-shadow: 0 22px 56px rgba(23, 100, 192, 0.25);
    }
}

.pricing-plan-featured::before {
    background: var(--primary);
    border-radius: 8px 8px 0 0;
    content: "";
    height: 5px;
    left: -1px;
    position: absolute;
    right: -1px;
    top: -1px;
}

.pricing-recommendation {
    align-self: flex-start;
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    margin: 0;
    padding: 5px 10px;
}

.pricing-current-badge {
    align-self: flex-start;
    background: var(--primary);
    border-radius: 999px;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    margin: 0;
    padding: 5px 10px;
}

.pricing-plan-featured .pricing-plan-name {
    margin-top: 2px;
}

.pricing-plan-name {
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.pricing-price {
    font-size: 28px;
    margin: 18px 0 8px;
}

.pricing-price small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
}

.pricing-plan ul {
    color: var(--muted);
    display: grid;
    gap: 8px;
    margin: 8px 0 24px;
    padding-left: 20px;
}

.subscription-plan-grid .pricing-plan ul {
    margin-bottom: 10px;
}

.pricing-plan .button-link {
    align-self: flex-start;
    margin-top: auto;
}

.pricing-assurance {
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    gap: 10px 28px;
    margin-top: 20px;
}

.pricing-assurance span::before {
    color: var(--success);
    content: "✓";
    font-weight: 800;
    margin-right: 8px;
}

.landing-footer {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin: 42px auto 0;
    padding-top: 20px;
    width: min(1360px, calc(100% - 48px));
}

.landing-footer-links {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    justify-content: flex-end;
}

.landing-footer-links > a {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.landing-footer-links > a:hover {
    color: var(--primary-dark);
}

.landing-footer-brand {
    align-items: center;
    display: flex;
    gap: 16px;
    min-width: 0;
}

.landing-footer-brand img {
    height: 38px;
    object-fit: contain;
    object-position: left center;
    width: 150px;
}

.landing-footer p {
    margin: 0;
    max-width: 700px;
}

.landing-footer-trust {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 999px;
    color: #087066;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
}

.landing-motion-ready .landing-reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.62s cubic-bezier(0.16, 1, 0.3, 1), transform 0.62s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.landing-motion-ready .landing-reveal.is-revealed {
    opacity: 1;
    transform: translateY(0);
}

.landing-page-actions .page-action-whatsapp {
    background: #10b981;
    border-color: #10b981;
    color: #ffffff;
    font-size: 19px;
}

.landing-page-actions .page-action-whatsapp svg {
    fill: currentColor;
    height: 21px;
    width: 21px;
}

.landing-page-actions .page-action-whatsapp:hover {
    background: #087c55;
    border-color: #087c55;
}

.landing-motion-ready .landing-nav-reveal {
    transform: translateY(-10px);
}

.landing-motion-ready .landing-hero-preview {
    transition-delay: 140ms;
}

.landing-motion-ready .landing-features .landing-reveal:nth-child(2),
.landing-motion-ready .steps-list .landing-reveal:nth-child(2),
.landing-motion-ready .pricing-grid .landing-reveal:nth-child(2),
.landing-motion-ready .faq-list .landing-reveal:nth-child(2) {
    transition-delay: 90ms;
}

.landing-motion-ready .landing-features .landing-reveal:nth-child(3),
.landing-motion-ready .steps-list .landing-reveal:nth-child(3),
.landing-motion-ready .pricing-grid .landing-reveal:nth-child(3),
.landing-motion-ready .faq-list .landing-reveal:nth-child(3) {
    transition-delay: 180ms;
}

.landing-motion-ready .faq-list .landing-reveal:nth-child(4) {
    transition-delay: 270ms;
}

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

    .landing-motion-ready .landing-reveal {
        opacity: 1;
        transform: none;
    }
}

.legal-page {
    background: var(--wash);
}

.legal-shell {
    margin: 0 auto;
    padding: 24px;
    width: min(920px, 100%);
}

.legal-nav {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 48px;
}

.legal-nav > div {
    align-items: center;
    display: flex;
    gap: 18px;
}

.legal-nav > div a {
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.legal-document {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    padding: 46px;
}

.legal-document h1 {
    font-size: 34px;
    margin-bottom: 14px;
}

.legal-intro {
    font-size: 18px;
    max-width: 680px;
}

.legal-section {
    border-top: 1px solid var(--line);
    margin-top: 28px;
    padding-top: 24px;
}

.legal-section h2 {
    font-size: 19px;
    margin-bottom: 8px;
}

.legal-section p {
    margin-bottom: 0;
}

.legal-contact {
    background: var(--primary-soft);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    margin-top: 32px;
    padding: 20px;
}

.legal-contact > span {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.legal-contact strong {
    font-size: 17px;
}

.legal-contact a {
    font-size: 14px;
    font-weight: 700;
}

.legal-updated {
    font-size: 12px;
    margin: 24px 0 0;
}

.page-actions {
    bottom: 22px;
    display: grid;
    gap: 8px;
    position: fixed;
    right: 22px;
    z-index: 40;
}

.page-action-menu {
    position: relative;
}

.page-action-menu summary {
    list-style: none;
}

.page-action-menu summary::-webkit-details-marker {
    display: none;
}

.page-action-popover {
    bottom: 0;
    display: grid;
    gap: 8px;
    position: absolute;
    right: 50px;
}

.page-action {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
    color: var(--primary-dark);
    display: inline-flex;
    font-size: 21px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    min-height: 42px;
    padding: 0;
    transition: background 0.15s ease, border-color 0.15s ease, opacity 0.15s ease, transform 0.15s ease;
    width: 42px;
}

.page-action:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
    transform: translateY(-1px);
}

.page-action-menu[open] > summary {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

.page-action-top {
    opacity: 0;
    pointer-events: none;
    transform: translateY(5px);
}

.page-action-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.auth-page {
    align-items: center;
    background: #f2f6fb;
    min-height: 100vh;
    display: grid;
    justify-items: center;
    padding: 24px;
}

.auth-layout {
    align-items: stretch;
    display: grid;
    gap: 64px;
    grid-template-columns: minmax(280px, 350px) minmax(0, 650px);
    justify-content: center;
    max-width: 1080px;
    margin: 0 auto;
    width: 100%;
}

.auth-aside {
    align-self: center;
    border-left: 3px solid var(--accent);
    display: grid;
    gap: 34px;
    padding: 8px 0 8px 30px;
}

.auth-aside-brand,
.auth-mobile-brand {
    display: block;
    line-height: 0;
}

.auth-aside-brand img {
    height: 62px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 238px;
}

.auth-aside-copy h2 {
    font-size: 34px;
    line-height: 1.16;
    margin-bottom: 12px;
}

.auth-aside-copy p {
    font-size: 16px;
    margin-bottom: 0;
    max-width: 340px;
}

.auth-benefit-list {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.auth-benefit-list li {
    color: #36506f;
    font-size: 14px;
    font-weight: 700;
}

.auth-benefit-list li::before {
    color: var(--accent);
    content: "✓";
    font-weight: 800;
    margin-right: 10px;
}

.auth-card,
.panel,
.metric {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
}

.auth-card {
    align-self: center;
    width: 100%;
    padding: 34px;
}

.choose-shop-page {
    background: #f8faff;
}

.choose-shop-card {
    max-width: 620px;
}

.choose-shop-card > h1 {
    font-size: 34px;
    line-height: 1.16;
    margin-bottom: 12px;
}

.choose-shop-card > p {
    color: var(--muted);
    margin-bottom: 26px;
}

.choose-shop-list form + form {
    margin-top: 10px;
}

.choose-shop-list button {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d9e2ef;
    border-radius: 10px;
    color: var(--ink);
    display: flex;
    font: inherit;
    font-weight: 800;
    justify-content: space-between;
    padding: 16px 18px;
    text-align: left;
    width: 100%;
}

.choose-shop-list button:hover {
    background: var(--primary-soft);
    border-color: var(--primary);
}

.choose-shop-list button small {
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
}

.choose-shop-empty {
    align-items: center;
    background: #f8faff;
    border: 1px dashed #b8c8df;
    border-radius: 12px;
    display: grid;
    justify-items: center;
    margin-top: 26px;
    padding: 34px 28px;
    text-align: center;
}

.choose-shop-empty-icon {
    align-items: center;
    background: #e8f0ff;
    border-radius: 50%;
    color: var(--primary);
    display: inline-flex;
    font-size: 26px;
    font-weight: 500;
    height: 48px;
    justify-content: center;
    margin-bottom: 16px;
    width: 48px;
}

.choose-shop-empty strong {
    font-size: 18px;
}

.choose-shop-empty p {
    color: var(--muted);
    margin: 8px 0 22px;
    max-width: 430px;
}

.choose-shop-empty-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.auth-plan-summary {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 6px 22px;
    grid-template-columns: 1fr auto auto;
    margin: 24px 0 4px;
    padding: 0 0 18px;
}

.auth-plan-summary div span {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin: 0;
}

.auth-plan-summary strong {
    color: var(--ink);
    display: block;
    font-size: 16px;
}

.auth-plan-summary a {
    font-size: 13px;
    font-weight: 700;
}

.auth-page-register .auth-layout {
    align-items: stretch;
    gap: 34px;
    grid-template-columns: minmax(0, 650px) minmax(250px, 320px);
    max-width: 1004px;
}

.auth-page-register .auth-aside {
    align-items: flex-start;
    align-self: start;
    background: #e9f8f5;
    border: 1px solid #b9e4dd;
    border-left: 4px solid var(--accent);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 26px;
    order: 2;
    padding: 30px 28px;
    position: sticky;
    top: 24px;
}

.auth-page-register .auth-card {
    order: 1;
    padding: 38px 42px;
}

.auth-page-register .auth-card-utility {
    justify-content: space-between;
}

.auth-page-register .auth-mobile-brand {
    display: block;
}

.auth-page-register .auth-mobile-brand img {
    height: 48px;
    max-width: 185px;
    object-fit: contain;
    object-position: left center;
    width: 185px;
}

.auth-page-register .auth-aside-brand img {
    height: 52px;
    width: 204px;
}

.auth-page-register .auth-aside-copy h2 {
    font-size: 28px;
}

.auth-page-register .auth-aside-copy p {
    color: #426777;
    font-size: 15px;
}

.auth-page-register .auth-benefit-list li {
    color: #245465;
}

.auth-poster-preview {
    border-top: 1px solid #b9e4dd;
    display: grid;
    gap: 7px;
    margin-top: 0;
    padding-top: 20px;
    width: 100%;
}

.auth-poster-preview > span {
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.auth-poster-preview > strong {
    font-size: 17px;
}

.auth-poster-preview-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr 1fr;
    margin-top: 6px;
}

.auth-poster-preview-grid p {
    border-left: 3px solid var(--accent);
    color: #426777;
    font-size: 12px;
    margin: 0;
    padding: 5px 0 5px 9px;
}

.auth-poster-preview-grid p:last-child {
    grid-column: 1 / -1;
}

.auth-poster-preview-grid b {
    color: var(--ink);
    display: block;
    font-size: 15px;
}

@media (max-width: 1040px) {
    .auth-page-register .auth-layout {
        display: block;
        max-width: 720px;
    }

    .auth-page-register .auth-aside {
        display: none;
    }
}

.auth-card-utility {
    align-items: center;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 28px;
    min-height: 28px;
}

.auth-mobile-brand {
    display: none;
}

.auth-utility-links,
.auth-language-links {
    align-items: center;
    display: flex;
}

.auth-utility-links {
    gap: 16px;
}

.auth-home-link {
    font-size: 13px;
    font-weight: 700;
}

.auth-language-links {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
}

.auth-language-links a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    padding: 5px 8px;
}

.auth-language-links a.is-current {
    background: var(--primary);
    color: white;
}

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

.eyebrow {
    display: block;
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    margin-bottom: 8px;
}

h1,
h2,
p {
    margin-top: 0;
}

h1,
h2 {
    letter-spacing: 0;
}

p {
    color: var(--muted);
    line-height: 1.55;
    margin-bottom: 12px;
}

.form-stack {
    display: grid;
    gap: 14px;
    margin-top: 22px;
}

.auth-form-section {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 14px;
    padding-top: 18px;
}

.auth-form-section:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.auth-form-section-heading {
    align-items: center;
    display: flex;
    gap: 9px;
}

.auth-form-section-heading > span {
    align-items: center;
    background: var(--accent-soft);
    border-radius: 999px;
    color: var(--accent);
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 24px;
    justify-content: center;
    width: 24px;
}

.auth-form-section-heading strong {
    font-size: 15px;
}

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

.form-row > label {
    align-self: start;
}

.form-row > label > input,
.form-row > label > select {
    height: 44px;
    min-height: 44px;
}

label {
    display: grid;
    gap: 6px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
}

input {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #ffffff;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
}

input:focus,
select:focus,
textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.14);
    outline: 0;
}

input[type="search"] {
    min-width: 0;
}

small {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.4;
}

.password-field {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 46px;
}

.password-field input {
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

.icon-button {
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-left: 0;
    border-radius: 0 6px 6px 0;
    color: var(--primary-dark);
    display: inline-flex;
    justify-content: center;
    padding: 0;
}

.icon-button:hover {
    background: #eef5ff;
    color: var(--primary-dark);
}

select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 6px;
    min-height: 44px;
    padding: 10px 12px;
    color: var(--ink);
    font: inherit;
    background: white;
}

button {
    border: 0;
    border-radius: 6px;
    background: var(--primary);
    color: white;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 16px;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

button:hover {
    background: var(--primary-dark);
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.68;
}

button.is-loading {
    align-items: center;
    display: inline-flex;
    gap: 8px;
    justify-content: center;
}

button.is-loading::before {
    animation: button-spin 0.7s linear infinite;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-right-color: #ffffff;
    border-radius: 999px;
    content: "";
    height: 13px;
    width: 13px;
}

@keyframes button-spin {
    to {
        transform: rotate(360deg);
    }
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    box-shadow: 0 0 0 3px rgba(31, 95, 191, 0.18);
    outline: 0;
}

.secondary-button,
.ghost-button {
    background: white;
    border: 1px solid var(--line);
    color: var(--primary-dark);
    border-radius: 6px;
    display: inline-block;
    font-weight: 700;
    padding: 10px 14px;
}

.secondary-button:hover,
.ghost-button:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.danger-button {
    background: #fff1f1;
    border: 1px solid #f2b8b8;
    border-radius: 6px;
    color: #9f1d1d;
    display: inline-block;
    font-weight: 700;
    padding: 10px 14px;
}

.danger-button:hover {
    background: #ffdede;
    color: #811616;
}

.secondary-button {
    justify-self: start;
}

.small-link {
    margin: 18px 0 0;
    font-size: 14px;
}

.google-auth-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d6dfeb;
    border-radius: 7px;
    color: var(--ink);
    display: flex;
    font-weight: 700;
    gap: 10px;
    justify-content: center;
    min-height: 46px;
    text-decoration: none;
}

.google-auth-button:hover {
    background: #f8fbff;
    border-color: #9fb8dd;
}

.google-auth-mark {
    color: #4285f4;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
}

.auth-divider {
    align-items: center;
    color: var(--muted);
    display: flex;
    font-size: 13px;
    gap: 12px;
    margin: 18px 0;
}

.auth-divider::before,
.auth-divider::after {
    background: var(--border);
    content: "";
    flex: 1;
    height: 1px;
}

.shell {
    margin-left: 282px;
    margin-right: 30px;
    max-width: 1240px;
    width: calc(100% - 312px);
    padding: 20px 0 56px;
}

.topbar {
    align-items: center;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(216, 222, 232, 0.85);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(29, 48, 77, 0.07);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 18px;
    padding: 12px 16px;
    position: sticky;
    top: 16px;
    z-index: 8;
}

.topbar > strong {
    color: var(--ink);
    display: grid;
    font-size: 26px;
    gap: 3px;
    grid-column: 2;
    justify-items: center;
    line-height: 1.08;
    min-width: 0;
    text-align: center;
}

.topbar > strong::after {
    color: var(--muted);
    content: attr(data-subtitle);
    font-size: 13px;
    font-weight: 500;
}

.topbar > div {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    gap: 14px;
    grid-column: 3;
    justify-content: flex-end;
    margin-left: auto;
}

.topbar > div > a {
    border-radius: 6px;
    color: #334155;
    font-size: 14px;
    font-weight: 700;
    padding: 8px 2px;
}

.topbar > div > a:hover {
    color: var(--primary-dark);
}

.topbar .back-link {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    display: inline-flex;
    gap: 8px;
    min-height: 40px;
    padding: 8px 12px;
}

.topbar .back-link:hover {
    background: var(--primary-soft);
}

.topbar-back {
    grid-template-columns: minmax(0, 1fr);
}

.topbar-back > div {
    grid-column: 1;
    justify-self: start;
    margin-left: 0;
}

.sr-only {
    height: 1px;
    margin: -1px;
    overflow: hidden;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.language-menu {
    position: relative;
}

.language-menu summary {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    list-style: none;
    width: 46px;
}

.language-menu summary::-webkit-details-marker {
    display: none;
}

.language-menu summary:hover {
    background: var(--primary-soft);
    border-color: #b9cbed;
}

.language-icon {
    font-size: 16px;
    line-height: 1;
}

.language-dropdown {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 2px;
    min-width: 58px;
    padding: 6px;
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    z-index: 30;
}

.language-dropdown a {
    align-items: center;
    border-radius: 6px;
    color: #334155;
    display: flex;
    font-size: 13px;
    font-weight: 700;
    justify-content: center;
    letter-spacing: 0;
    line-height: 1;
    padding: 8px 10px;
}

.language-dropdown a:hover,
.language-dropdown a.is-current {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.landing-language-switcher .language-dropdown {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
}

.side-nav {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    bottom: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 16px;
    left: 24px;
    padding: 20px 16px;
    position: fixed;
    top: 24px;
    width: 232px;
    z-index: 12;
}

.topbar .side-nav {
    align-items: stretch;
    flex: none;
    margin: 0;
}

.side-nav-header {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 9px;
    padding: 0 8px 16px;
}

.app-logo-link {
    display: block;
    line-height: 0;
}

.app-logo-link img {
    height: 52px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 186px;
}

.side-nav-header span {
    color: var(--muted);
    font-size: 13px;
}

.side-nav-links {
    display: grid;
    gap: 4px;
}

.side-nav-links a {
    align-items: center;
    border-radius: 6px;
    color: #334155;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
    padding: 9px 12px;
    position: relative;
}

.side-nav-links a:hover,
.side-nav-links a.is-active {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.side-nav-links a.is-active::before {
    background: var(--primary);
    border-radius: 999px;
    bottom: 9px;
    content: "";
    left: 0;
    position: absolute;
    top: 9px;
    width: 3px;
}

.nav-icon {
    align-items: center;
    background: #edf2f8;
    border-radius: 7px;
    color: #486078;
    display: inline-flex;
    flex: 0 0 28px;
    height: 28px;
    justify-content: center;
}

.nav-icon svg {
    fill: none;
    height: 17px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 17px;
}

.side-nav-links a.is-active .nav-icon,
.side-nav-links a:hover .nav-icon {
    background: var(--primary);
    color: white;
}

.mobile-nav-menu {
    display: none;
    position: relative;
}

.mobile-nav-menu summary {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    cursor: pointer;
    display: flex;
    font-weight: 800;
    gap: 8px;
    list-style: none;
    padding: 8px 12px;
}

.mobile-nav-menu summary::-webkit-details-marker {
    display: none;
}

.mobile-nav-icon {
    font-size: 18px;
    line-height: 1;
}

.mobile-nav-links {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 4px;
    left: 0;
    min-width: 230px;
    padding: 8px;
    position: absolute;
    top: calc(100% + 8px);
    z-index: 25;
}

.utility-menu-backdrop {
    display: none;
}

.utility-menu-backdrop.is-visible {
    backdrop-filter: blur(4px);
    background: rgba(244, 247, 251, 0.46);
    display: block;
    inset: 0;
    position: fixed;
    z-index: 15;
}

body:has(.utility-menu-backdrop.is-visible) .topbar {
    z-index: 20;
}

body:has(.utility-menu-backdrop.is-visible) .page-actions {
    z-index: 6;
}

.mobile-nav-links a {
    align-items: center;
    border-radius: 6px;
    color: #334155;
    display: flex;
    font-weight: 800;
    gap: 10px;
    padding: 11px 12px;
}

.mobile-nav-links a:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.mobile-nav-links .mobile-nav-brand {
    border-bottom: 1px solid var(--line);
    display: block;
    line-height: 0;
    margin-bottom: 6px;
    padding: 6px 7px 12px;
}

.mobile-nav-links .mobile-nav-brand:hover {
    background: transparent;
}

.mobile-nav-brand img {
    height: 46px;
    object-fit: contain;
    object-position: left center;
    width: 165px;
}

.profile-menu {
    position: relative;
}

.profile-menu summary {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 999px;
    cursor: pointer;
    display: flex;
    gap: 8px;
    list-style: none;
    padding: 5px 10px 5px 5px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-menu summary:hover {
    background: var(--primary-soft);
    border-color: #b9cbed;
}

.profile-menu summary::-webkit-details-marker {
    display: none;
}

.profile-avatar {
    align-items: center;
    background: var(--primary);
    border-radius: 999px;
    color: white;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    height: 30px;
    justify-content: center;
    width: 30px;
}

.profile-name {
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-arrow {
    color: var(--muted);
}

.profile-dropdown {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-md);
    display: grid;
    gap: 0;
    max-width: calc(100vw - 36px);
    min-width: 0;
    padding: 4px;
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    width: 208px;
    z-index: 20;
}

.profile-dropdown-user {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 2px;
    margin-bottom: 4px;
    padding: 6px 8px 7px;
}

.profile-dropdown-user span,
.profile-dropdown-user strong {
    color: var(--muted);
    display: block;
    margin: 0;
}

.profile-dropdown-user span {
    font-size: 11px;
}

.profile-dropdown-user strong {
    color: var(--ink);
    font-size: 14px;
    line-height: 1.2;
}

.shop-switcher {
    border-bottom: 1px solid var(--line);
    margin-bottom: 6px;
    padding: 4px 0 8px;
}

.shop-switcher-title {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 10px 8px;
}

.shop-switcher form {
    margin: 0;
}

.shop-switch-button {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 4px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
}

.shop-switch-button:hover {
    background: #edf4ff;
    border-color: #b9cbed;
    color: var(--primary-dark);
}

.shop-switch-button:disabled {
    background: #e8f7ef;
    border-color: #b8e4ca;
    color: #12633f;
    cursor: default;
    opacity: 1;
}

.shop-switch-button > span {
    font-size: 13px;
}

.shop-switch-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.shop-active-badge {
    background: #d7f3e6;
    border-radius: 999px;
    color: var(--success);
    display: inline-block;
    font-size: 10px;
    font-weight: 800;
    margin-left: 5px;
    padding: 2px 6px;
    text-transform: uppercase;
}

.shop-switch-button small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.profile-dropdown a {
    border-radius: 6px;
    color: var(--ink);
    padding: 10px 12px;
}

.profile-dropdown a:hover {
    background: #eef5ff;
    color: var(--primary-dark);
}

.hero {
    padding: 34px 0 20px;
}

.hero h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 8px;
}

.hero p {
    color: #52647f;
    font-size: 16px;
    line-height: 1.55;
    margin-bottom: 0;
    max-width: 780px;
}

.dashboard-toolbar {
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 12px 0 20px;
    padding: 16px 18px;
}

.dashboard-toolbar span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-bottom: 4px;
}

.dashboard-toolbar strong {
    display: block;
    font-size: 17px;
}

.dashboard-context-meta {
    color: var(--muted);
    display: block;
    font-size: 12px;
    font-weight: 600;
    margin-top: 4px;
}

.dashboard-metrics-secondary {
    grid-template-columns: repeat(2, minmax(190px, 1fr));
    max-width: 50%;
}

.dashboard-note {
    border-left: 4px solid var(--primary);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 16px;
    margin: 20px 0;
}

.metric {
    --metric-color: var(--accent);
    --metric-surface: var(--surface);
    background: var(--metric-surface);
    min-height: 134px;
    padding: 20px;
    position: relative;
}

.metric::before {
    background: var(--metric-color);
    border-radius: 999px;
    content: "";
    display: block;
    height: 4px;
    margin-bottom: 12px;
    width: 30px;
}

.metric span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 8px;
}

.metric strong {
    color: var(--metric-color);
    font-size: 21px;
}

.metric-info {
    --metric-color: #2563eb;
    --metric-surface: #f4f8ff;
}

.metric-success {
    --metric-color: #07866f;
    --metric-surface: #f1fcf8;
}

.metric-warning {
    --metric-color: #b96800;
    --metric-surface: #fff8ed;
}

.metric-danger {
    --metric-color: #cf3152;
    --metric-surface: #fff4f6;
}

.metric-teal {
    --metric-color: #087a86;
    --metric-surface: #f0fbfc;
}

.module-products,
.module-stock,
.module-sales,
.module-customers,
.module-credits,
.module-cash {
    --module-accent: var(--primary);
    --module-soft: var(--primary-soft);
}

.module-products { --module-accent: #2563eb; --module-soft: #eff6ff; }
.module-stock { --module-accent: #b96800; --module-soft: #fff7ed; }
.module-sales { --module-accent: #07866f; --module-soft: #f1fcf8; }
.module-customers { --module-accent: #4f46e5; --module-soft: #eef2ff; }
.module-credits { --module-accent: #b45309; --module-soft: #fff7ed; }
.module-cash { --module-accent: #087a86; --module-soft: #f0fbfc; }

.module-products .eyebrow,
.module-stock .eyebrow,
.module-sales .eyebrow,
.module-customers .eyebrow,
.module-credits .eyebrow,
.module-cash .eyebrow,
.module-products .panel-header h2,
.module-stock .panel-header h2,
.module-sales .panel-header h2,
.module-customers .panel-header h2,
.module-credits .panel-header h2,
.module-cash .panel-header h2 {
    color: var(--module-accent);
}

.module-products .side-nav-links a.is-active,
.module-stock .side-nav-links a.is-active,
.module-sales .side-nav-links a.is-active,
.module-customers .side-nav-links a.is-active,
.module-credits .side-nav-links a.is-active,
.module-cash .side-nav-links a.is-active {
    background: var(--module-soft);
    color: var(--module-accent);
}

.module-products .side-nav-links a.is-active::before,
.module-stock .side-nav-links a.is-active::before,
.module-sales .side-nav-links a.is-active::before,
.module-customers .side-nav-links a.is-active::before,
.module-credits .side-nav-links a.is-active::before,
.module-cash .side-nav-links a.is-active::before,
.module-products .side-nav-links a.is-active .nav-icon,
.module-stock .side-nav-links a.is-active .nav-icon,
.module-sales .side-nav-links a.is-active .nav-icon,
.module-customers .side-nav-links a.is-active .nav-icon,
.module-credits .side-nav-links a.is-active .nav-icon,
.module-cash .side-nav-links a.is-active .nav-icon {
    background: var(--module-accent);
}

.module-products .table-wrap,
.module-stock .table-wrap,
.module-sales .table-wrap,
.module-customers .table-wrap,
.module-credits .table-wrap,
.module-cash .table-wrap {
    border-top: 3px solid var(--module-accent);
}

.module-products th,
.module-stock th,
.module-sales th,
.module-customers th,
.module-credits th,
.module-cash th {
    background: var(--module-soft);
}

.module-products .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal),
.module-stock .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal),
.module-sales .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal),
.module-customers .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal),
.module-credits .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal),
.module-cash .metric:not(.metric-info):not(.metric-success):not(.metric-warning):not(.metric-danger):not(.metric-teal) {
    --metric-color: var(--module-accent);
    --metric-surface: var(--module-soft);
}

.metric small {
    color: var(--muted);
    display: block;
    font-size: 12px;
    margin-top: 8px;
}

.panel {
    padding: 22px 24px;
    margin-bottom: 18px;
}

.notice {
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin: 0 0 16px;
    padding: 15px 16px;
    box-shadow: var(--shadow-sm);
}

.notice span {
    color: var(--muted);
    flex: 1;
}

.notice-warning {
    background: #fff8e6;
    border-color: #f3d58b;
}

.notice-info {
    background: var(--primary-soft);
    border-color: #bcd3f1;
}

.notice-success {
    background: #edf9f4;
    border-color: #9bd9c2;
}

.panel-header {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.panel-header h2 {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 0;
}

.button-link {
    align-items: center;
    background: var(--primary);
    border-radius: 6px;
    color: white;
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 15px;
    transition: background 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.button-link:hover {
    background: var(--primary-dark);
    color: white;
}

.action-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.form-actions,
.inline-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.secondary-link {
    align-items: center;
    background: white;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--primary-dark);
    display: inline-flex;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 14px;
}

.secondary-link:hover {
    background: var(--primary-soft);
    color: var(--primary-dark);
}

.text-link {
    font-weight: 700;
}

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

.search-row {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
}

.directory-search-row {
    margin: 20px 0 16px;
}

.import-products-form {
    align-items: end;
    background: #f8fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    margin: 18px 0 0;
    padding: 16px;
}

.import-products-form label {
    min-width: 0;
}

.import-products-form button {
    min-width: 220px;
    width: auto;
}

.directory-search-row + .table-wrap {
    margin-top: 0;
}

.agent-invitation-page {
    padding-block: 42px;
}

.agent-invitation-card {
    max-width: 640px;
}

.agent-invitation-card .auth-brand {
    margin-bottom: 22px;
}

.inline-form {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 0;
}

.inline-form select {
    min-width: 170px;
}

.inline-form button {
    padding: 9px 12px;
}

.filter-bar {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(220px, 1.5fr) repeat(2, minmax(160px, 1fr)) auto;
    margin: 18px 0;
}

.filter-bar label {
    display: grid;
    gap: 6px;
}

.filter-bar label > span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.filter-actions {
    align-items: center;
    display: flex;
    gap: 10px;
    min-height: 44px;
}

.table-actions {
    justify-content: flex-start;
}

.table-action-stack {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

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

.subscription-overview {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.subscription-panel-header {
    align-items: flex-start;
}

.subscription-panel-header .eyebrow {
    margin-bottom: 6px;
}

.subscription-panel-header h2 {
    margin-bottom: 0;
}

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

.subscription-limits {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.subscription-limits > span,
.subscription-next-step span {
    color: var(--primary);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
    text-transform: uppercase;
}

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

.subscription-figures p {
    color: var(--muted);
    font-size: 13px;
    margin: 0;
}

.subscription-figures strong {
    color: var(--ink);
    display: block;
    font-size: 19px;
    line-height: 1.2;
    margin-bottom: 4px;
}

.subscription-next-step {
    align-items: center;
    border-top: 1px solid var(--line);
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 22px;
    padding-top: 20px;
}

.subscription-next-step strong {
    display: block;
    font-size: 17px;
    margin-bottom: 4px;
}

.subscription-next-step p {
    color: var(--muted);
    margin: 0;
    max-width: 700px;
}

.subscription-reassurance {
    border-top: 1px solid var(--line);
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 600;
    gap: 10px 28px;
    margin-top: 28px;
    padding-top: 18px;
}

.subscription-reassurance p {
    margin: 0;
}

.subscription-reassurance p::before,
.plan-availability::before {
    color: var(--accent);
    content: "•";
    font-weight: 800;
    margin-right: 7px;
}

.plan-availability {
    color: var(--muted);
    font-size: 13px;
    font-weight: 600;
    margin-top: 16px;
}

.plan-action {
    margin-top: 0;
}

.plan-action button {
    width: 100%;
}

.local-payment-panel {
    max-width: 760px;
}

.local-payment-summary {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.billing-options {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 8px 0 16px;
    padding: 0;
}

.payment-method-options {
    border: 0;
    display: grid;
    gap: 8px;
    margin: 0 0 16px;
    padding: 0;
}

.billing-options legend,
.billing-options-static > span,
.payment-method-options legend {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 2px;
}

.billing-option {
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    gap: 10px;
    margin: 0;
    padding: 10px 12px;
}

.billing-option:has(input:checked) {
    background: var(--surface-soft);
    border-color: var(--primary);
}

.billing-option input {
    flex: 0 0 auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    width: auto;
}

.billing-option span {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.billing-option strong,
.billing-option small {
    margin: 0;
}

.billing-option small {
    color: var(--muted);
}

.local-payment-summary div {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 16px;
}

.local-payment-summary span {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-bottom: 6px;
}

.local-payment-summary strong {
    display: block;
    overflow-wrap: anywhere;
}

.local-payment-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.local-payment-actions form {
    flex: 1 1 240px;
}

.local-payment-actions button {
    width: 100%;
}

.subscription-plan > div {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 18px;
}

.subscription-plan span {
    color: var(--primary);
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.subscription-plan strong {
    display: block;
    font-size: 20px;
    margin-bottom: 8px;
}

.subscription-status {
    background: #f7f9fd;
}

.check-list {
    display: grid;
    gap: 10px;
}

.check-list p {
    border-left: 4px solid var(--primary);
    margin: 0;
    padding: 8px 12px;
}

.sale-lines {
    display: grid;
    gap: 10px;
}

.sale-line {
    align-items: end;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) 160px 94px;
}

.sale-line-head {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
    padding: 0 0 2px;
}

.sale-summary {
    background: var(--surface-soft);
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 4px 0;
    padding: 14px;
}

.sale-summary div {
    display: grid;
    gap: 5px;
}

.sale-summary span {
    color: var(--muted);
    font-size: 13px;
}

.sale-summary strong {
    font-size: 18px;
}

.sale-summary-total strong {
    color: var(--primary-dark);
}

.text-warning {
    color: var(--warning);
}

.muted-line {
    color: var(--muted);
    display: block;
    font-size: 13px;
    margin-top: 3px;
}

.badge {
    background: var(--primary-soft);
    border-radius: 999px;
    color: var(--primary-dark);
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 4px 9px;
    white-space: nowrap;
}

.badge-warning {
    background: #fff2cc;
    color: var(--warning);
}

.table-wrap {
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow-x: auto;
}

.empty-state {
    align-items: center;
    background: var(--surface-soft);
    border: 1px dashed #b7c7db;
    border-radius: 8px;
    display: grid;
    justify-items: start;
    min-height: 150px;
    padding: 24px;
}

.empty-state strong {
    font-size: 16px;
    margin-bottom: 6px;
}

.empty-state p {
    margin-bottom: 0;
}

.status-message {
    align-items: center;
    border-radius: 7px;
    display: flex;
    font-size: 14px;
    font-weight: 700;
    gap: 9px;
    padding: 12px 14px;
}

.status-message-success {
    background: #eaf8f1;
    color: #07633f;
}

.status-message-error {
    background: #fff0f0;
    color: #a22626;
}

table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
}

th,
td {
    border-bottom: 1px solid var(--line);
    padding: 14px 16px;
    text-align: left;
}

th {
    background: var(--surface-soft);
    color: #475467;
    font-size: 11px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-weight: 800;
}

thead th:first-child {
    border-top-left-radius: 8px;
}

thead th:last-child {
    border-top-right-radius: 8px;
}

tr:last-child td {
    border-bottom: 0;
}

tbody tr:hover {
    background: #fbfdff;
}

tbody td[colspan] {
    color: var(--muted);
    font-size: 14px;
    padding: 28px 18px;
    text-align: center;
}

tbody td[colspan]::before {
    color: var(--accent);
    content: "—";
    display: block;
    font-size: 22px;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 8px;
}

.code-box {
    border: 1px dashed var(--primary);
    border-radius: 8px;
    background: #eef5ff;
    color: var(--primary-dark);
    font-family: Consolas, monospace;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.45;
    overflow-wrap: anywhere;
    padding: 16px;
}

.receipt {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 14px 40px rgba(19, 34, 56, 0.08);
    padding: 28px;
}

.receipt-header {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.receipt-header h1 {
    margin-bottom: 4px;
}

.receipt-brand {
    align-items: flex-start;
    display: flex;
    gap: 14px;
    min-width: 0;
}

.receipt-shop-logo {
    border: 1px solid var(--line);
    border-radius: 6px;
    height: 58px;
    object-fit: contain;
    object-position: center;
    padding: 4px;
    width: 58px;
}

.shop-logo-controls {
    align-items: start;
    display: grid;
    gap: 18px;
    grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) auto;
}

.shop-logo-preview,
.shop-logo-placeholder {
    align-items: center;
    background: #f7faff;
    border: 1px dashed var(--line);
    border-radius: 8px;
    display: flex;
    justify-content: center;
    min-height: 120px;
    padding: 12px;
}

.shop-logo-preview img {
    max-height: 112px;
    max-width: 100%;
    object-fit: contain;
}

.shop-logo-placeholder,
.field-hint {
    color: var(--muted);
    font-size: 14px;
}

.shop-logo-form {
    gap: 10px;
}

.shop-logo-remove-form {
    align-self: end;
}

.receipt-meta {
    display: grid;
    gap: 6px;
    text-align: right;
}

.receipt-meta strong {
    font-size: 24px;
}

.receipt-meta span,
.receipt-details span,
.receipt-total span {
    color: var(--muted);
}

.receipt-details {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
}

.receipt-details div,
.receipt-total div {
    display: grid;
    gap: 5px;
}

.receipt-total {
    border-top: 2px solid var(--accent);
    display: grid;
    gap: 10px;
    justify-content: end;
    margin-top: 22px;
    padding-top: 14px;
}

.receipt-total div {
    grid-template-columns: 120px 160px;
}

.grand-total {
    border-top: 1px solid var(--line);
    padding-top: 10px;
}

.grand-total strong {
    font-size: 22px;
}

@media (min-width: 761px) and (max-width: 1100px) {
    .shell {
        margin-left: 258px;
        margin-right: 20px;
        padding-top: 16px;
        width: calc(100% - 278px);
    }

    .side-nav {
        bottom: 16px;
        left: 16px;
        top: 16px;
    }

    .dashboard-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-toolbar .action-row {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-toolbar .action-row a {
        justify-content: center;
        text-align: center;
    }

    .dashboard-metrics-primary,
    .dashboard-metrics-secondary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-width: none;
    }

    .topbar {
        grid-template-columns: minmax(0, 1fr) max-content;
        gap: 12px;
        min-height: 66px;
    }

    .topbar > strong {
        display: block;
        font-size: 21px;
        grid-column: 1;
        justify-items: start;
        text-align: left;
    }

    .topbar > strong::after {
        display: none;
    }

    .topbar > div {
        grid-column: 2;
        grid-row: 1;
        justify-content: flex-end;
        margin-left: auto;
    }

    .profile-menu .profile-name {
        display: none;
    }

    .profile-menu summary {
        gap: 6px;
        padding-right: 9px;
    }
}

@media (max-width: 760px) {
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .filter-actions {
        justify-content: stretch;
    }

    .filter-actions > * {
        flex: 1;
        text-align: center;
    }

    .form-row,
    .grid,
    .sale-line,
    .sale-summary,
    .landing-hero,
    .landing-features,
    .pricing-grid,
    .subscription-plan,
    .subscription-overview,
    .subscription-details,
    .split-layout,
    .search-row {
        grid-template-columns: 1fr;
    }

    .import-products-form {
        padding: 14px;
    }

    .import-products-form button {
        min-width: 0;
        width: 100%;
    }

    .directory-search-row {
        margin: 16px 0;
    }

    .platform-responsive-table {
        background: transparent;
        border: 0;
        overflow: visible;
    }

    .platform-responsive-table table,
    .platform-responsive-table tbody {
        display: block;
        width: 100%;
    }

    .platform-responsive-table thead {
        display: none;
    }

    .platform-responsive-table tbody {
        display: grid;
        gap: 12px;
    }

    .platform-responsive-table tr {
        background: var(--surface);
        border: 1px solid var(--line);
        border-radius: 8px;
        box-shadow: var(--shadow-sm);
        display: block;
        padding: 12px 14px;
    }

    .platform-responsive-table td {
        align-items: start;
        border: 0;
        display: grid;
        gap: 12px;
        grid-template-columns: minmax(92px, 0.8fr) minmax(0, 1.2fr);
        overflow-wrap: anywhere;
        padding: 8px 0;
        text-align: right;
    }

    .platform-responsive-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 12px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .platform-responsive-table td[colspan] {
        display: block;
        padding: 18px 0;
        text-align: center;
    }

    .platform-responsive-table td[colspan]::before {
        content: none;
    }

    .platform-responsive-table .table-action-stack,
    .platform-responsive-table .inline-form {
        align-items: stretch;
        width: 100%;
    }

    .platform-responsive-table .inline-form button,
    .platform-responsive-table .inline-form select {
        width: 100%;
    }

    .dashboard-responsive-table {
        border: 0;
        overflow: visible;
    }

    .dashboard-responsive-table table,
    .dashboard-responsive-table tbody {
        display: block;
        width: 100%;
    }

    .dashboard-responsive-table thead {
        display: none;
    }

    .dashboard-responsive-table tbody {
        display: grid;
        gap: 10px;
    }

    .dashboard-responsive-table tr {
        border: 1px solid var(--line);
        border-radius: 6px;
        display: block;
        padding: 8px 12px;
    }

    .dashboard-responsive-table td {
        align-items: center;
        border: 0;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(84px, 0.8fr) minmax(0, 1.2fr);
        overflow-wrap: anywhere;
        padding: 7px 0;
        text-align: right;
    }

    .dashboard-responsive-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .receipt-items-table {
        border: 0;
        overflow: visible;
    }

    .receipt-items-table table,
    .receipt-items-table tbody {
        display: block;
        width: 100%;
    }

    .receipt-items-table thead {
        display: none;
    }

    .receipt-items-table tbody {
        display: grid;
        gap: 10px;
    }

    .receipt-items-table tr {
        border: 1px solid var(--line);
        border-radius: 6px;
        display: block;
        padding: 8px 12px;
    }

    .receipt-items-table td {
        align-items: center;
        border: 0;
        display: grid;
        gap: 10px;
        grid-template-columns: minmax(84px, 0.8fr) minmax(0, 1.2fr);
        overflow-wrap: anywhere;
        padding: 7px 0;
        text-align: right;
    }

    .receipt-items-table td::before {
        color: var(--muted);
        content: attr(data-label);
        font-size: 11px;
        font-weight: 800;
        text-align: left;
        text-transform: uppercase;
    }

    .topbar.receipt-topbar {
        grid-template-columns: minmax(0, 1fr);
    }

    .topbar.receipt-topbar > strong {
        grid-column: 1;
        grid-row: 1;
        text-align: left;
    }

    .topbar.receipt-topbar > div {
        display: grid !important;
        gap: 8px;
        grid-column: 1;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-row: 2;
        margin: 0;
    }

    .topbar.receipt-topbar > div > a,
    .topbar.receipt-topbar > div > button {
        align-items: center;
        display: flex;
        justify-content: center;
        min-width: 0;
        overflow-wrap: anywhere;
        text-align: center;
        white-space: normal;
    }

    .topbar.receipt-topbar > div > button {
        grid-column: 1 / -1;
    }

    .receipt-total {
        justify-content: stretch;
    }

    .receipt-total div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .receipt-total strong {
        text-align: right;
    }

    .mobile-nav-links {
        max-height: min(70vh, calc(100vh - 100px));
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .platform-shop-workspace,
    .platform-shop-workspace > .panel,
    .platform-shop-workspace form,
    .platform-shop-workspace label {
        max-width: 100%;
        min-width: 0;
    }

    .platform-shop-workspace > .panel {
        overflow: hidden;
    }

    .platform-shop-workspace h2,
    .platform-shop-workspace p,
    .platform-shop-workspace small {
        overflow-wrap: anywhere;
    }

    .platform-create-shop-panel button {
        width: 100%;
    }

    .agent-invitation-page {
        padding-block: 18px;
    }

    .landing-page {
        padding: 70px 0 18px;
    }

    .shell {
        margin: 0 auto;
        width: min(100%, calc(100% - 24px));
        padding-top: 12px;
    }

    .side-nav {
        display: none;
    }

    .mobile-nav-menu {
        display: block;
    }

    .topbar {
        grid-template-columns: 52px minmax(0, 1fr) 50px 60px;
        gap: 10px;
        padding: 10px;
        top: 8px;
    }

    .topbar > div {
        display: contents;
    }

    .topbar-back {
        display: flex;
        justify-content: flex-start;
        min-height: 58px;
    }

    .topbar-back > div {
        display: block;
        width: 100%;
    }

    .topbar-back .back-link {
        align-items: flex-start;
        display: inline-flex;
        gap: 8px;
        line-height: 1.25;
        max-width: 100%;
        white-space: normal;
    }

    .topbar-back .back-link span[aria-hidden="true"] {
        line-height: 1.25;
    }

    .topbar > strong {
        display: block;
        font-size: 18px;
        grid-column: 2;
        grid-row: 1;
        line-height: 1.15;
        min-width: 0;
        overflow: hidden;
        pointer-events: none;
        position: relative;
        text-align: center;
        text-overflow: ellipsis;
        white-space: nowrap;
        z-index: 1;
    }

    .topbar > strong::after {
        display: none;
    }

    .mobile-nav-menu {
        grid-column: 1;
        grid-row: 1;
    }

    .mobile-nav-menu summary {
        border-radius: 999px;
        gap: 0;
        height: 44px;
        justify-content: center;
        padding: 0;
        width: 52px;
    }

    .mobile-nav-menu summary span:not(.mobile-nav-icon) {
        display: none;
    }

    .profile-menu {
        grid-column: 4;
        grid-row: 1;
        justify-self: end;
    }

    .language-menu {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .language-menu summary {
        height: 44px;
        width: 44px;
    }

    .language-menu {
        margin-right: 2px;
    }

    .language-dropdown {
        right: -54px;
    }

    .landing-language-switcher .language-dropdown {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .profile-menu summary {
        gap: 6px;
        height: 44px;
        padding: 5px 9px 5px 5px;
    }

    .profile-dropdown {
        min-width: 0;
        padding: 4px;
        width: min(208px, calc(100vw - 36px));
    }

    .profile-dropdown-user {
        display: grid;
        gap: 2px;
        margin-bottom: 4px;
        padding: 6px 8px 7px;
    }

    .profile-dropdown-user span,
    .profile-dropdown-user strong {
        display: block;
        margin: 0;
    }

    .profile-dropdown-user span {
        font-size: 11px;
    }

    .profile-dropdown-user strong {
        font-size: 14px;
    }

    .profile-dropdown a {
        padding: 8px 10px;
    }

    .profile-menu .profile-name {
        display: none;
    }

    .hero {
        padding: 28px 0 16px;
    }

    .hero h1 {
        font-size: 27px;
    }

    .subscription-plans-hero {
        padding: 34px 0 20px;
    }

    .subscription-plans-hero h1 {
        margin-bottom: 12px;
    }

    .subscription-plans-hero p {
        margin-bottom: 0;
    }

    .subscription-plans-notice {
        align-items: flex-start;
        display: grid;
        gap: 8px;
        line-height: 1.5;
    }

    .profile-name {
        max-width: 92px;
    }

    .dashboard-toolbar,
    .landing-footer,
    .subscription-next-step {
        align-items: stretch;
        flex-direction: column;
    }

    .subscription-next-step {
        gap: 14px;
    }

    .subscription-figures {
        grid-template-columns: 1fr;
    }

    .subscription-reassurance {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-nav {
        align-items: center;
        display: flex;
        gap: 10px;
        justify-content: space-between;
        padding: 14px 18px;
    }

    .landing-nav-actions > a[href="/"] {
        display: none;
    }

    .landing-brand {
        flex: 0 0 122px;
        min-width: 0;
    }

    .landing-brand img {
        height: 42px;
        max-width: none;
        width: 122px;
    }

    .landing-nav > .landing-nav-actions {
        flex: 0 0 auto;
        flex-wrap: nowrap;
        gap: 5px;
    }

    .landing-nav-actions > a:not(.button-link) {
        font-size: 12px;
    }

    .landing-nav-actions .button-link {
        font-size: 12px;
        line-height: 1.2;
        padding: 10px 11px;
        white-space: nowrap;
    }

    .landing-install-app {
        font-size: 12px;
        min-height: 38px;
        padding: 8px 10px;
        white-space: nowrap;
    }

    .landing-hero {
        margin-top: 0;
        margin-bottom: 0;
        min-width: 0;
        padding: 28px 18px 32px;
        width: 100%;
    }

    .landing-copy,
    .landing-dashboard {
        min-width: 0;
        width: 100%;
    }

    .landing-copy h1 {
        font-size: 35px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .landing-copy p {
        font-size: 16px;
        max-width: 100%;
        overflow-wrap: anywhere;
    }

    .landing-dashboard {
        margin-top: 22px;
        padding: 16px;
    }

    .landing-dashboard::before {
        left: 0;
    }

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

    .landing-proof {
        align-items: flex-start;
        flex-direction: column;
        gap: 9px;
    }

    .landing-capabilities {
        padding: 30px 0;
    }

    .landing-pricing {
        margin-top: 0;
        padding: 30px 0;
    }

    .landing-steps,
    .landing-faq {
        margin-top: 0;
        padding: 30px 0;
    }

    .landing-faq .landing-section-heading,
    .landing-faq .faq-list {
        max-width: 100%;
    }

    .steps-list {
        grid-template-columns: 1fr;
    }

    .landing-contact {
        align-items: stretch;
        gap: 24px;
        grid-template-columns: 1fr;
        margin-top: 30px;
        padding: 22px;
    }

    .landing-feedback {
        align-items: stretch;
        flex-direction: column;
    }

    .landing-feedback .secondary-link {
        justify-content: center;
    }

    .contact-actions {
        width: 100%;
    }

    .landing-contact h2 {
        font-size: 26px;
    }

    .landing-footer-brand {
        align-items: flex-start;
        flex-direction: column;
    }

    .landing-footer-links {
        justify-content: flex-start;
    }

    .legal-shell {
        padding: 18px;
    }

    .legal-nav {
        align-items: flex-start;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 28px;
    }

    .legal-document {
        padding: 26px 20px;
    }

    .legal-document h1 {
        font-size: 28px;
    }

    .legal-intro {
        font-size: 16px;
    }

    .page-actions {
        bottom: 16px;
        right: 12px;
    }

    .topbar {
        align-items: center;
    }

    .panel-header {
        align-items: stretch;
        flex-direction: column;
    }

    .action-row {
        align-items: stretch;
        flex-direction: column;
    }

    .form-actions,
    .inline-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .notice {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .inline-form {
        align-items: stretch;
        flex-direction: column;
    }

    .secondary-button {
        justify-self: stretch;
    }

    .receipt-header,
    .receipt-details {
        grid-template-columns: 1fr;
        flex-direction: column;
    }

    .receipt-meta {
        text-align: left;
    }

    .shop-logo-controls {
        grid-template-columns: 1fr;
    }

    .shop-logo-preview,
    .shop-logo-placeholder {
        max-width: 180px;
    }

    .shop-logo-remove-form {
        align-self: start;
    }

    .panel,
.auth-card {
        padding: 18px;
    }

    .auth-page {
        align-items: start;
        padding: 18px;
    }

    .auth-layout {
        display: block;
        max-width: 560px;
        margin: 0 auto;
    }

    .auth-aside {
        display: none;
    }

    .auth-card {
        margin-top: 8px;
    }

    .auth-plan-summary {
        align-items: start;
        gap: 10px;
        grid-template-columns: 1fr 1fr;
    }

    .auth-plan-summary a {
        grid-column: 1 / -1;
    }

    .auth-page-register .auth-card {
        padding: 22px 18px;
    }

    .auth-card-utility {
        justify-content: space-between;
        margin-bottom: 24px;
    }

    .auth-mobile-brand {
        display: block;
    }

    .auth-mobile-brand img {
        height: 40px;
        max-width: 150px;
        object-fit: contain;
        object-position: left center;
        width: 150px;
    }

    .auth-utility-links {
        gap: 10px;
    }

    .metric {
        min-height: 122px;
    }

    .dashboard-metrics-secondary {
        max-width: none;
    }

    th,
    td {
        padding: 12px;
    }
}

@media (max-width: 460px) {
    .landing-page {
        padding-top: 154px;
    }

    .landing-nav {
        display: grid;
        gap: 8px 10px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 38px 40px 40px;
        min-height: 154px;
        padding: 10px 12px;
    }

    .landing-brand {
        grid-column: 1;
        grid-row: 1;
        width: 104px;
    }

    .landing-brand img {
        height: 36px;
        width: 104px;
    }

    .landing-nav > .landing-nav-actions {
        display: contents;
    }

    .landing-nav-actions > a[href="/login"] {
        align-items: center;
        border: 1px solid var(--line);
        border-radius: 7px;
        display: inline-flex !important;
        font-size: 12px;
        font-weight: 700;
        grid-column: 1;
        grid-row: 2;
        justify-content: center;
        min-height: 40px;
        padding: 9px 12px;
    }

    .landing-language-switcher {
        grid-column: 2;
        grid-row: 1;
        justify-self: end;
    }

    .landing-language-switcher.language-menu summary {
        height: 38px;
        width: 38px;
    }

    .landing-nav-actions .button-link {
        align-items: center;
        display: inline-flex;
        font-size: 11px;
        grid-column: 2;
        grid-row: 2;
        justify-content: center;
        min-height: 38px;
        padding: 9px 10px;
        flex-shrink: 0;
    }

    .landing-install-app {
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: stretch;
        width: 100%;
    }
}

@media (max-width: 350px) {
    .landing-page {
        padding-top: 140px;
    }

    .landing-nav {
        gap: 6px 8px;
        grid-template-rows: 36px 38px 38px;
        min-height: 140px;
        padding: 8px 10px;
    }

    .landing-brand {
        flex-basis: 94px;
        width: 94px;
    }

    .landing-brand img {
        height: 34px;
        width: 94px;
    }

    .landing-nav-actions > a[href="/login"] {
        font-size: 11px;
        min-height: 38px;
        padding-inline: 8px;
    }

    .landing-nav-actions .button-link {
        font-size: 10px;
        min-height: 38px;
        padding-inline: 8px;
    }

    .landing-install-app {
        min-height: 38px;
        padding-inline: 8px;
    }
}

.auth-brand {
    display: block;
    line-height: 0;
    margin-bottom: 26px;
}

.auth-brand img {
    height: 58px;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 220px;
}

.page-loader {
    background: #0f74e8;
    height: 3px;
    inset: 0 auto auto 0;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    transform: translateX(-100%);
    transition: opacity 120ms ease;
    width: 38%;
    z-index: 10000;
}

body.is-page-loading .page-loader {
    animation: page-loader-slide 1.05s ease-in-out infinite;
    opacity: 1;
}

@keyframes page-loader-slide {
    from { transform: translateX(-100%); }
    to { transform: translateX(365%); }
}

@media (prefers-reduced-motion: reduce) {
    body.is-page-loading .page-loader {
        animation: none;
        transform: translateX(82%);
    }
}

@media print {
    @page {
        margin: 12mm;
        size: A4;
    }

    html,
    body {
        background: white;
        height: auto;
        min-height: 0;
        overflow: visible;
    }

    .no-print {
        display: none;
    }

    .shell,
    .receipt-page {
        display: block;
        margin: 0;
        max-width: none;
        padding: 0;
        width: 100%;
    }

    .receipt {
        border: 0;
        box-shadow: none;
        margin: 0 auto;
        max-width: 180mm;
        padding: 0;
    }

    .receipt-header {
        align-items: start;
        display: grid;
        flex-direction: row;
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 12mm;
        margin-bottom: 8mm;
    }

    .receipt-header h1 {
        font-size: 20pt;
    }

    .receipt-shop-logo {
        height: 18mm;
        width: 18mm;
    }

    .receipt-meta strong {
        font-size: 16pt;
    }

    .receipt-meta {
        justify-items: end;
        text-align: right;
    }

    .receipt-details {
        gap: 6mm;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        margin-bottom: 8mm;
    }

    .receipt-items-table {
        display: block;
        overflow: visible;
    }

    .receipt-items-table table {
        display: table;
        width: 100%;
    }

    .receipt-items-table thead {
        display: table-header-group;
    }

    .receipt-items-table tbody {
        display: table-row-group;
    }

    .receipt-items-table tr {
        border: 0;
        border-radius: 0;
        break-inside: avoid;
        display: table-row;
        padding: 0;
    }

    .receipt-items-table th,
    .receipt-items-table td {
        border-bottom: 1px solid #d8dee8;
        display: table-cell;
        padding: 3mm 2.5mm;
        text-align: left;
    }

    .receipt-items-table th:not(:first-child),
    .receipt-items-table td:not(:first-child) {
        text-align: right;
    }

    .receipt-items-table td::before {
        content: none;
        display: none;
    }

    .receipt-total {
        break-inside: avoid;
        border-top-width: 1px;
        gap: 2mm;
        margin-top: 8mm;
        padding-top: 4mm;
    }

    .receipt-total div {
        grid-template-columns: 40mm 42mm;
    }
}
