/* =========================================================
   Cloudorn Design System v1.0
   ========================================================= */

/* =========================================================
   1. Design Tokens
   ========================================================= */

:root {
    --color-primary: #2563eb;
    --color-primary-dark: #1d4ed8;
    --color-primary-soft: #eff6ff;

    --color-text: #1e293b;
    --color-text-soft: #475569;
    --color-muted: #64748b;

    --color-background: #f8fafc;
    --color-surface: #ffffff;
    --color-border: #e2e8f0;
    --color-border-strong: #cbd5e1;

    --color-success-bg: #dcfce7;
    --color-success-text: #166534;
    --color-success-border: #bbf7d0;

    --color-error-bg: #fef2f2;
    --color-error-text: #991b1b;
    --color-error-border: #fecaca;

    --shadow-small: 0 3px 12px rgba(15, 23, 42, 0.06);
    --shadow-card: 0 12px 34px rgba(15, 23, 42, 0.08);
    --shadow-header: 0 4px 20px rgba(15, 23, 42, 0.07);

    --radius-small: 8px;
    --radius-medium: 12px;
    --radius-large: 18px;

    --container-width: 1180px;
}

/* =========================================================
   2. Reset and Base
   ========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background: var(--color-background);
    color: var(--color-text);
    font-family: "Segoe UI", Roboto, Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

button,
input,
textarea,
select {
    font: inherit;
}

button {
    border: 0;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 22px;
}

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

/* =========================================================
   3. Typography
   ========================================================= */

h1,
h2,
h3 {
    color: var(--color-text);
    line-height: 1.2;
}

h1 {
    font-size: clamp(2.25rem, 5vw, 3.6rem);
    font-weight: 750;
}

h2 {
    font-size: clamp(1.7rem, 3vw, 2.2rem);
    font-weight: 700;
}

h3 {
    font-size: 1.1rem;
    font-weight: 700;
}

p {
    margin-bottom: 20px;
    color: var(--color-text-soft);
}

/* =========================================================
   4. Buttons
   ========================================================= */

.btn-primary,
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 24px;
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 650;
    cursor: pointer;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--color-primary);
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
    background: var(--color-primary-dark);
    color: #ffffff;
    transform: translateY(-1px);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-primary);
    border: 1px solid var(--color-primary);
}

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

/* =========================================================
   5. Sticky Header
   ========================================================= */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;

    background: #ffffff;

    border-bottom: 1px solid var(--color-border);

    box-shadow: var(--shadow-header);

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.site-header.is-scrolled {
    background: rgba(255, 255, 255, 0.78);

    border-bottom-color: rgba(226, 232, 240, 0.7);

    box-shadow:
        0 8px 30px rgba(15, 23, 42, 0.09);

    backdrop-filter: blur(14px) saturate(150%);

    -webkit-backdrop-filter: blur(14px) saturate(150%);
}
.header-primary {
    background: transparent;
}

.header-primary-inner {
    min-height: 76px;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 26px;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 1.45rem;
    font-weight: 750;
    white-space: nowrap;
}

.logo-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}

.header-search {
    display: flex;
    width: 100%;
    max-width: 650px;
    justify-self: center;
}

.header-search input {
    min-width: 0;
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border-strong);
    border-right: 0;
    border-radius: var(--radius-small) 0 0 var(--radius-small);
    color: var(--color-text);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.header-search input:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.header-search input::placeholder {
    color: #94a3b8;
}

.search-button {
    min-height: 46px;
    padding: 0 22px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    font-weight: 650;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

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

.header-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 18px;
    white-space: nowrap;
}

.get-app-link,
.login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--color-text-soft);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.get-app-link:hover,
.login-link:hover {
    color: var(--color-primary);
}

.user-greeting {
    max-width: 150px;
    overflow: hidden;
    color: var(--color-text);
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.mobile-menu-toggle {
    position: relative;
    display: none;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 1.25rem;
}

/* =========================================================
   6. Secondary Navigation
   ========================================================= */

.header-secondary {
    background: transparent;
    border-top: 1px solid rgba(241, 245, 249, 0.8);
}

.header-secondary-inner {
    min-height: 54px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.main-navigation {
    display: flex;
    align-items: center;
    gap: 30px;
}

.main-navigation a {
    position: relative;
    padding: 15px 0;
    color: var(--color-text-soft);
    text-decoration: none;
    font-weight: 600;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.main-navigation a::after {
    position: absolute;
    right: 0;
    bottom: 8px;
    left: 0;
    height: 2px;
    background: var(--color-primary);
    content: "";
    opacity: 0;
    transform: scaleX(0);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.main-navigation a:hover {
    color: var(--color-primary);
}

.main-navigation a:hover::after {
    opacity: 1;
    transform: scaleX(1);
}

.header-create-shop {
    min-height: 38px;
    padding: 8px 18px;
    flex: 0 0 auto;
}

/* =========================================================
   7. Main Content
   ========================================================= */

.site-main {
    min-height: 70vh;
}

.site-main > .alert {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 24px auto 0;
}

/* =========================================================
   8. Alerts
   ========================================================= */

.alert {
    padding: 15px 18px;
    margin-bottom: 25px;
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
    border-radius: var(--radius-small);
}

.alert.success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border-color: var(--color-success-border);
    font-weight: 650;
}

/* =========================================================
   9. Hero
   ========================================================= */

.hero {
    position: relative;
    max-width: 1050px;
    margin: 0 auto;
    padding: 92px 24px 72px;
    text-align: center;
}

.hero::before {
    position: absolute;
    z-index: -1;
    top: 28px;
    right: 12%;
    bottom: 22px;
    left: 12%;
    background:
        radial-gradient(
            circle at center,
            rgba(37, 99, 235, 0.11),
            rgba(37, 99, 235, 0)
        );
    content: "";
}

.hero h1 {
    max-width: 880px;
    margin: 0 auto 24px;
}

.hero p {
    max-width: 760px;
    margin: 0 auto 36px;
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* =========================================================
   10. Marketplace Search Section
   ========================================================= */

.search-section {
    width: calc(100% - 44px);
    max-width: 900px;
    margin: 0 auto 76px;
    padding: 32px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    text-align: center;
}

.search-section h2 {
    margin-bottom: 22px;
}

.search-section form {
    display: flex;
    max-width: 760px;
    margin: 0 auto;
}

.search-section input {
    min-width: 0;
    width: 100%;
    min-height: 50px;
    padding: 12px 16px;
    background: var(--color-background);
    border: 1px solid var(--color-border-strong);
    border-right: 0;
    border-radius: var(--radius-small) 0 0 var(--radius-small);
    outline: none;
}

.search-section button {
    min-height: 50px;
    padding: 0 24px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: 0 var(--radius-small) var(--radius-small) 0;
    font-weight: 650;
}

.search-section input:disabled,
.search-section button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* =========================================================
   11. Category Cards
   ========================================================= */

.categories-section {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 16px 0 82px;
}

.categories-section > h2 {
    margin-bottom: 10px;
    text-align: center;
}

.categories-section > h2 + p {
    text-align: center;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
    justify-content: center;
    gap: 20px;
    margin-top: 34px;
}

.category-card {
    min-height: 190px;
    padding: 26px 20px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-align: center;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.category-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-card);
    transform: translateY(-4px);
}

.category-icon {
    display: inline-flex;
    width: 64px;
    height: 64px;
    margin-bottom: 17px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 50%;
    line-height: 1;
}
.category-icon-svg {
    display: block;
    width: 32px;
    height: 32px;
    color: var(--color-primary);
    overflow: visible;
}

.category-card h3 {
    margin-bottom: 9px;
}

.category-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}
.section-description {
    max-width: 620px;
    margin: 10px auto 0;
    color: var(--color-muted);
    text-align: center;
}

.empty-message {
    margin-top: 30px;
    text-align: center;
}
/* =========================================================
   12. Call to Action
   ========================================================= */

.cta {
    width: calc(100% - 44px);
    max-width: 980px;
    margin: 0 auto 86px;
    padding: 54px 30px;
    background:
        linear-gradient(
            135deg,
            #1d4ed8,
            #2563eb
        );
    color: #ffffff;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.cta h2,
.cta p {
    color: #ffffff;
}

.cta h2 {
    margin-bottom: 14px;
}

.cta p {
    max-width: 650px;
    margin: 0 auto 26px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: #ffffff;
    color: var(--color-primary);
    box-shadow: none;
}

.cta .btn-primary:hover {
    background: #eff6ff;
}

/* =========================================================
   13. Authentication Cards and Forms
   ========================================================= */

.card {
    width: calc(100% - 44px);
    max-width: 760px;
    margin: 60px auto;
    padding: 40px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-card);
}

.card h1 {
    margin-bottom: 15px;
    font-size: clamp(2rem, 4vw, 2.4rem);
}

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

label {
    display: block;
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 650;
}

.card input {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.card input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.card form > button {
    width: 100%;
    min-height: 50px;
    padding: 13px 20px;
    background: var(--color-primary);
    color: #ffffff;
    border-radius: var(--radius-small);
    font-weight: 650;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.card form > button:hover {
    background: var(--color-primary-dark);
}

.form-note {
    margin-top: 30px;
    color: var(--color-muted);
    font-size: 0.9rem;
    text-align: center;
}

/* =========================================================
   14. Footer
   ========================================================= */

.site-footer {
    margin-top: 30px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

.site-footer .container {
    padding-top: 34px;
    padding-bottom: 34px;
    color: var(--color-muted);
    text-align: center;
}

.site-footer p {
    margin-bottom: 4px;
    color: var(--color-text-soft);
}

/* =========================================================
   15. Compatibility with Register/Login Layout
   ========================================================= */

body > header:not(.site-header) {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-small);
}

body > header:not(.site-header) .container {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.navigation {
    display: flex;
    align-items: center;
    gap: 24px;
}

.navigation a {
    color: var(--color-text-soft);
    text-decoration: none;
    font-weight: 600;
}

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

body > footer:not(.site-footer) {
    margin-top: 60px;
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
}

body > footer:not(.site-footer) .container {
    padding-top: 30px;
    padding-bottom: 30px;
    color: var(--color-muted);
    text-align: center;
}

/* =========================================================
   16. Responsive Design
   ========================================================= */

@media (max-width: 960px) {
    .header-primary-inner {
        grid-template-columns: auto 1fr auto;
        gap: 18px;
        padding-top: 14px;
        padding-bottom: 14px;
    }

    .header-search {
        grid-column: 1 / -1;
        grid-row: 2;
        max-width: none;
    }

    .header-secondary-inner {
        overflow-x: auto;
        scrollbar-width: thin;
    }

    .main-navigation {
        min-width: max-content;
        gap: 24px;
    }

    .hero {
        padding-top: 70px;
    }
}

@media (max-width: 700px) {
    .container {
        padding-right: 16px;
        padding-left: 16px;
    }

    .header-primary-inner {
        grid-template-columns: 1fr auto;
    }

    .logo {
        font-size: 1.3rem;
    }

    .get-app-link span:last-child {
        display: none;
    }

    .user-greeting {
        display: none;
    }

    .header-actions {
        gap: 12px;
    }

    .header-secondary-inner {
        gap: 18px;
    }

    .main-navigation {
        gap: 20px;
    }

    .header-create-shop {
        position: sticky;
        right: 0;
    }

    .hero {
        padding: 58px 18px 54px;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-secondary {
        width: 100%;
    }

    .search-section {
        padding: 24px 18px;
    }

    .search-section form {
        flex-direction: column;
        gap: 10px;
    }

    .search-section input,
    .search-section button {
        width: 100%;
        border: 1px solid var(--color-border-strong);
        border-radius: var(--radius-small);
    }

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

    .category-card {
        min-height: 170px;
        padding: 22px 14px;
    }

    .cta {
        padding: 42px 22px;
    }

    .card {
        margin-top: 34px;
        margin-bottom: 34px;
        padding: 28px 22px;
    }

    body > header:not(.site-header) .container {
        align-items: flex-start;
        flex-direction: column;
        padding-top: 16px;
        padding-bottom: 16px;
    }

    .navigation {
        width: 100%;
        overflow-x: auto;
        gap: 18px;
    }
}

@media (max-width: 440px) {
    .header-actions {
        gap: 8px;
    }

    .login-link {
        font-size: 0.92rem;
    }

    .search-button {
        padding-right: 15px;
        padding-left: 15px;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   17. Cloudorn Combined Logo
   ========================================================= */

.logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    line-height: 0;
}

.cloudorn-logo {
    display: block;
    width: 178px;
    height: auto;
    overflow: visible;
}

/* =========================================================
   18. Mobile Navigation
   ========================================================= */

.menu-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
}

@media (max-width: 700px) {

.cloudorn-logo {
    width: 148px;
}

    .mobile-menu-toggle {
        display: inline-flex;
        flex: 0 0 auto;
    }

    .header-secondary {
        display: none;
        background: rgba(255, 255, 255, 0.96);
        border-top: 1px solid var(--color-border);
    }

    .site-header.menu-open .header-secondary {
        display: block;
    }

    .header-secondary-inner {
        display: flex;
        min-height: 0;
        padding-top: 12px;
        padding-bottom: 18px;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        overflow: visible;
    }

    .main-navigation {
        display: flex;
        min-width: 0;
        width: 100%;
        align-items: stretch;
        flex-direction: column;
        gap: 0;
    }

    .main-navigation a {
        width: 100%;
        padding: 12px 4px;
        border-bottom: 1px solid var(--color-border);
    }

    .main-navigation a::after {
        display: none;
    }

    .main-navigation a:last-child {
        border-bottom: 0;
    }

    .header-create-shop {
        position: static;
        width: 100%;
        min-height: 46px;
        padding: 11px 20px;
    }
}

@media (max-width: 440px) {

.cloudorn-logo {
    width: 132px;
}

    .header-primary-inner {
        gap: 10px;
    }

    .header-actions {
        gap: 7px;
    }
}
/* =========================================================
   Cloudorn Dynamic Category Browsing v1.0
   Append this block to public_html/assets/css/app.css
   ========================================================= */

.category-card-link {
    color: inherit;
    text-decoration: none;
}

.category-card-link:focus-visible,
.subcategory-card:focus-visible,
.breadcrumb a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.25);
    outline-offset: 4px;
}

.category-card-title {
    margin-bottom: 9px;
    font-size: 1.1rem;
}

.category-card-action {
    display: inline-flex;
    margin-top: 17px;
    color: var(--color-primary);
    font-size: 0.88rem;
    font-weight: 700;
}

.category-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 34px 0 88px;
}

.breadcrumb {
    display: flex;
    margin-bottom: 28px;
    align-items: center;
    gap: 9px;
    overflow-x: auto;
    color: var(--color-muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.breadcrumb a {
    color: var(--color-primary);
    text-decoration: none;
    font-weight: 650;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.category-page-header {
    max-width: 760px;
    margin: 0 auto 44px;
    text-align: center;
}

.category-page-header h1,
.category-hero-panel h1,
.not-found-section h1 {
    margin-bottom: 16px;
}

.category-page-header > p:last-child,
.category-hero-panel > div > p:last-child {
    margin-bottom: 0;
    font-size: 1.08rem;
}

.category-eyebrow {
    margin-bottom: 8px;
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.category-index-grid {
    margin-top: 0;
}

.category-hero-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 46px;
    padding: 34px;
    align-items: center;
    gap: 26px;
    background:
        linear-gradient(
            135deg,
            rgba(239, 246, 255, 0.96),
            rgba(255, 255, 255, 0.98)
        );
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.category-hero-icon {
    display: inline-flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    color: var(--color-primary);
    border: 1px solid #dbeafe;
    border-radius: 24px;
    box-shadow: var(--shadow-small);
}

.category-hero-icon .category-icon-svg {
    width: 44px;
    height: 44px;
}

.subcategory-section {
    margin-bottom: 46px;
}

.section-heading-row {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading-row h2 {
    margin-bottom: 0;
}

.subcategory-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 700;
}

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

.subcategory-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 108px;
    padding: 18px;
    align-items: center;
    gap: 14px;
    background: var(--color-surface);
    color: inherit;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-decoration: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.subcategory-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.subcategory-icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 14px;
}

.subcategory-icon .category-icon-svg {
    width: 25px;
    height: 25px;
}

.subcategory-content {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.subcategory-content strong {
    color: var(--color-text);
    line-height: 1.3;
}

.subcategory-content small {
    color: var(--color-muted);
    line-height: 1.45;
}

.subcategory-arrow {
    color: var(--color-primary);
    font-size: 1.2rem;
    font-weight: 700;
}

.category-marketplace-placeholder,
.category-empty,
.not-found-section {
    padding: 44px 34px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    text-align: center;
}

.category-marketplace-placeholder h2,
.category-empty h2 {
    margin-bottom: 12px;
}

.category-marketplace-placeholder > p:not(.category-eyebrow),
.category-empty p,
.not-found-section > p:not(.category-eyebrow) {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
}

.not-found-section {
    width: calc(100% - 44px);
    max-width: 760px;
    margin: 70px auto;
}

.not-found-actions {
    display: flex;
    margin-top: 28px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

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

@media (max-width: 700px) {
    .category-page {
        width: calc(100% - 32px);
        padding-top: 24px;
        padding-bottom: 62px;
    }

    .category-hero-panel {
        grid-template-columns: 1fr;
        padding: 26px 22px;
        text-align: center;
    }

    .category-hero-icon {
        margin: 0 auto;
    }

    .section-heading-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

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

    .category-marketplace-placeholder,
    .category-empty,
    .not-found-section {
        padding: 34px 22px;
    }
}
/* =========================================================
   Cloudorn Shop Foundation v1.0
   Append this file to the bottom of app.css
   ========================================================= */

.shop-form-section,
.shop-status-section,
.shop-directory,
.shop-profile {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 56px 0 86px;
}

.shop-form-card,
.shop-status-card,
.shop-empty-state,
.shop-profile-panel {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.shop-form-card {
    max-width: 760px;
    margin: 0 auto;
    padding: 38px;
}

.shop-form-card-wide {
    max-width: 940px;
}

.shop-form-heading {
    margin-bottom: 30px;
}

.shop-form-heading h1,
.shop-directory-heading h1,
.shop-status-card h1 {
    margin: 8px 0 14px;
}

.shop-form-eyebrow,
.shop-category-label {
    display: inline-block;
    color: var(--color-primary);
    font-size: 0.82rem;
    font-weight: 750;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

.shop-form-wide {
    grid-column: 1 / -1;
}

.shop-form-card input,
.shop-form-card select,
.shop-form-card textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.shop-form-card textarea {
    resize: vertical;
}

.shop-form-card input:focus,
.shop-form-card select:focus,
.shop-form-card textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.shop-form-card label span {
    color: var(--color-muted);
    font-size: 0.85rem;
    font-weight: 500;
}

.shop-form-card small {
    display: block;
    margin-top: 6px;
    color: var(--color-muted);
}

.shop-submit {
    width: 100%;
    margin-top: 10px;
    border: 0;
}

.shop-form-footer {
    margin: 24px 0 0;
    text-align: center;
}

.shop-form-footer a {
    color: var(--color-primary);
    font-weight: 650;
}

.shop-policy-note {
    margin: 10px 0 22px;
    padding: 16px 18px;
    background: var(--color-primary-soft);
    color: var(--color-text-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-small);
}

.shop-status-card {
    max-width: 780px;
    margin: 0 auto;
    padding: 42px;
    text-align: center;
}

.shop-status-badge {
    display: inline-flex;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 750;
}

.shop-status-pending {
    background: #fef3c7;
    color: #92400e;
}

.shop-status-active {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.shop-status-rejected,
.shop-status-suspended,
.shop-status-expired {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.shop-summary {
    display: grid;
    gap: 0;
    margin: 30px 0;
    text-align: left;
}

.shop-summary > div {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 20px;
    padding: 14px 0;
    border-bottom: 1px solid var(--color-border);
}

.shop-summary dt {
    color: var(--color-muted);
    font-weight: 650;
}

.shop-summary dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.shop-directory-heading {
    max-width: 760px;
    margin: 0 auto 34px;
    text-align: center;
}

.shop-directory-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
    gap: 20px;
}

.shop-listing-card {
    display: grid;
    grid-template-columns: 58px 1fr;
    gap: 18px;
    padding: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.shop-listing-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-card);
    transform: translateY(-3px);
}

.shop-listing-mark,
.shop-profile-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: 800;
}

.shop-listing-mark {
    width: 58px;
    height: 58px;
    font-size: 1.4rem;
}

.shop-listing-card h2 {
    margin: 5px 0 8px;
    font-size: 1.25rem;
}

.shop-listing-card h2 a {
    text-decoration: none;
}

.shop-listing-card p {
    margin-bottom: 10px;
    font-size: 0.94rem;
}

.shop-location {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.shop-empty-state {
    max-width: 760px;
    margin: 20px auto;
    padding: 52px 30px;
    text-align: center;
}

.shop-empty-state h1,
.shop-empty-state h2 {
    margin-bottom: 14px;
}

.shop-not-found {
    margin-top: 64px;
    margin-bottom: 86px;
}

.shop-profile .category-breadcrumbs {
    margin-bottom: 28px;
}

.shop-profile-hero {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 26px;
    align-items: start;
    margin-bottom: 30px;
}

.shop-profile-mark {
    width: 96px;
    height: 96px;
    font-size: 2.4rem;
}

.shop-profile-hero h1 {
    margin: 7px 0 15px;
}

.shop-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    gap: 22px;
}

.shop-profile-panel {
    padding: 30px;
}

.shop-profile-panel h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

@media (max-width: 700px) {
    .shop-form-section,
    .shop-status-section,
    .shop-directory,
    .shop-profile {
        width: calc(100% - 32px);
        padding-top: 34px;
        padding-bottom: 58px;
    }

    .shop-form-card,
    .shop-status-card,
    .shop-profile-panel {
        padding: 25px 20px;
    }

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

    .shop-form-wide {
        grid-column: auto;
    }

    .shop-summary > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .shop-profile-hero {
        grid-template-columns: 68px 1fr;
        gap: 16px;
    }

    .shop-profile-mark {
        width: 68px;
        height: 68px;
        font-size: 1.8rem;
    }
}

/* =========================================================
   Cloudorn Dashboard, Location and Nearby Discovery v1.0
   ========================================================= */

.account-actions {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}

.user-greeting {
    display: inline-flex;
    max-width: 180px;
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: var(--color-text);
    border-radius: var(--radius-small);
    font-weight: 650;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.user-greeting:hover,
.user-greeting:focus-visible {
    color: var(--color-primary);
}

.account-icon {
    flex: 0 0 auto;
}

.user-greeting-name {
    overflow: hidden;
    text-overflow: ellipsis;
}

.header-logout-form {
    margin: 0;
}

.logout-link {
    padding: 5px 0;
    background: transparent;
    color: var(--color-muted);
    cursor: pointer;
    font-weight: 600;
}

.logout-link:hover,
.logout-link:focus-visible {
    color: var(--color-primary);
}

.mobile-dashboard-link {
    display: none;
}

.dashboard-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 54px 0 88px;
}

.dashboard-hero {
    max-width: 760px;
    margin-bottom: 34px;
}

.dashboard-hero h1 {
    margin: 7px 0 14px;
}

.dashboard-hero > p:last-child {
    margin-bottom: 0;
}

.dashboard-eyebrow {
    margin-bottom: 6px;
    color: var(--color-primary);
    font-size: 0.8rem;
    font-weight: 750;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.dashboard-panel {
    padding: 30px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.dashboard-account-panel,
.dashboard-shop-panel,
.dashboard-customer-panel,
.dashboard-admin-panel {
    grid-column: 1 / -1;
}

.dashboard-panel-heading {
    display: flex;
    margin-bottom: 22px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.dashboard-panel-heading h2,
.dashboard-panel > h2 {
    margin-bottom: 0;
}

.dashboard-role-badge {
    padding: 7px 12px;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.dashboard-details {
    display: grid;
    gap: 0;
}

.dashboard-details > div {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 20px;
    padding: 13px 0;
    border-bottom: 1px solid var(--color-border);
}

.dashboard-details dt {
    color: var(--color-muted);
    font-weight: 650;
}

.dashboard-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.dashboard-shop-name {
    margin-bottom: 16px;
    font-size: 1.35rem;
}

.dashboard-actions {
    display: flex;
    margin-top: 26px;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-feature-list {
    display: grid;
    margin: 20px 0 26px;
    gap: 12px;
}

.dashboard-feature-list span {
    padding: 14px 16px;
    background: var(--color-background);
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

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

.shop-location-capture {
    padding: 20px;
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-medium);
}

.shop-location-capture p {
    margin: 6px 0 16px;
}

.location-detect-button {
    min-height: 44px;
}

.location-detect-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.location-capture-status,
.nearby-location-status {
    margin: 15px 0 0;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.location-capture-status.is-success,
.nearby-location-status.is-success {
    color: var(--color-success-text);
    font-weight: 650;
}

.location-capture-status.is-error,
.nearby-location-status.is-error {
    color: var(--color-error-text);
    font-weight: 650;
}

.location-preview {
    display: flex;
    margin-top: 14px;
    gap: 10px;
    flex-wrap: wrap;
}

.location-preview[hidden] {
    display: none;
}

.location-preview span {
    padding: 7px 10px;
    background: #ffffff;
    color: var(--color-text-soft);
    border: 1px solid #dbeafe;
    border-radius: 999px;
    font-size: 0.8rem;
}

.category-discovery-section,
.google-maps-discovery {
    margin-top: 28px;
    padding: 34px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.category-discovery-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.category-discovery-heading h2,
.google-maps-content h2 {
    margin-bottom: 10px;
}

.category-discovery-heading p:last-child,
.google-maps-content p:last-child {
    max-width: 720px;
    margin-bottom: 0;
}

.nearby-shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin-top: 24px;
}

.nearby-shop-card {
    padding: 22px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.nearby-shop-card:hover {
    border-color: #bfdbfe;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.nearby-shop-card-top,
.nearby-shop-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.nearby-shop-card h3 {
    margin: 12px 0 9px;
    font-size: 1.24rem;
}

.nearby-shop-card h3 a,
.nearby-shop-meta a {
    text-decoration: none;
}

.nearby-shop-card h3 a:hover,
.nearby-shop-meta a:hover {
    color: var(--color-primary);
}

.nearby-shop-card p {
    margin-bottom: 18px;
    font-size: 0.94rem;
}

.shop-distance {
    flex: 0 0 auto;
    padding: 5px 9px;
    background: #ffffff;
    color: var(--color-muted);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
}

.nearby-shop-meta {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.nearby-shop-meta a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 700;
}

.category-shop-empty {
    margin-top: 24px;
    box-shadow: none;
}

.google-maps-discovery {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    background:
        linear-gradient(
            135deg,
            rgba(239, 246, 255, 0.96),
            rgba(255, 255, 255, 1)
        );
    border-color: #bfdbfe;
}

.google-maps-button {
    flex: 0 0 auto;
    max-width: 360px;
    text-align: center;
}

@media (max-width: 800px) {
    .dashboard-grid,
    .dashboard-feature-grid,
    .nearby-shop-grid {
        grid-template-columns: 1fr;
    }

    .category-discovery-heading,
    .google-maps-discovery {
        align-items: stretch;
        flex-direction: column;
    }

    .google-maps-button {
        max-width: none;
    }
}

@media (max-width: 700px) {
    .account-actions {
        gap: 8px;
    }

    .user-greeting {
        display: inline-flex;
        max-width: 38px;
    }

    .user-greeting-name {
        display: none;
    }

    .logout-link {
        font-size: 0.84rem;
    }

    .mobile-dashboard-link {
        display: block;
    }

    .dashboard-page {
        width: calc(100% - 32px);
        padding-top: 34px;
        padding-bottom: 62px;
    }

    .dashboard-panel,
    .category-discovery-section,
    .google-maps-discovery {
        padding: 24px 20px;
    }

    .dashboard-panel-heading,
    .nearby-shop-card-top,
    .nearby-shop-meta {
        align-items: flex-start;
        flex-direction: column;
    }

    .dashboard-details > div {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .dashboard-actions .btn-primary,
    .dashboard-actions .btn-secondary,
    .category-discovery-heading .btn-secondary {
        width: 100%;
    }
}


/* =========================================================
   Cloudorn Registration Success Notice v1.0
   ========================================================= */

.flash-notice-wrapper {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 20px auto 0;
}

.flash-notice {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    padding: 15px 16px;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    transition:
        opacity 0.2s ease,
        transform 0.2s ease;
}

.flash-notice-success {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.flash-notice-icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.72);
    border-radius: 50%;
    font-weight: 800;
}

.flash-notice-message {
    font-weight: 650;
}

.flash-notice-close {
    display: inline-flex;
    width: 34px;
    height: 34px;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: currentColor;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}

.flash-notice-close:hover,
.flash-notice-close:focus-visible {
    background: rgba(255, 255, 255, 0.62);
    outline: none;
}

.flash-notice.is-hiding {
    opacity: 0;
    transform: translateY(-6px);
}

@media (max-width: 700px) {
    .flash-notice-wrapper {
        width: calc(100% - 32px);
        margin-top: 14px;
    }

    .flash-notice {
        padding: 13px 14px;
    }
}

/* =========================================================
   Cloudorn Role-aware Shop Navigation v1.0
   ========================================================= */

.flash-notice-info {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    border: 1px solid #bfdbfe;
}

/* =========================================================
   Cloudorn Admin Shop Lifecycle v1.0
   ========================================================= */

.btn-success,
.btn-danger,
.btn-danger-soft {
    display: inline-flex;
    min-height: 46px;
    padding: 12px 20px;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
    transition:
        transform 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.btn-success {
    background: #15803d;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(21, 128, 61, 0.18);
}

.btn-success:hover {
    background: #166534;
    transform: translateY(-1px);
}

.btn-danger {
    background: #b91c1c;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(185, 28, 28, 0.18);
}

.btn-danger:hover {
    background: #991b1b;
    transform: translateY(-1px);
}

.btn-danger-soft {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.btn-danger-soft:hover {
    background: #ffe4e6;
    border-color: #fda4af;
    transform: translateY(-1px);
}

.flash-notice-error {
    background: var(--color-error-bg);
    color: var(--color-error-text);
    border: 1px solid var(--color-error-border);
}

.dashboard-panel-wide {
    grid-column: 1 / -1;
}

.dashboard-status-stack,
.shop-status-stack-centered {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.shop-status-stack-centered {
    justify-content: center;
    margin-bottom: 8px;
}

.owner-visibility-badge,
.admin-visibility-badge,
.admin-deletion-badge,
.admin-notification-badge {
    display: inline-flex;
    padding: 7px 11px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.owner-visibility-badge.is-active,
.admin-visibility-badge.is-visible {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #a7f3d0;
}

.owner-visibility-badge.is-inactive,
.admin-visibility-badge.is-hidden {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #cbd5e1;
}

.admin-deletion-badge,
.admin-notification-badge {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.shop-lifecycle-notice {
    margin: 22px 0;
    padding: 17px 18px;
    background: var(--color-primary-soft);
    color: var(--color-text-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-medium);
    text-align: left;
}

.shop-lifecycle-notice p:last-child {
    margin-bottom: 0;
}

.shop-lifecycle-warning {
    background: #fffbeb;
    border-color: #fde68a;
}

.shop-lifecycle-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 28px;
    gap: 18px;
    text-align: left;
}

.shop-lifecycle-card {
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.shop-lifecycle-card h3 {
    margin: 5px 0 10px;
}

.shop-lifecycle-danger {
    border-color: #fecdd3;
}

.shop-lifecycle-card textarea,
.admin-action-form textarea,
.admin-action-form input[type="number"] {
    width: 100%;
    padding: 11px 12px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
    resize: vertical;
}

.shop-lifecycle-card textarea:focus,
.admin-action-form textarea:focus,
.admin-action-form input[type="number"]:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.confirmation-check {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 14px 0;
    align-items: start;
    gap: 10px;
    color: var(--color-text-soft);
    font-size: 0.9rem;
    font-weight: 500;
}

.confirmation-check input {
    margin-top: 5px;
}

.shop-status-management {
    display: flex;
    margin-top: 24px;
    justify-content: center;
}

.admin-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 46px 0 88px;
}

.admin-hero {
    display: flex;
    margin-bottom: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.admin-hero h1 {
    margin: 4px 0 12px;
}

.admin-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.admin-count-grid,
.dashboard-admin-counts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.admin-count-grid {
    margin-bottom: 36px;
}

.admin-count-card,
.dashboard-admin-counts a {
    display: flex;
    min-height: 104px;
    padding: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    text-decoration: none;
    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-count-card:hover,
.admin-count-card.is-active,
.dashboard-admin-counts a:hover {
    border-color: #93c5fd;
    box-shadow: var(--shadow-card);
    transform: translateY(-2px);
}

.admin-count-card.is-active {
    background: var(--color-primary-soft);
}

.admin-count-card strong,
.dashboard-admin-counts strong {
    color: var(--color-primary);
    font-size: 1.65rem;
    line-height: 1;
}

.dashboard-admin-counts {
    margin: 20px 0 26px;
}

.admin-section-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.admin-shop-list {
    display: grid;
    gap: 22px;
}

.admin-shop-card,
.admin-empty-state {
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.admin-empty-state {
    text-align: center;
}

.admin-shop-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.admin-shop-card-header h2 {
    margin: 10px 0 6px;
}

.admin-shop-badges {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-shop-owner {
    margin-bottom: 0;
}

.admin-shop-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 24px 0;
    gap: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    overflow: hidden;
}

.admin-shop-details > div {
    padding: 15px 16px;
    background: #ffffff;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.admin-shop-details > div:nth-child(3n) {
    border-right: 0;
}

.admin-shop-details > div:nth-last-child(-n + 3) {
    border-bottom: 0;
}

.admin-shop-details dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-shop-details dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-shop-description,
.admin-review-note,
.admin-deletion-panel {
    margin-top: 18px;
    padding: 18px;
    border-radius: var(--radius-medium);
}

.admin-shop-description {
    background: var(--color-background);
    border: 1px solid var(--color-border);
}

.admin-review-note {
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
}

.admin-shop-description p,
.admin-review-note p,
.admin-deletion-panel p:last-child {
    margin-bottom: 0;
}

.admin-deletion-panel {
    background: #fff7ed;
    border: 1px solid #fed7aa;
}

.admin-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 22px;
    gap: 16px;
}

.admin-deletion-actions {
    margin-top: 18px;
}

.admin-action-form {
    display: flex;
    padding: 18px;
    flex-direction: column;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.admin-action-form label {
    margin-bottom: 0;
}

.admin-action-form label span,
.shop-lifecycle-card label span {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.admin-action-form button {
    width: 100%;
}

.admin-limit-form {
    align-self: stretch;
}

@media (max-width: 960px) {
    .admin-count-grid,
    .dashboard-admin-counts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .admin-shop-details > div,
    .admin-shop-details > div:nth-child(3n) {
        border-right: 1px solid var(--color-border);
        border-bottom: 1px solid var(--color-border);
    }

    .admin-shop-details > div:nth-child(2n) {
        border-right: 0;
    }

    .admin-shop-details > div:nth-last-child(-n + 2) {
        border-bottom: 0;
    }
}

@media (max-width: 700px) {
    .admin-page {
        width: calc(100% - 32px);
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .admin-hero,
    .admin-shop-card-header,
    .admin-section-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-hero .btn-secondary,
    .admin-shop-card-header .btn-secondary {
        width: 100%;
    }

    .admin-count-grid,
    .dashboard-admin-counts,
    .admin-shop-details,
    .admin-action-grid,
    .shop-lifecycle-grid {
        grid-template-columns: 1fr;
    }

    .admin-shop-card,
    .admin-empty-state {
        padding: 22px 18px;
    }

    .admin-shop-details > div,
    .admin-shop-details > div:nth-child(2n),
    .admin-shop-details > div:nth-child(3n),
    .admin-shop-details > div:nth-last-child(-n + 2) {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .admin-shop-details > div:last-child {
        border-bottom: 0;
    }

    .dashboard-status-stack {
        justify-content: flex-start;
    }
}

/* =========================================================
   Cloudorn Admin Users, Security and Private Location v1.0
   ========================================================= */

.admin-module-tabs {
    display: flex;
    margin: 0 0 28px;
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.admin-module-tabs a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 18px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.admin-module-tabs a:hover,
.admin-module-tabs a.is-active {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.admin-user-count-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.admin-user-filter-form {
    display: grid;
    grid-template-columns: minmax(260px, 1.4fr) minmax(170px, 0.6fr) minmax(190px, 0.7fr) auto;
    margin: 28px 0 34px;
    padding: 22px;
    align-items: end;
    gap: 16px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.admin-user-filter-form label {
    margin-bottom: 7px;
}

.admin-user-filter-form input,
.admin-user-filter-form select,
.admin-user-action-form input,
.admin-user-action-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.admin-user-action-form textarea {
    min-height: 92px;
    resize: vertical;
}

.admin-user-filter-form input:focus,
.admin-user-filter-form select:focus,
.admin-user-action-form input:focus,
.admin-user-action-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.admin-filter-actions {
    display: flex;
    gap: 10px;
}

.admin-filter-actions .btn-primary,
.admin-filter-actions .btn-secondary {
    min-height: 46px;
    padding-right: 18px;
    padding-left: 18px;
}

.admin-security-note {
    display: inline-flex;
    padding: 7px 12px;
    background: #f1f5f9;
    color: var(--color-muted);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-user-list {
    display: grid;
    gap: 22px;
}

.admin-user-card {
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

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

.admin-user-card h2 {
    margin: 9px 0 5px;
    font-size: 1.45rem;
}

.admin-user-identity {
    margin: 0;
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.admin-user-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.admin-role-badge,
.admin-account-status,
.admin-current-account-badge {
    display: inline-flex;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.admin-role-badge {
    background: var(--color-primary-soft);
    color: var(--color-primary);
}

.admin-role-1 {
    background: #ede9fe;
    color: #6d28d9;
}

.admin-role-2 {
    background: #ecfeff;
    color: #0e7490;
}

.admin-account-status-active {
    background: var(--color-success-bg);
    color: var(--color-success-text);
}

.admin-account-status-inactive {
    background: #f1f5f9;
    color: #475569;
}

.admin-account-status-temporary_banned {
    background: #fef3c7;
    color: #92400e;
}

.admin-account-status-permanent_banned {
    background: var(--color-error-bg);
    color: var(--color-error-text);
}

.admin-current-account-badge {
    background: #dbeafe;
    color: #1d4ed8;
}

.admin-user-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 22px;
    border-top: 1px solid var(--color-border);
    border-left: 1px solid var(--color-border);
}

.admin-user-details > div {
    min-width: 0;
    padding: 15px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.admin-user-details dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.admin-user-details dd {
    margin: 0;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.admin-user-details code,
.dashboard-details code,
.admin-coordinate-pair,
.dashboard-coordinate-pair {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.88rem;
}

.admin-user-ban-summary,
.admin-self-protection-note,
.admin-user-shop-summary {
    display: flex;
    margin: 16px 0;
    padding: 14px 16px;
    align-items: center;
    gap: 12px;
    border-radius: var(--radius-small);
}

.admin-user-ban-summary {
    background: #fffbeb;
    color: #92400e;
    border: 1px solid #fde68a;
}

.admin-self-protection-note {
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
    border: 1px solid #bfdbfe;
    font-weight: 650;
}

.admin-user-shop-summary {
    justify-content: space-between;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    flex-wrap: wrap;
}

.admin-user-shop-summary > div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.admin-user-shop-summary > div span {
    color: var(--color-muted);
}

.admin-user-action-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 24px;
    gap: 16px;
}

.admin-user-action-form {
    display: flex;
    padding: 18px;
    flex-direction: column;
    gap: 13px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.admin-user-action-form label {
    margin: 0;
}

.admin-user-action-form label span {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.admin-user-action-form button {
    width: 100%;
    margin-top: auto;
}

.admin-map-link,
.dashboard-map-link {
    display: inline-flex;
    margin-top: 5px;
    color: var(--color-primary);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
}

.admin-map-link:hover,
.dashboard-map-link:hover {
    text-decoration: underline;
}

.admin-coordinate-pair,
.dashboard-coordinate-pair {
    display: block;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
    .admin-user-count-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-user-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .admin-module-tabs {
        margin-bottom: 22px;
    }

    .admin-module-tabs a {
        flex: 1 0 auto;
    }

    .admin-user-count-grid,
    .admin-user-filter-form,
    .admin-user-details,
    .admin-user-action-grid {
        grid-template-columns: 1fr;
    }

    .admin-user-card {
        padding: 22px 18px;
    }

    .admin-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-filter-actions .btn-primary,
    .admin-filter-actions .btn-secondary {
        width: 100%;
    }
}


/* Cloudorn Products, Inventory & Shop Settings v1.0 */
.product-admin-page,.product-form-page,.shop-settings-page,.public-products-section,.public-hours-section{width:calc(100% - 44px);max-width:var(--container-width);margin:0 auto;padding:48px 0 76px}.product-admin-hero{display:flex;justify-content:space-between;gap:24px;align-items:flex-start;margin-bottom:28px}.product-summary-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-bottom:26px}.product-summary-grid>div{padding:20px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-medium);box-shadow:var(--shadow-small)}.product-summary-grid span{display:block;color:var(--color-muted)}.product-summary-grid strong{font-size:1.7rem}.owner-product-grid,.public-product-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:20px}.owner-product-card,.public-product-card{overflow:hidden;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-medium);box-shadow:var(--shadow-small)}.owner-product-card img,.public-product-card img{width:100%;height:220px;object-fit:cover;background:#eef2f7}.owner-product-body,.public-product-card>div{padding:20px}.product-price{display:block;color:var(--color-primary);font-size:1.25rem;font-weight:800}.product-card-badges{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}.product-status-badge,.stock-badge,.open-status-badge,.delivery-badge{display:inline-flex;padding:6px 10px;border-radius:999px;font-size:.8rem;font-weight:750}.product-status-badge.is-active,.stock-badge.is-in,.open-status-badge.is-open,.delivery-badge.is-available{background:#dcfce7;color:#166534}.product-status-badge.is-hidden,.stock-badge.is-out,.open-status-badge.is-closed{background:#fef2f2;color:#991b1b}.open-status-badge.is-unknown,.delivery-badge.is-pickup{background:#f1f5f9;color:#475569}.product-card-actions{display:flex;gap:8px;flex-wrap:wrap;margin-top:18px}.product-card-actions form{display:inline-flex}.product-card-actions button{min-height:42px}.product-empty{padding:42px;text-align:center;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-large)}.product-form-card,.shop-settings-card{max-width:920px;margin:0 auto;padding:34px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-large);box-shadow:var(--shadow-card)}.product-form-card label,.shop-settings-card label{display:block;margin-bottom:20px}.product-form-card input,.product-form-card textarea,.product-form-card select,.shop-settings-card input,.shop-settings-card textarea,.shop-settings-card select{width:100%;min-height:48px;padding:11px 13px;border:1px solid var(--color-border-strong);border-radius:var(--radius-small)}.product-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.product-edit-preview{display:block;width:220px;height:160px;object-fit:cover;margin:0 0 22px;border-radius:12px}.settings-section{padding:24px 0;border-bottom:1px solid var(--color-border)}.hours-editor{display:grid;gap:10px}.hours-row{display:grid;grid-template-columns:110px 100px 1fr 1fr 140px;gap:12px;align-items:center;padding:12px;background:#f8fafc;border-radius:10px}.hours-row label{margin:0}.hours-row input[type=checkbox]{width:auto;min-height:0}.weekly-hours-grid{max-width:760px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-medium);overflow:hidden}.weekly-hours-row{display:flex;justify-content:space-between;padding:13px 18px;border-bottom:1px solid var(--color-border)}.weekly-hours-row:last-child{border-bottom:0}.shop-public-badges{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0}.public-hours-section,.public-products-section{width:100%;padding:34px 0 0}.public-product-card h3{margin:8px 0}.public-product-card p{display:-webkit-box;-webkit-line-clamp:4;-webkit-box-orient:vertical;overflow:hidden}.btn-danger-soft{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:11px 18px;background:#fff1f2;color:#be123c;border:1px solid #fecdd3;border-radius:var(--radius-small);font-weight:700;cursor:pointer}
@media(max-width:760px){.product-admin-page,.product-form-page,.shop-settings-page{width:calc(100% - 32px);padding-top:30px}.product-admin-hero{flex-direction:column}.product-summary-grid,.product-form-grid{grid-template-columns:1fr}.hours-row{grid-template-columns:1fr 1fr}.hours-row>strong{grid-column:1/-1}.hours-next{grid-column:1/-1}.owner-product-card img,.public-product-card img{height:190px}}


/* =========================================================
   Cloudorn Global Market and Shop Branding v1.0
   ========================================================= */

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

.currency-change-confirmation {
    display: flex;
    margin-top: 18px;
    padding: 15px 17px;
    align-items: flex-start;
    gap: 11px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-small);
    font-weight: 600;
}

.currency-change-confirmation[hidden] {
    display: none;
}

.currency-change-confirmation input {
    width: auto;
    min-height: 0;
    margin-top: 5px;
}

.shop-branding-section {
    margin-bottom: 28px;
}

.settings-section-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.shop-logo-editor {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.shop-logo-preview,
.shop-status-logo,
.dashboard-shop-logo,
.admin-shop-logo,
.nearby-shop-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border: 1px solid #bfdbfe;
    font-weight: 800;
}

.shop-logo-preview {
    width: 150px;
    height: 150px;
    border-radius: 24px;
    font-size: 3rem;
}

.shop-logo-preview img,
.shop-status-logo img,
.dashboard-shop-logo img,
.admin-shop-logo img,
.nearby-shop-logo img,
.shop-profile-mark img,
.shop-listing-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.shop-logo-controls {
    display: grid;
    gap: 16px;
}

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

.shop-logo-controls input[type="file"] {
    width: 100%;
    min-height: 48px;
    padding: 10px;
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

.shop-logo-controls button {
    width: fit-content;
}

.shop-profile-mark.has-logo,
.shop-listing-mark.has-logo,
.dashboard-shop-logo.has-logo,
.admin-shop-logo.has-logo,
.nearby-shop-logo.has-logo,
.shop-status-logo.has-logo {
    background: #ffffff;
}

.shop-profile-mark {
    overflow: hidden;
}

.shop-listing-mark {
    overflow: hidden;
}

.shop-status-logo {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    border-radius: 24px;
    font-size: 2.2rem;
}

.dashboard-shop-identity {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    gap: 16px;
}

.dashboard-shop-logo {
    width: 68px;
    height: 68px;
    flex: 0 0 auto;
    border-radius: 18px;
    font-size: 1.7rem;
}

.dashboard-shop-identity .dashboard-shop-name {
    margin: 0;
}

.admin-shop-title-group {
    display: flex;
    min-width: 0;
    align-items: flex-start;
    gap: 16px;
}

.admin-shop-logo {
    width: 64px;
    height: 64px;
    flex: 0 0 auto;
    border-radius: 17px;
    font-size: 1.5rem;
}

.nearby-shop-identity {
    display: flex;
    align-items: center;
    gap: 12px;
}

.nearby-shop-identity h3 {
    margin: 0;
}

.nearby-shop-logo {
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border-radius: 14px;
    font-size: 1.25rem;
}

@media (max-width: 700px) {
    .shop-market-grid,
    .shop-logo-editor {
        grid-template-columns: 1fr;
    }

    .shop-logo-preview {
        width: 120px;
        height: 120px;
    }

    .admin-shop-title-group {
        align-items: center;
    }

    .admin-shop-logo {
        width: 54px;
        height: 54px;
    }
}

/* =========================================================
   Cloudorn Email Verification & Global Phone Security v1.0
   ========================================================= */
.account-auth-page {
    width: calc(100% - 44px);
    max-width: 980px;
    margin: 0 auto;
    padding: 56px 0 82px;
}

.account-auth-card {
    max-width: 680px;
    margin: 0 auto;
    padding: 38px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.account-auth-card-wide {
    max-width: 900px;
}

.account-auth-card h1 {
    margin-bottom: 14px;
    font-size: clamp(2rem, 5vw, 2.75rem);
}

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

.account-form-wide {
    grid-column: 1 / -1;
}

.account-auth-card input,
.account-auth-card select {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    background: #fff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.account-auth-card input:focus,
.account-auth-card select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.account-auth-card small,
.account-auth-note {
    display: block;
    margin-top: 7px;
    color: var(--color-muted);
}

.account-auth-note {
    margin-bottom: 0;
    text-align: center;
}

.account-auth-note a,
.account-auth-links a,
.account-auth-link {
    color: var(--color-primary);
    font-weight: 650;
}

.account-auth-links {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 24px;
}

.account-lock-list {
    display: grid;
    gap: 5px;
    margin: 24px 0;
    padding: 18px;
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-small);
}

.account-message-card {
    text-align: center;
}

.account-verification-state,
.verified-phone-inline {
    display: inline-flex;
    margin-left: 8px;
    padding: 3px 9px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
}

.account-verification-state.is-verified,
.verified-phone-inline,
.verified-phone-badge {
    background: var(--color-success-bg);
    color: var(--color-success-text);
    border: 1px solid var(--color-success-border);
}

.account-verification-state.is-unverified {
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fed7aa;
}

.verified-phone-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.86rem;
    font-weight: 700;
}

.admin-phone-verification-panel {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 20px 0;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.admin-phone-verification-panel p,
.admin-verification-form p {
    margin: 4px 0 0;
    font-size: 0.9rem;
}

.admin-verification-form {
    background: var(--color-primary-soft);
    border-color: #bfdbfe;
}

@media (max-width: 720px) {
    .account-auth-page {
        width: calc(100% - 28px);
        padding: 32px 0 60px;
    }

    .account-auth-card {
        padding: 25px 20px;
    }

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

    .account-form-wide {
        grid-column: auto;
    }

    .account-auth-links,
    .admin-phone-verification-panel {
        align-items: stretch;
        flex-direction: column;
    }
}

/* =========================================================
   Cart and Cash-on-Delivery Orders v1.0
   ========================================================= */

.header-cart-link {
    display: inline-flex;
    min-height: 38px;
    padding: 7px 11px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 650;
    line-height: 1;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

.header-cart-link:hover {
    color: var(--color-primary);
    border-color: #bfdbfe;
    background: var(--color-primary-soft);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.header-cart-link:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.22);
    outline-offset: 2px;
}

.header-cart-icon {
    display: block;
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-cart-text {
    line-height: 1;
}

.header-cart-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary);
    color: #fff;
    border-radius: 999px;
    font-size: 0.78rem;
    line-height: 1;
}

.commerce-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 44px 0 84px;
}

.commerce-narrow {
    max-width: 760px;
}

.commerce-hero {
    display: flex;
    margin-bottom: 30px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 22px;
}

.commerce-hero h1 {
    margin-bottom: 10px;
}

.commerce-hero p {
    max-width: 720px;
    margin-bottom: 0;
}

.commerce-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(290px, 360px);
    align-items: start;
    gap: 24px;
}

.cart-list,
.checkout-card,
.order-detail-card,
.order-summary-card,
.commerce-confirm-card,
.commerce-empty {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.cart-list,
.checkout-card,
.order-detail-card,
.commerce-confirm-card,
.commerce-empty {
    padding: 28px;
}

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

.commerce-empty h1,
.commerce-empty h2 {
    margin-bottom: 12px;
}

.commerce-confirm-card h1 {
    margin-bottom: 18px;
}

.commerce-confirm-actions {
    display: flex;
    margin-top: 26px;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.cart-shop-heading,
.order-detail-heading {
    display: flex;
    margin-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.cart-item-card {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr) auto;
    padding: 20px 0;
    align-items: center;
    gap: 20px;
    border-top: 1px solid var(--color-border);
}

.cart-item-card > img {
    width: 112px;
    height: 94px;
    object-fit: cover;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.cart-item-main h3 {
    margin-bottom: 6px;
}

.cart-item-main p {
    margin-bottom: 8px;
}

.cart-item-actions {
    display: flex;
    min-width: 180px;
    align-items: flex-end;
    flex-direction: column;
    gap: 10px;
}

.cart-quantity-form {
    display: flex;
    align-items: end;
    gap: 8px;
}

.cart-quantity-form label {
    font-size: 0.82rem;
    font-weight: 650;
}

.cart-quantity-form input,
.public-add-cart-form input {
    width: 74px;
    min-height: 42px;
    padding: 8px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

.btn-danger-small,
.btn-danger {
    background: #fff;
    color: #b91c1c;
    border: 1px solid #fecaca;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 650;
}

.btn-danger-small {
    padding: 7px 11px;
}

.btn-danger {
    min-height: 46px;
    padding: 12px 20px;
}

.btn-danger-small:hover,
.btn-danger:hover {
    background: #fef2f2;
}

.order-summary-card {
    position: sticky;
    top: 154px;
    padding: 24px;
}

.order-summary-card h2 {
    margin-bottom: 18px;
    font-size: 1.35rem;
}

.order-summary-card dl {
    display: grid;
    gap: 10px;
}

.order-summary-card dl > div,
.checkout-summary-item {
    display: flex;
    padding-bottom: 10px;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--color-border);
}

.order-summary-card dt {
    color: var(--color-muted);
}

.order-summary-card dd {
    margin: 0;
    font-weight: 650;
    text-align: right;
}

.order-grand-total {
    display: block;
    margin: 18px 0;
    color: var(--color-primary);
    font-size: 1.65rem;
}

.commerce-full-button {
    width: 100%;
    margin-top: 10px;
}

.is-disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

.checkout-card {
    display: grid;
    gap: 28px;
}

.checkout-card section {
    padding-bottom: 24px;
    border-bottom: 1px solid var(--color-border);
}

.checkout-card h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

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

.checkout-account-details > div {
    padding: 12px;
    background: var(--color-background);
    border-radius: var(--radius-small);
}

.checkout-account-details dt {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.checkout-account-details dd {
    margin: 3px 0 0;
    font-weight: 650;
}

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

.fulfillment-choice {
    display: flex;
    padding: 16px;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-medium);
    cursor: pointer;
}

.fulfillment-choice:has(input:checked) {
    border-color: var(--color-primary);
    background: var(--color-primary-soft);
}

.fulfillment-choice.is-disabled {
    cursor: not-allowed;
}

.fulfillment-choice span {
    display: grid;
    gap: 3px;
}

.fulfillment-choice small {
    color: var(--color-muted);
}

.checkout-card label,
.order-status-form label {
    display: grid;
    gap: 7px;
    font-weight: 650;
}

.checkout-card input[type="text"],
.checkout-card textarea,
.order-status-form select,
.order-status-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 11px 13px;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

.delivery-address-fields[hidden] {
    display: none;
}

.checkout-confirmation {
    padding: 18px;
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-medium);
}

.checkout-confirmation p {
    margin: 5px 0 14px;
}

.delivery-note-box,
.order-address-box {
    margin-top: 16px;
    padding: 14px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.delivery-note-box p,
.order-address-box p {
    margin: 5px 0 0;
}

.public-add-cart-form {
    display: flex;
    margin-top: 15px;
    align-items: center;
    gap: 9px;
}

.public-product-login {
    margin-top: 15px;
}

.dashboard-order-summary-inline {
    display: flex;
    margin: 14px 0;
    gap: 12px;
    flex-wrap: wrap;
}

.dashboard-order-summary-inline span {
    padding: 7px 10px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.86rem;
}

.commerce-count-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 24px;
    gap: 14px;
}

.commerce-count-grid > div {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.commerce-count-grid span {
    display: block;
    color: var(--color-muted);
}

.commerce-count-grid strong {
    display: block;
    margin-top: 4px;
    font-size: 1.7rem;
}

.order-filter-tabs {
    display: flex;
    margin-bottom: 24px;
    gap: 8px;
    flex-wrap: wrap;
}

.order-filter-tabs a {
    padding: 8px 12px;
    background: #fff;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 650;
}

.order-filter-tabs a.is-active,
.order-filter-tabs a:hover {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}

.order-list {
    display: grid;
    gap: 14px;
}

.order-list-card {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(320px, auto) auto;
    padding: 20px;
    align-items: center;
    gap: 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.order-list-card h2 {
    margin: 7px 0 4px;
    font-size: 1.25rem;
}

.order-list-card p {
    margin: 0;
}

.order-list-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(90px, 1fr));
    gap: 16px;
}

.order-list-card dt {
    color: var(--color-muted);
    font-size: 0.8rem;
}

.order-list-card dd {
    margin: 2px 0 0;
    font-weight: 650;
}

.order-status-badge {
    display: inline-flex;
    padding: 5px 9px;
    background: #f1f5f9;
    color: #334155;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 750;
}

.order-status-badge.is-pending { background: #fff7ed; color: #9a3412; }
.order-status-badge.is-accepted,
.order-status-badge.is-preparing { background: #eff6ff; color: #1d4ed8; }
.order-status-badge.is-ready_for_pickup,
.order-status-badge.is-out_for_delivery { background: #f5f3ff; color: #6d28d9; }
.order-status-badge.is-completed { background: #dcfce7; color: #166534; }
.order-status-badge.is-rejected,
.order-status-badge.is-cancelled { background: #fef2f2; color: #991b1b; }

.order-item-table {
    display: grid;
    margin-bottom: 28px;
}

.order-item-row {
    display: flex;
    padding: 15px 0;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--color-border);
}

.order-item-row > div {
    display: grid;
    gap: 3px;
}

.order-item-row span {
    color: var(--color-muted);
    font-size: 0.9rem;
}

.order-history-section,
.order-customer-section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--color-border);
}

.order-history-section h2,
.order-customer-section h2 {
    margin-bottom: 16px;
    font-size: 1.4rem;
}

.order-timeline {
    display: grid;
    padding-left: 22px;
    gap: 16px;
}

.order-timeline li {
    padding-left: 6px;
}

.order-timeline span {
    display: block;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.order-timeline p {
    margin: 4px 0 0;
}

.order-status-form {
    display: grid;
    gap: 15px;
}

.dashboard-detail-wide {
    grid-column: 1 / -1;
}

.commerce-admin-search {
    display: flex;
    margin: 0 0 24px;
    gap: 10px;
}

.commerce-admin-search input {
    min-width: 0;
    flex: 1;
    min-height: 46px;
    padding: 11px 13px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

@media (max-width: 960px) {
    .commerce-layout,
    .order-list-card {
        grid-template-columns: 1fr;
    }

    .order-summary-card {
        position: static;
    }

    .order-list-card dl {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .commerce-page {
        width: calc(100% - 28px);
        padding-top: 28px;
    }

    .commerce-hero,
    .cart-shop-heading,
    .order-detail-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-item-card {
        grid-template-columns: 86px minmax(0, 1fr);
    }

    .cart-item-card > img {
        width: 86px;
        height: 76px;
    }

    .cart-item-actions {
        grid-column: 1 / -1;
        align-items: stretch;
    }

    .cart-quantity-form,
    .public-add-cart-form,
    .commerce-admin-search {
        align-items: stretch;
        flex-direction: column;
    }

    .cart-quantity-form input,
    .public-add-cart-form input {
        width: 100%;
    }

    .fulfillment-options,
    .checkout-account-details,
    .commerce-count-grid,
    .order-list-card dl {
        grid-template-columns: 1fr;
    }

    .header-cart-text {
        display: none;
    }
}

/* =========================================================
   Services Marketplace and Service Requests v1.0
   ========================================================= */
.service-marketplace-page,
.service-detail-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 38px 0 80px;
}

.service-market-grid,
.public-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}

.service-card,
.public-service-card,
.owner-service-card,
.service-request-list-card,
.service-detail-card,
.service-request-card,
.service-form-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.service-card,
.public-service-card {
    overflow: hidden;
}

.service-card > img,
.public-service-card > img,
.owner-service-card > img,
.service-detail-image {
    display: block;
    width: 100%;
    object-fit: cover;
    background: var(--color-primary-soft);
}

.service-card > img,
.public-service-card > img {
    height: 190px;
}

.service-card-body,
.public-service-card > div {
    display: flex;
    min-height: 245px;
    padding: 22px;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.service-card-body p,
.public-service-card p {
    margin: 0;
}

.service-card-body .btn-primary,
.public-service-card .btn-primary {
    margin-top: auto;
}

.service-image-placeholder {
    display: flex;
    min-height: 150px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    font-size: 3rem;
}

.public-services-section {
    width: 100%;
    padding: 34px 0 54px;
}

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
    gap: 26px;
    align-items: start;
}

.service-detail-card,
.service-request-card,
.service-form-card {
    padding: 30px;
}

.service-detail-image {
    max-height: 440px;
    margin-bottom: 25px;
    border-radius: var(--radius-small);
}

.service-detail-price {
    display: block;
    margin: 14px 0 20px;
    color: var(--color-primary);
    font-size: 1.35rem;
}

.service-shop-link a {
    color: var(--color-primary);
    font-weight: 700;
}

.service-request-card {
    position: sticky;
    top: 170px;
}

.service-request-card select,
.service-request-card input,
.service-request-card textarea,
.service-form-card select,
.service-form-card input,
.service-form-card textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

.service-request-card textarea,
.service-form-card textarea {
    min-height: 110px;
    resize: vertical;
}

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

.service-mode-fieldset {
    display: flex;
    margin: 4px 0 24px;
    padding: 18px;
    flex-wrap: wrap;
    gap: 16px 24px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.service-mode-fieldset legend {
    padding: 0 8px;
    font-weight: 700;
}

.service-mode-fieldset label,
.service-remove-image {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.service-mode-fieldset input,
.service-remove-image input {
    width: auto;
    min-height: auto;
}

.commerce-form-actions,
.commerce-hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.owner-service-list,
.service-request-list {
    display: grid;
    gap: 18px;
}

.owner-service-card,
.service-request-list-card {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 22px;
    padding: 20px;
    align-items: center;
}

.owner-service-card > img,
.owner-service-card > .service-image-placeholder {
    width: 150px;
    height: 120px;
    min-height: 120px;
    border-radius: var(--radius-small);
}

.service-request-list-card {
    grid-template-columns: minmax(0, 1.2fr) minmax(230px, 0.8fr) auto;
}

.service-request-list-card p {
    margin: 6px 0 0;
}

.service-request-list-card dl {
    display: grid;
    gap: 8px;
}

.service-request-list-card dt {
    color: var(--color-muted);
    font-size: .8rem;
    text-transform: uppercase;
}

.service-request-status,
.service-status-badge {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #334155;
    font-size: .82rem;
    font-weight: 700;
}

.service-request-status.is-pending { background: #fef3c7; color: #92400e; }
.service-request-status.is-accepted,
.service-request-status.is-scheduled { background: #dbeafe; color: #1d4ed8; }
.service-request-status.is-in_progress { background: #ede9fe; color: #6d28d9; }
.service-request-status.is-completed,
.service-status-badge.is-active { background: var(--color-success-bg); color: var(--color-success-text); }
.service-request-status.is-rejected,
.service-request-status.is-cancelled { background: var(--color-error-bg); color: var(--color-error-text); }
.service-status-badge.is-inactive { background: #f1f5f9; color: #64748b; }

.shop-status-service-actions {
    margin-top: 24px;
    justify-content: center;
}

@media (max-width: 820px) {
    .service-detail-layout,
    .service-request-list-card,
    .owner-service-card {
        grid-template-columns: 1fr;
    }
    .service-request-card { position: static; }
    .owner-service-card > img,
    .owner-service-card > .service-image-placeholder { width: 100%; height: 190px; }
}

@media (max-width: 560px) {
    .service-form-grid,
    .service-schedule-fields { grid-template-columns: 1fr; }
    .service-detail-card,
    .service-request-card,
    .service-form-card { padding: 22px; }
}

/* =========================================================
   33. Unified Marketplace Search & Global Business Timezones
   ========================================================= */

.market-search-page {
    padding: 48px 0 72px;
}

.market-search-hero {
    margin-bottom: 24px;
}

.market-search-hero h1 {
    margin: 4px 0 10px;
    font-size: clamp(2rem, 4vw, 3.25rem);
    line-height: 1.08;
}

.market-search-hero p {
    max-width: 760px;
    margin: 0;
    color: var(--color-text-soft);
}

.market-search-form {
    padding: 22px;
    margin-bottom: 24px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

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

.market-search-primary input {
    min-height: 48px;
    padding: 12px 15px;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
}

.market-search-filters {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.market-search-filters label,
.shop-market-wide {
    display: grid;
    gap: 7px;
    color: var(--color-text);
    font-weight: 650;
}

.market-search-filters select,
.market-search-filters input,
.timezone-field-row input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    background: #fff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    color: var(--color-text);
}

.market-search-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
    margin-top: 18px;
}

.market-search-options > label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--color-text-soft);
    font-weight: 650;
}

.market-search-options input[type="checkbox"] {
    width: 17px;
    height: 17px;
    accent-color: var(--color-primary);
}

.market-location-button {
    min-height: 38px;
    padding: 8px 13px;
}

.market-clear-link {
    color: var(--color-text-soft);
    font-weight: 650;
}

.market-location-status,
.timezone-detection-status {
    display: block;
    margin: 12px 0 0;
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.market-location-status.is-error,
.timezone-detection-status.is-error {
    color: #b91c1c;
}

.market-search-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 22px;
}

.market-search-tabs a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
    color: var(--color-text-soft);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
}

.market-search-tabs a span {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    background: var(--color-background);
    border-radius: 999px;
    font-size: 0.78rem;
}

.market-search-tabs a.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.market-search-tabs a.is-active span {
    color: var(--color-primary);
    background: #fff;
}

.market-search-summary {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 18px;
}

.market-search-summary h2,
.market-search-summary p {
    margin: 0;
}

.market-search-summary p,
.market-search-summary > span {
    color: var(--color-text-soft);
}

.market-search-results {
    display: grid;
    gap: 18px;
}

.market-result-card {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}

.market-result-card:hover {
    transform: translateY(-2px);
    border-color: #bfdbfe;
    box-shadow: 0 14px 32px rgba(15, 23, 42, 0.1);
}

.market-result-media {
    display: flex;
    min-height: 190px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background:
        linear-gradient(145deg, #eff6ff, #f8fafc);
    color: var(--color-primary);
    font-size: 3rem;
    font-weight: 800;
    text-decoration: none;
}

.market-result-media img {
    width: 100%;
    height: 100%;
    min-height: 190px;
    object-fit: cover;
}

.market-result-card.is-shop .market-result-media img {
    padding: 22px;
    object-fit: contain;
}

.market-result-body {
    display: grid;
    align-content: start;
    padding: 20px 22px;
}

.market-result-meta,
.market-result-badges,
.market-result-modes,
.market-result-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
}

.market-result-meta {
    color: var(--color-text-soft);
    font-size: 0.82rem;
    font-weight: 700;
}

.market-result-type {
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.market-result-body h3 {
    margin: 7px 0 5px;
    font-size: 1.35rem;
}

.market-result-body h3 a,
.market-result-shop a,
.market-result-footer a {
    color: inherit;
    text-decoration: none;
}

.market-result-body h3 a:hover,
.market-result-shop a:hover,
.market-result-footer a:hover {
    color: var(--color-primary);
}

.market-result-shop,
.market-result-description,
.market-result-stock {
    margin: 4px 0;
    color: var(--color-text-soft);
}

.market-result-description {
    margin-top: 10px;
    line-height: 1.65;
}

.market-result-price {
    margin-top: 9px;
    color: var(--color-primary-dark);
    font-size: 1.08rem;
}

.market-result-modes {
    margin-top: 10px;
}

.market-result-modes span,
.market-distance-badge {
    padding: 5px 9px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    color: var(--color-text-soft);
    font-size: 0.78rem;
    font-weight: 700;
}

.market-result-badges {
    margin-top: 13px;
}

.market-result-footer {
    justify-content: space-between;
    margin-top: 15px;
    padding-top: 14px;
    border-top: 1px solid var(--color-border);
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.market-result-footer a {
    color: var(--color-primary);
    font-weight: 750;
}

.market-search-empty {
    margin-top: 12px;
}

.market-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.market-pagination a {
    display: inline-flex;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 700;
}

.market-pagination a:hover,
.market-pagination a.is-active {
    color: #fff;
    background: var(--color-primary);
    border-color: var(--color-primary);
}

.timezone-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: center;
}

.timezone-field-row .btn-secondary {
    min-height: 44px;
    white-space: nowrap;
}

.shop-market-wide {
    grid-column: 1 / -1;
}

@media (max-width: 900px) {
    .market-search-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .market-result-card {
        grid-template-columns: 150px minmax(0, 1fr);
    }
}

@media (max-width: 640px) {
    .market-search-page {
        padding-top: 30px;
    }

    .market-search-form {
        padding: 16px;
    }

    .market-search-primary,
    .market-search-filters,
    .timezone-field-row {
        grid-template-columns: 1fr;
    }

    .market-search-options {
        align-items: stretch;
        flex-direction: column;
    }

    .market-search-options > label {
        min-height: 36px;
    }

    .market-search-summary {
        align-items: start;
        flex-direction: column;
    }

    .market-result-card {
        grid-template-columns: 1fr;
    }

    .market-result-media,
    .market-result-media img {
        min-height: 210px;
        max-height: 260px;
    }

    .market-result-footer {
        align-items: flex-start;
        flex-direction: column;
    }
}


.public-hours-timezone {
    margin: 5px 0 0;
    color: var(--color-text-soft);
    font-size: 0.88rem;
}


/* Ratings, reviews and reports v1.0 */
.shop-rating-inline,.shop-rating-summary,.shop-rating-large{display:inline-flex;align-items:center;gap:6px;color:#92400e}.shop-rating-inline span,.shop-rating-summary .review-stars{color:#f59e0b}.shop-rating-inline small,.shop-rating-summary span{color:var(--color-muted)}.shop-rating-inline.is-new{color:var(--color-muted)}
.trust-page{--trust-gold:#f59e0b}.trust-list{display:grid;gap:18px}.trust-card,.trust-form-card,.public-review-card{padding:24px;background:#fff;border:1px solid var(--color-border);border-radius:var(--radius-medium);box-shadow:0 12px 30px rgba(15,23,42,.05)}.trust-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:14px}.trust-card h2,.trust-card h3{margin:6px 0}.review-stars{color:var(--trust-gold, #f59e0b);font-size:1.25rem;letter-spacing:2px;white-space:nowrap}.verified-transaction-badge{display:inline-flex;padding:5px 9px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.78rem;font-weight:750}.trust-status{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:.78rem;font-weight:750}.trust-status.is-published,.trust-status.is-resolved{background:#dcfce7;color:#166534}.trust-status.is-hidden,.trust-status.is-dismissed{background:#f1f5f9;color:#475569}.trust-status.is-pending{background:#fff7ed;color:#9a3412}.trust-status.is-investigating{background:#eff6ff;color:#1d4ed8}.owner-response-box{margin-top:16px;padding:16px;background:#f8fafc;border-left:4px solid var(--color-primary);border-radius:8px}.owner-response-box p{margin-bottom:0}.owner-response-form,.moderation-form,.trust-form-card{display:grid;gap:16px}.owner-response-form textarea,.moderation-form textarea,.trust-form-card textarea,.trust-form-card select{width:100%}.star-rating-field{border:0;padding:0;margin:0}.star-rating-input{display:inline-flex;flex-direction:row-reverse;justify-content:flex-end;gap:4px}.star-rating-input input{position:absolute;opacity:0}.star-rating-input label{cursor:pointer;color:#cbd5e1;font-size:2.25rem;line-height:1;transition:.15s}.star-rating-input label:hover,.star-rating-input label:hover~label,.star-rating-input input:checked~label{color:#f59e0b}.verified-review-callout{display:flex;align-items:center;justify-content:space-between;gap:20px;margin:24px 0;padding:20px;background:#fffbeb;border:1px solid #fde68a;border-radius:12px}.verified-review-callout h2{margin:7px 0 4px}.verified-review-callout p{margin:0}.shop-reviews-section{margin-top:38px}.shop-review-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.public-review-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.public-review-card p{color:var(--color-text-soft)}.commerce-empty.compact{padding:28px}.admin-module-tabs{flex-wrap:wrap}
@media(max-width:760px){.trust-card-heading,.verified-review-callout,.section-heading-row{align-items:stretch;flex-direction:column}.public-review-grid{grid-template-columns:1fr}.review-stars{font-size:1.1rem}.star-rating-input label{font-size:2rem}}

/* Cloudorn Subscription Lifecycle v1.0 */
.subscription-page,
.admin-subscriptions-page { padding-top: 42px; padding-bottom: 70px; }
.subscription-hero,
.subscription-panel,
.admin-subscription-card,
.subscription-pending-card,
.subscription-request-box {
    background: #fff;
    border: 1px solid #dbe4f0;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}
.subscription-hero { padding: 28px; display: grid; grid-template-columns: minmax(0,1fr) minmax(360px,1.3fr); gap: 28px; margin: 24px 0; }
.subscription-hero h2 { margin: 12px 0 4px; font-size: clamp(1.7rem,3vw,2.5rem); }
.subscription-state-badge { display: inline-flex; align-items: center; min-height: 32px; padding: 6px 12px; border-radius: 999px; background: #eaf2ff; color: #1659d6; font-size: .82rem; font-weight: 800; }
.subscription-state-trial_active,
.subscription-state-paid_active { background: #dcfce7; color: #166534; }
.subscription-state-grace { background: #fff7ed; color: #9a3412; }
.subscription-state-cleanup_due,
.subscription-state-cancelled { background: #fee2e2; color: #991b1b; }
.subscription-date-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.subscription-date-grid > div { padding: 16px; border: 1px solid #dbe4f0; border-radius: 13px; background: #f8fbff; }
.subscription-date-grid span { display: block; color: #64748b; font-size: .82rem; margin-bottom: 7px; }
.subscription-date-grid strong { display: block; color: #14213d; }
.subscription-panel { padding: 26px; margin-top: 22px; }
.subscription-panel h2 { margin-top: 4px; }
.subscription-renewal-form { display: grid; gap: 16px; max-width: 780px; }
.subscription-renewal-form label,
.subscription-inline-form { display: grid; gap: 7px; font-weight: 700; }
.subscription-renewal-form label span { color: #64748b; font-weight: 500; }
.subscription-renewal-form input,
.subscription-renewal-form select,
.subscription-renewal-form textarea,
.subscription-inline-form input,
.subscription-filter-form input,
.subscription-filter-form select {
    width: 100%; border: 1px solid #cbd8e8; border-radius: 10px; padding: 12px 13px; background: #fff; color: #14213d;
}
.subscription-pending-card { padding: 20px; background: #f8fbff; }
.subscription-counts { margin: 22px 0; }
.subscription-filter-form { display: grid; grid-template-columns: 220px minmax(260px,1fr) auto auto; gap: 12px; align-items: end; padding: 18px; background: #fff; border: 1px solid #dbe4f0; border-radius: 16px; }
.subscription-filter-form label { display: grid; gap: 7px; font-weight: 700; }
.admin-subscription-list { display: grid; gap: 18px; margin-top: 22px; }
.admin-subscription-card { padding: 24px; }
.admin-subscription-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.admin-subscription-card-head h2 { margin: 4px 0; }
.subscription-admin-details { margin: 20px 0; }
.subscription-request-box { padding: 20px; background: #f8fbff; box-shadow: none; }
.admin-subscription-actions { display: grid; gap: 14px; margin-top: 14px; }
.subscription-inline-form { grid-template-columns: minmax(180px,1fr) minmax(220px,1.4fr) auto; align-items: end; }
.subscription-direct-renewal { margin-top: 18px; border-top: 1px solid #e2e8f0; padding-top: 16px; }
.subscription-direct-renewal summary { cursor: pointer; color: #1659d6; font-weight: 800; margin-bottom: 16px; }
.responsive-table { overflow-x: auto; }
.responsive-table table { width: 100%; border-collapse: collapse; min-width: 760px; }
.responsive-table th,
.responsive-table td { padding: 13px; text-align: left; border-bottom: 1px solid #e2e8f0; }
.responsive-table th { color: #52657d; font-size: .84rem; }
.shop-lifecycle-danger { border-color: #fecaca; background: #fff7f7; }
@media (max-width: 860px) {
    .subscription-hero { grid-template-columns: 1fr; }
    .subscription-filter-form { grid-template-columns: 1fr; }
    .subscription-inline-form { grid-template-columns: 1fr; }
    .admin-subscription-card-head { flex-direction: column; }
}
@media (max-width: 560px) {
    .subscription-date-grid { grid-template-columns: 1fr; }
    .subscription-hero,.subscription-panel,.admin-subscription-card { padding: 18px; border-radius: 14px; }
}


/* =========================================================
   Cloudorn Ephemeral Customer-to-Shop Chat v1.0
   ========================================================= */
.header-chat-link {
    display: inline-flex;
    min-height: 40px;
    padding: 8px 11px;
    align-items: center;
    gap: 6px;
    color: var(--color-text-soft);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    font-weight: 650;
    text-decoration: none;
}
.header-chat-link:hover { color: var(--color-primary); border-color: #bfdbfe; background: var(--color-primary-soft); }
.chat-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 48px 0 84px;
}
.chat-page-hero {
    display: flex;
    margin-bottom: 28px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}
.chat-page-hero h1 { margin: 6px 0 10px; }
.chat-page-hero p:last-child { margin-bottom: 0; }
.chat-safety-notice {
    margin: 20px 0;
    padding: 18px 20px;
    background: #fff7ed;
    color: #9a3412;
    border: 1px solid #fdba74;
    border-radius: var(--radius-medium);
}
.chat-safety-notice.compact { margin-top: 0; }
.chat-safety-notice p { margin: 6px 0 0; color: #9a3412; }
.chat-start-card,
.chat-room,
.chat-owner-presence-card,
.chat-owner-column,
.chat-session-card,
.chat-empty-state {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}
.chat-start-card { max-width: 820px; padding: 32px; }
.chat-start-card h2 { margin: 18px 0 10px; }
.chat-rule-list { margin: 20px 0 26px 22px; color: var(--color-text-soft); }
.chat-rule-list li { margin: 8px 0; }
.chat-inline-message { margin: 20px 0 0; font-weight: 650; }
.chat-presence-badge,
.chat-status-badge {
    display: inline-flex;
    padding: 7px 12px;
    align-items: center;
    border-radius: 999px;
    font-size: .82rem;
    font-weight: 800;
}
.chat-presence-badge.is-online,
.chat-presence-badge.is-online,
.chat-presence-badge.is-online,
.chat-status-badge.is-active,
.chat-status-badge.is-active { background: var(--color-success-bg); color: var(--color-success-text); }
.chat-presence-badge.is-offline,
.chat-presence-badge.is-offline,
.chat-presence-badge.is-unavailable,
.chat-status-badge.is-ended { background: var(--color-error-bg); color: var(--color-error-text); }
.chat-presence-badge.is-busy,
.chat-status-badge.is-waiting { background: #fef3c7; color: #92400e; }
.chat-presence-badge.is-owner { background: var(--color-primary-soft); color: var(--color-primary); }
.chat-session-list { display: grid; gap: 16px; }
.chat-session-card,
.chat-owner-session-card {
    display: flex;
    padding: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}
.chat-session-card h2,
.chat-owner-session-card h3 { margin: 10px 0 5px; }
.chat-session-card p,
.chat-owner-session-card p { margin: 0; }
.chat-empty-state { padding: 46px 30px; text-align: center; }
.chat-empty-state.compact { padding: 24px; box-shadow: none; }
.chat-empty-state p:last-child { margin-bottom: 0; }
.chat-card-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chat-card-actions form { margin: 0; }
.chat-card-actions.centered { justify-content: center; }
.chat-owner-presence-card {
    display: flex;
    padding: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}
.chat-owner-presence-card h2 { margin: 12px 0 7px; }
.chat-owner-presence-card p { margin: 0; }
.chat-owner-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 24px; }
.chat-owner-column { padding: 24px; }
.chat-owner-list { display: grid; gap: 12px; }
.chat-owner-session-card { padding: 18px; background: var(--color-background); border: 1px solid var(--color-border); border-radius: var(--radius-medium); }
.chat-room { overflow: hidden; }
.chat-room-toolbar {
    display: flex;
    padding: 18px 22px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    background: #f8fbff;
    border-bottom: 1px solid var(--color-border);
}
.chat-expiry-text { display: inline-block; margin-left: 10px; color: var(--color-muted); font-size: .82rem; }
.chat-waiting-panel { padding: 38px 24px; text-align: center; border-bottom: 1px solid var(--color-border); }
.chat-waiting-panel h2 { margin: 12px 0 7px; }
.chat-waiting-panel p { margin: 0; }
.chat-waiting-spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto;
    border: 4px solid #dbeafe;
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: cloudorn-chat-spin 1s linear infinite;
}
@keyframes cloudorn-chat-spin { to { transform: rotate(360deg); } }
.chat-message-list {
    min-height: 330px;
    max-height: 520px;
    padding: 24px;
    overflow-y: auto;
    background: #f8fafc;
}
.chat-message { width: fit-content; max-width: min(76%, 720px); margin: 0 0 14px; padding: 13px 15px; border-radius: 16px; }
.chat-message.is-self { margin-left: auto; background: #dbeafe; border-bottom-right-radius: 5px; }
.chat-message.is-other { margin-right: auto; background: #ffffff; border: 1px solid var(--color-border); border-bottom-left-radius: 5px; }
.chat-message-meta { display: flex; margin-bottom: 5px; align-items: center; justify-content: space-between; gap: 18px; font-size: .78rem; }
.chat-message-meta time { color: var(--color-muted); }
.chat-message p { margin: 0; color: var(--color-text); white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-compose { padding: 18px 22px; background: #ffffff; border-top: 1px solid var(--color-border); }
.chat-compose[hidden] { display: none; }
.chat-compose textarea { width: 100%; padding: 12px 14px; resize: vertical; border: 1px solid var(--color-border-strong); border-radius: var(--radius-small); outline: none; }
.chat-compose textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .13); }
.chat-compose-footer { display: flex; min-height: 46px; margin-top: 10px; align-items: center; justify-content: space-between; gap: 16px; }
.chat-compose-footer span { color: var(--color-error-text); font-size: .88rem; }
.shop-chat-section { margin-top: 32px; }
.shop-chat-callout {
    display: flex;
    padding: 26px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}
.shop-chat-callout.is-online { background: linear-gradient(135deg, #ecfdf5, #ffffff); border-color: #bbf7d0; }
.shop-chat-callout.is-busy { background: #fffbeb; border-color: #fde68a; }
.shop-chat-callout.is-offline,
.shop-chat-callout.is-unavailable { background: #fffafa; border-color: #fecaca; }
.shop-chat-callout h2 { margin: 5px 0 7px; }
.shop-chat-callout p { margin: 0 0 6px; }
.shop-chat-callout small { color: var(--color-muted); }
.chat-ended-state { max-width: 760px; margin: 30px auto; }
@media (max-width: 760px) {
    .chat-page { width: calc(100% - 32px); padding-top: 32px; padding-bottom: 60px; }
    .chat-page-hero,
    .chat-owner-presence-card,
    .shop-chat-callout,
    .chat-session-card,
    .chat-owner-session-card,
    .chat-room-toolbar { align-items: stretch; flex-direction: column; }
    .chat-owner-grid { grid-template-columns: 1fr; }
    .chat-message { max-width: 88%; }
    .chat-card-actions { width: 100%; }
    .chat-card-actions form,
    .chat-card-actions a,
    .chat-card-actions button { width: 100%; }
    .chat-compose-footer { align-items: stretch; flex-direction: column; }
    .chat-compose-footer button { width: 100%; }
    .header-chat-link span:last-child { display: none; }
}

/* =========================================================
   Cloudorn Sticky Shop Chat Launcher v1.0.1
   ========================================================= */
.shop-chat-compact {
    display: flex;
    margin: 18px 0;
    padding: 13px 14px;
    align-items: center;
    gap: 11px;
    background: #f8fbff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}
.shop-chat-compact > span:last-child { display: grid; gap: 1px; }
.shop-chat-compact strong { color: var(--color-text); }
.shop-chat-compact small { color: var(--color-text-soft); font-size: .83rem; }
.shop-chat-status-dot,
.shop-chat-launcher-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    background: #94a3b8;
    border: 2px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 0 0 2px #cbd5e1;
}
.shop-chat-compact.is-online .shop-chat-status-dot,
.shop-chat-compact.is-active .shop-chat-status-dot,
.shop-chat-launcher.is-online .shop-chat-launcher-dot,
.shop-chat-launcher.is-active .shop-chat-launcher-dot {
    background: #16a34a;
    box-shadow: 0 0 0 2px #bbf7d0;
}
.shop-chat-compact.is-waiting .shop-chat-status-dot,
.shop-chat-compact.is-busy .shop-chat-status-dot,
.shop-chat-launcher.is-waiting .shop-chat-launcher-dot,
.shop-chat-launcher.is-busy .shop-chat-launcher-dot {
    background: #f59e0b;
    box-shadow: 0 0 0 2px #fde68a;
}
.shop-chat-compact.is-owner .shop-chat-status-dot,
.shop-chat-launcher.is-owner .shop-chat-launcher-dot {
    background: var(--color-primary);
    box-shadow: 0 0 0 2px #bfdbfe;
}
.shop-chat-launcher {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 90;
    display: flex;
    align-items: flex-end;
    flex-direction: column;
    font-family: inherit;
}
.shop-chat-launcher-button {
    position: relative;
    display: inline-flex;
    min-height: 56px;
    padding: 10px 16px 10px 12px;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    box-shadow: 0 14px 34px rgba(30, 64, 175, .28), 0 4px 12px rgba(15, 23, 42, .14);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.shop-chat-launcher-button:hover,
.shop-chat-launcher-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(30, 64, 175, .34), 0 6px 16px rgba(15, 23, 42, .16);
}
.shop-chat-launcher-button:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .85);
    outline-offset: 3px;
}
.shop-chat-launcher.is-offline .shop-chat-launcher-button,
.shop-chat-launcher.is-unavailable .shop-chat-launcher-button {
    color: #334155;
    background: #ffffff;
    border-color: #cbd5e1;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .15);
}
.shop-chat-launcher.is-busy .shop-chat-launcher-button,
.shop-chat-launcher.is-waiting .shop-chat-launcher-button {
    color: #78350f;
    background: linear-gradient(135deg, #fffbeb, #fef3c7);
    border-color: #fcd34d;
}
.shop-chat-launcher.is-active .shop-chat-launcher-button {
    background: linear-gradient(135deg, #15803d, #166534);
}
.shop-chat-launcher.is-owner .shop-chat-launcher-button {
    background: linear-gradient(135deg, #334155, #1e293b);
}
.shop-chat-launcher-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: currentColor;
    background: rgba(255, 255, 255, .16);
    border-radius: 50%;
}
.shop-chat-launcher.is-offline .shop-chat-launcher-icon,
.shop-chat-launcher.is-unavailable .shop-chat-launcher-icon,
.shop-chat-launcher.is-busy .shop-chat-launcher-icon,
.shop-chat-launcher.is-waiting .shop-chat-launcher-icon {
    background: rgba(37, 99, 235, .08);
}
.shop-chat-launcher-icon svg,
.shop-chat-panel-icon svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.shop-chat-launcher-icon svg path:last-child { stroke-width: 2.4; }
.shop-chat-launcher-text { white-space: nowrap; }
.shop-chat-launcher-dot {
    width: 11px;
    height: 11px;
    margin-left: 1px;
}
.shop-chat-launcher-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 14px);
    width: min(390px, calc(100vw - 32px));
    padding: 24px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 20px;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
    transform-origin: bottom right;
    animation: cloudorn-chat-launcher-in .18s ease-out;
}
.shop-chat-launcher-panel[hidden] { display: none; }
@keyframes cloudorn-chat-launcher-in {
    from { opacity: 0; transform: translateY(8px) scale(.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.shop-chat-launcher-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    color: #64748b;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.35rem;
    line-height: 1;
}
.shop-chat-launcher-close:hover,
.shop-chat-launcher-close:focus-visible { color: var(--color-primary); background: var(--color-primary-soft); }
.shop-chat-launcher-panel-heading {
    display: flex;
    padding-right: 30px;
    align-items: center;
    gap: 13px;
}
.shop-chat-launcher-panel-heading h2 { margin: 3px 0 0; font-size: 1.28rem; }
.shop-chat-launcher-panel-heading .dashboard-eyebrow { margin: 0; }
.shop-chat-panel-icon {
    display: grid;
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: 14px;
}
.shop-chat-launcher-panel > p { margin: 17px 0 14px; color: var(--color-text-soft); }
.shop-chat-launcher-privacy {
    display: grid;
    margin-bottom: 18px;
    padding: 13px 14px;
    gap: 3px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
}
.shop-chat-launcher-privacy span { font-size: .82rem; line-height: 1.5; }
.shop-chat-launcher-action { width: 100%; justify-content: center; text-align: center; }
.shop-chat-launcher-unavailable {
    display: block;
    padding: 12px 13px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    font-size: .86rem;
    text-align: center;
}
@media (prefers-reduced-motion: reduce) {
    .shop-chat-launcher-button,
    .shop-chat-launcher-panel { animation: none; transition: none; }
}
@media (max-width: 640px) {
    .shop-chat-launcher { right: 14px; bottom: 14px; }
    .shop-chat-launcher-button {
        width: 58px;
        height: 58px;
        min-height: 58px;
        padding: 9px;
        justify-content: center;
    }
    .shop-chat-launcher-icon { width: 40px; height: 40px; }
    .shop-chat-launcher-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
    .shop-chat-launcher-dot { position: absolute; top: 1px; right: 1px; }
    .shop-chat-launcher-panel {
        position: fixed;
        right: 12px;
        bottom: 84px;
        left: 12px;
        width: auto;
        max-height: calc(100vh - 108px);
        overflow-y: auto;
        border-radius: 18px;
    }
}



/* =========================================================
   Cloudorn Navigation, Footer & Public Pages v1.0
   ========================================================= */

.site-footer .footer-shell {
    display: grid;
    grid-template-columns: minmax(240px, 1.5fr) repeat(4, minmax(130px, 1fr));
    gap: 42px;
    padding-top: 52px;
    padding-bottom: 36px;
    color: var(--color-text-soft);
    text-align: left;
}

.footer-brand {
    max-width: 330px;
}

.footer-logo {
    display: inline-flex;
    margin-bottom: 14px;
    color: var(--color-primary);
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-decoration: none;
}

.footer-brand p {
    margin-bottom: 8px;
    color: var(--color-text);
    font-weight: 700;
}

.footer-brand small {
    display: block;
    color: var(--color-muted);
    line-height: 1.7;
}

.footer-column {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
}

.footer-column h2 {
    margin: 0 0 5px;
    color: var(--color-text);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.footer-column a {
    color: var(--color-muted);
    font-size: 0.94rem;
    line-height: 1.5;
    text-decoration: none;
}

.footer-column a:hover,
.footer-column a:focus-visible {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 4px;
}

.site-footer .footer-bottom {
    display: flex;
    min-height: 72px;
    padding-top: 20px;
    padding-bottom: 20px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-top: 1px solid var(--color-border);
    color: var(--color-muted);
    font-size: 0.88rem;
    text-align: left;
}

.site-footer .footer-bottom p {
    margin: 0;
    color: inherit;
}

.info-page {
    padding: 42px 0 76px;
}

.info-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    color: var(--color-muted);
    font-size: 0.92rem;
}

.info-breadcrumb a {
    color: var(--color-text-soft);
}

.info-breadcrumb a:hover {
    color: var(--color-primary);
}

.info-hero {
    max-width: 900px;
    padding: 36px 0 8px;
}

.info-hero h1 {
    max-width: 860px;
    margin: 9px 0 14px;
    color: var(--color-text);
    font-size: clamp(2.25rem, 5vw, 4.2rem);
    line-height: 1.05;
    letter-spacing: -0.045em;
}

.info-hero > p:not(.effective-date) {
    max-width: 760px;
    color: var(--color-text-soft);
    font-size: 1.08rem;
    line-height: 1.8;
}

.effective-date {
    margin-top: 18px;
    color: var(--color-muted);
    font-size: 0.94rem;
    font-weight: 700;
}

.info-grid {
    display: grid;
    gap: 22px;
}

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

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

.info-card,
.pricing-card,
.info-audience,
.legal-content,
.info-notice,
.info-warning {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.info-card,
.pricing-card {
    padding: 30px;
}

.info-card h2,
.info-card h3,
.pricing-card h2 {
    margin-top: 0;
    color: var(--color-text);
}

.info-card p:last-child {
    margin-bottom: 0;
}

.info-card-wide {
    width: 100%;
}

.info-card blockquote {
    margin: 24px 0 0;
    padding: 20px 22px;
    background: var(--color-primary-soft);
    color: var(--color-text);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius-small);
    font-size: 1.03rem;
    font-weight: 650;
    line-height: 1.7;
}

.info-values {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

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

.info-audience {
    display: grid;
    grid-template-columns: 86px 1fr;
    gap: 24px;
    padding: 32px;
}

.info-number {
    display: inline-flex;
    width: 64px;
    height: 64px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 50%;
    font-weight: 850;
}

.info-steps,
.info-checklist {
    margin: 18px 0 0;
    padding-left: 22px;
}

.info-steps li,
.info-checklist li {
    margin: 0 0 12px;
    color: var(--color-text-soft);
    line-height: 1.7;
}

.info-notice,
.info-warning {
    padding: 20px 24px;
    line-height: 1.7;
}

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

.info-warning {
    background: #fff7ed;
    border-color: #fed7aa;
    color: #9a3412;
}

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

.pricing-card {
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

.pricing-card-featured {
    border-color: var(--color-primary);
    box-shadow: 0 18px 45px rgba(37, 99, 235, 0.14);
}

.pricing-label {
    color: var(--color-primary);
    font-size: 0.78rem;
    font-weight: 850;
    letter-spacing: 0.08em;
}

.pricing-price {
    display: flex;
    margin: 18px 0 4px;
    align-items: baseline;
    gap: 10px;
}

.pricing-price strong {
    color: var(--color-text);
    font-size: 2.3rem;
    letter-spacing: -0.04em;
}

.pricing-price span {
    color: var(--color-muted);
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
    margin-top: auto;
}

.info-fineprint {
    color: var(--color-muted);
    font-size: 0.9rem;
    line-height: 1.7;
}

.info-link {
    color: var(--color-primary);
    font-weight: 700;
}

.legal-content {
    padding: clamp(26px, 5vw, 52px);
}

.legal-content section {
    padding: 0 0 28px;
    border-bottom: 1px solid var(--color-border);
}

.legal-content section + section {
    padding-top: 28px;
}

.legal-content section:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.legal-content h2 {
    margin: 0 0 12px;
    color: var(--color-text);
    font-size: 1.35rem;
    line-height: 1.35;
}

.legal-content p,
.legal-content li {
    color: var(--color-text-soft);
    line-height: 1.8;
}

.legal-content a {
    color: var(--color-primary);
}

@media (max-width: 1050px) {
    .footer-shell {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    .footer-shell,
    .info-grid-two,
    .info-grid-three,
    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .site-footer .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
        gap: 8px;
    }

    .info-page {
        padding-top: 24px;
    }

    .info-hero {
        padding-top: 22px;
    }

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

@media (max-width: 460px) {
    .info-card,
    .pricing-card,
    .info-audience,
    .legal-content {
        padding: 22px 18px;
    }

    .info-actions .btn-primary,
    .info-actions .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   Cloudorn Sticky Shop Chat Mobile Viewport Hotfix v1.0.2
   Keeps the launcher attached to the visible mobile viewport.
   ========================================================= */
.shop-chat-launcher.is-viewport-mounted {
    position: fixed !important;
    right: 24px !important;
    bottom: 24px !important;
    left: auto !important;
    top: auto !important;
    width: max-content;
    max-width: calc(100vw - 32px);
    margin: 0 !important;
    z-index: 2147483000;
    visibility: visible;
    opacity: 1;
    pointer-events: none;
}

.shop-chat-launcher.is-viewport-mounted > * {
    pointer-events: auto;
}

.shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-button {
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
}

@media (max-width: 640px) {
    .shop-chat-launcher.is-viewport-mounted {
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        max-width: calc(100vw - 24px - env(safe-area-inset-left, 0px) - env(safe-area-inset-right, 0px));
    }

    .shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-button {
        width: auto;
        min-width: 92px;
        height: 56px;
        min-height: 56px;
        padding: 8px 14px 8px 9px;
        gap: 8px;
    }

    .shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-icon {
        width: 38px;
        height: 38px;
    }

    .shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-button::after {
        content: "Chat";
        white-space: nowrap;
        font-size: .88rem;
        font-weight: 800;
    }

    .shop-chat-launcher.is-viewport-mounted.is-waiting .shop-chat-launcher-button::after {
        content: "Waiting";
    }

    .shop-chat-launcher.is-viewport-mounted.is-active .shop-chat-launcher-button::after {
        content: "Open chat";
    }

    .shop-chat-launcher.is-viewport-mounted.is-owner .shop-chat-launcher-button::after {
        content: "Live chats";
    }

    .shop-chat-launcher.is-viewport-mounted.is-busy .shop-chat-launcher-button::after {
        content: "Queue full";
    }

    .shop-chat-launcher.is-viewport-mounted.is-offline .shop-chat-launcher-button::after {
        content: "Offline";
    }

    .shop-chat-launcher.is-viewport-mounted.is-unavailable .shop-chat-launcher-button::after {
        content: "Unavailable";
    }

    .shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-panel {
        position: fixed !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        bottom: calc(82px + env(safe-area-inset-bottom, 0px)) !important;
        left: calc(12px + env(safe-area-inset-left, 0px)) !important;
        top: auto !important;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 108px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        overflow-y: auto;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }
}

@supports (height: 100dvh) {
    @media (max-width: 640px) {
        .shop-chat-launcher.is-viewport-mounted .shop-chat-launcher-panel {
            max-height: calc(100dvh - 108px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
        }
    }
}

/* =========================================================
   Cloudorn Mobile Width + Sticky Chat Correction v1.0.3
   Fixes footer selector specificity and page-wide horizontal overflow.
   ========================================================= */
html,
body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

@supports (overflow: clip) {
    html,
    body {
        overflow-x: clip;
    }
}

.site-footer,
.site-footer .container,
.site-footer .footer-shell,
.site-footer .footer-column,
.site-footer .footer-brand {
    min-width: 0;
    max-width: 100%;
}

.site-footer .footer-column a,
.site-footer .footer-brand small,
.site-footer .footer-brand p {
    overflow-wrap: anywhere;
}

@media (max-width: 1050px) {
    .site-footer .footer-shell {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .site-footer .footer-brand {
        grid-column: 1 / -1;
        max-width: 620px;
    }
}

@media (max-width: 760px) {
    .site-footer .footer-shell {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        width: 100%;
        padding-top: 38px;
        padding-bottom: 28px;
    }

    .site-footer .footer-brand {
        grid-column: auto;
        width: 100%;
        max-width: none;
    }

    .site-footer .footer-column {
        width: 100%;
    }

    .shop-chat-launcher.is-viewport-mounted {
        position: fixed !important;
        right: calc(12px + env(safe-area-inset-right, 0px)) !important;
        bottom: calc(14px + env(safe-area-inset-bottom, 0px)) !important;
        left: auto !important;
        max-width: calc(100% - 24px) !important;
        transform: translateZ(0);
    }
}

/* =========================================================
   Cloudorn Cookie Consent Banner v1.0
   ========================================================= */

.cookie-consent[hidden] {
    display: none !important;
}

.cookie-consent {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2147483100;
    padding:
        18px
        max(18px, env(safe-area-inset-right, 0px))
        max(18px, env(safe-area-inset-bottom, 0px))
        max(18px, env(safe-area-inset-left, 0px));
    background: rgba(15, 23, 42, 0.82);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.cookie-consent__content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 20px 22px;
    align-items: center;
    gap: 24px;
    background: var(--color-surface);
    border: 1px solid rgba(203, 213, 225, 0.94);
    border-radius: var(--radius-large);
    box-shadow:
        0 24px 70px rgba(15, 23, 42, 0.3),
        0 8px 24px rgba(15, 23, 42, 0.14);
}

.cookie-consent__text {
    min-width: 0;
}

.cookie-consent__text h2 {
    margin: 0 0 7px;
    font-size: 1.12rem;
    line-height: 1.3;
}

.cookie-consent__text p {
    max-width: 820px;
    margin: 0;
    color: var(--color-text-soft);
    font-size: 0.92rem;
    line-height: 1.65;
}

.cookie-consent__text a {
    color: var(--color-primary);
    font-weight: 700;
    text-underline-offset: 3px;
}

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

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.cookie-consent__button {
    display: inline-flex;
    min-height: 44px;
    padding: 10px 17px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: var(--radius-small);
    cursor: pointer;
    font: inherit;
    font-size: 0.9rem;
    font-weight: 750;
    line-height: 1.2;
    white-space: nowrap;
    transition:
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.cookie-consent__button:hover {
    transform: translateY(-1px);
}

.cookie-consent__button:focus-visible,
.cookie-consent__text a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.26);
    outline-offset: 3px;
}

.cookie-consent__button--primary {
    background: var(--color-primary);
    color: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.2);
}

.cookie-consent__button--primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.cookie-consent__button--secondary {
    background: #ffffff;
    color: var(--color-text);
    border-color: var(--color-border-strong);
}

.cookie-consent__button--secondary:hover {
    background: var(--color-background);
    border-color: #94a3b8;
}

@media (max-width: 820px) {
    .cookie-consent__content {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .cookie-consent__actions {
        justify-content: flex-start;
    }
}

@media (max-width: 560px) {
    .cookie-consent {
        padding:
            10px
            max(10px, env(safe-area-inset-right, 0px))
            max(10px, env(safe-area-inset-bottom, 0px))
            max(10px, env(safe-area-inset-left, 0px));
    }

    .cookie-consent__content {
        padding: 17px;
        gap: 14px;
        border-radius: var(--radius-medium);
    }

    .cookie-consent__text h2 {
        font-size: 1.02rem;
    }

    .cookie-consent__text p {
        font-size: 0.86rem;
        line-height: 1.55;
    }

    .cookie-consent__actions {
        width: 100%;
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .cookie-consent__button {
        width: 100%;
        min-height: 46px;
        white-space: normal;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cookie-consent__button {
        transition: none;
    }

    .cookie-consent__button:hover {
        transform: none;
    }
}
/* Compact product cards on public shop pages */
.public-products-section .public-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    gap: 20px;
    justify-content: start;
    align-items: start;
}

.public-products-section .public-product-card {
    width: 100%;
    max-width: 300px;
    min-width: 0;
    overflow: hidden;
}

.public-products-section .public-product-card > img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.public-products-section .public-product-card > div {
    padding: 16px;
}

/* Keep cards comfortable on mobile */
@media (max-width: 699px) {
    .public-products-section .public-product-grid {
        grid-template-columns: 1fr;
    }

    .public-products-section .public-product-card {
        max-width: none;
    }

    .public-products-section .public-product-card > img {
        height: 200px;
    }
}
/* Compact service cards on public shop pages */
.public-services-section .public-service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 340px));
    gap: 20px;
    justify-content: start;
    align-items: stretch;
}

.public-services-section .public-service-card {
    width: 100%;
    max-width: 340px;
    min-width: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.public-services-section .public-service-card > img {
    display: block;
    width: 100%;
    height: 190px;
    object-fit: cover;
}

.public-services-section .public-service-card > div {
    flex: 1;
    min-height: 220px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.public-services-section .public-service-card h3 {
    margin: 0;
}

.public-services-section .public-service-card p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.public-services-section .public-service-card > div > a {
    margin-top: auto;
}

/* One readable full-width card on small screens */
@media (max-width: 699px) {
    .public-services-section .public-service-grid {
        grid-template-columns: 1fr;
    }

    .public-services-section .public-service-card {
        max-width: none;
    }

    .public-services-section .public-service-card > img {
        height: 200px;
    }

    .public-services-section .public-service-card > div {
        min-height: 0;
    }
}

/* =========================================================
   Cloudorn Subscription History Approval Details v1.0
   ========================================================= */

.subscription-history-table {
    min-width: 820px;
}

.subscription-record-row td {
    border-bottom: 0;
}

.subscription-record-detail-row td {
    padding-top: 0;
    background: #fbfdff;
    border-bottom: 1px solid #e2e8f0;
}

.subscription-record-details {
    width: 100%;
}

.subscription-record-details summary {
    display: inline-flex;
    min-height: 38px;
    margin-left: auto;
    padding: 8px 12px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--color-primary);
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-small);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 750;
    list-style: none;
    transition:
        background-color 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease;
}

.subscription-record-details summary::-webkit-details-marker {
    display: none;
}

.subscription-record-details summary::before {
    content: "+";
    font-size: 1rem;
    line-height: 1;
}

.subscription-record-details[open] summary::before {
    content: "−";
}

.subscription-record-details summary:hover,
.subscription-record-details summary:focus-visible {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border-color: #93c5fd;
}

.subscription-record-details summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.subscription-record-details-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.subscription-record-details-grid > div {
    min-width: 0;
    padding: 14px 16px;
    border-right: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.subscription-record-details-grid > div:nth-child(3) {
    border-right: 0;
}

.subscription-record-details-grid dt {
    margin-bottom: 4px;
    color: var(--color-muted);
    font-size: 0.78rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.subscription-record-details-grid dd {
    margin: 0;
    color: var(--color-text);
    overflow-wrap: anywhere;
}

.subscription-record-details-grid .subscription-record-note {
    grid-column: 1 / -1;
    border-right: 0;
    border-bottom: 0;
}

.subscription-record-note dd {
    white-space: normal;
    line-height: 1.55;
}

@media (max-width: 700px) {
    .subscription-record-details summary {
        margin-left: 0;
    }

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

    .subscription-record-details-grid > div,
    .subscription-record-details-grid > div:nth-child(3) {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .subscription-record-details-grid .subscription-record-note {
        grid-column: auto;
        border-bottom: 0;
    }
}

/* =========================================================
   Cloudorn In-App Notification Centre v1.0
   ========================================================= */

.header-notification-menu {
    position: relative;
    flex: 0 0 auto;
}

.header-notification-menu > summary {
    list-style: none;
}

.header-notification-menu > summary::-webkit-details-marker {
    display: none;
}

.header-notification-toggle {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    padding: 8px 11px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--color-text-soft);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 650;
    line-height: 1;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.header-notification-toggle:hover,
.header-notification-toggle:focus-visible,
.header-notification-menu[open] .header-notification-toggle {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-color: #bfdbfe;
}

.header-notification-toggle:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.header-notification-icon {
    display: block;
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.header-notification-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    border-radius: 999px;
    font-size: 0.75rem;
    line-height: 1;
}

.header-notification-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 1200;
    width: min(390px, calc(100vw - 28px));
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: 0 22px 50px rgba(15, 23, 42, 0.2);
}

.header-notification-panel-head {
    display: flex;
    padding: 15px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-bottom: 1px solid var(--color-border);
}

.header-notification-panel-head > div {
    display: grid;
    gap: 1px;
}

.header-notification-panel-head span {
    color: var(--color-muted);
    font-size: 0.78rem;
}

.header-notification-panel-head a {
    color: var(--color-primary);
    font-size: 0.84rem;
    font-weight: 750;
    text-decoration: none;
}

.header-notification-list {
    display: grid;
    max-height: 380px;
    overflow-y: auto;
}

.header-notification-item {
    margin: 0;
    border-bottom: 1px solid var(--color-border);
}

.header-notification-item button {
    display: grid;
    width: 100%;
    padding: 13px 16px;
    gap: 3px;
    background: #ffffff;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
}

.header-notification-item.is-unread button {
    background: #eff6ff;
    box-shadow: inset 3px 0 0 var(--color-primary);
}

.header-notification-item button:hover,
.header-notification-item button:focus-visible {
    background: #f8fafc;
    outline: none;
}

.header-notification-item strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.header-notification-item span {
    display: -webkit-box;
    overflow: hidden;
    color: var(--color-text-soft);
    font-size: 0.82rem;
    line-height: 1.45;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.header-notification-empty {
    margin: 0;
    padding: 24px 16px;
    text-align: center;
}

.header-notification-mark-all {
    padding: 10px 14px;
    text-align: center;
    border-top: 1px solid var(--color-border);
}

.header-notification-mark-all button {
    background: transparent;
    color: var(--color-primary);
    cursor: pointer;
    font-size: 0.84rem;
    font-weight: 750;
}

.notification-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 48px 0 84px;
}

.notification-page-heading {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.notification-page-heading h1 {
    margin: 5px 0 10px;
}

.notification-page-heading p:last-child {
    margin-bottom: 0;
}

.notification-summary-card {
    display: flex;
    width: min(220px, 100%);
    min-height: 96px;
    margin-bottom: 24px;
    padding: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.notification-summary-card span {
    color: var(--color-muted);
}

.notification-summary-card strong {
    color: var(--color-primary);
    font-size: 1.75rem;
    line-height: 1;
}

.notification-list {
    display: grid;
    gap: 14px;
}

.notification-card {
    display: grid;
    grid-template-columns: 5px minmax(0, 1fr);
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.notification-card-indicator {
    background: #cbd5e1;
}

.notification-card.is-unread {
    border-color: #bfdbfe;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.09);
}

.notification-card.is-unread .notification-card-indicator {
    background: var(--color-primary);
}

.notification-card-content {
    padding: 20px 22px;
}

.notification-card-meta {
    display: flex;
    margin-bottom: 10px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.notification-card-meta time {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.notification-type-badge,
.notification-read-label {
    display: inline-flex;
    padding: 5px 9px;
    align-items: center;
    background: var(--color-primary-soft);
    color: var(--color-primary);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
}

.notification-read-label {
    background: #f1f5f9;
    color: var(--color-muted);
}

.notification-card h2 {
    margin-bottom: 7px;
    font-size: 1.25rem;
}

.notification-card p {
    margin-bottom: 0;
    white-space: normal;
    overflow-wrap: anywhere;
}

.notification-card-actions {
    display: flex;
    margin-top: 18px;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.notification-card-actions form {
    margin: 0;
}

.notification-empty-state {
    padding: 50px 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
    text-align: center;
}

.notification-empty-icon {
    display: inline-flex;
    width: 62px;
    height: 62px;
    margin-bottom: 14px;
    align-items: center;
    justify-content: center;
    background: var(--color-primary-soft);
    border-radius: 50%;
    font-size: 1.7rem;
}

.notification-empty-state h2 {
    margin-bottom: 9px;
}

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

@media (max-width: 900px) {
    .header-notification-text {
        display: none;
    }
}

@media (max-width: 700px) {
    .header-notification-menu {
        display: none;
    }

    .notification-page {
        width: calc(100% - 32px);
        padding-top: 32px;
        padding-bottom: 60px;
    }

    .notification-page-heading,
    .notification-card-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .notification-page-heading form,
    .notification-page-heading button,
    .notification-card-actions form,
    .notification-card-actions button {
        width: 100%;
    }

    .notification-card-content {
        padding: 18px;
    }
}

/* =========================================================
   Cloudorn Mobile Menu Unread Badge v1.0
   ========================================================= */

.mobile-menu-notification-count {
    position: absolute;
    top: -7px;
    right: -7px;
    z-index: 2;
    display: inline-flex;
    min-width: 21px;
    height: 21px;
    padding: 0 5px;
    align-items: center;
    justify-content: center;
    background: #dc2626;
    color: #ffffff;
    border: 2px solid #ffffff;
    border-radius: 999px;
    box-shadow: 0 2px 7px rgba(15, 23, 42, 0.2);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    pointer-events: none;
}

.site-header.is-scrolled .mobile-menu-notification-count {
    border-color: rgba(255, 255, 255, 0.98);
}

@media (min-width: 701px) {
    .mobile-menu-notification-count {
        display: none;
    }
}

/* =========================================================
   Cloudorn Subscription Page Responsive Refinement v1.0
   ========================================================= */

.subscription-page {
    width: min(1180px, calc(100% - 48px));
    margin-right: auto;
    margin-left: auto;
}

.subscription-page .page-heading-row h1 {
    max-width: 860px;
    overflow-wrap: anywhere;
}

.subscription-page .page-heading-row p {
    max-width: 720px;
}

.subscription-date-grid strong {
    overflow-wrap: anywhere;
}

@media (max-width: 700px) {
    .subscription-page {
        width: calc(100% - 28px);
        padding-top: 28px;
        padding-bottom: 48px;
    }

    .subscription-page .page-heading-row h1 {
        margin-bottom: 8px;
        font-size: 2rem;
        line-height: 1.12;
        letter-spacing: -0.02em;
    }

    .subscription-page .page-heading-row p {
        margin-bottom: 16px;
        font-size: 0.95rem;
        line-height: 1.55;
    }

    .subscription-page .page-heading-row .btn-secondary {
        min-height: 42px;
        padding: 9px 16px;
    }

    .subscription-page .subscription-hero {
        margin: 18px 0;
        padding: 17px;
        gap: 17px;
        border-radius: 15px;
    }

    .subscription-page .subscription-hero h2 {
        margin-top: 10px;
        font-size: 1.75rem;
    }

    .subscription-page .subscription-date-grid {
        gap: 10px;
    }

    .subscription-page .subscription-date-grid > div {
        padding: 13px 14px;
        border-radius: 11px;
    }

    .subscription-page .subscription-date-grid span {
        margin-bottom: 5px;
        font-size: 0.78rem;
    }

    .subscription-page .subscription-date-grid strong {
        font-size: 0.94rem;
        line-height: 1.4;
    }

    .subscription-page .subscription-panel {
        margin-top: 18px;
        padding: 17px;
        border-radius: 15px;
    }

    .subscription-page .subscription-panel h2 {
        font-size: 1.7rem;
    }
}

@media (max-width: 390px) {
    .subscription-page {
        width: calc(100% - 24px);
    }

    .subscription-page .page-heading-row h1 {
        font-size: 1.86rem;
    }

    .subscription-page .subscription-hero,
    .subscription-page .subscription-panel {
        padding: 15px;
    }
}

/* =========================================================
   Cloudorn Admin Subscription Page Width Refinement v1.0
   Keeps the Admin subscriptions view aligned with other Admin pages.
   ========================================================= */
.admin-subscriptions-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
}

@media (max-width: 700px) {
    .admin-subscriptions-page {
        width: calc(100% - 32px);
        padding-top: 30px;
        padding-bottom: 60px;
    }
}

/* =========================================================
   Cloudorn V2.4 Public Product Category Navigation
   ========================================================= */

.public-product-category-nav[hidden] {
    display: none !important;
}

.public-product-category-nav {
    margin: -2px 0 22px;
}

.public-product-category-scroll {
    display: flex;
    max-width: 100%;
    padding: 2px 2px 10px;
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
}

.public-product-category-tab {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 13px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--color-text-soft);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: 999px;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.04);
    cursor: pointer;
    font-weight: 750;
    line-height: 1.2;
    scroll-snap-align: start;
    white-space: nowrap;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

.public-product-category-tab strong {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    background: var(--color-background);
    border-radius: 999px;
    font-size: 0.76rem;
    line-height: 1;
}

.public-product-category-tab:hover,
.public-product-category-tab:focus-visible {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-color: #93c5fd;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.12);
    transform: translateY(-1px);
}

.public-product-category-tab:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.public-product-category-tab.is-active {
    color: #ffffff;
    background: var(--color-primary);
    border-color: var(--color-primary);
    box-shadow: 0 7px 18px rgba(37, 99, 235, 0.2);
}

.public-product-category-tab.is-active strong {
    color: var(--color-primary-dark);
    background: #ffffff;
}

.public-product-card[hidden] {
    display: none !important;
}

@media (max-width: 699px) {
    .public-product-category-nav {
        margin-bottom: 18px;
    }

    .public-product-category-scroll {
        margin-right: -2px;
        margin-left: -2px;
        padding-bottom: 8px;
    }

    .public-product-category-tab {
        min-height: 40px;
        padding: 7px 12px;
        font-size: 0.9rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-product-category-tab {
        transition: none;
    }

    .public-product-category-tab:hover,
    .public-product-category-tab:focus-visible {
        transform: none;
    }
}

/* =========================================================
   Cloudorn V2.4.1 Pricing Plans & Time Protection
   ========================================================= */

.pricing-hero {
    max-width: 980px;
}

.pricing-grid-plans {
    display: flex;
    align-items: stretch;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
}

.pricing-grid-plans .pricing-card-plan {
    position: relative;
    width: 100%;
    max-width: calc((100% - 48px) / 3);
    flex: 1 1 310px;
    overflow: hidden;
}

.pricing-card-plan h2 {
    margin: 8px 0 0;
}

.pricing-card-recommended::before,
.pricing-card-maximum::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 72px;
    height: 72px;
    content: "";
    pointer-events: none;
}

.pricing-card-recommended::before {
    background:
        linear-gradient(
            225deg,
            rgba(37, 99, 235, 0.14) 0 50%,
            transparent 50%
        );
}

.pricing-card-maximum::before {
    background:
        linear-gradient(
            225deg,
            rgba(15, 23, 42, 0.1) 0 50%,
            transparent 50%
        );
}

.pricing-plan-meta {
    display: flex;
    margin: 12px 0 18px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.pricing-plan-meta span {
    display: inline-flex;
    min-height: 29px;
    padding: 5px 9px;
    align-items: center;
    color: var(--color-text-soft);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.plan-time-benefit {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    margin: 2px 0 20px;
    padding: 13px 14px;
    align-items: start;
    gap: 10px;
    color: #1e3a8a;
    background:
        linear-gradient(
            135deg,
            #eff6ff,
            #ffffff
        );
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-medium);
}

.plan-time-benefit::before {
    display: inline-flex;
    width: 25px;
    height: 25px;
    align-items: center;
    justify-content: center;
    content: "✓";
    color: #ffffff;
    background: var(--color-primary);
    border-radius: 50%;
    font-size: 0.78rem;
    font-weight: 900;
    line-height: 1;
}

.plan-time-benefit strong,
.plan-time-benefit small {
    grid-column: 2;
}

.plan-time-benefit strong {
    margin-bottom: 2px;
    color: #1e3a8a;
    font-size: 0.9rem;
    line-height: 1.3;
}

.plan-time-benefit small {
    color: #475569;
    font-size: 0.8rem;
    line-height: 1.5;
}

.plan-time-benefit.is-upgrade {
    color: #166534;
    background:
        linear-gradient(
            135deg,
            #ecfdf5,
            #ffffff
        );
    border-color: #bbf7d0;
}

.plan-time-benefit.is-upgrade::before {
    background: #16a34a;
}

.plan-time-benefit.is-upgrade strong {
    color: #166534;
}

.pricing-feature-list {
    margin-bottom: 26px;
}

.pricing-card-plan .btn-primary,
.pricing-card-plan .btn-secondary {
    width: 100%;
}

.subscription-panel .dashboard-panel .plan-time-benefit {
    margin-top: -4px;
}

@media (max-width: 1000px) {
    .pricing-grid-plans .pricing-card-plan {
        max-width: calc((100% - 24px) / 2);
    }
}

@media (max-width: 700px) {
    .pricing-grid-plans {
        gap: 18px;
    }

    .pricing-grid-plans .pricing-card-plan {
        max-width: none;
        flex-basis: 100%;
    }

    .plan-time-benefit {
        padding: 12px 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .pricing-card-plan,
    .plan-time-benefit {
        transition: none;
    }
}

/* =========================================================
   Cloudorn V2.6.1 — Compact owner product-management cards
   Mirrors the compact public-shop product-card proportions.
   ========================================================= */

.product-admin-page .owner-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 300px));
    gap: 20px;
    justify-content: start;
    align-items: stretch;
}

.product-admin-page .owner-product-card {
    display: flex;
    width: 100%;
    max-width: 300px;
    min-width: 0;
    overflow: hidden;
    flex-direction: column;
}

.product-admin-page .owner-product-card > img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
}

.product-admin-page .owner-product-body {
    display: flex;
    padding: 16px;
    flex: 1 1 auto;
    flex-direction: column;
}

.product-admin-page .owner-product-body h2 {
    margin: 8px 0;
    font-size: 1.16rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.product-admin-page .owner-product-body > p {
    margin-bottom: 10px;
}

.product-admin-page .owner-product-body .product-price {
    font-size: 1.08rem;
}

.product-admin-page .owner-product-body .product-card-actions {
    margin-top: auto;
    padding-top: 8px;
}

.product-admin-page .owner-product-body .product-card-actions a,
.product-admin-page .owner-product-body .product-card-actions button {
    min-height: 40px;
    padding: 9px 13px;
}

@media (max-width: 699px) {
    .product-admin-page .owner-product-grid {
        grid-template-columns: 1fr;
    }

    .product-admin-page .owner-product-card {
        max-width: none;
    }

    .product-admin-page .owner-product-card > img {
        height: 200px;
    }
}

/* =========================================================
   Cloudorn V2.6.4 — Centered search layout and compact results
   ========================================================= */

.market-search-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
}

.market-search-results {
    grid-template-columns: repeat(auto-fill, minmax(280px, 340px));
    gap: 20px;
    justify-content: start;
    align-items: stretch;
}

.market-result-card {
    display: flex;
    width: 100%;
    max-width: 340px;
    min-width: 0;
    height: 100%;
    flex-direction: column;
}

.market-result-media {
    width: 100%;
    min-height: 180px;
    height: 180px;
    max-height: 180px;
}

.market-result-media img {
    width: 100%;
    height: 180px;
    min-height: 180px;
    max-height: 180px;
    object-fit: cover;
}

.market-result-card.is-shop .market-result-media img {
    padding: 18px;
    object-fit: contain;
}

.market-result-body {
    display: flex;
    min-width: 0;
    padding: 17px;
    flex: 1 1 auto;
    flex-direction: column;
    align-content: initial;
}

.market-result-body h3 {
    margin: 7px 0 5px;
    font-size: 1.16rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.market-result-description {
    display: -webkit-box;
    margin-top: 8px;
    line-height: 1.55;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    overflow: hidden;
}

.market-result-price {
    font-size: 1.04rem;
}

.market-result-footer {
    width: 100%;
    margin-top: auto;
    padding-top: 13px;
}

@media (max-width: 699px) {
    .market-search-page {
        width: calc(100% - 32px);
        padding-top: 30px;
    }

    .market-search-results {
        grid-template-columns: 1fr;
    }

    .market-result-card {
        max-width: none;
    }

    .market-result-media,
    .market-result-media img {
        min-height: 200px;
        height: 200px;
        max-height: 200px;
    }

    .market-result-body {
        padding: 18px;
    }
}

/* =========================================================
   Cloudorn V2.6.5 — Public Shop Contact & Location
   ========================================================= */

.shop-contact-location-panel {
    min-width: 0;
}

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

.shop-contact-heading h2 {
    margin: 2px 0 0;
}

.shop-contact-heading > span {
    color: var(--color-muted);
    font-size: 0.84rem;
    text-align: right;
}

.shop-contact-actions {
    display: grid;
    gap: 11px;
}

.shop-contact-action {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    min-width: 0;
    min-height: 64px;
    padding: 10px 12px;
    align-items: center;
    gap: 11px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    text-decoration: none;
    transition:
        border-color 0.18s ease,
        background-color 0.18s ease,
        box-shadow 0.18s ease,
        transform 0.18s ease;
}

a.shop-contact-action:hover,
a.shop-contact-action:focus-visible {
    border-color: #bfdbfe;
    background: #fbfdff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
}

a.shop-contact-action:focus-visible,
.shop-contact-cta:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.shop-contact-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: 12px;
}

.shop-contact-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.shop-contact-action.is-whatsapp .shop-contact-icon {
    color: #15803d;
    background: #ecfdf5;
}

.shop-contact-action.is-youtube .shop-contact-icon {
    color: #dc2626;
    background: #fef2f2;
}

.shop-contact-action.is-location .shop-contact-icon {
    color: #dc2626;
    background: #fff1f2;
}

.shop-contact-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.shop-contact-copy strong {
    color: var(--color-text);
    line-height: 1.3;
}

.shop-contact-copy small {
    color: var(--color-muted);
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.shop-contact-cta,
.shop-contact-verified {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 10px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
}

.shop-contact-cta {
    color: var(--color-primary);
    background: #ffffff;
    border: 1px solid #93c5fd;
}

.is-whatsapp .shop-contact-cta {
    color: #15803d;
    border-color: #86efac;
}

.is-youtube .shop-contact-cta {
    color: #dc2626;
    border-color: #fca5a5;
}

.shop-contact-verified {
    color: var(--color-success-text);
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
}

.shop-location-map-card {
    margin-top: 15px;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.shop-location-map-visual {
    position: relative;
    height: 160px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #e0f2fe, #f0fdf4 46%, #fefce8);
}

.shop-location-map-visual > svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: rgba(100, 116, 139, 0.36);
    stroke-width: 5;
}

.shop-location-pin {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    color: #dc2626;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 50%;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.2);
    transform: translate(-50%, -50%);
}

.shop-location-pin svg {
    width: 30px;
    height: 30px;
    fill: #dc2626;
    stroke: #ffffff;
    stroke-width: 1.5;
}

.shop-location-map-meta {
    display: flex;
    padding: 12px 14px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--color-muted);
    font-size: 0.82rem;
}

.shop-location-map-meta span {
    font-family: Consolas, "Courier New", monospace;
    overflow-wrap: anywhere;
}

.shop-location-map-meta a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 750;
    text-decoration: none;
}

.shop-location-map-meta a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media (max-width: 700px) {
    .shop-contact-heading {
        flex-direction: column;
        gap: 4px;
    }

    .shop-contact-heading > span {
        text-align: left;
    }

    .shop-contact-action {
        grid-template-columns: 40px minmax(0, 1fr) auto;
        padding: 10px;
    }

    .shop-contact-icon {
        width: 40px;
        height: 40px;
    }

    .shop-location-map-visual {
        height: 180px;
    }

    .shop-location-map-meta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 390px) {
    .shop-contact-action {
        grid-template-columns: 38px minmax(0, 1fr);
    }

    .shop-contact-action .shop-contact-cta,
    .shop-contact-action .shop-contact-verified {
        grid-column: 2;
        width: fit-content;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-contact-action {
        transition: none;
    }

    a.shop-contact-action:hover,
    a.shop-contact-action:focus-visible {
        transform: none;
    }
}

/* =========================================================
   Cloudorn V2.6.5.1 — Merge Contact & Location with Business Details
   ========================================================= */

.shop-profile-grid {
    grid-template-columns: minmax(320px, 430px);
    justify-content: end;
}

.shop-contact-business-panel {
    width: 100%;
}

.shop-contact-business-divider {
    height: 1px;
    margin: 24px 0;
    background: var(--color-border);
}

.shop-business-details-section > h2 {
    margin: 2px 0 18px;
}

@media (max-width: 700px) {
    .shop-profile-grid {
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .shop-contact-business-panel {
        max-width: none;
    }
}

/* =========================================================
   Cloudorn V2.6.6 — Public Shop Hero + Sidebar Layout
   ========================================================= */

.shop-profile-top-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    margin-bottom: 36px;
    align-items: start;
    gap: 24px;
}

.shop-profile-main-column {
    min-width: 0;
}

.shop-profile-page-layout .shop-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    min-height: 300px;
    margin: 0;
    padding: 34px;
    align-items: center;
    gap: 28px;
    overflow: hidden;
    color: #ffffff;
    background:
        radial-gradient(
            circle at 82% 18%,
            rgba(96, 165, 250, 0.34),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            #0f172a 0%,
            #172554 52%,
            #1d4ed8 100%
        );
    border: 1px solid rgba(147, 197, 253, 0.35);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.shop-profile-page-layout .shop-profile-hero::after {
    position: absolute;
    right: -80px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    background:
        radial-gradient(
            circle,
            rgba(255, 255, 255, 0.12),
            transparent 66%
        );
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.shop-profile-page-layout .shop-profile-mark {
    position: relative;
    z-index: 1;
    width: 118px;
    height: 118px;
    color: var(--color-primary);
    background: #ffffff;
    border: 3px solid rgba(255, 255, 255, 0.72);
    border-radius: 24px;
    box-shadow: 0 18px 36px rgba(15, 23, 42, 0.28);
}

.shop-profile-page-layout .shop-profile-hero > div:last-child {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.shop-profile-page-layout .shop-profile-hero h1 {
    margin: 7px 0 13px;
    color: #ffffff;
    font-size: clamp(2.15rem, 4vw, 3.45rem);
    letter-spacing: -0.04em;
}

.shop-profile-page-layout .shop-profile-hero p {
    max-width: 690px;
    margin: 16px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 1rem;
    line-height: 1.7;
}

.shop-profile-page-layout .shop-category-label,
.shop-profile-page-layout .shop-category-label a {
    color: #bfdbfe;
}

.shop-profile-page-layout .shop-rating-summary {
    color: #fef3c7;
}

.shop-profile-page-layout .shop-rating-summary span {
    color: rgba(255, 255, 255, 0.78);
}

.shop-profile-page-layout .shop-public-badges {
    margin: 15px 0 0;
}

.shop-profile-page-layout .shop-contact-business-panel {
    width: 100%;
    min-width: 0;
    margin: 0;
    padding: 24px;
    align-self: start;
}

.shop-public-section-nav {
    display: flex;
    min-width: 0;
    margin-top: 14px;
    padding: 7px;
    align-items: center;
    gap: 6px;
    overflow-x: auto;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
    scrollbar-width: thin;
}

.shop-public-section-nav a {
    display: inline-flex;
    min-height: 42px;
    padding: 8px 13px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    color: var(--color-text-soft);
    border-radius: 9px;
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.shop-public-section-nav a:hover,
.shop-public-section-nav a:focus-visible,
.shop-public-section-nav a.is-active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.shop-public-section-nav a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.shop-public-section-nav span {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.72rem;
}

.shop-profile-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    justify-content: stretch;
}

@media (max-width: 940px) {
    .shop-profile-top-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    }

    .shop-profile-page-layout .shop-profile-hero {
        grid-template-columns: 94px minmax(0, 1fr);
        padding: 28px;
        gap: 22px;
    }

    .shop-profile-page-layout .shop-profile-mark {
        width: 94px;
        height: 94px;
        border-radius: 20px;
    }
}

@media (max-width: 760px) {
    .shop-profile-top-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-profile-page-layout .shop-profile-hero {
        grid-template-columns: 78px minmax(0, 1fr);
        min-height: 250px;
        padding: 24px 20px;
        gap: 17px;
    }

    .shop-profile-page-layout .shop-profile-mark {
        width: 78px;
        height: 78px;
        border-radius: 17px;
    }

    .shop-profile-page-layout .shop-profile-hero h1 {
        font-size: 2rem;
    }

    .shop-profile-page-layout .shop-profile-hero p {
        grid-column: 1 / -1;
        font-size: 0.94rem;
    }

    .shop-profile-page-layout .shop-contact-business-panel {
        max-width: none;
        padding: 22px 18px;
    }

    .shop-public-section-nav {
        margin-top: 12px;
    }
}

@media (max-width: 420px) {
    .shop-profile-page-layout .shop-profile-hero {
        grid-template-columns: 66px minmax(0, 1fr);
        padding: 21px 17px;
        gap: 14px;
    }

    .shop-profile-page-layout .shop-profile-mark {
        width: 66px;
        height: 66px;
        border-radius: 15px;
    }

    .shop-profile-page-layout .shop-profile-hero h1 {
        font-size: 1.72rem;
    }
}

/* =========================================================
   Cloudorn V2.6.6.1 — Continuous Public Shop Content Column
   ========================================================= */

.shop-profile-page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(330px, 390px);
    align-items: start;
    gap: 24px;
}

.shop-profile-page-layout .shop-profile-main-column {
    min-width: 0;
}

.shop-profile-page-layout .shop-contact-business-panel {
    position: sticky;
    top: 158px;
    width: 100%;
    min-width: 0;
    margin: 0;
    align-self: start;
}

.shop-profile-page-layout .public-hours-section,
.shop-profile-page-layout .shop-reviews-section,
.shop-profile-page-layout .public-services-section,
.shop-profile-page-layout .public-products-section {
    width: 100%;
    max-width: none;
    margin-right: 0;
    margin-left: 0;
}

.shop-profile-page-layout .public-hours-section {
    padding-top: 34px;
}

.shop-profile-page-layout .shop-reviews-section {
    margin-top: 34px;
}

.shop-profile-page-layout .public-services-section,
.shop-profile-page-layout .public-products-section {
    padding-top: 34px;
}

@media (max-width: 940px) {
    .shop-profile-page-layout {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 350px);
    }

    .shop-profile-page-layout .shop-contact-business-panel {
        top: 146px;
    }
}

@media (max-width: 760px) {
    .shop-profile-page-layout {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .shop-profile-page-layout .shop-contact-business-panel {
        position: static;
        grid-row: 2;
        max-width: none;
    }

    .shop-profile-page-layout .shop-profile-main-column {
        grid-row: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .shop-profile-page-layout .shop-contact-business-panel {
        scroll-behavior: auto;
    }
}

/* =========================================================
   Cloudorn V2.6.8 — Public Product & Service Image Lightbox
   ========================================================= */

.public-image-zoom-trigger {
    cursor: zoom-in;
    transition:
        transform 0.18s ease,
        filter 0.18s ease,
        box-shadow 0.18s ease;
}

.public-image-zoom-trigger:hover,
.public-image-zoom-trigger:focus-visible {
    filter: brightness(0.94);
    transform: scale(1.015);
}

.public-image-zoom-trigger:focus-visible {
    outline: 4px solid rgba(37, 99, 235, 0.34);
    outline-offset: -4px;
}

body.has-public-image-lightbox {
    overflow: hidden;
}

.public-image-lightbox[hidden] {
    display: none !important;
}

.public-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483200;
    display: grid;
    padding:
        max(24px, env(safe-area-inset-top, 0px))
        max(24px, env(safe-area-inset-right, 0px))
        max(24px, env(safe-area-inset-bottom, 0px))
        max(24px, env(safe-area-inset-left, 0px));
    place-items: center;
    overflow-y: auto;
    background: rgba(2, 6, 23, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.public-image-lightbox-stage {
    position: relative;
    display: grid;
    width: fit-content;
    max-width: min(1100px, 94vw);
    max-height: 84vh;
    place-items: center;
    overflow: hidden;
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 18px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.48);
}

.public-image-lightbox-stage img {
    display: block;
    width: auto;
    max-width: min(1100px, 94vw);
    height: auto;
    max-height: 84vh;
    object-fit: contain;
}

.public-image-lightbox-watermark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    color: rgba(255, 255, 255, 0.3);
    font-size: clamp(2rem, 7vw, 6rem);
    font-weight: 850;
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 0 2px 12px rgba(15, 23, 42, 0.35);
    transform: translate(-50%, -50%) rotate(-30deg);
    user-select: none;
    white-space: nowrap;
    pointer-events: none;
}

.public-image-lightbox-close {
    position: fixed;
    top: max(18px, env(safe-area-inset-top, 0px));
    right: max(18px, env(safe-area-inset-right, 0px));
    z-index: 3;
    display: grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    color: #ffffff;
    background: rgba(15, 23, 42, 0.86);
    border: 1px solid rgba(255, 255, 255, 0.36);
    border-radius: 50%;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
    cursor: pointer;
    font-size: 2rem;
    line-height: 1;
}

.public-image-lightbox-close:hover,
.public-image-lightbox-close:focus-visible {
    background: #dc2626;
    border-color: #fca5a5;
}

.public-image-lightbox-close:focus-visible {
    outline: 4px solid rgba(255, 255, 255, 0.46);
    outline-offset: 3px;
}

.public-image-lightbox-help {
    position: fixed;
    right: 20px;
    bottom: max(18px, env(safe-area-inset-bottom, 0px));
    left: 20px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.86rem;
    text-align: center;
    pointer-events: none;
}

@media (max-width: 640px) {
    .public-image-lightbox {
        padding:
            max(72px, env(safe-area-inset-top, 0px))
            12px
            max(56px, env(safe-area-inset-bottom, 0px));
    }

    .public-image-lightbox-stage {
        max-width: calc(100vw - 24px);
        max-height: 78vh;
        border-radius: 14px;
    }

    .public-image-lightbox-stage img {
        max-width: calc(100vw - 24px);
        max-height: 78vh;
    }

    .public-image-lightbox-watermark {
        font-size: clamp(1.7rem, 12vw, 4rem);
    }

    .public-image-lightbox-close {
        width: 44px;
        height: 44px;
        font-size: 1.75rem;
    }

    .public-image-lightbox-help {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .public-image-zoom-trigger {
        transition: none;
    }

    .public-image-zoom-trigger:hover,
    .public-image-zoom-trigger:focus-visible {
        transform: none;
    }
}

/* =========================================================
   Cloudorn V2.7.1.1 — Admin Plans & Pricing Layout Refinement
   Keeps each plan independent and removes equal-height card gaps.
   ========================================================= */

.admin-plans-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin-right: auto;
    margin-left: auto;
    padding: 46px 0 82px;
}

.admin-plans-page > .page-heading-row {
    display: flex;
    margin-bottom: 24px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.admin-plans-page > .page-heading-row > div {
    min-width: 0;
}

.admin-plans-page > .page-heading-row h1 {
    margin: 5px 0 10px;
}

.admin-plans-page > .page-heading-row p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.admin-plans-page > .page-heading-row .btn-secondary {
    flex: 0 0 auto;
}

.admin-plans-page > .shop-policy-note {
    margin: 0 0 24px;
}

.admin-plans-page > .dashboard-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
    gap: 20px;
}

.admin-plans-page > .dashboard-grid > .dashboard-panel {
    min-width: 0;
    padding: 26px;
}

.admin-plans-page .dashboard-panel-heading {
    margin-bottom: 18px;
}

.admin-plans-page .dashboard-panel-heading h2 {
    margin: 5px 0 0;
    font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.admin-plans-page .subscription-state-badge {
    max-width: min(100%, 220px);
    overflow-wrap: anywhere;
    text-align: center;
}

.admin-plans-page .dashboard-details {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 20px;
    gap: 10px;
}

.admin-plans-page .dashboard-details > div {
    display: block;
    min-width: 0;
    padding: 13px 14px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.admin-plans-page .dashboard-details dt {
    margin-bottom: 3px;
    font-size: 0.78rem;
}

.admin-plans-page .dashboard-details dd {
    font-weight: 700;
}

.admin-plans-page .dashboard-panel > .shop-policy-note {
    max-width: none;
    margin: 0;
}

.admin-plans-page .subscription-renewal-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    max-width: none;
    margin-top: 4px;
    padding-top: 20px;
    gap: 16px 18px;
    border-top: 1px solid var(--color-border);
}

.admin-plans-page .subscription-renewal-form > label {
    display: grid;
    min-width: 0;
    margin: 0;
    align-content: start;
    gap: 7px;
}

.admin-plans-page .subscription-renewal-form > label:nth-of-type(1),
.admin-plans-page .subscription-renewal-form > label:nth-of-type(3) {
    grid-column: span 2;
}

.admin-plans-page .subscription-renewal-form > label:nth-of-type(2) {
    grid-column: 1 / -1;
}

.admin-plans-page .subscription-renewal-form input,
.admin-plans-page .subscription-renewal-form select,
.admin-plans-page .subscription-renewal-form textarea {
    min-width: 0;
    min-height: 46px;
}

.admin-plans-page .subscription-renewal-form textarea {
    min-height: 104px;
    resize: vertical;
}

.admin-plans-page .subscription-renewal-form input[readonly] {
    color: var(--color-muted);
    background: #f8fafc;
    cursor: not-allowed;
}

.admin-plans-page .subscription-renewal-form > .shop-policy-note {
    grid-column: 1 / -1;
    margin: 0;
}

.admin-plans-page .subscription-renewal-form > label:has(
    > input[type="checkbox"]
) {
    display: flex;
    grid-column: 1 / span 2;
    min-height: 46px;
    margin: 0;
    padding: 11px 13px;
    align-items: center;
    gap: 10px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.admin-plans-page .subscription-renewal-form
> label:has(> input[type="checkbox"])
> input[type="checkbox"] {
    width: 18px;
    height: 18px;
    min-height: 0;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.admin-plans-page .subscription-renewal-form > .btn-primary {
    grid-column: 3 / -1;
    width: 100%;
    min-height: 46px;
    align-self: end;
}

@media (max-width: 980px) {
    .admin-plans-page .subscription-renewal-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(1),
    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(3) {
        grid-column: span 1;
    }

    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(2),
    .admin-plans-page .subscription-renewal-form
    > .shop-policy-note {
        grid-column: 1 / -1;
    }

    .admin-plans-page .subscription-renewal-form
    > label:has(> input[type="checkbox"]) {
        grid-column: 1;
    }

    .admin-plans-page .subscription-renewal-form > .btn-primary {
        grid-column: 2;
    }
}

@media (max-width: 700px) {
    .admin-plans-page {
        width: calc(100% - 32px);
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .admin-plans-page > .page-heading-row {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
    }

    .admin-plans-page > .page-heading-row .btn-secondary {
        width: 100%;
    }

    .admin-plans-page > .dashboard-grid {
        gap: 16px;
    }

    .admin-plans-page > .dashboard-grid > .dashboard-panel {
        padding: 20px 17px;
        border-radius: var(--radius-medium);
    }

    .admin-plans-page .dashboard-panel-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .admin-plans-page .dashboard-details,
    .admin-plans-page .subscription-renewal-form {
        grid-template-columns: 1fr;
    }

    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(1),
    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(2),
    .admin-plans-page .subscription-renewal-form
    > label:nth-of-type(3),
    .admin-plans-page .subscription-renewal-form
    > label:has(> input[type="checkbox"]),
    .admin-plans-page .subscription-renewal-form
    > .shop-policy-note,
    .admin-plans-page .subscription-renewal-form
    > .btn-primary {
        grid-column: 1;
    }

    .admin-plans-page .subscription-state-badge {
        max-width: 100%;
    }
}

@media (max-width: 390px) {
    .admin-plans-page {
        width: calc(100% - 24px);
    }

    .admin-plans-page > .dashboard-grid > .dashboard-panel {
        padding: 17px 14px;
    }
}

/* =========================================================
   Cloudorn V2.7.1.2 — Compact two-column Admin plan cards
   Shows two plans per desktop row without reducing readability.
   ========================================================= */

.admin-plans-compact .admin-plan-policy {
    margin-bottom: 22px;
    padding: 13px 15px;
}

.admin-plans-compact .admin-plan-policy p {
    margin: 3px 0 0;
    font-size: 0.88rem;
    line-height: 1.5;
}

.admin-plan-section + .admin-plan-section {
    margin-top: 26px;
}

.admin-plan-section-heading {
    display: flex;
    margin-bottom: 13px;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
}

.admin-plan-section-heading h2 {
    margin: 2px 0 0;
    font-size: 1.35rem;
}

.admin-plan-section-heading > span {
    flex: 0 0 auto;
    padding: 5px 9px;
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 750;
}

.admin-plan-history-grid,
.admin-plan-managed-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
    gap: 16px;
}

.admin-plan-card {
    min-width: 0;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.admin-plan-card-heading {
    display: flex;
    margin-bottom: 13px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 13px;
}

.admin-plan-card-heading h3 {
    margin: 3px 0 0;
    font-size: 1.35rem;
    line-height: 1.2;
}

.admin-plan-card-heading .dashboard-eyebrow {
    margin-bottom: 2px;
    font-size: 0.7rem;
}

.admin-plan-card-heading .subscription-state-badge {
    min-height: 27px;
    padding: 4px 9px;
    font-size: 0.69rem;
    overflow-wrap: anywhere;
}

.admin-plan-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
}

.admin-plan-summary > div {
    min-width: 0;
    padding: 9px 10px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
}

.admin-plan-summary dt {
    margin-bottom: 1px;
    color: var(--color-muted);
    font-size: 0.67rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.admin-plan-summary dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.admin-plan-readonly-note {
    margin-top: 12px;
    padding: 10px 11px;
    color: var(--color-text-soft);
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.79rem;
    line-height: 1.45;
}

.admin-plan-form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 14px;
    padding-top: 14px;
    gap: 10px 12px;
    border-top: 1px solid var(--color-border);
}

.admin-plan-field {
    display: grid;
    min-width: 0;
    margin: 0;
    align-content: start;
    gap: 4px;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 700;
}

.admin-plan-field-wide {
    grid-column: 1 / -1;
}

.admin-plan-field input,
.admin-plan-field select,
.admin-plan-field textarea {
    width: 100%;
    min-width: 0;
    min-height: 38px;
    padding: 8px 9px;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid #cbd8e8;
    border-radius: 8px;
    outline: none;
    font-size: 0.82rem;
}

.admin-plan-field textarea {
    min-height: 70px;
    resize: vertical;
    line-height: 1.45;
}

.admin-plan-field input:focus,
.admin-plan-field select:focus,
.admin-plan-field textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.11);
}

.admin-plan-field input[readonly] {
    color: var(--color-muted);
    background: #f8fafc;
    cursor: not-allowed;
}

.admin-plan-protection {
    display: grid;
    min-height: 38px;
    padding: 7px 9px;
    align-content: center;
    gap: 0;
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: 8px;
    font-size: 0.73rem;
    line-height: 1.35;
}

.admin-plan-protection span {
    color: var(--color-text-soft);
}

.admin-plan-form-actions {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 0.7fr);
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.admin-plan-feature-check {
    display: flex;
    min-height: 38px;
    margin: 0;
    padding: 8px 10px;
    align-items: center;
    gap: 8px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    color: var(--color-text);
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-plan-feature-check input {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
    accent-color: var(--color-primary);
}

.admin-plan-fixed-note {
    display: flex;
    min-height: 38px;
    padding: 8px 10px;
    align-items: center;
    color: var(--color-muted);
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-size: 0.75rem;
    font-weight: 700;
}

.admin-plan-form-actions .btn-primary {
    width: 100%;
    min-height: 38px;
    padding: 8px 13px;
    font-size: 0.8rem;
}

@media (max-width: 760px) {
    .admin-plan-history-grid,
    .admin-plan-managed-grid {
        grid-template-columns: 1fr;
    }

    .admin-plan-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 7px;
    }
}

@media (max-width: 460px) {
    .admin-plan-card {
        padding: 15px 13px;
    }

    .admin-plan-card-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .admin-plan-summary,
    .admin-plan-form,
    .admin-plan-form-actions {
        grid-template-columns: 1fr;
    }

    .admin-plan-field-wide,
    .admin-plan-form-actions {
        grid-column: 1;
    }
}

/* =========================================================
   Cloudorn V2.7.4 — Public product batching and Load More
   ========================================================= */

.public-product-load-more[hidden] {
    display: none !important;
}

.public-product-load-more {
    display: flex;
    margin-top: 24px;
    justify-content: center;
}

.public-product-load-more .btn-secondary {
    min-width: 220px;
}

@media (max-width: 699px) {
    .public-product-load-more .btn-secondary {
        width: 100%;
    }
}

/* =========================================================
   Cloudorn V2.7.4.1 — Shop rating visibility and search cards
   ========================================================= */

.shop-profile-page-layout
.shop-rating-summary
.review-stars {
    color: #f59e0b;
}

.market-shop-rating {
    margin: 2px 0 5px;
}

.market-shop-rating strong {
    color: #92400e;
}

.market-shop-rating.is-new span {
    color: var(--color-muted);
}


/* =========================================================
   Cloudorn V2.7.5A — Staff Dashboard Foundation
   ========================================================= */

.staff-page {
    width: calc(100% - 44px);
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 46px 0 88px;
}

.staff-hero {
    display: flex;
    margin-bottom: 26px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.staff-hero h1 {
    margin: 5px 0 12px;
}

.staff-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
}

.staff-role-badge,
.staff-status-badge {
    display: inline-flex;
    padding: 7px 11px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
}

.staff-role-badge {
    color: #6d28d9;
    background: #ede9fe;
    border: 1px solid #ddd6fe;
}

.staff-status-badge.is-active {
    color: var(--color-success-text);
    background: var(--color-success-bg);
    border: 1px solid var(--color-success-border);
}

.staff-status-badge.is-foundation {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
}

.staff-foundation-notice,
.staff-security-notice {
    margin-bottom: 24px;
    padding: 18px 20px;
    border-radius: var(--radius-medium);
}

.staff-foundation-notice {
    color: #1e3a8a;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
    border: 1px solid #bfdbfe;
}

.staff-security-notice {
    margin-top: 24px;
    margin-bottom: 0;
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.staff-foundation-notice p,
.staff-security-notice p {
    margin: 5px 0 0;
    color: inherit;
}

.staff-security-notice code {
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.9em;
}

.staff-grid {
    display: grid;
    grid-template-columns: minmax(300px, 0.75fr) minmax(0, 1.25fr);
    gap: 22px;
}

.staff-panel {
    min-width: 0;
    padding: 28px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.staff-panel-heading,
.staff-tool-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.staff-panel-heading {
    margin-bottom: 20px;
}

.staff-panel-heading h2,
.staff-tool-card-head h3 {
    margin: 0;
}

.staff-tool-grid {
    display: grid;
    gap: 14px;
}

.staff-tool-card {
    padding: 18px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.staff-tool-card p {
    margin: 10px 0 0;
    font-size: 0.94rem;
}

@media (max-width: 900px) {
    .staff-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .staff-page {
        width: calc(100% - 32px);
        padding-top: 30px;
        padding-bottom: 60px;
    }

    .staff-hero,
    .staff-panel-heading,
    .staff-tool-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-role-badge,
    .staff-status-badge {
        width: fit-content;
    }

    .staff-panel {
        padding: 22px 18px;
    }
}


/* =========================================================
   Cloudorn V2.7.5C — Registered-user Support Chat
   ========================================================= */

.support-contact-card,
.support-chat-room,
.support-chat-unavailable {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.support-contact-card {
    padding: 30px;
    border-color: #bfdbfe;
    background:
        linear-gradient(
            135deg,
            rgba(239, 246, 255, 0.94),
            rgba(255, 255, 255, 1)
        );
}

.support-contact-heading,
.support-contact-action-row,
.support-contact-form-footer,
.support-chat-hero,
.support-chat-room-toolbar,
.support-chat-footer-actions {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.support-contact-heading h2 {
    margin: 6px 0 10px;
}

.support-contact-heading p,
.support-contact-action-row p {
    margin-bottom: 0;
}

.support-contact-availability {
    display: inline-flex;
    min-height: 32px;
    padding: 6px 11px;
    flex: 0 0 auto;
    align-items: center;
    color: var(--color-primary-dark);
    background: #ffffff;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 750;
}

.support-contact-action-row {
    margin-top: 22px;
    padding: 20px;
    align-items: center;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.support-contact-action-row.is-open {
    border-color: #93c5fd;
    box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.support-contact-action-row strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: 1.05rem;
}

.support-contact-form {
    display: grid;
    margin-top: 22px;
    gap: 18px;
}

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

.support-contact-form input,
.support-contact-form textarea {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.support-contact-form textarea {
    min-height: 132px;
    resize: vertical;
}

.support-contact-form input:focus,
.support-contact-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.support-contact-form-footer {
    align-items: center;
}

.support-contact-form-footer small {
    color: var(--color-muted);
}

.support-contact-history {
    display: flex;
    margin-top: 18px;
    padding-top: 16px;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid #bfdbfe;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.support-contact-history a {
    color: var(--color-primary);
    font-weight: 750;
}

.support-contact-safety,
.support-chat-safety {
    margin-top: 22px;
    padding: 15px 17px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-small);
    line-height: 1.65;
}

.support-chat-page {
    padding: 42px 0 80px;
}

.support-chat-container {
    display: grid;
    gap: 24px;
}

.support-chat-hero {
    align-items: center;
}

.support-chat-hero h1 {
    margin: 7px 0 10px;
    font-size: clamp(2rem, 4vw, 3rem);
    overflow-wrap: anywhere;
}

.support-chat-hero p {
    max-width: 760px;
    margin-bottom: 0;
}

.support-chat-status {
    display: inline-flex;
    min-height: 34px;
    padding: 7px 12px;
    flex: 0 0 auto;
    align-items: center;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 800;
}

.support-chat-status.is-waiting {
    color: #92400e;
    background: #fef3c7;
}

.support-chat-status.is-active {
    color: var(--color-success-text);
    background: var(--color-success-bg);
}

.support-chat-status.is-closed {
    color: var(--color-muted);
    background: #f1f5f9;
}

.support-chat-room {
    overflow: hidden;
}

.support-chat-room-toolbar {
    padding: 18px 22px;
    align-items: center;
    background: #f8fbff;
    border-bottom: 1px solid var(--color-border);
}

.support-chat-room-toolbar > div {
    display: grid;
    gap: 3px;
}

.support-chat-room-toolbar small {
    color: var(--color-muted);
}

.support-chat-message-list {
    min-height: 360px;
}

.support-chat-compose label {
    margin-bottom: 8px;
}

.support-chat-footer-actions {
    justify-content: flex-start;
}

.support-chat-unavailable {
    max-width: 760px;
    margin: 30px auto;
    padding: 36px;
}

.support-chat-unavailable h1 {
    margin: 7px 0 12px;
}

.support-user-launcher {
    position: fixed;
    left: 24px;
    bottom: 24px;
    z-index: 2147482990;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-width: 220px;
    max-width: min(330px, calc(100vw - 32px));
    min-height: 58px;
    padding: 9px 13px 9px 10px;
    align-items: center;
    gap: 10px;
    color: #ffffff;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 999px;
    box-shadow:
        0 16px 36px rgba(30, 64, 175, 0.3),
        0 5px 14px rgba(15, 23, 42, 0.16);
    text-decoration: none;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.support-user-launcher.is-active {
    background: linear-gradient(135deg, #15803d, #166534);
}

.support-user-launcher:hover,
.support-user-launcher:focus-visible {
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow:
        0 19px 42px rgba(30, 64, 175, 0.35),
        0 7px 18px rgba(15, 23, 42, 0.18);
}

.support-user-launcher:focus-visible {
    outline: 3px solid rgba(147, 197, 253, 0.88);
    outline-offset: 3px;
}

.support-user-launcher-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    background: rgba(255, 255, 255, 0.17);
    border-radius: 50%;
    font-size: 1.2rem;
}

.support-user-launcher-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.support-user-launcher-copy strong,
.support-user-launcher-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.support-user-launcher-copy small {
    color: rgba(255, 255, 255, 0.83);
    font-size: 0.78rem;
}

.support-user-launcher-unread {
    display: inline-flex;
    min-width: 23px;
    height: 23px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    color: #b91c1c;
    background: #ffffff;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 850;
}

.support-user-launcher.has-unread {
    animation: cloudorn-support-user-pulse 1.8s ease-in-out infinite;
}

@keyframes cloudorn-support-user-pulse {
    0%, 100% { box-shadow: 0 16px 36px rgba(30, 64, 175, 0.3), 0 0 0 0 rgba(37, 99, 235, 0.25); }
    50% { box-shadow: 0 16px 36px rgba(30, 64, 175, 0.3), 0 0 0 8px rgba(37, 99, 235, 0); }
}

@media (max-width: 700px) {
    .support-contact-card {
        padding: 22px 18px;
    }

    .support-contact-heading,
    .support-contact-action-row,
    .support-contact-form-footer,
    .support-chat-hero,
    .support-chat-room-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .support-contact-action-row .btn-primary,
    .support-contact-action-row .btn-secondary,
    .support-contact-form-footer .btn-primary,
    .support-chat-room-toolbar form,
    .support-chat-room-toolbar button {
        width: 100%;
    }

    .support-chat-page {
        padding-top: 28px;
        padding-bottom: 60px;
    }

    .support-chat-room-toolbar {
        padding: 17px;
    }

    .support-user-launcher {
        left: calc(12px + env(safe-area-inset-left, 0px));
        bottom: calc(14px + env(safe-area-inset-bottom, 0px));
        min-width: 0;
        width: 58px;
        height: 58px;
        padding: 9px;
        grid-template-columns: 1fr;
        place-items: center;
    }

    .support-user-launcher-copy {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
    }

    .support-user-launcher-unread {
        position: absolute;
        top: -5px;
        right: -5px;
        border: 2px solid #ffffff;
    }
}

@media (prefers-reduced-motion: reduce) {
    .support-user-launcher,
    .support-user-launcher.has-unread {
        animation: none;
        transition: none;
    }

    .support-user-launcher:hover,
    .support-user-launcher:focus-visible {
        transform: none;
    }
}

/* =========================================================
   Cloudorn V2.7.5D — Staff/Admin Support Inbox
   ========================================================= */

.header-support-control {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.header-support-link {
    position: relative;
    display: inline-flex;
    min-height: 40px;
    padding: 8px 10px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: var(--color-text-soft);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 700;
    line-height: 1;
    transition:
        color 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.header-support-link:hover,
.header-support-link:focus-visible,
.header-support-control.is-alerting .header-support-link {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-color: #93c5fd;
}

.header-support-link:focus-visible,
.header-support-mute:focus-visible,
.support-alert-mute:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.2);
    outline-offset: 2px;
}

.header-support-count {
    display: inline-flex;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    background: #dc2626;
    border-radius: 999px;
    font-size: 0.74rem;
    line-height: 1;
}

.header-support-count[hidden] {
    display: none;
}

.header-support-mute {
    display: inline-flex;
    width: 31px;
    height: 31px;
    padding: 0;
    align-items: center;
    justify-content: center;
    color: var(--color-muted);
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: 50%;
    cursor: pointer;
    font-size: 0.82rem;
}

.header-support-mute:hover,
.header-support-mute.is-muted {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-color: #bfdbfe;
}

.header-support-control.is-alerting .header-support-link {
    box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.22);
    animation: cloudorn-support-alert-pulse 1.8s ease-out infinite;
}

@keyframes cloudorn-support-alert-pulse {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.24); }
    70% { box-shadow: 0 0 0 9px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

.support-staff-hero-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    flex-wrap: wrap;
}

.support-alert-mute {
    display: inline-flex;
    min-height: 46px;
    padding: 10px 15px;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    cursor: pointer;
    font-weight: 700;
}

.support-alert-mute:hover,
.support-alert-mute.is-muted {
    color: var(--color-primary);
    background: var(--color-primary-soft);
    border-color: #93c5fd;
}

.support-staff-count-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
    margin: 0 0 24px;
}

.support-staff-count-card {
    min-width: 0;
    min-height: 104px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.support-staff-count-card span {
    display: block;
    color: var(--color-muted);
    font-size: 0.88rem;
    font-weight: 700;
}

.support-staff-count-card strong {
    display: block;
    margin-top: 8px;
    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
}

.support-staff-count-card.is-waiting {
    background: #fffbeb;
    border-color: #fde68a;
}

.support-staff-count-card.is-waiting strong {
    color: #92400e;
}

.support-staff-count-card.is-active {
    background: #eff6ff;
    border-color: #bfdbfe;
}

.support-staff-count-card.is-unread {
    background: #fff1f2;
    border-color: #fecdd3;
}

.support-staff-count-card.is-unread strong {
    color: #be123c;
}

.support-inbox-new-activity {
    display: flex;
    margin: 0 0 18px;
    padding: 14px 16px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #1e3a8a;
    background: var(--color-primary-soft);
    border: 1px solid #93c5fd;
    border-radius: var(--radius-medium);
}

.support-inbox-new-activity[hidden] {
    display: none;
}

.support-inbox-new-activity a {
    flex: 0 0 auto;
    color: var(--color-primary);
    font-weight: 800;
}

.support-staff-filter-form {
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(260px, 1fr) auto auto;
    margin: 0 0 24px;
    padding: 18px;
    align-items: end;
    gap: 12px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.support-staff-filter-form label,
.support-staff-reassign-form label {
    display: grid;
    gap: 7px;
    margin: 0;
}

.support-staff-filter-form input,
.support-staff-filter-form select,
.support-staff-reassign-form select {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.support-staff-filter-form input:focus,
.support-staff-filter-form select:focus,
.support-staff-reassign-form select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.support-staff-list {
    display: grid;
    gap: 16px;
}

.support-staff-card,
.support-staff-empty,
.support-staff-user-panel {
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}

.support-staff-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 22px;
    align-items: center;
    gap: 22px;
}

.support-staff-card.has-unread {
    border-color: #93c5fd;
    box-shadow:
        inset 4px 0 0 var(--color-primary),
        0 12px 30px rgba(37, 99, 235, 0.09);
}

.support-staff-card-heading,
.support-staff-card-meta,
.support-staff-card-actions,
.support-staff-user-line,
.support-staff-user-panel-heading {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.support-staff-card-heading,
.support-staff-user-panel-heading {
    justify-content: space-between;
}

.support-staff-card-heading > div {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.support-staff-card-heading time {
    color: var(--color-muted);
    font-size: 0.82rem;
}

.support-staff-card h2 {
    margin: 12px 0 8px;
    font-size: 1.35rem;
    overflow-wrap: anywhere;
}

.support-staff-user-line {
    margin: 0;
    color: var(--color-text-soft);
}

.support-staff-user-line span {
    color: var(--color-muted);
    overflow-wrap: anywhere;
}

.support-staff-card-meta {
    margin-top: 13px;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.support-staff-card-meta span {
    display: inline-flex;
    padding: 5px 9px;
    background: var(--color-background);
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.support-staff-card-actions {
    justify-content: flex-end;
}

.support-staff-card-actions form {
    margin: 0;
}

.support-staff-unread-badge {
    display: inline-flex;
    padding: 6px 9px;
    color: #be123c;
    background: #fff1f2;
    border: 1px solid #fecdd3;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 800;
}

.support-staff-empty {
    padding: 46px 26px;
    text-align: center;
}

.support-staff-empty h2 {
    margin-bottom: 9px;
}

.support-staff-empty p {
    margin-bottom: 0;
}

.staff-tool-card.is-active-tool {
    border-color: #93c5fd;
    background: linear-gradient(135deg, #eff6ff, #ffffff);
}

.staff-tool-card-action {
    margin-top: 16px;
}

.staff-tool-card-action .btn-primary {
    width: 100%;
}

.support-staff-room-layout {
    display: grid;
    grid-template-columns: minmax(290px, 360px) minmax(0, 1fr);
    align-items: start;
    gap: 22px;
}

.support-staff-user-panel {
    position: sticky;
    top: 164px;
    padding: 24px;
}

.support-staff-user-panel-heading {
    align-items: flex-start;
    margin-bottom: 18px;
}

.support-staff-user-panel-heading h2 {
    margin: 0;
    font-size: 1.35rem;
}

.support-staff-user-details > div {
    grid-template-columns: 110px minmax(0, 1fr);
    gap: 12px;
    padding: 10px 0;
}

.support-staff-assignment-box {
    margin-top: 18px;
    padding: 15px;
    color: var(--color-text-soft);
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
    border-radius: var(--radius-small);
}

.support-staff-assignment-box p {
    margin: 4px 0 0;
}

.support-staff-control-stack {
    display: grid;
    gap: 11px;
    margin-top: 18px;
}

.support-staff-control-stack form,
.support-staff-control-stack button {
    width: 100%;
}

.support-staff-reassign-form {
    display: grid;
    gap: 10px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.support-staff-chat-room {
    min-width: 0;
}

.support-staff-chat-room .chat-message-list {
    min-height: 430px;
    max-height: 650px;
}

.support-staff-readonly-note {
    padding: 18px 22px;
    color: var(--color-muted);
    background: #f8fafc;
    border-top: 1px solid var(--color-border);
    text-align: center;
    font-weight: 700;
}

.support-staff-readonly-note[hidden] {
    display: none;
}

@media (max-width: 1050px) {
    .header-support-text {
        display: none;
    }

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

    .support-staff-room-layout {
        grid-template-columns: 1fr;
    }

    .support-staff-user-panel {
        position: static;
    }
}

@media (max-width: 760px) {
    .support-staff-hero-actions,
    .support-inbox-new-activity,
    .support-staff-card,
    .support-staff-card-heading,
    .support-staff-user-panel-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .support-staff-hero-actions .btn-secondary,
    .support-alert-mute,
    .support-inbox-new-activity a,
    .support-staff-card-actions,
    .support-staff-card-actions form,
    .support-staff-card-actions a,
    .support-staff-card-actions button {
        width: 100%;
    }

    .support-staff-filter-form {
        grid-template-columns: 1fr;
    }

    .support-staff-card {
        grid-template-columns: 1fr;
        padding: 20px 17px;
    }

    .support-staff-card-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .support-staff-user-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

@media (max-width: 520px) {
    .support-staff-count-grid {
        grid-template-columns: 1fr;
    }

    .header-support-mute {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .header-support-control.is-alerting .header-support-link {
        animation: none;
    }
}


/* =========================================================
   Cloudorn V2.7.5D.2 — Support sound control correction
   Uses SVG icons consistently across browsers.
   ========================================================= */
.header-support-mute .support-sound-icon {
    display: block;
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
}

/* =========================================================
   Cloudorn V2.7.5D.4 — Compact Support Conversation Layout
   Keeps user and Staff support rooms within a comfortable
   desktop reading width and reduces unnecessary vertical space.
   ========================================================= */

/* Registered-user conversation */
.support-chat-page {
    padding-top: 28px;
    padding-bottom: 56px;
}

.support-chat-page .support-chat-container {
    width: 100%;
    max-width: 980px;
    gap: 16px;
}

.support-chat-page .info-breadcrumb {
    margin-bottom: 0;
}

.support-chat-page .support-chat-hero {
    gap: 16px;
}

.support-chat-page .support-chat-hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.8rem, 3vw, 2.45rem);
    line-height: 1.12;
}

.support-chat-page .support-chat-hero p {
    max-width: 650px;
    font-size: 0.95rem;
    line-height: 1.6;
}

.support-chat-page .support-chat-safety {
    margin-top: 0;
    padding: 12px 14px;
    font-size: 0.9rem;
    line-height: 1.55;
}

.support-chat-page .support-chat-room-toolbar {
    padding: 14px 16px;
    gap: 14px;
}

.support-chat-page .support-chat-message-list {
    height: clamp(260px, 38vh, 410px);
    min-height: 260px;
    max-height: 410px;
    padding: 18px;
}

.support-chat-page .chat-message {
    max-width: min(72%, 620px);
    margin-bottom: 10px;
    padding: 11px 13px;
}

.support-chat-page .support-chat-compose {
    padding: 14px 16px;
}

.support-chat-page .support-chat-compose textarea {
    min-height: 90px;
    max-height: 150px;
}

.support-chat-page .chat-compose-footer {
    min-height: 42px;
    margin-top: 8px;
}

.support-chat-page .support-chat-footer-actions {
    margin-top: 0;
}

/* Staff/Admin conversation */
.support-staff-room-page {
    max-width: 1080px;
    padding-top: 30px;
    padding-bottom: 60px;
}

.support-staff-room-page .info-breadcrumb {
    margin-bottom: 14px;
}

.support-staff-room-page .support-staff-room-hero {
    margin-bottom: 18px;
    align-items: center;
    gap: 18px;
}

.support-staff-room-page .support-staff-room-hero h1 {
    margin: 4px 0 6px;
    font-size: clamp(1.85rem, 3vw, 2.5rem);
    line-height: 1.12;
}

.support-staff-room-page .support-staff-room-hero p:last-child {
    max-width: 620px;
    font-size: 0.92rem;
}

.support-staff-room-page .support-staff-room-layout {
    grid-template-columns: minmax(240px, 290px) minmax(0, 1fr);
    gap: 18px;
}

.support-staff-room-page .support-staff-user-panel {
    top: 146px;
    padding: 18px;
}

.support-staff-room-page .support-staff-user-panel-heading {
    margin-bottom: 14px;
}

.support-staff-room-page .support-staff-user-panel-heading h2 {
    font-size: 1.16rem;
}

.support-staff-room-page .support-staff-user-details > div {
    grid-template-columns: 94px minmax(0, 1fr);
    gap: 9px;
    padding: 7px 0;
    font-size: 0.88rem;
}

.support-staff-room-page .support-staff-assignment-box {
    margin-top: 14px;
    padding: 12px;
    font-size: 0.9rem;
}

.support-staff-room-page .support-staff-control-stack {
    gap: 8px;
    margin-top: 14px;
}

.support-staff-room-page .support-chat-room-toolbar {
    padding: 13px 16px;
}

.support-staff-room-page .support-staff-chat-room .chat-message-list {
    height: clamp(300px, 42vh, 460px);
    min-height: 300px;
    max-height: 460px;
    padding: 18px;
}

.support-staff-room-page .chat-message {
    max-width: min(74%, 620px);
    margin-bottom: 10px;
    padding: 11px 13px;
}

.support-staff-room-page .support-chat-compose {
    padding: 14px 16px;
}

.support-staff-room-page .support-chat-compose textarea {
    min-height: 90px;
    max-height: 150px;
}

.support-staff-room-page .support-staff-readonly-note {
    padding: 14px 18px;
}

/* Preserve two useful columns on ordinary laptop widths. */
@media (min-width: 861px) and (max-width: 1050px) {
    .support-staff-room-page .support-staff-room-layout {
        grid-template-columns: minmax(220px, 260px) minmax(0, 1fr);
    }

    .support-staff-room-page .support-staff-user-panel {
        position: sticky;
        top: 140px;
    }
}

@media (max-width: 860px) {
    .support-staff-room-page .support-staff-room-layout {
        grid-template-columns: 1fr;
    }

    .support-staff-room-page .support-staff-user-panel {
        position: static;
    }
}

@media (max-width: 700px) {
    .support-chat-page {
        padding-top: 22px;
        padding-bottom: 48px;
    }

    .support-chat-page .support-chat-container {
        max-width: none;
        gap: 14px;
    }

    .support-chat-page .support-chat-message-list,
    .support-staff-room-page .support-staff-chat-room .chat-message-list {
        height: clamp(280px, 46vh, 420px);
        min-height: 280px;
        max-height: 420px;
        padding: 15px;
    }

    .support-chat-page .chat-message,
    .support-staff-room-page .chat-message {
        max-width: 88%;
    }

    .support-staff-room-page {
        padding-top: 24px;
        padding-bottom: 50px;
    }

    .support-staff-room-page .support-staff-room-hero {
        align-items: stretch;
    }
}

/* =========================================================
   Cloudorn V2.7.5D.5 — Extra-Compact Support Console
   Further reduces desktop width and vertical height so the
   active conversation, messages and composer fit comfortably.
   ========================================================= */

@media (min-width: 701px) {
    /* Registered-user support room */
    .support-chat-page {
        padding-top: 18px;
        padding-bottom: 36px;
    }

    .support-chat-page .support-chat-container {
        max-width: 820px;
        gap: 11px;
    }

    .support-chat-page .info-breadcrumb {
        font-size: 0.82rem;
    }

    .support-chat-page .support-chat-hero {
        margin-bottom: 0;
        gap: 10px;
    }

    .support-chat-page .support-chat-hero h1 {
        margin: 2px 0 3px;
        font-size: clamp(1.55rem, 2.4vw, 2rem);
        line-height: 1.08;
    }

    .support-chat-page .support-chat-hero p {
        max-width: 560px;
        margin-bottom: 0;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .support-chat-page .support-chat-status-badge {
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .support-chat-page .support-chat-safety {
        padding: 9px 12px;
        font-size: 0.82rem;
        line-height: 1.42;
    }

    .support-chat-page .support-chat-room-toolbar {
        padding: 10px 13px;
        gap: 10px;
    }

    .support-chat-page .support-chat-room-toolbar strong {
        font-size: 0.92rem;
    }

    .support-chat-page .support-chat-room-toolbar p {
        margin-top: 2px;
        font-size: 0.78rem;
        line-height: 1.35;
    }

    .support-chat-page .support-chat-room-toolbar .btn-danger-soft {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 0.82rem;
    }

    .support-chat-page .support-chat-message-list {
        height: clamp(220px, 31vh, 300px);
        min-height: 220px;
        max-height: 300px;
        padding: 13px;
    }

    .support-chat-page .chat-message {
        max-width: min(70%, 520px);
        margin-bottom: 8px;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: 0.86rem;
    }

    .support-chat-page .chat-message-meta {
        margin-bottom: 3px;
        font-size: 0.7rem;
    }

    .support-chat-page .support-chat-compose {
        padding: 10px 13px;
    }

    .support-chat-page .support-chat-compose > label {
        margin-bottom: 5px;
        font-size: 0.86rem;
    }

    .support-chat-page .support-chat-compose textarea {
        min-height: 68px;
        max-height: 105px;
        padding: 9px 11px;
        font-size: 0.86rem;
    }

    .support-chat-page .chat-compose-footer {
        min-height: 36px;
        margin-top: 6px;
    }

    .support-chat-page .chat-compose-footer button {
        min-height: 38px;
        padding: 8px 15px;
        font-size: 0.82rem;
    }

    /* Staff/Admin support room */
    .support-staff-room-page {
        max-width: 960px;
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .support-staff-room-page .info-breadcrumb {
        margin-bottom: 8px;
        font-size: 0.82rem;
    }

    .support-staff-room-page .support-staff-room-hero {
        margin-bottom: 12px;
        gap: 12px;
    }

    .support-staff-room-page .support-staff-room-hero h1 {
        margin: 2px 0 3px;
        font-size: clamp(1.55rem, 2.4vw, 2rem);
        line-height: 1.08;
    }

    .support-staff-room-page .support-staff-room-hero p:last-child {
        margin-bottom: 0;
        font-size: 0.82rem;
    }

    .support-staff-room-page .support-chat-status-badge {
        padding: 6px 10px;
        font-size: 0.76rem;
    }

    .support-staff-room-page .support-staff-room-layout {
        grid-template-columns: 220px minmax(0, 1fr);
        gap: 13px;
    }

    .support-staff-room-page .support-staff-user-panel {
        top: 130px;
        padding: 13px;
        border-radius: 14px;
    }

    .support-staff-room-page .support-staff-user-panel-heading {
        margin-bottom: 8px;
    }

    .support-staff-room-page .support-staff-user-panel-heading h2 {
        font-size: 1rem;
    }

    .support-staff-room-page .support-staff-user-panel-heading .dashboard-eyebrow {
        font-size: 0.68rem;
    }

    .support-staff-room-page .support-staff-user-details > div {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 7px;
        padding: 5px 0;
        font-size: 0.76rem;
    }

    .support-staff-room-page .support-staff-user-details dt {
        font-size: 0.74rem;
    }

    .support-staff-room-page .support-staff-assignment-box {
        margin-top: 9px;
        padding: 9px;
        font-size: 0.78rem;
    }

    .support-staff-room-page .support-staff-control-stack {
        gap: 6px;
        margin-top: 9px;
    }

    .support-staff-room-page .support-staff-control-stack .btn-danger-soft,
    .support-staff-room-page .support-staff-control-stack .btn-primary,
    .support-staff-room-page .support-staff-control-stack .btn-secondary {
        min-height: 38px;
        padding: 8px 11px;
        font-size: 0.8rem;
    }

    .support-staff-room-page .support-chat-room-toolbar {
        padding: 10px 13px;
    }

    .support-staff-room-page .support-chat-room-toolbar strong {
        font-size: 0.9rem;
    }

    .support-staff-room-page .support-chat-room-toolbar p {
        margin-top: 2px;
        font-size: 0.78rem;
    }

    .support-staff-room-page .support-chat-room-toolbar .btn-secondary {
        min-height: 38px;
        padding: 8px 13px;
        font-size: 0.8rem;
    }

    .support-staff-room-page .support-staff-chat-room .chat-message-list {
        height: clamp(240px, 34vh, 325px);
        min-height: 240px;
        max-height: 325px;
        padding: 13px;
    }

    .support-staff-room-page .chat-message {
        max-width: min(72%, 520px);
        margin-bottom: 8px;
        padding: 9px 11px;
        border-radius: 13px;
        font-size: 0.86rem;
    }

    .support-staff-room-page .chat-message-meta {
        margin-bottom: 3px;
        font-size: 0.7rem;
    }

    .support-staff-room-page .support-chat-compose {
        padding: 10px 13px;
    }

    .support-staff-room-page .support-chat-compose > label {
        margin-bottom: 5px;
        font-size: 0.86rem;
    }

    .support-staff-room-page .support-chat-compose textarea {
        min-height: 68px;
        max-height: 105px;
        padding: 9px 11px;
        font-size: 0.86rem;
    }

    .support-staff-room-page .chat-compose-footer {
        min-height: 36px;
        margin-top: 6px;
    }

    .support-staff-room-page .chat-compose-footer button {
        min-height: 38px;
        padding: 8px 15px;
        font-size: 0.82rem;
    }
}

@media (min-width: 701px) and (max-width: 900px) {
    .support-staff-room-page {
        max-width: 860px;
    }

    .support-staff-room-page .support-staff-room-layout {
        grid-template-columns: 200px minmax(0, 1fr);
    }
}

/* =========================================================
   Cloudorn V2.7.5E.1.1 — Compact Staff Shop Moderation
   Uses the existing Cloudorn design-token names.
   ========================================================= */

.staff-moderation-page {
    width: min(1040px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 52px;
}

.staff-moderation-hero {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
    margin-bottom: 16px;
}

.staff-moderation-hero h1 {
    margin: 2px 0 5px;
    font-size: clamp(1.85rem, 3vw, 2.55rem);
    line-height: 1.08;
}

.staff-moderation-hero p:last-child {
    max-width: 660px;
    margin: 0;
    color: var(--color-muted);
    font-size: 0.91rem;
    line-height: 1.5;
}

.staff-moderation-hero .btn-secondary {
    min-height: 40px;
    padding: 8px 14px;
    white-space: nowrap;
}

.staff-moderation-tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.staff-moderation-tabs a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 7px;
    min-height: 42px;
    padding: 8px 11px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: var(--color-surface);
    color: var(--color-text-soft);
    text-decoration: none;
    box-shadow: var(--shadow-small);
    font-size: 0.83rem;
    font-weight: 700;
}

.staff-moderation-tabs a:hover {
    border-color: var(--color-border-strong);
    background: #f8fafc;
}

.staff-moderation-tabs a.is-active {
    border-color: #93c5fd;
    background: var(--color-primary-soft);
    color: var(--color-primary-dark);
}

.staff-moderation-tabs strong {
    color: var(--color-primary);
    font-size: 0.92rem;
}

.staff-moderation-page .staff-security-notice {
    margin: 0 0 14px;
    padding: 11px 14px;
    border-radius: 10px;
    font-size: 0.84rem;
    line-height: 1.45;
}

.staff-moderation-page .staff-security-notice p {
    margin-top: 3px;
}

.staff-moderation-empty,
.staff-moderation-card {
    border: 1px solid var(--color-border);
    border-radius: 14px;
    background: var(--color-surface);
    box-shadow: var(--shadow-small);
}

.staff-moderation-empty {
    padding: 34px 20px;
    text-align: center;
}

.staff-moderation-list {
    display: grid;
    gap: 13px;
    margin-top: 0;
}

.staff-moderation-card {
    padding: 16px 17px;
}

.staff-moderation-card-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
}

.staff-moderation-card-head h2 {
    margin: 6px 0 2px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.staff-moderation-card-head p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
}

.staff-moderation-card-head .btn-secondary {
    min-height: 38px;
    padding: 7px 12px;
    font-size: 0.8rem;
    white-space: nowrap;
}

.staff-moderation-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.staff-moderation-badges .shop-status-badge,
.staff-moderation-badges .admin-visibility-badge {
    padding: 5px 8px;
    font-size: 0.7rem;
}

.staff-moderation-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
    margin: 12px 0 0;
}

.staff-moderation-details > div {
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
}

.staff-moderation-details dt {
    margin-bottom: 1px;
    color: var(--color-muted);
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1.3;
}

.staff-moderation-details dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.staff-moderation-description,
.staff-moderation-review-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    background: #f8fafc;
    font-size: 0.8rem;
}

.staff-moderation-review-note {
    border: 1px solid #fde68a;
    background: #fffbeb;
    color: #78350f;
}

.staff-moderation-description strong,
.staff-moderation-review-note strong {
    font-size: 0.78rem;
}

.staff-moderation-description p,
.staff-moderation-review-note p {
    margin: 2px 0 0;
    line-height: 1.4;
}

.staff-moderation-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 11px;
}

.staff-moderation-actions:has(> form:only-child) {
    grid-template-columns: minmax(0, 560px);
}

.staff-moderation-actions form {
    display: grid;
    gap: 7px;
    padding: 10px;
    border: 1px solid var(--color-border);
    border-radius: 10px;
    background: #f8fafc;
}

.staff-moderation-actions label {
    display: grid;
    gap: 4px;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 750;
}

.staff-moderation-actions label span {
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.staff-moderation-actions textarea {
    width: 100%;
    min-height: 58px;
    max-height: 110px;
    padding: 8px 9px;
    resize: vertical;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    background: var(--color-surface);
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.4;
}

.staff-moderation-actions textarea:focus {
    outline: 2px solid #bfdbfe;
    outline-offset: 1px;
    border-color: var(--color-primary);
}

.staff-moderation-actions button {
    justify-self: end;
    min-height: 38px;
    padding: 7px 13px;
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .staff-moderation-page {
        width: min(100% - 24px, 1040px);
    }

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

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

@media (max-width: 700px) {
    .staff-moderation-page {
        width: min(100% - 20px, 1040px);
        padding: 22px 0 44px;
    }

    .staff-moderation-hero,
    .staff-moderation-card-head {
        flex-direction: column;
        align-items: stretch;
    }

    .staff-moderation-hero .btn-secondary,
    .staff-moderation-card-head .btn-secondary {
        align-self: flex-start;
    }

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

    .staff-moderation-details,
    .staff-moderation-actions,
    .staff-moderation-actions:has(> form:only-child) {
        grid-template-columns: 1fr;
    }

    .staff-moderation-card {
        padding: 14px;
    }

    .staff-moderation-actions button {
        width: 100%;
        justify-self: stretch;
    }
}

/* =========================================================
   Cloudorn V2.7.5E.2 — Restricted Staff User Safety
   ========================================================= */

.staff-user-page {
    width: min(1040px, calc(100% - 32px));
}

.staff-user-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 12px;
}

.staff-user-tabs a {
    display: flex;
    min-height: 42px;
    padding: 8px 11px;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    color: var(--color-text-soft);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 10px;
    box-shadow: var(--shadow-small);
    font-size: 0.83rem;
    font-weight: 700;
    text-decoration: none;
}

.staff-user-tabs a:hover {
    background: #f8fafc;
    border-color: var(--color-border-strong);
}

.staff-user-tabs a.is-active {
    color: var(--color-primary-dark);
    background: var(--color-primary-soft);
    border-color: #93c5fd;
}

.staff-user-tabs strong {
    color: var(--color-primary);
    font-size: 0.92rem;
}

.staff-user-filter-form {
    display: grid;
    grid-template-columns:
        minmax(240px, 1.35fr)
        minmax(150px, 0.6fr)
        minmax(170px, 0.7fr)
        auto;
    margin-bottom: 12px;
    padding: 12px;
    align-items: end;
    gap: 10px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    box-shadow: var(--shadow-small);
}

.staff-user-filter-form label {
    display: grid;
    margin: 0;
    gap: 4px;
    color: var(--color-text);
    font-size: 0.76rem;
    font-weight: 750;
}

.staff-user-filter-form input,
.staff-user-filter-form select,
.staff-user-actions input,
.staff-user-actions textarea {
    width: 100%;
    min-height: 40px;
    padding: 8px 9px;
    color: var(--color-text);
    background: var(--color-surface);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
    font-size: 0.8rem;
}

.staff-user-actions textarea {
    min-height: 58px;
    max-height: 110px;
    resize: vertical;
    line-height: 1.4;
}

.staff-user-filter-form input:focus,
.staff-user-filter-form select:focus,
.staff-user-actions input:focus,
.staff-user-actions textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 2px #bfdbfe;
}

.staff-user-filter-actions {
    display: flex;
    gap: 7px;
}

.staff-user-filter-actions .btn-primary,
.staff-user-filter-actions .btn-secondary {
    min-height: 40px;
    padding: 8px 12px;
    font-size: 0.78rem;
    white-space: nowrap;
}

.staff-user-list {
    display: grid;
    gap: 13px;
}

.staff-user-card {
    padding: 16px 17px;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 14px;
    box-shadow: var(--shadow-small);
}

.staff-user-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.staff-user-card-head h2 {
    margin: 6px 0 2px;
    font-size: 1.2rem;
    line-height: 1.2;
}

.staff-user-card-head p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

.staff-user-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.staff-user-role-badge,
.staff-user-status-badge,
.staff-user-id {
    display: inline-flex;
    padding: 5px 8px;
    align-items: center;
    border-radius: 999px;
    font-size: 0.7rem;
    font-weight: 800;
}

.staff-user-role-badge {
    color: #0e7490;
    background: #ecfeff;
}

.staff-user-role-3 {
    color: #6d28d9;
    background: #f5f3ff;
}

.staff-user-status-badge.is-active {
    color: var(--color-success-text);
    background: var(--color-success-bg);
}

.staff-user-status-badge.is-temporary_banned {
    color: #92400e;
    background: #fef3c7;
}

.staff-user-id {
    flex: 0 0 auto;
    color: var(--color-muted);
    background: #f1f5f9;
    border: 1px solid var(--color-border);
}

.staff-user-details {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0 14px;
    margin: 12px 0 0;
}

.staff-user-details > div {
    min-width: 0;
    padding: 7px 0;
    border-bottom: 1px solid var(--color-border);
}

.staff-user-details dt {
    margin-bottom: 1px;
    color: var(--color-muted);
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1.3;
}

.staff-user-details dd {
    margin: 0;
    color: var(--color-text);
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.staff-user-ban-summary,
.staff-user-review-note {
    margin-top: 10px;
    padding: 9px 11px;
    border-radius: 9px;
    font-size: 0.8rem;
}

.staff-user-ban-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #78350f;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.staff-user-review-note {
    color: var(--color-text-soft);
    background: #f8fafc;
    border: 1px solid var(--color-border);
}

.staff-user-review-note p {
    margin: 2px 0 0;
    line-height: 1.4;
}

.staff-user-actions {
    display: grid;
    grid-template-columns: minmax(0, 560px);
    margin-top: 11px;
}

.staff-user-actions form {
    display: grid;
    padding: 10px;
    gap: 7px;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: 10px;
}

.staff-user-actions label {
    display: grid;
    margin: 0;
    gap: 4px;
    color: var(--color-text);
    font-size: 0.78rem;
    font-weight: 750;
}

.staff-user-actions label span {
    color: var(--color-muted);
    font-size: 0.7rem;
    font-weight: 500;
}

.staff-user-actions button {
    min-height: 38px;
    padding: 7px 13px;
    justify-self: end;
    font-size: 0.78rem;
}

@media (max-width: 900px) {
    .staff-user-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (max-width: 700px) {
    .staff-user-page {
        width: min(100% - 20px, 1040px);
    }

    .staff-user-tabs,
    .staff-user-filter-form,
    .staff-user-details {
        grid-template-columns: 1fr;
    }

    .staff-user-filter-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-user-filter-actions .btn-primary,
    .staff-user-filter-actions .btn-secondary {
        width: 100%;
    }

    .staff-user-card {
        padding: 14px;
    }

    .staff-user-card-head,
    .staff-user-ban-summary {
        align-items: flex-start;
        flex-direction: column;
    }

    .staff-user-actions {
        grid-template-columns: 1fr;
    }

    .staff-user-actions button {
        width: 100%;
        justify-self: stretch;
    }
}


/* =========================================================
   Cloudorn V2.7.5E.3 — Restricted Moderator Paid Plan Activation
   ========================================================= */

.staff-subscription-page {
    max-width: var(--container-width);
}

.staff-subscription-summary {
    display: grid;
    grid-template-columns: minmax(220px, 300px);
    margin-bottom: 20px;
}

.staff-subscription-summary > div {
    display: flex;
    min-height: 92px;
    padding: 18px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.staff-subscription-summary span {
    color: var(--color-muted);
    font-weight: 700;
}

.staff-subscription-summary strong {
    color: var(--color-primary);
    font-size: 1.8rem;
    line-height: 1;
}

.staff-subscription-search {
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    margin-bottom: 24px;
    padding: 18px;
    align-items: end;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.staff-subscription-search label {
    display: grid;
    margin: 0;
    gap: 7px;
}

.staff-subscription-search input,
.staff-subscription-approval-form input,
.staff-subscription-approval-form textarea {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    color: var(--color-text);
    background: #ffffff;
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.staff-subscription-approval-form textarea {
    min-height: 92px;
    resize: vertical;
}

.staff-subscription-search input:focus,
.staff-subscription-approval-form input:focus,
.staff-subscription-approval-form textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.staff-subscription-search-actions {
    display: flex;
    gap: 10px;
}

.staff-subscription-list {
    display: grid;
    gap: 20px;
}

.staff-subscription-card,
.staff-subscription-empty {
    padding: 24px;
    background: #ffffff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-card);
}

.staff-subscription-card-head {
    display: flex;
    margin-bottom: 20px;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.staff-subscription-card-head h2 {
    margin: 5px 0;
    font-size: 1.45rem;
}

.staff-subscription-card-head p:last-child {
    margin-bottom: 0;
    overflow-wrap: anywhere;
}

.staff-subscription-badges {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-subscription-comparison {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.staff-subscription-comparison > section {
    min-width: 0;
    padding: 20px;
    background: #ffffff;
}

.staff-subscription-comparison > section + section {
    background: #f8fbff;
    border-left: 1px solid var(--color-border);
}

.staff-subscription-comparison h3 {
    margin: 3px 0 12px;
    font-size: 1.18rem;
}

.staff-subscription-comparison .dashboard-details > div {
    grid-template-columns: 135px minmax(0, 1fr);
    padding: 9px 0;
}

.staff-subscription-request-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 16px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
}

.staff-subscription-request-meta > div {
    min-width: 0;
    padding: 15px;
    border-right: 1px solid var(--color-border);
}

.staff-subscription-request-meta > div:last-child {
    border-right: 0;
}

.staff-subscription-request-meta strong {
    display: block;
    margin-bottom: 5px;
    color: var(--color-text);
    font-size: 0.86rem;
}

.staff-subscription-request-meta p {
    margin: 0;
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.staff-subscription-approval-form {
    display: grid;
    grid-template-columns: minmax(190px, 0.8fr) minmax(260px, 1.2fr) auto;
    margin-top: 18px;
    padding: 18px;
    align-items: end;
    gap: 14px;
    background: #ecfdf5;
    border: 1px solid #bbf7d0;
    border-radius: var(--radius-medium);
}

.staff-subscription-approval-form label {
    display: grid;
    margin: 0;
    gap: 7px;
}

.staff-subscription-approval-form button {
    min-width: 160px;
}

.staff-subscription-blocked {
    margin-top: 18px;
    padding: 16px 18px;
    color: #9a3412;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: var(--radius-medium);
}

.staff-subscription-blocked p {
    margin: 5px 0 0;
    color: inherit;
}

@media (max-width: 900px) {
    .staff-subscription-comparison,
    .staff-subscription-request-meta,
    .staff-subscription-approval-form {
        grid-template-columns: 1fr;
    }

    .staff-subscription-comparison > section + section {
        border-top: 1px solid var(--color-border);
        border-left: 0;
    }

    .staff-subscription-request-meta > div {
        border-right: 0;
        border-bottom: 1px solid var(--color-border);
    }

    .staff-subscription-request-meta > div:last-child {
        border-bottom: 0;
    }

    .staff-subscription-approval-form button {
        width: 100%;
    }
}

@media (max-width: 700px) {
    .staff-subscription-summary,
    .staff-subscription-search {
        grid-template-columns: 1fr;
    }

    .staff-subscription-search-actions,
    .staff-subscription-card-head {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-subscription-search-actions .btn-primary,
    .staff-subscription-search-actions .btn-secondary {
        width: 100%;
    }

    .staff-subscription-card,
    .staff-subscription-empty {
        padding: 20px 16px;
    }

    .staff-subscription-badges {
        justify-content: flex-start;
    }

    .staff-subscription-comparison > section {
        padding: 16px;
    }

    .staff-subscription-comparison .dashboard-details > div {
        grid-template-columns: 1fr;
        gap: 3px;
    }
}

/* =========================================================
   Cloudorn V2.7.5E.4 — Restricted Reviews & Reports Moderation
   ========================================================= */

.staff-trust-page {
    max-width: var(--container-width);
}

.staff-trust-nav {
    display: flex;
    margin: 0 0 24px;
    padding: 6px;
    gap: 6px;
    overflow-x: auto;
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    box-shadow: var(--shadow-small);
}

.staff-trust-nav a {
    display: inline-flex;
    min-height: 42px;
    padding: 9px 18px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    color: var(--color-text-soft);
    border-radius: var(--radius-small);
    text-decoration: none;
    font-weight: 750;
    white-space: nowrap;
}

.staff-trust-nav a:hover,
.staff-trust-nav a:focus-visible,
.staff-trust-nav a.is-active {
    color: var(--color-primary);
    background: var(--color-primary-soft);
}

.staff-trust-nav a:focus-visible {
    outline: 3px solid rgba(37, 99, 235, 0.18);
    outline-offset: 2px;
}

.staff-trust-count-grid.is-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.staff-trust-count-grid.is-five {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.staff-trust-search .btn-secondary {
    min-height: 46px;
}

.staff-trust-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.staff-trust-card,
.staff-report-card {
    min-width: 0;
}

.staff-review-copy,
.staff-moderation-audit {
    margin-top: 16px;
    padding: 16px;
    border-radius: var(--radius-small);
}

.staff-review-copy {
    background: var(--color-background);
    border: 1px solid var(--color-border);
}

.staff-review-copy p,
.staff-moderation-audit p,
.staff-muted-copy {
    margin: 5px 0 0;
}

.staff-muted-copy {
    color: var(--color-muted);
    font-style: italic;
}

.staff-moderation-audit {
    background: var(--color-primary-soft);
    border: 1px solid #bfdbfe;
}

.staff-moderation-audit > p {
    color: var(--color-text-soft);
    font-size: 0.88rem;
}

.staff-moderation-audit > div {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #bfdbfe;
}

.staff-moderation-audit span {
    color: var(--color-primary-dark);
    font-size: 0.8rem;
    font-weight: 750;
}

.staff-review-action-form {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid var(--color-border);
}

.staff-review-action-form label span,
.staff-report-action-card label span {
    color: var(--color-muted);
    font-size: 0.84rem;
    font-weight: 500;
}

.staff-review-action-form textarea,
.staff-report-action-card textarea {
    min-height: 100px;
    padding: 11px 13px;
    resize: vertical;
    background: #ffffff;
    color: var(--color-text);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius-small);
    outline: none;
}

.staff-review-action-form textarea:focus,
.staff-report-action-card textarea:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.13);
}

.staff-review-action-form button {
    width: fit-content;
}

.staff-report-detail-layout {
    margin-top: 24px;
}

.staff-report-detail-card {
    min-width: 0;
}

.staff-report-details {
    margin-top: 18px;
}

.staff-report-action-card h2 {
    margin-bottom: 10px;
}

.staff-report-action-card > p:not(.dashboard-eyebrow) {
    margin-bottom: 18px;
}

.staff-report-decision-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.staff-report-decision-actions button {
    width: 100%;
}

.staff-report-closed-notice {
    padding: 17px;
    color: #475569;
    background: #f8fafc;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-small);
}

.staff-report-closed-notice p {
    margin: 6px 0 0;
}

@media (max-width: 1050px) {
    .staff-trust-count-grid.is-five {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .staff-trust-count-grid.is-three,
    .staff-trust-count-grid.is-five {
        grid-template-columns: 1fr;
    }

    .staff-trust-search,
    .staff-trust-card .trust-card-heading,
    .staff-report-card .trust-card-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .staff-trust-search .btn-primary,
    .staff-trust-search .btn-secondary,
    .staff-trust-card .btn-secondary,
    .staff-report-card .btn-secondary,
    .staff-review-action-form button {
        width: 100%;
    }

    .staff-report-decision-actions {
        grid-template-columns: 1fr;
    }
}

