@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@300;400;500;600;700&display=swap');

:root {
    --lpm-green: #3157d5;
    --lpm-green-dark: #2447bf;
    --lpm-coral: #3157d5;
    --lpm-ink: #151a2d;
    --lpm-muted: #7b849c;
    --lpm-cream: #eaf0fb;
    --lpm-white: #fff;
}

/*
 * LINE POS pages are deliberately chromeless.  `no_header` / `no_footer`
 * handles the normal website layout, while these rules also cover themes and
 * the frontend-to-backend bar shown to authenticated Odoo users.
 */
body:has(:is(
    #lpm-app,
    .lpm-receipt,
    .lpm-signup,
    .lpm-wizard-container,
    .lpm-landing,
    .lpm-staff-invite-page,
    .lpm-dashboard,
    .lpm-settings,
    .lpm-management
)) #wrapwrap > header,
body:has(:is(
    #lpm-app,
    .lpm-receipt,
    .lpm-signup,
    .lpm-wizard-container,
    .lpm-landing,
    .lpm-staff-invite-page,
    .lpm-dashboard,
    .lpm-settings,
    .lpm-management
)) #wrapwrap > footer,
body:has(:is(
    #lpm-app,
    .lpm-receipt,
    .lpm-signup,
    .lpm-wizard-container,
    .lpm-landing,
    .lpm-staff-invite-page,
    .lpm-dashboard,
    .lpm-settings,
    .lpm-management
)) :is(
    #oe_main_menu_navbar,
    .o_frontend_to_backend_nav,
    .o_main_navbar,
    .o_website_edit_in_backend
) {
    display: none !important;
}

body:has(#lpm-app),
body:has(.lpm-receipt),
body:has(.lpm-signup),
body:has(.lpm-wizard-container),
body:has(.lpm-landing),
body:has(.lpm-staff-invite-page),
body:has(.lpm-dashboard),
body:has(.lpm-settings),
body:has(.lpm-management) {
    background: var(--lpm-cream);
    color: var(--lpm-ink);
    font-family: "Anuphan", sans-serif;
}

/* Hide Odoo admin navbar globally on these pages */
body:has(#lpm-app) #oe_main_menu_navbar,
body:has(.lpm-receipt) #oe_main_menu_navbar,
body:has(.lpm-signup) #oe_main_menu_navbar,
body:has(.lpm-wizard-container) #oe_main_menu_navbar,
body:has(.lpm-wizard-container) .o_frontend_to_backend_nav,
body:has(.lpm-wizard-container) .o_main_navbar,
body:has(.lpm-wizard-container) .o_website_edit_in_backend,
body:has(.lpm-landing) #oe_main_menu_navbar,
body:has(.lpm-staff-invite-page) #oe_main_menu_navbar,
body:has(.lpm-dashboard) #oe_main_menu_navbar,
body:has(.lpm-dashboard) .o_frontend_to_backend_nav,
body:has(.lpm-dashboard) .o_main_navbar,
body:has(.lpm-settings) #oe_main_menu_navbar,
body:has(.lpm-settings) .o_frontend_to_backend_nav,
body:has(.lpm-settings) .o_main_navbar,
body:has(.lpm-management) #oe_main_menu_navbar,
body:has(.lpm-management) .o_frontend_to_backend_nav,
body:has(.lpm-management) .o_main_navbar,
body:has(.lpm-management) .o_website_edit_in_backend {
    display: none !important;
}

body:has(.lpm-dashboard),
body:has(.lpm-management) {
    padding-top: 0 !important;
}

.lpm-staff-invite-page {
    min-height: 100vh;
    padding: 30px 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 15% 0%, #c8f3df, transparent 34%),
        var(--lpm-cream);
}

.lpm-staff-invite-card {
    width: min(100%, 520px);
    padding: 30px;
    border: 1px solid #dfe4dc;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 70px rgb(23 32 29 / 11%);
}

.lpm-staff-invite-card > .lpm-kicker {
    color: #166534;
}

.lpm-staff-invite-card h1 {
    margin: 5px 0 0;
}

.lpm-staff-invite-card h2 {
    margin: 4px 0 18px;
    color: var(--lpm-green);
}

.lpm-line-profile {
    margin: 20px 0;
    padding: 12px;
    border-radius: 12px;
    background: #e3f6ed;
}

.lpm-staff-invite-card small {
    display: block;
    margin-top: 18px;
    color: var(--lpm-muted);
}

.lpm-landing {
    min-height: 100vh;
    background:
        radial-gradient(circle at 86% 4%, rgb(49 87 213 / 18%), transparent 28rem),
        radial-gradient(circle at 4% 38%, rgb(118 149 235 / 10%), transparent 24rem),
        var(--lpm-cream);
}

.lpm-landing-header {
    width: min(calc(100% - 32px), 1120px);
    margin: auto;
    padding: 22px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lpm-landing-logo {
    display: inline-flex;
    align-items: center;
    color: var(--lpm-ink);
    text-decoration: none;
    font-size: 1.15rem;
    font-weight: 900;
}

.lpm-landing-logo img {
    width: auto;
    height: 48px;
    object-fit: contain;
}

.lpm-landing-hero-logo {
    display: block;
    width: min(100%, 390px);
    height: auto;
    margin-bottom: 18px;
    border-radius: 18px;
    mix-blend-mode: multiply;
}

.lpm-landing-logo span {
    padding: 4px 7px;
    border-radius: 7px;
    background: #06c755;
    color: white;
}

.lpm-landing-login {
    padding: 9px 14px;
    border: 1px solid #dce3f2;
    border-radius: 13px;
    background: rgb(255 255 255 / 88%);
    color: var(--lpm-green-dark);
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 6px 18px rgb(34 58 120 / 8%);
}

.lpm-secondary-button {
    color: var(--lpm-green-dark);
    text-decoration: none;
    font-weight: 800;
}

.lpm-landing-hero {
    width: min(calc(100% - 32px), 1120px);
    margin: 46px auto 76px;
    display: grid;
    gap: 34px;
    align-items: center;
}

.lpm-landing-copy h1 {
    margin: 9px 0 18px;
    font-size: clamp(2.5rem, 8vw, 5.2rem);
    line-height: 1.02;
    letter-spacing: -0.045em;
}

.lpm-landing-copy .lpm-kicker,
.lpm-section-title .lpm-kicker {
    color: var(--lpm-green);
}

.lpm-landing-copy > p {
    max-width: 620px;
    color: var(--lpm-muted);
    font-size: 1.08rem;
    line-height: 1.7;
}

.lpm-landing-actions {
    margin-top: 26px;
    display: flex;
    align-items: center;
    gap: 18px;
}

.lpm-entry-panel {
    padding: 30px;
    border: 1px solid #dfe5f0;
    border-radius: 26px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 24px 70px rgb(34 58 120 / 13%);
    backdrop-filter: blur(12px);
}

.lpm-entry-panel > .fa {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: #edf2ff;
    color: var(--lpm-green);
    font-size: 1.4rem;
}

.lpm-entry-panel h2 {
    margin: 18px 0 4px;
}

.lpm-entry-panel p,
.lpm-entry-panel small {
    color: var(--lpm-muted);
}

.lpm-entry-panel label {
    display: block;
    margin: 18px 0 6px;
    font-size: 0.82rem;
    font-weight: 800;
}

.lpm-entry-input {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    border: 1px solid #dce3f2;
    border-radius: 12px;
    background: white;
    overflow: hidden;
}

.lpm-entry-input span {
    padding-left: 12px;
    color: var(--lpm-muted);
}

.lpm-entry-input input {
    min-width: 0;
    flex: 1;
    padding: 13px 10px 13px 2px;
    border: 0;
    outline: 0;
}

.lpm-entry-panel .lpm-primary-button {
    width: 100%;
}

.lpm-entry-panel small {
    display: block;
    margin-top: 14px;
    line-height: 1.5;
}

.lpm-landing-features,
.lpm-package-grid {
    width: min(calc(100% - 32px), 1120px);
    margin: auto;
    display: grid;
    gap: 14px;
}

.lpm-landing-features article,
.lpm-package-grid article {
    padding: 24px;
    border: 1px solid #e1e6f1;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 30px rgb(34 58 120 / 6%);
}

.lpm-landing-features .fa {
    color: var(--lpm-green);
    font-size: 1.5rem;
}

.lpm-landing-features h3 {
    margin: 14px 0 3px;
}

.lpm-landing-features p,
.lpm-package-grid p {
    margin: 0;
    color: var(--lpm-muted);
}

.lpm-landing-packages {
    padding: 80px 0;
}

.lpm-section-title {
    width: min(calc(100% - 32px), 1120px);
    margin: 0 auto 24px;
}

.lpm-section-title h2 {
    margin: 5px 0;
}

.lpm-package-price {
    margin: 20px 0 4px;
    color: var(--lpm-green-dark);
}

.lpm-package-price strong {
    font-size: 2rem;
}

.lpm-landing-footer {
    padding: 28px 16px;
    display: flex;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid #dce3f2;
    color: var(--lpm-muted);
    font-size: 0.84rem;
}

@media (min-width: 800px) {
    .lpm-landing-hero {
        grid-template-columns: minmax(0, 1.35fr) minmax(340px, 0.65fr);
    }

    .lpm-landing-features,
    .lpm-package-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lpm-signup {
    min-height: 100vh;
    padding: 40px 16px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 10% 0%, #c9f2df 0, transparent 34%),
        radial-gradient(circle at 100% 100%, #ffd8cc 0, transparent 30%),
        var(--lpm-cream);
}

.lpm-signup-card {
    width: min(100%, 560px);
    padding: 30px;
    border: 1px solid #e6e0d4;
    border-radius: 24px;
    background: white;
    box-shadow: 0 24px 80px rgb(23 32 29 / 10%);
}

.lpm-signup-card h1 {
    margin: 4px 0;
}

.lpm-signup-card > div:first-child {
    margin-bottom: 24px;
}

.lpm-signup-card select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    border: 1px solid #d8d4cb;
    border-radius: 11px;
    background: white;
}

.lpm-slug-input {
    display: flex;
    align-items: center;
    margin-top: 5px;
    border: 1px solid #d8d4cb;
    border-radius: 11px;
    overflow: hidden;
}

.lpm-slug-input span {
    padding-left: 12px;
    color: var(--lpm-muted);
    font-weight: 500;
}

.lpm-slug-input input {
    margin: 0;
    border: 0;
}

.lpm-login-link {
    margin: 20px 0 0;
    text-align: center;
}

#lpm-app {
    min-height: 100vh;
    padding-bottom: 96px;
    background: #f5f7fc;
}

.lpm-table-banner {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: 9px 16px;
    background: #ffcf4a;
    color: #4b3600;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 800;
}

.lpm-hero {
    position: relative;
    min-height: 168px;
    padding: 22px;
    background-color: var(--lpm-green-dark);
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: flex-end;
}

.lpm-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgb(30 54 126 / 10%), rgb(20 43 112 / 88%));
}

.lpm-shop-brand {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    color: var(--lpm-white);
    width: min(100%, 980px);
    margin: 0 auto;
}

.lpm-shop-brand img {
    width: 76px;
    height: 76px;
    border: 3px solid rgb(255 255 255 / 80%);
    border-radius: 20px;
    object-fit: cover;
    background: white;
}

.lpm-kicker {
    color: #dce6ff;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
}

.lpm-shop-brand h1 {
    margin: 2px 0;
    font-size: clamp(1.7rem, 6vw, 2.7rem);
}

.lpm-shop-brand p {
    margin: 0;
    opacity: 0.86;
}

.lpm-category-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 12px max(16px, calc((100% - 980px) / 2));
    background: rgb(245 247 252 / 94%);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid #e7ebf4;
}

#lpm-app:has(.lpm-table-banner) .lpm-category-nav {
    top: 35px;
}

.lpm-category-nav a {
    flex: 0 0 auto;
    padding: 8px 14px;
    color: var(--lpm-green-dark);
    border: 1px solid #e1e6f1;
    background: white;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.lpm-main {
    width: min(calc(100% - 32px), 980px);
    margin: 0 auto;
}

.lpm-category {
    padding-top: 24px;
    scroll-margin-top: 64px;
}

.lpm-category h2 {
    margin: 0 0 14px;
    font-size: 1.35rem;
}

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

.lpm-menu-card {
    position: relative;
    overflow: hidden;
    background: var(--lpm-white);
    border: 1px solid #e7ebf4;
    border-radius: 20px;
    box-shadow: 0 10px 26px rgb(37 61 130 / 8%);
}

.lpm-menu-card.is-sold-out {
    order: 99;
    border-color: #e1e4eb;
    background: #f4f5f8;
    box-shadow: none;
}

.lpm-menu-card.is-sold-out > img,
.lpm-menu-card.is-sold-out > .lpm-menu-placeholder {
    opacity: .38;
    filter: grayscale(1);
}

.lpm-menu-card.is-sold-out .lpm-menu-content {
    color: #8d95a7;
}

.lpm-sold-out-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    border-radius: 999px;
    padding: 5px 9px;
    background: rgb(25 30 43 / 78%);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
}

.lpm-menu-card > img,
.lpm-menu-placeholder {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.lpm-menu-card > img {
    width: calc(100% - 12px);
    margin: 6px 6px 0;
    border-radius: 15px;
}

.lpm-menu-placeholder {
    display: grid;
    place-items: center;
    background: #edf2ff;
    color: var(--lpm-green);
    font-size: 2rem;
}

.lpm-menu-content {
    padding: 13px;
}

.lpm-menu-content h3 {
    margin: 0;
    font-size: 1rem;
}

.lpm-menu-content p {
    min-height: 2.7em;
    margin: 6px 0;
    color: var(--lpm-muted);
    font-size: 0.82rem;
    line-height: 1.35;
}

.lpm-menu-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
}

.lpm-menu-footer strong {
    color: var(--lpm-green-dark);
}

.lpm-price-block {
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.lpm-price-block strong {
    line-height: 1.15;
}

.lpm-add-button {
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: var(--lpm-coral);
    color: white;
    font-size: 1.5rem;
    line-height: 1;
}

.lpm-add-button.is-sold-out {
    width: auto;
    min-width: 48px;
    padding: 0 11px;
    border-radius: 999px;
    background: #d9dde6;
    color: #767e90;
    font-size: 11px;
}

.lpm-cart-button {
    position: fixed;
    z-index: 10;
    right: 16px;
    bottom: 16px;
    left: 16px;
    width: min(calc(100% - 32px), 620px);
    margin: auto;
    padding: 15px 18px;
    display: flex;
    justify-content: space-between;
    border: 0;
    border-radius: 999px;
    background: var(--lpm-green);
    color: white;
    box-shadow: 0 14px 35px rgb(49 87 213 / 32%);
    font-size: 1rem;
}

.lpm-dialog {
    width: min(calc(100% - 24px), 560px);
    max-height: 88vh;
    padding: 18px;
    border: 0;
    border-radius: 22px;
    box-shadow: 0 24px 80px rgb(0 0 0 / 22%);
}

.lpm-dialog::backdrop {
    background: rgb(10 20 16 / 60%);
    backdrop-filter: blur(3px);
}

.lpm-dialog-header,
.lpm-cart-line,
.lpm-cart-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lpm-dialog-header h2 {
    margin: 0;
}

.lpm-dialog-header button {
    border: 0;
    background: transparent;
    font-size: 1.8rem;
}

.lpm-cart-line {
    padding: 14px 0;
    border-bottom: 1px solid #ece8df;
}

.lpm-cart-line small {
    display: block;
    color: var(--lpm-muted);
}

.lpm-quantity {
    display: flex;
    gap: 6px;
}

.lpm-quantity button {
    min-width: 34px;
    min-height: 34px;
    border: 1px solid #d8d4cb;
    border-radius: 10px;
    background: white;
}

.lpm-quantity button:disabled {
    color: var(--lpm-ink);
    opacity: 1;
}

.lpm-cart-summary {
    padding: 18px 0;
    font-size: 1.15rem;
}

.lpm-checkout-form {
    display: grid;
    gap: 12px;
}

.lpm-checkout-form label {
    color: var(--lpm-muted);
    font-size: 0.85rem;
    font-weight: 700;
}

.lpm-checkout-form input,
.lpm-checkout-form textarea,
.lpm-checkout-form select {
    display: block;
    width: 100%;
    margin-top: 5px;
    padding: 11px 12px;
    border: 1px solid #d8d4cb;
    border-radius: 11px;
}

.lpm-tax-fields {
    display: grid;
    gap: 12px;
    padding: 14px;
    border: 1px solid #dce4df;
    border-radius: 14px;
    background: #f5f8f6;
}

.lpm-tax-fields[hidden] {
    display: none;
}

.lpm-document-download {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    border: 1px solid var(--lpm-green);
    border-radius: 12px;
    text-align: center;
}

.lpm-share-document {
    width: 100%;
    margin-top: 10px;
    padding: 12px 16px;
    border: 0;
    border-radius: 12px;
    background: #06c755;
    color: white;
    font-weight: 800;
}

.lpm-primary-button {
    display: block;
    padding: 13px 18px;
    border: 0;
    border-radius: 12px;
    background: var(--lpm-green);
    color: white;
    text-align: center;
    text-decoration: none;
    font-weight: 800;
}

.lpm-primary-button:disabled {
    opacity: 0.55;
}

.lpm-toast {
    position: fixed;
    z-index: 30;
    top: 18px;
    left: 50%;
    transform: translate(-50%, -20px);
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--lpm-ink);
    color: white;
    opacity: 0;
    pointer-events: none;
    transition: 0.2s ease;
}

.lpm-toast.is-visible {
    transform: translate(-50%, 0);
    opacity: 1;
}

.lpm-receipt {
    min-height: 100vh;
    padding: 24px 16px;
    display: grid;
    place-items: center;
}

.lpm-receipt-card {
    width: min(100%, 480px);
    padding: 28px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 18px 60px rgb(23 32 29 / 10%);
    text-align: center;
}

.lpm-receipt-card h1 {
    margin: 4px 0;
}

.lpm-promptpay-qr {
    width: min(100%, 280px);
    aspect-ratio: 1;
}

.lpm-paid-badge,
.lpm-cancelled-badge {
    margin: 22px auto;
    padding: 12px;
    border-radius: 12px;
    background: #d9f5e8;
    color: var(--lpm-green-dark);
    font-weight: 800;
}

.lpm-cancelled-badge {
    background: #fde1dc;
    color: #a8321d;
}

.lpm-receipt-total,
.lpm-receipt-lines li {
    display: flex;
    justify-content: space-between;
}

.lpm-receipt-total {
    margin: 16px 0;
    padding: 16px 0;
    border-block: 1px dashed #cec8bc;
    font-size: 1.2rem;
}

.lpm-receipt-lines {
    padding: 0;
    list-style: none;
    text-align: left;
}

.lpm-receipt-lines li {
    padding: 7px 0;
}

.lpm-receipt-note {
    margin: 22px 0;
    color: var(--lpm-muted);
    font-size: 0.88rem;
}

@media (min-width: 720px) {
    .lpm-menu-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lpm-line-menu {
    --lpm-line: #06c755;
    min-height: 100vh;
    padding: 0 16px 32px;
    background:
        radial-gradient(circle at top right, rgb(6 199 85 / 18%), transparent 36%),
        #f4f7f5;
    color: #17211d;
}

.lpm-line-menu-header,
.lpm-line-menu-grid,
.lpm-line-menu-section,
.lpm-line-menu-footer {
    width: min(100%, 720px);
    margin-inline: auto;
}

.lpm-line-menu-header {
    padding: 30px 4px 22px;
}

.lpm-line-menu-brand {
    font-size: 1.15rem;
    font-weight: 900;
}

.lpm-line-menu-brand span {
    color: var(--lpm-line);
}

.lpm-line-menu-oa {
    display: block;
    margin-top: 5px;
    color: #69756f;
    font-size: 0.8rem;
}

.lpm-line-menu-header h1 {
    margin: 26px 0 8px;
    font-size: clamp(1.8rem, 8vw, 3rem);
}

.lpm-line-menu-header p {
    margin: 0;
    color: #64706a;
}

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

.lpm-line-menu-card {
    min-height: 155px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    border: 1px solid #e0e8e3;
    border-radius: 20px;
    background: white;
    box-shadow: 0 10px 28px rgb(27 46 37 / 7%);
    color: #17211d;
    text-decoration: none;
}

.lpm-line-menu-card-primary {
    border-color: transparent;
    background: linear-gradient(145deg, #08c958, #049d45);
    color: white;
}

.lpm-line-menu-icon {
    width: fit-content;
    min-width: 42px;
    margin-bottom: auto;
    padding: 7px 9px;
    border-radius: 11px;
    background: #e9f8ef;
    color: #057c38;
    font-size: 0.72rem;
    font-weight: 900;
    text-align: center;
}

.lpm-line-menu-card-primary .lpm-line-menu-icon {
    background: rgb(255 255 255 / 20%);
    color: white;
}

.lpm-line-menu-card strong {
    margin: 14px 0 4px;
    font-size: 1rem;
}

.lpm-line-menu-card small {
    color: #738078;
    line-height: 1.4;
}

.lpm-line-menu-card-primary small {
    color: rgb(255 255 255 / 80%);
}

.lpm-line-menu-section {
    margin-top: 18px;
    padding: 24px;
    border-radius: 22px;
    background: white;
    box-shadow: 0 10px 28px rgb(27 46 37 / 7%);
}

.lpm-line-menu-section h2 {
    margin: 5px 0 18px;
}

.lpm-line-menu-packages {
    display: grid;
    gap: 9px;
    margin-bottom: 18px;
}

.lpm-line-menu-packages article {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 3px 12px;
    padding: 13px;
    border-radius: 13px;
    background: #f5f8f6;
}

.lpm-line-menu-packages article span {
    color: #057c38;
    font-weight: 900;
}

.lpm-line-menu-packages article small {
    grid-column: 1 / -1;
    color: #738078;
}

.lpm-line-menu-footer {
    padding: 24px 8px 0;
    color: #748079;
    font-size: 0.75rem;
    text-align: center;
}

.lpm-management {
    min-height: 100vh;
    padding: 18px clamp(14px, 4vw, 34px) 34px;
    background:
        radial-gradient(circle at 92% 0%, rgb(13 198 91 / 14%), transparent 26rem),
        #f5f7f2;
}

.lpm-app-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin: 0 auto 14px;
    max-width: 1180px;
}

.lpm-app-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--lpm-ink);
    font-size: 1.05rem;
    font-weight: 900;
    text-decoration: none;
}

.lpm-app-brand small {
    display: block;
    color: var(--lpm-muted);
    font-size: 0.72rem;
    font-weight: 600;
}

.lpm-app-nav {
    display: flex;
    gap: 8px;
    margin: 0 auto 22px;
    max-width: 1180px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.lpm-app-nav a,
.lpm-back-link,
.lpm-small-button,
.lpm-secondary-button {
    color: #0a7c57;
    text-decoration: none;
}

.lpm-app-nav a {
    white-space: nowrap;
    padding: 9px 13px;
    border: 1px solid #dfe8e2;
    border-radius: 999px;
    background: white;
    font-size: 0.86rem;
    font-weight: 800;
}

.lpm-page-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    max-width: 1180px;
    margin: 0 auto 18px;
}

.lpm-page-head h1 {
    margin: 4px 0 0;
    font-size: clamp(1.65rem, 5vw, 2.35rem);
}

.lpm-management-grid,
.lpm-metric-grid,
.lpm-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    max-width: 1180px;
    margin: 0 auto 18px;
}

.lpm-panel,
.lpm-list-card {
    border: 1px solid #e1e8e3;
    border-radius: 22px;
    background: white;
    box-shadow: 0 16px 46px rgb(27 46 37 / 8%);
}

.lpm-panel {
    padding: 20px;
}

.lpm-list-card {
    max-width: 1180px;
    margin: 0 auto 18px;
    overflow: hidden;
}

.lpm-order-list-row,
.lpm-line-row,
.lpm-subscription-row,
.lpm-invite-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid #edf1ee;
    color: var(--lpm-ink);
    text-decoration: none;
}

.lpm-order-list-row:last-child,
.lpm-line-row:last-child,
.lpm-subscription-row:last-child,
.lpm-invite-row:last-child {
    border-bottom: 0;
}

.lpm-row-end,
.lpm-row-actions,
.lpm-action-bar {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.lpm-state {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    background: #eef2ef;
    color: #58645e;
    font-size: 0.75rem;
    font-weight: 900;
}

.lpm-state-paid {
    background: #dff7e8;
    color: #057c38;
}

.lpm-state-cancelled {
    background: #ffe7e1;
    color: #c53d23;
}

.lpm-primary-button,
.lpm-danger-button,
.lpm-small-button {
    border: 0;
    cursor: pointer;
    font-weight: 900;
}

.lpm-primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--lpm-green), var(--lpm-green-dark));
    color: white;
    text-decoration: none;
    box-shadow: 0 10px 24px rgb(49 87 213 / 24%);
}

.lpm-danger-button {
    padding: 12px 18px;
    border-radius: 999px;
    background: #ffe6df;
    color: #bc3219;
}

.lpm-small-button,
.lpm-secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid #dce3f2;
    border-radius: 13px;
    background: white;
    font-size: 0.82rem;
}

.lpm-filter-tabs {
    display: flex;
    gap: 8px;
    max-width: 1180px;
    margin: 0 auto 14px;
    overflow-x: auto;
}

.lpm-filter-tabs a {
    white-space: nowrap;
    padding: 8px 12px;
    border-radius: 999px;
    background: #eaf2ed;
    color: #365046;
    text-decoration: none;
    font-weight: 800;
}

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

.lpm-form-grid label,
.lpm-inline-form label {
    display: grid;
    gap: 7px;
    color: #35433d;
    font-weight: 800;
}

.lpm-form-grid input,
.lpm-form-grid select,
.lpm-form-grid textarea,
.lpm-inline-form input,
.lpm-payment-form input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #dce5df;
    border-radius: 12px;
    background: #fbfdfc;
}

.lpm-form-grid textarea {
    min-height: 90px;
}

.lpm-full {
    grid-column: 1 / -1;
}

.lpm-check {
    display: flex !important;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 8px;
}

.lpm-check input {
    width: auto;
}

.lpm-inline-form {
    display: flex;
    align-items: end;
    gap: 12px;
    max-width: 1180px;
    margin: 0 auto 18px;
    flex-wrap: wrap;
}

.lpm-inline-form label {
    flex: 1 1 220px;
}

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

.lpm-data-list div {
    display: flex;
    justify-content: space-between;
    gap: 14px;
}

.lpm-note {
    margin-top: 16px;
    padding: 12px;
    border-radius: 14px;
    background: #f5f8f6;
}

.lpm-management-qr,
.lpm-small-qr {
    width: min(100%, 260px);
    border-radius: 16px;
    border: 1px solid #e2e8e4;
}

.lpm-small-qr {
    width: 120px;
}

.lpm-grand-total {
    color: #057c38;
    font-size: 1.2rem;
}

.lpm-empty {
    padding: 24px;
    color: var(--lpm-muted);
    text-align: center;
}

.lpm-menu-admin-name,
.lpm-table-card {
    min-width: 0;
}

.lpm-menu-admin-name small {
    display: block;
    color: var(--lpm-muted);
}

.lpm-payment-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 640px) {
    .lpm-hero {
        min-height: 148px;
        padding: 18px 16px;
    }

    .lpm-shop-brand img {
        width: 60px;
        height: 60px;
        border-radius: 16px;
    }

    .lpm-landing-header {
        padding: 16px 0;
    }

    .lpm-landing-hero {
        margin: 26px auto 52px;
        gap: 26px;
    }

    .lpm-landing-copy h1 {
        font-size: clamp(2.25rem, 12vw, 3.5rem);
    }

    .lpm-landing-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .lpm-landing-actions .lpm-primary-button,
    .lpm-landing-actions .lpm-secondary-button {
        width: 100%;
        min-height: 48px;
    }

    .lpm-entry-panel {
        padding: 22px;
        border-radius: 22px;
    }

    .lpm-landing-packages {
        padding: 54px 0;
    }

    .lpm-page-head,
    .lpm-app-header,
    .lpm-order-list-row,
    .lpm-subscription-row,
    .lpm-invite-row {
        align-items: stretch;
        flex-direction: column;
    }

    .lpm-form-grid {
        grid-template-columns: 1fr;
    }

    .lpm-row-end,
    .lpm-row-actions,
    .lpm-action-bar {
        justify-content: flex-start;
    }
}

@media (max-width: 420px) {
    .lpm-line-menu-card {
        min-height: 145px;
        padding: 15px;
    }

}
