/* style.css */
:root {
    --primary-color: #1A9345; /* New Eden Fresh Green */
    --accent-color: #137234; /* Darker Green for contrast/buttons */
    --bg-color: #ffffff; /* Clean White */
    --text-color: #333333;
    --light-gray: #f2f9f5; /* Soft light green-gray for backgrounds */
    --white: #ffffff;
    --transition: all 0.3s ease;
}

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

body {
    /* Use Prompt for Thai characters and Inter for English */
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 { font-size: 3.5rem; letter-spacing: -1px; }
h2 { font-size: 2.5rem; text-align: center; margin-bottom: 3rem; }
h3 { font-size: 1.5rem; }

p { margin-bottom: 1rem; color: #555; }

/* Buttons */
.btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    padding: 12px 28px;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 50px;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn:hover {
    background-color: var(--primary-color);
    transform: translateY(-2px);
}

.btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-large {
    padding: 16px 36px;
    font-size: 1.1rem;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
    background-color: rgba(252, 250, 248, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
    z-index: 1000;
    transition: var(--transition);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 40px;
    width: auto;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 32px;
}

.nav-links li {
    position: relative;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent-color);
}

.nav-links a.active {
    font-weight: 700;
}

.nav-dropdown-toggle {
    align-items: center;
    display: inline-flex;
    gap: 7px;
}

.nav-dropdown::after {
    content: "";
    height: 16px;
    left: 50%;
    pointer-events: none;
    position: absolute;
    top: 100%;
    transform: translateX(-50%);
    width: 188px;
}

.nav-dropdown:hover::after,
.nav-dropdown:focus-within::after {
    pointer-events: auto;
}

.nav-dropdown-caret {
    border-bottom: 1.5px solid currentColor;
    border-right: 1.5px solid currentColor;
    height: 7px;
    margin-top: -4px;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
    width: 7px;
}

.nav-dropdown-menu {
    background: var(--white);
    border: 1px solid rgba(76, 175, 80, 0.16);
    border-radius: 8px;
    box-shadow: 0 16px 40px rgba(46, 64, 55, 0.14);
    display: grid;
    gap: 4px;
    left: 50%;
    list-style: none;
    margin: 0;
    min-width: 188px;
    opacity: 0;
    padding: 8px;
    pointer-events: none;
    position: absolute;
    top: calc(100% + 14px);
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
    visibility: hidden;
    z-index: 1002;
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
    visibility: visible;
}

.nav-dropdown:hover .nav-dropdown-caret,
.nav-dropdown:focus-within .nav-dropdown-caret {
    transform: rotate(225deg);
}

.nav-dropdown-menu a {
    border-radius: 6px;
    display: block;
    padding: 10px 12px;
    white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus {
    background: #f2f9f5;
    color: var(--primary-color);
    outline: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo,
.nav-links a,
.nav-dropdown-toggle,
.menu-toggle,
.global-cart-icon,
.lang-switcher a,
.nav-actions .btn {
    min-height: 44px;
}

.logo,
.nav-links a,
.nav-dropdown-toggle,
.menu-toggle,
.global-cart-icon,
.lang-switcher a,
.nav-actions .btn {
    align-items: center;
}

/* Language Switcher */
.lang-switcher {
    font-size: 0.95rem;
    font-weight: 500;
}

.lang-switcher a {
    color: #aaa;
    text-decoration: none;
    transition: var(--transition);
    padding: 8px 12px;
    display: inline-flex;
    justify-content: center;
    min-width: 44px;
}

.lang-switcher a:hover {
    color: var(--accent-color);
}

.lang-switcher a.active {
    color: var(--primary-color);
    font-weight: 700;
}

/* Hero Section */
.hero {
    min-height: 100vh; /* Changed from height to min-height */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(rgba(19, 114, 52, 0.75), rgba(19, 114, 52, 0.85)), var(--index-hero-image, url('Hero/Hero.webp')) center/cover;
    color: var(--white);
    padding: 120px 20px 80px; /* Added padding to prevent overlapping with navbar */
    margin-top: 0;
    position: relative; /* Required for scroll-down indicator */
}

.hero-content {
    width: 100%;
    max-width: 100%;
}

.hero h1 {
    color: var(--white);
    max-width: 900px;
    margin: 0 auto 24px;
    word-break: break-word; /* Ensure long Thai words wrap properly */
    overflow-wrap: break-word;
}

.hero p {
    font-size: 1.25rem;
    max-width: 600px;
    margin: 0 auto 40px;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Scroll Down Indicator */
.scroll-down {
    position: absolute;
    bottom: 40px;
    left: 50%;
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    transform: translateX(-50%);
    color: var(--white);
    opacity: 0.8;
    transition: var(--transition);
    animation: bounce 2s infinite;
}

.scroll-down:hover {
    opacity: 1;
    color: var(--white);
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(-15px) translateX(-50%);
    }
    60% {
        transform: translateY(-7px) translateX(-50%);
    }
}

/* Generic Section */
section {
    padding: 100px 0;
}

/* About Section */
.about {
    background-color: var(--bg-color);
    text-align: center;
}

.about p {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.15rem;
    line-height: 1.8;
}

.about p[data-index-setting="about-body"] {
    white-space: pre-line;
}

.about-hero-content {
    max-width: 860px;
    margin: 0 auto 36px;
}

.about-eyebrow {
    color: var(--accent-color);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.about-subtitle {
    max-width: 760px;
    margin: 18px auto 0;
    color: #53645a;
    font-size: 1.05rem;
    line-height: 1.75;
}

.gallery-carousel {
    --gallery-height: clamp(320px, 92vw, 420px);
    --gallery-active-width: min(76vw, 360px);
    --gallery-card-width: clamp(58px, 16vw, 76px);
    --gallery-gap: clamp(10px, 3vw, 16px);
    position: relative;
    width: min(1120px, 100%);
    margin: 0 auto 36px;
    overflow: hidden;
}

.gallery-carousel-viewport {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    padding: 8px max(14px, calc((100% - var(--gallery-active-width)) / 2)) 18px;
    scroll-behavior: smooth;
    scrollbar-width: none;
    touch-action: pan-y;
    -webkit-overflow-scrolling: touch;
}

.gallery-carousel-viewport::-webkit-scrollbar {
    display: none;
}

.gallery-carousel-track {
    display: flex;
    align-items: stretch;
    gap: var(--gallery-gap);
    width: max-content;
    min-width: 100%;
    height: var(--gallery-height);
}

.gallery-card {
    position: relative;
    flex: 0 0 var(--gallery-card-width);
    min-width: 0;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: #e8efe9;
    color: #fff;
    cursor: pointer;
    opacity: 0.68;
    transform: translateZ(0) scale(0.96);
    box-shadow: 0 14px 30px rgba(15, 62, 46, 0.10);
    transition:
        flex-basis 520ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 360ms ease,
        transform 520ms cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 360ms ease,
        filter 360ms ease;
    will-change: transform, opacity;
}

.gallery-card-active {
    flex-basis: var(--gallery-active-width);
    opacity: 1;
    transform: translateZ(0) scale(1);
    box-shadow: 0 24px 54px rgba(15, 62, 46, 0.18);
}

.gallery-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: var(--gallery-object-position, center);
    pointer-events: none;
    user-select: none;
}

.gallery-card::after {
    content: '';
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(10, 34, 24, 0.02) 35%, rgba(10, 34, 24, 0.68) 100%),
        linear-gradient(90deg, rgba(10, 34, 24, 0.24), rgba(10, 34, 24, 0));
    opacity: 0.35;
    transition: opacity 360ms ease;
}

.gallery-card-active::after {
    opacity: 1;
}

.gallery-card-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    display: grid;
    gap: 6px;
    padding: clamp(18px, 3vw, 28px);
    text-align: left;
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    transition:
        opacity 320ms ease 110ms,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1) 80ms;
    pointer-events: none;
}

.gallery-card-active .gallery-card-content {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.gallery-card:not(.gallery-card-active)::after {
    background:
        linear-gradient(180deg, rgba(8, 24, 18, 0.28), rgba(8, 24, 18, 0.70)),
        linear-gradient(90deg, rgba(8, 24, 18, 0.48), rgba(8, 24, 18, 0.22));
    opacity: 1;
}

.gallery-card:not(.gallery-card-active) .gallery-card-content {
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 300ms ease,
        transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}

.gallery-card:not(.gallery-card-active) .gallery-card-kicker,
.gallery-card:not(.gallery-card-active) .gallery-card-description {
    display: none;
}

.gallery-card-kicker,
.gallery-card-title,
.gallery-card-description {
    max-width: min(100%, 560px);
    overflow-wrap: anywhere;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.26);
}

.gallery-card-kicker {
    font-size: 0.82rem;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.gallery-card-title {
    font-size: clamp(1.35rem, 3vw, 2.35rem);
    font-weight: 900;
    line-height: 1.16;
}

.gallery-card-description {
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(0.9rem, 1.45vw, 1.05rem);
    font-weight: 500;
    line-height: 1.55;
}

.gallery-card:not(.gallery-card-active) .gallery-card-title {
    flex: 0 0 auto;
    width: max-content;
    max-width: calc(var(--gallery-height) - 58px);
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(0.78rem, 1.25vw, 1rem);
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    overflow-wrap: normal;
    text-align: center;
    text-overflow: ellipsis;
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.42);
    text-transform: uppercase;
    transform: rotate(-90deg) translateZ(0);
    transform-origin: center;
    white-space: nowrap;
}

.gallery-carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 44px;
    margin-top: 4px;
}

.gallery-carousel-button,
.gallery-carousel-dot {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    border: 1px solid rgba(23, 63, 42, 0.12);
    background: rgba(255, 255, 255, 0.86);
    color: #173f2a;
    cursor: pointer;
    transition: transform 220ms ease, background 220ms ease, border-color 220ms ease;
}

.gallery-carousel-button {
    border-radius: 999px;
    font-size: 1.9rem;
    line-height: 1;
}

.gallery-carousel-button svg {
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.gallery-carousel-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.gallery-carousel-dot {
    min-width: 44px;
    min-height: 44px;
    border-color: transparent;
    border-radius: 999px;
    background: transparent;
}

.gallery-carousel-dot::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(23, 63, 42, 0.28);
    transition: width 260ms ease, background 260ms ease;
}

.gallery-carousel-dot.is-active::before {
    width: 24px;
    background: var(--primary-color);
}

.gallery-carousel-button:focus-visible,
.gallery-carousel-dot:focus-visible,
.gallery-card:focus-visible,
.gallery-carousel-viewport:focus-visible {
    outline: 3px solid rgba(23, 138, 69, 0.34);
    outline-offset: 3px;
}

.gallery-carousel.is-dragging,
.gallery-carousel.is-dragging .gallery-card {
    cursor: grabbing;
    user-select: none;
}

.gallery-carousel-status {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-card:not(.gallery-card-active):hover {
        opacity: 0.86;
        filter: saturate(1.04);
        transform: translate3d(0, -4px, 0) scale(0.98);
    }

    .gallery-carousel-button:hover,
    .gallery-carousel-dot:hover {
        background: #fff;
        border-color: rgba(23, 63, 42, 0.22);
        transform: translateY(-1px);
    }
}

@media (min-width: 768px) {
    .gallery-carousel {
        --gallery-height: clamp(420px, 52vw, 560px);
        --gallery-active-width: min(54vw, 560px);
        --gallery-card-width: clamp(92px, 12vw, 126px);
        --gallery-gap: clamp(14px, 2vw, 18px);
    }
}

@media (min-width: 1025px) {
    .gallery-carousel {
        --gallery-height: clamp(480px, 40vw, 560px);
        --gallery-active-width: clamp(500px, 52vw, 620px);
        --gallery-card-width: clamp(84px, 7vw, 108px);
        --gallery-gap: 18px;
    }

    .gallery-carousel-viewport {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (max-width: 767px) {
    .gallery-carousel {
        --gallery-active-width: min(62vw, 360px);
        --gallery-card-width: clamp(56px, 15vw, 76px);
        --gallery-gap: clamp(10px, 2.6vw, 16px);
    }
}

@media (max-width: 480px) {
    .gallery-carousel {
        --gallery-height: clamp(320px, 102vw, 390px);
        --gallery-active-width: min(62vw, 280px);
        --gallery-card-width: clamp(54px, 15.5vw, 66px);
    }

    .gallery-card {
        border-radius: 16px;
    }

    .gallery-card-content {
        padding: 16px;
    }

    .gallery-card-title {
        font-size: 1.2rem;
    }

    .gallery-card:not(.gallery-card-active) .gallery-card-title {
        max-width: calc(var(--gallery-height) - 46px);
        font-size: 0.76rem;
    }

    .gallery-card-description {
        font-size: 0.86rem;
        line-height: 1.5;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-carousel-viewport {
        scroll-behavior: auto;
    }

    .gallery-card,
    .gallery-card::after,
    .gallery-card-content,
    .gallery-carousel-button,
    .gallery-carousel-dot,
    .gallery-carousel-dot::before {
        transition: none;
    }
}

/* Profile distillation: keep frequent actions visible and reveal secondary data on demand. */
.profile-page-main {
    min-height: 80vh;
    padding: 104px 0 56px;
    background: #f3f8f2;
}

.profile-page-main > .container {
    max-width: 1320px;
}

.profile-layout.profile-dashboard {
    grid-template-columns: minmax(250px, 288px) minmax(0, 820px);
    gap: clamp(20px, 2.5vw, 32px);
    max-width: 1140px;
}

.profile-dashboard-sidebar {
    top: 92px;
    gap: 12px;
    padding: 14px;
    border-radius: 18px;
}

.profile-summary-card-premium {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border-radius: 14px;
    box-shadow: 0 14px 30px rgba(5, 62, 49, 0.18);
}

.profile-summary-card-premium .profile-summary-avatar {
    width: 52px;
    height: 52px;
    border-color: rgba(255, 255, 255, 0.42);
}

.profile-summary-card-premium .profile-summary-top {
    justify-items: start;
    gap: 3px;
    text-align: left;
}

.profile-summary-card-premium .profile-summary-top h2 {
    font-size: 1rem;
}

.profile-summary-card-premium .profile-summary-top small {
    max-width: 100%;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.72rem;
    overflow-wrap: anywhere;
}

.profile-summary-card-premium .profile-tier-chip {
    min-height: 22px;
    padding: 3px 8px;
    font-size: 0.64rem;
}

.profile-summary-balance {
    display: grid;
    justify-items: end;
    gap: 1px;
    min-width: 58px;
}

.profile-summary-balance .profile-summary-points {
    font-size: 1.65rem;
}

.profile-summary-balance span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.66rem;
    white-space: nowrap;
}

.profile-sidebar-disclosure,
.profile-form-section,
.profile-history-controls {
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 12px;
    background: #fff;
}

.profile-sidebar-disclosure > summary,
.profile-form-disclosure > summary,
.profile-history-controls > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    color: #173c28;
    cursor: pointer;
    list-style: none;
}

.profile-sidebar-disclosure > summary::-webkit-details-marker,
.profile-form-disclosure > summary::-webkit-details-marker,
.profile-history-controls > summary::-webkit-details-marker {
    display: none;
}

.profile-sidebar-disclosure > summary::after,
.profile-form-disclosure > summary::after,
.profile-history-controls > summary::after {
    content: '';
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-right: 2px solid #27704a;
    border-bottom: 2px solid #27704a;
    transform: rotate(45deg) translateY(-2px);
    transition: transform 160ms ease;
}

.profile-sidebar-disclosure[open] > summary::after,
.profile-form-disclosure[open] > summary::after,
.profile-history-controls[open] > summary::after {
    transform: rotate(225deg) translate(-2px, -1px);
}

.profile-sidebar-disclosure > summary div,
.profile-form-disclosure > summary span,
.profile-history-controls > summary span {
    min-width: 0;
}

.profile-sidebar-disclosure > summary strong,
.profile-sidebar-disclosure > summary span,
.profile-form-disclosure > summary span,
.profile-form-disclosure > summary small,
.profile-history-controls > summary span,
.profile-history-controls > summary small {
    display: block;
}

.profile-sidebar-disclosure > summary strong,
.profile-form-disclosure > summary span,
.profile-history-controls > summary span {
    font-weight: 800;
}

.profile-sidebar-disclosure > summary span,
.profile-form-disclosure > summary small,
.profile-history-controls > summary small {
    margin-top: 2px;
    color: #68786e;
    font-size: 0.76rem;
    line-height: 1.35;
}

.profile-sidebar-disclosure .profile-tier-journey {
    margin: 0;
    padding: 4px 12px 12px;
    border: 0;
    box-shadow: none;
}

.profile-sidebar-disclosure .profile-tier-heading {
    display: none;
}

.profile-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

.profile-action-card {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 5px;
    min-height: 64px;
    padding: 8px 5px;
    border-radius: 10px;
    font-size: 0.72rem;
    text-align: center;
}

.profile-action-card span {
    width: 28px;
    height: 28px;
    border-radius: 8px;
}

.profile-action-card span::before {
    width: 10px;
    height: 10px;
    border-width: 2px;
}

.profile-dashboard-main {
    gap: 14px;
}

.profile-dashboard-main > .profile-tabs {
    position: sticky;
    top: 88px;
    z-index: 8;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 13px;
    background: rgba(247, 251, 247, 0.96);
    box-shadow: 0 8px 20px rgba(15, 62, 46, 0.06);
    backdrop-filter: blur(10px);
}

.profile-dashboard-main > .profile-tabs .profile-tab {
    min-height: 40px;
    padding: 7px 10px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    font-size: 0.9rem;
}

.profile-dashboard-main > .profile-tabs .profile-tab.active {
    background: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(22, 137, 67, 0.18);
}

.profile-tab-panel {
    gap: 12px;
}

.profile-panel-heading.profile-panel-heading-compact {
    min-height: 66px;
    padding: 14px 18px;
    border-radius: 13px;
}

.profile-panel-heading-compact h2 {
    margin: 0;
    font-size: 1.35rem;
}

.profile-history-controls {
    min-width: min(100%, 240px);
    box-shadow: none;
}

.profile-history-controls > summary {
    min-height: 42px;
    padding: 8px 12px;
}

.profile-history-control-body {
    display: grid;
    gap: 10px;
    padding: 0 12px 12px;
}

.profile-history-date-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.profile-history-date-grid label {
    display: grid;
    gap: 5px;
    color: #40584b;
    font-size: 0.76rem;
    font-weight: 700;
}

.profile-history-date-grid input {
    width: 100%;
    min-height: 40px;
    padding: 7px 8px;
    border: 1px solid #d5e4d7;
    border-radius: 8px;
    background: #fff;
    font: inherit;
}

.profile-history-date-clear {
    justify-self: start;
    min-height: 36px;
    padding: 6px 10px;
    border: 1px solid #d5e4d7;
    border-radius: 8px;
    background: #fff;
    color: #1b7b43;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-history-filters {
    flex-wrap: nowrap;
    padding: 2px 0 4px;
    overflow-x: auto;
    scrollbar-width: thin;
}

.profile-history-filter {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 7px 12px;
    font-size: 0.82rem;
}

.profile-timeline {
    gap: 8px;
}

.profile-timeline-item {
    display: block;
}

.profile-timeline-dot {
    display: none;
}

.profile-timeline-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2px 16px;
    padding: 12px 14px;
    border-left: 4px solid #2f6fbd;
    border-radius: 10px;
    box-shadow: 0 5px 14px rgba(15, 62, 46, 0.035);
}

.profile-timeline-item--archery .profile-timeline-main {
    border-left-color: #b7791f;
}

.profile-timeline-item--bookings .profile-timeline-main,
.profile-timeline-item--pos .profile-timeline-main {
    border-left-color: var(--primary-color);
}

.profile-timeline-top {
    grid-column: 1 / -1;
    margin-bottom: 2px;
}

.profile-timeline-main h3,
.profile-timeline-main p,
.profile-timeline-main small {
    grid-column: 1;
}

.profile-timeline-main h3 {
    margin-bottom: 2px;
    font-size: 0.95rem;
}

.profile-timeline-main p,
.profile-timeline-main small {
    margin-bottom: 1px;
    font-size: 0.82rem;
    line-height: 1.4;
}

.profile-timeline-main b {
    grid-column: 2;
    grid-row: 2 / span 3;
    align-self: center;
    margin: 0;
    white-space: nowrap;
}

.profile-timeline-receipt {
    grid-column: 1 / -1;
    justify-self: start;
}

.profile-account-card {
    padding: 18px;
    border-radius: 14px;
}

.profile-account-top {
    gap: 12px;
    margin-bottom: 14px;
    padding-bottom: 14px;
}

.profile-account-avatar {
    width: 56px;
    height: 56px;
}

.profile-account-top h3 {
    margin: 1px 0;
    font-size: 1.18rem;
}

.profile-account-top p {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

.profile-edit-form {
    gap: 12px;
}

.profile-form-section-primary {
    padding: 14px;
}

.profile-form-section-heading {
    margin-bottom: 12px;
}

.profile-form-section-heading h3,
.profile-form-section-heading p {
    margin: 0;
}

.profile-form-section-heading h3 {
    color: #173c28;
    font-size: 1rem;
}

.profile-form-section-heading p {
    margin-top: 2px;
    color: #68786e;
    font-size: 0.78rem;
}

.profile-form-grid {
    gap: 12px;
}

.profile-edit-form label {
    gap: 5px;
    font-size: 0.86rem;
}

.profile-edit-form input,
.profile-edit-form textarea {
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 10px;
}

.profile-edit-form textarea {
    min-height: 76px;
    resize: vertical;
}

.profile-email-verify {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    min-height: 0;
    padding: 10px 12px;
    border-radius: 10px;
}

.profile-email-verify strong,
.profile-email-verify span {
    display: inline;
    font-size: 0.82rem;
}

.profile-email-verify span {
    margin: 0 0 0 6px;
}

.profile-email-verify small {
    margin-top: 3px;
    font-size: 0.72rem;
    line-height: 1.35;
}

.profile-privacy-note {
    padding: 9px 11px;
    border-radius: 10px;
    font-size: 0.78rem;
}

.profile-form-disclosure-body {
    padding: 2px 14px 14px;
}

.profile-form-actions .btn {
    min-height: 44px;
}

@media (max-width: 768px) {
    .profile-page-main {
        padding: 82px 0 36px;
    }

    .profile-page-main > .container {
        padding-inline: 12px;
    }

    .profile-layout.profile-dashboard {
        gap: 12px;
    }

    .profile-dashboard-sidebar {
        gap: 10px;
        padding: 12px;
    }

    .profile-summary-card-premium {
        grid-template-columns: 46px minmax(0, 1fr) auto;
        padding: 12px;
    }

    .profile-summary-card-premium .profile-summary-avatar {
        width: 46px;
        height: 46px;
    }

    .profile-summary-balance .profile-summary-points {
        font-size: 1.45rem;
    }

    .profile-dashboard-main > .profile-tabs {
        top: 74px;
    }

    .profile-panel-heading.profile-panel-heading-compact {
        align-items: stretch;
        min-height: 0;
        padding: 14px;
    }

    .profile-history-controls {
        width: 100%;
    }

    .profile-history-filters {
        display: flex;
    }

    .profile-account-card {
        padding: 14px;
    }

    .profile-form-section-primary {
        padding: 12px;
    }

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

    .profile-edit-form input,
    .profile-edit-form textarea {
        font-size: 1rem;
    }

    .profile-timeline-main {
        grid-template-columns: minmax(0, 1fr) auto;
        padding: 11px 12px;
    }
}

@media (max-width: 420px) {
    .profile-summary-card-premium {
        grid-template-columns: 42px minmax(0, 1fr);
    }

    .profile-summary-card-premium .profile-summary-avatar {
        width: 42px;
        height: 42px;
    }

    .profile-summary-balance {
        grid-column: 1 / -1;
        grid-template-columns: auto 1fr;
        justify-items: start;
        align-items: baseline;
        gap: 6px;
        padding-top: 8px;
        border-top: 1px solid rgba(255, 255, 255, 0.16);
    }

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

    .profile-history-date-grid,
    .profile-timeline-main {
        grid-template-columns: 1fr;
    }

    .profile-timeline-main b,
    .profile-timeline-receipt {
        grid-column: 1;
        grid-row: auto;
        justify-self: start;
    }
}

.about-quick-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    max-width: 980px;
    margin: 0 auto 46px;
}

.about-fact {
    background: #f7fbf8;
    border: 1px solid #e0eadc;
    border-radius: 8px;
    padding: 18px;
    text-align: left;
}

.about-fact span {
    display: block;
    color: #66746c;
    font-size: 0.86rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.about-fact strong {
    display: block;
    color: #173f2a;
    font-size: 1rem;
    line-height: 1.45;
}

.about-story-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
    max-width: 980px;
    margin: 0 auto 34px;
    text-align: left;
}

.about-story-card {
    border-top: 3px solid var(--primary-color);
    padding: 20px 0 0;
}

.about-story-card h3,
.about-origin h3,
.about-faq h3,
.about-related h3 {
    color: var(--primary-color);
    font-size: 1.35rem;
    margin-bottom: 12px;
}

.about-story-card p,
.about-origin p,
.about-faq p {
    max-width: none;
    font-size: 1rem;
    line-height: 1.75;
    color: #53645a;
}

.about-origin,
.about-faq,
.about-related {
    max-width: 980px;
    margin: 0 auto 34px;
    text-align: left;
}

.about-origin {
    background: #f0f7f2;
    border: 1px solid #dcebdd;
    border-radius: 8px;
    padding: 26px;
}

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

.about-faq-item {
    border: 1px solid #dcebdd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.about-faq-item summary {
    cursor: pointer;
    padding: 16px 18px;
    color: #173f2a;
    font-weight: 800;
}

.about-faq-item p {
    padding: 0 18px 18px;
}

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

.about-related-link {
    display: block;
    border: 1px solid #dcebdd;
    border-radius: 8px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.about-related-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(24, 94, 47, 0.08);
}

.about-related-link strong {
    display: block;
    color: var(--primary-color);
    margin-bottom: 6px;
}

.about-related-link span {
    display: block;
    color: #65746c;
    line-height: 1.55;
    font-size: 0.94rem;
}

@media (max-width: 900px) {
    .about-quick-facts,
    .about-story-grid,
    .about-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .about-quick-facts,
    .about-story-grid,
    .about-related-grid {
        grid-template-columns: 1fr;
    }

    .about-visual img {
        aspect-ratio: 4 / 3;
    }
}


/* Products / Menu Section */
.products {
    background-color: var(--white);
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 40px;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* Horizontal Carousel Grid */
.carousel-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 30px;
    padding-bottom: 30px; /* Space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) #f0f0f0;
    -webkit-overflow-scrolling: touch;
}
.carousel-grid::-webkit-scrollbar {
    height: 8px;
}
.carousel-grid::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 10px;
}
.carousel-grid::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}
.carousel-grid .card {
    flex: 0 0 calc(33.333% - 20px);
    scroll-snap-align: start;
}

@media (max-width: 992px) {
    .carousel-grid .card {
        flex: 0 0 calc(50% - 15px);
    }
}
@media (max-width: 576px) {
    .carousel-grid .card {
        flex: 0 0 calc(50% - 15px); /* Exactly 2 items on mobile */
    }
    .card {
        padding: 15px;
    }
    .card h3 {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    .card p {
        font-size: 0.85rem;
        line-height: 1.4;
    }
    .card-img {
        margin-bottom: 15px;
    }
    .product-grid .product-card h3 {
        font-size: 0.95rem;
    }
    .product-grid .product-card p {
        font-size: 0.8rem;
    }
    .product-grid .product-card .price {
        font-size: 1rem;
        margin: 8px 0;
    }
    .product-grid .product-card .btn {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

.card {
    position: relative;
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.carousel-grid .card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 10%;
    right: -16px; /* Exactly in the middle of the 30px gap */
    height: 80%;
    width: 2px;
    background-color: rgba(0,0,0,0.08);
    border-radius: 2px;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    border-color: rgba(19, 114, 52, 0.2);
}

.card-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 20px;
}

/* Hero Reviews Section (Horizontal Scroll) */
.hero-reviews {
    margin-top: 30px;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 15px;
    text-align: left;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 15px; /* space for scrollbar */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.5) rgba(255, 255, 255, 0.1);
}

.hero-reviews::-webkit-scrollbar {
    height: 8px;
}

.hero-reviews::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.hero-reviews::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
}

.hero-reviews::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.8);
}

.hero-review-card {
    flex: 0 0 300px; /* Fixed width for scrolling cards, showing about 3 cards */
    scroll-snap-align: start;
    background: rgba(255,255,255,0.15);
    padding: 15px;
    border-radius: 12px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    transition: transform 0.3s ease;
}

.hero-review-card:hover {
    transform: translateY(-5px);
    background: rgba(255,255,255,0.2);
}

/* Reviews Section */
.reviews-section {
    background-color: var(--white);
    padding: 80px 0;
}

.review-card {
    background-color: var(--white);
    padding: 25px;
    border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    text-align: left;
}

.review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.review-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.review-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    background-color: #eee;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: var(--primary-color);
}

.review-author h4 {
    margin: 0;
    font-size: 1.05rem;
    color: var(--text-color);
}

.review-stars {
    color: #FFD700;
    font-size: 0.9rem;
    margin-top: 2px;
}

.review-text {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    font-style: italic;
    margin: 0;
    flex-grow: 1;
}

.review-date {
    font-size: 0.8rem;
    color: #aaa;
    margin-top: 15px;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.06);
}

.card h3 {
    margin-bottom: 15px;
}

/* Shop Section */
.shop {
    background-color: var(--bg-color);
}

.product-img {
    width: 100%;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.price {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 20px;
}

/* Booking Section */
.booking {
    background-color: var(--white);
}

.booking-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 46px;
    align-items: flex-start;
}

.booking-info,
.booking-form-container {
    min-width: 0;
}

.booking-info {
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
}

.booking-info h2 {
    text-align: left;
    margin-bottom: 20px;
}

.features-list {
    list-style: none;
    margin-top: 20px;
}

.features-list li {
    margin-bottom: 10px;
    font-weight: 500;
}

.booking-form-container {
    background-color: var(--bg-color);
    margin: 0 auto;
    max-width: 980px;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    width: 100%;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--primary-color);
}

.form-group input:not([type="checkbox"]), .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    cursor: pointer;
    accent-color: var(--primary-color);
    flex-shrink: 0;
}

.form-group input:not([type="checkbox"]):focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

@media (max-width: 768px) {
    .booking-wrapper {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .booking-form-container {
        padding: 24px;
    }
}

/* FAQ Section (Crucial for AEO) */
.faq {
    background-color: var(--light-gray);
}

.faq-grid {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    border-left: 4px solid var(--accent-color);
}

.faq-item h3 {
    color: var(--primary-color);
    margin-bottom: 12px;
    font-size: 1.25rem;
}

.faq-item p {
    margin-bottom: 0;
}

.faq-page-preview {
    background: linear-gradient(180deg, #f4fbf6 0%, #ffffff 100%);
}

.faq-loading,
.faq-empty {
    width: 100%;
    text-align: center;
    color: #65766b;
    padding: 24px;
}

.faq-empty.error {
    color: #b42318;
}

.faq-card {
    background: var(--white);
    border: 1px solid rgba(13, 107, 58, 0.12);
    border-radius: 18px;
    box-shadow: 0 12px 30px rgba(13, 77, 43, 0.06);
    margin-bottom: 18px;
    overflow: hidden;
}

.faq-card details {
    padding: 0;
}

.faq-card summary {
    position: relative;
    list-style: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    padding: 22px 24px;
    color: var(--primary-color);
    font-weight: 800;
}

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

.faq-card summary::after {
    content: "+";
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: #eef8ef;
    color: var(--accent-color);
    flex-shrink: 0;
    font-size: 1.2rem;
}

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

.faq-card summary span {
    display: block;
    flex: 1;
}

.faq-card summary small {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: #f2f8f0;
    color: #4c7259;
    font-size: 0.78rem;
    white-space: nowrap;
}

.faq-card p {
    margin: 0;
    padding: 0 24px 24px;
    color: #4e6054;
    line-height: 1.75;
}

.faq-more-link {
    text-align: center;
    margin-top: 24px;
}

.faq-more-btn {
    border: 0;
    cursor: pointer;
    min-height: 44px;
}

.faq-hub-hero {
    padding: 110px 0 55px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(20, 148, 71, 0.12), transparent 44%), #f2faf5;
}

.faq-hub-hero h1 {
    color: var(--primary-color);
    font-size: clamp(2.5rem, 6vw, 5rem);
    margin-bottom: 16px;
}

.faq-hub-hero p {
    max-width: 760px;
    margin: 0 auto;
    color: #52645a;
    font-size: 1.12rem;
}

.faq-hub {
    background: #f7fbf8;
    padding: 60px 0 100px;
}

.faq-hub-panel {
    max-width: 1060px;
    margin: 0 auto;
}

.faq-hub-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.faq-hub-toolbar input,
.faq-hub-toolbar select {
    width: 100%;
    min-height: 56px;
    border: 1px solid rgba(13, 107, 58, 0.18);
    border-radius: 16px;
    padding: 0 18px;
    background: #fff;
    font: inherit;
    color: #21382b;
}

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

@media (max-width: 768px) {
    .faq-card summary {
        flex-direction: column;
        align-items: flex-start;
    }

    .faq-card summary::after {
        position: absolute;
        right: 18px;
    }

    .faq-card summary span {
        padding-right: 44px;
    }

    .faq-hub-toolbar,
    .faq-hub-grid {
        grid-template-columns: 1fr;
    }
}

/* Blog Listing Section */
.blog-listing {
    background-color: var(--white);
}

.blog-card {
    background-color: var(--bg-color);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
    transition: var(--transition);
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.06);
}

.blog-card-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.blog-card-content {
    padding: 25px;
}

.blog-meta {
    font-size: 0.85rem;
    color: #888;
    margin-bottom: 10px;
    display: block;
}

.blog-card-content h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.blog-card-content p {
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.blog-list-loading .blog-card {
    border: 1px solid rgba(15, 122, 61, 0.08);
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    pointer-events: none;
}

.blog-list-loading .blog-card:hover {
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    transform: none;
}

.blog-skeleton-media,
.blog-skeleton-line,
.blog-skeleton-pill,
.blog-skeleton-button {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.blog-skeleton-media {
    height: 200px;
    width: 100%;
}

.blog-skeleton-pill {
    border-radius: 999px;
    height: 14px;
    margin-bottom: 18px;
    width: 45%;
}

.blog-skeleton-line {
    border-radius: 10px;
    height: 16px;
    margin-bottom: 12px;
    width: 100%;
}

.blog-skeleton-line.short {
    width: 62%;
}

.blog-skeleton-line.medium {
    width: 82%;
}

.blog-skeleton-button {
    border-radius: 999px;
    height: 44px;
    margin-top: 22px;
    width: 150px;
}

/* Single Blog Post */
.blog-post {
    background-color: var(--bg-color);
    padding-top: 120px; /* offset for navbar */
    padding-bottom: 80px;
}

.blog-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px;
}

.blog-header h1 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.blog-post-img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 40px;
}

.blog-content {
    max-width: 750px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

.blog-content h2 {
    font-size: 1.8rem;
    text-align: left;
    margin: 40px 0 20px;
}

.blog-content ul, .blog-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.blog-content li {
    margin-bottom: 10px;
}

.blog-post-loading .blog-header {
    margin-bottom: 36px;
}

.blog-post-loading .blog-post-img {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    height: 360px;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.blog-post-loading .blog-content {
    background: rgba(255,255,255,0.72);
    border-radius: 18px;
    padding: 28px;
}

.blog-navbar {
    background-color: rgba(252, 250, 248, 0.95);
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.blog-hero {
    padding: 150px 0 72px;
    background:
        linear-gradient(90deg, rgba(255,255,255,0.94) 0%, rgba(255,255,255,0.82) 44%, rgba(255,255,255,0.26) 100%),
        url('/Hero/Hero.webp') center/cover no-repeat;
}

.blog-hero-copy {
    max-width: 740px;
}

.blog-eyebrow,
.blog-chip {
    color: var(--accent-color);
    display: inline-flex;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0;
    margin-bottom: 14px;
    text-transform: uppercase;
}

.blog-hero h1 {
    font-size: 3rem;
    line-height: 1.2;
    margin-bottom: 18px;
}

.blog-hero p {
    color: #35443b;
    font-size: 1.12rem;
    max-width: 660px;
}

.blog-hero-actions,
.blog-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.blog-listing-static {
    background: #fbfdfb;
}

.blog-listing-head {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 34px;
}

.blog-listing-head h2 {
    margin-bottom: 0;
    text-align: left;
}

.blog-listing-head p {
    color: #52635a;
    margin: 0;
    max-width: 430px;
}

.blog-grid {
    display: grid;
    gap: 26px;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.blog-card {
    border: 1px solid rgba(26, 147, 69, 0.08);
    border-radius: 8px;
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    height: auto;
}

.blog-card-content h3 a,
.related-card h3 a {
    color: inherit;
    text-decoration: none;
}

.blog-card-content h3 a:hover,
.related-card h3 a:hover {
    color: var(--accent-color);
}

.blog-post-static {
    background: #fbfdfb;
}

.breadcrumb {
    align-items: center;
    color: #68756e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 8px;
    margin-bottom: 28px;
}

.breadcrumb a {
    align-items: center;
    color: var(--accent-color);
    display: inline-flex;
    min-height: 44px;
    text-decoration: none;
}

.blog-article-header {
    margin-bottom: 34px;
}

.blog-article-header p {
    color: #44554b;
}

.blog-article-meta {
    color: #68756e;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.92rem;
    gap: 10px 18px;
    justify-content: center;
    margin-top: 18px;
}

.article-layout {
    align-items: start;
    display: grid;
    gap: 34px;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    margin-top: 34px;
}

.article-sidebar {
    position: sticky;
    top: 110px;
}

.toc-box,
.local-info-box,
.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    background: #fff;
    border: 1px solid rgba(26, 147, 69, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 32px rgba(20, 70, 42, 0.05);
}

.toc-box,
.local-info-box {
    padding: 20px;
}

.toc-box {
    margin-bottom: 18px;
}

.toc-box h2,
.local-info-box h2 {
    font-size: 1rem;
    margin-bottom: 12px;
    text-align: left;
}

.toc-box ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.toc-box li {
    margin-bottom: 8px;
}

.toc-box .toc-subitem {
    padding-left: 14px;
}

.toc-box a,
.local-info-box a {
    align-items: center;
    color: #435148;
    display: inline-flex;
    min-height: 44px;
    text-decoration: none;
}

.toc-box a:hover,
.toc-box a.active,
.local-info-box a:hover {
    color: var(--accent-color);
}

.local-info-box p {
    color: #5a675f;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-bottom: 10px;
}

.article-main {
    max-width: 820px;
}

.article-main h2,
.article-main h3 {
    scroll-margin-top: 110px;
}

.article-main h3 {
    color: #1f3327;
    font-size: 1.28rem;
    margin: 30px 0 12px;
}

.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    margin: 34px 0;
    padding: 26px;
}

.summary-box {
    background: #f3faf5;
}

.summary-box h2,
.blog-link-panel h2,
.blog-cta-panel h2,
.image-brief h2,
.blog-faq h2,
.related-articles h2 {
    font-size: 1.55rem;
    margin-bottom: 18px;
    text-align: left;
}

.summary-box ul,
.blog-link-panel ul {
    margin-bottom: 0;
}

.blog-link-panel a {
    align-items: center;
    color: var(--accent-color);
    display: inline-flex;
    font-weight: 600;
    min-height: 44px;
    min-width: 44px;
}

.article-main a:not(.btn) {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
}

.blog-cta-panel {
    background: #173c28;
    color: #fff;
}

.blog-cta-panel h2,
.blog-cta-panel p {
    color: #fff;
}

.blog-cta-panel .btn-outline {
    border-color: rgba(255,255,255,0.7);
    color: #fff;
}

.blog-cta-panel .btn-outline:hover {
    background: #fff;
    color: var(--accent-color);
}

.blog-faq {
    background: transparent;
    padding: 22px 0;
}

.blog-faq .faq-grid {
    display: grid;
    grid-template-columns: 1fr;
}

.blog-faq .faq-item {
    border-left-width: 3px;
    border-radius: 8px;
    padding: 22px;
}

.image-brief {
    background: #fffdf8;
}

.image-brief p {
    font-size: 0.95rem;
    word-break: break-word;
}

.related-articles {
    margin-top: 58px;
}

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

/* Footer */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 50px;
    margin-bottom: 60px;
}

footer h4 {
    color: var(--white);
    margin-bottom: 20px;
    font-size: 1.2rem;
}

footer p {
    color: rgba(255,255,255,0.7);
    margin-bottom: 10px;
}

footer a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
}

.social-links {
    list-style: none;
}

.social-links li {
    margin-bottom: 10px;
}

.social-links a {
    align-items: center;
    color: rgba(255,255,255,0.7);
    display: inline-flex;
    min-height: 44px;
    text-decoration: none;
    transition: var(--transition);
}

.social-links a:hover {
    color: var(--white);
}

.footer-bottom {
    text-align: center;
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 30px;
}

.copyright {
    color: rgba(255,255,255,0.5);
    font-size: 0.9rem;
}

.menu-toggle {
    background: transparent;
    border: 0;
    display: none;
    cursor: pointer;
    flex-direction: column;
    gap: 5px;
    padding: 4px;
    z-index: 1001;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    transition: var(--transition);
    border-radius: 3px;
}

/* Shop UI Styles */
.shop-tabs .shop-tab-btn {
    padding: 12px 24px;
    border: 1px solid var(--primary-color);
    background-color: transparent;
    color: var(--primary-color);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}
.shop-tabs .shop-tab-btn.active, .shop-tabs .shop-tab-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.category-filters {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    overflow-x: auto;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none; /* Firefox */
}
.category-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}
.filter-btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    white-space: nowrap;
    flex-shrink: 0;
    padding: 8px 16px;
    border: 1px solid var(--primary-color);
    border-radius: 20px;
    background: transparent;
    color: var(--primary-color);
    cursor: pointer;
    transition: var(--transition);
    font-size: 0.9rem;
    height: auto;
}

.filter-btn.active, .filter-btn:hover {
    background: var(--primary-color);
    color: var(--white);
}

.category-section {
    display: block;
}

.shop-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding-bottom: 20px;
}

.shop-main > .container {
    max-width: 1440px;
}

#online-shop .shop-grid-online {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

#online-shop .shop-grid-online .shop-card:nth-child(n+7) {
    display: flex;
}

#online-shop .shop-grid-online .shop-details {
    padding: 14px;
}

#online-shop .shop-grid-online .shop-details h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.25;
}

#online-shop .shop-grid-online .shop-details p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

#online-shop .shop-grid-online .shop-stock {
    -webkit-line-clamp: 1;
    font-size: 0.78rem;
}

#online-shop .shop-grid-online .shop-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

#online-shop .shop-grid-online .shop-action .btn {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
}

.menu-main > .container,
#menu > .container {
    max-width: 1440px;
}

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

#menu-products .menu-grid-online .shop-card:nth-child(n+7) {
    display: flex;
}

#menu-products .menu-grid-online .shop-details {
    padding: 14px;
}

#menu-products .menu-grid-online .shop-details h3 {
    display: -webkit-box;
    min-height: 2.5em;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.25;
}

#menu-products .menu-grid-online .shop-details p {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 0.82rem;
    margin-bottom: 10px;
}

#menu-products .menu-variant-field {
    flex: 0 0 auto;
    margin: 10px 0 12px;
}

#menu-products .menu-variant-label {
    color: #496655;
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: 6px;
    text-transform: uppercase;
}

#menu-products .menu-variant-select {
    appearance: auto;
    background: linear-gradient(135deg, #fbfff8 0%, #eef7ed 100%);
    border: 1px solid #cfe0cf;
    border-radius: 12px;
    color: #173f2b;
    cursor: pointer;
    font-family: 'Prompt', sans-serif;
    font-size: 0.84rem;
    font-weight: 600;
    min-height: 44px;
    outline: none;
    padding: 9px 11px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    width: 100%;
}

#menu-products .menu-variant-select:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(31, 122, 61, 0.12);
}

#menu-products .menu-variant-select:disabled {
    background: #f2f2f2;
    color: #888;
    cursor: not-allowed;
}

#menu-products .menu-order-access-note {
    align-items: center;
    border: 1px solid #d7eadb;
    border-radius: 18px;
    display: flex;
    gap: 10px;
    justify-content: center;
    margin: 0 auto 22px;
    max-width: 940px;
    padding: 12px 16px;
    text-align: center;
}

#menu-products .menu-order-access-note strong {
    color: #0b4b31;
    font-weight: 800;
}

#menu-products .menu-order-access-note span {
    color: #5b7064;
    font-size: 0.92rem;
}

#menu-products .menu-order-access-note.is-allowed {
    background: #eefaf1;
    border-color: #bfe3c7;
}

#menu-products .menu-order-access-note.is-locked {
    background: #fff9ec;
    border-color: #efdba6;
}

#menu-products .menu-order-access-note.is-checking {
    background: #f7faf6;
    border-color: #dfe8dd;
}

@media (max-width: 576px) {
    #menu-products .menu-order-access-note {
        align-items: flex-start;
        flex-direction: column;
        gap: 4px;
        padding: 12px 14px;
        text-align: left;
    }

    #menu-products .menu-order-access-note strong,
    #menu-products .menu-order-access-note span {
        width: 100%;
    }
}

#menu-products .btn-add-cart.menu-order-locked,
#menu-products .btn-add-cart:disabled.menu-order-locked {
    background: linear-gradient(135deg, #dfe8df 0%, #cbd8cd 100%) !important;
    box-shadow: none;
    color: #526a5b;
    cursor: not-allowed;
}

#menu-products .menu-grid-online .shop-action {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
}

#menu-products .menu-grid-online .shop-action .btn {
    width: 100%;
    padding: 8px 10px;
    text-align: center;
}

@media (min-width: 768px) {
    .shop-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 30px;
        padding-bottom: 40px;
    }
    .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (min-width: 640px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media (min-width: 900px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}
@media (min-width: 1024px) {
    .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (min-width: 1180px) {
    #online-shop .shop-grid-online {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
    #menu-products .menu-grid-online {
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 16px;
    }
}

.shop-grid .shop-card:nth-child(n+7) {
    display: none;
}
.shop-grid.show-all .shop-card:nth-child(n+7) {
    display: flex;
}

#recommended-shop .shop-grid {
    overflow: visible;
}

#recommended-shop .shop-grid.shop-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-bottom: 0;
}

#recommended-shop .shop-grid .shop-card:nth-child(n+7) {
    display: flex;
}

#recommended-shop .shop-grid .shop-card:nth-child(n+9) {
    display: none;
}

.featured-products-loading .featured-skeleton-card {
    background: rgba(255,255,255,0.88);
    border: 1px solid rgba(15, 122, 61, 0.08);
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    overflow: hidden;
}

.featured-products-loading .featured-skeleton-card:hover {
    box-shadow: 0 10px 26px rgba(15, 122, 61, 0.06);
    transform: none;
}

.featured-skeleton-media,
.featured-skeleton-line,
.featured-skeleton-pill,
.featured-skeleton-button {
    background: linear-gradient(90deg, rgba(225, 236, 228, 0.72), rgba(246, 250, 247, 0.95), rgba(225, 236, 228, 0.72));
    background-size: 220% 100%;
    animation: featuredSkeletonShimmer 1.25s ease-in-out infinite;
}

.featured-skeleton-media {
    aspect-ratio: 1 / 1;
    border-bottom: 1px solid rgba(15, 122, 61, 0.06);
}

.featured-skeleton-body {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
}

.featured-skeleton-pill {
    border-radius: 999px;
    height: 14px;
    width: 42%;
}

.featured-skeleton-line {
    border-radius: 10px;
    height: 16px;
}

.featured-skeleton-line.short {
    width: 62%;
}

.featured-skeleton-line.medium {
    width: 82%;
}

.featured-skeleton-action {
    align-items: center;
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 10px;
    padding-top: 14px;
    border-top: 1px solid rgba(15, 122, 61, 0.08);
}

.featured-skeleton-button {
    border-radius: 999px;
    height: 36px;
    width: 44%;
}

.featured-empty-state {
    background: rgba(255,255,255,0.9);
    border: 1px dashed rgba(15, 122, 61, 0.22);
    border-radius: 18px;
    color: #385343;
    grid-column: 1 / -1;
    padding: 34px 20px;
    text-align: center;
}

.featured-empty-state strong,
.featured-empty-state span {
    display: block;
}

.featured-empty-state strong {
    color: var(--primary-color);
    font-size: 1.15rem;
    margin-bottom: 8px;
}

@keyframes featuredSkeletonShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

#recommended-shop .shop-card {
    height: 100%;
}

#recommended-shop .shop-img-wrapper {
    aspect-ratio: 1 / 1;
    flex: 0 0 auto;
}

#recommended-shop .shop-details {
    padding: 16px;
}

#recommended-shop .shop-details p {
    display: -webkit-box;
    margin-bottom: 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

#recommended-shop .shop-action {
    gap: 10px;
}

@media (min-width: 900px) {
    #recommended-shop .shop-grid.shop-grid-4 {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 22px;
    }
}

@media (max-width: 576px) {
    #recommended-shop .shop-grid.shop-grid-4 {
        gap: 12px;
    }

    #recommended-shop .shop-details {
        padding: 10px;
    }

    #recommended-shop .shop-action {
        align-items: flex-start;
        flex-direction: column;
    }

    #recommended-shop .shop-action .btn {
        font-size: 0.75rem;
        padding: 7px 10px;
        text-align: center;
        width: 100%;
    }
}

.shop-card {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}
.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.shop-img-wrapper {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
}
.shop-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.shop-card:hover .shop-img {
    transform: scale(1.05);
}

.shop-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.shop-category {
    font-size: 0.85rem;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}
.shop-details h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--text-color);
}
.shop-details p {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 20px;
    flex-grow: 1;
}

.shop-action {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    flex-wrap: wrap;
}
.shop-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
}

.btn-add-cart {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
    padding: 8px 16px;
    font-size: 0.95rem;
    white-space: nowrap;
}

button.shop-img-wrapper {
    border: 0;
    background: transparent;
    cursor: pointer;
    display: block;
    padding: 0;
    text-align: inherit;
}

button.shop-img-wrapper:focus-visible {
    outline: 3px solid rgba(26, 147, 69, 0.32);
    outline-offset: 3px;
}

body.shop-product-detail-open {
    overflow: hidden;
}

.shop-product-detail-modal[hidden] {
    display: none;
}

.shop-product-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 10060;
    display: grid;
    place-items: center;
    padding: 18px;
}

.shop-product-detail-modal__scrim {
    position: absolute;
    inset: 0;
    background: rgba(18, 26, 21, 0.68);
    backdrop-filter: blur(4px);
}

.shop-product-detail-modal__dialog {
    position: relative;
    width: min(980px, 100%);
    max-height: calc(100vh - 36px);
    max-height: calc(100dvh - 36px);
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.28);
}

.shop-product-detail-modal__close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(31, 55, 40, 0.14);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.92);
    color: #203629;
    cursor: pointer;
    font-size: 1.45rem;
    line-height: 1;
}

.shop-product-detail-modal__close:hover,
.shop-product-detail-modal__close:focus-visible {
    background: #f0f7f2;
}

.shop-product-detail-modal__media {
    min-height: 0;
    background: #f4f7f4;
}

.shop-product-detail-modal__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 420px;
    object-fit: cover;
}

.shop-product-detail-modal__body {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    overflow-y: auto;
    padding: 34px 34px 28px;
}

.shop-product-detail-modal__category {
    color: #6d7c72;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.shop-product-detail-modal__body h2 {
    color: var(--text-color);
    font-size: clamp(1.45rem, 3vw, 2.15rem);
    line-height: 1.18;
    margin: 0;
}

.shop-product-detail-modal__price {
    color: var(--primary-color);
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0;
}

.shop-product-detail-modal__description {
    color: #4d5a51;
    font-size: 1rem;
    line-height: 1.8;
    margin: 0;
    white-space: pre-line;
}

.shop-product-detail-modal__options {
    display: grid;
    gap: 8px;
}

.shop-product-detail-modal__options div {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    border: 1px solid #e6eee7;
    border-radius: 8px;
    padding: 9px 11px;
    color: #4c5f53;
    background: #f8fbf8;
}

.shop-product-detail-modal__options strong {
    color: #213d2c;
}

.shop-product-detail-modal__variant {
    display: grid;
    gap: 7px;
    color: #314539;
    font-size: 0.9rem;
    font-weight: 800;
}

.shop-product-detail-modal__variant select {
    min-height: 46px;
    border: 1px solid #cfe0cf;
    border-radius: 8px;
    background: #ffffff;
    color: #173f2b;
    font: inherit;
    padding: 10px 12px;
}

.shop-product-detail-modal__stock {
    color: #0f7a3d;
    font-weight: 800;
    margin: 0;
}

.shop-product-detail-modal__stock.is-sold-out {
    color: #b91c1c;
}

.shop-product-detail-modal__add {
    width: 100%;
    margin-top: auto;
}

.shop-product-detail-modal__add:disabled {
    background: #c9c9c9 !important;
    box-shadow: none;
    cursor: not-allowed;
}

@media (max-width: 576px) {
    #online-shop h2, #instore-shop h2 {
        font-size: 1.25rem !important;
        margin-top: 30px !important;
        margin-bottom: 15px !important;
    }
    .shop-details {
        padding: 10px;
    }
    .shop-details h3 {
        font-size: 0.9rem;
        margin-bottom: 4px;
        line-height: 1.3;
    }
    .shop-details p {
        font-size: 0.75rem;
        margin-bottom: 8px;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .shop-category {
        font-size: 0.65rem;
        margin-bottom: 4px;
    }
    .shop-price {
        font-size: 0.95rem;
    }
    .btn-add-cart {
        flex: 1 1 118px;
        min-height: 44px;
        padding: 9px 10px;
        font-size: 0.82rem;
    }

    .shop-product-detail-modal {
        padding: 10px;
    }

    .shop-product-detail-modal__dialog {
        max-height: calc(100vh - 20px);
        max-height: calc(100dvh - 20px);
        grid-template-columns: 1fr;
    }

    .shop-product-detail-modal__media img {
        aspect-ratio: 1 / 1;
        min-height: 0;
        max-height: 42vh;
    }

    .shop-product-detail-modal__body {
        gap: 11px;
        padding: 20px 16px 16px;
    }

    .shop-product-detail-modal__body h2 {
        padding-right: 48px;
    }

    .shop-product-detail-modal__description {
        font-size: 0.92rem;
        line-height: 1.65;
    }
}

/* Cart Badge */
.cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--accent-color);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

/* Cart Sidebar */
.cart-sidebar {
    position: fixed;
    top: 0;
    right: -400px; /* Hidden by default */
    width: 100%;
    max-width: 400px;
    height: 100vh;
    background-color: var(--white);
    box-shadow: -5px 0 25px rgba(0,0,0,0.1);
    z-index: 10000;
    transition: right 0.3s ease;
    display: flex;
    flex-direction: column;
}
.cart-sidebar.open {
    right: 0;
}
.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}
.cart-header h3 {
    margin: 0;
    font-size: 1.3rem;
}
.cart-close {
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    min-height: 44px;
    min-width: 44px;
    line-height: 1;
}
.cart-items {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
}
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f5f5f5;
}
.cart-item-info h4 {
    margin: 0 0 5px 0;
    font-size: 1rem;
    color: var(--text-color);
}
.cart-item-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.cart-qty {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    color: #2f3b33;
    cursor: pointer;
    display: inline-flex;
    font: inherit;
    font-weight: 800;
    height: 44px;
    justify-content: center;
    min-width: 44px;
}
.cart-qty:hover {
    background: #f4fbf6;
    border-color: var(--primary-color);
    color: var(--primary-color);
}
.cart-item-price {
    font-weight: 600;
    color: var(--primary-color);
}
.qty-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f5f5f5;
    padding: 4px 8px;
    border-radius: 20px;
}
.qty-controls button {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    color: #555;
    min-width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.empty-cart-msg {
    text-align: center;
    color: #999;
    margin-top: 50px;
}
.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    background-color: #fafafa;
}
.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--text-color);
}

/* Overlay */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Checkout Page Styles */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
}
.checkout-box {
    background: var(--white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
.form-group {
    margin-bottom: 20px;
}
.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #444;
}
.form-group input, .form-group textarea, .form-group select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition);
}
.form-group input:focus, .form-group textarea:focus {
    border-color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 3px rgba(26, 147, 69, 0.1);
}
.checkout-fulfillment {
    margin-bottom: 24px;
}
.checkout-field-title {
    margin-bottom: 10px;
    font-weight: 700;
    color: #253328;
}
.fulfillment-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}
.fulfillment-card {
    display: block;
    margin: 0;
    cursor: pointer;
}
.fulfillment-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.fulfillment-card-body {
    min-height: 94px;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 12px;
    align-items: center;
    padding: 16px;
    border: 1px solid #dfe8df;
    border-radius: 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fbfdfb 100%);
    box-shadow: 0 8px 20px rgba(16, 40, 24, 0.04);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.fulfillment-card input:checked + .fulfillment-card-body {
    border-color: var(--primary-color);
    background: #f2fbf5;
    box-shadow: 0 10px 26px rgba(26, 147, 69, 0.13);
}
.fulfillment-mark {
    width: 22px;
    height: 22px;
    border: 2px solid #b7c8ba;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: #fff;
}
.fulfillment-card input:checked + .fulfillment-card-body .fulfillment-mark {
    border-color: var(--primary-color);
}
.fulfillment-card input:checked + .fulfillment-card-body .fulfillment-mark::after {
    content: "";
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
}
.fulfillment-copy strong {
    display: block;
    color: #253328;
    font-size: 1rem;
    line-height: 1.25;
}
.fulfillment-copy small {
    display: block;
    margin-top: 4px;
    color: #6f7f74;
    font-size: 0.84rem;
    line-height: 1.35;
}
.checkout-item-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 14px;
    align-items: start;
    padding: 12px 0;
    border-bottom: 1px solid #edf1ed;
}
.checkout-item-row:last-child {
    border-bottom: 0;
}
.checkout-item-name {
    display: block;
    color: #333;
    font-weight: 600;
}
.checkout-item-meta {
    display: block;
    color: #7a827b;
    font-size: 0.88rem;
    margin-top: 4px;
}
.checkout-item-side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}
.checkout-item-price {
    color: #333;
    font-weight: 700;
}
.checkout-item-actions {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.checkout-qty-btn,
.checkout-remove-btn {
    min-width: 44px;
    height: 44px;
    border: 1px solid #dfe5df;
    border-radius: 8px;
    background: #fff;
    color: #2f3b33;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.checkout-qty-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: #f4fbf6;
}
.checkout-remove-btn {
    padding: 0 10px;
    color: #b42318;
    border-color: #f2d0cc;
}
.checkout-remove-btn:hover {
    background: #fff4f2;
}
.payment-method {
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    background: #fafafa;
}
.payment-method.selected {
    border-color: var(--primary-color);
    background: #f2f9f5;
}
.summary-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    color: #555;
}
.summary-line.total-line {
    border-top: 2px solid #eee;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: 700;
    color: var(--text-color);
}

.checkout-box p a {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    min-width: 44px;
}

.checkout-item-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
    font-size: 0.95rem;
}

.promo-code-container input,
.promo-code-container .btn,
.success-content .btn,
.checkout-empty a {
    min-height: 44px;
    padding: 10px 0;
}

.promo-code-container .btn,
.success-content .btn,
.checkout-empty a {
    align-items: center;
    display: inline-flex;
    justify-content: center;
}

@media (max-width: 640px) {
    .fulfillment-options {
        grid-template-columns: 1fr;
    }

    .fulfillment-card-body {
        min-height: 78px;
    }

    .checkout-item-row {
        grid-template-columns: 1fr;
    }

    .checkout-item-side {
        align-items: stretch;
    }

    .checkout-item-actions {
        justify-content: flex-end;
    }
}

/* Success Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.modal-content {
    background: var(--white);
    padding: 40px;
    border-radius: 16px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    transform: translateY(20px);
    transition: var(--transition);
}
.modal-overlay.show .modal-content {
    transform: translateY(0);
}
.success-icon {
    font-size: 4rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}

/* Responsive Design */
@media (max-width: 992px) {
    h1 { font-size: 2.8rem; }
    h2 { font-size: 2.2rem; }
    .article-layout {
        grid-template-columns: 1fr;
    }
    .article-sidebar {
        position: static;
    }
    .toc-box ol {
        columns: 2;
        column-gap: 24px;
    }
    .related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .navbar {
        background-color: var(--white);
    }
    .navbar .container {
        flex-wrap: wrap;
        height: auto;
        gap: 8px;
        min-height: 68px;
        padding-top: 10px;
        padding-bottom: 10px;
    }
    nav {
        width: 100%;
        order: 4; /* Push below logo and toggle */
    }
    .menu-toggle {
        display: flex;
        order: 3;
        width: 44px;
        height: 44px;
        justify-content: center;
        padding: 8px;
    }
    .logo {
        display: inline-flex;
        order: 1;
    }
    .logo-img {
        height: 32px; /* Slightly smaller logo to fit everything */
    }
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none;
        width: 100%;
        align-items: stretch;
        background: #fff;
        border: 1px solid rgba(19, 114, 52, 0.1);
        border-radius: 12px;
        box-shadow: 0 12px 30px rgba(19, 114, 52, 0.08);
        gap: 8px;
        margin: 8px 0 0;
        max-height: min(40dvh, 260px);
        overflow-y: auto;
        padding: 12px;
        -webkit-overflow-scrolling: touch;
    }
    .nav-links.active {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .nav-links > li {
        min-width: 0;
        width: 100%;
    }
    .nav-links a {
        border-radius: 8px;
        display: flex;
        font-size: 0.92rem;
        justify-content: center;
        line-height: 1.25;
        padding: 8px 7px;
        text-align: center;
        width: 100%;
    }
    .nav-dropdown {
        display: grid;
        grid-column: 1 / -1;
        justify-items: center;
        width: 100%;
    }
    .nav-dropdown::after {
        display: none;
    }
    .nav-dropdown-toggle {
        justify-content: center;
    }
    .nav-dropdown-menu {
        background: #f8fbf8;
        border-color: rgba(76, 175, 80, 0.16);
        box-shadow: none;
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        left: auto;
        margin-top: 6px;
        max-width: none;
        min-width: 0;
        opacity: 1;
        padding: 6px;
        pointer-events: auto;
        position: static;
        top: auto;
        transform: none;
        visibility: visible;
        width: 100%;
    }
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }
    .nav-dropdown-menu a {
        font-size: 0.9rem;
        min-height: 40px;
        padding: 8px 6px;
        text-align: center;
        white-space: normal;
    }
    .nav-actions {
        display: flex;
        width: auto;
        flex-direction: row;
        align-items: center;
        gap: 6px;
        padding: 0;
        order: 2;
        margin-left: auto;
        margin-right: 6px;
    }
    .nav-actions .auth-container {
        display: none;
    }
    .nav-actions.active {
        display: flex; /* Kept for JS compatibility if any, though it's already flex */
        justify-content: center;
        margin: 6px 0 0;
        order: 5;
        width: 100%;
    }
    .nav-actions.active .auth-container {
        display: flex;
    }
    .nav-actions .btn {
        display: inline-flex;
        padding: 8px 10px;
        font-size: 0.82rem;
        justify-content: center;
    }
    .lang-switcher {
        font-size: 0.85rem;
    }
    .lang-switcher a {
        padding: 8px 6px;
    }

    /* Hamburger Animation */
    .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }
    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 1.8rem; /* Smaller font to fit mobile screens */
        line-height: 1.35;
    }
    .hero p {
        font-size: 1.05rem;
        padding: 0 10px; /* Extra breathing room */
    }

    /* Mobile Hero Reviews 1:1 Centered */
    .hero-reviews {
        padding: 0 calc(50% - 140px); /* Center 280px wide cards */
        scroll-padding-inline-start: calc(50% - 140px);
    }
    .hero-review-card {
        flex: 0 0 280px;
        aspect-ratio: 1 / 1;
        scroll-snap-align: center;
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

    .blog-hero {
        padding: 122px 0 54px;
    }
    .blog-hero h1,
    .blog-header h1 {
        font-size: 2rem;
        line-height: 1.25;
    }
    .blog-hero p,
    .blog-header p {
        font-size: 1rem;
    }
    .blog-listing-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .blog-listing-head h2 {
        font-size: 1.8rem;
    }
    .blog-post {
        padding-top: 108px;
    }
    .blog-post-img {
        border-radius: 8px;
        margin-bottom: 24px;
    }
    .blog-content {
        font-size: 1rem;
    }
    .article-layout {
        gap: 18px;
        margin-top: 18px;
    }
    .toc-box ol {
        columns: 1;
    }
    .summary-box,
    .blog-link-panel,
    .blog-cta-panel,
    .image-brief {
        padding: 20px;
    }
    .related-grid {
        grid-template-columns: 1fr;
    }
    .blog-hero-actions,
    .blog-cta-actions {
        align-items: stretch;
        flex-direction: column;
    }
    .blog-hero-actions .btn,
    .blog-cta-actions .btn {
        text-align: center;
        width: 100%;
    }

    section { padding: 60px 0; }
}

@media (max-width: 360px) {
    .nav-links.active {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-dropdown-menu {
        grid-template-columns: 1fr;
    }
}

/* Authentication UI Styles */
.auth-container {
    display: flex;
    align-items: center;
    margin-left: 15px;
}

.user-profile-menu {
    position: relative;
    display: inline-block;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown-identity {
    border-bottom: 1px solid #e3ede6;
    display: grid;
    gap: 2px;
    padding: 10px 16px;
}

.profile-dropdown-avatar {
    display: none;
}

.profile-dropdown-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.profile-dropdown-copy strong,
.profile-dropdown-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-dropdown-copy small {
    color: #5d7466;
}

.profile-dropdown-actions {
    display: grid;
}

.profile-dropdown a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.profile-dropdown a.profile-pos-link {
    align-items: center;
    background: #edf7ef;
    border: 1px solid #d5e8da;
    border-radius: 12px;
    color: #116f37;
    display: grid;
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr) 18px;
    margin: 4px;
    padding: 9px 10px;
    text-align: left;
}

.profile-dropdown a:hover {
    background-color: #f1f1f1;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.login-modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.login-close:hover {
    color: #333;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.auth-social-entry {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.auth-google-btn {
    min-height: 54px;
    border-radius: 16px;
    border-color: rgba(26, 147, 69, 0.22);
    font-family: 'Prompt', 'Inter', sans-serif;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(18, 78, 48, 0.08);
}

.auth-google-btn::before {
    content: 'G';
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: #fff;
    color: #1a9345;
    border: 1px solid rgba(26, 147, 69, 0.18);
    font-weight: 900;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718078;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(26, 147, 69, 0.16);
}

.phone-register-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.phone-register-link:hover {
    text-decoration: underline;
}

.phone-login-btn {
    display: block;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(26, 147, 69, 0.22);
}

.phone-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(26, 147, 69, 0.26);
}

.phone-login-note {
    margin: 14px 0 0;
    color: #66756d;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

/* Phone Registration */
.register-page {
    min-height: 100vh;
    padding-top: 80px;
    background:
        radial-gradient(circle at 8% 18%, rgba(26, 147, 69, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(219, 187, 104, 0.28), transparent 26rem),
        linear-gradient(135deg, #f6fbf5 0%, #fffaf0 48%, #eef8f2 100%);
}

.register-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.register-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 48px;
    align-items: center;
}

.register-copy {
    max-width: 560px;
}

.register-eyebrow,
.register-form-kicker {
    margin: 0 0 14px;
    color: #2d7f4d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.register-copy h1 {
    margin-bottom: 20px;
    color: #0f3f2d;
    font-size: clamp(2.8rem, 6vw, 5.7rem);
    letter-spacing: -0.06em;
}

.register-copy p {
    color: #5c6f62;
    font-size: 1.08rem;
    line-height: 1.85;
}

.register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.register-benefits span {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid rgba(26, 147, 69, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #174b35;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 74, 42, 0.06);
}

.register-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 80px rgba(10, 49, 31, 0.12);
    backdrop-filter: blur(20px);
}

.register-card::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(26, 147, 69, 0.08);
    pointer-events: none;
}

.register-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.register-step {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ef;
    color: #7b8b80;
    font-weight: 800;
}

.register-step.active {
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    box-shadow: 0 10px 20px rgba(26, 147, 69, 0.22);
}

.register-status {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #edf7ef;
    color: #14512f;
    font-weight: 700;
}

.register-status[data-type="error"] {
    background: #fff0ed;
    color: #b42318;
}

.register-status[data-type="warning"] {
    background: #fff8e6;
    color: #855b00;
}

.register-form {
    display: none;
    position: relative;
    z-index: 1;
}

.register-form.active {
    display: grid;
    gap: 18px;
}

.register-form h2,
.register-complete h2 {
    margin: 0;
    color: #0f3f2d;
    text-align: left;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.register-muted {
    margin: 0;
    color: #6a776e;
}

.register-form label {
    display: grid;
    gap: 8px;
    color: #244235;
    font-weight: 800;
}

.register-form input,
.register-form textarea {
    width: 100%;
    border: 1px solid #d9e6d7;
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #172c21;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus,
.register-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.12);
}

.eden-otp-field {
    --eden-otp-accent: #1a9345;
    --eden-otp-accent-strong: #0f6f39;
    --eden-otp-warm: #d9a441;
    --eden-otp-surface: #f7fbf4;
    --eden-otp-progress: 0;
    position: relative;
    width: min(100%, 390px);
    min-height: 68px;
    isolation: isolate;
}

.eden-otp-field[data-tone="reset"] {
    --eden-otp-accent: #287c8f;
    --eden-otp-accent-strong: #145c6d;
    --eden-otp-warm: #d6a242;
}

.eden-otp-field[data-tone="email"] {
    --eden-otp-accent: #816a22;
    --eden-otp-accent-strong: #5f4b10;
    --eden-otp-warm: #1a9345;
}

.eden-otp-field[data-tone="danger"] {
    --eden-otp-accent: #c44731;
    --eden-otp-accent-strong: #9a2c1f;
    --eden-otp-warm: #d9a441;
}

.eden-otp-native {
    position: absolute !important;
    inset: 0;
    z-index: 3;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 20px !important;
    background: transparent !important;
    color: transparent !important;
    caret-color: transparent !important;
    box-shadow: none !important;
    opacity: 0.02;
}

.eden-otp-shell {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 8px;
    pointer-events: none;
}

.eden-otp-track {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    padding: 6px;
    border: 1px solid rgba(26, 147, 69, 0.14);
    border-radius: 24px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(246, 251, 245, 0.84)),
        linear-gradient(90deg, rgba(26, 147, 69, 0.12), rgba(217, 164, 65, 0.12));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82), 0 16px 32px rgba(13, 81, 45, 0.08);
    overflow: hidden;
}

.eden-otp-track::before {
    content: '';
    position: absolute;
    inset: 6px auto 6px 6px;
    width: calc((100% - 12px) * var(--eden-otp-progress));
    border-radius: 18px;
    background: linear-gradient(90deg, rgba(26, 147, 69, 0.12), rgba(217, 164, 65, 0.18));
    transition: width 0.28s ease;
}

.eden-otp-slot {
    position: relative;
    flex: 1 1 0;
    display: grid;
    place-items: center;
    min-width: 0;
    height: 44px;
    margin-left: -5px;
    border: 1px solid rgba(26, 147, 69, 0.13);
    border-radius: 18px;
    background: linear-gradient(145deg, #eef5ef, #f7f9f6);
    color: #123623;
    font-size: 1.22rem;
    font-weight: 900;
    line-height: 1;
    overflow: hidden;
    transform: translateY(0);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.eden-otp-slot:first-child {
    margin-left: 0;
}

.eden-otp-slot::before {
    content: '';
    position: absolute;
    inset: 50% auto auto 50%;
    width: 150%;
    aspect-ratio: 1;
    border-radius: 45%;
    background:
        radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.72), transparent 20%),
        linear-gradient(135deg, rgba(26, 147, 69, 0.24), rgba(217, 164, 65, 0.2));
    opacity: 0;
    transform: translate(-50%, -26%) scale(0.22) rotate(calc(var(--otp-index) * 14deg));
    transition: transform 0.32s cubic-bezier(.2, .85, .2, 1), opacity 0.22s ease;
}

.eden-otp-digit {
    position: relative;
    z-index: 1;
    display: inline-grid;
    place-items: center;
    min-width: 1ch;
    line-height: 1;
}

.eden-otp-slot.is-filled {
    border-color: rgba(26, 147, 69, 0.34);
    background: linear-gradient(145deg, rgba(225, 244, 231, 0.95), rgba(255, 249, 228, 0.76));
    box-shadow: 0 12px 22px rgba(26, 147, 69, 0.12);
    transform: translateY(-1px);
}

.eden-otp-slot.is-filled::before {
    opacity: 1;
    transform: translate(-50%, -36%) scale(1) rotate(calc(var(--otp-index) * 14deg));
}

.eden-otp-slot.is-active {
    border-color: rgba(217, 164, 65, 0.52);
    box-shadow: 0 0 0 5px rgba(217, 164, 65, 0.13);
}

.eden-otp-field.is-focused .eden-otp-track {
    border-color: rgba(26, 147, 69, 0.38);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.1), 0 18px 36px rgba(13, 81, 45, 0.1);
}

.eden-otp-field[data-state="loading"] .eden-otp-track::after {
    content: '';
    position: absolute;
    inset: 6px;
    border-radius: 18px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.78), transparent);
    animation: edenOtpSweep 1s ease-in-out infinite;
}

.eden-otp-field[data-state="success"] .eden-otp-track {
    border-color: rgba(26, 147, 69, 0.42);
    background: linear-gradient(135deg, rgba(232, 248, 238, 0.98), rgba(244, 253, 247, 0.9));
}

.eden-otp-field[data-state="success"] .eden-otp-slot.is-filled {
    background: linear-gradient(145deg, #cdefd5, #e9f9ee);
    color: #0f6f39;
}

.eden-otp-field[data-state="error"] .eden-otp-track {
    border-color: rgba(196, 71, 49, 0.38);
    box-shadow: 0 0 0 5px rgba(196, 71, 49, 0.08), 0 16px 32px rgba(112, 38, 28, 0.08);
}

.eden-otp-field[data-state="error"] .eden-otp-slot.is-filled {
    background: linear-gradient(145deg, #ffe8e2, #fff6f2);
    border-color: rgba(196, 71, 49, 0.34);
}

.eden-otp-field.is-disabled {
    opacity: 0.66;
}

.eden-otp-message {
    color: var(--eden-otp-accent-strong);
    font-size: 0.86rem;
    font-weight: 800;
}

.eden-otp-shake {
    animation: edenOtpShake 0.34s ease;
}

@keyframes edenOtpSweep {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(110%);
    }
}

@keyframes edenOtpShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-7px);
    }
    75% {
        transform: translateX(7px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eden-otp-track::before,
    .eden-otp-slot,
    .eden-otp-slot::before {
        transition: none;
    }

    .eden-otp-field[data-state="loading"] .eden-otp-track::after,
    .eden-otp-shake {
        animation: none;
    }
}

@media (max-width: 520px) {
    .eden-otp-field {
        width: 100%;
    }

    .eden-otp-track {
        min-height: 52px;
        padding: 5px;
        border-radius: 20px;
    }

    .eden-otp-slot {
        height: 40px;
        border-radius: 15px;
        font-size: 1.08rem;
    }
}

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

.register-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    padding: 14px;
    border: 1px solid rgba(26, 147, 69, 0.12);
    border-radius: 18px;
    background: rgba(246, 251, 245, 0.75);
    font-weight: 600 !important;
}

.register-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--primary-color);
}

.register-recaptcha {
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.register-submit {
    width: 100%;
    min-height: 52px;
    font-weight: 800;
}

.register-submit:disabled,
.register-actions .btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.register-complete {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 0 8px;
}

.register-complete h2 {
    text-align: center;
}

.register-complete-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.auth-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #f7fbf4 0%, #fffaf0 52%, #edf8f1 100%);
}

.auth-panel {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 64px rgba(10, 49, 31, 0.12);
}

.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 3px solid rgba(26, 147, 69, 0.16);
}

.auth-brand h1 {
    margin: 0;
    color: #0f3f2d;
    font-size: clamp(2rem, 6vw, 3rem);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-panel [hidden] {
    display: none !important;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #244235;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    border: 1px solid #d9e6d7;
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #172c21;
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.12);
}

.auth-forgot-link {
    justify-self: center;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
    min-height: 44px;
    padding: 8px 10px;
}

.forgot-password-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 147, 69, 0.16);
}

.forgot-password-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.forgot-password-head h2 {
    margin: 0;
    color: #0f3f2d;
    font-size: 1.25rem;
}

.auth-close-button {
    border: 1px solid rgba(26, 147, 69, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: #17452f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.forgot-form {
    gap: 14px;
}

.forgot-channel-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.forgot-channel-group legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #244235;
    font-weight: 800;
}

.forgot-channel-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9e6d7;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.forgot-channel-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.auth-switch {
    margin: 20px 0 0;
    text-align: center;
    color: #5c6f62;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 6px 8px;
    color: var(--accent-color);
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .register-hero {
        padding: 44px 0;
    }

    .register-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .register-copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .register-card {
        padding: 24px;
        border-radius: 26px;
    }

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

    .register-actions .btn {
        width: 100%;
        text-align: center;
    }

    .auth-panel {
        padding: 26px;
        border-radius: 24px;
    }

    .forgot-channel-group {
        grid-template-columns: 1fr;
    }
}

/* Premium Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-identity-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 18px;
    background: #fffdf7;
    box-shadow: 0 12px 32px rgba(10, 49, 31, 0.07);
}

.profile-identity-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(26, 147, 69, 0.18);
    background: #f2f9f5;
}

.profile-identity-main h2 {
    margin: 0 0 16px;
    color: #0f3f2d;
    font-size: 1.55rem;
}

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

.profile-identity-grid div {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5faf3;
}

.profile-identity-grid span {
    display: block;
    margin-bottom: 4px;
    color: #66756d;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-identity-grid strong {
    display: block;
    color: #163d2d;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .profile-identity-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-identity-avatar {
        margin: 0 auto;
    }

    .profile-identity-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Sidebar Navigation */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.profile-nav-item:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.profile-nav-item.active {
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.profile-nav-item i, .profile-nav-item svg {
    margin-right: 15px;
    width: 20px;
}

/* Main Content Area */
.profile-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

/* Member Card (Gold Tier Mockup) */
.member-card {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(197, 160, 23, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.member-card--silver {
    background: linear-gradient(135deg, #f8fafc 0%, #d9dee7 48%, #aeb8c7 100%);
    color: #253044;
    box-shadow: 0 10px 20px rgba(114, 127, 148, 0.22);
}

.member-card--gold {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    color: #fff;
}

.member-card--platinum {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.38), transparent 32%),
        linear-gradient(135deg, #064e3b 0%, #0f7a5b 46%, #f7fbf7 120%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(6, 78, 59, 0.28);
}

.member-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.member-tier-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-tier-badge--silver {
    background: rgba(255,255,255,0.7);
    color: #344054;
}

.member-tier-badge--gold {
    background: rgba(255,255,255,0.24);
    color: #fff;
}

.member-tier-badge--platinum {
    background: rgba(255,255,255,0.22);
    color: #f7fff9;
    border: 1px solid rgba(255,255,255,0.3);
}

.member-id {
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-progress-container {
    margin-top: 15px;
}

.member-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 4px;
    position: relative;
    z-index: 1;
}

.member-metrics-row span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.88rem;
    backdrop-filter: blur(6px);
}

.member-card--silver .member-metrics-row span {
    background: rgba(255,255,255,0.72);
    border-color: rgba(128, 139, 158, 0.24);
}

.member-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.member-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 60%; /* Example width */
}

.member-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.9;
}

.member-progress-goal {
    margin: 10px 0 0;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.membership-panel {
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 62, 46, 0.045);
}

.membership-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.benefit-pill {
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(207,181,59,0.10));
    border: 1px solid rgba(46, 125, 50, 0.12);
    color: #29483a;
    font-weight: 600;
}

.membership-rule-lead,
.membership-max-note {
    margin: 0 0 14px;
    color: #52635a;
}

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

.membership-rule-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbf6;
    border: 1px solid rgba(46, 125, 50, 0.10);
}

.membership-rule-row strong {
    color: var(--primary-color);
}

.membership-rule-row em {
    color: #667085;
    font-style: normal;
    font-size: 0.92rem;
}

.tier-preview-panel {
    overflow: hidden;
}

.tier-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tier-preview-heading h2 {
    margin-bottom: 6px;
}

.tier-preview-heading p {
    margin: 0;
    color: #667085;
}

.tier-preview-selected {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.86rem;
}

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

.tier-preview-card {
    min-height: 116px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 18px;
    padding: 16px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 62, 46, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tier-preview-card:hover,
.tier-preview-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 62, 46, 0.14);
}

.tier-preview-card.is-active {
    outline: 3px solid rgba(46, 125, 50, 0.2);
}

.tier-preview-card.is-locked {
    filter: saturate(0.88);
}

.tier-preview-card strong {
    display: block;
    margin-top: 20px;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.tier-preview-card small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    opacity: 0.88;
}

.tier-preview-lock {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.42);
}

.tier-preview-detail {
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tier-preview-detail.member-card--silver {
    color: #253044;
}

.tier-preview-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tier-preview-detail-head h3 {
    margin: 10px 0 0;
    color: inherit;
}

.tier-preview-lock-large {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.25rem;
}

.tier-preview-detail .benefit-pill {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.28);
    color: inherit;
}

.tier-preview-detail.member-card--silver .benefit-pill {
    background: rgba(255,255,255,0.66);
    border-color: rgba(128, 139, 158, 0.22);
}

.tier-preview-rules {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
}

.tier-preview-rules p {
    margin: 0 0 10px;
    font-weight: 700;
}

.tier-preview-rules span {
    display: inline-flex;
    margin: 4px 6px 4px 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.profile-account-card {
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbf3 100%);
    box-shadow: 0 12px 28px rgba(15, 62, 46, 0.06);
}

.profile-account-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}

.profile-account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(46, 125, 50, 0.22);
}

.profile-account-top h3 {
    margin: 4px 0;
    color: var(--primary-color);
}

.profile-account-top p {
    margin: 0;
    color: #667085;
}

.profile-kicker {
    display: inline-flex;
    color: #3a7b56;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-edit-form {
    display: grid;
    gap: 18px;
}

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

.profile-edit-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.profile-edit-form input,
.profile-edit-form textarea {
    width: 100%;
    border: 1px solid #d9e4d6;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: #1f2933;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-form.is-readonly input,
.profile-edit-form.is-readonly textarea {
    background: #f7fbf7;
    color: #24362c;
    cursor: default;
}

.profile-edit-form.is-readonly input:focus,
.profile-edit-form.is-readonly textarea:focus {
    border-color: #d9e4d6;
    box-shadow: none;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.profile-form-full {
    grid-column: 1 / -1;
}

.profile-email-verify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: center;
    border: 1px solid #d9e4d6;
    border-radius: 16px;
    padding: 14px;
    background: #f8fbf8;
}

.profile-email-verify strong,
.profile-email-verify span,
.profile-email-verify small {
    display: block;
}

.profile-email-verify strong {
    color: #173c28;
}

.profile-email-verify span {
    color: #8a5b00;
    font-weight: 800;
    margin-top: 4px;
}

.profile-email-verify small {
    color: #607166;
    margin-top: 6px;
    line-height: 1.5;
}

.profile-email-verify.is-verified {
    background: #f1faf3;
    border-color: #b9dfc2;
}

.profile-email-verify.is-verified span {
    color: #1f7a3d;
}

.profile-email-actions {
    display: grid;
    grid-template-columns: auto minmax(88px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.profile-email-actions[hidden] {
    display: none !important;
}

.profile-email-actions .btn {
    white-space: nowrap;
}

.profile-email-actions .btn:disabled,
.profile-form-actions .btn:disabled {
    cursor: not-allowed;
    opacity: 0.62;
    transform: none;
}

.profile-privacy-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.08);
    color: #42604e;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .profile-email-verify,
    .profile-email-actions {
        grid-template-columns: 1fr;
    }
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-save-message {
    margin: 0;
    min-height: 1.4em;
    font-weight: 600;
}

@media (max-width: 640px) {
    .profile-main {
        padding: 20px;
    }

    .profile-account-card {
        padding: 18px;
    }

    .profile-account-top {
        align-items: flex-start;
    }

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

    .membership-rule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .member-card-header {
        gap: 14px;
        flex-direction: column;
    }

    .tier-preview-heading {
        flex-direction: column;
    }

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

    .tier-preview-card {
        min-height: 96px;
    }
}

/* Favorites Section */
.favorites-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.favorite-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.favorite-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.favorite-card-body {
    padding: 10px;
}

.favorite-card-body h4 {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-card-body .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    width: 100%;
}

/* Global Cart Icon */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.global-cart-icon {
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    transition: color 0.3s;
}
.global-cart-icon:hover {
    color: var(--primary-color);
}
.global-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Premium Social Icons */
.social-icons-premium {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-icons-premium a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}
.social-icons-premium a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

/* Custom Address Autocomplete Styles */
.address-autocomplete-dropdown {
    position: absolute;
    z-index: 1000;
    background: #fff;
    border: 1px solid #d4d4d4;
    border-radius: 4px;
    max-height: 250px;
    overflow-y: auto;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    margin: 0;
    padding: 0;
    list-style: none;
    display: none;
}
.address-autocomplete-dropdown.show {
    display: block;
}
.address-autocomplete-dropdown li {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}
.address-autocomplete-dropdown li:hover, .address-autocomplete-dropdown li.autocomplete-active {
    background-color: #f2f9f5;
}
.address-autocomplete-dropdown strong {
    color: var(--primary-color);
}

/* Booking Type Toggle */
.booking-type-toggle {
    display: flex;
    background-color: #f1f5f9;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 25px;
    position: relative;
    gap: 8px;
}
.booking-type-toggle input[type="radio"] {
    display: none;
}
.booking-type-toggle .type-btn {
    flex: 1;
    text-align: center;
    padding: 12px 15px;
    font-size: 1rem;
    font-weight: 500;
    color: #64748b;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 1;
}
.booking-type-toggle input[type="radio"]:checked + .type-btn {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Interactive Table Map */
.interactive-map-container {
    background: #f9fbf9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin-top: 10px;
}

.map-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
    justify-content: center;
    font-size: 0.85rem;
    color: #555;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.legend-box {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    display: inline-block;
}

.legend-box.available, .map-table.available {
    background-color: #fff;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.legend-box.selected, .map-table.selected {
    background-color: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: #fff;
    box-shadow: 0 0 8px rgba(26, 147, 69, 0.4);
}

.legend-box.booked, .map-table.booked {
    background-color: #e2e8f0;
    border: 2px solid #cbd5e1;
    color: #94a3b8;
    cursor: not-allowed;
}

.legend-box.unavailable, .map-table.unavailable {
    background-color: #fca5a5;
    border: 2px solid #ef4444;
    color: #7f1d1d;
    cursor: not-allowed;
}

.map-layout-wrapper {
    overflow-x: auto;
    padding-bottom: 10px;
}

.map-layout {
    position: relative;
    width: 600px; /* Fixed width to allow scrolling on mobile */
    height: 400px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin: 0 auto;
    background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
    background-size: 20px 20px;
}

.map-zone-label {
    position: absolute;
    font-size: 1.2rem;
    font-weight: bold;
    color: #cbd5e1;
    pointer-events: none;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.map-table {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}

.map-table.available:hover {
    background-color: #f0fdf4;
    transform: scale(1.05);
}

.map-table-circle {
    border-radius: 50%;
}

/* Scoped React table map. Keep these class names unique so layout styles cannot leak. */
.eden-table-map {
    background: #fffdf6;
    border: 1px solid rgba(9, 89, 55, 0.12);
    border-radius: 24px;
    box-shadow: 0 18px 45px rgba(9, 89, 55, 0.08);
    padding: 22px;
    color: #123f2b;
    min-width: 0;
}

.eden-map-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.eden-map-eyebrow {
    color: rgba(9, 89, 55, 0.72);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.22em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.eden-map-head h3,
.eden-map-summary-card h4 {
    color: #123f2b;
    margin: 0;
}

.eden-map-head h3 {
    font-size: 1.45rem;
}

.eden-map-subtitle {
    color: #66756d;
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 6px 0 0;
}

.eden-map-limit {
    background: #0b5b3a;
    border-radius: 999px;
    box-shadow: 0 10px 22px rgba(9, 89, 55, 0.18);
    color: #fff;
    flex: 0 0 auto;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 10px 16px;
    white-space: nowrap;
}

.eden-map-legend {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 14px;
}

.eden-map-legend-item {
    align-items: center;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid #e6ded0;
    border-radius: 999px;
    color: #55645c;
    display: flex;
    font-size: 0.82rem;
    font-weight: 600;
    gap: 8px;
    padding: 9px 11px;
}

.eden-map-dot {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-block;
    height: 12px;
    width: 12px;
}

.eden-map-dot.is-available {
    background: #fffdf6;
    border-color: #0b5b3a;
}

.eden-map-dot.is-selected {
    background: #0b5b3a;
}

.eden-map-dot.is-booked {
    background: #d9d4cb;
}

.eden-map-dot.is-unavailable {
    background: #f3b6b6;
}

.eden-map-notice {
    background: #eef8f0;
    border: 1px solid rgba(9, 89, 55, 0.12);
    border-radius: 16px;
    color: #123f2b;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 16px;
    padding: 12px 14px;
}

.eden-map-notice.is-danger {
    background: #fff2f1;
    border-color: #f0b8b1;
    color: #9b2f2b;
}

.eden-map-scroll {
    background: linear-gradient(135deg, #063b29, #0b5b3a 58%, #103c2d);
    border: 1px solid rgba(9, 89, 55, 0.14);
    border-radius: 22px;
    max-width: 100%;
    min-width: 0;
    overflow-x: auto;
    padding: 12px;
    position: relative;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.eden-map-stage {
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 18px;
    height: 520px;
    min-width: 760px;
    overflow: hidden;
    position: relative;
    scroll-snap-align: start;
}

.eden-map-divider {
    background: rgba(255, 255, 255, 0.12);
    position: absolute;
}

.eden-map-divider.vertical {
    bottom: 0;
    left: 43%;
    top: 0;
    width: 1px;
}

.eden-map-divider.horizontal {
    height: 1px;
    left: 4%;
    right: 4%;
    top: 48%;
}

.eden-map-zone {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    color: rgba(255, 255, 255, 0.82);
    padding: 16px;
    position: absolute;
}

.eden-map-zone-title {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.eden-map-zone-hint {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.72rem;
    margin-top: 5px;
}

.eden-map-walkway {
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.72rem;
    font-weight: 700;
    left: 45%;
    letter-spacing: 0.22em;
    padding: 8px 18px;
    position: absolute;
    text-transform: uppercase;
    top: 37%;
}

.eden-map-table {
    --table-lift: 0px;
    --table-rotation: 0deg;
    --table-scale: 1;
    align-items: center;
    border: 2px solid transparent;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    font-weight: 800;
    justify-content: center;
    position: absolute;
    transform: translateY(var(--table-lift)) rotate(var(--table-rotation)) translateZ(0) scale(var(--table-scale));
    transform-origin: center center;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.eden-map-table.shape-round {
    border-radius: 999px;
    height: 56px;
    width: 56px;
}

.eden-map-table.shape-rect {
    border-radius: 16px;
    height: 50px;
    width: 82px;
}

.eden-map-table.shape-wide {
    border-radius: 16px;
    height: 50px;
    width: 112px;
}

.eden-map-table.is-available {
    background: #fffdf6;
    border-color: #0b5b3a;
    color: #123f2b;
}

.eden-map-table.is-available:hover {
    --table-lift: -3px;
    box-shadow: 0 10px 24px rgba(9, 89, 55, 0.18);
}

.eden-map-table.is-selected {
    background: #0b5b3a;
    border-color: #073c28;
    box-shadow: 0 12px 30px rgba(9, 89, 55, 0.35), 0 0 0 4px rgba(255, 253, 246, 0.55);
    color: #fff;
}

.eden-map-table.is-booked {
    background: #ded9d0;
    border-color: #c8c1b5;
    color: #8a8174;
    cursor: not-allowed;
}

.eden-map-table.is-unavailable {
    background: #f9d1d0;
    border-color: #e89490;
    color: #8b2d2a;
    cursor: not-allowed;
}

.eden-map-table-code {
    font-size: 0.72rem;
    line-height: 1.1;
}

.eden-map-table-seats {
    font-size: 0.63rem;
    font-weight: 600;
    line-height: 1.2;
    opacity: 0.72;
}

.eden-map-summary-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.1fr 0.9fr;
    margin-top: 16px;
}

.eden-map-summary-card {
    background: #fff;
    border: 1px solid #e7dfd1;
    border-radius: 18px;
    padding: 16px;
}

.eden-map-summary-card.is-soft {
    background: #eef8f0;
    border-color: rgba(9, 89, 55, 0.12);
}

.eden-map-summary-card .muted {
    color: #7b867f;
    margin: 8px 0 0;
}

.eden-map-chip-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.eden-map-chip {
    background: #0b5b3a;
    border-radius: 999px;
    color: #fff;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 7px 12px;
}

.eden-map-seat-total {
    color: #66756d;
    font-size: 0.88rem;
    margin: 12px 0 0;
}

.eden-map-summary-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 0;
}

.eden-map-summary-list div {
    display: flex;
    gap: 12px;
    justify-content: space-between;
}

.eden-map-summary-list dt {
    color: #52645a;
}

.eden-map-summary-list dd {
    color: #123f2b;
    font-weight: 700;
    margin: 0;
    text-align: right;
}

@media (max-width: 768px) {
    .eden-table-map {
        padding: 16px;
    }

    .eden-map-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .eden-map-legend,
    .eden-map-summary-grid {
        grid-template-columns: 1fr 1fr;
    }

    .eden-map-stage {
        height: clamp(430px, 118vw, 500px);
        min-width: min(560px, calc(100vw - 56px));
        width: 100%;
    }

    .eden-map-scroll::after {
        background: rgba(255, 255, 255, 0.92);
        border-radius: 999px;
        bottom: 12px;
        color: #0b5b3a;
        content: 'ลากแผนที่เพื่อดูโต๊ะทั้งหมด';
        font-size: 0.78rem;
        font-weight: 800;
        left: 50%;
        padding: 6px 10px;
        pointer-events: none;
        position: absolute;
        transform: translateX(-50%);
        white-space: nowrap;
    }
}

@media (max-width: 520px) {
    .eden-map-legend,
    .eden-map-summary-grid {
        grid-template-columns: 1fr;
    }

    .eden-map-scroll {
        padding: 10px;
    }

    .eden-map-stage {
        height: 430px;
        min-width: 100%;
    }

    .eden-map-zone {
        border-radius: 14px;
        font-size: 0.74rem;
        padding: 10px;
    }

    .eden-map-table {
        --table-scale: 1;
    }

    .eden-map-table.shape-round {
        height: 50px;
        width: 50px;
    }

    .eden-map-table.shape-rect {
        height: 46px;
        width: 70px;
    }

    .eden-map-table.shape-wide {
        height: 46px;
        width: 90px;
    }

    .eden-map-table-code {
        font-size: 0.68rem;
    }

    .eden-map-table-seats {
        font-size: 0.58rem;
    }
}

/* ==========================================
   Booking Details Premium Card UI Styles
   ========================================== */
.booking-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 35px;
    margin-bottom: 30px;
}

.booking-info-card {
    background-color: var(--white);
    border: 1px solid rgba(26, 147, 69, 0.12);
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(26, 147, 69, 0.03), 0 1px 3px rgba(0, 0, 0, 0.01);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.4s ease, border-color 0.3s ease;
    position: relative;
    overflow: hidden;
}

.booking-info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 5px;
    height: 100%;
    background-color: var(--primary-color);
    border-radius: 5px 0 0 5px;
    opacity: 0.85;
}

.booking-info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(26, 147, 69, 0.08), 0 1px 4px rgba(0, 0, 0, 0.02);
    border-color: rgba(26, 147, 69, 0.28);
}

.booking-info-card h3 {
    font-size: 1.25rem;
    margin-bottom: 20px;
    color: #123f2b;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(26, 147, 69, 0.08);
    padding-bottom: 14px;
}

.room-pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px dashed rgba(26, 147, 69, 0.12);
    transition: background-color 0.2s ease;
}

.room-pricing-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.room-pricing-item strong {
    color: #123f2b;
    font-size: 0.98rem;
    display: block;
}

.room-pricing-item .room-cap {
    font-size: 0.85rem;
    color: #666666;
    margin-top: 3px;
}

.price-badge {
    background-color: var(--light-gray);
    color: var(--primary-color);
    padding: 6px 14px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.booking-info-card:hover .price-badge {
    background-color: var(--primary-color);
    color: var(--white);
}

/* Blog UX refresh */
body[data-blog-page] {
    background: #f7faf6;
}

body[data-blog-page] h1,
body[data-blog-page] h2,
body[data-blog-page] h3 {
    letter-spacing: 0;
}

.blog-navbar {
    background-color: rgba(252, 250, 248, 0.95);
    border-bottom: 0;
    box-shadow: 0 1px 5px rgba(0,0,0,0.05);
}

.blog-navbar .container {
    height: 80px;
}

.blog-navbar .nav-links a.active {
    color: var(--accent-color);
}

.blog-navbar .nav-links a.active::after {
    content: none;
    display: none;
}

.blog-hero {
    align-items: center;
    background:
        linear-gradient(90deg, rgba(10, 29, 19, 0.82) 0%, rgba(10, 29, 19, 0.58) 48%, rgba(10, 29, 19, 0.18) 100%),
        url('/Hero/Hero.webp') center/cover no-repeat;
    display: flex;
    min-height: 560px;
    padding: 128px 0 72px;
}

.blog-hero-copy {
    max-width: 760px;
}

.blog-eyebrow,
.blog-chip {
    color: #1a9345;
    letter-spacing: 0;
}

.blog-hero .blog-eyebrow {
    color: #dff3cf;
}

.blog-hero h1 {
    color: #fff;
    font-size: 3.35rem;
    letter-spacing: 0;
    line-height: 1.16;
    margin-bottom: 18px;
    max-width: 760px;
}

.blog-hero p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.13rem;
    line-height: 1.8;
    max-width: 700px;
}

.blog-hero .btn,
.blog-cta-actions .btn {
    border-radius: 6px;
    box-shadow: none;
}

.blog-hero-actions .btn {
    gap: 8px;
    white-space: nowrap;
}

.blog-btn-icon {
    fill: none;
    flex: 0 0 auto;
    height: 18px;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
    width: 18px;
}

.blog-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.78);
    color: #fff;
}

.blog-hero .btn-outline:hover {
    background: #fff;
    color: var(--accent-color);
}

.blog-quick-strip {
    background: #fff;
    border-bottom: 1px solid rgba(19, 114, 52, 0.08);
    padding: 0;
}

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

.blog-quick-grid div {
    border-left: 1px solid rgba(19, 114, 52, 0.08);
    padding: 24px 26px;
}

.blog-quick-grid div:first-child {
    border-left: 0;
}

.blog-quick-grid strong,
.blog-quick-grid span {
    display: block;
}

.blog-quick-grid strong {
    color: #173c28;
    font-size: 1.35rem;
    line-height: 1.2;
}

.blog-quick-grid span {
    color: #627168;
    margin-top: 5px;
}

.blog-listing-static {
    background: #f7faf6;
    padding-top: 72px;
}

.blog-listing-head {
    align-items: end;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    margin-bottom: 22px;
}

.blog-listing-head h2 {
    color: #173c28;
    font-size: 2.35rem;
    letter-spacing: 0;
    margin-bottom: 0;
    text-align: left;
}

.blog-listing-head p {
    color: #55635b;
    line-height: 1.7;
    margin: 0;
    max-width: 430px;
}

.blog-filter-bar {
    display: flex;
    gap: 10px;
    margin: 0 0 28px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.blog-filter-bar button {
    align-items: center;
    background: #fff;
    border: 1px solid rgba(19, 114, 52, 0.16);
    border-radius: 6px;
    color: #31443a;
    cursor: pointer;
    display: inline-flex;
    flex: 0 0 auto;
    font: inherit;
    font-weight: 600;
    min-height: 44px;
    padding: 10px 14px;
    transition: var(--transition);
}

.blog-filter-bar button:hover,
.blog-filter-bar button.active {
    background: #173c28;
    border-color: #173c28;
    color: #fff;
}

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

.blog-card[hidden] {
    display: none;
}

.blog-card {
    background: #fff;
    border: 1px solid rgba(19, 114, 52, 0.1);
    border-radius: 8px;
    box-shadow: 0 14px 35px rgba(28, 58, 39, 0.07);
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
}

.blog-card:hover {
    box-shadow: 0 18px 44px rgba(28, 58, 39, 0.1);
    transform: translateY(-3px);
}

.blog-card-featured {
    display: grid;
    grid-column: span 2;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.blog-card a:first-child {
    display: block;
}

.blog-card-img {
    aspect-ratio: 16 / 9;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.blog-card-featured .blog-card-img {
    aspect-ratio: auto;
    height: 100%;
    min-height: 360px;
}

.blog-card-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 22px;
}

.blog-card-kicker,
.blog-card-footer {
    align-items: center;
    color: #6b786f;
    display: flex;
    flex-wrap: wrap;
    font-size: 0.9rem;
    gap: 10px;
}

.blog-category-pill {
    background: #eef7ed;
    border-radius: 6px;
    color: #137234;
    font-size: 0.82rem;
    font-weight: 700;
    padding: 4px 8px;
}

.blog-card-content h3 {
    color: #1d3326;
    font-size: 1.26rem;
    letter-spacing: 0;
    line-height: 1.35;
    margin: 14px 0 10px;
}

.blog-card-featured .blog-card-content h3 {
    font-size: 1.82rem;
    line-height: 1.28;
}

.blog-card-content p {
    color: #58665d;
    display: -webkit-box;
    line-height: 1.75;
    margin-bottom: 20px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-card-footer {
    border-top: 1px solid rgba(19, 114, 52, 0.1);
    justify-content: space-between;
    margin-top: auto;
    padding-top: 16px;
}

.blog-read-link {
    align-items: center;
    color: var(--accent-color);
    display: inline-flex;
    font-weight: 700;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 4px 0;
    text-decoration: none;
}

.blog-read-link:hover {
    color: var(--primary-color);
}

.blog-post-static {
    background: #f7faf6;
}

.blog-post {
    padding-bottom: 74px;
    padding-top: 118px;
}

.breadcrumb {
    color: #627168;
    margin-bottom: 26px;
}

.blog-article-header {
    margin: 0 auto 30px;
    max-width: 980px;
}

.blog-article-header h1 {
    color: #173c28;
    font-size: 3rem;
    letter-spacing: 0;
    line-height: 1.18;
    margin-bottom: 16px;
}

.blog-article-header p {
    color: #4e5d54;
    font-size: 1.1rem;
    line-height: 1.8;
    margin: 0 auto;
    max-width: 860px;
}

.blog-article-meta {
    color: #65736a;
    gap: 10px 20px;
}

.blog-post-img {
    aspect-ratio: 16 / 7;
    border-radius: 8px;
    box-shadow: 0 18px 44px rgba(28, 58, 39, 0.12);
    max-height: 560px;
    object-fit: cover;
    width: 100%;
}

.article-layout {
    gap: 38px;
    grid-template-columns: minmax(220px, 270px) minmax(0, 1fr);
}

.article-sidebar {
    top: 104px;
}

.toc-box,
.local-info-box,
.summary-box,
.blog-link-panel,
.blog-cta-panel,
.image-brief {
    border: 1px solid rgba(19, 114, 52, 0.1);
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(28, 58, 39, 0.06);
}

.toc-box h2,
.local-info-box h2,
.summary-box h2,
.blog-link-panel h2,
.blog-cta-panel h2,
.image-brief h2,
.blog-faq h2,
.related-articles h2 {
    color: #173c28;
    letter-spacing: 0;
}

.toc-box a.active {
    font-weight: 700;
}

.article-main {
    max-width: 820px;
    min-width: 0;
    overflow-wrap: break-word;
}

.article-layout > *,
.article-sidebar {
    min-width: 0;
}

.article-main :where(img, picture, video, canvas, svg, iframe) {
    display: block;
    height: auto;
    max-width: 100%;
}

.article-main :where(figure) {
    margin: 28px 0;
    max-width: 100%;
}

.article-main :where(figure img) {
    margin-inline: auto;
}

.article-main :where(figcaption) {
    color: #68756e;
    font-size: 0.92rem;
    line-height: 1.6;
    margin-top: 10px;
    text-align: center;
}

.article-main :where(table, pre) {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.article-main :where(table) {
    border-collapse: collapse;
    width: max-content;
}

.article-main :where(td, th) {
    border: 1px solid rgba(19, 114, 52, 0.14);
    padding: 10px 12px;
    vertical-align: top;
}

.article-main :where(a:not(.btn)) {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.article-main p,
.article-main li {
    color: #46574d;
    font-size: 1.03rem;
    line-height: 1.9;
}

.article-main h2 {
    color: #173c28;
    font-size: 1.78rem;
    letter-spacing: 0;
}

.article-main h3 {
    color: #213d2c;
    letter-spacing: 0;
}

.summary-box {
    background: #eef7ed;
}

.blog-cta-panel {
    background: #173c28;
}

.blog-cta-panel h2,
.blog-cta-panel p {
    color: #fff;
}

.blog-faq .faq-item {
    background: #fff;
    border-left-color: var(--accent-color);
}

.related-grid {
    gap: 22px;
}

@media (max-width: 1020px) {
    .blog-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .blog-card-featured {
        grid-column: span 2;
        grid-template-columns: 1fr;
    }

    .blog-card-featured .blog-card-img {
        aspect-ratio: 16 / 9;
        min-height: 0;
    }

    .article-layout {
        grid-template-columns: 1fr;
    }

    .article-sidebar {
        position: static;
    }
}

@media (max-width: 760px) {
    .blog-navbar .nav-links a.active::after {
        display: none;
    }

    .blog-hero {
        min-height: 500px;
        padding: 112px 0 56px;
    }

    .blog-hero h1 {
        font-size: 2.1rem;
        line-height: 1.24;
    }

    .blog-hero p,
    .blog-article-header p {
        font-size: 1rem;
    }

    .blog-quick-grid {
        grid-template-columns: 1fr;
    }

    .blog-quick-grid div,
    .blog-quick-grid div:first-child {
        border-left: 0;
        border-top: 1px solid rgba(19, 114, 52, 0.08);
        padding: 18px 0;
    }

    .blog-quick-grid div:first-child {
        border-top: 0;
    }

    .blog-listing-static {
        padding-top: 52px;
    }

    .blog-listing-head {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .blog-listing-head h2,
    .blog-article-header h1 {
        font-size: 2rem;
    }

    .blog-grid,
    .related-grid {
        grid-template-columns: 1fr;
    }

    .blog-card-featured {
        grid-column: span 1;
    }

    .blog-card-featured .blog-card-content h3 {
        font-size: 1.28rem;
    }

    .blog-post {
        padding-top: 104px;
    }

    .blog-post-img {
        aspect-ratio: 16 / 10;
        margin-bottom: 20px;
    }

    .article-main {
        max-width: none;
    }

    .article-main h2,
    .summary-box h2,
    .blog-link-panel h2,
    .blog-cta-panel h2,
    .image-brief h2,
    .blog-faq h2,
    .related-articles h2 {
        font-size: 1.45rem;
    }
}

/* Codex mobile layout balance 2026-06-19 */
@media (max-width: 768px) {
    .navbar {
        overflow: visible;
    }

    .navbar .container {
        align-items: center;
        flex-wrap: nowrap;
        height: 72px;
        min-height: 72px;
        position: relative;
    }

    .navbar nav {
        left: 16px;
        order: 4;
        position: absolute;
        right: 16px;
        top: 100%;
        width: auto;
        z-index: 1005;
    }

    .nav-links {
        border: 1px solid rgba(19, 114, 52, 0.12);
        border-radius: 12px;
        box-shadow: 0 18px 38px rgba(20, 50, 32, 0.16);
        margin-top: 8px;
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 10px;
    }

    .nav-links.active {
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .nav-links a,
    .nav-dropdown-toggle {
        border-radius: 8px;
        justify-content: center;
        min-height: 44px;
        padding: 10px 8px;
        text-align: center;
        white-space: normal;
    }

    .nav-dropdown {
        grid-column: 1 / -1;
        width: 100%;
    }

    .nav-dropdown-menu {
        background: #f8fbf8;
        border: 1px solid rgba(19, 114, 52, 0.1);
        border-radius: 10px;
        box-shadow: none;
        display: grid;
        gap: 6px;
        grid-template-columns: 1fr;
        margin-top: 6px;
        opacity: 1;
        padding: 6px;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu a {
        min-height: 44px;
    }

    .nav-actions.active {
        margin: 0 6px 0 auto;
        order: 2;
        width: auto;
    }

    .nav-actions.active .auth-container {
        display: none;
    }
}

@media (max-width: 576px) {
    #online-shop .shop-grid-online .shop-action,
    #menu-products .menu-grid-online .shop-action,
    .shop-action {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .shop-card .btn-add-cart,
    #online-shop .shop-grid-online .shop-action .btn,
    #menu-products .menu-grid-online .shop-action .btn {
        border-radius: 14px;
        flex: 0 0 auto;
        font-size: 0.86rem;
        height: auto;
        line-height: 1.2;
        max-height: none;
        min-height: 44px;
        padding: 10px 12px;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .nav-links.active {
        grid-template-columns: 1fr;
    }
}

/* Shared Skeleton Loading */
.eden-skeleton-grid,
.eden-skeleton-list,
.eden-skeleton-form,
.eden-skeleton-profile,
.eden-skeleton-summary {
    width: 100%;
}

.eden-skeleton-grid {
    display: grid;
    gap: 18px;
}

.eden-skeleton-grid.cards {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.eden-skeleton-grid.faq,
.eden-skeleton-grid.reviews {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.eden-skeleton-grid.stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.eden-skeleton-card,
.eden-skeleton-panel {
    background: #fff;
    border: 1px solid rgba(31, 84, 53, 0.1);
    border-radius: 8px;
    box-shadow: 0 10px 28px rgba(26, 68, 41, 0.08);
    display: grid;
    gap: 12px;
    min-height: 180px;
    padding: 16px;
}

.eden-skeleton-card.compact {
    min-height: 128px;
}

.eden-skeleton-line,
.eden-skeleton-media,
.eden-skeleton-pill,
.eden-skeleton-button,
.eden-skeleton-input,
.eden-skeleton-avatar,
.eden-skeleton-filter,
.eden-skeleton-counter,
.eden-skeleton-qr,
.eden-skeleton-map,
.eden-skeleton-map span {
    background: linear-gradient(90deg, #eef4ef 0%, #f8fbf8 46%, #e4ece6 100%);
    background-size: 220% 100%;
    border-radius: 8px;
    display: block;
    overflow: hidden;
    animation: edenSkeletonShimmer 1.25s ease-in-out infinite;
}

.eden-skeleton-media {
    aspect-ratio: 4 / 3;
    border-radius: 8px;
    width: 100%;
}

.eden-skeleton-line {
    height: 13px;
    width: 76%;
}

.eden-skeleton-line.wide {
    width: 92%;
}

.eden-skeleton-line.medium {
    width: 62%;
}

.eden-skeleton-line.short {
    width: 36%;
}

.eden-skeleton-line.table-cell {
    height: 14px;
    width: 100%;
}

.eden-skeleton-pill {
    border-radius: 999px;
    height: 22px;
    width: 88px;
}

.eden-skeleton-button {
    border-radius: 999px;
    height: 38px;
    margin-top: 4px;
    width: 116px;
}

.eden-skeleton-input {
    height: 42px;
    margin-top: 8px;
    width: 100%;
}

.eden-skeleton-avatar {
    border-radius: 50%;
    height: 42px;
    width: 42px;
}

.eden-skeleton-avatar.large {
    height: 72px;
    width: 72px;
}

.eden-skeleton-filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

.eden-skeleton-filter {
    border-radius: 999px;
    height: 38px;
    width: 92px;
}

.eden-skeleton-list {
    display: grid;
    gap: 12px;
}

.eden-skeleton-list-item,
.eden-skeleton-panel {
    align-items: center;
}

.eden-skeleton-list-item {
    background: #fff;
    border: 1px solid rgba(31, 84, 53, 0.1);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: auto 1fr;
    padding: 14px;
}

.eden-skeleton-form {
    display: grid;
    gap: 14px;
}

.eden-skeleton-profile {
    display: grid;
    gap: 18px;
}

.eden-skeleton-panel {
    grid-template-columns: auto 1fr;
    min-height: 120px;
}

.eden-skeleton-summary {
    display: grid;
    gap: 10px;
}

.eden-skeleton-summary-row {
    display: grid;
    gap: 16px;
    grid-template-columns: minmax(90px, 0.42fr) 1fr;
}

.eden-skeleton-counter {
    display: inline-block;
    height: 1em;
    min-width: 6ch;
    vertical-align: -0.12em;
}

.eden-skeleton-qr {
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    max-width: 220px;
    width: 100%;
}

.eden-skeleton-map {
    aspect-ratio: 16 / 10;
    border: 1px solid rgba(31, 84, 53, 0.12);
    border-radius: 8px;
    min-height: 220px;
    position: relative;
}

.eden-skeleton-map span {
    position: absolute;
}

.eden-skeleton-map span:nth-child(1) { height: 24%; left: 8%; top: 12%; width: 22%; }
.eden-skeleton-map span:nth-child(2) { height: 18%; left: 38%; top: 18%; width: 18%; }
.eden-skeleton-map span:nth-child(3) { height: 22%; left: 67%; top: 16%; width: 20%; }
.eden-skeleton-map span:nth-child(4) { height: 20%; left: 17%; top: 58%; width: 24%; }
.eden-skeleton-map span:nth-child(5) { height: 24%; left: 57%; top: 54%; width: 28%; }

.eden-skeleton-row td {
    padding: 14px 10px;
}

@keyframes edenSkeletonShimmer {
    0% { background-position: 120% 0; }
    100% { background-position: -120% 0; }
}

@media (max-width: 640px) {
    .eden-skeleton-grid.cards,
    .eden-skeleton-grid.faq,
    .eden-skeleton-grid.reviews,
    .eden-skeleton-grid.stats,
    .eden-skeleton-panel,
    .eden-skeleton-summary-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .eden-skeleton-line,
    .eden-skeleton-media,
    .eden-skeleton-pill,
    .eden-skeleton-button,
    .eden-skeleton-input,
    .eden-skeleton-avatar,
    .eden-skeleton-filter,
    .eden-skeleton-counter,
    .eden-skeleton-qr,
    .eden-skeleton-map,
    .eden-skeleton-map span {
        animation: none;
        background-position: 0 0;
    }
}


/* Codex profile restore 2026-06-21 start */
.user-profile-menu {
    position: relative;
    display: inline-block;
}

.auth-login-link {
    font-size: 0.9rem;
    font-weight: 700;
    gap: 6px;
    line-height: 1;
    padding: 6px 14px;
    white-space: nowrap;
}

.auth-login-text-mobile {
    display: none;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    border: 2px solid var(--primary-color);
    object-fit: cover;
}

.profile-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 45px;
    background-color: var(--white);
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.1);
    z-index: 1000;
    border-radius: 8px;
    overflow: hidden;
}

.profile-dropdown.show {
    display: block;
}

.profile-dropdown a {
    color: var(--text-color);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    font-size: 0.95rem;
}

.profile-dropdown a.profile-pos-link {
    color: var(--accent-color);
    font-weight: 600;
}

.profile-dropdown a.profile-dropdown-logout {
    border-top: 1px solid rgba(180, 35, 24, 0.10);
    color: #9f2f25;
    font-weight: 700;
}

.profile-dropdown .profile-action-icon,
.profile-dropdown .profile-action-arrow {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    justify-content: center;
}

.profile-dropdown .profile-action-icon {
    background: #ffffff;
    border: 1px solid #d8e8dc;
    border-radius: 9px;
    height: 34px;
    width: 34px;
}

.profile-dropdown .profile-action-icon svg {
    height: 18px;
    width: 18px;
}

.profile-dropdown .profile-action-copy {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.profile-dropdown .profile-action-copy strong {
    color: #17452b;
    font-size: 0.9rem;
    line-height: 1.25;
}

.profile-dropdown .profile-action-copy small {
    color: #527060;
    font-size: 0.72rem;
    line-height: 1.3;
}

.profile-dropdown .profile-action-arrow {
    color: #2f7650;
}

.profile-dropdown .profile-action-arrow svg {
    height: 16px;
    width: 16px;
}

.profile-dropdown a.profile-dropdown-profile,
.profile-dropdown a.profile-dropdown-logout {
    align-items: center;
    display: flex;
    gap: 8px;
}

.profile-dropdown a.profile-dropdown-profile .profile-action-icon,
.profile-dropdown a.profile-dropdown-logout .profile-action-icon {
    background: transparent;
    border: 0;
    height: 22px;
    width: 22px;
}

@media (min-width: 769px) {
    .nav-actions .profile-dropdown {
        border-radius: 14px;
        box-shadow: 0 14px 36px rgba(20, 50, 32, 0.16);
        min-width: min(340px, calc(100vw - 32px));
        top: 48px;
        width: min(340px, calc(100vw - 32px));
    }

    .nav-actions .profile-dropdown-identity {
        gap: 3px;
        padding: 15px 18px 14px;
    }

    .nav-actions .profile-dropdown-copy strong {
        color: #183b28;
        font-size: 1rem;
        line-height: 1.3;
    }

    .nav-actions .profile-dropdown-copy small {
        color: #5d7466;
        font-size: 0.82rem;
        line-height: 1.35;
    }

    .nav-actions .profile-dropdown-actions {
        gap: 4px;
        padding: 8px;
    }

    .nav-actions .profile-dropdown a.profile-pos-link {
        gap: 11px;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        margin: 0 0 2px;
        min-height: 68px;
        padding: 10px 12px;
    }

    .nav-actions .profile-dropdown a.profile-pos-link .profile-action-icon {
        height: 40px;
        width: 40px;
    }

    .nav-actions .profile-dropdown a.profile-pos-link .profile-action-copy {
        gap: 2px;
        overflow: hidden;
    }

    .nav-actions .profile-dropdown a.profile-pos-link .profile-action-copy strong {
        font-size: 0.95rem;
        line-height: 1.25;
        white-space: nowrap;
    }

    .nav-actions .profile-dropdown a.profile-pos-link .profile-action-copy small {
        font-size: 0.78rem;
        line-height: 1.35;
        white-space: nowrap;
    }

    .nav-actions .profile-dropdown a.profile-dropdown-profile,
    .nav-actions .profile-dropdown a.profile-dropdown-logout {
        border-radius: 9px;
        min-height: 46px;
        padding: 9px 12px;
    }

    .nav-actions .profile-dropdown a.profile-dropdown-logout {
        border-top: 1px solid rgba(180, 35, 24, 0.08);
    }
}

.profile-dropdown a:hover {
    background-color: #f1f1f1;
}

/* Login Modal */
.login-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.login-modal-content {
    background-color: var(--white);
    padding: 30px;
    border-radius: 12px;
    width: 90%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.login-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
}

.login-close:hover {
    color: #333;
}

.google-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    color: #3c4043;
    cursor: pointer;
    transition: background-color 0.3s;
}

.google-login-btn:hover {
    background-color: #f8f9fa;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3);
}

.auth-social-entry {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 12px;
    margin: 0 0 20px;
}

.auth-google-btn {
    min-height: 54px;
    border-radius: 16px;
    border-color: rgba(26, 147, 69, 0.22);
    font-family: 'Prompt', 'Inter', sans-serif;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(18, 78, 48, 0.08);
}

.auth-google-btn::before {
    content: 'G';
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-right: 10px;
    border-radius: 50%;
    background: #fff;
    color: #1a9345;
    border: 1px solid rgba(26, 147, 69, 0.18);
    font-weight: 900;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #718078;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(26, 147, 69, 0.16);
}

.phone-register-link {
    display: block;
    margin-top: 14px;
    text-align: center;
    color: var(--accent-color);
    font-weight: 700;
    text-decoration: none;
}

.phone-register-link:hover {
    text-decoration: underline;
}

.phone-login-btn {
    display: block;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 14px 30px rgba(26, 147, 69, 0.22);
}

.phone-login-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(26, 147, 69, 0.26);
}

.phone-login-note {
    margin: 14px 0 0;
    color: #66756d;
    font-size: 0.92rem;
    line-height: 1.6;
    text-align: center;
}

/* Phone Registration */
.register-page {
    min-height: 100vh;
    padding-top: 80px;
    background:
        radial-gradient(circle at 8% 18%, rgba(26, 147, 69, 0.14), transparent 28rem),
        radial-gradient(circle at 92% 8%, rgba(219, 187, 104, 0.28), transparent 26rem),
        linear-gradient(135deg, #f6fbf5 0%, #fffaf0 48%, #eef8f2 100%);
}

.register-hero {
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    padding: 80px 0;
}

.register-shell {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    gap: 48px;
    align-items: center;
}

.register-copy {
    max-width: 560px;
}

.register-eyebrow,
.register-form-kicker {
    margin: 0 0 14px;
    color: #2d7f4d;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.register-copy h1 {
    margin-bottom: 20px;
    color: #0f3f2d;
    font-size: clamp(2.8rem, 6vw, 5.7rem);
    letter-spacing: -0.06em;
}

.register-copy p {
    color: #5c6f62;
    font-size: 1.08rem;
    line-height: 1.85;
}

.register-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.register-benefits span {
    display: inline-flex;
    padding: 10px 14px;
    border: 1px solid rgba(26, 147, 69, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: #174b35;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(21, 74, 42, 0.06);
}

.register-card {
    position: relative;
    overflow: hidden;
    padding: 34px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 34px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 28px 80px rgba(10, 49, 31, 0.12);
    backdrop-filter: blur(20px);
}

.register-card::before {
    content: '';
    position: absolute;
    top: -110px;
    right: -110px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: rgba(26, 147, 69, 0.08);
    pointer-events: none;
}

.register-steps {
    display: flex;
    gap: 12px;
    margin-bottom: 22px;
}

.register-step {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    border-radius: 50%;
    background: #eff6ef;
    color: #7b8b80;
    font-weight: 800;
}

.register-step.active {
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    box-shadow: 0 10px 20px rgba(26, 147, 69, 0.22);
}

.register-status {
    display: none;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    background: #edf7ef;
    color: #14512f;
    font-weight: 700;
}

.register-status[data-type="error"] {
    background: #fff0ed;
    color: #b42318;
}

.register-status[data-type="warning"] {
    background: #fff8e6;
    color: #855b00;
}

.register-form {
    display: none;
    position: relative;
    z-index: 1;
}

.register-form.active {
    display: grid;
    gap: 18px;
}

.register-form h2,
.register-complete h2 {
    margin: 0;
    color: #0f3f2d;
    text-align: left;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.register-muted {
    margin: 0;
    color: #6a776e;
}

.register-form label {
    display: grid;
    gap: 8px;
    color: #244235;
    font-weight: 800;
}

.register-form input,
.register-form textarea {
    width: 100%;
    border: 1px solid #d9e6d7;
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.92);
    color: #172c21;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.register-form input:focus,
.register-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.12);
}

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

.register-check {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 10px !important;
    padding: 14px;
    border: 1px solid rgba(26, 147, 69, 0.12);
    border-radius: 18px;
    background: rgba(246, 251, 245, 0.75);
    font-weight: 600 !important;
}

.register-check input {
    width: 18px;
    height: 18px;
    margin-top: 4px;
    accent-color: var(--primary-color);
}

.register-recaptcha {
    height: 0;
    min-height: 0;
    overflow: hidden;
}

.register-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.register-submit {
    width: 100%;
    min-height: 52px;
    font-weight: 800;
}

.register-submit:disabled,
.register-actions .btn:disabled {
    cursor: wait;
    opacity: 0.7;
    transform: none;
}

.register-complete {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: 18px 0 8px;
}

.register-complete h2 {
    text-align: center;
}

.register-complete-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), #0d6b35);
    color: #fff;
    font-size: 2rem;
    font-weight: 900;
}

.auth-page {
    min-height: 100vh;
    padding: 120px 20px 60px;
    display: grid;
    place-items: center;
    background:
        linear-gradient(135deg, #f7fbf4 0%, #fffaf0 52%, #edf8f1 100%);
}

.auth-panel {
    width: min(100%, 460px);
    padding: 34px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 24px 64px rgba(10, 49, 31, 0.12);
}

.auth-brand {
    text-align: center;
    margin-bottom: 22px;
}

.auth-brand img {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 14px;
    border: 3px solid rgba(26, 147, 69, 0.16);
}

.auth-brand h1 {
    margin: 0;
    color: #0f3f2d;
    font-size: clamp(2rem, 6vw, 3rem);
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-panel [hidden] {
    display: none !important;
}

.auth-form label {
    display: grid;
    gap: 8px;
    color: #244235;
    font-weight: 800;
}

.auth-form input {
    width: 100%;
    border: 1px solid #d9e6d7;
    border-radius: 18px;
    padding: 15px 16px;
    background: rgba(255, 255, 255, 0.96);
    color: #172c21;
    font: inherit;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(26, 147, 69, 0.12);
}

.auth-forgot-link {
    justify-self: center;
    border: 0;
    background: transparent;
    color: var(--accent-color);
    font: inherit;
    font-weight: 800;
    text-decoration: underline;
    cursor: pointer;
}

.forgot-password-panel {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(26, 147, 69, 0.16);
}

.forgot-password-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.forgot-password-head h2 {
    margin: 0;
    color: #0f3f2d;
    font-size: 1.25rem;
}

.auth-close-button {
    border: 1px solid rgba(26, 147, 69, 0.2);
    border-radius: 12px;
    padding: 8px 12px;
    background: #fff;
    color: #17452f;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.forgot-form {
    gap: 14px;
}

.forgot-channel-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    border: 0;
}

.forgot-channel-group legend {
    grid-column: 1 / -1;
    margin-bottom: 2px;
    color: #244235;
    font-weight: 800;
}

.forgot-channel-group label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d9e6d7;
    border-radius: 14px;
    background: #fff;
    cursor: pointer;
}

.forgot-channel-group input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.auth-switch {
    margin: 20px 0 0;
    text-align: center;
    color: #5c6f62;
}

.auth-switch a {
    color: var(--accent-color);
    font-weight: 800;
    text-decoration: none;
}

.auth-switch a:hover {
    text-decoration: underline;
}

@media (max-width: 900px) {
    .register-hero {
        padding: 44px 0;
    }

    .register-shell {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .register-copy {
        max-width: none;
    }
}

@media (max-width: 640px) {
    .register-card {
        padding: 24px;
        border-radius: 26px;
    }

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

    .register-actions .btn {
        width: 100%;
        text-align: center;
    }

    .auth-panel {
        padding: 26px;
        border-radius: 24px;
    }

    .forgot-channel-group {
        grid-template-columns: 1fr;
    }
}

/* Premium Profile Layout */
.profile-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    max-width: 1100px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .profile-layout {
        grid-template-columns: 1fr;
    }
}

.profile-identity-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 22px;
    align-items: center;
    margin-bottom: 26px;
    padding: 24px;
    border: 1px solid rgba(26, 147, 69, 0.16);
    border-radius: 18px;
    background: #fffdf7;
    box-shadow: 0 12px 32px rgba(10, 49, 31, 0.07);
}

.profile-identity-avatar {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(26, 147, 69, 0.18);
    background: #f2f9f5;
}

.profile-identity-main h2 {
    margin: 0 0 16px;
    color: #0f3f2d;
    font-size: 1.55rem;
}

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

.profile-identity-grid div {
    min-width: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f5faf3;
}

.profile-identity-grid span {
    display: block;
    margin-bottom: 4px;
    color: #66756d;
    font-size: 0.82rem;
    font-weight: 700;
}

.profile-identity-grid strong {
    display: block;
    color: #163d2d;
    font-size: 0.98rem;
    overflow-wrap: anywhere;
}

@media (max-width: 640px) {
    .profile-identity-card {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .profile-identity-avatar {
        margin: 0 auto;
    }

    .profile-identity-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
}

/* Sidebar Navigation */
.profile-sidebar {
    background: #fff;
    border-radius: 12px;
    padding: 20px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.profile-nav-item {
    display: flex;
    align-items: center;
    padding: 12px 25px;
    color: #555;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
    cursor: pointer;
}

.profile-nav-item:hover {
    background: #f9f9f9;
    color: var(--primary-color);
}

.profile-nav-item.active {
    background: rgba(46, 125, 50, 0.05);
    color: var(--primary-color);
    border-left-color: var(--primary-color);
}

.profile-nav-item i, .profile-nav-item svg {
    margin-right: 15px;
    width: 20px;
}

/* Main Content Area */
.profile-main {
    background: #fff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.tab-pane {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-pane.active {
    display: block;
}

/* Member Card (Gold Tier Mockup) */
.member-card {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    border-radius: 16px;
    padding: 25px;
    color: #fff;
    box-shadow: 0 10px 20px rgba(197, 160, 23, 0.3);
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
}

.member-card--silver {
    background: linear-gradient(135deg, #f8fafc 0%, #d9dee7 48%, #aeb8c7 100%);
    color: #253044;
    box-shadow: 0 10px 20px rgba(114, 127, 148, 0.22);
}

.member-card--gold {
    background: linear-gradient(135deg, #CFB53B 0%, #E6D27A 50%, #C5A017 100%);
    color: #fff;
}

.member-card--platinum {
    background:
        radial-gradient(circle at top right, rgba(255,255,255,0.38), transparent 32%),
        linear-gradient(135deg, #064e3b 0%, #0f7a5b 46%, #f7fbf7 120%);
    color: #fff;
    box-shadow: 0 14px 28px rgba(6, 78, 59, 0.28);
}

.member-card::after {
    content: '';
    position: absolute;
    top: -50px;
    right: -50px;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
}

.member-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 25px;
}

.member-tier-badge {
    background: rgba(255,255,255,0.2);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(5px);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.member-tier-badge--silver {
    background: rgba(255,255,255,0.7);
    color: #344054;
}

.member-tier-badge--gold {
    background: rgba(255,255,255,0.24);
    color: #fff;
}

.member-tier-badge--platinum {
    background: rgba(255,255,255,0.22);
    color: #f7fff9;
    border: 1px solid rgba(255,255,255,0.3);
}

.member-id {
    font-family: monospace;
    font-size: 0.9rem;
    opacity: 0.8;
}

.member-name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.member-progress-container {
    margin-top: 15px;
}

.member-metrics-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 20px 0 4px;
    position: relative;
    z-index: 1;
}

.member-metrics-row span {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.22);
    font-size: 0.88rem;
    backdrop-filter: blur(6px);
}

.member-card--silver .member-metrics-row span {
    background: rgba(255,255,255,0.72);
    border-color: rgba(128, 139, 158, 0.24);
}

.member-progress-bar {
    height: 6px;
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
    overflow: hidden;
    margin: 8px 0;
}

.member-progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 3px;
    width: 60%; /* Example width */
}

.member-progress-text {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    opacity: 0.9;
}

.member-progress-goal {
    margin: 10px 0 0;
    font-weight: 600;
    line-height: 1.45;
    position: relative;
    z-index: 1;
}

.membership-panel {
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 18px;
    padding: 22px;
    margin-bottom: 24px;
    background: #fff;
    box-shadow: 0 10px 24px rgba(15, 62, 46, 0.045);
}

.membership-panel h2 {
    margin-top: 0;
    margin-bottom: 14px;
    color: var(--primary-color);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 12px;
}

.benefit-pill {
    padding: 13px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(46,125,50,0.08), rgba(207,181,59,0.10));
    border: 1px solid rgba(46, 125, 50, 0.12);
    color: #29483a;
    font-weight: 600;
}

.membership-rule-lead,
.membership-max-note {
    margin: 0 0 14px;
    color: #52635a;
}

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

.membership-rule-row {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 12px;
    align-items: center;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f8fbf6;
    border: 1px solid rgba(46, 125, 50, 0.10);
}

.membership-rule-row strong {
    color: var(--primary-color);
}

.membership-rule-row em {
    color: #667085;
    font-style: normal;
    font-size: 0.92rem;
}

.tier-preview-panel {
    overflow: hidden;
}

.tier-preview-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.tier-preview-heading h2 {
    margin-bottom: 6px;
}

.tier-preview-heading p {
    margin: 0;
    color: #667085;
}

.tier-preview-selected {
    flex: 0 0 auto;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(46, 125, 50, 0.08);
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.86rem;
}

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

.tier-preview-card {
    min-height: 116px;
    border: 1px solid rgba(255,255,255,0.45);
    border-radius: 18px;
    padding: 16px;
    color: inherit;
    text-align: left;
    cursor: pointer;
    position: relative;
    box-shadow: 0 12px 24px rgba(15, 62, 46, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.tier-preview-card:hover,
.tier-preview-card.is-active {
    transform: translateY(-3px);
    box-shadow: 0 18px 32px rgba(15, 62, 46, 0.14);
}

.tier-preview-card.is-active {
    outline: 3px solid rgba(46, 125, 50, 0.2);
}

.tier-preview-card.is-locked {
    filter: saturate(0.88);
}

.tier-preview-card strong {
    display: block;
    margin-top: 20px;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
}

.tier-preview-card small {
    display: block;
    margin-top: 6px;
    font-weight: 700;
    opacity: 0.88;
}

.tier-preview-lock {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,0.34);
    border: 1px solid rgba(255,255,255,0.42);
}

.tier-preview-detail {
    border-radius: 22px;
    padding: 22px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.tier-preview-detail.member-card--silver {
    color: #253044;
}

.tier-preview-detail-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.tier-preview-detail-head h3 {
    margin: 10px 0 0;
    color: inherit;
}

.tier-preview-lock-large {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.24);
    border: 1px solid rgba(255,255,255,0.3);
    font-size: 1.25rem;
}

.tier-preview-detail .benefit-pill {
    background: rgba(255,255,255,0.20);
    border-color: rgba(255,255,255,0.28);
    color: inherit;
}

.tier-preview-detail.member-card--silver .benefit-pill {
    background: rgba(255,255,255,0.66);
    border-color: rgba(128, 139, 158, 0.22);
}

.tier-preview-rules {
    margin-top: 18px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(255,255,255,0.16);
    border: 1px solid rgba(255,255,255,0.22);
}

.tier-preview-rules p {
    margin: 0 0 10px;
    font-weight: 700;
}

.tier-preview-rules span {
    display: inline-flex;
    margin: 4px 6px 4px 0;
    padding: 7px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,0.2);
    font-size: 0.9rem;
    font-weight: 700;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-box {
    border: 1px solid #eee;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.stat-icon {
    font-size: 24px;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.stat-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 5px;
}

.stat-label {
    font-size: 0.85rem;
    color: #666;
}

.profile-account-card {
    border: 1px solid rgba(46, 125, 50, 0.14);
    border-radius: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #ffffff 0%, #f8fbf3 100%);
    box-shadow: 0 12px 28px rgba(15, 62, 46, 0.06);
}

.profile-account-top {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 18px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(46, 125, 50, 0.12);
}

.profile-account-avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(46, 125, 50, 0.22);
}

.profile-account-top h3 {
    margin: 4px 0;
    color: var(--primary-color);
}

.profile-account-top p {
    margin: 0;
    color: #667085;
}

.profile-kicker {
    display: inline-flex;
    color: #3a7b56;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.profile-edit-form {
    display: grid;
    gap: 18px;
}

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

.profile-edit-form label {
    display: grid;
    gap: 8px;
    color: #334155;
    font-weight: 600;
}

.profile-edit-form input,
.profile-edit-form textarea {
    width: 100%;
    border: 1px solid #d9e4d6;
    border-radius: 14px;
    padding: 13px 14px;
    font: inherit;
    color: #1f2933;
    background: rgba(255, 255, 255, 0.9);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-edit-form input:focus,
.profile-edit-form textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.12);
}

.profile-form-full {
    grid-column: 1 / -1;
}

.profile-email-verify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.9fr);
    gap: 16px;
    align-items: center;
    border: 1px solid #d9e4d6;
    border-radius: 16px;
    padding: 14px;
    background: #f8fbf8;
}

.profile-email-verify strong,
.profile-email-verify span,
.profile-email-verify small {
    display: block;
}

.profile-email-verify strong {
    color: #173c28;
}

.profile-email-verify span {
    color: #8a5b00;
    font-weight: 800;
    margin-top: 4px;
}

.profile-email-verify small {
    color: #607166;
    margin-top: 6px;
    line-height: 1.5;
}

.profile-email-verify.is-verified {
    background: #f1faf3;
    border-color: #b9dfc2;
}

.profile-email-verify.is-verified span {
    color: #1f7a3d;
}

.profile-email-actions {
    display: grid;
    grid-template-columns: auto minmax(88px, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.profile-email-actions .btn {
    white-space: nowrap;
}

.profile-privacy-note {
    margin: 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(46, 125, 50, 0.08);
    color: #42604e;
    font-size: 0.92rem;
    line-height: 1.55;
}

@media (max-width: 760px) {
    .profile-email-verify,
    .profile-email-actions {
        grid-template-columns: 1fr;
    }
}

.profile-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.profile-save-message {
    margin: 0;
    min-height: 1.4em;
    font-weight: 600;
}

@media (max-width: 640px) {
    .profile-main {
        padding: 20px;
    }

    .profile-account-card {
        padding: 18px;
    }

    .profile-account-top {
        align-items: flex-start;
    }

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

    .membership-rule-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .member-card-header {
        gap: 14px;
        flex-direction: column;
    }

    .tier-preview-heading {
        flex-direction: column;
    }

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

    .tier-preview-card {
        min-height: 96px;
    }
}

.profile-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 32px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 62, 46, 0.07);
}

.profile-layout.profile-dashboard {
    width: 100%;
    max-width: 1240px;
    grid-template-columns: minmax(320px, 360px) minmax(0, 720px);
    justify-content: center;
    gap: clamp(28px, 3vw, 44px);
    margin: 0 auto;
    align-items: start;
}

.profile-dashboard-sidebar {
    position: sticky;
    top: 104px;
    display: grid;
    gap: 18px;
    padding: 18px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 42px rgba(15, 62, 46, 0.08);
}

.profile-summary-card {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
}

.profile-summary-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(46, 125, 50, 0.18);
    background: #f2f9f5;
}

.profile-summary-body {
    min-width: 0;
}

.profile-summary-body h2 {
    margin: 3px 0 2px;
    color: #123d2b;
    font-size: 1.12rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.profile-summary-body p,
.profile-summary-body small {
    display: block;
    margin: 0 0 8px;
    color: #647067;
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-summary-body small {
    margin: 8px 0 0;
    color: #365847;
    font-weight: 700;
}

.profile-quick-actions {
    display: grid;
    gap: 10px;
}

.profile-quick-actions .btn {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: 10px;
    font-size: 0.92rem;
    line-height: 1.25;
}

.profile-tabs {
    display: grid;
    gap: 8px;
}

.profile-tab,
.profile-history-filter,
.profile-link-button {
    font: inherit;
    cursor: pointer;
}

.profile-tab {
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid rgba(46, 125, 50, 0.22);
    border-radius: 10px;
    background: #fff;
    color: #23513a;
    font-weight: 800;
    text-align: center;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-tab:hover,
.profile-tab:focus-visible {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.12);
    outline: none;
}

.profile-tab.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.profile-dashboard-main {
    min-width: 0;
    display: grid;
    gap: 18px;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-tab-panel {
    display: grid;
    gap: 18px;
    min-width: 0;
    padding: 0;
}

.profile-dashboard-head,
.profile-panel-heading {
    padding: 22px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 14px 34px rgba(15, 62, 46, 0.055);
}

.profile-dashboard-head h1,
.profile-panel-heading h2 {
    margin: 4px 0 0;
    color: var(--primary-color);
    line-height: 1.2;
}

.profile-dashboard-head h1 {
    font-size: 2.25rem;
}

.profile-dashboard .profile-kicker,
.profile-tab-panel .profile-kicker {
    letter-spacing: 0;
}

.profile-dashboard-head p {
    max-width: 720px;
    margin: 10px 0 0;
    color: #52635a;
    font-size: 1rem;
    line-height: 1.65;
}

.profile-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.profile-panel-heading h2 {
    font-size: 1.45rem;
}

.profile-link-button {
    min-height: 38px;
    padding: 8px 14px;
    border: 1px solid rgba(46, 125, 50, 0.24);
    border-radius: 999px;
    background: #fff;
    color: var(--primary-color);
    font-weight: 800;
}

.profile-metric-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-bottom: 0;
}

.profile-metric-card {
    padding: 18px 14px;
    border-color: rgba(46, 125, 50, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 62, 46, 0.045);
}

.profile-metric-card:hover {
    transform: none;
}

.profile-overview-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
    gap: 18px;
    align-items: start;
}

.profile-overview-grid .membership-panel,
.profile-history-preview,
.profile-tab-panel > .membership-panel {
    margin-bottom: 0;
}

.profile-accordion summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--primary-color);
    font-size: 1.15rem;
    font-weight: 800;
    cursor: pointer;
}

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

.profile-accordion summary::after {
    content: '+';
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(46, 125, 50, 0.10);
    color: var(--primary-color);
}

.profile-accordion[open] summary::after {
    content: '-';
}

.profile-accordion .benefit-grid {
    margin-top: 16px;
}

.profile-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.profile-history-filter {
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid rgba(46, 125, 50, 0.20);
    border-radius: 999px;
    background: #fff;
    color: #23513a;
    font-weight: 800;
}

.profile-history-filter.active {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: #fff;
}

.profile-timeline {
    display: grid;
    gap: 12px;
}

.profile-timeline-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-timeline-dot {
    width: 12px;
    height: 12px;
    margin-top: 18px;
    border-radius: 50%;
    background: var(--primary-color);
    box-shadow: 0 0 0 5px rgba(46, 125, 50, 0.10);
}

.profile-timeline-item--orders .profile-timeline-dot {
    background: #2f6fbd;
    box-shadow: 0 0 0 5px rgba(47, 111, 189, 0.10);
}

.profile-timeline-item--archery .profile-timeline-dot {
    background: #b7791f;
    box-shadow: 0 0 0 5px rgba(183, 121, 31, 0.12);
}

.profile-timeline-main {
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 20px rgba(15, 62, 46, 0.04);
}

.profile-timeline-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
}

.profile-timeline-top span {
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 900;
    text-transform: uppercase;
}

.profile-timeline-top strong {
    color: #365847;
    font-size: 0.86rem;
}

.profile-timeline-main h3 {
    margin: 0 0 6px;
    color: #173c28;
    font-size: 1rem;
}

.profile-timeline-main p,
.profile-timeline-main small {
    display: block;
    margin: 0 0 4px;
    color: #66756d;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.profile-timeline-main b {
    display: inline-flex;
    margin-top: 5px;
    color: var(--primary-color);
}

.profile-empty-state {
    padding: 22px;
    border: 1px dashed rgba(46, 125, 50, 0.24);
    border-radius: 12px;
    background: #fbfdf8;
    color: #607166;
    text-align: center;
    font-weight: 700;
}

.profile-history-error {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid rgba(166, 79, 36, 0.24);
    border-radius: 12px;
    background: #fff8f1;
    color: #77411f;
    font-weight: 700;
}

.profile-history-error .btn {
    flex: 0 0 auto;
    min-height: 40px;
    padding: 8px 14px;
}

@media (max-width: 560px) {
    .profile-history-error {
        align-items: stretch;
        flex-direction: column;
    }
}

.profile-history-more {
    justify-self: start;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: 10px;
}

.profile-summary-card-premium {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    min-width: 0;
    padding: 22px 20px;
    border: 0;
    border-radius: 16px;
    background:
        radial-gradient(circle at 88% 8%, rgba(238, 202, 85, 0.18), transparent 28%),
        linear-gradient(155deg, #073f34 0%, #075949 58%, #117c69 120%);
    color: #fff;
    box-shadow: 0 22px 44px rgba(5, 62, 49, 0.22);
    overflow: hidden;
    position: relative;
}

.profile-summary-card-premium::before {
    content: '';
    display: none;
    position: absolute;
    right: 14px;
    top: 76px;
    width: 96px;
    height: 96px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    transform: rotate(45deg);
    opacity: 0.55;
}

.profile-summary-top {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 8px;
    min-width: 0;
    text-align: center;
}

.profile-tier-chip {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(238, 202, 85, 0.16);
    color: #f2d464;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0;
    text-transform: uppercase;
}

.profile-summary-top h2 {
    margin: 0;
    max-width: 100%;
    color: #fff;
    font-size: clamp(1.18rem, 1.45vw, 1.44rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-summary-top p,
.profile-summary-top small {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.profile-summary-points {
    color: #fff;
    font-size: clamp(2.55rem, 3.5vw, 3rem);
    line-height: 1;
    font-weight: 900;
}

.profile-mini-card {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 16px;
    min-width: 0;
    min-height: 148px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.20);
    border-radius: 14px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        linear-gradient(135deg, #16806f, #0d6b5d);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.profile-mini-card::after {
    content: '';
    position: absolute;
    top: 28px;
    right: 18px;
    width: 30px;
    height: 30px;
    border: 4px solid #e8c84d;
    transform: rotate(45deg);
    opacity: 0.92;
}

.profile-mini-card > div {
    min-width: 0;
    display: grid;
    gap: 4px;
}

.profile-mini-card strong,
.profile-mini-card span,
.profile-mini-card b {
    position: relative;
    z-index: 1;
}

.profile-mini-card strong {
    display: block;
    max-width: 100%;
    color: #fff;
    font-size: 1rem;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-mini-card span {
    display: block;
    margin-top: 3px;
    color: rgba(255, 255, 255, 0.74);
    font-size: 0.86rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.profile-mini-card .profile-mini-tier {
    justify-self: start;
    align-self: start;
    display: inline-flex;
    margin-top: 0;
    padding: 4px 10px;
    border: 1px solid rgba(240, 203, 77, 0.34);
    border-radius: 999px;
    background: rgba(240, 203, 77, 0.14);
    color: #f0cb4d;
    font-size: 0.74rem;
    font-weight: 900;
    line-height: 1;
    text-transform: uppercase;
}

.profile-mini-card b {
    color: #fff;
    font-size: 1.05rem;
}

.profile-quick-actions {
    grid-template-columns: 1fr;
}

.profile-action-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    min-height: 54px;
    padding: 11px 12px;
    border: 1px solid rgba(46, 125, 50, 0.12);
    border-radius: 12px;
    background: #fff;
    color: #123d2b;
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 900;
    line-height: 1.25;
    box-shadow: 0 8px 18px rgba(15, 62, 46, 0.055);
}

.profile-action-card span {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background:
        linear-gradient(135deg, rgba(238, 202, 85, 0.16), rgba(34, 185, 160, 0.14));
    border: 1px solid rgba(46, 125, 50, 0.12);
}

.profile-action-card span::before {
    content: '';
    width: 14px;
    height: 14px;
    border: 3px solid var(--primary-color);
    border-radius: 4px;
    transform: rotate(45deg);
}

.profile-action-card:hover,
.profile-action-card:focus-visible {
    color: var(--primary-color);
    outline: none;
    box-shadow: 0 0 0 4px rgba(46, 125, 50, 0.10), 0 10px 22px rgba(15, 62, 46, 0.07);
}

.profile-dashboard-head {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(245, 251, 246, 0.98)),
        linear-gradient(135deg, rgba(238, 202, 85, 0.10), rgba(20, 143, 110, 0.08));
}

.profile-dashboard .member-tier-badge,
.profile-dashboard .tier-preview-card strong {
    letter-spacing: 0;
}

.profile-wallet-panel {
    width: 100%;
    padding: clamp(22px, 2.5vw, 30px);
    border-radius: 16px;
    box-shadow: 0 18px 44px rgba(15, 62, 46, 0.07);
}

.profile-wallet-head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: start;
    margin-bottom: 18px;
}

.profile-wallet-head h2 {
    margin: 0;
    color: var(--primary-color);
    font-size: clamp(1.95rem, 3vw, 2.55rem);
    line-height: 1.08;
    text-align: left;
    overflow-wrap: anywhere;
}

.profile-wallet-refresh {
    min-width: 142px;
    min-height: 42px;
    padding: 9px 18px;
    border-radius: 999px;
    white-space: nowrap;
}

.profile-wallet-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 20px;
}

.profile-wallet-stat {
    display: grid;
    align-content: center;
    gap: 8px;
    min-height: 112px;
    padding: 18px;
    border-color: rgba(46, 125, 50, 0.10);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
}

.profile-wallet-stat:hover {
    transform: none;
    box-shadow: none;
}

.profile-wallet-stat .stat-value {
    color: #2f312f;
    font-size: clamp(1.85rem, 2.8vw, 2.35rem);
    line-height: 1;
}

.profile-wallet-panel .membership-rule-lead {
    margin: 2px 0 16px;
    color: #54665d;
    font-weight: 600;
}

.profile-wallet-panel .benefit-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin: 16px 0 22px;
}

.profile-wallet-panel .benefit-pill {
    display: flex;
    align-items: center;
    min-height: 62px;
    padding: 14px 16px;
    border-radius: 12px;
    background: linear-gradient(135deg, #f8fbf4, #fffaf0);
    color: #244b38;
    font-weight: 800;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-wallet-history-title {
    margin: 22px 0 10px;
    color: var(--primary-color);
    font-size: 1.35rem;
    line-height: 1.2;
}

.profile-wallet-history {
    gap: 10px;
}

.profile-wallet-history .membership-rule-row {
    grid-template-columns: minmax(126px, 0.9fr) minmax(44px, auto) minmax(0, 1.2fr);
    gap: 14px;
    min-height: 52px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #fbfdf9;
}

.profile-wallet-history .membership-rule-row span,
.profile-wallet-history .membership-rule-row em {
    min-width: 0;
    overflow-wrap: anywhere;
}

.profile-wallet-history .membership-rule-row strong {
    justify-self: end;
    font-size: 0.96rem;
}

.profile-wallet-history .membership-rule-row em {
    color: #758195;
    line-height: 1.35;
    text-align: right;
}

.profile-tier-journey {
    overflow: hidden;
}

.profile-dashboard-sidebar .profile-tier-journey {
    margin: -2px 0 0;
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 10px 22px rgba(15, 62, 46, 0.05);
}

.profile-tier-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.profile-tier-heading h2 {
    margin: 4px 0 0;
    color: #0f3f2d;
}

.profile-tier-heading strong {
    flex: 0 0 auto;
    color: var(--primary-color);
    font-size: 1rem;
}

.profile-dashboard-sidebar .profile-tier-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 4px 10px;
    margin-bottom: 12px;
}

.profile-dashboard-sidebar .profile-tier-heading .profile-kicker {
    grid-column: 1 / -1;
}

.profile-dashboard-sidebar .profile-tier-heading h2 {
    font-size: 1.34rem;
    margin-top: 0;
}

.profile-dashboard-sidebar .profile-tier-heading strong {
    font-size: 0.82rem;
    line-height: 1.25;
}

.profile-tier-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 6px 0 20px;
}

.profile-tier-track::before,
.profile-tier-track-fill {
    content: '';
    position: absolute;
    left: 12%;
    right: 12%;
    top: 25px;
    height: 6px;
    border-radius: 999px;
}

.profile-tier-track::before {
    background: #e1ece3;
}

.profile-tier-track-fill {
    transform: scaleX(var(--profile-tier-progress, 0));
    transform-origin: left center;
    background: linear-gradient(90deg, #21a58c, #e1bd3e);
}

.profile-tier-step {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    gap: 6px;
    min-width: 0;
    text-align: center;
}

.profile-tier-diamond {
    display: block;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: #fff;
    border: 2px solid #cddbd2;
    transform: rotate(45deg);
    box-shadow: 0 8px 18px rgba(15, 62, 46, 0.06);
}

.profile-tier-step.is-unlocked .profile-tier-diamond,
.profile-tier-step.is-active .profile-tier-diamond {
    border-color: #e0bd3c;
    background: linear-gradient(135deg, #fff6ca, #fff);
}

.profile-tier-step.is-active .profile-tier-diamond {
    box-shadow: 0 0 0 6px rgba(224, 189, 60, 0.16), 0 8px 18px rgba(15, 62, 46, 0.08);
}

.profile-tier-step strong {
    margin-top: 4px;
    color: #173c28;
    font-size: 0.9rem;
}

.profile-tier-step small {
    color: #66756d;
    font-size: 0.78rem;
    line-height: 1.35;
}

.profile-dashboard-sidebar .profile-tier-track {
    gap: 4px;
    margin: 4px 0 12px;
}

.profile-dashboard-sidebar .profile-tier-track::before,
.profile-dashboard-sidebar .profile-tier-track-fill {
    left: 14%;
    right: 14%;
    top: 18px;
    height: 5px;
}

.profile-dashboard-sidebar .profile-tier-diamond {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}

.profile-dashboard-sidebar .profile-tier-step strong {
    font-size: 0.74rem;
}

.profile-dashboard-sidebar .profile-tier-step small {
    font-size: 0.58rem;
}

.profile-tier-journey .membership-rule-lead {
    margin-bottom: 0;
}

.profile-dashboard-sidebar .profile-tier-journey .membership-rule-lead {
    font-size: 0.82rem;
    line-height: 1.45;
}

.profile-how-panel h2 {
    color: #123d2b;
}

.profile-how-list {
    display: grid;
    gap: 12px;
}

.profile-how-step {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.profile-how-step span {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: #f5e8b6;
    color: #0f3f2d;
    font-weight: 900;
}

.profile-how-step p {
    margin: 4px 0 0;
    color: #43584d;
    line-height: 1.55;
}

@media (max-width: 1100px) {
    .profile-layout.profile-dashboard {
        grid-template-columns: minmax(280px, 320px) minmax(0, 1fr);
        gap: 20px;
        max-width: 100%;
    }

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

    .profile-overview-grid {
        grid-template-columns: 1fr;
    }

    .profile-wallet-panel {
        padding: 24px;
    }

    .profile-wallet-head {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .profile-wallet-refresh {
        justify-self: start;
    }

    .profile-wallet-panel .benefit-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1100px) {
    .profile-dashboard .profile-email-verify,
    .profile-dashboard .profile-email-actions {
        grid-template-columns: 1fr;
    }

    .profile-dashboard .profile-email-actions .btn {
        width: 100%;
        white-space: normal;
    }
}

@media (max-width: 768px) {
    .profile-container {
        padding: 24px 18px;
        border-radius: 12px;
    }

    .profile-layout.profile-dashboard {
        grid-template-columns: 1fr;
        gap: 14px;
        max-width: 100%;
    }

    .profile-dashboard-sidebar {
        position: static;
        gap: 12px;
        padding: 14px;
        border-radius: 12px;
    }

    .profile-summary-card {
        grid-template-columns: 54px minmax(0, 1fr);
        gap: 12px;
    }

    .profile-summary-avatar {
        width: 54px;
        height: 54px;
    }

    .profile-summary-body h2 {
        font-size: 1rem;
    }

    .profile-summary-body p,
    .profile-summary-body small {
        font-size: 0.8rem;
    }

    .profile-quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .profile-summary-card-premium {
        align-items: stretch;
        grid-template-columns: 1fr;
        padding: 18px;
        border-radius: 14px;
    }

    .profile-summary-card-premium::before {
        display: none;
    }

    .profile-summary-top h2 {
        font-size: 1.28rem;
    }

    .profile-summary-points {
        font-size: 2.55rem;
    }

    .profile-mini-card {
        min-height: 120px;
        padding: 16px;
    }

    .profile-action-card {
        grid-template-columns: 1fr;
        justify-items: center;
        min-height: 78px;
        padding: 10px 6px;
        text-align: center;
        font-size: 0.78rem;
    }

    .profile-action-card span {
        width: 32px;
        height: 32px;
    }

    .profile-quick-actions .btn {
        min-height: 42px;
        padding: 8px 8px;
        font-size: 0.78rem;
        white-space: normal;
    }

    .profile-tabs {
        position: sticky;
        top: 76px;
        z-index: 8;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 4px;
        padding: 4px;
        border: 1px solid rgba(46, 125, 50, 0.12);
        border-radius: 12px;
        background: #f4faf2;
    }

    .profile-tab {
        min-height: 40px;
        padding: 8px 4px;
        border-radius: 8px;
        font-size: 0.82rem;
    }

    .profile-dashboard-head,
    .profile-panel-heading,
    .membership-panel,
    .profile-account-card {
        padding: 18px;
        border-radius: 12px;
    }

    .profile-dashboard-head h1 {
        font-size: 1.65rem;
    }

    .profile-dashboard-head p {
        font-size: 0.94rem;
    }

    .profile-panel-heading {
        align-items: flex-start;
        flex-direction: column;
    }

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

    .profile-metric-card {
        padding: 14px 10px;
        border-radius: 10px;
    }

    .profile-wallet-panel {
        padding: 18px;
        border-radius: 12px;
    }

    .profile-wallet-head h2 {
        font-size: 1.8rem;
    }

    .profile-wallet-refresh {
        width: 100%;
    }

    .profile-wallet-stats {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .profile-wallet-stat {
        min-height: 96px;
        border-radius: 10px;
    }

    .profile-wallet-panel .benefit-grid {
        grid-template-columns: 1fr;
    }

    .profile-wallet-history .membership-rule-row {
        grid-template-columns: minmax(0, 1fr) auto;
        gap: 4px 12px;
    }

    .profile-wallet-history .membership-rule-row em {
        grid-column: 1 / -1;
        text-align: left;
    }

    .profile-metric-card .stat-value {
        font-size: 1.35rem;
    }

    .profile-history-filters {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-history-filter {
        border-radius: 10px;
        font-size: 0.86rem;
    }

    .profile-timeline-item {
        grid-template-columns: 14px minmax(0, 1fr);
        gap: 10px;
    }

    .profile-timeline-main {
        padding: 12px;
        border-radius: 10px;
    }

    .profile-timeline-top {
        align-items: flex-start;
        flex-direction: column;
        gap: 2px;
    }

    .profile-history-more {
        width: 100%;
    }

    .profile-tier-heading {
        flex-direction: column;
        gap: 6px;
    }

    .profile-tier-track {
        gap: 6px;
    }

    .profile-tier-diamond {
        width: 36px;
        height: 36px;
        border-radius: 10px;
    }

    .profile-tier-track::before,
    .profile-tier-track-fill {
        top: 22px;
    }

    .profile-tier-step strong {
        font-size: 0.82rem;
    }

    .profile-tier-step small {
        font-size: 0.72rem;
    }
}

@media (max-width: 380px) {
    .profile-quick-actions {
        grid-template-columns: 1fr;
    }

    .profile-metric-grid,
    .profile-history-filters,
    .profile-wallet-history .membership-rule-row {
        grid-template-columns: 1fr;
    }

    .profile-wallet-history .membership-rule-row strong {
        justify-self: start;
    }
}

/* Favorites Section */
.favorites-section h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
}

.favorites-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
}

.favorite-card {
    border: 1px solid #eee;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
}

.favorite-card img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

.favorite-card-body {
    padding: 10px;
}

.favorite-card-body h4 {
    font-size: 0.9rem;
    margin: 0 0 10px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.favorite-card-body .btn {
    padding: 5px 10px;
    font-size: 0.8rem;
    width: 100%;
}

/* Global Cart Icon */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}
.global-cart-icon {
    position: relative;
    color: var(--text-color);
    display: flex;
    align-items: center;
    transition: color 0.3s;
}
.global-cart-icon:hover {
    color: var(--primary-color);
}
.global-cart-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #e53935;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
}

/* Premium Social Icons */
.social-icons-premium {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}
.social-icons-premium a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    color: #fff;
    transition: all 0.3s ease;
}
.social-icons-premium a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}


/* Codex mobile layout balance 2026-06-20 */
@media (max-width: 768px) {
    .navbar {
        overflow: visible;
    }

    main,
    footer {
        transition: filter 0.16s ease;
    }

    body:has(.nav-links.active) main,
    body:has(.nav-links.active) footer {
        filter: brightness(0.34) blur(1px);
        pointer-events: none;
    }

    .navbar .container {
        align-items: center;
        display: grid;
        flex-wrap: nowrap;
        gap: 10px;
        grid-template-columns: auto minmax(0, 1fr) auto;
        height: 72px;
        min-height: 72px;
        position: relative;
    }

    .logo {
        grid-column: 1;
        grid-row: 1;
        align-self: center;
        justify-self: start;
        order: 0;
    }

    .nav-actions {
        grid-column: 2;
        grid-row: 1;
        align-self: center;
        gap: 6px;
        justify-content: flex-end;
        justify-self: end;
        margin: 0;
        order: 0;
        width: auto;
    }

    .menu-toggle {
        grid-column: 3;
        grid-row: 1;
        align-self: center;
        gap: 4px;
        height: 38px;
        justify-self: end;
        min-height: 38px;
        order: 0;
        padding: 3px;
        width: 38px;
    }

    .menu-toggle .bar {
        height: 3px;
        width: 23px;
    }

    .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .global-cart-icon {
        height: 36px;
        justify-content: center;
        min-height: 36px;
        min-width: 36px;
        width: 36px;
    }

    .global-cart-icon svg {
        height: 22px;
        width: 22px;
    }

    .global-cart-badge {
        font-size: 0.62rem;
        height: 16px;
        min-width: 16px;
        padding: 0 4px;
        right: -4px;
        top: -4px;
    }

    .lang-switcher {
        align-items: center;
        display: inline-flex;
        font-size: 0.82rem;
        gap: 3px;
        line-height: 1;
        white-space: nowrap;
    }

    .lang-switcher a {
        min-height: 34px;
        min-width: 30px;
        padding: 4px 5px;
    }

    .nav-actions .auth-container {
        display: flex;
        flex: 0 0 auto;
        margin-left: 0;
    }

    .nav-actions .auth-container:has(.btn) {
        display: flex;
    }

    .nav-actions .auth-login-link {
        border-radius: 999px;
        font-size: 0.76rem;
        height: 34px;
        min-height: 34px;
        min-width: 52px;
        padding: 0 10px;
    }

    .nav-actions .auth-login-text-desktop {
        display: none;
    }

    .nav-actions .auth-login-text-mobile {
        display: inline;
    }

    .nav-actions .user-profile-menu {
        align-items: center;
        display: flex;
    }

    .nav-actions .user-avatar {
        display: block;
        height: 32px;
        width: 32px;
    }

    .nav-actions .profile-dropdown {
        right: -6px;
        top: 42px;
        z-index: 1010;
    }

    .navbar nav {
        grid-column: 1 / -1;
        grid-row: 1;
        left: 16px;
        order: 4;
        position: absolute;
        right: 16px;
        top: 100%;
        width: auto;
        z-index: 1005;
    }

    .nav-links {
        background: #ffffff;
        border: 1px solid rgba(19, 114, 52, 0.12);
        border-radius: 12px;
        box-shadow: 0 18px 38px rgba(20, 50, 32, 0.16);
        margin-top: 8px;
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
        overscroll-behavior: contain;
        padding: 12px;
        position: relative;
        z-index: 1006;
    }

    .nav-links.active {
        display: grid;
        gap: 10px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        max-height: calc(100dvh - 96px);
        overflow-y: auto;
    }

    .nav-links > li {
        min-width: 0;
        width: 100%;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        align-items: center;
        background: #f7fbf8;
        border: 1px solid #d7e7da;
        border-radius: 10px;
        color: #243a2d;
        box-shadow: 0 1px 0 rgba(19, 114, 52, 0.05);
        display: flex;
        justify-content: center;
        min-height: 48px;
        padding: 11px 10px;
        text-align: center;
        white-space: normal;
        width: 100%;
    }

    .nav-links a:hover,
    .nav-links a:focus,
    .nav-dropdown-toggle:hover,
    .nav-dropdown-toggle:focus {
        background: #edf7f0;
        border-color: #137234;
        color: #0f6f33;
        outline: none;
    }

    .nav-links a.active,
    .nav-dropdown-toggle.active {
        background: #137234;
        border-color: #137234;
        box-shadow: 0 8px 18px rgba(19, 114, 52, 0.18);
        color: #ffffff;
    }

    .nav-dropdown {
        grid-column: 1 / -1;
        width: 100%;
    }

    .nav-dropdown-menu {
        background: #f2f8f4;
        border: 1px solid #d4e6d7;
        border-radius: 12px;
        box-shadow: none;
        display: grid;
        gap: 8px;
        grid-template-columns: 1fr;
        margin-top: 8px;
        opacity: 1;
        padding: 8px;
        pointer-events: auto;
        position: static;
        transform: none;
        visibility: visible;
        width: 100%;
    }

    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown:focus-within .nav-dropdown-menu {
        transform: none;
    }

    .nav-dropdown-menu a {
        background: #ffffff;
        border-color: #cfe3d3;
        min-height: 48px;
    }

    .nav-actions.active {
        margin: 0;
        order: 0;
        width: auto;
    }

    .nav-actions.active .auth-container {
        display: flex;
    }

    .nav-actions.active .auth-container:has(.btn) {
        display: flex;
    }
}

.checkout-auth-container {
    margin-left: 0;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
}

.checkout-auth-container:has(.btn) {
    display: flex;
}

.checkout-auth-container .auth-login-link {
    border-radius: 999px;
    font-size: 0.76rem;
    height: 34px;
    min-height: 34px;
    min-width: 52px;
    padding: 0 10px;
}

.checkout-auth-container .auth-login-text-desktop {
    display: none;
}

.checkout-auth-container .auth-login-text-mobile {
    display: inline;
}

.checkout-auth-container .user-avatar {
    display: block;
    height: 32px;
    width: 32px;
}

.checkout-auth-container .profile-dropdown {
    right: 0;
    top: 42px;
}

/* Keep desktop navigation from inheriting compact mobile touch rules. */
@media (min-width: 769px) {
    .navbar .container {
        gap: clamp(18px, 2vw, 34px);
        justify-content: flex-start;
        max-width: min(1480px, 100%);
        padding-left: clamp(28px, 4vw, 64px);
        padding-right: clamp(28px, 4vw, 64px);
    }

    .navbar nav {
        flex: 1 1 auto;
        min-width: 0;
    }

    .nav-links {
        align-items: center;
        flex-wrap: nowrap;
        gap: clamp(16px, 1.7vw, 32px);
        justify-content: center;
    }

    .nav-links > li {
        flex: 0 0 auto;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        align-items: center;
        display: inline-flex;
        justify-content: center;
        line-height: 1.25;
        min-height: 44px;
        text-align: center;
        white-space: nowrap;
    }

    .nav-actions {
        flex: 0 0 auto;
        gap: clamp(10px, 1vw, 15px);
        white-space: nowrap;
    }

    .nav-actions .auth-container {
        flex: 0 0 auto;
        margin-left: 0;
    }

    .global-cart-icon {
        flex: 0 0 44px;
        justify-content: center;
        width: 44px;
    }

    .lang-switcher {
        align-items: center;
        display: inline-flex;
        gap: 8px;
        line-height: 1;
        white-space: nowrap;
    }

    .lang-switcher a {
        min-height: 36px;
        min-width: auto;
        padding: 6px 6px;
    }

    .auth-login-link {
        min-height: 40px;
        padding: 0 18px;
    }

    .auth-login-text-mobile {
        display: none;
    }
}

@media (min-width: 960px) and (max-width: 1180px) {
    .navbar .container {
        gap: 14px;
        padding-left: 22px;
        padding-right: 22px;
    }

    .logo-img {
        height: 36px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 0.86rem;
    }

    .nav-actions {
        gap: 8px;
    }

    .global-cart-icon {
        flex-basis: 40px;
        min-width: 40px;
        width: 40px;
    }

    .lang-switcher {
        font-size: 0.86rem;
        gap: 5px;
    }

    .lang-switcher a {
        min-height: 34px;
        padding-left: 4px;
        padding-right: 4px;
    }

    .auth-login-link {
        font-size: 0.82rem;
        min-height: 38px;
        padding: 0 10px;
    }
}

@media (min-width: 769px) and (max-width: 959px) {
    .navbar .container {
        gap: 10px;
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav-links {
        gap: 8px;
        justify-content: flex-start;
    }

    .nav-links a,
    .nav-dropdown-toggle {
        font-size: 0.8rem;
    }

    .nav-dropdown-toggle {
        gap: 5px;
    }

    .nav-actions {
        gap: 6px;
    }

    .global-cart-icon {
        flex-basis: 36px;
        min-width: 36px;
        width: 36px;
    }

    .lang-switcher {
        font-size: 0.8rem;
        gap: 4px;
    }

    .lang-switcher a {
        min-height: 34px;
        padding-left: 3px;
        padding-right: 3px;
    }

    .auth-login-link {
        font-size: 0.76rem;
        min-height: 38px;
        padding: 0 8px;
    }
}

@media (max-width: 576px) {
    #online-shop .shop-grid-online .shop-action,
    #menu-products .menu-grid-online .shop-action,
    .shop-action {
        align-items: stretch;
        flex-direction: column;
        gap: 8px;
    }

    .shop-card .btn-add-cart,
    #online-shop .shop-grid-online .shop-action .btn,
    #menu-products .menu-grid-online .shop-action .btn {
        border-radius: 14px;
        flex: 0 0 auto;
        font-size: 0.86rem;
        height: auto;
        line-height: 1.2;
        max-height: none;
        min-height: 44px;
        padding: 10px 12px;
        width: 100%;
    }
}

@media (max-width: 360px) {
    .nav-links.active {
        grid-template-columns: 1fr;
    }
}

body.eden-promo-popup-open {
    overflow: hidden;
}

/* Shared mobile navigation: one calm, consistent control and scan path. */
@media (max-width: 768px) {
    .navbar .container {
        gap: 8px;
        height: 68px;
        min-height: 68px;
        padding-inline: 14px;
    }

    .navbar .logo-img {
        height: 38px;
        width: auto;
    }

    .navbar .nav-actions {
        gap: 4px;
    }

    .navbar .global-cart-icon,
    .navbar .menu-toggle {
        height: 44px;
        min-height: 44px;
        min-width: 44px;
        width: 44px;
    }

    .navbar .menu-toggle {
        align-items: center;
        background: #f5faf6;
        border: 1px solid #d7e7da;
        border-radius: 50%;
        color: #168943;
        gap: 5px;
        justify-content: center;
        padding: 0;
        transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
    }

    .navbar .menu-toggle:hover {
        background: #edf7f0;
        border-color: #9bc8a6;
        color: #0d7134;
    }

    .navbar .menu-toggle:focus-visible {
        background: #edf7f0;
        border-color: #168943;
        outline: 3px solid rgba(22, 137, 67, 0.16);
        outline-offset: 2px;
    }

    .navbar .menu-toggle .bar {
        background: currentColor;
        border-radius: 999px;
        height: 2px;
        transform-origin: center;
        transition: transform 180ms cubic-bezier(0.22, 1, 0.36, 1), opacity 120ms ease;
        width: 20px;
    }

    .navbar .menu-toggle.is-active {
        background: #e7f5eb;
        border-color: #9bc8a6;
        color: #087435;
    }

    .navbar .menu-toggle.is-active .bar:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .navbar .menu-toggle.is-active .bar:nth-child(2) {
        opacity: 0;
    }

    .navbar .menu-toggle.is-active .bar:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .navbar .nav-actions .user-avatar {
        height: 40px;
        width: 40px;
    }

    .navbar .lang-switcher {
        font-size: 0;
        gap: 0;
    }

    .navbar .lang-switcher a {
        display: none;
    }

    .navbar .lang-switcher a:not(.active) {
        align-items: center;
        border: 1px solid #d7e7da;
        border-radius: 999px;
        color: #426250;
        display: inline-flex;
        font-size: 0.72rem;
        font-weight: 600;
        height: 40px;
        justify-content: center;
        min-height: 40px;
        min-width: 40px;
        padding: 0;
    }

    .navbar .lang-switcher a:not(.active):hover,
    .navbar .lang-switcher a:not(.active):focus-visible {
        background: #edf7f0;
        border-color: #168943;
        color: #0d7134;
        outline: 3px solid rgba(22, 137, 67, 0.16);
        outline-offset: 2px;
    }

    .navbar nav {
        position: absolute;
        top: 100%;
        left: 12px;
        right: 12px;
        width: calc(100% - 24px);
        max-width: calc(100vw - 24px);
        box-sizing: border-box;
        z-index: 1005;
    }

    .navbar .nav-links {
        border: 0;
        border-radius: 16px;
        box-shadow: 0 20px 44px rgba(15, 53, 31, 0.2);
        margin-top: 8px;
        padding: 8px 10px 10px;
        scrollbar-color: #b8d4c0 transparent;
        scrollbar-width: thin;
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .navbar .nav-links::before {
        display: none;
    }

    html[lang="th"] .navbar .nav-links::before {
        content: "เมนูหลัก";
    }

    html[lang="en"] .navbar .nav-links::before {
        content: "Main menu";
    }

    .navbar .nav-links.active {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        box-sizing: border-box;
        width: 100%;
        max-width: 100%;
    }

    .navbar .nav-links > li {
        border: 0;
        min-width: 0;
        max-width: 100%;
        box-sizing: border-box;
    }

    .navbar .nav-links a,
    .navbar .nav-dropdown-toggle {
        background: #f7faf8;
        border: 1px solid #dce9df;
        border-radius: 12px;
        box-shadow: none;
        font-size: 0.84rem;
        justify-content: start;
        line-height: 1.3;
        min-height: 50px;
        padding: 8px 11px;
        text-align: left;
    }

    .navbar .nav-links > li:not(.mobile-account-item) > a {
        align-items: center;
        display: grid;
        gap: 8px;
        grid-template-columns: 20px minmax(0, 1fr);
        justify-content: start;
        min-height: 50px;
        padding: 8px 11px;
        text-align: left;
    }

    .navbar .nav-links > li:not(.mobile-account-item) > a::before {
        background: currentColor;
        content: "";
        display: block;
        height: 20px;
        justify-self: center;
        opacity: .86;
        -webkit-mask-image: var(--mobile-nav-icon);
        -webkit-mask-position: center;
        -webkit-mask-repeat: no-repeat;
        -webkit-mask-size: contain;
        mask-image: var(--mobile-nav-icon);
        mask-position: center;
        mask-repeat: no-repeat;
        mask-size: contain;
        width: 20px;
    }

    .navbar .nav-links > li[data-header-nav-id="home"] > a,
    .navbar .nav-links > li > a[href="/#home"],
    .navbar .nav-links > li > a[href="/en#home"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.5 12 4l9 7.5'/%3E%3Cpath d='M5.5 10v10h13V10M9.5 20v-6h5v6'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="about"] > a,
    .navbar .nav-links > li > a[href="/#about"],
    .navbar .nav-links > li > a[href="/en#about"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 10.5v6M12 7.5h.01'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="menu"] > a,
    .navbar .nav-links > li > a[href="/menu"],
    .navbar .nav-links > li > a[href="/menu-en"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 3v5a3 3 0 0 0 6 0V3M7 3v18M16 3v18M16 3c3 2 4 5 4 8h-4'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="shop"] > a,
    .navbar .nav-links > li > a[href="/shop"],
    .navbar .nav-links > li > a[href="/shop-en"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 8h14l-1 13H6L5 8Z'/%3E%3Cpath d='M9 8V6a3 3 0 0 1 6 0v2'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="booking"] > a,
    .navbar .nav-links > li > a[href="/booking"],
    .navbar .nav-links > li > a[href="/booking-en"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M8 3v4M16 3v4M3 10h18M8 14h.01M12 14h.01M16 14h.01'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="archery"] > a,
    .navbar .nav-links > li > a[href="/archery/"],
    .navbar .nav-links > li > a[href="/archery-en"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='7'/%3E%3Ccircle cx='12' cy='12' r='2.5'/%3E%3Cpath d='M12 2v3M12 19v3M2 12h3M19 12h3'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="blog"] > a,
    .navbar .nav-links > li > a[href="/blog"],
    .navbar .nav-links > li > a[href="/blog-en"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 5.5c3-.7 5.7-.2 8 1.5v13c-2.3-1.7-5-2.2-8-1.5v-13ZM20 5.5c-3-.7-5.7-.2-8 1.5v13c2.3-1.7 5-2.2 8-1.5v-13Z'/%3E%3C/svg%3E");
    }

    .navbar .nav-links > li[data-header-nav-id="faq"] > a,
    .navbar .nav-links > li > a[href="/faq"],
    .navbar .nav-links > li > a[href="/en#faq"] {
        --mobile-nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M9.7 9a2.4 2.4 0 1 1 3.1 2.3c-.8.3-.8 1-.8 1.7M12 16.8h.01'/%3E%3C/svg%3E");
    }

    .navbar .nav-links a.active::before {
        opacity: 1;
    }

    .navbar .nav-links a:hover,
    .navbar .nav-links a:focus-visible,
    .navbar .nav-dropdown-toggle:hover,
    .navbar .nav-dropdown-toggle:focus-visible {
        background: #f1f8f3;
        border-color: #9bc8a6;
        color: #0d7134;
        outline: 3px solid rgba(22, 137, 67, 0.14);
        outline-offset: -3px;
    }

    .navbar .nav-links a.active,
    .navbar .nav-dropdown-toggle.active {
        background: #137b3c;
        border-color: #137b3c;
        box-shadow: none;
        color: #ffffff;
        font-weight: 700;
    }

    .navbar .nav-links a.active::after,
    .navbar .nav-dropdown-toggle.active::after {
        display: none;
    }

    .navbar .nav-dropdown {
        padding-block: 4px;
    }

    .navbar .nav-dropdown-toggle {
        color: #50685a;
        font-size: 0.82rem;
        min-height: 40px;
    }

    .navbar .nav-dropdown-caret {
        margin-left: auto;
    }

    .navbar .nav-dropdown-menu {
        background: transparent;
        border: 0;
        border-radius: 0;
        display: grid;
        gap: 8px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0;
        padding: 0 8px 8px;
    }

    .navbar .nav-dropdown-menu a {
        background: #f4f9f5;
        border: 1px solid #d9e8dd;
        justify-content: center;
        min-height: 44px;
        padding: 9px 8px;
        text-align: center;
    }

    .navbar .nav-dropdown-menu a:hover,
    .navbar .nav-dropdown-menu a:focus-visible {
        border: 1px solid #168943;
    }

    .navbar .nav-links > .mobile-account-item {
        border-bottom: 0;
        border-top: 1px solid #c9dccf;
        grid-column: 1 / -1;
        margin-top: 2px;
        padding-top: 8px;
    }

    .navbar .mobile-account-item::before {
        display: none;
    }

    .navbar .mobile-account-item .auth-container,
    .navbar .mobile-account-item .user-profile-menu {
        display: block;
        margin: 0;
        width: 100%;
    }

    .navbar .mobile-account-item .user-avatar {
        display: none;
    }

    .navbar .mobile-account-item .profile-dropdown,
    .navbar .mobile-account-item .profile-dropdown.show {
        background: #f7faf8;
        border: 1px solid #d7e7da;
        border-radius: 14px;
        box-shadow: none;
        display: grid;
        min-width: 0;
        overflow: hidden;
        position: static;
        width: 100%;
    }

    .navbar .mobile-account-item .profile-dropdown-identity {
        align-items: center;
        background: transparent;
        border-bottom: 1px solid #dfeae2;
        display: grid;
        gap: 10px;
        grid-template-columns: 44px minmax(0, 1fr);
        padding: 9px 10px;
    }

    .navbar .mobile-account-item .profile-dropdown-avatar {
        border: 2px solid #168943;
        border-radius: 50%;
        display: block;
        height: 44px;
        object-fit: cover;
        width: 44px;
    }

    .navbar .mobile-account-item .profile-dropdown-copy strong {
        color: #183b28;
        font-size: 0.9rem;
        line-height: 1.25;
    }

    .navbar .mobile-account-item .profile-dropdown-copy small {
        color: #5d7466;
        font-size: 0.75rem;
        line-height: 1.25;
    }

    .navbar .mobile-account-item .profile-dropdown-actions {
        display: grid;
        gap: 6px;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 8px;
    }

    .navbar .mobile-account-item .profile-dropdown a {
        background: #ffffff;
        border: 1px solid #dfeae2;
        border-radius: 10px;
        box-shadow: none;
        color: #244533;
        font-size: 0.82rem;
        justify-content: center;
        min-height: 44px;
        padding: 7px 9px;
        text-align: center;
    }

    .navbar .mobile-account-item .profile-dropdown a.profile-pos-link {
        background: #edf7ef;
        border-color: #cfe4d5;
        display: grid;
        gap: 10px;
        grid-column: 1 / -1;
        grid-template-columns: 38px minmax(0, 1fr) 18px;
        margin: 0;
        min-height: 60px;
        padding: 9px 11px;
        text-align: left;
    }

    .navbar .mobile-account-item .profile-dropdown a.profile-pos-link .profile-action-icon {
        height: 38px;
        width: 38px;
    }

    .navbar .mobile-account-item .profile-dropdown a.profile-pos-link .profile-action-copy strong {
        font-size: 0.86rem;
    }

    .navbar .mobile-account-item .profile-dropdown a.profile-pos-link .profile-action-copy small {
        font-size: 0.71rem;
    }

    .navbar .mobile-account-item .profile-dropdown a:hover,
    .navbar .mobile-account-item .profile-dropdown a:focus-visible {
        background: #e8f4eb;
        outline: 3px solid rgba(22, 137, 67, 0.14);
        outline-offset: -3px;
    }

    .navbar .mobile-account-item .profile-dropdown a.profile-dropdown-logout {
        border-color: #ecdcd9;
        color: #9f2f25;
    }

    .navbar .mobile-account-item .auth-login-link {
        background: #137b3c;
        border: 1px solid #137b3c;
        border-radius: 10px;
        color: #ffffff;
        font-size: 0.88rem;
        font-weight: 750;
        justify-content: center;
        min-height: 44px;
        padding: 8px 12px;
        width: 100%;
    }

    .navbar .mobile-account-item .auth-login-text-desktop {
        display: inline;
    }

    .navbar .mobile-account-item .auth-login-text-mobile {
        display: none;
    }
}

@media (max-width: 360px) {
    .navbar .container {
        gap: 4px;
        padding-inline: 10px;
    }

    .navbar .logo-img {
        height: 34px;
    }

    .navbar .nav-actions {
        gap: 2px;
    }

    .navbar .global-cart-icon {
        min-width: 40px;
        width: 40px;
    }

    .navbar .lang-switcher a:not(.active) {
        min-width: 36px;
        width: 36px;
    }
}

.eden-promo-popup {
    position: fixed;
    inset: 0;
    z-index: 10050;
    display: grid;
    place-items: center;
    padding: clamp(12px, 3vw, 32px);
}

.eden-promo-popup__scrim {
    position: absolute;
    inset: 0;
    background: rgba(18, 24, 20, 0.68);
    backdrop-filter: blur(5px);
}

.eden-promo-popup__dialog {
    position: relative;
    width: min(960px, 100%);
    max-height: calc(100vh - 32px);
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto auto;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 24px 72px rgba(0, 0, 0, 0.34);
}

.eden-promo-popup__stage {
    position: relative;
    min-height: 0;
    display: grid;
    place-items: center;
    background: #f4f7f4;
}

.eden-promo-popup__media {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: min(72vh, 720px);
    display: grid;
    place-items: center;
    background: #ffffff;
}

.eden-promo-popup__media img,
.eden-promo-popup__link {
    width: 100%;
    height: 100%;
    display: block;
}

.eden-promo-popup__media img {
    object-fit: contain;
}

.eden-promo-popup__link {
    color: inherit;
    text-decoration: none;
}

.eden-promo-popup__nav,
.eden-promo-popup__close {
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(27, 47, 35, 0.14);
    border-radius: 8px;
    color: #203629;
    background: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.eden-promo-popup__nav:hover,
.eden-promo-popup__close:hover {
    background: #f0f7f2;
}

.eden-promo-popup__nav {
    position: absolute;
    top: 50%;
    width: 46px;
    height: 58px;
    transform: translateY(-50%);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.eden-promo-popup__nav--prev {
    left: 12px;
}

.eden-promo-popup__nav--next {
    right: 12px;
}

.eden-promo-popup__nav svg,
.eden-promo-popup__close svg {
    width: 24px;
    height: 24px;
}

.eden-promo-popup.is-single-slide .eden-promo-popup__nav {
    display: none;
}

.eden-promo-popup__dots {
    min-height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px 8px;
    background: #ffffff;
}

.eden-promo-popup__dots button {
    width: 10px;
    height: 10px;
    border: 0;
    border-radius: 999px;
    background: #c7d2ca;
    cursor: pointer;
    padding: 0;
}

.eden-promo-popup__dots button.is-active {
    width: 26px;
    background: var(--accent-color);
}

.eden-promo-popup__footer {
    min-height: 66px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border-top: 1px solid #edf2ee;
    background: #ffffff;
}

.eden-promo-popup__check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #49564e;
    font-size: 0.94rem;
    line-height: 1.35;
}

.eden-promo-popup__check input {
    width: 20px;
    height: 20px;
    accent-color: var(--accent-color);
    flex: 0 0 auto;
}

.eden-promo-popup__close {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}

@media (max-width: 640px) {
    .eden-promo-popup {
        padding: 10px;
    }

    .eden-promo-popup__dialog {
        max-height: calc(100vh - 20px);
    }

    .eden-promo-popup__media {
        aspect-ratio: 4 / 5;
        max-height: 68vh;
    }

    .eden-promo-popup__nav {
        width: 40px;
        height: 52px;
    }

    .eden-promo-popup__nav--prev {
        left: 8px;
    }

    .eden-promo-popup__nav--next {
        right: 8px;
    }

    .eden-promo-popup__footer {
        align-items: flex-start;
        min-height: 62px;
        padding: 10px 12px;
    }

    .eden-promo-popup__check {
        font-size: 0.88rem;
    }
}
/* Codex profile restore 2026-06-21 end */

/* Login: phone-only passwordless OTP flow */
.auth-page {
    min-height: 100svh;
    padding: 112px 20px 56px;
    grid-template-columns: minmax(0, 1fr);
    background:
        radial-gradient(circle at 50% 18%, rgba(26, 147, 69, 0.09), transparent 30rem),
        #f4f8f2;
}

.auth-panel {
    width: min(100%, 600px);
    min-width: 0;
    padding: 46px 48px;
    border: 1px solid #d9e7d9;
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 22px 56px rgba(15, 63, 45, 0.11);
}

.auth-brand {
    margin-bottom: 28px;
}

.auth-brand .auth-brand-logo {
    display: block;
    width: 136px;
    height: auto;
    margin: 0 auto 24px;
    border: 0;
    border-radius: 0;
    object-fit: contain;
}

.auth-brand h1 {
    max-width: 500px;
    margin: 0 auto;
    color: #103f2d;
    font-size: clamp(2rem, 2.35vw, 2.5rem);
    line-height: 1.28;
    letter-spacing: -0.018em;
    text-wrap: balance;
}

.auth-brand > p {
    max-width: 460px;
    margin: 12px auto 0;
    color: #607268;
    font-size: 1rem;
    line-height: 1.7;
    text-wrap: balance;
}

.auth-panel .register-status {
    margin: 0 0 18px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.92rem;
    line-height: 1.55;
}

.auth-methods {
    display: grid;
    gap: 12px;
}

.auth-text-button:focus-visible {
    outline: 3px solid rgba(26, 147, 69, 0.25);
    outline-offset: 3px;
}

.auth-phone-primary {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    width: 100%;
    min-height: 72px;
    padding: 14px 16px;
    border: 1px solid #b9d9c1;
    border-radius: 18px;
    background: #edf7ef;
    color: #173f2e;
    text-align: left;
}

.auth-phone-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eaf5ec;
    color: #117d3b;
}

.auth-phone-primary-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.auth-phone-primary-copy strong {
    font-size: 1rem;
    line-height: 1.45;
}

.auth-phone-primary-copy small {
    color: #5e7468;
    font-size: 0.84rem;
    line-height: 1.45;
}

.phone-login-panel {
    min-width: 0;
    margin-top: 0;
    padding: 18px;
    border: 1px solid #d9e7d9;
    border-radius: 18px;
    background: #f8fbf8;
}

.phone-login-form {
    gap: 14px;
}

.phone-login-form label {
    gap: 7px;
    font-size: 0.94rem;
}

.phone-login-form input {
    min-height: 54px;
    border-radius: 14px;
    background: #fff;
    font-size: 1rem;
}

.phone-login-helper,
.phone-otp-heading p {
    margin: 0;
    color: #64766c;
    font-size: 0.82rem;
    line-height: 1.5;
}

.nickname-login-form {
    gap: 12px;
}

.nickname-login-heading {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #dfeadf;
}

.nickname-login-heading > span:last-child {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.nickname-login-heading strong {
    color: #163f2e;
    font-size: 1rem;
    line-height: 1.35;
}

.nickname-login-heading small {
    color: #64766c;
    font-size: 0.8rem;
    line-height: 1.45;
}

.nickname-login-icon {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #eaf6ed;
    color: #12813f;
}

.nickname-field-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.nickname-field-label small {
    padding: 3px 8px;
    border-radius: 999px;
    background: #e7f5ea;
    color: #087635;
    font-size: 0.74rem;
    font-weight: 700;
    white-space: nowrap;
}

.nickname-login-form input[readonly] {
    border-color: #dbe7dd;
    background: #f0f5f1;
    color: #4f675b;
}

.required-field-mark {
    color: #a13b28;
    font-size: 0.95em;
}

.phone-security-check {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid #cfe1d2;
    border-radius: 14px;
    background: #fff;
}

.phone-security-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.phone-security-heading > span:last-child {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.phone-security-heading strong,
.phone-security-heading small {
    overflow-wrap: anywhere;
}

.phone-security-heading strong {
    color: #163f2e;
    font-size: 0.94rem;
    line-height: 1.35;
}

.phone-security-heading small {
    color: #64766c;
    font-size: 0.78rem;
    line-height: 1.45;
}

.phone-security-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #eaf6ed;
    color: #12813f;
}

.auth-recaptcha-widget {
    display: flex;
    min-height: 78px;
    min-width: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.phone-security-status {
    margin: 0;
    color: #60736a;
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: center;
}

.phone-security-status[data-status="success"] {
    color: #087635;
    font-weight: 700;
}

.phone-security-status[data-status="error"],
.phone-security-status[data-status="expired"] {
    color: #a13b28;
    font-weight: 700;
}

.phone-security-retry {
    justify-self: center;
    min-height: 36px;
    padding: 6px 10px;
}

@media (max-width: 640px) {
    .auth-recaptcha-widget > div {
        transform: scale(0.86);
        transform-origin: center;
    }
}

.phone-otp-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.phone-otp-heading strong {
    display: block;
    margin-bottom: 3px;
    color: #163f2e;
    font-size: 1rem;
}

.phone-otp-label input {
    text-align: center;
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.auth-text-button {
    padding: 0;
    border: 0;
    background: transparent;
    color: #117d3b;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.auth-resend-button {
    justify-self: center;
    min-height: 36px;
    padding: 6px 10px;
}

.auth-switch {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #e2ebe2;
    font-size: 0.92rem;
}

.auth-auto-membership-note {
    max-width: 38ch;
    margin: 22px auto 0;
    padding-top: 20px;
    border-top: 1px solid #e2ebe2;
    color: #547064;
    font-size: 0.9rem;
    line-height: 1.65;
    text-align: center;
    text-wrap: balance;
}

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

@media (max-width: 640px) {
    .auth-page {
        padding: 102px 16px 34px;
        align-items: start;
    }

    .auth-panel {
        padding: 28px 24px;
        border-radius: 24px;
    }

    .auth-brand .auth-brand-logo {
        width: 122px;
        margin-bottom: 20px;
    }

    .auth-brand h1 {
        max-width: 320px;
        font-size: 1.85rem;
        line-height: 1.3;
    }

    .auth-brand > p {
        font-size: 0.94rem;
        line-height: 1.65;
    }
}

@media (max-width: 380px) {
    .auth-page {
        padding-inline: 12px;
    }

    .auth-panel {
        padding-inline: 20px;
    }

    .auth-phone-primary {
        gap: 10px;
        padding-inline: 12px;
    }

    .auth-phone-icon {
        width: 36px;
        height: 36px;
    }
}

/* Profile distillation final cascade: this stays after the legacy profile bundle. */
.profile-page-main {
    padding: 124px 0 64px;
    font-family: 'Prompt', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-synthesis: none;
}

.profile-page-main > .container {
    max-width: 1320px;
    padding-inline: 32px;
}

html[lang="en"] .profile-page-main {
    font-family: 'Inter', 'Prompt', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.profile-page-main button,
.profile-page-main input,
.profile-page-main select,
.profile-page-main textarea {
    font-family: inherit;
}

.profile-page-main .profile-layout.profile-dashboard {
    grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
    gap: 32px;
    align-items: start;
}

.profile-page-main .profile-dashboard-sidebar {
    position: static;
    top: auto;
    gap: 14px;
    border-color: #dbe7dd;
    box-shadow: none;
}

.profile-page-main .profile-summary-card-premium {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    min-height: 0;
    padding: 22px;
    border-radius: 24px;
    text-align: left;
}

.profile-page-main .profile-summary-card-premium::before {
    width: 150px;
    height: 150px;
    opacity: 0.45;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top {
    display: grid;
    justify-items: start;
    gap: 3px;
    align-items: center;
    margin: 0;
    text-align: left;
}

.profile-page-main .profile-summary-card-premium .profile-summary-avatar {
    width: 54px;
    height: 54px;
    margin: 0;
    border-width: 2px;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top h2 {
    margin: 2px 0 0;
    font-size: clamp(1.08rem, 1.5vw, 1.3rem);
    line-height: 1.25;
    overflow-wrap: normal;
    word-break: normal;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top small {
    margin: 2px 0 0;
    font-size: 0.82rem;
}

.profile-page-main .profile-summary-balance {
    display: grid;
    justify-items: end;
    gap: 2px;
    min-width: 64px;
}

.profile-page-main .profile-summary-balance .profile-summary-points {
    font-size: 2rem;
    line-height: 1;
}

.profile-page-main .profile-summary-balance span {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.85rem;
}

.profile-page-main .profile-tier-highlight {
    overflow: hidden;
    border: 1px solid #d7e6da;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.profile-page-main .profile-tier-highlight .profile-tier-journey {
    margin: 0;
    padding: 17px 16px 15px;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, #fff 0%, #fbfdfb 100%);
    box-shadow: none;
}

.profile-page-main .profile-tier-highlight .profile-tier-heading {
    align-items: end;
    gap: 12px;
    margin-bottom: 14px;
}

.profile-page-main .profile-tier-highlight .profile-tier-heading h2 {
    margin-top: 3px;
    font-size: 1.35rem;
    line-height: 1.1;
}

.profile-page-main .profile-tier-highlight .profile-tier-heading > strong {
    color: #168c48;
    font-size: 0.88rem;
    white-space: nowrap;
}

.profile-page-main .profile-tier-highlight .membership-rule-lead {
    margin-top: 12px;
    color: #52685b;
    font-size: 0.8rem;
}

.profile-page-main .profile-sidebar-disclosure,
.profile-page-main .profile-form-section,
.profile-page-main .profile-history-controls {
    border: 1px solid #d9e6dc;
    border-radius: 16px;
    background: #fff;
}

.profile-page-main .profile-sidebar-disclosure > summary,
.profile-page-main .profile-form-disclosure > summary,
.profile-page-main .profile-history-controls > summary {
    min-height: 56px;
    padding: 13px 16px;
}

.profile-page-main .profile-quick-actions {
    grid-template-columns: 1fr;
    gap: 8px;
}

.profile-page-main .profile-action-card {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-template-columns: none;
    min-height: 54px;
    padding: 11px 14px;
    border-radius: 15px;
    text-align: center;
}

.profile-page-main .profile-action-card span {
    display: none;
}

.profile-page-main .profile-dashboard-main {
    min-width: 0;
}

.profile-page-main .profile-dashboard-main > .profile-tabs {
    position: static;
    top: auto;
    z-index: auto;
    display: flex;
    gap: 6px;
    width: 100%;
    margin: 0 0 18px;
    padding: 5px;
    border: 1px solid #d9e6dc;
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    backdrop-filter: none;
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab {
    flex: 1 1 0;
    min-height: 44px;
    padding: 8px 18px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    font-size: 0.92rem;
    font-weight: 600;
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab.active {
    color: #fff;
    background: #168c48;
    box-shadow: 0 5px 12px rgba(22, 140, 72, 0.16);
}

.profile-page-main .profile-main {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-page-main .profile-panel-heading.profile-panel-heading-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 92px;
    margin: 0 0 18px;
    padding: 20px 24px;
    border: 1px solid #e0ebe2;
    border-radius: 16px;
    background: #fff;
    box-shadow: none;
}

.profile-page-main .profile-panel-heading-compact h2 {
    margin: 0;
    color: #137b3e;
    font-size: clamp(1.65rem, 2vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.025em;
    line-height: 1.2;
    white-space: nowrap;
}

.profile-page-main .profile-history-controls {
    flex: 0 1 360px;
    box-shadow: none;
}

.profile-page-main .profile-history-controls[open] {
    position: relative;
    z-index: 3;
}

.profile-page-main .profile-history-date-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 0 14px 14px;
}

.profile-page-main .profile-history-date-grid label,
.profile-page-main .profile-history-clear {
    font-size: 0.78rem;
}

.profile-page-main .profile-history-date-grid input {
    min-height: 42px;
}

.profile-page-main .profile-history-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 18px;
    padding: 0;
    overflow: visible;
    scrollbar-width: none;
}

.profile-page-main .profile-history-filter {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
}

.profile-page-main .profile-timeline {
    gap: 12px;
}

.profile-page-main .profile-timeline-item {
    grid-template-columns: 12px minmax(0, 1fr);
    gap: 14px;
}

.profile-page-main .profile-timeline-dot {
    display: block;
    width: 10px;
    height: 10px;
    margin-top: 25px;
}

.profile-page-main .profile-timeline-main {
    grid-column: 2;
    width: 100%;
    min-height: 0;
    padding: 18px 20px;
    border: 1px solid #dbe7dd;
    border-left-width: 1px;
    border-radius: 14px;
    box-shadow: none;
}

.profile-page-main .profile-timeline-top {
    gap: 12px;
}

.profile-page-main .profile-timeline-main h3 {
    margin: 3px 0 6px;
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.profile-page-main .profile-timeline-main p,
.profile-page-main .profile-timeline-main small {
    font-size: 0.9rem;
    line-height: 1.55;
}

.profile-page-main .profile-timeline-top span,
.profile-page-main .profile-timeline-top strong,
.profile-page-main .profile-timeline-main b {
    font-weight: 600;
}

.profile-page-main .profile-timeline-receipt {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    margin-top: 10px;
    padding: 8px 13px;
    border: 1px solid #bcd8c3;
    border-radius: 10px;
    background: #f7fbf8;
    color: #137b3e;
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.25;
    cursor: pointer;
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.profile-page-main .profile-timeline-receipt:hover {
    border-color: #168c48;
    background: #edf7ef;
    color: #0e6532;
    transform: translateY(-1px);
}

.profile-page-main .profile-timeline-receipt:focus-visible {
    outline: 3px solid rgba(22, 140, 72, 0.2);
    outline-offset: 2px;
}

.profile-page-main .profile-timeline-receipt:disabled {
    border-color: #dce6de;
    background: #f3f5f3;
    color: #718078;
    cursor: progress;
    transform: none;
}

.profile-page-main .profile-timeline-receipt-icon {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.profile-page-main .profile-account-card {
    padding: 22px;
    border-radius: 20px;
}

.profile-page-main .profile-account-top {
    grid-template-columns: 62px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    padding-bottom: 18px;
    margin-bottom: 18px;
}

.profile-page-main .profile-account-avatar {
    width: 62px;
    height: 62px;
}

.profile-page-main .profile-account-top h3 {
    font-size: 1.35rem;
}

.profile-page-main .profile-account-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
}

.profile-page-main .profile-account-actions .btn {
    min-height: 42px;
    padding: 9px 16px;
    white-space: nowrap;
}

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

.profile-page-main .profile-form-grid label {
    margin-bottom: 6px;
    font-size: 0.88rem;
}

.profile-page-main .profile-form-grid input,
.profile-page-main .profile-form-grid select,
.profile-page-main .profile-form-grid textarea {
    min-height: 48px;
    padding: 11px 13px;
    border-radius: 13px;
}

.profile-page-main .profile-form-grid textarea {
    min-height: 76px;
}

.profile-page-main .profile-form-section-primary {
    padding: 16px;
}

.profile-page-main .profile-contact-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(210px, 0.72fr);
    gap: 12px;
    align-items: end;
}

.profile-page-main .profile-contact-row > label {
    min-width: 0;
    margin: 0;
}

.profile-page-main .profile-contact-row .profile-email-verify {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    min-width: 0;
    min-height: 48px;
    padding: 10px 12px;
}

.profile-page-main .profile-contact-row .profile-email-verify > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 3px 7px;
    min-width: 0;
}

.profile-page-main .profile-contact-row .profile-email-verify strong,
.profile-page-main .profile-contact-row .profile-email-verify span {
    display: block;
    margin: 0;
    line-height: 1.35;
    overflow-wrap: normal;
    word-break: normal;
}

.profile-page-main .profile-contact-row .profile-email-verify small,
.profile-page-main .profile-contact-row .profile-privacy-note {
    flex-basis: 100%;
}

.profile-page-main .profile-contact-row .profile-privacy-note {
    margin: 7px 0 0;
    padding: 0;
    background: transparent;
    font-size: 0.76rem;
    line-height: 1.4;
}

.profile-page-main .profile-form-disclosure-body {
    padding: 0 16px 16px;
}

@media (max-width: 1120px) and (min-width: 901px) {
    .profile-page-main > .container {
        padding-inline: 24px;
    }

    .profile-page-main .profile-layout.profile-dashboard {
        grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
        gap: 24px;
    }

    .profile-page-main .profile-panel-heading.profile-panel-heading-compact {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-page-main .profile-history-controls {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 900px) {
    .profile-page-main {
        padding: 98px 14px 38px;
    }

    .profile-page-main .profile-layout.profile-dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 14px;
    }

    .profile-page-main .profile-dashboard-sidebar {
        position: static;
    }

    .profile-page-main .profile-quick-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .profile-page-main .profile-panel-heading.profile-panel-heading-compact {
        align-items: stretch;
        flex-direction: column;
    }

    .profile-page-main .profile-history-controls {
        width: 100%;
        flex-basis: auto;
    }
}

@media (max-width: 640px) {
    .profile-page-main {
        padding-inline: 10px;
    }

    .profile-page-main > .container {
        padding-inline: 0;
    }

    .profile-page-main .profile-summary-card-premium,
    .profile-page-main .profile-account-card {
        padding: 18px;
        border-radius: 20px;
    }

    .profile-page-main .profile-summary-points {
        font-size: 1.75rem;
    }

    .profile-page-main .profile-quick-actions {
        grid-template-columns: 1fr;
    }

    .profile-page-main .profile-action-card {
        min-height: 50px;
    }

    .profile-page-main .profile-dashboard-main > .profile-tabs {
        width: 100%;
    }

    .profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab {
        flex: 1 1 0;
        padding-inline: 10px;
    }

    .profile-page-main .profile-panel-heading.profile-panel-heading-compact {
        min-height: 0;
        padding: 16px;
        border-radius: 18px;
    }

    .profile-page-main .profile-history-date-grid,
    .profile-page-main .profile-form-grid {
        grid-template-columns: 1fr;
    }

    .profile-page-main .profile-timeline-main {
        padding: 15px 16px;
    }

    .profile-page-main .profile-timeline-receipt {
        width: 100%;
        min-height: 44px;
    }

    .profile-page-main .profile-account-top {
        grid-template-columns: 50px minmax(0, 1fr);
    }

    .profile-page-main .profile-account-actions {
        grid-column: 1 / -1;
        justify-content: stretch;
    }

    .profile-page-main .profile-account-actions .btn {
        flex: 1 1 0;
    }

    .profile-page-main .profile-contact-row {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .profile-page-main .profile-account-avatar {
        width: 50px;
        height: 50px;
    }

    .profile-page-main .profile-form-grid input,
    .profile-page-main .profile-form-grid select,
    .profile-page-main .profile-form-grid textarea {
        min-height: 46px;
    }
}

/* Profile bookings: upcoming work stays distinct from completed history. */
.profile-page-main .profile-summary-card-premium .profile-summary-top,
.profile-page-main .profile-summary-card-premium .profile-summary-top h2,
.profile-page-main .profile-booking-card-heading > div,
.profile-page-main .profile-bookings-heading > div {
    min-width: 0;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top h2,
.profile-page-main .profile-panel-heading-compact h2,
.profile-page-main .profile-booking-card h3,
.profile-page-main .profile-next-booking small {
    overflow-wrap: anywhere;
    white-space: normal;
}

.profile-page-main .profile-next-booking {
    display: grid;
    gap: 8px;
    padding: 18px;
    border: 1px solid #cfe0d3;
    border-radius: 16px;
    background: #f7fbf7;
    color: #173e2c;
}

.profile-page-main .profile-next-booking > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
}

.profile-page-main .profile-next-booking h2,
.profile-page-main .profile-next-booking span,
.profile-page-main .profile-next-booking strong,
.profile-page-main .profile-next-booking small {
    margin: 0;
}

.profile-page-main .profile-next-booking h2 {
    font-size: 1.08rem;
    line-height: 1.3;
}

.profile-page-main .profile-next-booking span,
.profile-page-main .profile-next-booking small {
    color: #587064;
    font-size: 0.82rem;
}

.profile-page-main .profile-next-booking strong {
    font-size: 0.98rem;
    line-height: 1.45;
}

.profile-page-main .profile-next-booking a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    margin-top: 4px;
    padding: 9px 13px;
    border-radius: 12px;
    color: #fff;
    background: #168c48;
    font-weight: 750;
    text-align: center;
    text-decoration: none;
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab,
.profile-page-main .profile-history-filter,
.profile-page-main .profile-history-date-grid input,
.profile-page-main .profile-account-actions .btn,
.profile-page-main .profile-history-more,
.profile-page-main .profile-timeline-receipt {
    min-height: 44px;
}

.profile-page-main .profile-bookings-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 14px;
    padding: 20px 22px;
    border: 1px solid #dce8de;
    border-radius: 16px;
    background: #fff;
}

.profile-page-main .profile-bookings-heading h2 {
    margin: 0 0 4px;
    color: #173e2c;
    font-size: clamp(1.45rem, 2.2vw, 1.9rem);
    line-height: 1.25;
}

.profile-page-main .profile-bookings-heading p {
    max-width: 62ch;
    margin: 0;
    color: #587064;
    line-height: 1.55;
}

.profile-page-main .profile-bookings-heading .btn {
    flex: 0 0 auto;
    min-height: 44px;
    white-space: nowrap;
}

.profile-page-main .profile-booking-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 14px;
    overflow-x: auto;
    padding: 1px 1px 7px;
    scrollbar-color: #b7cfbd transparent;
    scrollbar-width: thin;
}

.profile-page-main .profile-booking-filter {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #d3e2d6;
    border-radius: 999px;
    color: #315a44;
    background: #fff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.profile-page-main .profile-booking-filter.active {
    border-color: #168c48;
    color: #fff;
    background: #168c48;
}

.profile-page-main .profile-booking-list {
    display: grid;
    gap: 12px;
}

.profile-page-main .profile-booking-card {
    min-width: 0;
    padding: 20px;
    border: 1px solid #d9e6dc;
    border-radius: 16px;
    background: #fff;
}

.profile-page-main .profile-booking-card.is-focused {
    outline: 3px solid rgba(22, 140, 72, 0.2);
    outline-offset: 2px;
    background: #fbfefb;
}

.profile-page-main .profile-booking-card-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.profile-page-main .profile-booking-card-heading span,
.profile-page-main .profile-booking-card-status small {
    display: block;
    color: #587064;
    font-size: 0.8rem;
    font-weight: 700;
}

.profile-page-main .profile-booking-card h3 {
    margin: 3px 0 0;
    color: #173e2c;
    font-size: 1.05rem;
    line-height: 1.4;
}

.profile-page-main .profile-booking-card-status {
    display: grid;
    flex: 0 0 auto;
    justify-items: end;
    gap: 4px;
    text-align: right;
}

.profile-page-main .profile-booking-card-status strong {
    color: #137c40;
    font-size: 0.9rem;
}

.profile-page-main .profile-booking-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
    margin: 0;
}

.profile-page-main .profile-booking-meta > div {
    min-width: 0;
    padding-top: 10px;
    border-top: 1px solid #e4ece6;
}

.profile-page-main .profile-booking-meta dt {
    margin-bottom: 3px;
    color: #6b7f73;
    font-size: 0.78rem;
}

.profile-page-main .profile-booking-meta dd {
    margin: 0;
    color: #203d2f;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.profile-page-main .profile-booking-confirmation {
    min-height: 44px;
    margin-top: 18px;
}

.profile-page-main .profile-bookings-loading,
.profile-page-main .profile-bookings-empty,
.profile-page-main .profile-bookings-error,
.profile-page-main .profile-booking-notice {
    display: grid;
    justify-items: start;
    gap: 12px;
    min-height: 104px;
    padding: 20px;
    border: 1px solid #d9e6dc;
    border-radius: 16px;
    background: #fff;
    color: #315a44;
    align-content: center;
}

.profile-page-main .profile-bookings-error {
    border-color: #e5c5c5;
    color: #8b2f2f;
    background: #fffafa;
}

.profile-page-main .profile-booking-notice {
    min-height: 0;
    margin-bottom: 12px;
    border-color: #e5d5a9;
    color: #6c541c;
    background: #fffdf7;
}

.profile-page-main .profile-bookings-empty .btn,
.profile-page-main .profile-bookings-error .btn {
    min-height: 44px;
}

.profile-page-main .profile-tab:focus-visible,
.profile-page-main .profile-booking-filter:focus-visible,
.profile-page-main .profile-next-booking a:focus-visible,
.profile-page-main .profile-booking-confirmation:focus-visible {
    outline: 3px solid rgba(22, 140, 72, 0.3);
    outline-offset: 3px;
}

@media (max-width: 640px) {
    .profile-page-main .profile-dashboard-main > .profile-tabs {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        justify-content: flex-start;
        scrollbar-width: thin;
    }

    .profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab {
        flex: 1 0 auto;
        min-width: max-content;
    }

    .profile-page-main .profile-bookings-heading {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
    }

    .profile-page-main .profile-bookings-heading .btn {
        width: 100%;
        white-space: normal;
    }

    .profile-page-main .profile-booking-card {
        padding: 17px;
    }

    .profile-page-main .profile-booking-card-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .profile-page-main .profile-booking-card-status {
        justify-items: start;
        text-align: left;
    }

    .profile-page-main .profile-booking-meta {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-page-main .profile-booking-card,
    .profile-page-main .profile-booking-filter,
    .profile-page-main .profile-tab,
    .profile-page-main .profile-history-filter,
    .profile-page-main .profile-timeline-receipt {
        scroll-behavior: auto;
        transition: none;
    }
}

/* Profile wallet UX polish 2026-08-25: calm hierarchy, balanced columns and real Thai weights. */
.profile-page-main {
    --profile-ink: #183a29;
    --profile-muted: #5d7165;
    --profile-line: #dce7df;
    --profile-soft: #f1f6f1;
    --profile-green: #168847;
    min-height: 100vh;
    background: #f5f8f4;
    color: var(--profile-ink);
    font-family: 'Prompt', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-synthesis: none;
}

.profile-page-main :where(button, input, select, textarea) {
    font-family: inherit;
}

.profile-page-main :where(.profile-tier-chip, .profile-kicker, .profile-tab, .profile-action-card, .profile-history-filter, .profile-booking-filter) {
    font-weight: 600;
}

.profile-page-main :where(.profile-summary-points, .profile-wallet-balance strong, .profile-wallet-delta) {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.profile-page-main ::selection {
    color: #0c3523;
    background: #cde8d3;
}

.profile-page-main :where(input, select, textarea) {
    caret-color: var(--profile-green);
}

.profile-page-main > .container {
    max-width: 1240px;
    padding-inline: 24px;
}

.profile-page-main .profile-layout.profile-dashboard {
    grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
    gap: 28px;
    max-width: 1190px;
}

.profile-page-main .profile-dashboard-sidebar {
    top: 100px;
    gap: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.profile-page-main .profile-summary-card-premium {
    grid-template-columns: 48px minmax(0, 1fr) auto;
    gap: 12px;
    padding: 18px;
    border-radius: 16px;
    box-shadow: 0 16px 34px rgba(7, 77, 57, 0.18);
}

.profile-page-main .profile-summary-card-premium .profile-summary-avatar {
    width: 48px;
    height: 48px;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top h2 {
    font-size: 1.05rem;
    font-weight: 600;
}

.profile-page-main .profile-summary-card-premium .profile-summary-top small {
    font-size: 0.76rem;
    font-weight: 400;
}

.profile-page-main .profile-summary-card-premium .profile-tier-chip {
    min-height: 24px;
    padding: 3px 9px;
    font-size: 0.68rem;
}

.profile-page-main .profile-summary-balance .profile-summary-points {
    font-size: 1.75rem;
}

.profile-page-main .profile-summary-balance span {
    font-size: 0.72rem;
}

.profile-page-main .profile-next-booking,
.profile-page-main .profile-tier-highlight,
.profile-page-main .profile-action-card {
    border-color: var(--profile-line);
    box-shadow: none;
}

.profile-page-main .profile-tier-highlight {
    border-radius: 14px;
}

.profile-page-main .profile-tier-highlight .profile-tier-journey {
    padding: 15px;
}

.profile-page-main .profile-tier-highlight .profile-tier-heading h2 {
    font-size: 1.18rem;
    font-weight: 600;
}

.profile-page-main .profile-tier-highlight .profile-tier-heading > strong,
.profile-page-main .profile-tier-step strong {
    font-weight: 600;
}

.profile-page-main .profile-quick-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.profile-page-main .profile-action-card {
    min-height: 52px;
    padding: 9px 6px;
    border-radius: 12px;
    font-size: 0.78rem;
    line-height: 1.35;
}

.profile-page-main .profile-action-card:hover {
    color: #116d3a;
    background: #f8fbf8;
    transform: none;
}

.profile-page-main .profile-dashboard-main {
    gap: 12px;
}

.profile-page-main .profile-dashboard-main > .profile-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    width: 100%;
    margin-bottom: 2px;
    padding: 5px;
    border: 0;
    border-radius: 14px;
    background: #e8f0e9;
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab {
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 10px;
    color: #355a43;
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab:hover {
    color: #17462f;
    background: rgba(255, 255, 255, 0.62);
}

.profile-page-main .profile-dashboard-main > .profile-tabs .profile-tab.active {
    color: #fff;
    background: var(--profile-green);
    box-shadow: none;
}

.profile-page-main .profile-wallet-panel {
    padding: clamp(24px, 3vw, 34px);
    border: 0;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 67, 45, 0.08);
}

.profile-page-main .profile-wallet-head {
    align-items: center;
    margin-bottom: 24px;
}

.profile-page-main .profile-wallet-title {
    min-width: 0;
}

.profile-page-main .profile-wallet-title h2 {
    margin: 0;
    color: var(--profile-ink);
    font-size: clamp(1.55rem, 2.2vw, 1.95rem);
    font-weight: 600;
    line-height: 1.25;
    overflow-wrap: normal;
}

.profile-page-main .profile-wallet-title p {
    max-width: 58ch;
    margin: 7px 0 0;
    color: var(--profile-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

.profile-page-main .profile-wallet-refresh {
    min-width: 132px;
    min-height: 44px;
    padding: 9px 16px;
    border: 1px solid #2c9a58;
    border-radius: 12px;
    color: #11743b;
    font-size: 0.82rem;
    font-weight: 500;
}

.profile-page-main .profile-wallet-refresh:hover {
    color: #fff;
    background: var(--profile-green);
    transform: none;
}

.profile-page-main .profile-wallet-refresh:disabled {
    opacity: 0.58;
    cursor: wait;
}

.profile-page-main .profile-wallet-balance {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
    margin-bottom: 26px;
    border-radius: 14px;
    background: var(--profile-soft);
    overflow: hidden;
}

.profile-page-main .profile-wallet-balance > div {
    display: grid;
    align-content: center;
    min-height: 136px;
    padding: 22px 24px;
}

.profile-page-main .profile-wallet-balance span,
.profile-page-main .profile-wallet-balance small {
    color: #4e6959;
    font-size: 0.8rem;
    font-weight: 500;
}

.profile-page-main .profile-wallet-balance strong {
    margin: 4px 0;
    color: #0f7140;
    font-size: clamp(2.5rem, 5vw, 3.4rem);
    line-height: 1;
}

.profile-page-main .profile-wallet-balance-credit {
    border-left: 1px solid #cfdfd3;
}

.profile-page-main .profile-wallet-balance-credit strong {
    color: #254a35;
    font-size: clamp(1.85rem, 3.5vw, 2.45rem);
}

.profile-page-main .profile-wallet-rules {
    padding: 0;
}

.profile-page-main .profile-wallet-rules-head,
.profile-page-main .profile-wallet-history-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.profile-page-main .profile-wallet-rules-head h3,
.profile-page-main .profile-wallet-history-heading h3 {
    margin: 0;
    color: var(--profile-ink);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.4;
}

.profile-page-main .profile-wallet-rules-head p,
.profile-page-main .profile-wallet-history-heading p {
    margin: 0;
    color: var(--profile-muted);
    font-size: 0.78rem;
    line-height: 1.45;
    text-align: right;
}

.profile-page-main .profile-wallet-rule-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 13px;
    border-block: 1px solid var(--profile-line);
}

.profile-page-main .profile-wallet-rule-list .benefit-pill {
    display: grid;
    align-content: start;
    gap: 5px;
    min-height: 112px;
    padding: 17px 18px;
    border: 0;
    border-right: 1px solid var(--profile-line);
    border-radius: 0;
    color: var(--profile-muted);
    background: transparent;
    font-size: 0.82rem;
    font-weight: 400;
    line-height: 1.55;
}

.profile-page-main .profile-wallet-rule-list .benefit-pill:last-child {
    border-right: 0;
}

.profile-page-main .profile-wallet-rule-list .benefit-pill strong {
    color: #26583b;
    font-size: 0.84rem;
    font-weight: 600;
}

.profile-page-main .profile-wallet-history-section {
    margin-top: 30px;
}

.profile-page-main .profile-wallet-history {
    gap: 0;
    margin-top: 11px;
    border-top: 1px solid var(--profile-line);
}

.profile-page-main .profile-wallet-history .membership-rule-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: center;
    min-height: 66px;
    padding: 12px 2px;
    border-bottom: 1px solid var(--profile-line);
    border-radius: 0;
    background: transparent;
}

.profile-page-main .profile-wallet-history-copy {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.profile-page-main .profile-wallet-history-reason {
    color: #294b37;
    font-size: 0.9rem;
    font-weight: 500;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.profile-page-main .profile-wallet-history-copy small {
    color: #68786f;
    font-size: 0.76rem;
}

.profile-page-main .profile-wallet-delta {
    display: inline-flex;
    align-items: baseline;
    justify-content: flex-end;
    gap: 5px;
    min-width: 84px;
    color: #476052;
    font-size: 1rem;
    text-align: right;
}

.profile-page-main .profile-wallet-delta.is-credit {
    color: #087d3d;
}

.profile-page-main .profile-wallet-delta.is-debit {
    color: #a33a31;
}

.profile-page-main .profile-wallet-delta span {
    color: inherit;
    font-size: 0.7rem;
    font-weight: 400;
}

.profile-page-main :where(.profile-tab, .profile-wallet-refresh, .profile-action-card):focus-visible {
    outline: 3px solid rgba(22, 136, 71, 0.28);
    outline-offset: 3px;
}

@media (max-width: 900px) {
    .profile-page-main > .container {
        max-width: 760px;
    }

    .profile-page-main .profile-layout.profile-dashboard {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
    }

    .profile-page-main .profile-dashboard-sidebar {
        position: static;
    }
}

@media (max-width: 640px) {
    .profile-page-main {
        padding: 96px 0 34px;
    }

    .profile-page-main > .container {
        padding-inline: 12px;
    }

    .profile-page-main .profile-wallet-panel {
        padding: 20px 17px;
        border-radius: 14px;
    }

    .profile-page-main .profile-wallet-head {
        grid-template-columns: 1fr;
        gap: 14px;
        margin-bottom: 19px;
    }

    .profile-page-main .profile-wallet-refresh {
        justify-self: stretch;
        width: 100%;
    }

    .profile-page-main .profile-wallet-balance {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
        margin-bottom: 24px;
    }

    .profile-page-main .profile-wallet-balance > div {
        min-height: 112px;
        padding: 17px 15px;
    }

    .profile-page-main .profile-wallet-balance strong {
        font-size: clamp(2.05rem, 12vw, 2.7rem);
    }

    .profile-page-main .profile-wallet-balance-credit strong {
        font-size: clamp(1.55rem, 8vw, 2rem);
    }

    .profile-page-main .profile-wallet-rules-head,
    .profile-page-main .profile-wallet-history-heading {
        display: grid;
        gap: 3px;
    }

    .profile-page-main .profile-wallet-rules-head p,
    .profile-page-main .profile-wallet-history-heading p {
        text-align: left;
    }

    .profile-page-main .profile-wallet-rule-list {
        grid-template-columns: 1fr;
    }

    .profile-page-main .profile-wallet-rule-list .benefit-pill {
        min-height: 0;
        padding: 14px 2px;
        border-right: 0;
        border-bottom: 1px solid var(--profile-line);
    }

    .profile-page-main .profile-wallet-rule-list .benefit-pill:last-child {
        border-bottom: 0;
    }

    .profile-page-main .profile-wallet-history-section {
        margin-top: 25px;
    }
}

@media (max-width: 420px) {
    .profile-page-main .profile-summary-card-premium {
        grid-template-columns: 44px minmax(0, 1fr);
    }

    .profile-page-main .profile-summary-card-premium .profile-summary-avatar {
        width: 44px;
        height: 44px;
    }

    .profile-page-main .profile-summary-balance {
        grid-column: 1 / -1;
        grid-template-columns: auto auto;
        justify-content: space-between;
        justify-items: start;
        align-items: baseline;
        min-width: 0;
    }

    .profile-page-main .profile-dashboard-main > .profile-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .profile-page-main .profile-wallet-balance {
        grid-template-columns: 1fr;
    }

    .profile-page-main .profile-wallet-balance > div {
        min-height: 100px;
    }

    .profile-page-main .profile-wallet-balance-credit {
        border-top: 1px solid #cfdfd3;
        border-left: 0;
    }

    .profile-page-main .profile-wallet-history .membership-rule-row {
        gap: 10px;
    }

    .profile-page-main .profile-wallet-delta {
        min-width: 62px;
    }

    .profile-page-main .profile-wallet-delta span {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .profile-page-main .profile-action-card,
    .profile-page-main .profile-wallet-refresh {
        transition: none;
    }
}

/* Profile history desktop integration 2026-08-26: the later history layout
   owns the desktop canvas while retaining the wallet-specific visual system. */
@media (min-width: 901px) {
    .profile-page-main > .container {
        max-width: 1320px;
        padding-inline: 32px;
    }

    .profile-page-main .profile-layout.profile-dashboard {
        grid-template-columns: minmax(300px, 320px) minmax(0, 1fr);
        gap: 32px;
        max-width: none;
    }

    .profile-page-main .profile-dashboard-sidebar {
        position: static;
        top: auto;
    }
}

@media (max-width: 1120px) and (min-width: 901px) {
    .profile-page-main > .container {
        padding-inline: 24px;
    }

    .profile-page-main .profile-layout.profile-dashboard {
        grid-template-columns: minmax(280px, 300px) minmax(0, 1fr);
        gap: 24px;
    }
}
