/* meriva-design-system.css */
/**
 * ==========================================================================
 * MERIVA DESIGN SYSTEM (MDS) v2.5 - Final Polished Engine
 * ==========================================================================
 * Brand Identity:
 * - Primary: Black / charcoal (#060608 / #0A0A0E)
 * - Accent: Strategic Royal Gold (#D4AF37 / #A88418)
 * - Light Surfaces: Warm cream (#F7F3EC)
 * - Dark Surfaces: Charcoal (#08080A / #0D0D10 / #141418)
 * ==========================================================================
 */

/* ==========================================================================
   1. DESIGN TOKENS (CSS VARIABLES)
   ========================================================================== */
:root {
    /* --- COLOR SYSTEM --- */
    --meriva-primary: #060608;
    --meriva-primary-dark: #030304;
    --meriva-primary-light: #1C1C22;
    --meriva-primary-soft: #2A2A32;
    --meriva-primary-rgb: 6, 6, 8;
    --meriva-navy: #0A0A0E;
    --meriva-night: #060608;
    --meriva-amber: #D4AF37;

    /* Accent: MERİVA gold — CTA / badge / active */
    --meriva-gold: #D4AF37;
    --meriva-gold-light: #E5C45A;
    --meriva-gold-dark: #A88418;
    --meriva-gold-soft: rgba(212, 175, 55, 0.16);
    --meriva-gold-glow: rgba(212, 175, 55, 0.10);
    --meriva-gold-gradient: linear-gradient(135deg, #E5C45A 0%, #D4AF37 55%, #A88418 100%);

    /* Light Theme Surfaces & Backgrounds */
    --meriva-background: #F7F3EC;
    --meriva-surface: #FFFFFF;
    --meriva-surface-2: #F7F3EC;
    --meriva-surface-elevated: #FFFFFF;
    --meriva-surface-subtle: #F1EDE4;
    --meriva-border: #E2E8F0;
    --meriva-border-subtle: #EDF2F7;
    --meriva-text: #0F172A;
    --meriva-text-muted: #64748B;
    --meriva-text-subtle: #94A3B8;
    --meriva-bg: var(--meriva-background);

    /* Dark Theme Surfaces & Backgrounds */
    --meriva-dark-bg: #060608;
    --meriva-dark-surface: #0A0A0E;
    --meriva-dark-surface-elevated: #0D0D10;
    --meriva-dark-surface-card: #1C1C22;
    --meriva-dark-border: rgba(212, 175, 55, 0.12);
    --meriva-dark-border-subtle: rgba(255, 255, 255, 0.04);
    --meriva-dark-text: #F7F3EC;
    --meriva-dark-text-muted: #9A9AAA;
    --meriva-dark-text-subtle: #4A4A5A;

    /* Semantic / Status Colors */
    --meriva-success: #10B981;
    --meriva-success-dark: #059669;
    --meriva-success-soft: rgba(16, 185, 129, 0.12);

    --meriva-warning: #F59E0B;
    --meriva-warning-dark: #D97706;
    --meriva-warning-soft: rgba(245, 158, 11, 0.12);

    --meriva-danger: #F43F5E;
    --meriva-danger-dark: #E11D48;
    --meriva-danger-soft: rgba(244, 63, 94, 0.12);

    --meriva-info: #0EA5E9;
    --meriva-info-dark: #0284C7;
    --meriva-info-soft: rgba(14, 165, 233, 0.12);

    /* --- TYPOGRAPHY TOKENS --- */
    --meriva-font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --meriva-font-mono: 'JetBrains Mono', monospace;

    /* Type Scale */
    --meriva-font-size-display: clamp(2rem, 5.4vw, 3.75rem);
    --meriva-font-size-h1:      clamp(1.45rem, 2.8vw, 2rem);
    --meriva-font-size-h2:      clamp(1.2rem, 2.2vw, 1.6rem);
    --meriva-font-size-h3:      clamp(1.05rem, 1.6vw, 1.25rem);
    --meriva-font-size-h4:      1.0625rem;
    --meriva-font-size-body-lg: 1.0625rem;
    --meriva-font-size-body:    1rem;
    --meriva-font-size-body-sm: 0.875rem;
    --meriva-font-size-caption: 0.8125rem;
    --meriva-font-size-label:   0.75rem;
    --meriva-leading-tight: 1.22;
    --meriva-leading-body: 1.6;

    /* --- SPACING TOKENS (4/8pt Grid) --- */
    --meriva-space-1:  4px;
    --meriva-space-2:  8px;
    --meriva-space-3:  12px;
    --meriva-space-4:  16px;
    --meriva-space-5:  20px;
    --meriva-space-6:  24px;
    --meriva-space-8:  32px;
    --meriva-space-10: 40px;
    --meriva-space-12: 48px;
    --meriva-space-16: 64px;
    --meriva-space-20: 80px;
    --meriva-space-24: 96px;

    /* --- BORDER RADIUS TOKENS --- */
    --meriva-radius-xs:   4px;
    --meriva-radius-sm:   6px;
    --meriva-radius-md:   10px;
    --meriva-radius-lg:   14px;
    --meriva-radius-xl:   20px;
    --meriva-radius-2xl:  28px;
    --meriva-radius-pill: 9999px;
    --meriva-radius-full: 50%;
    --meriva-radius-small: var(--meriva-radius-sm);
    --meriva-radius-medium: var(--meriva-radius-md);
    --meriva-radius-large: var(--meriva-radius-lg);

    --meriva-container: 1320px;
    --meriva-gutter: 16px;

    /* --- SHADOW / ELEVATION TOKENS --- */
    --meriva-shadow-subtle:   0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    --meriva-shadow-default:  0 4px 12px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.03);
    --meriva-shadow-elevated: 0 10px 25px -3px rgba(0, 0, 0, 0.08), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
    --meriva-shadow-floating: 0 20px 35px -5px rgba(0, 0, 0, 0.12), 0 8px 16px -4px rgba(0, 0, 0, 0.06);
    --meriva-shadow-gold:     0 0 20px rgba(234, 179, 8, 0.25);
    --meriva-shadow-navy:     0 8px 24px rgba(0, 0, 0, 0.45);

    /* --- SHELL DIMENSIONS --- */
    --meriva-sidebar-width: 260px;
    --meriva-sidebar-width-collapsed: 72px;
    --meriva-header-height: 64px;
    --meriva-topbar-height: 0px;
    --meriva-sidebar-motion: 0.38s cubic-bezier(0.16, 1, 0.3, 1);

    /* --- TRANSITIONS --- */
    --meriva-transition-fast:   0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --meriva-transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --meriva-transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   2. GLOBAL RESET & BASE
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
}

html {
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--meriva-font-sans);
    font-size: var(--meriva-font-size-body);
    line-height: var(--meriva-leading-body);
    color: var(--meriva-text);
    background-color: var(--meriva-background);
    margin: 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    -webkit-font-smoothing: antialiased;
}

body.m-sidebar-open {
    overflow: hidden;
}

[data-bs-theme="dark"] body {
    color: var(--meriva-dark-text);
    background-color: var(--meriva-dark-bg);
}

img, svg, video, canvas {
    max-width: 100%;
    height: auto;
    display: inline-block;
    vertical-align: middle;
}

:focus-visible {
    outline: 2px solid var(--meriva-gold) !important;
    outline-offset: 2px !important;
}

/* ==========================================================================
   3. PANEL PROFILE MENU (header chrome)
   ========================================================================== */
.m-app-header:has(.m-panel-profile) {
    overflow: visible;
}

.m-panel-profile {
    position: relative;
    flex-shrink: 0;
}

.m-panel-profile-trigger {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    max-width: 220px;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 1) calc(var(--m-space) * 1);
    border: 1px solid var(--meriva-dark-border);
    border-radius: var(--meriva-radius-pill);
    background: transparent;
    color: inherit;
    cursor: pointer;
}

.m-panel-profile-trigger:hover,
.m-panel-profile-trigger[aria-expanded="true"] {
    border-color: var(--meriva-gold);
}

.m-panel-profile-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    text-align: left;
    line-height: 1.15;
}

.m-panel-profile-name {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 120px;
}

.m-panel-profile-role {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--meriva-gold);
}

.m-panel-profile-caret {
    font-size: var(--m-type-12);
    opacity: 0.7;
}

.m-panel-profile-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 8px);
    z-index: 1080;
    min-width: 240px;
    max-width: min(280px, calc(100vw - 24px));
    padding: calc(var(--m-space) * 3) 0 calc(var(--m-space) * 2);
    background: var(--meriva-dark-surface);
    border: 1px solid var(--meriva-dark-border);
    border-radius: var(--meriva-radius-lg);
    box-shadow: var(--meriva-shadow-navy);
    color: var(--meriva-dark-text);
}

.m-panel-profile-identity {
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 4) calc(var(--m-space) * 3);
    border-bottom: 1px solid var(--meriva-dark-border);
    margin-bottom: calc(var(--m-space) * 2);
}

.m-panel-profile-identity-name {
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    color: #fff;
}

.m-panel-profile-identity-role {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    color: var(--meriva-gold);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.m-panel-profile-group {
    font-size: var(--meriva-font-size-label);
    font-weight: var(--m-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--meriva-dark-text-subtle);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 4) calc(var(--m-space) * 1);
}

.m-panel-profile-item {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    width: 100%;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 4);
    border: 0;
    background: transparent;
    color: var(--meriva-dark-text);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}

.m-panel-profile-item i {
    width: 16px;
    text-align: center;
    color: var(--meriva-gold);
}

.m-panel-profile-item:hover,
.m-panel-profile-item:focus-visible {
    background: var(--meriva-dark-surface-elevated);
    color: #fff;
}

.m-panel-profile-item.is-current {
    color: var(--meriva-gold);
    background: var(--meriva-dark-surface-card);
    font-weight: var(--m-weight);
}

.m-panel-profile-sep {
    height: 1px;
    margin: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    background: var(--meriva-dark-border);
}

.m-panel-profile-logout {
    color: #f87171;
}

.m-panel-profile-logout i {
    color: #f87171;
}

.m-panel-dev-login {
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 1);
}

.m-panel-dev-login-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 1);
    padding: 0 calc(var(--m-space) * 1) calc(var(--m-space) * 2);
}

.m-panel-dev-login-actions .m-btn {
    font-size: var(--m-type-12);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
}

@media (max-width: 575.98px) {
    .m-panel-profile-meta {
        display: none;
    }

    .m-panel-profile-trigger {
        padding-right: calc(var(--m-space) * 2);
        max-width: none;
    }
}

/* ==========================================================================
   4. APP SHELL LAYOUT ARCHITECTURE
   ========================================================================== */
.m-app-shell {
    display: flex;
    min-height: 100vh;
    width: 100%;
    position: relative;
    background-color: var(--meriva-background);
}
[data-bs-theme="dark"] .m-app-shell {
    background-color: var(--meriva-dark-bg);
}

/* --- SIDEBAR --- */
.m-app-sidebar {
    width: var(--meriva-sidebar-width);
    min-width: var(--meriva-sidebar-width);
    background-color: var(--meriva-dark-surface);
    border-right: 1px solid var(--meriva-dark-border);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100vh;
    position: sticky;
    top: 0;
    z-index: 1050;
    padding: var(--meriva-space-4);
    overflow-x: hidden;
    overflow-y: auto;
    flex: 0 0 var(--meriva-sidebar-width);
    transition:
        width var(--meriva-sidebar-motion),
        min-width var(--meriva-sidebar-motion),
        flex-basis var(--meriva-sidebar-motion),
        padding var(--meriva-sidebar-motion),
        transform var(--meriva-sidebar-motion);
}

.m-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--meriva-space-3);
    margin-bottom: var(--meriva-space-2);
    border-bottom: 1px solid var(--meriva-dark-border);
}

.m-sidebar-brand {
    display: flex;
    align-items: center;
    gap: var(--meriva-space-2);
    text-decoration: none;
}

.m-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    overflow-y: auto;
    overflow-x: hidden;
    flex-grow: 1;
    padding-right: calc(var(--m-space) * 1);
}

.m-sidebar-nav::-webkit-scrollbar {
    width: 4px;
}
.m-sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--m-radius-8);
}

.m-nav-group-heading {
    font-size: var(--meriva-font-size-label);
    font-weight: var(--m-weight);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--meriva-dark-text-subtle);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 1);
}

.m-nav-item {
    color: var(--meriva-dark-text-muted);
    font-size: var(--meriva-font-size-body-sm);
    font-weight: var(--m-weight);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    min-height: 40px;
    border-radius: var(--meriva-radius-md);
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-decoration: none;
    transition: var(--meriva-transition-fast);
    border-left: 3px solid transparent;
    white-space: nowrap;
}

.m-nav-item span {
    display: inline-flex;
    align-items: center;
    min-width: 0;
    white-space: nowrap;
}

.m-nav-item:hover {
    color: #FFFFFF;
    background-color: var(--meriva-dark-surface-elevated);
}

.m-nav-item.active {
    background-color: var(--meriva-dark-surface-card);
    color: var(--meriva-gold);
    border-left-color: var(--meriva-gold);
    font-weight: var(--m-weight);
}

.m-nav-item-icon {
    font-size: var(--m-type-16);
    width: 24px;
    text-align: center;
    margin-right: calc(var(--m-space) * 2);
    display: inline-block;
    vertical-align: middle;
}

.m-sidebar-footer {
    padding-top: var(--meriva-space-3);
    margin-top: var(--meriva-space-2);
    border-top: 1px solid var(--meriva-dark-border);
}

.m-sidebar-user-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    background-color: var(--meriva-dark-surface-elevated);
    border: 1px solid var(--meriva-dark-border);
    border-radius: var(--meriva-radius-md);
    text-decoration: none;
    color: var(--meriva-dark-text);
    transition: var(--meriva-transition-fast);
}
.m-sidebar-user-card:hover {
    background-color: var(--meriva-dark-surface-card);
    color: #FFFFFF;
    border-color: rgba(234, 179, 8, 0.3);
}

/* --- MAIN CONTAINER & HEADER --- */
.m-app-container {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background-color: var(--meriva-background);
    transition: transform var(--meriva-sidebar-motion);
}
[data-bs-theme="dark"] .m-app-container {
    background-color: var(--meriva-dark-bg);
}

/* Desktop: icon rail that expands on hover; main column tracks the width. */
@media (min-width: 992px) {
    .m-app-sidebar {
        width: var(--meriva-sidebar-width-collapsed);
        min-width: var(--meriva-sidebar-width-collapsed);
        flex: 0 0 var(--meriva-sidebar-width-collapsed);
        padding: var(--meriva-space-4) calc(var(--m-space) * 3);
        transition-delay: 0.12s;
    }

    .m-app-sidebar:hover,
    .m-app-sidebar:focus-within,
    .m-app-sidebar.is-hover-open {
        width: var(--meriva-sidebar-width);
        min-width: var(--meriva-sidebar-width);
        flex-basis: var(--meriva-sidebar-width);
        padding: var(--meriva-space-4);
        transition-delay: 0s;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-header {
        justify-content: center;
        border-bottom-color: transparent;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-brand {
        justify-content: center;
        gap: 0;
        width: 100%;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-brand > div,
    body:not(.m-role-panel) .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-nav-group-heading,
    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-user-card .fw-bold,
    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-user-card .text-secondary,
    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-user-card .bi-chevron-right,
    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-footer form {
        opacity: 0;
        width: 0;
        height: 0;
        overflow: hidden;
        margin: 0;
        padding: 0;
        pointer-events: none;
        white-space: nowrap;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-nav-item {
        justify-content: center;
        padding-left: 0;
        padding-right: 0;
        border-left-width: 0;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-nav-item span {
        font-size: 0;
        letter-spacing: 0;
        gap: 0;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-nav-item-icon {
        font-size: var(--m-type-20);
        margin-right: 0;
        width: 24px;
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-user-card {
        justify-content: center;
        margin-right: 0!important;
        padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    }

    .m-app-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-footer > .d-flex {
        justify-content: center;
    }
}

.m-app-header {
    min-height: var(--meriva-header-height);
    height: auto;
    background-color: var(--meriva-surface);
    border-bottom: 1px solid var(--meriva-border);
    padding: calc(var(--m-space) * 2) var(--meriva-space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 1040;
    backdrop-filter: blur(12px);
}
[data-bs-theme="dark"] .m-app-header {
    background-color: var(--meriva-dark-surface);
    border-bottom-color: var(--meriva-dark-border);
}

.m-app-main {
    flex-grow: 1;
    padding: var(--meriva-space-6);
    max-width: var(--meriva-container);
    width: 100%;
    margin: 0 auto;
}




.m-card-stat {
    padding: var(--meriva-space-4);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 110px;
}
.m-card-stat:hover {
    border-color: var(--meriva-text-muted);
    transform: translateY(-2px);
    box-shadow: var(--meriva-shadow-default);
}
[data-bs-theme="dark"] .m-card-stat:hover {
    border-color: rgba(234, 179, 8, 0.3);
}

/* Dark Theme Specific Cards */
.m-hero-card-dark {
    background: radial-gradient(circle at 85% 50%, #1C1C22 0%, #0A0A0E 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--meriva-radius-xl);
    padding: var(--meriva-space-6);
    position: relative;
    overflow: hidden;
}

.m-stat-card-dark {
    background-color: var(--meriva-dark-surface-elevated);
    border: 1px solid var(--meriva-dark-border);
    border-radius: var(--meriva-radius-lg);
    box-shadow: var(--meriva-shadow-navy);
}

/* ==========================================================================
   7. INPUT & FORM SYSTEM
   ========================================================================== */
.m-form-group { margin-bottom: var(--meriva-space-4); }

.m-form-label, .form-label {
    display: block;
    font-size: var(--meriva-font-size-body-sm);
    font-weight: var(--m-weight);
    margin-bottom: var(--meriva-space-2);
    color: var(--meriva-text);
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}
[data-bs-theme="dark"] .m-form-label,
[data-bs-theme="dark"] .form-label { color: var(--meriva-dark-text); }


/* ==========================================================================
   8. BADGE SYSTEM
   ========================================================================== */
.m-badge {
    font-family: var(--meriva-font-sans);
    font-size: var(--meriva-font-size-caption);
    font-weight: var(--m-weight);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    border-radius: var(--meriva-radius-pill);
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    line-height: 1.25;
    white-space: nowrap;
}

.m-badge-success, .m-badge-emerald { background-color: var(--meriva-success-soft); color: var(--meriva-success); border: 1px solid rgba(16, 185, 129, 0.25); }
.m-badge-warning { background-color: var(--meriva-warning-soft); color: var(--meriva-warning-dark); border: 1px solid rgba(245, 158, 11, 0.25); }
.m-badge-rose{ background-color: var(--meriva-danger-soft); color: var(--meriva-danger); border: 1px solid rgba(244, 63, 94, 0.25); }

.m-badge-neutral, .m-badge-slate { background-color: var(--meriva-surface-subtle); color: var(--meriva-text-muted); border: 1px solid var(--meriva-border); }
[data-bs-theme="dark"] .m-badge-neutral,
[data-bs-theme="dark"] .m-badge-slate { background-color: var(--meriva-dark-surface-card); color: var(--meriva-dark-text-muted); border-color: var(--meriva-dark-border); }

.m-badge-premium, .m-badge-gold {
    background-color: var(--meriva-gold-glow);
    color: var(--meriva-gold-dark);
    border: 1px solid rgba(234, 179, 8, 0.4);
    font-weight: var(--m-weight);
}
[data-bs-theme="dark"] .m-badge-premium,
[data-bs-theme="dark"] .m-badge-gold { color: var(--meriva-gold-light); }

/* ==========================================================================
   9. AVATAR SYSTEM
   ========================================================================== */
.m-avatar {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--meriva-radius-full);
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--meriva-surface-subtle);
    font-weight: var(--m-weight);
    color: var(--meriva-text);
}






/* ==========================================================================
   10. TABLE SYSTEM
   ========================================================================== */
.m-table-container {
    width: 100%;
    overflow-x: auto;
    border: 1px solid var(--meriva-border);
    border-radius: var(--meriva-radius-lg);
    background-color: var(--meriva-surface);
    -webkit-overflow-scrolling: touch;
}
[data-bs-theme="dark"] .m-table-container {
    border-color: var(--meriva-dark-border);
    background-color: var(--meriva-dark-surface);
}

.m-table {
    width: 100%;
    min-width: 540px;
    margin-bottom: 0;
    border-collapse: collapse;
    font-size: var(--meriva-font-size-body-sm);
}

.m-table th {
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    font-weight: var(--m-weight);
    font-size: var(--meriva-font-size-caption);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--meriva-text-muted);
    background-color: var(--meriva-surface-subtle);
    border-bottom: 1px solid var(--meriva-border);
}
[data-bs-theme="dark"] .m-table th {
    background-color: var(--meriva-dark-surface-elevated);
    border-bottom-color: var(--meriva-dark-border);
    color: var(--meriva-dark-text-muted);
}

.m-table td {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    vertical-align: middle;
    border-bottom: 1px solid var(--meriva-border-subtle);
    color: var(--meriva-text);
}
[data-bs-theme="dark"] .m-table td {
    border-bottom-color: var(--meriva-dark-border-subtle);
    color: var(--meriva-dark-text);
}

.m-table tbody tr:hover { background-color: var(--meriva-surface-subtle); }
[data-bs-theme="dark"] .m-table tbody tr:hover { background-color: var(--meriva-dark-surface-card); }

/* ==========================================================================
   11. EMPTY STATE & ALERTS
   ========================================================================== */
.m-empty-state {
    padding: var(--meriva-space-12) var(--meriva-space-6);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.m-empty-title { font-size: var(--meriva-font-size-h3); font-weight: var(--m-weight); color: var(--meriva-text); margin-bottom: var(--meriva-space-2); overflow-wrap: break-word; word-break: normal; }
[data-bs-theme="dark"] .m-empty-title { color: var(--meriva-dark-text); }
.m-empty-desc { font-size: var(--meriva-font-size-body-sm); color: var(--meriva-text-muted); max-width: 420px; margin-bottom: var(--meriva-space-5); overflow-wrap: break-word; word-break: normal; }







.m-alert {
    padding: var(--meriva-space-4);
    border-radius: var(--meriva-radius-md);
    border: 1px solid transparent;
    display: flex;
    align-items: flex-start;
    gap: calc(var(--m-space) * 3);
    font-size: var(--meriva-font-size-body-sm);
    margin-bottom: var(--meriva-space-4);
}

.m-alert-warning { background-color: var(--meriva-warning-soft); border-color: rgba(245, 158, 11, 0.3); color: var(--meriva-warning-dark); }
.m-alert-danger  { background-color: var(--meriva-danger-soft);  border-color: rgba(244, 63, 94, 0.3);  color: var(--meriva-danger-dark); }


/* Scoped flash toast: global svg { height:auto } otherwise fills the main column. */
.m-flash-toast {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1080;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    width: min(340px, calc(100vw - 24px));
    min-height: 56px;
    max-height: min(40vh, 12rem);
    margin: 0;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2) calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: #14120f;
    color: #f4f0e6;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    overflow-wrap: break-word;
    word-break: normal;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.m-flash-toast.is-success {
    border-color: rgba(16, 185, 129, 0.4);
    background: #10231c;
}
.m-flash-toast.is-danger {
    border-color: rgba(244, 63, 94, 0.4);
    background: #2a1216;
    max-height: min(60vh, 16rem);
}
.m-flash-toast.is-info {
    border-color: rgba(56, 189, 248, 0.35);
    background: #10212b;
}
.m-flash-toast__icon,
.m-flash-toast__close {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
}
.m-flash-toast__icon .v4-icon,
.m-flash-toast__icon svg,
.m-flash-toast__close .v4-icon,
.m-flash-toast__close svg {
    width: 20px !important;
    height: 20px !important;
    max-width: 20px !important;
    max-height: 20px !important;
    display: block;
    pointer-events: none;
}
.m-flash-toast__msg {
    flex: 1 1 auto;
    min-width: 0;
    margin: 0;
    font-size: var(--m-type-14);
    line-height: 1.35;
    overflow-wrap: break-word;
    word-break: normal;
}
.m-flash-toast__close {
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    border-radius: var(--m-radius-8);
}
.m-flash-toast__close:hover,
.m-flash-toast__close:focus-visible {
    background: rgba(255, 255, 255, 0.08);
}
.m-flash-toast.is-leaving {
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}
.m-flash-toast.is-gone,
.m-flash-toast[hidden] {
    display: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .m-flash-toast {
        transition: none;
    }
}

/* ==========================================================================
   13. RESPONSIVE DRAWER & BREAKPOINT RULES
   ========================================================================== */
.m-sidebar-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(4, 7, 17, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1045;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--meriva-transition-normal), visibility var(--meriva-transition-normal);
}
.m-sidebar-overlay.show {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 991.98px) {
    .m-app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        width: min(var(--meriva-sidebar-width), 88vw);
        min-width: 0;
        max-width: min(var(--meriva-sidebar-width), 88vw);
        flex: none;
        height: 100dvh;
        z-index: 1055;
        box-shadow: var(--meriva-shadow-floating);
        padding: var(--meriva-space-4);
        padding-top: calc(var(--meriva-space-4) + env(safe-area-inset-top, 0px));
        transform: translateX(-105%);
        transition-delay: 0s;
    }
    .m-app-sidebar.show-mobile {
        transform: translateX(0);
    }
    .m-app-shell {
        overflow-x: visible;
    }
    .m-app-container {
        transform: none;
    }
    body.m-sidebar-open .m-app-container {
        transform: none;
    }
    .m-app-header {
        position: relative;
        padding: calc(var(--m-space) * 2) var(--meriva-space-4);
    }
    .m-app-main {
        padding: var(--meriva-space-4);
    }
    
    
    
    
    
}

@media (max-width: 767.98px) {
    .m-app-main {
        padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    }

    .m-card {
        padding: calc(var(--m-space) * 4)!important;
        border-radius: var(--meriva-radius-md);
    }

    .m-input, .m-select, .m-textarea,
    .form-control, .form-select {
        font-size: var(--m-type-16)!important;
    }

    
    
    
}

/* ==========================================================================
   14. REDUCED MOTION SUPPORT (ACCESSIBILITY)
   ========================================================================== */

.m-h1 { font-size: var(--meriva-font-size-h1); font-weight: var(--m-weight); letter-spacing: -0.03em; line-height: var(--meriva-leading-tight); }
.m-h2 { font-size: var(--meriva-font-size-h2); font-weight: var(--m-weight); letter-spacing: -0.02em; line-height: var(--meriva-leading-tight); }
.m-h3 { font-size: var(--meriva-font-size-h3); font-weight: var(--m-weight); letter-spacing: -0.01em; line-height: 1.3; }
.m-caption { font-size: var(--meriva-font-size-caption); line-height: 1.5; color: var(--meriva-text-muted); }

.m-font-mono { font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.fw-extrabold { font-weight: var(--m-weight)!important; }



.m-avatar-status { position: absolute; bottom: 0; right: 0; width: 10px; height: 10px; border-radius: var(--m-radius-pill); border: 2px solid #0A0A0E; background: #22c55e; }
.m-card-action { display: flex; gap: calc(var(--m-space) * 2); align-items: center; }
input.m-check { width: 1.05rem; height: 1.05rem; accent-color: var(--meriva-gold); }
.m-validation-feedback { color: #ef4444; font-size: var(--m-type-12); margin-top: calc(var(--m-space) * 1); }




.m-city-leaflet {
    height: 420px;
    width: 100%;
    max-width: 100%;
}
.m-turkey-map-wrapper {
    overflow: hidden;
    max-width: 100%;
}

@media (max-width: 768px) {
    .m-city-leaflet { height: 260px; }
    .m-tr-map { max-height: 180px !important; }
}



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

/* meriva-screens.css */
/* ==========================================================================
   MERİVA 4 ÖZGÜN EKRAN TEMALARI & VEKTÖR VARLIKLARI
   1. Kurucu Yönetim Ekranı (Deep Dark Executive Theme)
   2. Siyah Ekran (Tactical Dark-Ops Moderation Theme)
   3. Esnaf Ekranı (Light Business Merchant Theme with Dark Sidebar)
   4. Beyaz Ekran (Pure Bright Community Member Theme)
   ========================================================================== */

:root {
    --gold: var(--meriva-gold);
    --gold-hover: var(--meriva-gold-dark);
    --gold-glow: var(--meriva-gold-glow);
    --gold-gradient: var(--meriva-gold-gradient);
    --gold-card-bg: linear-gradient(135deg, #1c1917 0%, #0c0a09 100%);
}

/* ==========================================================================
   MERİVA PREMIUM KEŞFET TEMASI & BİLEŞENLERİ (DARK NAVY & GOLD)
   ========================================================================== */
:root {
    --m-navy-900: #060608;
    --m-navy-800: #0A0A0E;
    --m-navy-700: #1C1C22;
    --m-navy-card: #0D0D10;
    --m-gold: #D4AF37;
    --m-gold-light: #E8C866;
    --m-gold-glow: rgba(212, 175, 55, 0.28);
    --m-text-light: #F5F7FA;
    --m-text-muted: #9DA9BD;
}

/* Navbar Cam / Glassmorphism */


/* ==========================================================================
   MERİVA MODERN MERKEZİ DİYALOG / ONAY PENCERESİ (MODAL CONFIRM SYSTEM)
   ========================================================================== */
.m-dialog-overlay {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(7, 26, 61, 0.78);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 10500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.m-dialog-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

.m-dialog-card {
    background: #0D234A;
    border: 1px solid rgba(212, 175, 55, 0.35);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 35px rgba(212, 175, 55, 0.15);
    border-radius: var(--m-radius-16);
    padding: calc(var(--m-space) * 8) calc(var(--m-space) * 7);
    max-width: 440px;
    width: 90%;
    text-align: center;
    transform: scale(0.9);
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.m-dialog-overlay.show .m-dialog-card {
    transform: scale(1);
}

.m-dialog-icon-wrap {
    width: 64px;
    height: 64px;
    margin: 0 auto calc(var(--m-space) * 5) auto;
    border-radius: var(--m-radius-pill);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--m-type-28);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.m-dialog-icon-danger {
    background: rgba(239, 68, 68, 0.18);
    color: #EF4444;
    border: 1px solid rgba(239, 68, 68, 0.4);
}

.m-dialog-icon-warning {
    background: rgba(212, 175, 55, 0.18);
    color: #E8C866;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.m-dialog-icon-info {
    background: rgba(212, 175, 55, 0.18);
    color: #E5C45A;
    border: 1px solid rgba(212, 175, 55, 0.4);
}

.m-dialog-icon-success {
    background: rgba(16, 185, 129, 0.18);
    color: #10B981;
    border: 1px solid rgba(16, 185, 129, 0.4);
}

.m-dialog-title {
    color: #FFFFFF;
    font-weight: var(--m-weight);
    font-size: var(--m-type-20);
    letter-spacing: -0.3px;
    margin-bottom: calc(var(--m-space) * 2);
}

.m-dialog-message {
    color: #9DA9BD;
    font-size: var(--m-type-14);
    line-height: 1.5;
    margin-bottom: calc(var(--m-space) * 6);
}

.m-dialog-actions {
    display: flex;
    gap: calc(var(--m-space) * 3);
    justify-content: center;
    flex-wrap: wrap;
}

.m-dialog-cancel-btn {
    border-radius: var(--m-radius-16);
    font-weight: var(--m-weight);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 6);
    background: rgba(255, 255, 255, 0.08);
    color: #F5F7FA !important;
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.2s ease;
    font-size: var(--m-type-14);
}

.m-dialog-cancel-btn:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-1px);
}

.m-dialog-confirm-btn {
    border-radius: var(--m-radius-16);
    font-weight: var(--m-weight);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 7);
    border: none;
    transition: all 0.2s ease;
    font-size: var(--m-type-14);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.m-dialog-confirm-btn:hover {
    transform: translateY(-2px);
}

.m-dialog-confirm-danger {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: #FFFFFF !important;
    box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4);
}

.m-dialog-confirm-danger:hover {
    background: linear-gradient(135deg, #F87171 0%, #EF4444 100%);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.5);
}

.m-dialog-confirm-warning {
    background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
    color: #060608 !important;
    box-shadow: 0 4px 16px rgba(212, 175, 55, 0.4);
}

.m-dialog-confirm-warning:hover {
    background: linear-gradient(135deg, #E8C866 0%, #D4AF37 100%);
    box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

.m-app-header .m-btn--icon,
.m-bell {
    position: relative;
}

.m-bell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    flex-shrink: 0;
}

.m-bell-count {
    pointer-events: none;
}

.m-bell-slot {
    position: relative;
    display: inline-flex;
}

.m-push-menu {
    position: absolute;
    top: calc(100% + 0.35rem);
    right: 0;
    z-index: 40;
    width: min(18rem, calc(100vw - 1.5rem));
    padding: 0.75rem;
    background: var(--m-surface, #141418);
    color: inherit;
    border: 1px solid var(--m-line, rgba(255, 255, 255, 0.12));
    border-radius: 0.75rem;
}

.m-push-menu[hidden],
.m-push-menu [hidden] {
    display: none;
}

.m-push-menu svg {
    width: 1.25rem;
    height: 1.25rem;
}

.m-push-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* meriva-premium-foundation.css */
/**
 * MERİVA V1.1 — Premium UI foundation
 * Night navy + restrained gold. Layout containment without global overflow:hidden.
 */

:root {
    --gold: var(--meriva-gold);
    --gold-hover: var(--meriva-gold-dark);
    --gold-glow: var(--meriva-gold-glow);
    --gold-gradient: var(--meriva-gold-gradient);
}

html,
body,
.m-app-shell,
.m-app-container,
.m-app-main,
.m-app-header,
.m-card,
.row,
[class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.m-app-shell {
    width: 100%;
}

.m-app-header {
    flex-wrap: wrap;
    gap: var(--meriva-space-2);
    padding-left: max(var(--meriva-space-4), env(safe-area-inset-left));
    padding-right: max(var(--meriva-space-4), env(safe-area-inset-right));
}























.m-brand-wordmark {
    font-weight: var(--m-weight);
    letter-spacing: -0.04em;
    color: var(--m-text);
    max-width: 100%;
}

.m-nav-item-icon.text-warning,
.m-nav-item-icon.text-info,
.m-nav-item-icon.text-success,
.m-nav-item-icon.text-primary {
    color: var(--meriva-dark-text-muted) !important;
}

.m-nav-item:hover .m-nav-item-icon,
.m-nav-item.active .m-nav-item-icon {
    color: var(--meriva-gold) !important;
}

.m-sidebar-overlay,
.m-dialog-overlay {
    width: 100%;
    max-width: 100%;
}

.m-dialog-overlay {
    height: 100%;
    padding: var(--meriva-space-4);
    padding-top: max(var(--meriva-space-4), env(safe-area-inset-top));
    padding-bottom: max(var(--meriva-space-4), env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    box-sizing: border-box;
    align-items: flex-start;
}

@media (min-width: 768px) {
    .m-dialog-overlay {
        align-items: center;
    }
}

.m-dialog-card {
    width: min(440px, 100%);
    max-height: min(90dvh, 640px);
    overflow-y: auto;
    overflow-wrap: break-word;
    word-break: normal;
    box-sizing: border-box;
}

.m-dialog-title,
.m-dialog-message {
    overflow-wrap: break-word;
    word-break: normal;
}

.m-dialog-actions {
    width: 100%;
}

.m-dialog-actions button {
    min-height: 44px;
    max-width: 100%;
    white-space: normal;
}

@media (max-width: 767.98px) {
    .m-btn:not(.m-btn--icon) {
        white-space: normal;
        text-align: center;
        line-height: 1.25;
        min-height: 44px;
    }

    .m-app-main {
        padding: var(--meriva-space-4);
    }

    .m-card-action .m-btn{
        width: 100%;
    }
}

@media (max-width: 479.98px) {
    .m-brand-wordmark {
        font-size: var(--m-type-16)!important;
    }

    
}

.m-card img:not(.m-avatar):not(.m-icon){
    max-width: 100%;
    height: auto;
}



.m-table-container,
.table-responsive,
.card .table-responsive{
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.table {
    margin-bottom: 0;
}

.m-select,
.m-textarea,
.form-control,
.form-select {
    max-width: 100%;
}

textarea.m-textarea,
textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

input.m-check,
input[type="checkbox"],
input[type="radio"] {
    accent-color: var(--meriva-gold);
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
}

.m-validation-feedback,
.field-validation-error,
.validation-summary-errors {
    overflow-wrap: break-word;
    word-break: normal;
}

.validation-summary-valid {
    display: none !important;
}





.m-city-leaflet,
.m-turkey-map-wrapper,
.leaflet-container {
    max-width: 100%;
}



img[alt=""] {
    outline: none;
}

:focus:not(:focus-visible) {
    outline: none;
}

.m-btn:focus-visible,
.m-nav-item:focus-visible {
    outline: 2px solid var(--meriva-gold);
    outline-offset: 2px;
}

@media (min-width: 1200px) {
    .m-app-main {
        padding-left: var(--meriva-space-8);
        padding-right: var(--meriva-space-8);
    }
}

@media (max-width: 991.98px) {
    .m-app-sidebar {
        max-width: min(var(--meriva-sidebar-width), 100%);
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .m-sidebar-nav {
        max-height: none;
        padding-bottom: var(--meriva-space-8);
    }
}

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

.m-app-header > * {
    min-width: 0;
}





.toast {
    max-width: min(350px, 100%);
    overflow-wrap: break-word;
    word-break: normal;
}



.alert,
.m-alert {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: var(--meriva-space-2);
    max-width: 100%;
}

.form-check-label {
    min-width: 0;
    overflow-wrap: break-word;
}



.m-auth {
    min-width: 0;
    max-width: 100%;
    color: var(--meriva-dark-text);
}



























.m-auth .m-form-label {
    color: var(--m-text);
}

.m-auth .m-input,
.m-auth .m-select,
.m-auth .m-textarea,
.m-auth .form-control,
.m-auth .form-select {
    background: var(--m-surface);
    border-color: var(--meriva-dark-border);
    color: var(--m-text);
}

.m-auth .m-input::placeholder,
.m-auth .m-textarea::placeholder {
    color: var(--m-text-muted);
}

.m-auth .m-input:focus,
.m-auth .m-select:focus,
.m-auth .m-textarea:focus {
    border-color: var(--meriva-gold);
    box-shadow: 0 0 0 3px var(--meriva-gold-glow);
}

.m-select-shell::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid #D4AF37;
    border-bottom: 2px solid #D4AF37;
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.m-select-premium {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    min-height: 48px;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 10) calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.38);
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, rgba(0, 0, 0, 0.22) 100%),
        #0A0A0E;
    color: var(--m-text);
    font-weight: var(--m-weight);
    letter-spacing: 0.02em;
}

.m-select-premium:focus {
    outline: none;
    border-color: var(--m-gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18);
}

.m-place-hint {
    margin: calc(var(--m-space) * 2) 0 0;
    color: rgba(212, 175, 55, 0.78);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}





.m-auth .m-validation-feedback,
.m-auth .field-validation-error {
    display: block;
    margin-top: calc(var(--m-space) * 2);
    color: #FDA4AF;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-auth .input-validation-error,
.m-auth .m-input.input-validation-error {
    border-color: var(--meriva-danger);
}

.m-password-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.m-password-wrap .m-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--m-space) * 11);
}

.m-password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--meriva-radius-sm);
    background: transparent;
    color: var(--meriva-dark-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    flex-shrink: 0;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
}

.m-password-toggle:focus-visible {
    outline: 2px solid var(--meriva-gold);
    outline-offset: 1px;
}

.m-password-meter {
    margin-top: calc(var(--m-space) * 2);
}

.m-password-meter[hidden] {
    display: none !important;
}

.m-password-meter span[data-m-password-fill] {
    display: block;
    height: 4px;
    width: 0;
    border-radius: var(--meriva-radius-pill);
    background: var(--meriva-danger);
    transition: width var(--meriva-transition-fast), background var(--meriva-transition-fast);
}

.m-password-meter.is-ready span[data-m-password-fill] {
    background: var(--meriva-success);
}

.m-password-meter small {
    display: block;
    margin-top: calc(var(--m-space) * 2);
    color: var(--meriva-dark-text-muted);
    overflow-wrap: break-word;
}











.m-auth .m-alert {
    overflow-wrap: break-word;
    word-break: normal;
}

.m-app-footer {
    margin-top: var(--meriva-space-8);
    padding-top: 0;
    padding-bottom: 0;
    border-top: 1px solid rgba(212, 175, 55, 0.16);
    background: var(--m-bg);
    min-width: 0;
    max-width: 100%;
}

.m-site-footer {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1.8fr);
    gap: calc(var(--m-space) * 7) calc(var(--m-space) * 8);
    align-items: start;
    padding: calc(var(--m-space) * 7) 0 calc(var(--m-space) * 5);
}

.m-site-footer-brand p {
    margin: calc(var(--m-space) * 3) 0 0;
    max-width: 22rem;
    color: var(--m-text-muted);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    letter-spacing: 0.01em;
    line-height: 1.5;
}

.m-site-footer-navs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 5) calc(var(--m-space) * 6);
}

.m-site-footer-col {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-site-footer-col strong {
    margin-bottom: calc(var(--m-space) * 1);
    color: var(--m-gold);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.m-site-footer-col a {
    color: var(--m-text);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    line-height: 1.35;
    text-decoration: none;
}

.m-site-footer-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 3) 0 calc(var(--m-space) * 5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    color: #A8A49C;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

@media (max-width: 767.98px) {
    .m-site-footer {
        grid-template-columns: 1fr;
        gap: calc(var(--m-space) * 6);
    }

    .m-site-footer-navs {
        grid-template-columns: 1fr 1fr;
    }
}

.m-error-id {
    font-size: var(--meriva-font-size-caption);
    color: var(--meriva-dark-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-error-id code {
    color: var(--meriva-gold);
}

.m-home-empty {
    position: relative;
    text-align: center;
    padding: var(--meriva-space-8) var(--meriva-space-4);
    border-radius: var(--meriva-radius-large);
    border: 1px dashed rgba(234, 179, 8, 0.28);
    background: rgba(10, 10, 14, 0.78);
    min-width: 0;
    max-width: 100%;
}

.m-home-empty::before {
    content: "";
    display: block;
    width: 72px;
    height: 48px;
    margin: 0 auto var(--meriva-space-3);
    opacity: 0.35;
    background: url("/images/badger-mark.svg?v=2") center / contain no-repeat;
}

.m-home-empty h1,
.m-home-empty h3 {
    color: var(--m-text);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-home-empty p {
    margin: 0 auto var(--meriva-space-4);
    max-width: 28rem;
    color: var(--meriva-dark-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-home-empty:has(> img)::before {
    display: none;
}

.m-home-empty > img {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin: 0 auto calc(var(--m-space) * 3);
    display: block;
}

.m-empty-state {
    color: var(--meriva-dark-text);
}

.m-empty-state h3 {
    color: var(--m-text);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-empty-state p {
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 767.98px) {
    .m-error .m-btn,
.m-empty-state .m-btn,
.m-app-footer .m-btn{
        width: 100%;
    }
}

/* meriva-landing.css */
/**
 * MERİVA homepage — editorial premium polish.
 * Tokens: meriva-design-system.css. No routing changes.
 */



















.m-lp-hero {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(calc(var(--m-space) * 6), 4vw, calc(var(--m-space) * 11));
    align-items: center;
    min-width: 0;
    margin-bottom: calc(var(--m-space) * 2);
    padding: clamp(calc(var(--m-space) * 7), 5.5vw, calc(var(--m-space) * 15)) clamp(calc(var(--m-space) * 4), 3.5vw, calc(var(--m-space) * 11));
    border-radius: var(--m-radius-16);
    border: 1px solid rgba(255, 255, 255, 0.06);
    background-color: #060608;
    background-image: url("/images/hero-honey-badger.jpg");
    background-size: cover;
    background-position: 78% 58%;
    background-repeat: no-repeat;
    overflow: hidden;
}



.m-lp-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(6, 6, 8, 0.42) 0%, rgba(6, 6, 8, 0.22) 48%, rgba(6, 6, 8, 0.58) 100%),
        linear-gradient(90deg, rgba(6, 6, 8, 0.48) 0%, rgba(6, 6, 8, 0.18) 55%, rgba(6, 6, 8, 0.08) 100%);
}



@media (min-width: 992px) {
    .m-lp-hero {
        grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
        min-height: min(78vh, 42rem);
        background-position: 68% 48%;
    }

    

    .m-lp-hero::after {
        background:
            linear-gradient(105deg, rgba(6, 6, 8, 0.82) 0%, rgba(6, 6, 8, 0.52) 38%, rgba(6, 6, 8, 0.22) 68%, rgba(6, 6, 8, 0.12) 100%),
            radial-gradient(420px 220px at 88% 12%, rgba(242, 184, 75, 0.08), transparent 62%);
    }
}

.m-lp-hero h1 {
    margin: 0 0 calc(var(--m-space) * 5);
    color: #fff;
    font-size: var(--m-type-40);
    font-weight: var(--m-weight);
    line-height: 1.02;
    letter-spacing: -0.055em;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}











































.m-lp-map-frame {
    padding: clamp(calc(var(--m-space) * 3), 2vw, calc(var(--m-space) * 5));
    border-radius: var(--m-radius-16);
    border: 1px solid rgba(11, 11, 11, 0.08);
    background: #121212;
}

.m-lp-map-frame .m-tr-map {
    max-height: min(460px, 68vw);
}

.m-lp-map-frame .m-tr-map path {
    fill: #2c2c2c;
    stroke: #3d3d3d;
}

.m-lp-map-frame .m-tr-map g:hover path {
    fill: #3a3a3a;
}

.m-lp-map-frame .m-tr-map g.m-city-active > path,
.m-lp-map-frame .m-tr-map g.m-city-active g path {
    fill: var(--lp-gold) !important;
    stroke: var(--lp-gold-deep) !important;
}

.m-lp-map-frame .m-tr-map g.m-city-active:hover > path,
.m-lp-map-frame .m-tr-map g.m-city-active:hover g path,
.m-lp-map-frame .m-tr-map g.m-city-active:focus-visible > path,
.m-lp-map-frame .m-tr-map g.m-city-active:focus-visible g path {
    filter: drop-shadow(0 0 10px rgba(242, 184, 75, 0.45));
}

.m-lp-map-frame .m-malatya-pin {
    transform: translate(656px, 205px);
}

.m-lp-map-frame .m-tr-map g[data-plakakodu]:focus {
    outline: none;
}

.m-lp-map-frame .m-tr-map g[data-plakakodu]:focus-visible {
    outline: 2px solid var(--lp-gold);
    outline-offset: 3px;
}



















































































































.m-lp-reveal.is-pending {
    opacity: 0;
}

.m-lp-reveal.is-in {
    animation: merivaLpReveal 0.45s ease both;
}

@keyframes merivaLpReveal {
    from { opacity: 0; }
    to { opacity: 1; }
}











@media (max-width: 767px) {
    

    .m-lp-hero {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        min-height: 0;
        padding: 0;
        background-image: none;
    }

    

    .m-lp-hero::after {
        display: none;
    }

    

    

    .m-lp-map-frame .m-tr-map {
        max-height: 240px;
    }

    
}

@media (prefers-reduced-motion: reduce) {
    

    

    

    .m-lp-reveal,
    .m-lp-reveal.is-pending,
    .m-lp-reveal.is-in {
        opacity: 1;
        animation: none;
    }

    .m-lp-map-frame .m-malatya-pin {
        animation: none !important;
        transform: translate(656px, 205px) !important;
    }
}

/* meriva-theme.css */
/**
 * MERIVA — Global Gold × Black × Honey Crest Theme
 * Color tokens live in meriva-tokens.css (loaded last).
 * Presentation only — does not change routes, forms, or JS behavior.
 */

:root {
    --meriva-font-display: Georgia, "Times New Roman", serif;
    --meriva-font-sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
    --meriva-font-mono: "JetBrains Mono", ui-monospace, monospace;
    --meriva-radius-sm: 6px;
    --meriva-radius-md: 10px;
    --meriva-radius-lg: 14px;
    --meriva-radius-xl: 14px;
    --meriva-radius-2xl: 16px;
    --meriva-radius-pill: 9999px;
    --meriva-radius-small: var(--meriva-radius-sm);
    --meriva-radius-medium: var(--meriva-radius-md);
    --meriva-radius-large: var(--meriva-radius-lg);
    --meriva-shadow-gold: 0 0 30px rgba(212, 175, 55, 0.08);
    --meriva-shadow-navy: var(--m-shadow);
}

html[data-meriva-theme],
[data-bs-theme="light"] {
    --bs-body-bg: var(--m-bg);
    --bs-body-color: var(--m-text);
    --bs-secondary-color: var(--m-text-secondary);
    --bs-tertiary-color: var(--m-text-muted);
    --bs-emphasis-color: var(--m-text);
    --bs-heading-color: var(--m-text);
    --bs-link-color: var(--m-text);
    --bs-link-hover-color: var(--m-gold-hover);
    --bs-code-color: var(--m-gold-hover);
    --bs-highlight-color: var(--m-text);
    --bs-border-color: var(--m-border);
    --bs-form-valid-color: var(--m-success);
    --bs-form-invalid-color: var(--m-danger);
}

h1,
h2,
.m-home-title{
    font-family: var(--meriva-font-display);
    letter-spacing: -0.02em;
}

/* —— Sidebar —— */
.m-app-sidebar:not(.v4-sidebar) {
    background: var(--m-surface) !important;
    border-right: 1px solid var(--m-border) !important;
    box-shadow: inset -1px 0 0 var(--m-divider);
}

.m-sidebar-brand {
    color: var(--m-text) !important;
}

.m-sidebar-brand .fw-extrabold,
.m-sidebar-brand .m-brand-wordmark {
    color: var(--m-gold) !important;
    letter-spacing: 0.08em;
}

.m-sidebar-brand small{
    display: block;
    color: rgba(212, 175, 55, 0.72);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.m-nav-item {
    border-left: 2px solid transparent;
    border-radius: var(--meriva-radius-sm);
    color: var(--m-text) !important;
    transition: background var(--meriva-transition-fast), color var(--meriva-transition-fast), border-color var(--meriva-transition-fast);
}

.m-nav-item:hover {
    background: rgba(212, 175, 55, 0.06) !important;
    color: var(--m-text) !important;
    box-shadow: 0 0 24px rgba(212, 175, 55, 0.06);
}

.m-nav-item.active,
.m-nav-item.is-active {
    background: rgba(212, 175, 55, 0.10) !important;
    border-left-color: var(--m-gold) !important;
    color: var(--m-gold) !important;
}

.m-nav-group-heading {
    color: rgba(247, 243, 236, 0.72) !important;
    letter-spacing: 0.14em;
}

.m-nav-item-icon,
.m-nav-item-icon.text-warning,
.m-nav-item-icon.text-info,
.m-nav-item-icon.text-success,
.m-nav-item-icon.text-primary {
    color: rgba(212, 175, 55, 0.75) !important;
}

.m-nav-item:hover .m-nav-item-icon,
.m-nav-item.active .m-nav-item-icon {
    color: var(--m-gold) !important;
}

.m-brand-wordmark {
    letter-spacing: 0.08em;
    color: var(--m-gold);
}

/* Bootstrap button color. MERIVA buttons are in css/meriva/components.css. */
.btn-primary{
    background: var(--m-gold) !important;
    border: 1px solid var(--m-gold) !important;
    color: var(--meriva-on-gold) !important;
    font-weight: var(--m-weight);
}

.btn-primary:hover{
    background: var(--m-gold-hover) !important;
    border-color: var(--m-gold-hover) !important;
    color: var(--meriva-on-gold) !important;
}

.btn-primary:disabled{
    opacity: 0.55;
    filter: grayscale(0.15);
}

/* Badger Review: compact the whole pending card, not a single control. */
.m-review-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    margin-bottom: calc(var(--m-space) * 4);
    padding-bottom: calc(var(--m-space) * 3);
    border-bottom: 1px solid rgba(212, 175, 55, 0.18);
}

.m-review-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
}

.m-review-item {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    background: var(--m-surface, #0A0A0E);
    border: 1px solid rgba(212, 175, 55, 0.18);
    border-radius: var(--m-radius-8);
}

.m-review-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
}

.m-review-summary__text {
    flex: 1 1 12rem;
    min-width: 0;
}

.m-review-summary__actions {
    flex: 0 1 auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    max-width: 100%;
}

.m-review-kicker {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    margin-bottom: calc(var(--m-space) * 1);
}

.m-review-title {
    margin: 0 0 calc(var(--m-space) * 1);
    color: #F7F3EC;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    line-height: 1.25;
}

.m-review-brief {
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    line-height: 1.35;
    color: #C8C4BC;
}

.m-review-scan {
    margin: 0;
    font-size: var(--m-type-12);
    line-height: 1.35;
    color: var(--m-gold, #D4AF37);
}

.m-review-scan.is-alert {
    color: #E5C45A;
}

.m-review-lock {
    width: auto;
    max-width: 100%;
}

.m-review-preview-frame {
    width: min(160px, 42vw);
    max-height: 88px;
    overflow: hidden;
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.16);
}

.m-review-preview-img,
.m-review-preview-video {
    display: block;
    width: 100%;
    height: 88px;
    max-height: 88px;
    object-fit: cover;
}

.m-review-preview-video {
    background: #000;
}

.m-review-preview-link {
    display: block;
}

.m-review-preview-link .m-review-preview-img {
    margin-bottom: 0;
}

.m-review-safety-frame {
    width: min(720px, 100%);
    margin: calc(var(--m-space) * 2) 0 calc(var(--m-space) * 1);
}

.m-review-safety-img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 70vh;
    object-fit: contain;
    background: #111;
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.28);
}

.m-profile-safety {
    width: min(720px, 100%);
    overflow-wrap: anywhere;
}

.m-review-safety-meta {
    margin: calc(var(--m-space) * 2) 0 0;
    color: #d7d7d7;
    font-size: var(--m-type-14);
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

.m-review-inspect {
    border-top: 1px solid rgba(212, 175, 55, 0.14);
    padding-top: calc(var(--m-space) * 1);
}

.m-review-inspect__toggle {
    display: flex;
    align-items: center;
    min-height: 40px;
    cursor: pointer;
    color: var(--m-gold, #D4AF37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    list-style: none;
}

.m-review-inspect__toggle::-webkit-details-marker {
    display: none;
}

.m-review-inspect[open] .m-review-inspect__toggle::after {
    content: " · Gizle";
    font-weight: var(--m-weight);
}

.m-review-inspect__body {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 1);
}

.m-review-recovery {
    margin: 0;
    font-size: var(--m-type-12);
    line-height: 1.4;
    color: #C8C4BC;
}

.m-review-replace {
    color: var(--m-gold, #D4AF37);
    font-weight: var(--m-weight);
}

.m-review-body,
.m-review-preview-text {
    margin: 0;
    color: #E8E4DC;
    font-size: var(--m-type-14);
    line-height: 1.4;
    white-space: pre-line;
}

.m-review-more summary {
    list-style: none;
    cursor: pointer;
}

.m-review-more summary::-webkit-details-marker {
    display: none;
}

.m-review-toggle {
    display: inline-block;
    margin-top: calc(var(--m-space) * 1);
    color: var(--m-gold, #D4AF37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-review-more[open] .m-review-preview-text {
    display: none;
}

.m-review-more[open] .m-review-toggle {
    margin-bottom: calc(var(--m-space) * 2);
}

.m-review-more[open] .m-review-toggle::after {
    content: " · Daha az";
}

.m-review-actions {
    margin: 0;
}

.m-review-label {
    display: block;
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    color: #9A9AAA;
}

.m-review-score,
.m-review-reason {
    width: 100%;
    min-height: 40px;
    margin-bottom: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #0D0D10;
    color: #F7F3EC;
}

.m-review-hint {
    margin: 0 0 calc(var(--m-space) * 2);
    font-size: var(--m-type-12);
    color: #8A8680;
}

.m-review-vitrin {
    margin-bottom: calc(var(--m-space) * 2);
}

.m-review-vitrin .form-check-label {
    color: #E8E4DC;
    font-size: var(--m-type-14);
}

.m-review-item .m-btn--sm {
    min-height: 44px;
}







.btn-outline-primary {
    background: transparent !important;
    border: 1px solid rgba(212, 175, 55, 0.65) !important;
    color: var(--m-gold) !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus-visible {
    background: rgba(212, 175, 55, 0.10) !important;
    color: var(--m-gold-hover) !important;
    border-color: var(--m-gold-hover) !important;
}









.m-role-panel .text-primary {
    color: var(--m-gold) !important;
}

.m-role-panel a.link-primary{
    color: var(--m-gold) !important;
}

/* —— Cards / panels —— */
.m-card,
.m-home-card,
.card{
    background: var(--meriva-panel) !important;
    border: 1px solid rgba(212, 175, 55, 0.12) !important;
    border-radius: var(--meriva-radius-md)!important;
    color: var(--meriva-white);
    box-shadow: none;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

a.m-card:hover,
a.m-home-card:hover,
a.m-city-card:hover,
a.m-explore-feature:hover,
a.m-district-card:hover,
a.m-explore-rail-item:hover {
    border-color: rgba(212, 175, 55, 0.45) !important;
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.08);
}

@media (prefers-reduced-motion: reduce) {
    .m-card:hover,
.m-home-card:hover{
        transform: none;
    }
}

/* —— Forms —— */
.m-input,
.m-select,
.m-textarea,
.form-control,
.form-select,
input.form-control,
textarea.form-control,
select.form-select {
    background: var(--m-input-bg) !important;
    border: 1px solid rgba(212, 175, 55, 0.18) !important;
    color: var(--m-text) !important;
    border-radius: var(--m-control-radius, var(--meriva-radius-md))!important;
    min-height: var(--m-control-height, 44px);
}

.m-input::placeholder,
.form-control::placeholder {
    color: var(--m-placeholder) !important;
}

.m-input:focus,
.m-select:focus,
.m-textarea:focus,
.form-control:focus,
.form-select:focus {
    border-color: var(--m-gold) !important;
    box-shadow: var(--m-focus-ring, 0 0 0 3px rgba(212, 175, 55, 0.10)) !important;
    background: var(--m-input-bg) !important;
    color: var(--m-text) !important;
}

.form-control-sm,
.form-select-sm {
    min-height: var(--m-control-height-sm, 40px);
}

textarea.form-control,
.m-textarea {
    min-height: 120px;
}

.form-check-input:checked {
    background-color: var(--m-gold) !important;
    border-color: var(--m-gold) !important;
}

.form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15) !important;
}

/* —— Tables —— */
.table {
    --bs-table-bg: transparent;
    --bs-table-color: var(--meriva-white);
    --bs-table-border-color: rgba(212, 175, 55, 0.12);
    --bs-table-hover-bg: rgba(212, 175, 55, 0.06);
    --bs-table-striped-bg: rgba(255, 255, 255, 0.02);
    color: var(--meriva-white);
}

.table thead th,
.table > thead {
    background: rgba(212, 175, 55, 0.10) !important;
    color: var(--m-gold) !important;
    border-bottom: 1px solid rgba(212, 175, 55, 0.28) !important;
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    font-size: var(--m-type-12);
}



/* —— Badges —— */
.m-badge-gold,
.badge.text-bg-warning,
.badge.bg-warning {
    background: rgba(212, 175, 55, 0.16) !important;
    color: var(--m-gold-hover) !important;
    border: 1px solid rgba(212, 175, 55, 0.35);
}

.m-badge-neutral,
.badge.text-bg-secondary {
    background: rgba(28, 28, 34, 0.95) !important;
    color: var(--m-text) !important;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

/* —— Explore hub alignment —— */


.m-home-hero{
    background: var(--m-hero-gradient) !important;
    border-color: var(--m-border) !important;
}



/* —— Landing: white copy on black; dark copy only on light cards —— */


/* —— Chat bubbles (visual only) —— */
.m-chat-bubble.is-mine {
    background: rgba(212, 175, 55, 0.14) !important;
    border: 1px solid rgba(212, 175, 55, 0.35) !important;
    color: var(--m-text) !important;
}

.m-chat-bubble:not(.is-mine) {
    background: var(--m-surface-soft) !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    color: var(--m-text) !important;
}

/* —— Utilities —— */
.text-primary {
    color: var(--m-gold) !important;
}

.text-warning {
    color: var(--m-gold-hover) !important;
}



.bg-dark {
    background-color: var(--meriva-on-gold) !important;
}

.border-warning {
    border-color: rgba(212, 175, 55, 0.45) !important;
}







.modal-content {
    background: var(--m-input-bg) !important;
    border: 1px solid rgba(212, 175, 55, 0.2) !important;
    color: var(--m-text) !important;
}

.modal-header,
.modal-footer {
    border-color: rgba(212, 175, 55, 0.14) !important;
}







/* —— Legacy navy → black (heroes / panels) —— */
.m-home-hero{
    background-image:
        radial-gradient(720px 280px at 80% -10%, rgba(212, 175, 55, 0.1), transparent 62%),
        var(--m-hero-gradient) !important;
}

.m-app-main {
    background-color: var(--m-bg);
}

/* ==========================================================================
   Contrast: white copy on black surfaces; dark copy only on light/gold
   ========================================================================== */
html[data-meriva-theme] p,
html[data-meriva-theme] li,
html[data-meriva-theme] td,
html[data-meriva-theme] th,
html[data-meriva-theme] label,
html[data-meriva-theme] .form-label,
html[data-meriva-theme] .form-check-label,
html[data-meriva-theme] small,
html[data-meriva-theme] .small,
html[data-meriva-theme] .m-caption,
html[data-meriva-theme] .m-empty-desc,
html[data-meriva-theme] h1,
html[data-meriva-theme] h2,
html[data-meriva-theme] h3,
html[data-meriva-theme] h4,
html[data-meriva-theme] h5,
html[data-meriva-theme] h6{
    color: var(--m-text);
}

html[data-meriva-theme] .text-dark:not(.badge):not(.btn):not(.m-btn):not(.page-link),
html[data-meriva-theme] .text-muted,
html[data-meriva-theme] .text-secondary{
    color: var(--m-text) !important;
}

html[data-meriva-theme] .text-muted,
html[data-meriva-theme] .text-secondary{
    color: var(--m-text-secondary) !important;
}



html[data-meriva-theme] .m-brand-wordmark {
    color: var(--m-gold);
}

/* Gold / light surfaces keep dark ink so they stay readable. */
.btn-primary,
.badge.bg-warning,
.badge.text-bg-warning,
.badge.bg-secondary-subtle,
.m-bell-count{
    color: var(--meriva-on-gold) !important;
}





























.m-auth .m-input::placeholder,
.m-auth .m-textarea::placeholder,
.m-auth .form-control::placeholder {
    color: var(--m-placeholder) !important;
}

html[data-meriva-theme] .alert{
    color: var(--m-text) !important;
}









html[data-meriva-theme] a {
    color: var(--m-text);
}

html[data-meriva-theme] a:hover,
html[data-meriva-theme] a:focus-visible {
    color: var(--m-gold-hover);
}

img.m-badger-emblem {
    display: block;
    object-fit: contain;
    flex-shrink: 0;
}

.m-footer-logo {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    text-decoration: none;
}

.m-footer-logo .m-brand-wordmark,
.m-footer-logo strong.m-brand-wordmark {
    display: block;
    color: var(--m-gold) !important;
    font-size: var(--m-type-16);
    letter-spacing: 0.08em;
}

.m-footer-logo em {
    display: block;
    margin-top: calc(var(--m-space) * 1);
    color: rgba(212, 175, 55, 0.72) !important;
    font-size: var(--m-type-12);
    font-style: normal;
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.m-app-footer a,
.m-site-footer a,
.m-site-footer-col a {
    color: var(--m-text) !important;
}

.m-app-footer a:hover,
.m-site-footer a:hover,
.m-site-footer-col a:hover {
    color: var(--m-gold-hover) !important;
}

.m-site-footer-col strong {
    color: var(--m-gold) !important;
}

html[data-meriva-theme] code,
html[data-meriva-theme] kbd,
html[data-meriva-theme] samp,
html[data-meriva-theme] pre {
    color: var(--m-gold-hover) !important;
}







.m-place-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--m-space) * 4);
    min-width: 0;
}

@media (min-width: 768px) {
    .m-place-fields {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        gap: calc(var(--m-space) * 4);
    }
}

.m-select-shell {
    position: relative;
    min-width: 0;
}

.m-select-shell::after {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--m-gold);
    border-bottom: 2px solid var(--m-gold);
    transform: translateY(-70%) rotate(45deg);
    pointer-events: none;
}

.m-select-premium {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100%;
    min-height: 48px;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 10) calc(var(--m-space) * 3) calc(var(--m-space) * 4)!important;
    border-radius: var(--m-radius-8)!important;
    border: 1px solid rgba(212, 175, 55, 0.38) !important;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.08) 0%, transparent 100%),
        var(--m-input-bg) !important;
    color: var(--m-text) !important;
    font-weight: var(--m-weight);
    letter-spacing: 0.02em;
}

.m-select-premium:focus {
    outline: none;
    border-color: var(--m-gold) !important;
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.18) !important;
    background:
        linear-gradient(180deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%),
        var(--m-input-bg) !important;
}

.m-select-premium option {
    background: var(--m-surface);
    color: var(--m-text);
}

.m-place-hint {
    margin: calc(var(--m-space) * 2) 0 0;
    color: rgba(212, 175, 55, 0.78) !important;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}







html[data-meriva-theme="white"] .text-white:not(.btn):not(.m-btn):not(.badge):not(.m-btn--primary),
html[data-meriva-theme="white"] .bg-dark{
    color: var(--m-text) !important;
}

html[data-meriva-theme="white"] .bg-dark {
    background-color: var(--m-surface) !important;
}

html[data-meriva-theme="white"] .bg-black {
    background-color: var(--m-bg) !important;
    color: var(--m-text) !important;
}

html[data-meriva-theme="black"] .text-dark:not(.badge):not(.btn):not(.m-btn):not(.page-link),
html[data-meriva-theme="black"] .bg-white{
    color: var(--m-text) !important;
}

html[data-meriva-theme="black"] .bg-white{
    background-color: var(--m-surface-elevated) !important;
}

.m-app-footer,
.m-site-footer {
    background: var(--m-surface);
    color: var(--m-text);
    border-top: 1px solid var(--m-divider);
}

img, svg, video, canvas {
    max-width: 100%;
}

.m-legal-prose {
    max-width: 48rem;
    margin-inline: auto;
    line-height: 1.7;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-legal-prose h1,
.m-legal-prose h2,
.m-legal-prose h3,
.m-legal-prose h4,
.m-legal-prose h5 {
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.3;
}

.m-legal-block {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-16);
    border: 1px solid var(--m-border);
    background: var(--m-surface-elevated);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-legal-block p,
.m-legal-block li {
    font-size: var(--m-type-16);
    line-height: 1.65;
}

/* meriva-tokens.css */
/**
 * MERİVA design tokens — Black / White / Gray
 * Brand: Black, Gold, Gray, Honey Crest. Semantic names only in UI.
 */

:root {
    --m-type-12: 12px;
    --m-type-14: 14px;
    --m-type-16: 16px;
    --m-type-20: 20px;
    --m-type-28: 28px;
    --m-type-40: 40px;
    --m-radius-8: 8px;
    --m-radius-16: 16px;
    --m-radius-pill: 999px;
    --m-space: 4px;
    --m-weight: 650;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --m-stone: #A8A296;
    --m-ivory: #F3EFE7;
    --m-stone-ink: #4A463F;
    --meriva-font-size-display: var(--m-type-40);
    --meriva-font-size-h1: var(--m-type-28);
    --meriva-font-size-h2: var(--m-type-20);
    --meriva-font-size-h3: var(--m-type-20);
    --meriva-font-size-h4: var(--m-type-16);
    --meriva-font-size-body-lg: var(--m-type-16);
    --meriva-font-size-body: var(--m-type-16);
    --meriva-font-size-body-sm: var(--m-type-14);
    --meriva-font-size-caption: var(--m-type-14);
    --meriva-font-size-label: var(--m-type-12);
    --meriva-space-1: calc(var(--m-space) * 1);
    --meriva-space-2: calc(var(--m-space) * 2);
    --meriva-space-3: calc(var(--m-space) * 3);
    --meriva-space-4: calc(var(--m-space) * 4);
    --meriva-space-5: calc(var(--m-space) * 5);
    --meriva-space-6: calc(var(--m-space) * 6);
    --meriva-space-8: calc(var(--m-space) * 8);
    --meriva-space-10: calc(var(--m-space) * 10);
    --meriva-space-12: calc(var(--m-space) * 12);
    --meriva-space-16: calc(var(--m-space) * 16);
    --meriva-space-20: calc(var(--m-space) * 20);
    --meriva-space-24: calc(var(--m-space) * 24);
    --meriva-radius-xs: var(--m-radius-8);
    --meriva-radius-sm: var(--m-radius-8);
    --meriva-radius-md: var(--m-radius-8);
    --meriva-radius-lg: var(--m-radius-16);
    --meriva-radius-xl: var(--m-radius-16);
    --meriva-radius-2xl: var(--m-radius-16);
    --meriva-radius-pill: var(--m-radius-pill);
    --meriva-radius-full: var(--m-radius-pill);
    --meriva-radius-small: var(--m-radius-8);
    --meriva-radius-medium: var(--m-radius-16);
    --meriva-radius-large: var(--m-radius-16);
    --meriva-black: #060608;
    --meriva-black-soft: #0A0A0E;
    --meriva-panel: #0D0D10;
    --meriva-gray: #1C1C22;
    --meriva-cream: #F7F3EC;
    --meriva-white: #F7F3EC;
    --meriva-gold: #D4AF37;
    --meriva-gold-light: #E5C45A;
    --meriva-gold-dark: #A88418;
    --meriva-gold-hover: #E5C45A;
    --meriva-gold-soft: rgba(212, 175, 55, 0.12);
    --meriva-gold-glow: rgba(212, 175, 55, 0.08);
    --meriva-gold-gradient: linear-gradient(135deg, #E5C45A 0%, #D4AF37 55%, #A88418 100%);
    --meriva-on-gold: #060608;
    --meriva-muted: #D2CEC6;
    --meriva-green: #7EC89A;
    --meriva-orange: #F5A623;
    --meriva-red: #E57373;
    --meriva-blue: #C8C4BC;
    --meriva-purple: #B8A9FF;

    --m-bg: #060608;
    --m-surface: #0A0A0E;
    --m-surface-elevated: #0D0D10;
    --m-surface-soft: #141418;
    --m-text: #F7F3EC;
    --m-text-secondary: #E8E4DC;
    --m-text-muted: #C8C4BC;
    --m-border: rgba(212, 175, 55, 0.16);
    --m-divider: rgba(247, 243, 236, 0.12);
    --m-gold: #D4AF37;
    --m-gold-hover: #E5C45A;
    --m-gold-soft: rgba(212, 175, 55, 0.12);
    --m-radius: var(--m-radius-8);
    --m-radius-lg: var(--m-radius-16);
    --m-nav-height: 68px;
    --m-success: #7EC89A;
    --m-warning: #F5A623;
    --m-danger: #E57373;
    --m-focus: rgba(212, 175, 55, 0.28);
    /* Control aliases — existing 4/8 scale, not a second palette */
    --m-control-height: 44px;
    --m-control-height-sm: 40px;
    --m-control-height-lg: 48px;
    --m-control-radius: var(--m-radius-8);
    --m-control-pad-x: calc(var(--m-space) * 4);
    --m-focus-ring: 0 0 0 3px var(--m-focus);
    --m-hero-gradient: linear-gradient(165deg, #141418 0%, #0A0A0E 58%, #060608 100%);
    --m-nav-bg: rgba(6, 6, 8, 0.9);
    --m-input-bg: #0D0D10;
    --m-placeholder: #B8B4AC;
    --m-disabled: #8A8680;
    --m-tooltip-bg: #0D0D10;
    --m-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);

    --meriva-primary: var(--meriva-black);
    --meriva-primary-dark: #030304;
    --meriva-primary-light: var(--meriva-gray);
    --meriva-primary-soft: #2A2A32;
    --meriva-primary-rgb: 6, 6, 8;
    --meriva-navy: var(--meriva-black-soft);
    --meriva-night: var(--meriva-black);
    --meriva-amber: var(--meriva-gold);

    --meriva-background: var(--m-bg);
    --meriva-surface: var(--m-surface-elevated);
    --meriva-surface-2: var(--m-surface-soft);
    --meriva-surface-elevated: var(--m-surface-elevated);
    --meriva-surface-subtle: var(--m-surface-soft);
    --meriva-border: var(--m-border);
    --meriva-border-subtle: var(--m-divider);
    --meriva-text: var(--m-text);
    --meriva-text-muted: var(--m-text-secondary);
    --meriva-text-subtle: var(--m-text-muted);
    --meriva-bg: var(--m-bg);

    --meriva-dark-bg: var(--m-bg);
    --meriva-dark-surface: var(--m-surface);
    --meriva-dark-surface-elevated: var(--m-surface-elevated);
    --meriva-dark-surface-card: var(--m-surface-soft);
    --meriva-dark-border: var(--m-border);
    --meriva-dark-border-subtle: var(--m-divider);
    --meriva-dark-text: var(--m-text);
    --meriva-dark-text-muted: var(--m-text-secondary);
    --meriva-dark-text-subtle: var(--m-text-muted);

    --meriva-success: var(--m-success);
    --meriva-success-dark: #5FA87C;
    --meriva-success-soft: rgba(126, 200, 154, 0.12);
    --meriva-warning: var(--m-warning);
    --meriva-warning-dark: #D4890F;
    --meriva-warning-soft: rgba(245, 166, 35, 0.12);
    --meriva-danger: var(--m-danger);
    --meriva-danger-dark: #D35A5A;
    --meriva-danger-soft: rgba(229, 115, 115, 0.12);
    --meriva-info: var(--meriva-gold-light);
    --meriva-info-dark: var(--meriva-gold);
    --meriva-info-soft: rgba(212, 175, 55, 0.12);

    --bs-body-bg: var(--m-bg);
    --bs-body-color: var(--m-text);
    --bs-primary: var(--m-gold);
    --bs-primary-rgb: 212, 175, 55;
    --bs-secondary: var(--m-surface-soft);
    --bs-border-color: var(--m-border);
    --bs-link-color: var(--m-text);
    --bs-link-hover-color: var(--m-gold-hover);
    --bs-focus-ring-color: var(--m-focus);
    --bs-warning: var(--m-gold);
    --bs-heading-color: var(--m-text);
    --bs-secondary-color: var(--m-text-secondary);
    --bs-tertiary-color: var(--m-text-muted);
    --bs-emphasis-color: var(--m-text);
}

html[data-meriva-theme="black"],
html:not([data-meriva-theme]) {
    color-scheme: dark;
    --m-bg: #060608;
    --m-surface: #0A0A0E;
    --m-surface-elevated: #0D0D10;
    --m-surface-soft: #141418;
    --m-text: #F7F3EC;
    --m-text-secondary: #E8E4DC;
    --m-text-muted: #C8C4BC;
    --m-border: rgba(212, 175, 55, 0.16);
    --m-divider: rgba(247, 243, 236, 0.12);
    --m-hero-gradient: linear-gradient(165deg, #141418 0%, #0A0A0E 58%, #060608 100%);
    --m-nav-bg: rgba(6, 6, 8, 0.9);
    --m-input-bg: #0D0D10;
    --m-placeholder: #B8B4AC;
    --m-disabled: #8A8680;
    --m-tooltip-bg: #0D0D10;
    --m-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
    --meriva-panel: #0D0D10;
    --meriva-primary-rgb: 6, 6, 8;
}

html[data-meriva-theme="white"] {
    color-scheme: light;
    --m-bg: #F7F3EC;
    --m-surface: #FFFBF4;
    --m-surface-elevated: #FFFFFF;
    --m-surface-soft: #EFE9DE;
    --m-text: #0A0A0E;
    --m-text-secondary: #3D3A35;
    --m-text-muted: #5C5850;
    --m-border: rgba(10, 10, 14, 0.14);
    --m-divider: rgba(10, 10, 14, 0.1);
    --m-hero-gradient: linear-gradient(165deg, #EFE9DE 0%, #F7F3EC 58%, #E8E2D4 100%);
    --m-nav-bg: rgba(247, 243, 236, 0.92);
    --m-input-bg: #FFFBF4;
    --m-placeholder: #5C5850;
    --m-disabled: #8A8680;
    --m-tooltip-bg: #FFFFFF;
    --m-shadow: 0 12px 28px rgba(10, 10, 14, 0.08);
    --meriva-panel: #FFFFFF;
    --meriva-primary-rgb: 247, 243, 236;
    --meriva-gold-soft: rgba(168, 132, 24, 0.14);
    --meriva-gold-glow: rgba(168, 132, 24, 0.1);
}

/* UI V4 — light app canvas, dark sidebar. Scoped on body.m-ui-v4 */
body.m-ui-v4 {
    --meriva-v4-black: #0a0a0c;
    --meriva-v4-sidebar: #070708;
    --meriva-v4-surface: #fafafa;
    --meriva-v4-surface-soft: #f3f1ec;
    --meriva-v4-white: #ffffff;
    --meriva-v4-gold: #c9a227;
    --meriva-v4-gold-hover: #d4af37;
    --meriva-v4-border: rgba(20, 18, 14, 0.08);
    --meriva-v4-text: #141414;
    --meriva-v4-text-muted: #6b675f;
    --meriva-v4-hero: #111114;
    --meriva-v4-radius-sm: var(--m-radius-8);
    --meriva-v4-radius-md: var(--m-radius-16);
    --meriva-v4-radius-lg: var(--m-radius-16);
    --meriva-v4-radius-xl: var(--m-radius-16);
    --meriva-v4-shadow: 0 8px 28px rgba(12, 10, 8, 0.06);
    --meriva-v4-sidebar-width: 240px;
    --meriva-v4-sidebar-collapsed: 72px;
    --meriva-v4-content-gap: calc(var(--m-space) * 4);
    --meriva-motion: 280ms cubic-bezier(0.16, 1, 0.3, 1);
    --meriva-border-idle: var(--meriva-v4-border);
    --meriva-sidebar-width: var(--meriva-v4-sidebar-width);
    --meriva-container: none;
    --m-control-height: 44px;
    --m-control-height-sm: 40px;
    --m-control-height-lg: 48px;
    --m-control-radius: var(--meriva-v4-radius-sm);
    --m-focus-ring: 0 0 0 3px rgba(201, 162, 39, 0.28);
}

html[data-meriva-theme="black"] body.m-ui-v4 {
    --meriva-v4-surface: #101014;
    --meriva-v4-surface-soft: #16161c;
    --meriva-v4-white: #16161c;
    --meriva-v4-border: rgba(247, 243, 236, 0.08);
    --meriva-v4-text: #f4f1ea;
    --meriva-v4-text-muted: #a8a49c;
    --meriva-v4-hero: #0a0a0c;
}

html[data-meriva-theme="white"] body.m-ui-v4 {
    --meriva-v4-surface: #fafafa;
    --meriva-v4-surface-soft: #f3f1ec;
    --meriva-v4-white: #ffffff;
    --meriva-v4-border: rgba(20, 18, 14, 0.08);
    --meriva-v4-text: #141414;
    --meriva-v4-text-muted: #6b675f;
    --meriva-v4-hero: #111114;
}

html {
    max-width: 100%;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}

body {
    background-color: var(--m-bg) !important;
    color: var(--m-text) !important;
    max-width: 100%;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}

body.m-ui-v4 {
    background-color: var(--meriva-v4-surface) !important;
    color: var(--meriva-v4-text) !important;
}

.m-app-main,
.m-app-shell {
    background-color: var(--m-bg);
    color: var(--m-text);
}

body.m-ui-v4 .m-app-shell,
body.m-ui-v4 .m-app-container,
body.m-ui-v4 .m-app-main {
    background-color: var(--meriva-v4-surface);
    color: var(--meriva-v4-text);
}

:focus-visible {
    outline: 2px solid var(--m-gold);
    outline-offset: 2px;
}

::placeholder {
    color: var(--m-placeholder) !important;
    opacity: 1;
}

:disabled,
.disabled,
[aria-disabled="true"] {
    color: var(--m-disabled) !important;
    cursor: not-allowed;
}

body.m-premium a.m-bell.v4-icon-btn {
    background: var(--mp-panel) !important;
    color: var(--mp-ink) !important;
    border: 1px solid var(--mp-line) !important;
    border-radius: var(--m-radius-pill);
    box-shadow: none;
    padding: 0;
}
body.m-premium :is(.m-btn, .btn):disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* One card surface and one hover for the shared cards. */
body.m-premium :is(.v4-action, .v4-navcard, .v4-biz, .v4-city-card, .v4-hit, .v4-market-card) {
    border-radius: var(--m-radius-16);
    border: 1px solid var(--mp-line, var(--m-border));
    background: linear-gradient(145deg, var(--mp-panel-raised, var(--m-surface-elevated)), var(--mp-panel, var(--m-surface)));
    color: var(--mp-ink, var(--m-text));
    box-shadow: var(--mp-shadow, var(--m-shadow));
    font-weight: var(--m-weight);
}
body.m-premium :is(.v4-action h3, .v4-navcard h3, .v4-hit h3, .v4-city-card h3) {
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}
body.m-premium :is(.v4-action p, .v4-navcard p, .v4-hit p, .v4-city-card p) {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}
body.m-premium :is(.v4-navcard .v4-icon, .v4-action-icon) {
    color: var(--m-gold);
    background: var(--m-gold-soft);
    border-radius: var(--m-radius-8);
}
@media (hover: hover) {
    body.m-premium :is(.v4-navcard, .v4-action, .v4-market-card, .v4-biz, .v4-city-card, .v4-hit) {
        transition: transform 220ms var(--mp-ease, ease), border-color 220ms, box-shadow 220ms;
    }
    body.m-premium :is(a.v4-navcard, a.v4-action, a.v4-market-card, a.v4-biz, .v4-city-card:not(.is-soon), a.v4-hit):hover {
        transform: translateY(-3px);
        border-color: var(--mp-accent, var(--m-gold));
        box-shadow: var(--mp-shadow, var(--m-shadow));
    }
    body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):is(:hover, :focus-visible) {
        border-color: rgba(201, 162, 39, .65);
        background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .14), transparent 70%), var(--meriva-v4-surface-soft);
        box-shadow: var(--mp-shadow, var(--m-shadow)), inset 0 0 0 1px rgba(201, 162, 39, .45), 0 0 28px rgba(201, 162, 39, .35);
    }
    body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):is(:hover, :focus-visible) :is(.v4-action-icon, .v4-icon) {
        color: #c9a227;
        background: rgba(201, 162, 39, .12);
    }
    body.m-premium :is(.v4-market-card, .v4-biz):hover img {
        transform: scale(1.025);
    }
}
body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):focus-visible {
    border-color: rgba(201, 162, 39, .65);
    background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .14), transparent 70%), var(--meriva-v4-surface-soft);
    box-shadow: var(--mp-shadow, var(--m-shadow)), inset 0 0 0 1px rgba(201, 162, 39, .45), 0 0 28px rgba(201, 162, 39, .35);
}
body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):focus-visible :is(.v4-action-icon, .v4-icon) {
    color: #c9a227;
    background: rgba(201, 162, 39, .12);
}
@media (hover: none) {
    body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):active {
        animation: meriva-card-tap-light 150ms linear;
    }
    body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):active :is(.v4-action-icon, .v4-icon) {
        animation: meriva-card-tap-icon 150ms linear;
    }
}
@keyframes meriva-card-tap-light {
    from, to {
        border-color: rgba(201, 162, 39, .65);
        background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .14), transparent 70%), var(--meriva-v4-surface-soft);
        box-shadow: var(--mp-shadow, var(--m-shadow)), inset 0 0 0 1px rgba(201, 162, 39, .45), 0 0 28px rgba(201, 162, 39, .35);
    }
}
@keyframes meriva-card-tap-icon {
    from, to {
        color: #c9a227;
        background: rgba(201, 162, 39, .12);
    }
}
@media (prefers-reduced-motion: reduce) {
    body.m-premium :is(.v4-action, .v4-navcard, .v4-biz, .v4-city-card, .v4-hit, .v4-market-card) {
        transition: none;
        transform: none;
        animation: none;
    }
    body.m-premium :is(a.v4-action, a.v4-navcard, .v4-city-card:not(.is-soon), a.v4-biz, a.v4-market-card):active {
        border-color: rgba(201, 162, 39, .65);
        background: radial-gradient(circle at 50% 0%, rgba(201, 162, 39, .14), transparent 70%), var(--meriva-v4-surface-soft);
        box-shadow: var(--mp-shadow, var(--m-shadow)), inset 0 0 0 1px rgba(201, 162, 39, .45), 0 0 28px rgba(201, 162, 39, .35);
    }
}

/* meriva-brand.css */
/**
 * MERİVA Brand System V3 — Gold & Honey Badger
 * Presentation polish for navbar, home, and core chrome.
 * Tokens: meriva-tokens.css. No routing or backend changes.
 */



.m-lp-hero {
    overflow: hidden;
}

.m-lp-hero h1 {
    letter-spacing: -0.04em;
    font-size: var(--m-type-40);
    line-height: 1.02;
}













.m-lp-map-frame .m-tr-map {
    max-height: min(52vh, 28rem);
}











/* Community = compact feature rail, not a card wall */










/* Content = editorial, not a boxed clone of Esnaf */








/* Esnaf stays a local-business photo card */


/* Opportunity stays reward/value with media */












.m-bell:focus-visible,
.m-nav-item:focus-visible{
    outline: 2px solid var(--m-gold);
    outline-offset: 2px;
}

/* Desktop icon rail: secondary, muted — gold only on hover/active */
@media (min-width: 992px) {
    .m-layout-member .m-app-sidebar .m-nav-item:hover {
        background: rgba(247, 243, 236, 0.04) !important;
        box-shadow: none;
    }

    .m-layout-member .m-app-sidebar .m-nav-item-icon,
    .m-layout-member .m-app-sidebar .m-nav-item-icon.text-warning,
    .m-layout-member .m-app-sidebar .m-nav-item-icon.text-info,
    .m-layout-member .m-app-sidebar .m-nav-item-icon.text-success,
    .m-layout-member .m-app-sidebar .m-nav-item-icon.text-primary {
        color: rgba(247, 243, 236, 0.4) !important;
    }

    .m-layout-member .m-app-sidebar .m-nav-item:hover .m-nav-item-icon,
    .m-layout-member .m-app-sidebar .m-nav-item.active .m-nav-item-icon {
        color: var(--m-gold) !important;
    }

    .m-layout-member .m-app-sidebar {
        border-right-color: rgba(247, 243, 236, 0.06) !important;
        box-shadow: none;
    }
}

@media (max-width: 767.98px) {
    .m-lp-hero {
        display: grid;
        min-height: min(72vh, 34rem);
        padding: 0;
        background-image: url("/images/hero-honey-badger.jpg");
        background-size: cover;
        background-position: 78% 52%;
    }

    

    .m-lp-hero::after {
        display: block;
        background:
            linear-gradient(180deg, rgba(6, 6, 8, 0.22) 0%, rgba(6, 6, 8, 0.55) 42%, rgba(6, 6, 8, 0.92) 100%);
    }

    

    

    .m-lp-map-frame .m-tr-map {
        max-height: 260px;
    }
}



@media (prefers-reduced-motion: reduce) {
    .m-lp-reveal{
        transition: none;
    }
}

/* meriva-mobile-fit.css */
/**
 * MERİVA — mobile fit overlay
 * Chip-row internal scroll and text containment.
 * Does not hide page overflow with html/body overflow-x.
 * Does not change homepage hero composition or desktop navbar.
 */

.m-app-main,
.m-app-container {
    min-width: 0;
    max-width: 100%;
}

.m-feed-chips,
.mx-content-prefs {
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
    scroll-padding-inline: 0.75rem;
    -webkit-overflow-scrolling: touch;
}

.m-app-main h1,
.m-app-main h2,
.m-app-main p,
.m-app-main li {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

@media (prefers-reduced-motion: reduce) {
    .m-feed-chips,
    .mx-content-prefs {
        scroll-behavior: auto;
    }
}

body.m-ui-v4 .m-app-main,
body.m-ui-v4 .m-app-container,
body.m-ui-v4 .v4-explore {
    min-width: 0;
    max-width: 100%;
}

/* meriva-ui-v4.css */
/**
 * MERIVA UI V4 — app shell, sidebar, explore hero, mobile dock.
 * Scoped to body.m-layout-member.m-ui-v4. Does not delete legacy CSS.
 */

.v4-icon {
    width: 1.15em;
    height: 1.15em;
    display: inline-block;
    flex-shrink: 0;
    vertical-align: -0.15em;
}

body.m-ui-v4 .m-app-shell {
    display: flex;
    align-items: stretch;
    min-height: 100dvh;
    width: 100%;
    max-width: 100%;
    overflow-x: visible;
}

body.m-ui-v4 .m-app-container {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
}

body.m-ui-v4 .m-app-main {
    flex: 1 1 auto;
    width: 100%;
    max-width: none;
    min-width: 0;
    margin: 0;
    padding: var(--meriva-v4-content-gap);
    padding-bottom: calc(var(--meriva-v4-content-gap) + 0.5rem);
}

body.m-ui-v4 .v4-explore{
    max-width: none;
    width: 100%;
}

/* —— Sidebar: compact rail on desktop, overlay expand on hover —— */
body.m-ui-v4 .m-app-sidebar.v4-sidebar {
    width: var(--meriva-v4-sidebar-width);
    min-width: var(--meriva-v4-sidebar-width);
    flex: 0 0 var(--meriva-v4-sidebar-width);
    background: var(--meriva-v4-sidebar);
    color: #f4f1ea;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    overflow-x: hidden;
}

@media (min-width: 1100px) {
    body.m-ui-v4 .m-app-shell {
        overflow-x: visible;
    }

    body.m-ui-v4 .m-app-container {
        overflow-x: visible;
        min-width: 0;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar {
        position: sticky;
        top: 0;
        align-self: flex-start;
        z-index: 1055;
        height: 100dvh;
        width: var(--meriva-v4-sidebar-collapsed);
        min-width: var(--meriva-v4-sidebar-collapsed);
        max-width: var(--meriva-v4-sidebar-collapsed);
        flex: 0 0 var(--meriva-v4-sidebar-collapsed);
        padding: 0;
        overflow: visible;
        border-right: 0;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-inner {
        width: var(--meriva-v4-sidebar-collapsed);
        height: 100dvh;
        padding: calc(var(--m-space) * 5) calc(var(--m-space) * 2) calc(var(--m-space) * 4);
        overflow-x: hidden;
        overflow-y: auto;
        background: var(--meriva-v4-sidebar);
        border-right: 1px solid rgba(255, 255, 255, 0.06);
        box-sizing: border-box;
        transition: width 220ms ease, box-shadow 220ms ease, padding 220ms ease;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:hover .v4-sidebar-inner,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:focus-within .v4-sidebar-inner,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar.is-hover-open .v4-sidebar-inner {
        width: var(--meriva-v4-sidebar-width);
        padding: calc(var(--m-space) * 5) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.32);
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-brand-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-nav-label,
body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-foot-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-theme-switch,
body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-pub-join,
body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-footer legend{
        white-space: nowrap;
        overflow-wrap: normal;
        word-break: normal;
        overflow: hidden;
        max-width: 12rem;
        opacity: 1;
        visibility: visible;
        transform: none;
        pointer-events: auto;
        transition: opacity 180ms ease, transform 180ms ease, max-width 220ms ease;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-header {
        justify-content: center;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-brand {
        justify-content: center;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-link {
        justify-content: center;
        padding-inline: calc(var(--m-space) * 2);
        gap: 0;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-mpoints-compact {
        justify-content: center;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-brand-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-label,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-foot-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-theme-switch,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-pub-join,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-footer legend{
        opacity: 0;
        max-width: 0;
        transform: translateX(-0.35rem);
        pointer-events: none;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-pub-join {
        padding: 0;
        border: 0;
        gap: 0;
        min-height: 0;
        overflow: hidden;
    }
}

@media (min-width: 1100px) and (hover: none) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar {
        width: var(--meriva-v4-sidebar-width);
        min-width: var(--meriva-v4-sidebar-width);
        max-width: var(--meriva-v4-sidebar-width);
        flex: 0 0 var(--meriva-v4-sidebar-width);
        padding: calc(var(--m-space) * 5) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-inner {
        width: 100%;
        height: auto;
        padding: 0;
        overflow: visible;
        border-right: 0;
        box-shadow: none;
    }
}

.v4-sidebar-inner {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    gap: calc(var(--m-space) * 5);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.18) transparent;
}

.v4-sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 1) calc(var(--m-space) * 1);
}

.v4-sidebar-brand {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

.v4-sidebar-brand:hover,
.v4-sidebar-brand:focus-visible {
    color: inherit;
}

.v4-sidebar-brand .m-badger-emblem {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.v4-sidebar-wordmark {
    font-weight: var(--m-weight);
    font-size: var(--m-type-16);
    letter-spacing: 0.08em;
    line-height: 1.1;
}

.v4-sidebar-tagline {
    display: block;
    margin-top: calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    color: rgba(244, 241, 234, 0.55);
    line-height: 1.25;
}

.v4-sidebar-close {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    color: inherit;
    border-radius: var(--m-radius-8);
}

.v4-nav {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.v4-nav-group {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    padding-block: calc(var(--m-space) * 1);
}

.v4-nav-group + .v4-nav-group {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin-top: calc(var(--m-space) * 1);
    padding-top: calc(var(--m-space) * 3);
}

.v4-nav-link {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    min-height: 2.55rem;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    color: rgba(244, 241, 234, 0.82);
    text-decoration: none;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    transition: background-color 0.16s ease, color 0.16s ease;
}

.v4-nav-link .v4-icon {
    width: 1.2rem;
    height: 1.2rem;
    color: rgba(244, 241, 234, 0.62);
}

.v4-nav-link:hover {
    background: rgba(255, 255, 255, 0.05);
    color: #f7f3ec;
}

.v4-nav-link.is-active {
    background: var(--meriva-v4-gold);
    color: var(--meriva-v4-black);
    font-weight: var(--m-weight);
}

.v4-nav-rule {
    height: 1px;
    margin: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    background: rgba(255, 255, 255, 0.08);
}

.v4-nav-link.is-active .v4-icon {
    color: var(--meriva-v4-black);
}



.v4-sidebar-footer {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    padding-top: calc(var(--m-space) * 3);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v4-mpoints-compact {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-8);
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.04);
}

.v4-mpoints-compact:hover {
    background: rgba(255, 255, 255, 0.07);
    color: inherit;
}

.v4-mpoints-label {
    font-size: var(--m-type-12);
    color: rgba(244, 241, 234, 0.55);
}

.v4-mpoints-value {
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
    font-variant-numeric: tabular-nums;
}

.v4-sidebar-footer fieldset {
    border: 0;
    margin: 0;
    padding: 0;
    min-width: 0;
}

.v4-sidebar-footer legend {
    font-size: var(--m-type-12);
    color: rgba(244, 241, 234, 0.5);
    margin-bottom: calc(var(--m-space) * 1);
    padding: 0;
}

.v4-theme-switch {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 1);
}

.v4-theme-opt {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(var(--m-space) * 1);
    min-height: 2.2rem;
    padding: calc(var(--m-space) * 1);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(244, 241, 234, 0.75);
    font-size: var(--m-type-12);
    cursor: pointer;
}

.v4-theme-opt input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.v4-theme-opt:has(input:checked),
.v4-theme-opt:has(input:focus-visible) {
    border-color: var(--meriva-v4-gold);
    color: var(--meriva-v4-gold);
}

.v4-theme-opt .v4-icon {
    width: 0.95rem;
    height: 0.95rem;
}

/* —— Context bar —— */
.v4-context {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    padding: calc(var(--m-space) * 3) var(--meriva-v4-content-gap) calc(var(--m-space) * 2);
    background: var(--meriva-v4-surface);
    position: sticky;
    top: 0;
    z-index: 40;
}

.v4-context-copy {
    min-width: 0;
}

.v4-context-title {
    margin: 0;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    letter-spacing: -0.03em;
    color: var(--meriva-v4-text);
    line-height: 1.2;
}

.v4-context-lead {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
}

.v4-context-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: calc(var(--m-space) * 2);
    margin-inline-start: auto;
    min-width: 0;
    max-width: 100%;
}

.v4-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    border-radius: var(--m-radius-pill);
    text-decoration: none;
    position: relative;
}

.v4-icon-btn:hover {
    border-color: rgba(201, 162, 39, 0.45);
    color: var(--meriva-v4-text);
}

.v4-icon-btn:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-context-actions .m-bell,
.v4-context-actions .m-btn--icon {
    width: 2.55rem;
    height: 2.55rem;
    min-width: 2.55rem;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    border-radius: var(--m-radius-pill);
    box-shadow: none;
}

.v4-city-chip {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-height: 2.55rem;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    max-width: min(14rem, 46vw);
}

.v4-city-chip:hover {
    color: var(--meriva-v4-text);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-city-chip .v4-icon {
    color: var(--meriva-v4-gold);
}

.v4-city-chip span {
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

.v4-bell-count {
    position: absolute;
    top: 0.2rem;
    right: 0.2rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 calc(var(--m-space) * 1);
    border-radius: var(--m-radius-pill);
    background: var(--meriva-v4-gold);
    color: var(--meriva-v4-black);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    line-height: 1rem;
    text-align: center;
}

.v4-user-menu {
    position: relative;
}

.v4-user-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    min-width: 2.75rem;
    min-height: 2.75rem;
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--m-radius-pill);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
}

.v4-user-panel {
    position: absolute;
    right: 0;
    top: calc(100% + 0.4rem);
    min-width: 13.5rem;
    padding: calc(var(--m-space) * 2);
    border-radius: var(--m-radius-16);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    z-index: 60;
}

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

.v4-user-panel a,
.v4-user-panel button {
    display: flex;
    width: 100%;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text);
    text-decoration: none;
    border-radius: var(--m-radius-8);
    font-size: var(--m-type-14);
    text-align: left;
}

.v4-user-panel a:hover,
.v4-user-panel button:hover {
    background: var(--meriva-v4-surface-soft);
}

.v4-user-group {
    margin: calc(var(--m-space) * 1) 0;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--meriva-v4-text-muted);
}

.v4-user-sep {
    height: 1px;
    margin: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    background: var(--meriva-v4-border);
}

.v4-guest-auth {
    display: flex;
    gap: calc(var(--m-space) * 2);
}

/* —— Explore —— */
.v4-explore {
    display: flex;
    flex-direction: column;
    gap: clamp(calc(var(--m-space) * 5), 2.4vw, calc(var(--m-space) * 8));
    min-width: 0;
}

.v4-explore-hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.35fr);
    gap: clamp(calc(var(--m-space) * 4), 2vw, calc(var(--m-space) * 7));
    align-items: stretch;
    padding: clamp(calc(var(--m-space) * 4), 2.2vw, calc(var(--m-space) * 7));
    border-radius: var(--meriva-v4-radius-xl);
    border: 1px solid rgba(201, 162, 39, 0.22);
    background:
        radial-gradient(640px 240px at 78% -12%, rgba(201, 162, 39, 0.12), transparent 62%),
        linear-gradient(160deg, #18181f 0%, #0c0c10 58%, #120e08 100%);
    color: #f7f3ec;
    min-width: 0;
    overflow: hidden;
}

.v4-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    gap: calc(var(--m-space) * 4);
}





.v4-hero-ecosystem {
    margin: calc(var(--m-space) * 1) 0 0;
    color: rgba(247, 243, 236, 0.82);
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    letter-spacing: 0;
    line-height: 1.4;
}







.v4-hero-search {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 1);
    min-width: 0;
}

.v4-hero-search .m-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    height: var(--m-control-height, 44px);
    min-height: var(--m-control-height, 44px);
    max-height: var(--m-control-height, 44px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    color: #f7f3ec;
}

.v4-hero-search > a,
.v4-hero-search > button {
    flex: 0 0 auto;
    width: auto;
}

.v4-hero-map {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid rgba(247, 243, 236, 0.08);
    background: rgba(6, 6, 8, 0.28);
}

.v4-hero-map .m-turkey-map-wrapper,
.v4-hero-map .m-tr-map {
    width: 100%;
    height: auto;
    max-height: min(58vw, 260px);
    aspect-ratio: 1007 / 527;
}

.v4-hero-map .m-tr-map {
    max-height: min(58vw, 260px) !important;
}

.v4-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: transparent;
    overflow: visible;
}

.v4-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    min-height: 6.5rem;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3);
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--meriva-v4-radius-lg);
    background: var(--meriva-v4-white);
    text-decoration: none;
    text-align: center;
    color: var(--meriva-v4-text);
    box-shadow: var(--meriva-v4-shadow);
    position: relative;
}


.v4-action-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    border-radius: var(--m-radius-8);
    background: rgba(201, 162, 39, 0.12);
    color: var(--meriva-v4-gold);
    flex-shrink: 0;
}

.v4-action-copy {
    min-width: 0;
    max-width: 100%;
}

.v4-action h3,
.v4-navcard h3,
.v4-hit h3 {
    margin: 0;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-action p,
.v4-navcard p,
.v4-hit p {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-12);
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-action.is-soon {
    cursor: default;
    pointer-events: none;
    opacity: 0.78;
}

.v4-action-soon {
    position: absolute;
    top: 0.45rem;
    right: 0.45rem;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
}

.v4-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    flex-wrap: wrap;
    margin-bottom: calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-section-head h2 {
    margin: 0;
    min-width: 0;
    font-size: var(--m-type-20);
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
    word-break: normal;
}



.v4-navcard {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
}


.v4-navcard .v4-icon {
    color: var(--meriva-v4-gold);
    margin-top: calc(var(--m-space) * 1);
}

.v4-city-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: calc(var(--m-space) * 3);
}

.v4-city-card,
.v4-hit {
    display: block;
    min-width: 0;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
    box-shadow: var(--meriva-v4-shadow);
}


.v4-city-card.is-spotlight {
    border-color: rgba(201, 162, 39, 0.55);
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.1), var(--meriva-v4-white) 42%);
    box-shadow: 0 0 0 1px rgba(201, 162, 39, 0.16);
}

.v4-city-card.is-soon {
    opacity: 0.55;
    cursor: default;
    box-shadow: none;
}

.v4-city-card.is-soon:hover {
    border-color: var(--meriva-v4-border);
    color: var(--meriva-v4-text);
}


.v4-city-closed-line {
    margin: calc(var(--m-space) * 3) 0 calc(var(--m-space) * 2);
    color: var(--meriva-v4-muted, #8a8680);
    overflow-wrap: break-word;
}











.v4-city-card h3,
.v4-hit h3 {
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-kicker {
    font-size: var(--m-type-12);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-empty {
    padding: calc(var(--m-space) * 6) calc(var(--m-space) * 5);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px dashed rgba(201, 162, 39, 0.32);
    background: rgba(201, 162, 39, 0.04);
    color: var(--meriva-v4-text-muted);
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-empty h2,
.v4-empty h3 {
    margin: 0 0 calc(var(--m-space) * 1);
    color: var(--meriva-v4-text);
    font-size: var(--m-type-28);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-empty > a,
.v4-empty > button {
    margin: calc(var(--m-space) * 3) calc(var(--m-space) * 1) 0;
}

.v4-esnaf-head {
    display: flex;
    gap: calc(var(--m-space) * 3);
    align-items: flex-start;
    flex-wrap: wrap;
}

.v4-esnaf-logo {
    width: 4rem;
    height: 4rem;
    border-radius: var(--m-radius-16);
    object-fit: cover;
    flex: 0 0 auto;
    background: var(--meriva-v4-surface-soft);
}

.v4-esnaf-logo.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
}

.v4-esnaf-copy {
    min-width: 0;
    flex: 1 1 12rem;
}

.v4-esnaf-copy h2 {
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-20);
}



.v4-biz-rail {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11.25rem, 1fr));
    gap: calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-biz {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    text-decoration: none;
    color: var(--meriva-v4-text);
    overflow: hidden;
    box-shadow: var(--meriva-v4-shadow);
}

.v4-biz-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--meriva-v4-surface-soft);
    overflow: hidden;
}

.v4-biz-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}



.v4-biz-copy {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    min-width: 0;
}

.v4-biz-badge {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    width: fit-content;
    max-width: 100%;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    background: rgba(201, 162, 39, 0.16);
    color: #8a6a12;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

html[data-meriva-theme="black"] .v4-biz-badge {
    color: var(--meriva-v4-gold);
}

.v4-biz-badge .v4-icon {
    width: 0.85em;
    height: 0.85em;
}

.v4-biz-name,
.v4-post-nick,
.v4-post-title {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.v4-biz-name {
    margin: 0;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
}

.v4-biz.is-plain .v4-biz-mark {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-height: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) 0;
    color: var(--meriva-v4-gold);
}

.v4-biz.is-plain .v4-biz-mark .v4-icon {
    width: 1.25rem;
    height: 1.25rem;
    flex: 0 0 auto;
}

.v4-biz.is-plain .v4-biz-mark-label {
    min-width: 0;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-biz.is-plain .v4-biz-copy {
    padding-top: calc(var(--m-space) * 1);
}

.v4-biz-cat,
.v4-biz-place,
.v4-post-place {
    margin: 0;
    font-size: var(--m-type-12);
    color: var(--meriva-v4-text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.v4-biz-place {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
}

.v4-biz-place .v4-icon {
    width: 0.9em;
    height: 0.9em;
    flex-shrink: 0;
}



.v4-post {
    display: flex;
    flex-direction: column;
    min-width: 0;
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    overflow: visible;
    box-shadow: var(--meriva-v4-shadow);
}



.v4-post-head {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 2);
    min-width: 0;
}

.v4-post-avatar {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--m-radius-pill);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--meriva-v4-surface-soft);
}

.v4-post-avatar.is-fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
}

.v4-post-meta {
    min-width: 0;
}

.v4-post-nick {
    margin: 0;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-post-body {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.v4-post-body:hover {
    color: inherit;
}

.v4-post-title {
    margin: 0;
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-post-excerpt {
    margin: 0;
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}



.v4-post-foot {
    display: flex;
    gap: calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    color: var(--meriva-v4-text-muted);
    font-size: var(--m-type-12);
    font-variant-numeric: tabular-nums;
}

.v4-post-foot span {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
}











.v4-city {
    display: flex;
    flex-direction: column;
    gap: clamp(calc(var(--m-space) * 4), 2vw, calc(var(--m-space) * 6));
    min-width: 0;
}

.v4-city-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
}

.v4-city-hero-copy {
    min-width: 0;
}

.v4-city-meta {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-search {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.v4-city-search .m-input {
    flex: 1 1 12rem;
    min-width: 0;
    min-height: var(--m-control-height, 44px);
}

.v4-city-search > a,
.v4-city-search > button {
    flex: 0 0 auto;
}

.v4-city-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--m-space) * 2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    padding-bottom: calc(var(--m-space) * 1);
}

.v4-city-tabs a {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    flex: 0 0 auto;
    min-height: var(--m-control-height, 44px);
    white-space: nowrap;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: var(--m-type-14);
}

.v4-city-tabs a span {
    color: var(--meriva-v4-text-muted);
    font-variant-numeric: tabular-nums;
}

.v4-city-tabs a.is-active {
    background: var(--meriva-v4-hero);
    color: #f7f3ec;
    border-color: transparent;
}

.v4-city-tabs a.is-active span {
    color: var(--meriva-v4-gold);
}

.v4-city-filter {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    flex-wrap: wrap;
    margin: 0;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-chips {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
}

.v4-city-chips a {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    min-height: 40px;
    max-width: 100%;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    text-decoration: none;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-chips a.is-selected {
    background: rgba(201, 162, 39, 0.16);
    border-color: rgba(201, 162, 39, 0.4);
}

.v4-city-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--m-space) * 4);
    min-width: 0;
}

.v4-city-main,
.v4-city-aside {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 4);
}

.v4-city-aside {
    order: -1;
}

.v4-city-panel {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
}

.v4-city-panel h2 {
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-panel p,
.v4-city-panel dt,
.v4-city-panel dd {
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-panel dl {
    margin: 0;
    display: grid;
    gap: calc(var(--m-space) * 2);
}

.v4-city-panel dl > div {
    display: grid;
    grid-template-columns: minmax(4.5rem, 0.4fr) minmax(0, 1fr);
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.v4-city-panel dt {
    color: var(--meriva-v4-text-muted);
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
}

.v4-city-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
    gap: calc(var(--m-space) * 3);
}

.v4-city-card h3 {
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-16);
}

.v4-city-card p {
    margin: 0;
    font-size: var(--m-type-12);
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-map-frame {
    border-radius: var(--meriva-v4-radius-lg);
    overflow: hidden;
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-surface-soft);
}

.v4-city .m-city-leaflet {
    height: 200px;
    max-height: 240px;
}

.v4-city-districts h2,
.v4-city-map h2 {
    margin: 0 0 calc(var(--m-space) * 2);
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-city-more {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

/* —— Map V4 colors (hero + scoped) —— */
body.m-ui-v4 .v4-hero-map .m-tr-map path {
    fill: #3a3a40;
    stroke: #2a2a30;
    stroke-width: 1px;
}

body.m-ui-v4 .v4-hero-map .m-tr-map g:hover path {
    fill: #4a4a52;
    stroke: var(--meriva-v4-gold);
    filter: brightness(1.08);
}

body.m-ui-v4 .v4-hero-map .m-tr-map g.m-city-active > path,
body.m-ui-v4 .v4-hero-map .m-tr-map g.m-city-active g path {
    fill: var(--meriva-v4-gold);
    stroke: #e5c45a;
    stroke-width: 1.6px;
    filter: drop-shadow(0 0 6px rgba(201, 162, 39, 0.35));
}

body.m-ui-v4 .v4-hero-map .m-malatya-pin {
    filter: drop-shadow(0 0 8px rgba(201, 162, 39, 0.28));
}

/* —— Mobile dock + plus sheet —— */
.v4-dock {
    display: none;
}

.v4-plus-sheet[hidden],
.v4-plus-backdrop[hidden] {
    display: none !important;
}

.v4-plus-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(8, 8, 10, 0.45);
    z-index: 1090;
}

.v4-plus-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    z-index: 1100;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(0.85rem + env(safe-area-inset-bottom));
    border-radius: var(--m-radius-16) var(--m-radius-16) 0 0;
    background: var(--meriva-v4-white);
    color: var(--meriva-v4-text);
    box-shadow: 0 -12px 40px rgba(8, 8, 10, 0.18);
}

.v4-plus-sheet h2 {
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 3);
    font-size: var(--m-type-16);
}

.v4-plus-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.v4-plus-list a {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    text-decoration: none;
    color: var(--meriva-v4-text);
}

.v4-plus-list a:hover,
.v4-plus-list a:focus-visible {
    background: var(--meriva-v4-surface-soft);
}

.v4-plus-list a > span {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
}

.v4-plus-hint {
    color: var(--meriva-v4-text-muted);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.v4-plus-close {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
}

@media (max-width: 1099.98px) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar {
        position: fixed;
        left: 0;
        top: 0;
        height: 100dvh;
        transform: translateX(-105%);
        z-index: 1080;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar.show-mobile {
        transform: translateX(0);
    }

    .v4-sidebar-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .v4-dock {
        display: flex;
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1060;
        align-items: flex-end;
        justify-content: space-around;
        gap: calc(var(--m-space) * 1);
        min-height: 4.15rem;
        padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2) calc(0.35rem + env(safe-area-inset-bottom));
        background: var(--meriva-v4-white);
        border-top: 1px solid var(--meriva-v4-border);
    }

    .v4-dock-link {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: calc(var(--m-space) * 1);
        flex: 1 1 0;
        min-width: 0;
        min-height: var(--control, 44px);
        color: var(--meriva-v4-text-muted);
        text-decoration: none;
        font-size: var(--m-type-12);
        font-weight: var(--m-weight);
    }

    .v4-dock-link.is-active {
        color: var(--meriva-v4-text);
    }

    .v4-dock-link.is-active .v4-icon {
        color: var(--meriva-v4-gold);
    }

    html[data-meriva-theme="white"] .v4-dock-link.is-active .v4-icon {
        color: #1A1814;
    }

    .v4-dock-plus {
        width: 3.1rem;
        height: 3.1rem;
        margin-top: calc(var(--m-space) * -5);
        border: 0;
        border-radius: var(--m-radius-pill);
        background: var(--meriva-v4-gold);
        color: var(--meriva-v4-black);
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 3.1rem;
    }

    body.m-ui-v4:has(.v4-dock) .m-app-main {
        padding-bottom: calc(5.4rem + env(safe-area-inset-bottom));
    }

    body.m-ui-v4:has(.v4-dock) .v4-board {
        padding-bottom: calc(var(--m-space) * 5);
    }
}

@media (min-width: 992px) and (max-width: 1099.98px) {
    .v4-explore-hero {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
    }

    

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

@media (max-width: 991.98px) {
    .v4-explore-hero {
        grid-template-columns: 1fr;
    }

    

    

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

    

    

    .v4-city-chip span {
        max-width: 9.5rem;
    }
}

@media (min-width: 1100px) {
    .v4-dock,
    .v4-plus-sheet,
    .v4-plus-backdrop {
        display: none !important;
    }

    .v4-city-body {
        grid-template-columns: minmax(0, 1fr) minmax(16rem, 18.75rem);
        align-items: start;
    }

    .v4-city-aside {
        order: 0;
        position: sticky;
        top: 5rem;
    }
}

@media (min-width: 1100px) and (max-width: 1279.98px) {
    

    .v4-biz-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 768px) {
    .v4-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .v4-hero-map .m-turkey-map-wrapper,
    .v4-hero-map .m-tr-map {
        max-height: min(36vh, 280px);
    }

    .v4-hero-map .m-tr-map {
        max-height: min(36vh, 280px) !important;
    }

    .v4-city .m-city-leaflet {
        height: 220px;
    }
}

@media (min-width: 1280px) {
    

    .v4-actions {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .v4-biz-rail {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }

    .v4-hero-map .m-turkey-map-wrapper,
    .v4-hero-map .m-tr-map {
        max-height: min(38vh, 320px);
    }

    .v4-hero-map .m-tr-map {
        max-height: min(38vh, 320px) !important;
    }
}

@media (min-width: 1440px) {
    body.m-ui-v4 .m-app-main {
        padding-inline: clamp(calc(var(--m-space) * 5), 2.4vw, calc(var(--m-space) * 9));
    }

    
}

@media (min-width: 1600px) {
    .v4-explore-hero {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
        min-height: 22rem;
    }

    .v4-biz-rail {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    
}

@media (max-width: 767.98px) {
    .v4-context {
        padding-inline: calc(var(--m-space) * 3);
    }

    body.m-ui-v4 .m-app-main {
        padding-inline: calc(var(--m-space) * 3);
    }

    body.m-layout-public .v4-land-hero {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: calc(var(--m-space) * 5) calc(var(--m-space) * 4) calc(var(--m-space) * 5);
        border-radius: var(--m-radius-16);
    }

    body.m-layout-public .v4-land-hero h1 {
        font-size: var(--m-type-40);
    }

    body.m-layout-public .v4-land-cta {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }

    

    

    body.m-layout-public .v4-land-hero .v4-hero-map .m-tr-map,
    body.m-layout-public .v4-land-hero .v4-hero-map .m-turkey-map-wrapper {
        max-height: none !important;
    }

    .v4-land-actions {
        grid-template-columns: 1fr;
    }

    .v4-context-lead {
        display: none;
    }

    

    .v4-mission,
    .v4-event,
    .v4-profile-card,
    .v4-board-row,
    .v4-ledger-item,
    .v4-mp-hero,
    .v4-post {
        overflow: visible;
    }

    .v4-market-body,
    .v4-mission.v4-market-body,
    .v4-event.v4-market-body,
    .v4-mission .v4-market-body,
    .v4-event .v4-market-body,
    .v4-profile-card {
        padding-inline: calc(var(--m-space) * 5);
        padding-block: calc(var(--m-space) * 4) calc(var(--m-space) * 5);
    }
}

@media (max-width: 35.98rem) {
    .v4-city-chip {
        padding-inline: calc(var(--m-space) * 2);
    }

    
}

@media (prefers-reduced-motion: reduce) {
    .v4-nav-link,
    .v4-action,
    .v4-navcard,
    body.m-ui-v4 .v4-hero-map .m-tr-map path,
    .v4-plus-sheet,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-inner,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-brand-copy,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-nav-label {
        transition: none;
    }

    body.m-ui-v4 .m-malatya-pin {
        animation: none;
    }
}

/* —— Content V4 feed / details / composer —— */
.v4-content {
    width: 100%;
    max-width: min(56rem, 100%);
    margin-inline: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 4);
    overflow-x: visible;
}

.v4-content-toolbar {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-content-filters {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    align-items: center;
    min-width: 0;
}

.v4-content-filters .m-form-group {
    flex: 1 1 8rem;
    min-width: 0;
    margin: 0;
}

.v4-content-filters fieldset {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 1);
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
}

.v4-content-filters .m-input,
.v4-content-filters .m-select,
.v4-content-filters .m-form-group .m-input,
.v4-content-filters .m-form-group .m-select {
    flex: 1 1 8rem;
    width: auto;
    min-width: 0;
    height: var(--m-control-height, 44px);
    min-height: var(--m-control-height, 44px);
    max-height: var(--m-control-height, 44px);
}

.v4-content-filters > a,
.v4-content-filters > button {
    flex: 0 0 auto;
    width: auto;
}

.v4-gift-filters {
    flex-wrap: nowrap;
}

.v4-gift-filters > .m-form-group {
    flex: 1 1 0;
    min-width: 0;
}

.v4-content-filters.v4-gift-filters > .m-form-group .m-select {
    width: 100%;
}

.v4-gift-filters > a,
.v4-gift-filters > button {
    flex: 0 0 auto;
    width: auto;
}

.v4-content-note,
.v4-content-end,
.v4-content-retry {
    margin: 0;
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
}

.v4-content-feed {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 4);
    min-width: 0;
}









.v4-post-prose {
    margin: 0;
    font-size: var(--m-type-16);
    line-height: 1.65;
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-post-media-frame {
    display: block;
    margin: 0 calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-16);
    overflow: hidden;
    background: var(--meriva-v4-surface-soft);
    min-width: 0;
}

.v4-post-media-frame img,
.v4-post-media-frame video {
    display: block;
    width: 100%;
    height: auto;
    max-height: 28rem;
    object-fit: contain;
    background: var(--meriva-v4-surface-soft);
}







.v4-post-pdf {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    margin: 0 calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid var(--meriva-v4-border);
    color: inherit;
    text-decoration: none;
}

.v4-post-slot {
    min-width: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.v4-post-slot > .v4-post {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
}

.v4-post-menu {
    margin-left: auto;
    position: relative;
}

.v4-post-menu-btn {
    list-style: none;
    cursor: pointer;
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text-muted);
    width: var(--m-control-height, 44px);
    height: var(--m-control-height, 44px);
    min-width: var(--m-control-height, 44px);
    min-height: var(--m-control-height, 44px);
    border-radius: var(--m-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.v4-post-menu-btn::-webkit-details-marker {
    display: none;
}

.v4-post-menu-btn:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-post-menu-list {
    position: absolute;
    right: 0;
    top: calc(100% + 0.25rem);
    z-index: 24;
    min-width: 14.5rem;
    max-width: min(16.5rem, calc(100vw - 1.5rem));
    padding: calc(var(--m-space) * 1);
    border-radius: var(--m-radius-8);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.v4-post-submenu {
    width: 100%;
}

.v4-post-submenu > summary {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    width: 100%;
    min-height: var(--m-control-height, 44px);
    list-style: none;
    cursor: pointer;
    border-radius: var(--m-radius-8);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    font-size: var(--m-type-14);
}

.v4-post-submenu > summary::-webkit-details-marker {
    display: none;
}

.v4-post-submenu-list {
    display: flex;
    flex-direction: column;
    padding: 0 0 calc(var(--m-space) * 1) calc(var(--m-space) * 1);
}

.v4-post-menu-list a,
.v4-post-menu-list button,
.v4-post-submenu > summary {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    width: 100%;
    min-height: var(--m-control-height, 44px);
    border: 0;
    background: transparent;
    color: var(--meriva-v4-text);
    text-decoration: none;
    text-align: left;
    font-size: var(--m-type-14);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-8);
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-post-menu-list form {
    margin: 0;
    width: 100%;
}

.v4-post-menu-sep {
    height: 1px;
    margin: calc(var(--m-space) * 1) calc(var(--m-space) * 1);
    border: 0;
    background: var(--meriva-v4-border);
}

.v4-post-menu-list button.is-danger {
    color: var(--m-danger, #E57373);
}

.v4-post-status {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    background: rgba(201, 162, 39, 0.14);
    color: var(--meriva-v4-gold);
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.v4-post-status--published {
    background: rgba(126, 200, 154, 0.16);
    color: var(--m-success, #7EC89A);
}

.v4-post-status--rejected {
    background: rgba(229, 115, 115, 0.12);
    color: var(--m-danger, #E57373);
}

.v4-post-status--pendingreview {
    background: rgba(201, 162, 39, 0.12);
    color: var(--meriva-v4-gold);
}

.v4-post-status--quarantined{
    background: var(--meriva-v4-surface-soft);
    color: var(--meriva-v4-text-muted);
    border: 1px solid var(--meriva-v4-border);
}

.v4-post-note {
    margin: 0 calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
}

.v4-post-foot {
    align-items: center;
    flex-wrap: wrap;
}

.v4-post-menu-list a:focus-visible,
.v4-post-menu-list button:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 1px;
}

.v4-post-reports {
    margin-left: auto;
    font-size: var(--m-type-12);
    line-height: 1;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    background: var(--meriva-v4-surface-2, rgba(0, 0, 0, 0.06));
    color: var(--meriva-v4-text-muted);
    font-variant-numeric: tabular-nums;
}

.v4-remove-sheet {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: end center;
}

.v4-remove-sheet[hidden] {
    display: none;
}

.v4-remove-sheet-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.v4-remove-sheet-panel {
    position: relative;
    width: min(28rem, 100%);
    margin: 0;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-16) var(--m-radius-16) 0 0;
    background: var(--meriva-v4-surface, #fff);
    color: inherit;
}

.v4-remove-sheet-panel h2 {
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-16);
}

.v4-remove-reason {
    display: flex;
    gap: calc(var(--m-space) * 2);
    align-items: center;
    margin: calc(var(--m-space) * 1) 0;
}

.v4-remove-actions {
    display: flex;
    justify-content: flex-end;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 3);
}

.v4-post-comments,
.v4-post-metric {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    color: var(--meriva-v4-text-muted);
    text-decoration: none;
    font-variant-numeric: tabular-nums;
}

.v4-react {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
}

.v4-react-btn {
    width: var(--m-control-height, 44px);
    height: var(--m-control-height, 44px);
    min-width: var(--m-control-height, 44px);
    min-height: var(--m-control-height, 44px);
    border: 0;
    border-radius: var(--m-radius-pill);
    background: transparent;
    color: var(--meriva-v4-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.v4-react-btn:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-react-btn .v4-react-filled {
    display: none;
}

.v4-react-btn.is-on .v4-react-outline {
    display: none;
}

.v4-react-btn.is-on .v4-react-filled {
    display: inline-flex;
}

.v4-react-btn.is-on.m-crest-up {
    color: #c45c4a;
}

.v4-react-btn.is-on.m-crest-down {
    color: #8a7464;
}

.v4-react-score {
    min-width: 1.4rem;
    text-align: center;
    font-variant-numeric: tabular-nums;
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
}

.v4-comments,
.v4-content-panel,
.v4-composer-card {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-lg);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
}

.v4-comments h2,
.v4-content-panel h2,
.v4-composer-card h1,
#mx-create-title {
    margin: 0 0 calc(var(--m-space) * 3);
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    font-size: var(--m-type-16);
}

.v4-comment-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
}

.v4-comment {
    display: flex;
    gap: calc(var(--m-space) * 3);
    padding-bottom: calc(var(--m-space) * 3);
    border-bottom: 1px solid var(--meriva-v4-border);
    min-width: 0;
}

.v4-comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    margin: 0 0 calc(var(--m-space) * 1);
    font-size: var(--m-type-14);
}

.v4-comment-head span {
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.v4-comment-body {
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-comment-form,
.v4-inline-form {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 3);
}

.v4-inline-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
}

.v4-content-notice {
    margin: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(201, 162, 39, 0.08);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-content-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 1);
    font-size: var(--m-type-14);
    color: var(--meriva-v4-text-muted);
}

.v4-type-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 2);
    margin: calc(var(--m-space) * 4) 0 calc(var(--m-space) * 4);
}

.v4-type {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    min-height: 4.4rem;
    border-radius: var(--m-radius-8);
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-surface);
    color: var(--meriva-v4-text);
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-type.is-on {
    border-color: var(--meriva-v4-gold);
    background: rgba(201, 162, 39, 0.12);
}

.v4-type:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-composer-who {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-field {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    margin-bottom: calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-field label {
    overflow-wrap: break-word;
    word-break: normal;
}

/* Public auth (_PublicLayout) does not load meriva-premium-foundation.css.
   Keep the eye toggle inside the input at 375–412 without changing JS. */
.m-password-wrap {
    position: relative;
    width: 100%;
    min-width: 0;
}

.m-password-wrap .m-input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    padding-right: calc(var(--m-space) * 11);
}

.m-password-toggle {
    position: absolute;
    right: 0.25rem;
    top: 50%;
    z-index: 1;
    box-sizing: border-box;
    width: 2.5rem;
    height: 2.5rem;
    min-width: 2.5rem;
    min-height: 2.5rem;
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: var(--meriva-v4-radius-sm);
    background: transparent;
    color: var(--meriva-v4-text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transform: translateY(-50%);
    flex-shrink: 0;
    line-height: 0;
    appearance: none;
    -webkit-appearance: none;
}

.m-password-toggle:focus-visible {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 1px;
}

.v4-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--m-space) * 3);
}

@media (min-width: 36rem) {
    .v4-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.v4-upload {
    margin-bottom: calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 4);
    border-radius: var(--m-radius-16);
    border: 1px dashed rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.04);
}

.v4-upload-lead {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    font-weight: var(--m-weight);
    margin: 0 0 calc(var(--m-space) * 1);
}

.v4-upload-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
}

.v4-upload-preview img,
.v4-upload-preview video {
    max-width: 100%;
    max-height: 16rem;
    border-radius: var(--m-radius-8);
}

.v4-upload-progress {
    margin: 0 0 calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-16);
    border: 1px solid rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.06);
    min-width: 0;
}

.v4-upload-progress-warn,
.v4-upload-progress-done {
    margin: 0 0 calc(var(--m-space) * 2);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
}

.v4-upload-progress-track {
    height: 0.55rem;
    border-radius: var(--m-radius-pill);
    background: rgba(247, 243, 236, 0.12);
    min-width: 0;
}

.v4-upload-progress-bar {
    height: 100%;
    width: 0;
    border-radius: var(--m-radius-pill);
    background: var(--meriva-v4-gold, #d4af37);
}

.v4-upload-progress-pct {
    margin: calc(var(--m-space) * 2) 0 0;
    font-weight: var(--m-weight);
    font-variant-numeric: tabular-nums;
}

.v4-composer-actions {
    display: flex;
    justify-content: flex-end;
    gap: calc(var(--m-space) * 2);
    flex-wrap: wrap;
}

.v4-empty-icon {
    display: inline-flex;
    color: var(--meriva-v4-gold);
    margin-bottom: calc(var(--m-space) * 2);
}

@media (max-width: 767.98px) {
    .v4-field-row {
        grid-template-columns: 1fr;
    }

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

    .v4-post-media-frame img,
    .v4-post-media-frame video {
        max-height: 18rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .v4-react-btn,
    .v4-type {
        transition: none;
    }
}

/* —— Phase 4 public + member surfaces —— */
body.m-layout-public {
    min-height: 100dvh;
    background: var(--meriva-v4-surface);
    color: var(--meriva-v4-text);
}

body.m-layout-public .m-app-main.v4-pub-main {
    width: 100%;
    max-width: none;
    margin: 0;
    min-width: 0;
}

.v4-pub-brand {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    color: inherit;
    text-decoration: none;
    flex-shrink: 0;
}

.v4-pub-join {
    margin-top: 0;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.v4-pub-join-kicker {
    margin: 0;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.06em;
    color: var(--meriva-v4-gold);
}

.v4-pub-join-copy {
    margin: 0;
    font-size: var(--m-type-12);
    line-height: 1.45;
    color: #C8C2B6;
}

.v4-pub-top {
    display: none;
}

.v4-pub-top-brand {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    color: inherit;
    text-decoration: none;
    font-size: var(--m-type-14);
}

.v4-pub-top-brand .m-badger-emblem {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.v4-pub-top-brand .m-brand-wordmark {
    font-size: var(--m-type-12);
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.v4-pub-foot {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3) calc(var(--m-space) * 5);
    align-items: center;
    padding: calc(var(--m-space) * 5) var(--meriva-v4-content-gap) calc(1.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--meriva-v4-border);
    color: var(--meriva-v4-text-muted);
    font-size: var(--m-type-14);
}

.v4-pub-foot nav {
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    min-width: 0;
    gap: calc(var(--m-space) * 3);
}

.v4-pub-foot a {
    color: inherit;
}



.v4-land-hero {
    display: grid;
    grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(calc(var(--m-space) * 4), 2.4vw, calc(var(--m-space) * 8));
    align-items: center;
    min-height: min(72vh, 36rem);
    padding: clamp(calc(var(--m-space) * 4), 2.2vw, calc(var(--m-space) * 7));
    border-radius: var(--meriva-v4-radius-xl);
    background: linear-gradient(160deg, #16161c 0%, #0b0b0e 70%);
    color: #f7f3ec;
    min-width: 0;
    overflow: hidden;
}







body.m-layout-public .v4-land-hero .v4-hero-map .m-tr-map,
body.m-layout-public .v4-land-hero .v4-hero-map .m-turkey-map-wrapper {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(58vh, 34rem) !important;
    aspect-ratio: 1007 / 527;
}











.v4-land-kicker{
    margin: 0 0 calc(var(--m-space) * 2);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
}

.v4-land-hero h1 {
    margin: 0;
    font-family: var(--meriva-font-display, Georgia, "Times New Roman", serif);
    font-size: var(--m-type-40);
    font-weight: var(--m-weight);
    line-height: 0.98;
    letter-spacing: -0.035em;
    color: #fff;
}



.v4-land-cta {
    display: inline-flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
}

.v4-land-cta form {
    display: inline-flex;
    margin: 0;
}



.v4-land-copy {
    margin: 0 0 calc(var(--m-space) * 4);
    color: var(--meriva-v4-text-muted);
    max-width: 40rem;
}



.v4-land-action{
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    border-radius: var(--meriva-v4-radius-lg);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
}

.v4-land-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 3);
}

.v4-land-action {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 4);
    color: inherit;
    text-decoration: none;
}

.v4-land-action:hover,
.v4-land-action:focus-visible {
    border-color: rgba(201, 162, 39, 0.45);
    color: inherit;
}

.v4-land-action .v4-icon {
    color: var(--meriva-v4-gold);
}









.v4-land-list {
    list-style: none;
    margin: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
}

.v4-land-list li {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 2) 0;
    border-bottom: 1px solid var(--meriva-v4-border);
}

.v4-land-list a {
    color: inherit;
    font-weight: var(--m-weight);
}

.v4-land-list span{
    color: var(--meriva-v4-text-muted);
    font-size: var(--m-type-14);
}





.v4-check {
    display: flex;
    gap: calc(var(--m-space) * 3);
    align-items: flex-start;
    margin: calc(var(--m-space) * 2) 0 calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    min-height: var(--m-control-height, 44px);
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--meriva-v4-radius-md);
    background: var(--meriva-v4-surface-soft);
    cursor: pointer;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-check:has(input:checked) {
    border-color: rgba(201, 162, 39, 0.55);
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.08), var(--meriva-v4-white) 42%);
}

.v4-check:focus-within {
    outline: 2px solid var(--meriva-v4-gold);
    outline-offset: 2px;
}

.v4-check input {
    margin-top: calc(var(--m-space) * 1);
    accent-color: var(--meriva-v4-gold);
    flex: 0 0 auto;
}

.v2-esnaf-box {
    display: grid;
    gap: calc(var(--m-space) * 3);
    margin: 0 0 calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border: 1px solid rgba(201, 162, 39, 0.28);
    border-radius: var(--meriva-v4-radius-md);
    background: rgba(201, 162, 39, 0.05);
}

.v2-esnaf-box[hidden] {
    display: none;
}

.v4-interest-label {
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
}

.v4-interest-chips {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 1);
}

.v4-interest-chip {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid rgba(201, 162, 39, 0.45);
    background: #111;
    color: #f4ead0;
    cursor: pointer;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    user-select: none;
}

.v4-interest-chip input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}

.v4-interest-chip.is-on {
    background: #d4af37;
    color: #111;
    border-color: #d4af37;
}

.v4-interest-chip:focus-within {
    outline: 2px solid #d4af37;
    outline-offset: 2px;
}

.v4-bio-input {
    min-height: 6.5rem;
    resize: vertical;
}

.v4-bio-count {
    margin: 0;
    text-align: right;
    color: var(--meriva-v4-text-muted);
    font-size: var(--m-type-12);
    font-variant-numeric: tabular-nums;
}

.v4-page {
    width: 100%;
    max-width: min(72rem, 100%);
    margin-inline: auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 4);
}

.v4-page--narrow {
    max-width: min(56rem, 100%);
}

.v4-sec-nav {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
}

.v4-market {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
    gap: calc(var(--m-space) * 3);
}

.v4-market-card,
.v4-board-row,
.v4-mission,
.v4-event,
.v4-profile-card,
.v4-mp-hero,
.v4-ledger-item {
    border: 1px solid var(--meriva-v4-border);
    background: var(--meriva-v4-white);
    border-radius: var(--meriva-v4-radius-lg);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
    overflow: visible;
}

.v4-market-card {
    display: flex;
    flex-direction: column;
    color: inherit;
    text-decoration: none;
    overflow: hidden;
}

.v4-market-media {
    display: block;
    aspect-ratio: 16 / 10;
    background: var(--meriva-v4-surface-soft);
}

.v4-market-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.v4-market-body {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5) calc(var(--m-space) * 5);
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.v4-market-body h3 {
    margin: 0;
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-market-body p,
.v4-market-points,
.v4-market-status,
.v4-land-kicker {
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-market-points {
    margin: 0;
    color: var(--meriva-v4-gold);
    font-weight: var(--m-weight);
    font-variant-numeric: tabular-nums;
}

.v4-mission,
.v4-event {
    padding: 0;
}

.v4-mission.v4-market-body,
.v4-event.v4-market-body,
.v4-mission .v4-market-body,
.v4-event .v4-market-body {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5) calc(var(--m-space) * 5);
}

.v4-mission.is-daily {
    border-color: rgba(201, 162, 39, 0.48);
    background:
        linear-gradient(180deg, rgba(201, 162, 39, 0.08), var(--meriva-v4-white) 38%);
}

.v4-mission.is-standard {
    border-color: var(--meriva-v4-border);
}

.v4-mission .v4-comment-form > button,
.v4-mission .v4-upload-actions {
    align-self: flex-start;
}

.v4-mp-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 5) calc(var(--m-space) * 5);
    border-color: rgba(201, 162, 39, 0.28);
    background:
        radial-gradient(280px 120px at 100% 0%, rgba(201, 162, 39, 0.1), transparent 64%),
        var(--meriva-v4-white);
}

.v4-mp-hero p {
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-offer-title {
    -webkit-line-clamp: unset;
    display: block;
    overflow: visible;
}

.v4-offer-cost {
    font-size: var(--m-type-28);
}

.v4-offer-code {
    font-size: var(--m-type-28);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-offer-media {
    border-radius: var(--m-radius-8);
    margin-bottom: calc(var(--m-space) * 3);
}

.v4-board {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
}

.v4-board-row {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
}

.v4-board-rank {
    flex: 0 0 2.2rem;
    width: 2.2rem;
    font-variant-numeric: tabular-nums;
    font-weight: var(--m-weight);
    text-align: center;
    line-height: 1.2;
}

.v4-board-avatar {
    flex: 0 0 2.25rem;
}

.v4-board-who {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.v4-board-who-primary {
    display: flex;
    flex-wrap: nowrap;
    align-items: baseline;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.v4-board-name {
    flex: 0 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-board-nick,
.v4-board-place {
    margin: 0;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-board-nick {
    flex: 1 1 4rem;
}

.v4-board-points {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: calc(var(--m-space) * 1);
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    min-width: min-content;
}

.v4-board-row.is-top-1 {
    border-color: rgba(201, 162, 39, 0.45);
}

.v4-mp-value {
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 2);
    font-size: var(--m-type-40);
    font-weight: var(--m-weight);
}

.v4-mp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 2);
}











.v4-ledger-item {
    display: flex;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5);
}



.v4-profile-card {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5);
}

.v4-dl {
    margin: 0 0 calc(var(--m-space) * 3);
    display: grid;
    gap: calc(var(--m-space) * 2);
}

.v4-dl > div {
    display: grid;
    grid-template-columns: minmax(6.5rem, 0.4fr) minmax(0, 1fr);
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.v4-dl dt {
    margin: 0;
    color: var(--meriva-v4-text-muted);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-dl dd {
    margin: 0;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}















@media (min-width: 1100px) {
    body.m-layout-public .v4-pub-top {
        display: none !important;
    }
}

@media (max-width: 1099.98px) {
    body.m-layout-public .v4-pub-top {
        display: flex;
        align-items: center;
        gap: calc(var(--m-space) * 3);
        position: sticky;
        top: 0;
        z-index: 40;
        min-height: 3.4rem;
        padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
        padding-left: calc(0.85rem + env(safe-area-inset-left));
        padding-right: calc(0.85rem + env(safe-area-inset-right));
        background: var(--meriva-v4-sidebar);
        color: #f4f1ea;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.m-layout-public .v4-pub-top .v4-icon-btn {
        color: #f4f1ea;
        background: transparent;
        border-color: rgba(255, 255, 255, 0.12);
    }

    body.m-layout-public .v4-pub-top .v4-pub-top-brand {
        flex: 1 1 auto;
        min-width: 0;
    }
}

@media (max-width: 899.98px) {
    .v4-mp-stats{
        grid-template-columns: 1fr;
    }

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

    .v4-board-row {
        align-items: flex-start;
        gap: calc(var(--m-space) * 2);
        padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    }

    .v4-board-rank,
    .v4-board-avatar {
        margin-top: calc(var(--m-space) * 1);
    }

    .v4-board-rank {
        flex-basis: 1.6rem;
        width: 1.6rem;
    }

    .v4-board-who-primary {
        flex-direction: column;
        align-items: stretch;
        gap: calc(var(--m-space) * 1);
    }

    .v4-board-name {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
    }

    .v4-board-nick {
        flex: 0 1 auto;
    }

    .v4-board-points {
        flex-direction: column;
        align-items: flex-end;
        align-self: flex-start;
        gap: calc(var(--m-space) * 1);
        margin-top: calc(var(--m-space) * 1);
        white-space: normal;
        line-height: 1.15;
        text-align: right;
    }

    .v4-board-points-unit {
        font-size: var(--m-type-12);
        color: var(--meriva-v4-text-muted);
    }

    
}



/* —— Listing / swap marketplace polish —— */
.v4-page .m-form-label,
.v4-page legend.m-form-label {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.v4-page .m-form-group {
    min-width: 0;
}

.v4-page [data-m-category-helper],
.v4-page .v2-hint {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.v4-page [data-m-eids-card],
.v4-page .m-alert-warning {
    margin-top: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(201, 162, 39, 0.28);
    background: rgba(201, 162, 39, 0.08);
    color: var(--meriva-v4-text);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-page [data-m-eids-card] p,
.v4-page .m-alert-warning p {
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-page .v4-land-cta > a,
.v4-page .v4-land-cta > button {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    text-align: center;
    max-width: 100%;
}

.v4-market-card.is-vehicle,
.v4-profile-card.is-vehicle {
    border-color: rgba(201, 162, 39, 0.42);
}

.v4-market-card.is-vehicle-part,
.v4-profile-card.is-vehicle-part {
    border-color: var(--meriva-v4-border);
    box-shadow:
        inset 3px 0 0 rgba(201, 162, 39, 0.55),
        var(--meriva-v4-shadow);
}

.v4-market-card.is-pending-payment,
.v4-profile-card.is-pending-payment {
    border-color: rgba(201, 162, 39, 0.38);
}

.v4-market-card.is-compliance,
.v4-profile-card.is-compliance {
    border-color: rgba(201, 162, 39, 0.22);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.06), var(--meriva-v4-white) 36%);
}

.v4-market-card.is-sold,
.v4-market-card.is-cancelled,
.v4-profile-card.is-completed {
    opacity: 0.94;
}

.v4-listing-status {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    margin: 0 0 calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    background: rgba(201, 162, 39, 0.12);
    color: var(--meriva-v4-gold);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-listing-status.is-active {
    background: rgba(126, 200, 154, 0.16);
    color: var(--m-success, #7EC89A);
}

.v4-listing-status.is-compliance,
.v4-listing-status.is-pending-payment {
    background: rgba(201, 162, 39, 0.12);
    color: var(--meriva-v4-gold);
}

.v4-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    margin-bottom: calc(var(--m-space) * 3);
}

.v4-gallery img {
    width: 4.5rem;
    height: 4.5rem;
    object-fit: cover;
    border-radius: var(--m-radius-8);
}

.v4-proposal-list {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
}

.v4-proposal {
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--meriva-v4-radius-md);
    background: var(--meriva-v4-surface-soft);
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-proposal .v4-land-cta > a,
.v4-proposal .v4-land-cta > button {
    max-width: 100%;
}



.v4-today-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 4);
    align-items: end;
    min-width: 0;
    max-width: 100%;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border: 1px solid rgba(201, 162, 39, 0.38);
    border-radius: var(--meriva-v4-radius-lg);
    background: linear-gradient(180deg, rgba(201, 162, 39, 0.1), var(--meriva-v4-white) 58%);
    text-decoration: none;
    color: inherit;
    box-shadow: var(--meriva-v4-shadow);
}

.v4-today-link > span {
    min-width: 0;
}

.v4-today-kicker {
    grid-column: 1 / -1;
    margin: 0;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
}

.v4-today-link h2 {
    margin: 0;
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-today-link p {
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-today-points {
    justify-self: end;
    align-self: end;
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.v4-proof-form {
    margin-top: calc(var(--m-space) * 3);
}

.v4-proof-upload {
    margin: calc(var(--m-space) * 3) 0 calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3);
    border-radius: var(--m-radius-16);
    border: 1px dashed rgba(201, 162, 39, 0.35);
    background: rgba(201, 162, 39, 0.04);
}

.v4-proof-thumb,
.v4-proof-preview img {
    display: block;
    width: 8rem;
    height: 8rem;
    object-fit: cover;
    border-radius: var(--m-radius-8);
    margin: calc(var(--m-space) * 2) 0 0;
}

.v4-mission.is-locked {
    opacity: 0.92;
}

.v4-level {
    margin: calc(var(--m-space) * 3) 0;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    border: 1px solid var(--meriva-v4-border);
    border-radius: var(--meriva-v4-radius-lg);
    background: var(--meriva-v4-white);
    box-shadow: var(--meriva-v4-shadow);
    min-width: 0;
}

.v4-level-kicker {
    margin: 0;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--meriva-v4-gold);
}

.v4-level-status {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-level-next {
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--meriva-v4-text-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.v4-level-meter {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 2);
    margin: calc(var(--m-space) * 3) 0 calc(var(--m-space) * 3);
}

.v4-level-meter span {
    height: 6px;
    border-radius: var(--m-radius-pill);
    background: rgba(20, 18, 14, 0.1);
}

.v4-level-meter span.is-on {
    background: var(--meriva-v4-gold);
}

.mp-page .v4-level {
    background: linear-gradient(145deg, #151618, #0e0f11);
    border-color: rgba(239, 225, 193, 0.13);
    box-shadow: none;
    color: #f7f3ec;
}

.mp-page .v4-level-next {
    color: #bcb8ae;
}

.v4-mission-cta {
    margin-top: calc(var(--m-space) * 2);
    color: var(--meriva-v4-gold);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
}

a.v4-mission {
    color: inherit;
    text-decoration: none;
}

a.v4-mission:hover,
a.v4-mission:focus-visible {
    border-color: rgba(201, 162, 39, 0.45);
    outline: none;
}

@media (max-width: 639.98px) {
    .v4-today-link {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .v4-explore-hero {
        gap: calc(var(--m-space) * 3);
    }

    .v4-hero-map {
        padding: calc(var(--m-space) * 1) calc(var(--m-space) * 1);
    }

    .v4-hero-map .m-turkey-map-wrapper {
        padding-block: 0;
    }

    .v4-hero-map .m-turkey-map-wrapper,
    .v4-hero-map .m-tr-map {
        max-height: min(58vw, 260px);
    }

    .v4-hero-map .m-tr-map {
        max-height: min(58vw, 260px) !important;
    }
}

/* meriva-panel-reflow.css */
/**
 * Role-panel reflow (Admin / Siyah Ekran / Esnaf only).
 * Loaded only by panel layouts — does not change V4 member/public chrome.
 *
 * Overrides global mid-word wrap from meriva-design-system.css
 * and later button/card wrap rules from meriva-premium-foundation.css.
 */
body.m-role-panel,
body.m-role-panel * {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

.m-role-panel,
.m-role-panel .m-app-shell,
.m-role-panel .m-app-container,
.m-role-panel .m-app-main,
.m-role-panel .m-app-header,
.m-role-panel .m-card,
.m-role-panel .m-card-dark,
.m-role-panel .m-stat-card-dark,
.m-role-panel .m-hero-card-dark,
.m-role-panel .m-card-stat,
.m-role-panel .row,
.m-role-panel [class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.m-role-panel .m-app-shell {
    overflow-x: visible;
}

.m-role-panel .m-app-header {
    height: auto;
    min-height: var(--meriva-header-height);
    flex-wrap: wrap;
    row-gap: calc(var(--m-space) * 2);
    column-gap: calc(var(--m-space) * 3);
}

.m-role-panel .m-app-header > .d-flex {
    flex-wrap: wrap;
    min-width: 0;
}

.m-role-panel .m-app-header > .d-flex:first-child > div {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
}

.m-role-panel .m-app-header > .d-flex:last-child {
    justify-content: flex-end;
}

.m-role-panel .m-app-main {
    overflow-x: visible;
}

.m-role-panel .d-flex.justify-content-between,
.m-role-panel form.d-flex,
.m-role-panel .d-flex:has(> .m-btn),
.m-role-panel .d-flex:has(> .m-badge),
.m-role-panel .d-flex:has(> .btn) {
    flex-wrap: wrap;
    min-width: 0;
}

.m-role-panel .d-flex > div {
    min-width: 0;
}

/* --- Shared typography tokens (future panels inherit these) --- */
.m-role-panel .m-panel-page-title,
.m-role-panel .m-app-header .fs-6{
    font-size: var(--m-type-14);
    line-height: 1.3;
}

.m-role-panel .m-panel-section-title,
.m-role-panel .m-h1,
.m-role-panel .display-6 {
    font-size: var(--meriva-font-size-h1);
    line-height: var(--meriva-leading-tight);
}

.m-role-panel .m-h2,
.m-role-panel .m-hero-card-dark h2 {
    font-size: var(--meriva-font-size-h2);
}

.m-role-panel .m-panel-card-title,
.m-role-panel .m-h3,
.m-role-panel h3,
.m-role-panel h5,
.m-role-panel h6 {
    line-height: 1.3;
}

.m-role-panel .m-panel-body {
    font-size: var(--meriva-font-size-body);
    line-height: var(--meriva-leading-body);
}

.m-role-panel .m-panel-meta,
.m-role-panel .m-caption {
    font-size: var(--meriva-font-size-caption);
    line-height: 1.45;
}

.m-role-panel .m-panel-control-label,
.m-role-panel label,
.m-role-panel .form-label{
    font-size: var(--meriva-font-size-label);
    line-height: 1.4;
}



.m-role-panel .m-badge,
.m-role-panel .badge {
    white-space: normal;
    height: auto;
    max-width: 100%;
    text-align: left;
}

/* --- Buttons / action clusters: grid + container query (query descendants, not the container) --- */
.m-panel-actions {
    container-type: inline-size;
    container-name: panel-actions;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.75rem), 1fr));
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    flex: 1 1 14rem;
    width: auto;
    max-width: 100%;
    align-items: stretch;
}

.m-panel-actions > .m-btn {
    min-width: 0;
    width: 100%;
    height: auto;
    min-height: 44px;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
}

@container panel-actions (max-width: 14rem) {
    .m-btn {
        grid-column: 1 / -1;
    }
}

.m-role-panel .m-card-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    white-space: normal;
}

.m-role-panel .m-btn:not(.m-btn--icon),
.m-role-panel .btn:not(.btn-close) {
    height: auto;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-role-panel .m-btn--icon {
    flex: 0 0 auto;
    min-width: 44px;
}

/* --- Cards grow with content --- */
.m-role-panel .m-card,
.m-role-panel .m-card-dark,
.m-role-panel .m-stat-card-dark,
.m-role-panel .m-card-stat{
    height: auto;
}

/* --- Sidebar: keep labels intact in the drawer; do not letter-break --- */
.m-role-panel .m-nav-item,
.m-role-panel .m-nav-item span,
.m-role-panel .m-nav-group-heading {
    overflow-wrap: normal;
    word-break: keep-all;
}

.m-role-panel .m-sidebar-user-card {
    min-width: 0;
}

.m-role-panel .m-sidebar-user-card .fw-bold,
.m-role-panel .m-sidebar-user-card .text-warning,
.m-role-panel .m-sidebar-user-card .text-success {
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

/* --- Profile dropdown --- */
.m-role-panel .m-panel-profile-name {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: min(9rem, 28vw);
    overflow-wrap: normal;
}

.m-role-panel .m-panel-profile-identity-name,
.m-role-panel .m-panel-profile-item {
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-role-panel .m-panel-profile-item {
    min-height: 40px;
    align-items: flex-start;
}

.m-role-panel .m-panel-profile-panel {
    max-height: min(70vh, 32rem);
    overflow-y: auto;
    min-width: min(240px, calc(100vw - 24px));
    max-width: min(280px, calc(100vw - 16px));
}

/* --- Tables: internal scroll, do not crush glyphs --- */
.m-role-panel .m-table-container,
.m-role-panel .table-responsive,
.m-role-panel .card:has(> table),
.m-role-panel .m-card:has(> table),
.m-role-panel .m-card-dark:has(> table) {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.m-role-panel .table-responsive > table,
.m-role-panel .m-table-container > table,
.m-role-panel .m-table {
    min-width: 36rem;
}

/* --- Forms --- */
.m-role-panel .form-control,
.m-role-panel .form-select,
.m-role-panel .m-input {
    max-width: 100%;
    min-width: 0;
}

.m-role-panel input[style*="width"],
.m-role-panel select[style*="width"] {
    max-width: 100%;
}

/* —— Premium panel surfaces (replace leftover Bootstrap admin-card look) —— */
.m-role-panel .m-panel-surface{
    background: var(--m-surface-elevated, #0D0D10);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-16);
    color: var(--m-text);
    box-shadow: none;
}

.m-role-panel .m-panel-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    margin-bottom: calc(var(--m-space) * 4);
    min-width: 0;
}

.m-role-panel .m-panel-page-head h1,
.m-role-panel .m-panel-page-head h2,
.m-role-panel .m-panel-page-head h3 {
    margin: 0 0 calc(var(--m-space) * 1);
    color: var(--m-text);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-role-panel .m-panel-balance {
    min-width: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-16);
    border: 1px solid var(--m-border);
    background: var(--m-surface-elevated);
    text-align: right;
}

.m-role-panel .m-panel-balance span {
    display: block;
    font-size: var(--m-type-12);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--m-text-muted);
}

.m-role-panel .m-panel-balance strong {
    display: block;
    font-size: var(--m-type-20);
    color: var(--m-gold);
    font-family: var(--meriva-font-mono);
}

.m-role-panel .m-panel-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    -webkit-overflow-scrolling: touch;
}

.m-role-panel .m-panel-table-wrap > .m-panel-table {
    min-width: 36rem;
    width: 100%;
}

.m-role-panel .m-panel-table th,
.m-role-panel .m-panel-table td {
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
}

.m-role-panel .m-panel-user-text {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: break-word;
}

.m-role-panel .m-panel-actions-cell {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: flex-start;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
}

.m-role-panel .m-panel-actions-cell form,
.m-role-panel .m-panel-table-actions form {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
}

.m-role-panel .m-panel-actions-cell .m-btn,
.m-role-panel .m-panel-actions-cell .btn {
    width: auto;
    max-width: 100%;
}

@media (min-width: 768px) {
    .m-role-panel .m-panel-table thead th.m-panel-table-actions,
    .m-role-panel .m-panel-table tbody td.m-panel-table-actions {
        position: sticky;
        right: 0;
        z-index: 1;
        background: var(--m-surface-elevated, #0D0D10);
        box-shadow: -8px 0 12px -8px rgba(0, 0, 0, 0.35);
        min-width: 7.25rem;
        vertical-align: middle;
    }
}

@media (max-width: 767.98px) {
    .m-role-panel .m-panel-table-wrap {
        overflow-x: visible;
    }

    .m-role-panel .m-panel-table-wrap > .m-panel-table,
    .m-role-panel .table-responsive > .m-panel-table,
    .m-role-panel .m-table-container > .m-panel-table.m-table {
        min-width: 0;
        width: 100%;
    }

    .m-role-panel .m-panel-table thead {
        display: none;
    }

    .m-role-panel .m-panel-table tbody {
        display: grid;
        gap: calc(var(--m-space) * 3);
    }

    .m-role-panel .m-panel-table tbody tr {
        display: grid;
        gap: calc(var(--m-space) * 2);
        padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
        border: 1px solid var(--m-border);
        border-radius: var(--m-radius-16);
        background: var(--m-surface-elevated, #0D0D10);
        min-width: 0;
        max-width: 100%;
        width: 100%;
    }

    .m-role-panel .m-panel-table tbody td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: calc(var(--m-space) * 3);
        padding: 0;
        border: 0;
        text-align: right;
        min-width: 0;
        max-width: 100%;
    }

    .m-role-panel .m-panel-table tbody td::before {
        content: attr(data-label);
        flex: 0 1 38%;
        text-align: left;
        color: var(--m-text-muted);
        font-size: var(--m-type-12);
        font-weight: var(--m-weight);
        letter-spacing: 0.04em;
        text-transform: uppercase;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .m-role-panel .m-panel-table tbody td > :not(form) {
        min-width: 0;
        max-width: 100%;
        flex: 1 1 0%;
    }

    .m-role-panel .m-panel-table tbody td.m-panel-table-actions {
        flex-direction: column;
        align-items: stretch;
        text-align: left;
    }

    .m-role-panel .m-panel-table tbody td.m-panel-table-actions::before {
        content: none;
    }

    .m-role-panel .m-panel-actions-cell {
        justify-content: stretch;
    }

    .m-role-panel .m-panel-actions-cell .m-btn,
    .m-role-panel .m-panel-actions-cell .btn,
    .m-role-panel .m-panel-table-actions .m-btn,
    .m-role-panel .m-panel-table-actions form {
        width: 100%;
    }
}

/* meriva-moderation.css */
.m-legal-modal,
.m-report-sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
}

.m-legal-modal__backdrop,
.m-report-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 18, 22, 0.55);
}

.m-legal-modal__panel,
.m-report-sheet__panel {
  position: relative;
  margin: 8vh auto 0;
  width: min(42rem, calc(100vw - 1.5rem));
  max-height: 84vh;
  overflow: auto;
  background: #fff;
  color: #111;
  border-radius: var(--m-radius-16);
  padding: calc(var(--m-space) * 5);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
}

.m-legal-modal__body,
.m-legal-body {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  word-break: normal;
  max-height: 48vh;
  overflow: auto;
  font-size: var(--m-type-16);
  line-height: 1.65;
}

.m-legal-modal__foot,
.m-legal-modal__head {
  display: flex;
  justify-content: space-between;
  gap: calc(var(--m-space) * 3);
  flex-wrap: wrap;
  margin-top: calc(var(--m-space) * 3);
}

[data-m-report-filters] a,
[data-m-agreement-card] h2,
[data-m-report-case] h1 {
  overflow-wrap: break-word;
  word-break: normal;
}

.m-review-item {
  min-width: 0;
}

.m-review-title,
.m-review-brief {
  overflow-wrap: break-word;
  word-break: normal;
}

.m-queue-proof {
  display: inline-flex;
  align-items: center;
  gap: calc(var(--m-space) * 3);
  margin: calc(var(--m-space) * 2) 0 0;
  color: #e6cf8c;
  text-decoration: none;
}

.m-queue-proof img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: var(--m-radius-8);
  border: 1px solid rgba(230, 207, 140, 0.28);
}

.m-queue-proof span {
  font-size: var(--m-type-14);
}

.m-wait-actions,
.m-wait-list,
.m-chat-window {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--m-space) * 2);
}

.m-wait-list,
.m-chat-window {
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}

.m-wait-head,
.m-wait-card,
.m-wait-stats {
  display: flex;
  flex-direction: column;
  gap: calc(var(--m-space) * 2);
}

.m-wait-card,
.m-chat-window .is-focus {
  padding: calc(var(--m-space) * 4);
  border: 1px solid var(--mp-line, rgba(245, 242, 235, 0.16));
  border-radius: var(--m-radius-8, 8px);
  background: var(--mp-panel, rgb(21, 23, 29));
}

.m-wait-card.is-urgent {
  border-color: #c4493c;
}

.m-wait-card.is-overdue {
  border-color: #c4493c;
  background: rgba(196, 73, 60, 0.18);
}

.m-nav-desk {
  display: flex;
  flex-direction: column;
  gap: calc(var(--m-space) * 1);
}

.m-nav-desk summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: calc(var(--m-space) * 2);
  list-style: none;
  cursor: pointer;
  min-width: 0;
  max-width: 100%;
}

.m-nav-desk summary > a {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.m-nav-sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-left: calc(var(--m-space) * 6);
}

.m-desk-count {
  margin-left: auto;
}

.m-wait-pages {
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--m-space) * 2);
}

.m-wait-actions .m-btn,
.m-chat-window .m-btn {
  min-height: 44px;
  flex: 1 1 8rem;
}

.m-wait-evidence,
.m-chat-mod-media {
  width: 100%;
  max-height: 16rem;
  object-fit: cover;
  border-radius: var(--m-radius-8, 8px);
}

.m-chat-window .is-faded {
  opacity: 0.45;
}

.m-chat-window .is-focus {
  opacity: 1;
}

.m-wait-more summary {
  min-height: 44px;
  cursor: pointer;
}

/* meriva-esnaf.css */
/**
 * MERİVA V1.1 — Esnaf discovery + profile
 * Tokens from meriva-design-system.css. No new color/radius/container system.
 */

.m-esnaf {
    display: flex;
    flex-direction: column;
    gap: var(--meriva-space-6);
    min-width: 0;
    max-width: 100%;
    color: var(--meriva-dark-text);
}













.m-esnaf-cover {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    height: min(32vh, 280px);
    min-height: 160px;
    border-radius: var(--meriva-radius-large);
    border: 1px solid rgba(234, 179, 8, 0.22);
    background:
        radial-gradient(520px 220px at 88% -10%, rgba(234, 179, 8, 0.14), transparent 62%),
        linear-gradient(160deg, #111114 0%, #0A0A0E 70%);
}

.m-esnaf-cover img,
.m-esnaf-cover .m-commerce-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.m-esnaf-cover::after {
    content: "";
    position: absolute;
    right: 6%;
    bottom: -12%;
    width: min(120px, 28vw);
    height: min(80px, 18vw);
    opacity: 0.08;
    pointer-events: none;
    background: url("/images/badger-mark.svg?v=2") center / contain no-repeat;
}



.m-esnaf-avatar {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: var(--meriva-radius-large);
    border: 2px solid rgba(234, 179, 8, 0.55);
    background: var(--m-surface-elevated);
    box-shadow: var(--meriva-shadow-navy);
}

.m-esnaf-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}































.m-esnaf-form {
    max-width: 46rem;
    min-width: 0;
}

.m-esnaf-form .m-form-label {
    color: var(--m-text-secondary);
}

.m-esnaf-form .m-input,
.m-esnaf-form .m-select,
.m-esnaf-form .m-textarea,
.m-esnaf-form .form-control,
.m-esnaf-form .form-select {
    background: var(--m-surface);
    border-color: var(--meriva-dark-border);
    color: var(--m-text);
}

.m-esnaf-form .m-input::placeholder,
.m-esnaf-form .m-textarea::placeholder {
    color: #64748B;
}

.m-esnaf-form .m-input:focus,
.m-esnaf-form .m-select:focus,
.m-esnaf-form .m-textarea:focus {
    border-color: var(--meriva-gold);
    box-shadow: 0 0 0 3px var(--meriva-gold-glow);
}

.m-esnaf-form .field-validation-error,
.m-esnaf-form .m-validation-feedback {
    display: block;
    margin-top: calc(var(--m-space) * 2);
    color: #FDA4AF;
    overflow-wrap: break-word;
}

.m-esnaf-form .input-validation-error {
    border-color: var(--meriva-danger);
}

.m-esnaf-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--meriva-space-3);
    justify-content: space-between;
    align-items: center;
}





@media (max-width: 767.98px) {
    .m-esnaf-cover {
        height: 140px;
        min-height: 120px;
        border-radius: var(--meriva-radius-medium);
    }

    

    .m-esnaf-avatar {
        width: 72px;
        height: 72px;
    }

    

    .m-esnaf-form-actions .m-btn{
        width: 100%;
    }
}

/* —— Public profile premium redesign (scoped) —— */








































































































/* —— Public index premium redesign (scoped) —— */






































































/* —— Esnaf panel workspace. Button look stays in components.css. —— */
.m-esnaf-kicker,
.m-esnaf-verified {
    color: #F4F1EA;
}

.m-esnaf-kicker {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 1px;
    text-transform: uppercase;
}

.m-esnaf-verified {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: var(--m-type-12);
}

.m-esnaf-workspace {
    min-width: 0;
    max-width: 100%;
    color: var(--color-text);
}

.m-esnaf-workspace :is(.text-dark, .text-white, .text-warning, .text-warning-emphasis, .text-success, .text-primary, .text-info, .text-danger) {
    color: var(--color-text) !important;
}

.m-esnaf-workspace :is(.text-muted, .text-secondary, .m-caption) {
    color: var(--color-muted) !important;
}

.m-esnaf-workspace .m-card-stat {
    min-width: 0;
}

.m-esnaf-workspace .m-card-action {
    min-height: var(--control);
    background: var(--color-bg);
    color: var(--color-text);
}

.m-esnaf-opp-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    color: var(--color-text);
}

.m-esnaf-opp-actions {
    justify-content: flex-end;
}

.m-esnaf-workspace .progress {
    background: var(--color-line);
    border-radius: var(--radius-sm);
}

.m-esnaf-workspace .progress-bar {
    background: var(--color-gold);
}

@media (max-width: 767.98px) {
    .m-esnaf-workspace .row {
        --bs-gutter-x: 0.75rem;
    }

    .m-esnaf-workspace .col-6 {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .m-esnaf-opp-row {
        flex-direction: column;
        align-items: stretch;
    }

    .m-esnaf-opp-actions {
        width: 100%;
    }
}

/* meriva-staff-legal.css */
.m-staff-offer,
.m-staff-check,
[data-m-rights-case],
[data-m-rights-response],
[data-m-staff-offer] {
  overflow-wrap: break-word;
}

.m-staff-check {
  display: flex;
  align-items: flex-start;
  gap: calc(var(--m-space) * 3);
  min-height: 44px;
}

.m-staff-check input {
  width: 1.25rem;
  height: 1.25rem;
  min-width: 1.25rem;
  margin-top: calc(var(--m-space) * 1);
}

[data-m-rights-sheet] .m-caption,
[data-m-rights-sheet] .text-muted {
  color: #3d3d3d;
}

[data-m-rights-sheet] .form-control,
[data-m-rights-sheet] .form-select,
.m-legal-modal__panel input,
.m-legal-modal__panel textarea,
.m-legal-modal__panel select {
  background: #fff;
  color: #111;
  border: 1px solid #5a5a5a;
}

@media (max-width: 767.98px) {
  .m-staff-offer,
  [data-m-rights-case],
  [data-m-rights-response] {
    max-width: 100%;
  }
}

/* meriva-cinematic.css */
/**
 * MERIVA cinematic UI — P0/P1 layout and hierarchy.
 * Loaded before meriva-responsive.css. Reuses existing tokens.
 */

:root {
    --meriva-shadow-card: var(--meriva-v4-shadow, 0 8px 28px rgba(12, 10, 8, 0.06));
    --meriva-motion: 280ms cubic-bezier(0.16, 1, 0.3, 1);
    --meriva-dock-h: calc(5.4rem + env(safe-area-inset-bottom, 0px));
    --meriva-context-h: 3.65rem;
    --meriva-border-idle: var(--meriva-v4-border, rgba(247, 243, 236, 0.08));
}

@media (prefers-reduced-motion: reduce) {
    :root {
        --meriva-motion: 0.01ms;
    }
}

/* —— P0-1: desktop sidebar reserves its full width; no overlay clip —— */
@media (min-width: 1100px) {
    body.m-ui-v4 .m-app-sidebar.v4-sidebar {
        position: sticky;
        top: 0;
        align-self: stretch;
        z-index: 40;
        height: 100dvh;
        width: var(--meriva-v4-sidebar-width);
        min-width: var(--meriva-v4-sidebar-width);
        max-width: var(--meriva-v4-sidebar-width);
        flex: 0 0 var(--meriva-v4-sidebar-width);
        padding: calc(var(--m-space) * 5) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
        overflow-x: hidden;
        overflow-y: auto;
        border-right: 1px solid rgba(255, 255, 255, 0.06);
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-inner {
        width: 100%;
        height: auto;
        min-height: 100%;
        padding: 0;
        overflow: visible;
        border-right: 0;
        box-shadow: none;
        transition: none;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:hover .v4-sidebar-inner,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:focus-within .v4-sidebar-inner,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar.is-hover-open .v4-sidebar-inner {
        width: 100%;
        padding: 0;
        box-shadow: none;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-header,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-brand,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-link,
    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-mpoints-compact {
        justify-content: flex-start;
        padding-inline: calc(var(--m-space) * 3);
        gap: calc(var(--m-space) * 3);
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-brand-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-nav-label,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-foot-copy,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-theme-switch,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-pub-join,
body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-sidebar-footer legend{
        opacity: 1;
        max-width: 12rem;
        transform: none;
        pointer-events: auto;
        visibility: visible;
    }

    body.m-ui-v4 .m-app-sidebar.v4-sidebar:not(:hover):not(:focus-within):not(.is-hover-open) .v4-pub-join {
        padding: calc(var(--m-space) * 3);
        border: 1px solid rgba(255, 255, 255, 0.08);
        gap: calc(var(--m-space) * 2);
        min-height: 0;
        overflow: visible;
    }

    body.m-ui-v4 .m-app-container,
    body.m-ui-v4 .m-app-main {
        min-width: 0;
    }
}

@media (min-width: 992px) {
    .m-app-sidebar:not(.v4-sidebar) {
        width: var(--meriva-sidebar-width);
        min-width: var(--meriva-sidebar-width);
        flex: 0 0 var(--meriva-sidebar-width);
        padding: var(--meriva-space-4);
    }

    .m-app-sidebar:not(.v4-sidebar):not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-header,
    .m-app-sidebar:not(.v4-sidebar):not(:hover):not(:focus-within):not(.is-hover-open) .m-sidebar-brand {
        justify-content: flex-start;
    }
}

/* —— P0-4: auth pages — cinematic split, no sidebar overlap —— */
body.m-auth-page .m-app-sidebar,
body.m-auth-page .v4-pub-join {
    display: none;
}

body.m-auth-page .v4-pub-top [data-m-toggle="sidebar"] {
    display: none;
}

body.m-auth-page .m-app-shell {
    display: block;
}

body.m-auth-page .m-app-container,
body.m-auth-page .m-app-main.v4-pub-main {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

body.m-auth-page .v4-pub-foot {
    justify-content: center;
    text-align: center;
    padding-block: calc(var(--m-space) * 3);
}

/* —— P0-2 / P0-3: chat mobile — drawers + composer above dock —— */
@media (max-width: 1099.98px) {
    body.m-chat-immersive.m-ui-v4 .m-app-shell,
    body.m-chat-immersive.m-ui-v4 .m-app-container {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
    }

    body.m-chat-immersive.m-ui-v4:has(.v4-dock) .m-app-main {
        padding: 0!important;
        padding-bottom: var(--meriva-dock-h) !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.m-ui-v4 .v4-chat {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    body.m-ui-v4 .v4-chat .m-chat-wrapper,
    body.m-ui-v4 .v4-chat .m-chat,
    .m-chat {
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
        overflow-x: hidden;
    }

    body.m-ui-v4 .v4-chat .m-chat-main,
    .m-chat-main {
        min-height: 0;
        height: 100%;
    }

    body.m-ui-v4 .v4-chat .m-chat-composer,
    .m-chat-composer {
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
    }

    .m-chat-header {
        min-width: 0;
        gap: calc(var(--m-space) * 2);
    }

    .m-chat-header-copy,
    .m-chat-header-title,
    .m-chat-header-sub {
        min-width: 0;
        overflow-wrap: break-word;
        word-break: normal;
    }

    .m-chat-header-actions .m-chat-aside-toggle span,
    .mx-chat-rooms-toggle-label {
        display: none;
    }

    .m-chat-time {
        margin-left: 0;
    }
}

html {
    scroll-padding-top: calc(var(--meriva-context-h) + 0.5rem);
}

/* —— P0-5: category covers —— */


















.v4-post-avatar.is-fallback,
.m-chat-avatar,
.m-profile-hub__avatar--fallback,
.v4-user-trigger {
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.22), transparent 58%),
        var(--meriva-v4-surface-soft, #16161c);
}

/* —— P0-6 compact empty —— */
.v4-empty.is-compact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    text-align: left;
}

.v4-empty.is-compact h3,
.v4-empty.is-compact p {
    margin: 0;
}

.v4-empty.is-compact > a,
.v4-empty.is-compact > button {
    margin-top: 0;
}

/* —— P1 hero: one atmospheric scene —— */
.v4-explore-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    min-height: 18rem;
    border-color: var(--meriva-border-idle);
}

.v4-hero-map {
    border-color: transparent;
    background: transparent;
}

.v4-hero-map .m-tr-map {
    filter: drop-shadow(0 0 18px rgba(212, 175, 55, 0.18));
}

@media (max-width: 991.98px) {
    .v4-explore-hero {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .v4-hero-search {
        flex-direction: row;
        flex-wrap: nowrap;
        align-items: center;
    }

    .v4-hero-search > a,
    .v4-hero-search > button {
        width: auto;
        flex: 0 0 auto;
    }

    .v4-content-filters {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
    }

    .v4-content-filters > a,
    .v4-content-filters > button {
        width: auto;
        flex: 0 0 auto;
    }

    .v4-content-filters.v4-gift-filters {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
    }

    .v4-content-filters.v4-gift-filters > .m-form-group,
    .v4-content-filters.v4-gift-filters .m-select,
    .v4-content-filters.v4-gift-filters > a,
    .v4-content-filters.v4-gift-filters > button {
        flex: 1 1 auto;
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }
}

/* —— P1 card density —— */
@media (min-width: 768px) {
    .v4-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .v4-actions{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (min-width: 1280px) {
    .v4-actions{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .v4-biz-rail {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1600px) {
    .v4-explore-hero {
        grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.5fr);
        min-height: 22rem;
    }

    .v4-biz-rail{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

/* —— P1 Yakında / gold restraint / motion —— */
.v4-action.is-soon {
    opacity: 0.55;
    border-style: dashed;
    border-color: rgba(247, 243, 236, 0.16);
    box-shadow: none;
}





.v4-nav-soon {
    display: block;
    margin-top: calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    color: var(--meriva-v4-text-muted);
}

/* —— P1-16 sticky header already exists; keep titles readable —— */
.v4-context {
    scroll-margin-top: 0;
}

/* —— P1-18 opportunity —— */
@media (max-width: 47.98rem) {
    .v4-market-media {
        max-height: 8.5rem;
    }

    .v4-market-media img {
        max-height: 8.5rem;
        object-fit: cover;
    }

    .v4-mission .v4-comment-form textarea {
        min-height: 4.5rem;
        rows: 2;
    }
}

.v4-market-status {
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.v4-market-card.is-affordable .v4-market-status {
    color: var(--m-success, #7EC89A);
}

.v4-market-card.is-short .v4-market-status {
    color: var(--m-warning, #F5A623);
}

.v4-market-card.is-closed .v4-market-status {
    color: var(--meriva-v4-text-muted);
}

/* —— P1-19 referrals —— */
.v4-share-row {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 3);
}

.v4-share-row .m-input {
    flex: 1 1 12rem;
    min-width: 0;
    overflow-wrap: anywhere;
}

/* —— P1-20 profile —— */
@media (max-width: 47.98rem) {
    .m-profile-hub__identity {
        align-items: flex-start;
    }

    .m-profile-hub__avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

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

    .m-profile-hub__actions {
        display: flex;
        flex-direction: column;
        align-items: stretch;
    }
}

/* —— P1-21 notifications —— */
.v4-notify {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    max-width: 100%;
    overflow-wrap: anywhere;
}

.v4-notify strong,
.v4-notify p,
.v4-page--narrow {
    max-width: 100%;
    overflow-wrap: anywhere;
}

.m-btn:focus-visible,
.v4-notify-chip:focus-visible,
.m-bell:focus-visible {
    outline: 2px solid var(--meriva-v4-gold, #c9a227);
    outline-offset: 2px;
}

.v4-notify-chip {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: var(--control, 44px);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    background: var(--color-bg);
    color: var(--color-text);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.v4-page--narrow form.m-panel-surface label,
.v4-comment-form > label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-height: var(--control, 44px);
}

/* —— P1-22 community: pills only, no duplicate hub —— */
.v4-community-hub .v4-land-actions {
    display: none;
}

/* —— P2 ledger / M-Puan —— */
.v4-mp-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 3);
}

@media (max-width: 47.98rem) {
    .v4-mp-stats,
    .v4-mp-hero .v4-land-cta {
        grid-template-columns: 1fr;
        display: flex;
        flex-direction: column;
    }

    .v4-ledger-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .v4-pub-foot {
        flex-direction: column;
        align-items: flex-start;
        gap: calc(var(--m-space) * 2);
        font-size: var(--m-type-12);
        padding-bottom: calc(1rem + env(safe-area-inset-bottom));
    }

    .m-app-footer .m-site-footer-navs {
        display: none;
    }
}

.v4-gate {
    max-width: 28rem;
    margin: calc(var(--m-space) * 6) auto;
    padding: calc(var(--m-space) * 5) calc(var(--m-space) * 5);
    text-align: center;
}

.v4-swap-badge {
    display: inline-flex;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.v4-swap-badge.is-takas {
    background: rgba(201, 162, 39, 0.16);
    color: var(--meriva-v4-gold);
}

.v4-swap-badge.is-hibe {
    background: rgba(126, 200, 154, 0.16);
    color: #7EC89A;
}

.m-legal-prose {
    max-width: 42rem;
    margin-inline: auto;
    line-height: 1.65;
}

.m-legal-prose h1,
.m-legal-prose h2,
.m-legal-prose .m-h1 {
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.v4-required::after {
    content: " *";
    color: var(--meriva-v4-gold);
}

.v4-react-btn[disabled],
.v4-react-btn.is-disabled {
    opacity: 0.45;
}



.v4-post.is-noise {
    display: none;
}

.v4-post-kicker {
    margin: 0;
    font-size: var(--m-type-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--meriva-v4-text-muted);
}







.v4-react {
    flex-wrap: wrap;
}

.v4-react-hint {
    flex: 1 1 100%;
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-12);
    color: var(--meriva-v4-text-muted);
}

.v4-board-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 2.25rem;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--m-radius-pill);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    color: var(--meriva-v4-gold);
    background:
        radial-gradient(circle at 30% 20%, rgba(212, 175, 55, 0.22), transparent 58%),
        var(--meriva-v4-surface-soft, #16161c);
}

.v4-board-row.is-top-1 .v4-board-rank,
.v4-board-row.is-top-2 .v4-board-rank,
.v4-board-row.is-top-3 .v4-board-rank {
    color: var(--meriva-v4-gold);
}

.v4-notify {
    transition: border-color var(--meriva-motion), background var(--meriva-motion);
}

.v4-notify.is-unread {
    border-color: rgba(201, 162, 39, 0.28);
    background: rgba(201, 162, 39, 0.05);
}

.v4-notify.is-read {
    opacity: 0.78;
}

.m-chat-bubble,
.m-chat-composer {
    transition: border-color var(--meriva-motion), box-shadow var(--meriva-motion);
}

.m-chat-composer:focus-within {
    border-color: rgba(201, 162, 39, 0.35);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

@keyframes meriva-map-pulse {
    0%, 100% { opacity: 0.7; }
    50% { opacity: 1; }
}

.v4-hero-map .m-malatya-pin {
    animation: meriva-map-pulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
    .v4-hero-map .m-malatya-pin {
        transition: none;
        animation: none;
        transform: none;
    }
}

/*
 * Token family (P3-39)
 * Color: --meriva-v4-gold / --m-gold, --meriva-v4-text, --meriva-border-idle
 * Radius: --meriva-radius-sm/md/lg/xl
 * Type: Plus Jakarta Sans via layouts; hero display clamp
 * Shadow: --meriva-shadow-card / --meriva-v4-shadow
 * Motion: --meriva-motion 200–400ms
 */

/* meriva-premium-experience.css */
/* MERIVA · Cinematic edition. Shared presentation layer for all five layouts.
   Existing data, permissions, routes and interaction hooks remain authoritative. */
html[data-meriva-theme], html:not([data-meriva-theme]) {
    --mp-accent: #e8c879;
    --mp-accent-ink: #18140c;
    --mp-line: rgba(223, 206, 166, .15);
    --mp-glow: rgba(219, 182, 103, .12);
    --mp-panel: #15171d;
    --mp-panel-raised: #1d2028;
    --mp-ink: #f5f2eb;
    --mp-muted: #C8C9D1;
    --mp-canvas: #0c0e13;
    --mp-shadow: 0 18px 50px -26px rgba(0, 0, 0, .72);
    --mp-radius: var(--m-radius-16);
    --mp-ease: cubic-bezier(.2, .7, .2, 1);
}
html[data-meriva-theme="white"] {
    --mp-accent: #916319;
    --mp-accent-ink: #fff;
    --mp-line: rgba(60, 45, 22, .14);
    --mp-glow: rgba(171, 129, 54, .09);
    --mp-panel: #fffdf9;
    --mp-panel-raised: #f3f0e9;
    --mp-ink: #1C1E24;
    --mp-muted: #4A4E5A;
    --mp-canvas: #f5f3ee;
    --mp-shadow: 0 18px 45px -26px rgba(67, 54, 32, .22);
}
body.m-premium {
    --m-bg: var(--mp-canvas);
    --m-surface: var(--mp-panel);
    --m-surface-elevated: var(--mp-panel-raised);
    --m-surface-soft: var(--mp-panel-raised);
    --m-input-bg: var(--mp-canvas);
    --m-text: var(--mp-ink);
    --m-text-secondary: var(--mp-muted);
    --m-text-muted: var(--mp-muted);
    --m-border: var(--mp-line);
    --m-divider: var(--mp-line);
    --m-placeholder: var(--mp-muted);
    --m-gold: var(--mp-accent);
    --m-gold-soft: var(--mp-glow);
    --meriva-font-display: "Plus Jakarta Sans", system-ui, sans-serif;
    --meriva-v4-sidebar-width: 236px;
    --meriva-v4-bg: var(--mp-canvas);
    --meriva-v4-surface: var(--mp-panel);
    --meriva-v4-white: var(--mp-panel);
    --meriva-v4-sidebar: var(--mp-panel);
    --meriva-v4-text: var(--mp-ink);
    --meriva-v4-text-muted: var(--mp-muted);
    --meriva-v4-gold: var(--mp-accent);
    --meriva-text: var(--mp-ink);
    --meriva-text-muted: var(--mp-muted);
    --meriva-surface: var(--mp-panel);
    --meriva-v4-border: var(--mp-line);
    background: radial-gradient(ellipse at 80% 0%, var(--mp-glow), transparent 48rem), var(--mp-canvas);
    color: var(--mp-ink);
    font-family: "Plus Jakarta Sans", system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
}
body.m-premium :is(h1, h2) {
    font-family: var(--font-display);
    font-weight: var(--m-weight);
    letter-spacing: -.03em;
    line-height: 1.2;
    text-wrap: balance;
}
body.m-premium :is(h1, h2).fw-extrabold { font-weight: var(--m-weight) !important; }

body.m-premium :is(p, li, label, button, a) { overflow-wrap: break-word; }
body.m-premium ::selection { background: #d6b56b; color: #15120b; }
body.m-premium :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--mp-accent);
    outline-offset: 4px;
}
body.m-premium :is(.m-app-main, .m-app-container) { min-width: 0; }
body.m-premium .m-app-main { padding: clamp(calc(var(--m-space) * 5), 2.7vw, calc(var(--m-space) * 10)); }
body.m-premium .m-app-main > :is(.v4-page, .v4-explore, .v4-content, .mp-page, .m-profile-hub) {
    width: 100%; max-width: 1400px; margin-inline: auto;
}
/* Navigation: quiet chrome, clear current location, usable touch targets. */
body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar,
body.m-premium .m-app-sidebar:not(.v4-sidebar) {
    background: linear-gradient(170deg, var(--mp-panel), var(--mp-canvas)) !important;
    border-right: 1px solid var(--mp-line) !important;
}
body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar .v4-sidebar-inner { background: transparent; }
body.m-premium .v4-sidebar-header { padding-block: calc(var(--m-space) * 4) calc(var(--m-space) * 7); }
body.m-premium .v4-sidebar-brand-copy { display: flex; flex-direction: column; align-items: flex-start; gap: calc(var(--m-space) * 1); min-width: 8.4rem; }
body.m-premium .v4-sidebar-wordmark { font-size: var(--m-type-16); letter-spacing: .08em; line-height: 1.15; max-width: 8.4rem; color: var(--mp-ink); }
@media (max-width: 1099.98px) {
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar:not(.show-mobile) {
        position: fixed;
        left: 0;
        top: 0;
        transform: translateX(-105%) !important;
    }

    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.show-mobile {
        transform: translateX(0) !important;
    }

    body.m-premium .m-app-sidebar.v4-sidebar .v4-sidebar-brand {
        max-width: 100%;
        min-width: 0;
        overflow: hidden;
    }

    body.m-premium .m-app-sidebar.v4-sidebar .v4-sidebar-wordmark {
        display: block;
        width: auto;
        max-width: 100%;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        overflow-wrap: normal;
        word-break: keep-all;
        font-size: var(--m-type-12)!important;
        letter-spacing: 0.02em;
        line-height: 1.15;
    }
}
body.m-premium .v4-sidebar-tagline { color: var(--mp-muted); font-size: var(--m-type-12); letter-spacing: .06em; white-space: nowrap; }
body.m-premium .v4-nav-group { padding-block: calc(var(--m-space) * 3); border-color: var(--mp-line); }
body.m-premium :is(.v4-nav-link, .m-nav-item) {
    position: relative; min-height: 46px; margin-block: calc(var(--m-space) * 1); border-radius: var(--m-radius-8);
    color: #A8A296 !important; font-weight: var(--m-weight);
    transition: background 180ms, color 180ms, box-shadow 180ms;
}
body.m-premium :is(.v4-nav-link.is-active, .m-nav-item.active, .m-nav-item.is-active) {
    color: var(--mp-ink) !important;
    background: var(--mp-panel) !important;
    border: 1px solid var(--mp-line);
    box-shadow: none;
}
body.m-premium :is(.v4-nav-link.is-active, .m-nav-item.active, .m-nav-item.is-active) .v4-icon {
    color: var(--mp-ink);
}
body.m-premium :is(.v4-nav-link, .m-nav-item):hover { background: var(--mp-glow) !important; color: var(--mp-ink) !important; }
body.m-premium.m-ui-v4 .v4-context,
body.m-premium .v4-pub-top {
    background: color-mix(in srgb, var(--mp-canvas) 88%, transparent);
    border-bottom: 1px solid var(--mp-line); backdrop-filter: blur(18px);
    padding-inline: clamp(calc(var(--m-space) * 4), 2.7vw, calc(var(--m-space) * 10));
}
body.m-premium .v4-context-title { font-size: var(--m-type-20); font-weight: var(--m-weight); }
body.m-premium .v4-context-lead { color: var(--mp-muted); font-size: var(--m-type-12); margin-top: calc(var(--m-space) * 1); }
body.m-premium :is(.v4-city-chip, .v4-icon-btn, .v4-user-trigger) {
    background: var(--mp-panel); border: 1px solid var(--mp-line); box-shadow: none;
}
body.m-premium .v4-pub-join { background: var(--mp-glow); border-radius: var(--m-radius-16); padding: calc(var(--m-space) * 4)!important; max-width: 100% !important; color: var(--mp-ink); }
body.m-premium .v4-pub-join :is(p, strong) { color: var(--mp-ink); }
body.m-premium .v4-pub-join p { white-space: normal; }



body.m-premium .v4-dock { background: color-mix(in srgb, var(--mp-panel) 94%, transparent); backdrop-filter: blur(18px); border-top-color: var(--mp-line); }
body.m-premium :is(.m-btn--icon, .v4-icon-btn) { padding: calc(var(--m-space) * 2); min-width: 44px; }
body.m-premium :is(.m-input, .m-select, .m-textarea, .form-control, .form-select) {
    border: 1px solid var(--mp-line); border-radius: var(--m-radius-8); min-height: 46px;
    background-color: var(--mp-canvas); color: var(--mp-ink); box-shadow: inset 0 1px 2px rgba(0,0,0,.08);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4); transition: border-color 160ms, box-shadow 160ms;
}
body.m-premium :is(.m-input, .m-select, .m-textarea, .form-control, .form-select):focus {
    border-color: var(--mp-accent); box-shadow: 0 0 0 3px var(--mp-glow);
    background-color: var(--mp-panel); color: var(--mp-ink);
}
body.m-premium :is(input, textarea)::placeholder { color: var(--mp-muted); opacity: 1; }

body.m-premium .v4-content-filters {
    padding: calc(var(--m-space) * 5); gap: calc(var(--m-space) * 3); border: 1px solid var(--mp-line); border-radius: var(--m-radius-16);
    background: var(--mp-panel); margin-bottom: calc(var(--m-space) * 7);
}
/* Shared surfaces. Rounded text containers deliberately retain visible overflow. */

body.m-premium :is(.v4-profile-card, .v4-content-panel, .v4-composer-card, .v4-comments) { padding: clamp(calc(var(--m-space) * 5), 2.2vw, calc(var(--m-space) * 8)); }
body.m-premium :is(.v4-market-body, .v4-post-body) { padding: calc(var(--m-space) * 5); }
body.m-premium .v4-biz { overflow: hidden; }
body.m-premium .v4-biz-copy { padding: calc(var(--m-space) * 5); }
body.m-premium .v4-biz-name,
body.m-premium a .v4-biz-name {
    overflow-wrap: normal;
    word-break: normal;
}
body.m-premium .v4-biz.is-plain .v4-biz-copy { padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3) calc(var(--m-space) * 3); }
body.m-premium .v4-esnaf-head { gap: calc(var(--m-space) * 6); padding-block: calc(var(--m-space) * 3); }
body.m-premium .v4-esnaf-logo { border: 1px solid var(--mp-line); border-radius: var(--m-radius-16); box-shadow: 0 8px 30px var(--mp-glow); }
body.m-premium :is(.v4-market-media, .v4-biz-media) { border-radius: var(--m-radius-16) var(--m-radius-16) 0 0; overflow: hidden; }
body.m-premium :is(.v4-market-media, .v4-biz-media) img { transition: transform 450ms var(--mp-ease); }
body.m-premium :is(.v4-sec-nav, .m-profile-hub__tabs) { gap: calc(var(--m-space) * 2); padding-block: calc(var(--m-space) * 2); border-bottom-color: var(--mp-line); }


body.m-premium .v4-section-head::after { content: ""; height: 1px; background: linear-gradient(90deg, var(--mp-line), transparent); flex: 1; order: 1; min-width: 15px; }
body.m-premium .v4-section-head > a { order: 2; }
body.m-premium .v4-empty,
body.m-premium .m-profile-hub__empty {
    padding: clamp(calc(var(--m-space) * 7), 5vw, calc(var(--m-space) * 16)) calc(var(--m-space) * 6); border: 1px dashed var(--mp-line); border-radius: var(--m-radius-16);
    background: radial-gradient(ellipse at 50% 0, var(--mp-glow), transparent 70%), var(--mp-panel);
    color: var(--mp-muted); text-align: center;
}
body.m-premium :is(.v4-board-row, .v4-ledger-item) { border-radius: var(--m-radius-16); border-color: var(--mp-line); background: var(--mp-panel); padding: calc(var(--m-space) * 4); }
body.m-premium :is(.table, .m-table) { --bs-table-bg: transparent; --bs-table-color: var(--mp-ink); --bs-table-border-color: var(--mp-line); }
body.m-premium :is(.table, .m-table) th { padding-block: calc(var(--m-space) * 4); color: var(--mp-muted); font-size: var(--m-type-12); letter-spacing: .04em; }
body.m-premium :is(.table, .m-table) td { padding-block: calc(var(--m-space) * 4); vertical-align: middle; }
body.m-premium .alert { border-radius: var(--m-radius-16); }

body.m-premium.m-role-panel .m-panel-actions {
    flex: 0 1 100%; width: 100%; align-content: start; grid-auto-rows: auto; margin-top: calc(var(--m-space) * 6);
}
body.m-premium.m-role-panel .m-app-container {
    flex: 1 1 auto;
    min-width: 0;
    width: auto;
    max-width: 100%;
}
body.m-premium.m-role-panel .m-panel-actions > .m-btn { align-self: start; min-height: 48px; max-width: 100%; min-width: 0; }
body.m-premium.m-role-panel .m-admin-quick-actions > .m-btn {
    padding-inline: calc(var(--m-space) * 1);
    gap: calc(var(--m-space) * 1);
}
@media (max-width: 767.98px) {
    body.m-premium.m-role-panel .m-app-main .row {
        margin-left: 0;
        margin-right: 0;
        max-width: 100%;
    }
    body.m-premium.m-role-panel .m-hero-card-dark .m-panel-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}
body.m-premium.m-role-panel .m-esnaf-hero .m-panel-actions { flex: 1 1 100%; width: 100%; margin-top: calc(var(--m-space) * 2); }
@media (min-width: 992px) {
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-brand > div,
    body.m-premium.m-role-panel .m-app-sidebar .m-nav-group-heading,
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-user-card .fw-bold,
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-user-card .text-secondary,
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-user-card .bi-chevron-right,
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-footer form {
        opacity: 1 !important; width: auto !important; height: auto !important; pointer-events: auto !important;
    }
    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-brand { justify-content: flex-start !important; gap: calc(var(--m-space) * 3)!important; }
    body.m-premium.m-role-panel .m-app-sidebar .m-nav-item { justify-content: flex-start !important; padding: calc(var(--m-space) * 3)!important; }
    body.m-premium.m-role-panel .m-app-sidebar .m-nav-item span { font-size: var(--m-type-12)!important; gap: calc(var(--m-space) * 3)!important; }
    body.m-premium.m-role-panel .m-app-sidebar .m-nav-group-heading { padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3) calc(var(--m-space) * 2)!important; overflow: visible !important; }

    body.m-premium.m-role-panel .m-app-sidebar .m-nav-group-heading--rail {
        flex: 0 0 auto;
        display: block;
        margin: 10px 0 6px !important;
        padding: 10px 12px 6px !important;
        line-height: 1.6 !important;
        letter-spacing: 1px;
        overflow: visible !important;
    }

    body.m-premium.m-role-panel .m-app-sidebar .m-sidebar-nav {
        max-height: none !important;
    }
}
/* Discovery stage: existing copy and interactive map become the centerpiece. */
body.m-premium.m-ui-v4 .v4-explore { display: grid; gap: calc(var(--m-space) * 18); }
body.m-premium.m-ui-v4 .v4-explore-hero {
    position: relative; isolation: isolate; display: grid; grid-template-columns: 1.05fr 1fr;
    gap: calc(var(--m-space) * 6); align-items: center; min-height: 430px; padding: clamp(calc(var(--m-space) * 6), 3.4vw, calc(var(--m-space) * 14));
    border: 1px solid var(--mp-line); border-radius: var(--m-radius-16); overflow: hidden;
    background: radial-gradient(ellipse at 85% 60%, rgba(194,146,56,.2), transparent 52%),
      radial-gradient(ellipse at 10% 0%, rgba(126,141,174,.1), transparent 60%), #101319;
    box-shadow: 0 22px 65px -35px #000;
}
body.m-premium .v4-explore-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background-image: linear-gradient(rgba(237,218,175,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(237,218,175,.035) 1px, transparent 1px);
    background-size: 64px 64px; mask-image: linear-gradient(90deg, transparent, #000);
}
body.m-premium .v4-explore-hero::after {
    content: ""; position: absolute; inset: auto -15% -110% 32%; aspect-ratio: 1;
    border: 1px solid rgba(232,200,121,.16); border-radius: var(--m-radius-pill); box-shadow: 0 0 0 65px rgba(232,200,121,.03), 0 0 0 130px rgba(232,200,121,.02);
    pointer-events: none; z-index: -1;
}
body.m-premium.m-ui-v4 .v4-hero-copy { min-width: 0; padding: 0; gap: 0; }






body.m-premium.m-ui-v4 .v4-hero-search { gap: calc(var(--m-space) * 2); max-width: 440px; }
body.m-premium.m-ui-v4 .v4-hero-search .m-input { background: rgba(0,0,0,.25) !important; border-color: rgba(232,200,121,.22) !important; color: #fff !important; min-width: 0; }
body.m-premium.m-ui-v4 .v4-hero-search .m-input::placeholder { color: #b9b6b0; }
body.m-premium.m-ui-v4 .v4-hero-map { min-width: 0; width: 100%; background: transparent; border: 0; box-shadow: none; }
body.m-premium.m-ui-v4 .v4-hero-map .m-tr-map { filter: drop-shadow(0 18px 22px rgba(0,0,0,.45)); }
body.m-premium.m-ui-v4 .v4-actions { gap: calc(var(--m-space) * 3); }


body.m-premium .m-profile-hub__avatar { border: 3px solid var(--mp-panel); box-shadow: 0 0 0 1px var(--mp-accent), 0 8px 30px var(--mp-glow); }
body.m-premium .m-site-footer { border-top: 1px solid var(--mp-line); padding-top: calc(var(--m-space) * 9); }
body.m-premium :is(.m-site-footer-bar, .v4-pub-foot) { color: var(--mp-muted); border-color: var(--mp-line); }
/* Chat: a luminous lounge, with existing live transport and moderation intact. */
body.m-premium.m-ui-v4 .v4-chat .m-chat-wrapper {
    --mx-chat-line: var(--mp-line); --mx-chat-panel: var(--mp-panel);
    background: var(--mp-canvas); color: var(--mp-ink);
}
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-sidebar, .m-chat-aside) {
    background: linear-gradient(175deg, var(--mp-panel-raised), var(--mp-panel) 45%); border-color: var(--mp-line);
}
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-sidebar-head, .m-chat-aside-head) { background: transparent; border-color: var(--mp-line); padding: calc(var(--m-space) * 6) calc(var(--m-space) * 5) calc(var(--m-space) * 4); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-sidebar-title { color: var(--mp-ink); font-size: var(--m-type-20); font-weight: var(--m-weight); letter-spacing: -.04em; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-sidebar-title { text-transform: none; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-sidebar { position: relative; }
.mp-chat-aurora { display: none !important; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-room-list { padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3) calc(var(--m-space) * 5); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-section-label { color: var(--mp-muted); font-size: var(--m-type-12); letter-spacing: .13em; padding: calc(var(--m-space) * 4) calc(var(--m-space) * 2) calc(var(--m-space) * 2); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-room { padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3); margin-block: calc(var(--m-space) * 1); border: 1px solid transparent; border-radius: var(--m-radius-16); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-room.is-active {
    background: linear-gradient(105deg, var(--mp-glow), transparent); border-color: var(--mp-line);
    box-shadow: inset 3px 0 var(--mp-accent), 0 8px 20px -16px #000;
}
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-room-ico, .m-chat-avatar, .mp-chat-emblem) {
    display: grid; place-items: center; flex-shrink: 0;
    background: linear-gradient(140deg, var(--mp-glow), var(--mp-panel-raised));
    color: var(--mp-accent); border: 1px solid var(--mp-line); border-radius: var(--m-radius-16);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-room-ico { width: 42px; height: 42px; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-room-ico { min-width: 42px; }
body.m-premium.m-ui-v4 .v4-chat .mp-chat-emblem { width: 46px; height: 46px; font-size: var(--m-type-20); font-weight: var(--m-weight); box-shadow: 0 0 25px var(--mp-glow); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-main {
    background: radial-gradient(ellipse at 100% 0, var(--mp-glow), transparent 45%),
      radial-gradient(ellipse at 0 100%, rgba(113,123,170,.08), transparent 55%), var(--mp-canvas);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-header {
    padding: calc(var(--m-space) * 5) calc(var(--m-space) * 6); gap: calc(var(--m-space) * 4); background: color-mix(in srgb, var(--mp-panel) 88%, transparent);
    border-bottom: 1px solid var(--mp-line); backdrop-filter: blur(14px);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-header-title { font-size: var(--m-type-20); font-weight: var(--m-weight); letter-spacing: -.035em; color: var(--mp-ink); }
body.m-premium.m-ui-v4 .v4-chat .mx-chat-kicker { color: var(--mp-accent); letter-spacing: .15em; font-size: var(--m-type-12); margin-bottom: calc(var(--m-space) * 1); white-space: nowrap; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-header-sub {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    white-space: normal;
}
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-header-sub, .m-chat-muted, .m-chat-aside-copy, .m-chat-aside-meta, .m-chat-time) { color: var(--mp-muted); }
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-room-name, .m-chat-name, .m-chat-member-name, .m-chat-aside-name, .m-chat-bubble-text, .m-chat-empty) { color: var(--mp-ink); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-feed { padding: calc(var(--m-space) * 7); gap: calc(var(--m-space) * 5); background: transparent; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-row { padding: calc(var(--m-space) * 1) 0; gap: calc(var(--m-space) * 3); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble,
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble:not(.is-mine) {
    background: linear-gradient(140deg, var(--mp-panel-raised), var(--mp-panel)) !important;
    border: 1px solid var(--mp-line) !important; border-radius: var(--m-radius-8) var(--m-radius-16) var(--m-radius-16) var(--m-radius-16)!important;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5); color: var(--mp-ink) !important; box-shadow: 0 8px 24px -18px #000 !important;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-bubble,
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble.is-mine {
    background: linear-gradient(145deg, #d8b84a 0%, #c4a035 55%, #b08d2c 100%) !important;
    border-color: #e6cd72 !important;
    border-radius: var(--m-radius-16) 0 var(--m-radius-16) var(--m-radius-16) !important;
    color: #14100a !important;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble-text { font-size: var(--m-type-14); line-height: 1.8; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble { min-height: 0; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-meta { gap: calc(var(--m-space) * 3); margin-bottom: calc(var(--m-space) * 2); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-time { font-size: var(--m-type-12); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer { background: transparent; padding: calc(var(--m-space) * 4) calc(var(--m-space) * 6) calc(var(--m-space) * 5); border-top: 1px solid var(--mp-line); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer-row { gap: calc(var(--m-space) * 3); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer textarea {
    background: var(--mp-panel); color: var(--mp-ink); border: 1px solid var(--mp-line);
    border-radius: var(--m-radius-16); padding: calc(var(--m-space) * 4); min-height: 54px; box-shadow: 0 4px 20px -16px #000;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer textarea:focus { border-color: var(--mp-accent); box-shadow: 0 0 0 3px var(--mp-glow); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-send { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--m-space) * 2); min-height: 54px; border-radius: var(--m-radius-16); }
body.m-premium.m-ui-v4 .v4-chat :is(.m-chat-attach, .m-chat-member-mod-select) { color: var(--mp-ink); border: 1px solid var(--mp-line); background: var(--mp-panel); border-radius: var(--m-radius-8); min-height: 44px; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-pin { background: var(--mp-glow); border: 1px solid var(--mp-line); border-radius: var(--m-radius-8); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-pin-text { color: var(--mp-ink); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-search input { background: var(--mp-canvas); color: var(--mp-ink); border-color: var(--mp-line); border-radius: var(--m-radius-8); min-height: 44px; }
body.m-premium.m-ui-v4 .v4-chat .m-chat-aside-body { padding: calc(var(--m-space) * 5); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-aside-name { font-size: var(--m-type-20); line-height: 1.3; letter-spacing: -.04em; padding-bottom: calc(var(--m-space) * 4); border-bottom: 1px solid var(--mp-line); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-member-row { padding: calc(var(--m-space) * 3) 0; border-color: var(--mp-line); }
body.m-premium.m-ui-v4 .v4-chat .m-chat-empty { border: 1px dashed var(--mp-line); border-radius: var(--m-radius-16); background: var(--mp-glow); padding: calc(var(--m-space) * 8) calc(var(--m-space) * 6); margin: calc(var(--m-space) * 4) 0; }
/* Motion is finite and decorative; no content is hidden while JavaScript loads. */
@keyframes mp-arrive { from { opacity: .45; transform: translateY(9px); } to { opacity: 1; transform: none; } }
@keyframes mp-light { from { transform: translateX(-20px); opacity: .25; } to { transform: translateX(20px); opacity: .6; } }
@media (prefers-reduced-motion: no-preference) {
    body.m-premium .v4-explore-hero, body.m-premium .mp-hero { animation: mp-arrive 550ms var(--mp-ease) both; }
    body.m-premium .mp-chat-aurora span { animation: mp-light 2s ease-in-out 2 alternate; }
    body.m-premium .m-chat-row.mp-message-arrive { animation: mp-arrive 260ms var(--mp-ease); }
}
@media (min-width: 1400px) {
    body.m-premium.m-ui-v4 .v4-chat .m-chat-wrapper { grid-template-columns: 280px minmax(0,1fr) 270px; }
}
@media (max-width: 1199px) {
    body.m-premium.m-ui-v4 .v4-explore-hero { grid-template-columns: 1fr; gap: calc(var(--m-space) * 3); }
    body.m-premium.m-ui-v4 .v4-hero-map { max-width: 620px; margin-inline: auto; }
    
}
@media (max-width: 767px) {
    body.m-premium .m-app-main { padding: calc(var(--m-space) * 4); }
    body.m-premium.m-ui-v4 .v4-explore-hero { border-radius: var(--m-radius-16); padding: calc(var(--m-space) * 7) calc(var(--m-space) * 5) calc(var(--m-space) * 4); min-height: 0; gap: calc(var(--m-space) * 5); }
    
    
    body.m-premium .v4-section-head::after { display: none; }
    body.m-premium .v4-content-filters { padding: calc(var(--m-space) * 4); }
    body.m-premium :is(.m-input, .m-select, .m-textarea, .form-control, .form-select) { font-size: var(--m-type-16); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-header { padding: calc(var(--m-space) * 3); gap: calc(var(--m-space) * 3); }
    body.m-premium.m-chat-immersive .v4-context { flex-wrap: nowrap; gap: calc(var(--m-space) * 2); }
    body.m-premium.m-chat-immersive .v4-context-actions { flex: 0 0 auto; width: auto; gap: calc(var(--m-space) * 2); }
    body.m-premium.m-chat-immersive .v4-context .v4-city-chip { display: none; }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-header-title { font-size: var(--m-type-20); }
    body.m-premium.m-ui-v4 .v4-chat .mp-chat-emblem { width: 36px; height: 36px; border-radius: var(--m-radius-8); font-size: var(--m-type-16); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-feed { padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3); gap: calc(var(--m-space) * 4); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble { padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-composer { padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(var(--m-space) * 4); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-composer textarea { padding: calc(var(--m-space) * 3); min-height: 48px; font-size: var(--m-type-16); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-send { min-height: 48px; min-width: 48px; padding: calc(var(--m-space) * 3); }
    body.m-premium.m-ui-v4 .v4-chat .m-chat-send span { position: absolute; width: 1px; height: 1px; padding: 0; margin: calc(var(--m-space) * -1); overflow: hidden; clip-path: inset(50%); }
}
@media (max-width: 359px) {
    body.m-premium.m-ui-v4 .v4-chat .mp-chat-emblem { display: none; }
    
}
/* Flat chat header — no blur strip. */
body.m-premium.m-ui-v4 .v4-chat .m-chat-header {
    position: relative; isolation: isolate; overflow: hidden;
    background: var(--mp-panel);
    box-shadow: none;
    border-bottom: 1px solid var(--mp-line);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-header::before,
body.m-premium.m-ui-v4 .v4-chat .m-chat-header::after {
    content: none !important;
    display: none !important;
}
body.m-premium.m-ui-v4 .v4-chat .mp-chat-emblem {
    background: linear-gradient(140deg, #e9d197, #a47c36); color: #211a0b;
    border: 1px solid #efd799; box-shadow: inset 0 1px 1px #fff8, 0 0 30px var(--mp-glow);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-main {
    background: radial-gradient(ellipse at 95% 15%, var(--mp-glow), transparent 48%),
        radial-gradient(ellipse at 5% 90%, rgba(112,133,190,.1), transparent 50%), var(--mp-canvas);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer {
    background: linear-gradient(0deg, var(--mp-panel), transparent);
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-composer textarea {
    box-shadow: inset 0 1px 0 var(--mp-line), 0 8px 26px -20px #000;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-bubble,
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble.is-mine {
    background: linear-gradient(145deg, #d8b84a 0%, #c4a035 55%, #b08d2c 100%) !important;
    box-shadow: 0 8px 22px -16px rgba(176, 141, 44, 0.55) !important;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-bubble-text,
body.m-premium.m-ui-v4 .v4-chat .m-chat-bubble.is-mine .m-chat-bubble-text {
    color: #14100a !important;
}
body.m-premium.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-time {
    color: rgba(20, 16, 10, 0.68) !important;
}

@keyframes mp-ambient { from { transform: translate3d(-12%,0,0); opacity: .55; } to { transform: translate3d(5%,12px,0); opacity: 1; } }
@media (prefers-reduced-motion: no-preference) {
    body.m-premium.m-ui-v4 .v4-chat .m-chat-header::before { animation: mp-ambient 9s ease-in-out infinite alternate; }
    body.m-premium .mp-chat-aurora span { animation: mp-ambient 10s ease-in-out infinite alternate; }
    body.m-premium .mp-chat-aurora span:nth-child(2) { animation-delay: -4s; }
    body.m-premium .mp-chat-aurora span:nth-child(3) { animation-delay: -7s; }
}
@media (prefers-reduced-motion: reduce) {
    body.m-premium *, body.m-premium *::before, body.m-premium *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media (min-width: 1100px) {
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned {
        position: sticky;
        top: 0;
        flex: 0 0 var(--meriva-v4-sidebar-width);
        width: var(--meriva-v4-sidebar-width);
        min-width: var(--meriva-v4-sidebar-width);
        max-width: var(--meriva-v4-sidebar-width);
        align-self: flex-start;
        height: 100dvh;
    }

    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-sidebar-inner,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned:hover .v4-sidebar-inner,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned:focus-within .v4-sidebar-inner,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned.is-hover-open .v4-sidebar-inner {
        width: var(--meriva-v4-sidebar-width);
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        box-shadow: none;
    }

    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-nav-label,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-sidebar-brand-copy,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-sidebar-foot-copy,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-pub-join,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-theme-switch,
    body.m-premium.m-ui-v4 .m-app-sidebar.v4-sidebar.is-pinned .v4-sidebar-footer legend {
        opacity: 1;
        max-width: 12rem;
        transform: none;
        pointer-events: auto;
    }
}

.v4-city-picker { position: relative; max-width: 100%; }
.v4-city-picker > summary { list-style: none; cursor: pointer; }
.v4-city-picker > summary::-webkit-details-marker { display: none; }
.v4-city-picker:not([open]) > .v4-city-panel { display: none !important; }
.v4-city-picker[open] > .v4-city-panel {
    display: flex;
    flex-direction: column;
    position: fixed;
    z-index: 40;
    left: 0.5rem;
    right: 0.5rem;
    bottom: 4.75rem;
    top: auto;
    width: auto;
    max-width: calc(100vw - 1rem);
    max-height: min(22rem, calc(100vh - 9.5rem));
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding: calc(var(--m-space) * 2);
    border-radius: var(--m-radius-16);
    background: #060608;
    border: 1px solid rgba(212, 175, 55, 0.35);
}
@media (min-width: 768px) {
    .v4-city-picker[open] > .v4-city-panel {
        position: absolute;
        left: auto;
        right: 0;
        bottom: auto;
        top: calc(100% + 0.4rem);
        width: min(18rem, calc(100vw - 1rem));
        max-height: 22rem;
    }
}
.v4-city-picker .v4-city-panel .m-input {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}
.v4-city-list { display: grid; gap: calc(var(--m-space) * 1); margin-top: calc(var(--m-space) * 2); min-width: 0; }
.v4-city-option {
    display: flex;
    gap: calc(var(--m-space) * 2);
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    text-align: left;
    border: 0;
    border-radius: var(--m-radius-8);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    background: transparent;
    color: #f7f3ec;
    overflow: hidden;
}
.v4-city-option.is-current,
.v4-city-option:hover { background: rgba(212, 175, 55, 0.16); color: #D4AF37; }
.v4-city-option.is-closed,
.v4-city-option.is-closed:hover {
    background: transparent;
    color: #f7f3ec;
    opacity: 0.55;
    cursor: not-allowed;
}
.m-city-soon {
    margin-left: auto;
    color: #D4AF37;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}
.v4-content-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
}
.v4-pazar-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
}
.m-content-find { position: relative; }
.m-content-find summary { list-style: none; cursor: pointer; }
.m-content-find summary::-webkit-details-marker { display: none; }
.m-content-find form {
    position: absolute;
    z-index: 3;
    right: 0;
    margin-top: calc(var(--m-space) * 2);
    width: min(16rem, calc(100vw - 2rem));
}
.m-content-find:not([open]) form {
    display: none;
}
.m-how {
    display: grid;
    gap: calc(var(--m-space) * 6);
    max-width: 42rem;
    margin: 0 auto;
}
.m-how h1 { font-size: var(--m-type-40); font-weight: var(--m-weight); }
.m-how h2 { font-size: var(--m-type-20); font-weight: var(--m-weight); }
.m-how p, .m-how li { font-size: var(--m-type-16); }
.m-how ol { display: grid; gap: calc(var(--m-space) * 2); padding-left: calc(var(--m-space) * 5); }
.v4-city-plate { flex: 0 0 1.6rem; width: 1.6rem; font-variant-numeric: tabular-nums; color: #D4AF37; }
.v4-city-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Bölüm 1: Fraunces yalnız h1/h2. Altın çizgi, kart kenarı ve etiket yerine taş ve fildişi. */
body.m-premium .v4-explore { gap: calc(var(--m-space) * 18); }
body.m-premium .v4-page { gap: calc(var(--m-space) * 6); }


body.m-premium :is(
    .v4-kicker, .v4-land-kicker, .v4-pub-join-kicker, .v4-level-kicker,
    .v4-empty-icon, .v4-post-status, .v4-listing-status, .v4-biz-badge, .v4-mission-cta
) {
    color: var(--m-ivory);
    border-color: var(--m-stone);
}
html[data-meriva-theme="white"] body.m-premium :is(
    .v4-kicker, .v4-land-kicker, .v4-pub-join-kicker, .v4-level-kicker,
    .v4-empty-icon, .v4-post-status, .v4-listing-status, .v4-biz-badge, .v4-mission-cta
) { color: var(--m-stone-ink); }

body.m-premium .v4-mpoints-value,
body.m-premium .mp-balance {
    color: var(--mp-ink);
}
body.m-premium .v4-city-card.is-spotlight { border-color: var(--mp-accent); }
body.m-premium .surface-wallet[data-tab="bakiye"] [data-surface="hareketler"],
body.m-premium .surface-wallet[data-tab="hareketler"] [data-surface="bakiye"] {
    display: none;
}
@media (max-width: 991.98px) {
    body.m-premium .v4-dock-link span {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-align: center;
        line-height: 1.15;
    }
}
body.m-premium .v4-home-title {
    margin: 0;
    font-size: var(--m-type-40);
    line-height: 1.12;
    color: var(--mp-ink);
}
body.m-premium .v4-home-title span { display: block; }
body.m-premium .v4-home-title span:last-child { color: var(--mp-accent); }
body.m-premium .v4-home-lead {
    margin: calc(var(--m-space) * 4) 0 0;
    max-width: 36rem;
    color: var(--mp-muted);
    font-size: var(--m-type-16);
}
body.m-premium .v4-home-cta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    margin-top: calc(var(--m-space) * 6);
}
body.m-premium .v4-home-task {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 4);
    margin-top: calc(var(--m-space) * 6);
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5);
    border: 1px solid var(--mp-line);
    border-radius: var(--m-radius-16);
    background: rgba(0, 0, 0, .22);
    color: inherit;
    text-decoration: none;
}
body.m-premium .v4-home-task-title {
    display: block;
    margin-top: calc(var(--m-space) * 1);
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}
body.m-premium .v4-home-task p {
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--mp-muted);
    font-size: var(--m-type-14);
}
body.m-premium.m-ui-v4 .v4-explore-hero[data-hero-photo] {
    background-image:
        radial-gradient(ellipse at 85% 60%, rgba(194, 146, 56, .2), transparent 52%),
        linear-gradient(90deg, rgba(16, 19, 25, .9), rgba(16, 19, 25, .55)),
        url("/images/hero.jpg");
    background-size: auto, auto, cover;
    background-position: center;
}
body.m-premium.m-ui-v4 .v4-hero-map {
    flex-direction: column;
    align-items: center;
}
body.m-premium .v4-city-closed-line {
    margin: calc(var(--m-space) * 3) 0 0;
    text-align: center;
    color: var(--mp-muted);
    font-size: var(--m-type-14);
}
body.m-premium .v4-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 4);
}
body.m-premium .v4-story {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    color: inherit;
    text-decoration: none;
}
body.m-premium .v4-story-frame {
    display: block;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    border-radius: var(--m-radius-16);
    background: var(--mp-panel-raised);
}
body.m-premium .v4-story-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.m-premium .v4-story h3 {
    margin: 0;
    font-size: var(--m-type-16);
}
body.m-premium .v4-story-meta {
    display: flex;
    gap: calc(var(--m-space) * 2);
    margin: 0;
    min-width: 0;
    overflow: hidden;
    color: var(--mp-muted);
    font-size: var(--m-type-14);
    white-space: nowrap;
    text-overflow: ellipsis;
}
body.m-premium .v4-biz-showcase-rail {
    display: flex;
    gap: calc(var(--m-space) * 4);
    overflow-x: auto;
    padding-bottom: calc(var(--m-space) * 2);
}
body.m-premium .v4-biz-showcase {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: calc(var(--m-space) * 4);
    width: min(100%, 22rem);
    padding: calc(var(--m-space) * 3);
    border: 1px solid var(--mp-line);
    border-radius: var(--m-radius-16);
    background: var(--mp-panel);
    color: inherit;
    text-decoration: none;
}
body.m-premium .v4-biz-photo {
    flex: 0 0 auto;
    width: 7.5rem;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: var(--m-radius-16);
    background: var(--mp-panel-raised);
}
body.m-premium .v4-biz-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
body.m-premium .v4-biz-showcase-copy {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
}
body.m-premium .v4-biz-showcase-copy h3 {
    margin: 0;
    font-size: var(--m-type-16);
}
body.m-premium .v4-biz-showcase-copy p {
    margin: 0;
    color: var(--mp-muted);
    font-size: var(--m-type-14);
}
body.m-premium .v4-verified {
    color: var(--mp-accent);
    font-size: var(--m-type-12);
}
body.m-premium .v4-trust {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: calc(var(--m-space) * 4);
    padding: calc(var(--m-space) * 6);
    border: 1px solid var(--mp-line);
    border-radius: var(--m-radius-16);
    background: var(--mp-panel);
}
body.m-premium .v4-trust p {
    margin: 0;
    font-size: var(--m-type-16);
}
body.m-premium .v4-home-empty {
    margin: 0;
    color: var(--mp-muted);
    font-size: var(--m-type-14);
}
@media (max-width: 900px) {
    body.m-premium .v4-home-title { font-size: var(--m-type-28); }
    body.m-premium .v4-story-grid,
    body.m-premium .v4-trust { grid-template-columns: 1fr; }
}
body.m-premium .v4-story.is-text { aspect-ratio: 4 / 5; }
body.m-premium .v4-story.is-text .v4-story-frame {
    aspect-ratio: auto;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 4);
    background: var(--mp-panel);
    border: 1px solid var(--mp-line);
}
body.m-premium .v4-story-kicker {
    color: var(--mp-muted);
    font-size: var(--m-type-12);
}
body.m-premium .v4-story-quote {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    line-height: 1.25;
    color: var(--mp-ink);
}
body.m-premium .v4-story.is-text .v4-story-meta { margin-top: auto; }
body.m-premium .v4-dock-link,
body.m-premium .v4-dock-plus,
body.m-premium .v4-city-option,
body.m-premium .v4-filter-open {
    min-width: 44px;
    min-height: 44px;
}
body.m-premium .v4-dock-plus {
    color: var(--mp-accent-ink);
    background: var(--mp-accent);
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    line-height: 1;
    text-decoration: none;
}
body.m-premium .v4-mark-empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--m-space) * 4);
    max-width: 28rem;
    padding: calc(var(--m-space) * 6);
    border: 1px solid var(--mp-line);
    border-radius: var(--m-radius-16);
    background: var(--mp-panel);
}
body.m-premium .v4-mark-empty h2 {
    margin: 0;
    font-size: var(--m-type-20);
}
body.m-premium .v4-badger { display: block; }
@media (min-width: 1100px) {
    body.m-premium .v4-guest-menu > .v4-user-trigger,
    body.m-premium .v4-city-menu,
    body.m-premium .v4-context-title.is-home,
    body.m-premium .v4-filter-bar,
    body.m-premium .v4-filter-backdrop,
    body.m-premium .v4-filter-sheet-head { display: none; }
    body.m-premium .v4-filter-sheet { display: contents; }
}
@media (max-width: 1099.98px) {
    body.m-premium .v4-context { flex-wrap: nowrap; align-items: center; }
    body.m-premium .v4-context-copy { flex: 1 1 auto; min-width: 0; }
    body.m-premium .v4-context-copy > .d-flex { width: 100%; min-width: 0; }
    body.m-premium .v4-context-lead,
    body.m-premium .v4-city-desktop,
    body.m-premium .v4-guest-auth { display: none; }
    body.m-premium .v4-context-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    body.m-premium .v4-context-title.is-home { display: block; }
    body.m-premium .v4-context-actions { flex: 0 0 auto; flex-wrap: nowrap; }
    body.m-premium .v4-context :is(.m-bell, .v4-user-trigger, .v4-icon-btn) {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
    }
    body.m-premium .v4-context:has(.v4-city-picker[open]) { backdrop-filter: none; }
    body.m-premium .v4-city-menu .v4-city-picker[open] > .v4-city-panel {
        position: fixed;
        z-index: 1080;
        left: 0.5rem;
        right: 0.5rem;
        bottom: 4.75rem;
        top: auto;
        width: auto;
    }
    body.m-premium .v4-filter-bar { display: flex; margin-bottom: calc(var(--m-space) * 3); }
    body.m-premium .v4-filter-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 1065;
        border: 0;
        background: rgba(0, 0, 0, .45);
    }
    body.m-premium .v4-filter-backdrop[hidden] { display: none; }
    body.m-premium .v4-filter-sheet {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1070;
        display: flex;
        flex-direction: column;
        gap: calc(var(--m-space) * 3);
        max-height: min(80vh, 36rem);
        overflow: auto;
        padding: calc(var(--m-space) * 4);
        padding-bottom: calc(5rem + env(safe-area-inset-bottom));
        border: 1px solid var(--mp-line);
        border-radius: var(--m-radius-16) var(--m-radius-16) 0 0;
        background: var(--mp-panel);
        transform: translateY(110%);
        visibility: hidden;
    }
    body.m-premium .v4-filter-sheet.is-open { transform: none; visibility: visible; }
    body.m-premium .v4-filter-sheet-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        min-height: 44px;
    }
    body.m-premium .v4-filter-sheet-head p { margin: 0; font-size: var(--m-type-16); }
    body.m-premium .v4-filter-sheet :is(.v4-content-filters, .v4-gift-filters) {
        flex-direction: column;
        align-items: stretch;
    }
    body.m-premium .v4-filter-sheet :is(.m-btn, .m-input, .m-select, .v4-icon-btn) {
        min-height: 44px;
    }
    body.m-premium .v4-filter-sheet :is(.m-btn, .m-input, .m-select) { width: 100%; }
}

/* Bölüm 5: sayfa aralığı, ikincil filtre, koyu sekme, hareket. */
body.m-premium .v4-sec-nav { flex-wrap: wrap !important; overflow-x: visible; }
body.m-premium :is(.m-site-footer-col a, .m-legal-site-footer a, .v4-dock-link) {
    color: #C8C2B6;
}
html[data-meriva-theme="white"] body.m-premium :is(.m-site-footer-col a, .m-legal-site-footer a, .v4-dock-link) {
    color: #4E4940;
}
body.m-premium .mp-text-link {
    color: #A8A296;
}
body.m-premium .v4-nav-link { color: #A8A296; }
body.m-premium .v4-nav-link.is-active {
    background: var(--mp-panel);
    color: var(--mp-ink);
    border: 1px solid var(--mp-line);
}
body.m-premium .v4-nav-link.is-active .v4-icon,
body.m-premium .v4-dock-link.is-active,
body.m-premium .v4-dock-link.is-active .v4-icon { color: var(--mp-ink); }
body.m-premium .v4-filter-open {
    background: var(--mp-panel) !important;
    color: var(--mp-ink) !important;
    border: 1px solid var(--mp-line) !important;
    box-shadow: none;
}
body.m-premium .mp-page { display: flex; flex-direction: column; gap: calc(var(--m-space) * 6); }
body.m-premium .m-flash-toast {
    top: auto;
    right: 16px;
    bottom: 16px;
}
@media (max-width: 1099.98px) {
    body.m-premium .m-flash-toast { bottom: calc(4.75rem + env(safe-area-inset-bottom)); }
}
body.m-premium .m-flash-toast.is-leaving { transform: translateY(8px); }
.v4-skel { display: grid; gap: calc(var(--m-space) * 4); margin-top: calc(var(--m-space) * 4); }
.v4-skel-row {
    display: block;
    height: calc(var(--m-space) * 18);
    border-radius: var(--m-radius-16);
    background: linear-gradient(90deg, var(--mp-panel), var(--mp-panel-raised), var(--mp-panel));
    background-size: 200% 100%;
}
@keyframes mp-card-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-page-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes mp-skel { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: no-preference) {
    body.m-premium :is(.v4-market-card, .v4-story, .v4-biz, .v4-action, .mp-card, .mp-entry) {
        animation: mp-card-in 200ms ease both;
    }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(2) { animation-delay: 40ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(3) { animation-delay: 80ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(4) { animation-delay: 120ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(5) { animation-delay: 160ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(6) { animation-delay: 200ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(7) { animation-delay: 240ms; }
    body.m-premium :is(.v4-market, .v4-story-grid, .v4-actions, .mp-ledger) > :nth-child(8) { animation-delay: 280ms; }
    .v4-skel-row { animation: mp-skel 1.2s ease-in-out infinite; }
    body.m-premium { animation: mp-page-in 150ms linear both; }
}
@media (prefers-reduced-motion: reduce) {
    .v4-skel-row,
    body.m-premium,
    body.m-premium :is(.v4-market-card, .v4-story, .v4-biz, .v4-action, .mp-card, .mp-entry) { animation: none; }
}

/* meriva-responsive.css */
/**
 * MERIVA responsive foundation
 * Loaded last by layouts. Content-based breakpoints, not device names.
 * Does not relocate primary navigation (sidebar + hamburger stay LEFT).
 */

:root {
    --m-touch: 44px;
    --m-bp-stack: 36rem;
    --m-bp-split: 48rem;
    --m-bp-panel-shell: 62rem;
}

html {
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: normal;
}

body {
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: manual;
}

.m-break-token,
a[href^="http"],
a[href^="//"],
code,
kbd,
samp,
pre {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m-app-shell,
.m-app-container,
.m-app-main,
.m-app-header,
.v4-context,
.v4-pub-top,
.m-card,
.m-card-dark,
.row,
[class*="col-"] {
    min-width: 0;
    max-width: 100%;
}

.m-app-shell {
    width: 100%;
    overflow-x: visible;
}

.m-app-container,
.m-app-main {
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

/* —— Buttons / controls —— */
.m-btn:not(.m-btn--icon),
a.m-btn:not(.m-btn--icon),
button.m-btn:not(.m-btn--icon),
input[type="submit"],
input[type="button"],
.btn:not(.btn-close):not(.btn-sm) {
    height: auto;
    min-height: var(--m-touch);
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-btn--sm:not(.m-btn--icon),
.btn-sm:not(.btn-close) {
    min-height: var(--m-touch, 44px);
    height: auto;
    white-space: normal;
}

@media (max-width: 47.98rem) {
    .m-btn--sm:not(.m-btn--icon),
    .btn-sm:not(.btn-close) {
        min-height: var(--m-touch);
    }
}

.m-btn--icon,
.v4-icon-btn,
.v4-user-trigger,
.m-app-header [data-m-toggle="sidebar"],
.v4-context [data-m-toggle="sidebar"],
.v4-pub-top [data-m-toggle="sidebar"] {
    flex: 0 0 auto;
    min-width: var(--m-touch);
    min-height: var(--m-touch);
}

.m-panel-actions,
.d-flex:has(> .m-btn),
.v4-upload-actions,
.m-create-actions{
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
}

.m-panel-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.75rem), 1fr));
}

/* —— Forms —— */
input,
select,
textarea,
.m-input,
.m-select,
.form-control,
.form-select {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.v4-field-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--m-space) * 3);
}

@media (min-width: 36rem) {
    .v4-field-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.form-check-label,
.m-validation-feedback,
.field-validation-error,
.text-danger {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

/* —— Tables: internal scroll only —— */
.m-table-container,
.table-responsive,
.m-admin-users-table-wrap {
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    -webkit-overflow-scrolling: touch;
}

@media (max-width: 47.98rem) {
    .m-admin-users-table {
        min-width: 0;
    }

    .m-admin-users-table-wrap {
        display: none;
    }

    .m-admin-users-cards {
        display: grid;
    }
}

/* —— Member / public context bar: hamburger stays LEFT —— */
.v4-context {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-context-copy {
    min-width: 0;
    flex: 1 1 10rem;
}

.v4-context-copy > .d-flex {
    min-width: 0;
}

.v4-context-copy [data-m-toggle="sidebar"] {
    order: 0;
}

.v4-context-title {
    overflow-wrap: break-word;
    word-break: normal;
    max-width: 100%;
}

.v4-city-chip {
    min-width: 0;
    max-width: min(14rem, 48vw);
}

.v4-city-chip span {
    flex: 1 1 auto;
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
}

.v4-user-panel {
    max-width: min(18rem, calc(100vw - 1rem));
}

/* Public mobile topbar: hamburger LEFT, actions RIGHT */
.v4-pub-top {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
}

.v4-pub-top [data-m-toggle="sidebar"] {
    order: 0;
    margin-inline-end: 0;
}

.v4-pub-top-brand {
    min-width: 0;
}

.v4-pub-top > a.v4-pub-top-join {
    margin-inline-start: auto;
    flex: 0 1 auto;
    max-width: 42%;
}

/* Role panels: overlay drawer from LEFT, do not push main content */
.m-role-panel .m-app-header {
    height: auto;
    min-height: var(--meriva-header-height, 64px);
    flex-wrap: wrap;
    row-gap: calc(var(--m-space) * 2);
}

.m-role-panel .d-flex,
.m-role-panel h1,
.m-role-panel h2,
.m-role-panel h3,
.m-role-panel .m-h1,
.m-role-panel .m-h2,
.m-role-panel .m-h3 {
    min-width: 0;
    max-width: 100%;
}

.m-role-panel h1,
.m-role-panel h2,
.m-role-panel h3,
.m-role-panel .m-h2,
.m-role-panel .m-h3,
.m-profile-hub__name,
.m-profile-hub__nick,
.m-profile-hub__bio,
.v4-context-title {
    overflow-wrap: break-word;
    word-break: normal;
}

.m-role-panel code,
.m-role-panel pre {
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.m-role-panel .m-app-header > .d-flex:first-child {
    min-width: 0;
    flex: 1 1 12rem;
}

.m-role-panel .m-app-header > .d-flex:first-child [data-m-toggle="sidebar"] {
    order: 0;
    flex-shrink: 0;
}

.m-role-panel .m-app-header > .d-flex:last-child {
    margin-inline-start: auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    min-width: 0;
}

@media (max-width: 991.98px) {
    body.m-role-panel .m-app-sidebar {
        position: fixed;
        top: 0;
        left: 0;
        bottom: 0;
        height: 100dvh;
        width: min(var(--meriva-sidebar-width, 260px), 88vw);
        min-width: 0;
        max-width: min(var(--meriva-sidebar-width, 260px), 88vw);
        flex: none;
        transform: translateX(-105%);
        visibility: hidden;
        pointer-events: none;
        z-index: 1055;
        padding: var(--meriva-space-4, 1rem);
        padding-top: calc(var(--meriva-space-4, 1rem) + env(safe-area-inset-top, 0px));
    }

    body.m-role-panel .m-app-sidebar.show-mobile {
        transform: translateX(0);
        visibility: visible;
        pointer-events: auto;
    }

    body.m-role-panel .m-app-shell,
    body.m-role-panel .m-app-container {
        overflow-x: visible;
        transform: none;
    }

    body.m-role-panel.m-sidebar-open .m-app-container {
        transform: none;
        will-change: auto;
    }
}

/* V4 member/public shell: do not clip page overflow */
body.m-ui-v4 .m-app-shell,
body.m-ui-v4 .m-app-container {
    overflow-x: visible;
}

/* Chat: feed min-width, limited reply indent, composer in viewport */
.m-chat,
.m-chat-wrapper,
.m-chat-main,
.m-chat-feed,
.m-chat-bubble,
.m-chat-bubble-text,
.m-chat-pin,
.m-chat-pin-text {
    min-width: 0;
    max-width: 100%;
}

.m-chat-row {
    min-width: 0;
}

.m-chat-bubble-text,
.m-chat-pin-text {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m-chat-header-title,
.m-chat-header-sub,
.m-chat-room-name,
.m-chat-name,
.m-chat-member-name,
.m-chat-reply-quote,
.m-chat-reply-excerpt{
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-bubble-text a,
.m-chat-reply-excerpt a {
    overflow-wrap: anywhere;
}

@media (max-width: 63.98rem) {
    .mx-chat-shell--room .m-chat-row[data-reply-depth],
    .mx-chat-shell--room .m-chat-row[data-reply-depth="1"],
    .mx-chat-shell--room .m-chat-row[data-reply-depth="2"],
    .mx-chat-shell--room .m-chat-row[data-reply-depth="3"] {
        padding-left: calc(var(--m-space) * 2);
    }
}

@media (max-width: 1099.98px) {
    body.m-chat-immersive.m-ui-v4:has(.v4-dock) .m-app-main {
        padding-bottom: var(--meriva-dock-h) !important;
    }
}

.m-chat-composer {
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
}

.m-chat-composer-row {
    flex-wrap: wrap;
}

.m-chat-composer textarea {
    overflow-wrap: break-word;
    min-width: 0;
}

.m-chat-send {
    min-height: var(--m-touch);
}

.modal-dialog,
.m-dialog-card,
.m-chat-report-dialog {
    max-width: min(100%, calc(100vw - 1.5rem));
}

.m-profile-hub,
.m-profile-edit,
.mx-content{
    min-width: 0;
    max-width: 100%;
    overflow-x: visible;
}

/* Admin dashboard: long action labels wrap inside the control.
   Narrow hero cards and quick-action cards stack to one column
   so a word stays intact instead of painting outside the tile. */
.m-role-panel .m-btn-label {
    min-width: 0;
    flex: 1 1 auto;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
    line-height: 1.35;
    text-align: center;
}

.m-role-panel .m-hero-card-dark {
    container-type: inline-size;
    container-name: admin-hero;
}

.m-role-panel .m-hero-card-dark .m-panel-actions > .m-btn {
    min-width: 0;
    width: 100%;
    height: auto;
    align-self: stretch;
}

.m-role-panel .m-admin-quick-card {
    container-type: inline-size;
    container-name: admin-quick;
}

.m-role-panel .m-admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
}

.m-role-panel .m-admin-quick-actions > .m-btn {
    min-width: 0;
    width: 100%;
    max-width: 100%;
    height: auto;
    min-height: 44px;
    font-size: var(--m-type-12);
    padding-inline: calc(var(--m-space) * 2);
    white-space: normal;
    overflow: visible;
}

.m-role-panel .m-admin-quick-actions > .m-btn .m-btn-label {
    flex: 0 1 auto;
    overflow-wrap: normal;
    word-break: normal;
}

@container admin-hero (max-width: 36rem) {
    .m-role-panel .m-hero-card-dark .m-panel-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

@container admin-quick (max-width: 11.5rem) {
    .m-role-panel .m-admin-quick-actions {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* Rounded description/chat cards: keep corner radius, do not clip first glyphs. */
.v4-mission,
.v4-event,
.v4-profile-card,
.v4-board-row,
.v4-ledger-item,
.v4-mp-hero,
.v4-comments,
.v4-content-panel,
.v4-composer-card,
.v4-post,
.m-chat-bubble {
    overflow: visible;
}

.v4-mission.v4-market-body,
.v4-event.v4-market-body,
.v4-mission .v4-market-body,
.v4-event .v4-market-body {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5) calc(var(--m-space) * 5);
}

body.m-role-panel .m-app-shell {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

@media (min-width: 992px) {
    body.m-role-panel .m-app-container {
        flex: 1 1 0%;
        width: 0;
        min-width: 0;
        max-width: calc(100vw - var(--meriva-sidebar-width, 260px));
    }
}

body.m-role-panel .m-app-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

body.m-role-panel .m-app-main > .row {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
}

body.m-role-panel .m-hero-card-dark {
    display: flex !important;
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    height: auto !important;
    max-height: none;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
}

body.m-role-panel .h-100,
body.m-role-panel .m-stat-card-dark,
body.m-role-panel .m-card-dark {
    height: auto !important;
    max-height: none;
    overflow: visible;
}

@media (min-width: 768px) {
    body.m-role-panel .m-hero-card-dark {
        padding-inline-end: calc(var(--m-space) * 46);
    }
}

body.m-role-panel .m-hero-card-dark > * {
    min-width: 0;
    max-width: 100%;
}

body.m-role-panel .m-hero-card-dark .m-panel-actions {
    position: relative !important;
    left: 0 !important;
    transform: none !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-left: 0!important;
    margin-right: 0!important;
}

body.m-role-panel .m-hero-card-dark .m-panel-actions > .m-btn {
    position: relative !important;
    left: auto !important;
    right: auto !important;
    transform: none !important;
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0!important;
    margin-right: 0!important;
    box-sizing: border-box;
    white-space: normal;
}

body.m-role-panel .m-hero-card-dark .m-btn-label {
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.m-legal-site-footer {
    margin-top: calc(var(--m-space) * 6);
    padding-top: calc(var(--m-space) * 4);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: var(--m-type-14);
    line-height: 1.45;
}

.m-legal-site-footer p,
.m-legal-site-footer nav {
    margin: 0 0 calc(var(--m-space) * 1);
    overflow-wrap: anywhere;
}

.m-legal-site-footer,
.m-legal-site-footer nav {
    max-width: 100%;
    min-width: 0;
}

.m-legal-site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
}

.m-legal-site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: var(--control, 44px);
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
}



.m-legal-body,
.m-legal-prose pre {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-width: 100%;
}

.m-legal-flow {
    min-width: 0;
    max-width: 100%;
    overflow-x: clip;
}

.m-legal-flow h1,
.m-legal-flow h2,
.m-legal-flow h3,
.m-legal-flow h4,
.m-legal-flow p,
.m-legal-flow li {
    overflow-wrap: anywhere;
    white-space: normal;
    max-width: 100%;
}

.m-legal-flow h1 {
    font-size: var(--m-type-20);
    margin: 0 0 calc(var(--m-space) * 3);
}

.m-legal-flow h2 {
    font-size: var(--m-type-16);
    margin: calc(var(--m-space) * 5) 0 calc(var(--m-space) * 2);
}

.m-legal-flow h3,
.m-legal-flow h4 {
    font-size: var(--m-type-16);
    margin: calc(var(--m-space) * 4) 0 calc(var(--m-space) * 1);
}

.m-legal-flow p {
    margin: 0 0 calc(var(--m-space) * 3);
}

.m-legal-flow .m-legal-list {
    margin: 0 0 calc(var(--m-space) * 3);
    padding-left: calc(var(--m-space) * 5);
    max-width: 100%;
}

.m-legal-flow .m-legal-letters {
    list-style: none;
    padding-left: 0;
}

.m-legal-flow .m-legal-list li {
    margin: 0 0 calc(var(--m-space) * 1);
}

@media (max-width: 767.98px) {
    .m-legal-prose,
    .m-legal-flow {
        min-width: 0;
        overflow-x: clip;
    }

    body.m-role-panel .m-siyah-top {
        flex-wrap: nowrap;
        align-items: center;
        height: var(--meriva-header-height, 64px);
        min-height: 0;
        overflow: hidden;
    }

    body.m-role-panel .m-siyah-top > .d-flex {
        flex-wrap: nowrap;
        min-width: 0;
    }

    body.m-role-panel .m-siyah-top > .d-flex:first-child {
        flex: 1 1 auto;
    }

    body.m-role-panel .m-siyah-top > .d-flex:first-child > div {
        flex-wrap: nowrap;
        min-width: 0;
        overflow: hidden;
    }

    body.m-role-panel .m-siyah-top .m-siyah-title {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    body.m-role-panel .m-siyah-top .m-siyah-status,
    body.m-role-panel .m-siyah-top .m-siyah-queue {
        display: none;
    }

    body.m-role-panel .m-siyah-top > .d-flex:last-child {
        flex: 0 0 auto;
    }

    .v4-sec-nav,
    .m-segment {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .m-segment > :is(a, button, label) {
        flex: 0 0 auto;
    }

    

    a.m-inline-touch,
    .m-siyah-legal .m-legal-site-footer a {
        box-sizing: border-box;
        min-height: calc(var(--m-space) * 10);
        display: inline-flex;
        align-items: center;
    }
}

.m-empty-state :is(h2, h3),
.m-empty-title,
.mp-empty :is(h2, h3) {
    font-size: var(--m-type-28);
}

/* One segmented control. Selected is filled gold. The rest stay plain. */
.m-segment {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    max-width: 100%;
}

.m-segment > :is(a, button, label) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--m-control-height);
    padding: calc(var(--m-space) * 2) var(--m-control-pad-x);
    border-radius: var(--m-control-radius);
    border: 1px solid transparent;
    background: transparent;
    color: var(--m-text);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    white-space: nowrap;
}

.m-segment > :is(a, button, label):is(.is-on, .is-active, [aria-current="page"]) {
    background: var(--m-gold);
    color: var(--meriva-on-gold);
    border-color: var(--m-gold);
}

html[data-meriva-theme="white"] .m-segment > :is(a, button, label):is(.is-on, .is-active, [aria-current="page"]) {
    color: var(--mp-accent-ink);
}

@media (max-width: 767.98px) {
    .m-segment {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* meriva/tokens.css */
/* MERİVA tokens. Dark is the default. Light is the only other theme. */
:root,
html[data-meriva-theme="black"] {
    color-scheme: dark;
    --font-body: "Plus Jakarta Sans", system-ui, sans-serif;
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --color-bg: #0B0B0E;
    --color-surface: #16161C;
    --color-text: #F4F1EA;
    --color-muted: #C8C2B6;
    --color-line: rgba(244, 241, 234, 0.16);
    --color-gold: #D4AF37;
    --color-gold-ink: #0B0B0E;
    --color-danger: #E07A70;
    --color-danger-bg: #3A1614;
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.5rem;
    --space-6: 2rem;
    --radius-sm: 8px;
    --radius-md: 16px;
    --shadow-card: 0 18px 40px rgba(0, 0, 0, 0.35);
    --control: 44px;
}

html[data-meriva-theme="white"] {
    color-scheme: light;
    --color-bg: #F7F3EC;
    --color-surface: #FFFBF4;
    --color-text: #1A1814;
    --color-muted: #4E4940;
    --color-line: rgba(26, 24, 20, 0.16);
    --color-gold: #D4AF37;
    --color-gold-ink: #0B0B0E;
    --color-danger: #8E2218;
    --color-danger-bg: #F8E4E0;
    --shadow-card: 0 18px 40px rgba(26, 24, 20, 0.08);
}

/* meriva/components.css */
body.m-auth-page .m-app-sidebar,
body.m-auth-page .v4-pub-top,
body.m-auth-page .v4-pub-foot,
body.m-auth-page .m-sidebar-overlay {
    display: none !important;
}

body.m-auth-page .m-app-shell,
body.m-auth-page .m-app-container,
body.m-auth-page .m-app-main {
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    margin: 0;
    padding: 0;
    background: var(--color-bg);
}

.m-auth {
    box-sizing: border-box;
    min-height: 100dvh;
    display: flex;
    justify-content: safe center;
    align-items: safe center;
    padding: var(--space-5) var(--space-4);
}

body.m-auth-page .m-auth > .m-card {
    width: min(100%, 28rem);
    margin: 0;
    padding: var(--space-6);
    background-color: var(--color-surface) !important;
    color: var(--color-text);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.m-auth h1 {
    margin: 0 0 var(--space-2);
    font-size: 2rem;
    line-height: 1.1;
}

.m-auth p {
    margin: 0 0 var(--space-4);
}

.m-auth .m-field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
}

.m-auth .m-label {
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

.m-auth .m-input {
    box-sizing: border-box;
    width: 100%;
    min-height: var(--control);
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
}

.m-auth textarea.m-input {
    min-height: 7rem;
    padding-block: 0.75rem;
}

.m-auth select,
.m-auth .m-select {
    box-sizing: border-box;
    min-height: var(--control);
    font-family: var(--font-body);
    font-size: 1rem;
}

.m-auth .m-input:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.m-auth .m-error {
    margin: 0;
    color: var(--color-danger);
    font-size: 0.875rem;
}

.m-auth .m-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: var(--control);
    min-width: var(--control);
    padding: 0 1rem;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.m-auth .m-btn--sm { min-height: var(--control); padding-inline: 0.75rem; }
.m-auth .m-btn--lg { min-height: 3rem; width: 100%; }

.m-auth .m-btn--primary {
    background: var(--color-gold) !important;
    color: var(--color-gold-ink) !important;
    border-color: var(--color-gold) !important;
}

.m-auth .m-btn--secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-gold);
}

.m-auth .m-btn--text {
    background: transparent;
    color: var(--color-text);
    border-color: transparent;
}

.m-auth .m-btn--danger {
    background: var(--color-danger);
    color: #FFFBF4;
}

.m-auth .m-btn:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.m-auth .m-alert {
    margin: 0 0 var(--space-4);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    border: 1px solid var(--color-line);
}

.m-auth .m-alert--danger,
.m-auth .m-alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.m-auth .m-alert:empty,
.m-auth .validation-summary-valid {
    display: none !important;
}

.m-auth .m-badge {
    display: inline-flex;
    align-items: center;
    min-height: var(--control);
    padding: 0 0.75rem;
    border-radius: 999px;
    background: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-gold);
    font-size: 0.875rem;
}

.m-auth a {
    color: var(--color-text);
    min-height: var(--control);
    display: inline-flex;
    align-items: center;
}

.m-auth__note {
    margin: var(--space-3) 0 0;
    color: var(--color-muted);
    font-size: 0.875rem;
}

.m-password-wrap {
    position: relative;
    width: 100%;
}

.m-auth .m-password-wrap .m-input {
    padding-right: 3.25rem;
}

.m-auth .m-password-toggle {
    position: absolute;
    top: 0;
    right: 0;
    width: var(--control);
    height: var(--control);
    min-width: var(--control);
    min-height: var(--control);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    cursor: pointer;
}

.m-auth [data-m-register-steps] {
    display: flex;
    gap: var(--space-2);
    margin: 0 0 var(--space-4);
    padding: 0;
    list-style: none;
}

.m-auth [data-m-register-steps] li {
    flex: 1 1 0;
    min-height: var(--control);
    display: flex;
    align-items: center;
    color: var(--color-muted);
    border-bottom: 2px solid var(--color-line);
}

.m-auth [data-m-register-steps] li.is-on {
    color: var(--color-text);
    border-bottom-color: var(--color-gold);
}

.m-auth [data-m-register-pane][hidden] { display: none !important; }

.m-auth [data-m-register-nav],
.m-auth .m-auth__nav {
    display: flex;
    gap: var(--space-2);
    margin-top: var(--space-3);
}

.m-auth [data-m-register-reason] {
    color: var(--color-muted);
    font-size: 0.875rem;
}

.m-auth .v4-interest-chip,
.m-auth .v4-check,
.m-auth .m-checkline {
    min-height: var(--control);
}

.m-auth .v4-check input,
.m-auth .m-checkline input[type="checkbox"] {
    appearance: none;
    width: var(--control);
    height: var(--control);
    margin: 0;
    flex: 0 0 var(--control);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
}

.m-auth .v4-check input:checked,
.m-auth .m-checkline input[type="checkbox"]:checked {
    background: var(--color-gold);
}

.m-auth .v4-interest-chip {
    position: relative;
    box-sizing: border-box;
    min-height: 3rem;
}

.m-auth .v4-interest-chip input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
}

.m-auth .m-checkline {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    min-height: var(--control);
    margin: 0 0 var(--space-3);
}

.m-btn {
    box-sizing: border-box;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: var(--control);
    min-width: var(--control);
    max-width: 100%;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: normal;
    overflow-wrap: anywhere;
    cursor: pointer;
}

.m-btn--sm { min-height: var(--control); padding-inline: 0.75rem; }
.m-btn--lg { min-height: 3rem; }
.m-btn--icon { width: var(--control); height: var(--control); padding: 0; }

.m-btn--primary {
    background: var(--color-gold) !important;
    color: var(--color-gold-ink) !important;
    border-color: var(--color-gold) !important;
}

.m-btn--secondary {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-gold);
}

.m-btn--text {
    background: transparent;
    color: var(--color-text);
}

.m-btn--danger {
    background: var(--color-danger);
    color: #FFFBF4;
}

.m-card {
    min-width: 0;
    background: var(--color-surface);
    color: var(--color-text);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    overflow-wrap: anywhere;
}

.m-input,
.m-select,
.m-textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: var(--control);
    padding: 0.625rem 0.875rem;
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 1rem;
}

.m-input:focus,
.m-select:focus,
.m-textarea:focus {
    outline: 2px solid var(--color-gold);
    outline-offset: 2px;
}

.m-label { color: var(--color-text); font-weight: 600; }
.m-error { color: var(--color-danger); font-size: 0.875rem; }

.m-alert {
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--color-line);
    border-radius: var(--radius-sm);
    color: var(--color-text);
}

.m-alert--danger,
.m-alert-danger {
    background: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: var(--color-danger);
}

.m-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    min-height: 1.5rem;
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    border: 1px solid var(--color-gold);
    color: var(--color-text);
    background: transparent;
    font-size: 0.875rem;
}

.m-table-wrap {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
}

.m-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--color-text);
}

.m-table th,
.m-table td {
    padding: 0.75rem;
    border-bottom: 1px solid var(--color-line);
    text-align: left;
    vertical-align: middle;
    overflow-wrap: anywhere;
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar {
    background: #0B0B0E !important;
    color: #F4F1EA !important;
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar a,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-nav-item,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-nav-item.active,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-nav-item.is-active,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-white,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-warning,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-secondary {
    color: #F4F1EA !important;
    min-height: var(--control);
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-nav-group-heading {
    color: #C8C2B6 !important;
}

html[data-meriva-theme] .m-role-panel header a,
html[data-meriva-theme] .m-role-panel header button {
    min-width: var(--control);
    min-height: var(--control);
}

.m-role-panel .m-nav-item-icon {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main {
    background: var(--color-bg);
    color: var(--color-text);
}

html[data-meriva-theme="white"] .m-role-panel .text-white,
html[data-meriva-theme="white"] .m-role-panel .m-hero-card-dark,
html[data-meriva-theme="white"] .m-role-panel .m-hero-card-dark h2,
html[data-meriva-theme="white"] .m-role-panel .m-stat-card-dark,
html[data-meriva-theme="white"] .m-role-panel .m-stat-card-dark h6 {
    color: var(--color-text) !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-hero-card-dark,
html[data-meriva-theme="white"] .m-role-panel .m-stat-card-dark,
html[data-meriva-theme="white"] .m-role-panel .bg-black {
    background: var(--color-surface) !important;
    background-image: none !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main .text-secondary,
html[data-meriva-theme="white"] .m-role-panel .m-app-main .text-warning{
    color: #5C4818 !important;
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-sidebar-brand,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-sidebar-nav,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .bg-black,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .bg-dark {
    background: #0B0B0E !important;
    background-image: none !important;
    color: #F4F1EA !important;
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar a,
html[data-meriva-theme] .m-role-panel #meriva-sidebar button,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .m-nav-item,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-white,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-secondary,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .text-warning {
    color: #F4F1EA !important;
}

html[data-meriva-theme] .m-role-panel #meriva-sidebar button,
html[data-meriva-theme] .m-role-panel #meriva-sidebar .btn {
    min-width: 44px !important;
    min-height: 44px !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main a:not(.m-btn),
html[data-meriva-theme="white"] .m-role-panel .m-app-main h1,
html[data-meriva-theme="white"] .m-role-panel .m-app-main h2,
html[data-meriva-theme="white"] .m-role-panel .m-app-main h3,
html[data-meriva-theme="white"] .m-role-panel .m-app-main p,
html[data-meriva-theme="white"] .m-role-panel .m-app-main td,
html[data-meriva-theme="white"] .m-role-panel .m-app-main th,
html[data-meriva-theme="white"] .m-role-panel .m-app-main label,
html[data-meriva-theme="white"] .m-role-panel .m-siyah-legal a {
    color: #1A1814 !important;
}

html[data-meriva-theme="white"] .m-role-panel #meriva-sidebar,
html[data-meriva-theme="white"] .m-role-panel #meriva-sidebar * {
    color: #F4F1EA !important;
    background-color: #0B0B0E !important;
    background-image: none !important;
    border-color: transparent !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main,
html[data-meriva-theme="white"] .m-role-panel .m-app-main *:not(.m-btn):not(.m-badge) {
    background-color: transparent !important;
    background-image: none !important;
    color: #1A1814 !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main {
    background-color: #F7F3EC !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-app-main :is(input, select, textarea, .m-input, .m-select, .m-textarea) {
    background-color: #FFFBF4 !important;
    color: #1A1814 !important;
    border-color: rgba(26, 24, 20, 0.24) !important;
}

html[data-meriva-theme="white"] .m-role-panel .m-segment > :is(a, button, label):is(.is-on, .is-active, [aria-current="page"]) {
    background-color: #D4AF37 !important;
    color: #0B0B0E !important;
    border-color: #D4AF37 !important;
}

/* meriva-home-explore.css */
/**
 * MERİVA V1.1 — Home + Explore premium surfaces
 * Tokens come from meriva-design-system.css. No global overflow:hidden.
 */

.m-home{
    display: flex;
    flex-direction: column;
    gap: var(--meriva-space-8);
    color: var(--meriva-dark-text);
    min-width: 0;
    max-width: 100%;
}



.m-home-kicker {
    display: inline-flex;
    align-items: center;
    gap: var(--meriva-space-2);
    min-height: 32px;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--meriva-radius-pill);
    border: 1px solid rgba(234, 179, 8, 0.35);
    background: rgba(234, 179, 8, 0.1);
    color: var(--meriva-gold);
    font-size: var(--meriva-font-size-caption);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.m-home-title{
    margin: var(--meriva-space-2) 0 var(--meriva-space-2);
    color: var(--m-text);
    font-size: var(--meriva-font-size-h1);
    font-weight: var(--m-weight);
    line-height: var(--meriva-leading-tight);
    overflow-wrap: break-word;
}

.m-home-lead {
    margin: 0;
    max-width: 42rem;
    color: var(--meriva-dark-text-muted);
    font-size: var(--meriva-font-size-body);
    line-height: var(--meriva-leading-body);
}





.m-home-hero {
    position: relative;
    isolation: isolate;
    padding: clamp(calc(var(--m-space) * 5), 3vw, calc(var(--m-space) * 11));
    border-radius: var(--meriva-radius-large);
    border: 1px solid rgba(234, 179, 8, 0.22);
    background:
        radial-gradient(720px 280px at 80% -10%, rgba(234, 179, 8, 0.12), transparent 62%),
        linear-gradient(160deg, #111114 0%, #0A0A0E 58%, #120e08 100%);
    box-shadow: var(--meriva-shadow-navy);
    overflow: hidden;
}

.m-home-hero::after {
    content: "";
    position: absolute;
    right: -6%;
    bottom: -18%;
    width: min(280px, 42vw);
    height: min(180px, 28vw);
    background: url("/images/badger-mark.svg?v=2") center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}





.m-home-hero h1 {
    margin: 0 0 var(--meriva-space-4);
    color: var(--m-text);
    font-size: var(--meriva-font-size-display);
    font-weight: var(--m-weight);
    line-height: 1.12;
    letter-spacing: -0.04em;
}

.m-home-hero h1 span {
    color: var(--meriva-gold);
}

.m-home-hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--meriva-space-3);
    margin: var(--meriva-space-5) 0 var(--meriva-space-5);
}























.m-home-card{
    display: flex;
    flex-direction: column;
    min-width: 0;
    height: 100%;
    border-radius: var(--meriva-radius-large);
    border: 1px solid rgba(234, 179, 8, 0.16);
    background: var(--m-surface-elevated);
    text-decoration: none;
    color: inherit;
    transition: border-color var(--meriva-transition-fast), box-shadow var(--meriva-transition-fast);
}



.m-home-card:hover,
.m-home-card:focus-visible{
    border-color: rgba(234, 179, 8, 0.45);
    box-shadow: var(--meriva-shadow-gold);
    color: inherit;
}



.m-home-card h3{
    margin: 0;
    color: var(--m-text);
    font-size: var(--meriva-font-size-h3);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
}

.m-home-card p{
    margin: 0;
    color: var(--meriva-dark-text-muted);
    font-size: var(--meriva-font-size-body-sm);
}



.m-media-frame {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #0A0A0E, #141418);
    overflow: hidden;
}

.m-media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}







.m-home-card-body {
    display: flex;
    flex-direction: column;
    gap: var(--meriva-space-2);
    padding: var(--meriva-space-4);
    flex: 1;
    min-width: 0;
}





.m-line-2{
    overflow-wrap: break-word;
    word-break: normal;
}

.m-home-empty {
    position: relative;
    text-align: center;
    padding: var(--meriva-space-8) var(--meriva-space-4);
    border-radius: var(--meriva-radius-large);
    border: 1px dashed rgba(234, 179, 8, 0.28);
    background: rgba(8, 13, 26, 0.7);
}

.m-home-empty::before {
    content: "";
    display: block;
    width: 72px;
    height: 48px;
    margin: 0 auto var(--meriva-space-3);
    opacity: 0.35;
    background: url("/images/badger-mark.svg?v=2") center / contain no-repeat;
}

.m-home-empty h3 {
    color: var(--m-text);
    font-size: var(--m-type-28);
}

.m-home-empty p {
    margin: 0 auto var(--meriva-space-4);
    max-width: 28rem;
    color: var(--meriva-dark-text-muted);
}

.m-home-empty:has(> img)::before {
    display: none;
}

.m-home-empty > img {
    width: 48px;
    height: 48px;
    opacity: 0.4;
    margin: 0 auto calc(var(--m-space) * 3);
    display: block;
}

































@media (max-width: 767.98px) {
    .m-home-hero-cta{
        flex-direction: column;
        align-items: stretch;
    }

    .m-home-hero::after {
        width: 120px;
        height: 80px;
        opacity: 0.05;
    }

    
}

@media (prefers-reduced-motion: reduce) {
    .m-home-card{
        transition: none;
        animation: none;
    }
}

/* Aşama 4 — City discovery + map chrome. Tokens unchanged. */

.m-city-hero {
    padding: clamp(calc(var(--m-space) * 4), 2.2vw, calc(var(--m-space) * 7));
}

.m-city-hero::after {
    width: min(120px, 28vw);
    height: min(80px, 18vw);
    opacity: 0.05;
}

.m-city-hero h1 {
    margin-bottom: var(--meriva-space-2);
    font-size: var(--m-type-40);
}

.m-city-hero .m-home-lead {
    max-width: 38rem;
}































































.m-city-map-frame {
    position: relative;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--meriva-radius-large);
    border: 1px solid rgba(234, 179, 8, 0.32);
    background: #071225;
    box-shadow: var(--meriva-shadow-navy);
    overflow: hidden;
}



.m-city-map-frame .leaflet-container {
    width: 100%;
    max-width: 100%;
    background: #d9e3d6;
}













@media (max-width: 767.98px) {
    

    

    .m-city-hero {
        padding: calc(var(--m-space) * 4);
    }

    

    
}



/* —— Explore hub + city editorial (V2 UX) —— */






























/* —— Explore hub premium redesign (scoped) —— */




































































































































/* —— City page premium redesign (scoped) —— */









































































































































/* meriva-explore.css */
/**
 * MERİVA Explore Premium V2
 * Hub + city editorial polish. Tokens from meriva-tokens.css.
 * Does not change map geometry, routes, or backend.
 */





/* —— Compact page hero (not Home clone) —— */
















/* —— Turkey map stage —— */






























/* —— Active city panel —— */












/* —— Guide: 3 compact steps, not a card wall —— */




























/* —— City editorial page —— */
































































body.m-ui-v4 .v4-explore,
body.m-ui-v4 .v4-city{
    max-width: none;
    width: 100%;
    min-width: 0;
}

body.m-ui-v4 .v4-content,
body.m-ui-v4 .v4-content-feed,
body.m-ui-v4 .v4-post {
    width: 100%;
    max-width: min(56rem, 100%);
    min-width: 0;
}

body.m-ui-v4 .v4-content-feed,
body.m-ui-v4 .v4-post {
    max-width: none;
}



/* meriva-content.css */
/**
 * MERIVA Honey Crest vote + editorial content feed/details.
 * Graphite / night / restrained gold. Editorial, not marketplace.
 * Layout viewports: 375 390 412 768 1024 1280 1440 1920 — min-width:0, wrap, no overflow clip hiding.
 */

.mx-content{
    --mx-panel: #121218;
    --mx-line: rgba(212, 175, 55, 0.18);
    --mx-cream: #f7f3ec;
    --mx-muted: rgba(247, 243, 236, 0.72);
    min-width: 0;
    max-width: 100%;
}

.mx-content {
    display: flex;
    flex-direction: column;
    gap: clamp(calc(var(--m-space) * 3), 1.6vw, calc(var(--m-space) * 5));
    overflow-wrap: break-word;
    color: var(--mx-cream);
    width: min(42rem, 100%);
    margin-inline: auto;
    padding-inline: max(calc(var(--m-space) * 3), env(safe-area-inset-left, 0)) max(calc(var(--m-space) * 3), env(safe-area-inset-right, 0));
    box-sizing: border-box;
}

.mx-content h1,
.mx-content h2,
.mx-content h3 {
    color: var(--mx-cream);
    overflow-wrap: break-word;
    word-break: normal;
}

.mx-content a:focus-visible,
.mx-content button:focus-visible,
.mx-content input:focus-visible,
.mx-content select:focus-visible,
.mx-content textarea:focus-visible {
    outline: 2px solid var(--m-gold, #d4af37);
    outline-offset: 2px;
}

































.m-content-feed{
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    max-width: 100%;
}

.mx-content-card{
    display: flex;
    flex-direction: column;
    gap: 0;
    min-width: 0;
    max-width: 100%;
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(247, 243, 236, 0.08);
    background: var(--mx-panel);
}





























































.m-content-action {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    min-height: 44px;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border: 0;
    border-radius: var(--m-radius-pill);
    background: transparent;
    color: var(--mx-muted);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    text-decoration: none;
    white-space: normal;
    overflow-wrap: break-word;
    max-width: 100%;
}

.m-content-action:hover,
.m-content-action:focus-visible {
    color: var(--m-gold-hover, #e4c86a);
}

button.m-content-action {
    cursor: pointer;
}



.m-crest-vote {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 2.75rem;
    flex: 0 0 auto;
}

.m-content-talking {
    color: var(--m-gold-hover, #e4c86a);
}

.m-cref {
    min-width: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: var(--m-surface-elevated, var(--mx-panel));
}

.m-cref-kicker {
    margin: 0 0 calc(var(--m-space) * 1);
    color: var(--m-gold);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
}

.m-cref-title {
    margin: 0 0 calc(var(--m-space) * 3);
    color: var(--m-text);
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
}



.m-crest-btn {
    display: inline-grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 0;
    border-radius: var(--m-radius-8);
    background: transparent;
    color: var(--m-text-muted, var(--mx-muted));
    cursor: pointer;
    transition: color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.m-crest-btn:hover:not(:disabled),
.m-crest-btn:focus-visible {
    color: var(--m-gold-hover, #e4c86a);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.16);
}

.m-crest-up:hover:not(:disabled) .m-crest-icon,
.m-crest-up:focus-visible .m-crest-icon {
    transform: translateY(-1px);
}

.m-crest-down:hover:not(:disabled) .m-crest-icon,
.m-crest-down:focus-visible .m-crest-icon {
    transform: translateY(1px);
}

.m-crest-btn:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.m-crest-btn.is-on.m-crest-up {
    color: var(--m-gold, #d4af37);
}

.m-crest-btn.is-on.m-crest-down {
    color: var(--mx-cream);
    opacity: 0.92;
}

.m-crest-icon {
    width: 1.2rem;
    height: 1.2rem;
    fill: currentColor;
    transition: transform 140ms ease;
}



.m-crest-score {
    min-width: 1.6rem;
    color: var(--mx-cream);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    letter-spacing: 0.02em;
    text-align: center;
}







































.mx-content-report {
    border-top: 1px dashed rgba(212, 175, 55, 0.16);
}









.m-media-picker {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-media-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .m-media-desktop {
        display: none;
    }

    .m-media-mobile {
        display: flex;
    }
}

@media (max-width: 767.98px) {
    

    

    

    

    .m-crest-vote,
    .m-content-action {
        flex: 0 1 auto;
        justify-content: flex-start;
    }

    

    

    

    

    
}

@media (prefers-reduced-motion: reduce) {
    .m-crest-btn,
.m-crest-icon{
        transition: none;
    }

    

    .m-crest-up:hover:not(:disabled) .m-crest-icon,
    .m-crest-up:focus-visible .m-crest-icon,
    .m-crest-down:hover:not(:disabled) .m-crest-icon,
    .m-crest-down:focus-visible .m-crest-icon {
        transform: none;
    }
}





.m-feed-chips,
.mx-content-prefs {
    display: flex;
    flex-wrap: nowrap;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    margin-bottom: calc(var(--m-space) * 2);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scrollbar-width: none;
    padding-bottom: calc(var(--m-space) * 1);
}

.m-feed-chips::-webkit-scrollbar,
.mx-content-prefs::-webkit-scrollbar {
    display: none;
}









.m-feed-sentinel {
    height: 1px;
}













@media (max-width: 35.98rem) {
    .m-media-picker > a,
    .m-media-picker > button {
        flex: 1 1 100%;
    }

    .m-create-actions{
        align-items: stretch;
    }

    .m-create-actions > a,
.m-create-actions > button{
        flex: 1 1 auto;
        min-width: 0;
    }
}

.m-create-preview{
    min-width: 0;
    max-width: 100%;
    margin: calc(var(--m-space) * 3) 0 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--m-radius-8);
    border: 1px solid var(--m-border, rgba(212, 175, 55, 0.16));
    background: var(--m-surface-soft, #16161c);
    color: var(--m-text, var(--mx-cream));
}

.m-create-preview img,
.m-create-preview video {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 16rem;
    height: auto;
    object-fit: contain;
    border-radius: var(--m-radius-8);
}



.m-create-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    justify-content: space-between;
    align-items: center;
    min-width: 0;
}





.mx-feed-skeleton {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
    width: min(100%, 22rem);
    margin: 0 auto;
}

.mx-feed-skeleton span {
    display: block;
    height: 0.55rem;
    border-radius: var(--m-radius-8);
    background: rgba(247, 243, 236, 0.08);
}

.mx-feed-skeleton span:nth-child(1) { width: 72%; }
.mx-feed-skeleton span:nth-child(2) { width: 100%; }
.mx-feed-skeleton span:nth-child(3) { width: 54%; }



















@media (min-width: 768px) {
    .m-create-camera {
        display: none;
    }
}

@media (max-width: 374.98px) {
    .mx-content-card {
        border-radius: var(--m-radius-8);
    }

    
}

body.m-ui-v4 .v4-react.m-crest-vote,
body.m-ui-v4 .v4-react.m-crest-vote-stack,
body.m-ui-v4 .v4-react.m-crest-vote-row {
    flex-direction: row;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
    background: transparent;
}

body.m-ui-v4 .v4-react .m-crest-btn {
    display: inline-flex;
    width: 2.15rem;
    height: 2.15rem;
    border-radius: var(--m-radius-pill);
    color: var(--meriva-v4-text-muted);
    box-shadow: none;
}

body.m-ui-v4 .v4-react .m-crest-score {
    color: var(--meriva-v4-text);
}

body.m-ui-v4 .v4-react .m-crest-btn.is-on.m-crest-up {
    color: #c45c4a;
}

body.m-ui-v4 .v4-react .m-crest-btn.is-on.m-crest-down {
    color: #8a7464;
    opacity: 1;
}

body.m-ui-v4 .v4-content .mx-content,
body.m-ui-v4 .v4-content {
    width: 100%;
    max-width: min(56rem, 100%);
}

/* meriva-ui-refinements.css */
/* Scoped to content and chat. Home, navigation and brand tokens remain unchanged. */
body.m-ui-v4 .v4-content .v4-content-filters {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
    align-items: center;
    gap: calc(var(--m-space) * 3);
    margin-bottom: calc(var(--m-space) * 6);
    padding: calc(var(--m-space) * 4);
    border: 1px solid var(--m-border);
    border-radius: var(--m-radius-16);
    background: var(--m-surface-elevated);
}
body.m-ui-v4 .v4-content .v4-content-filters :is(.m-input, .m-select) {
    flex: none;
    width: 100%;
    height: var(--m-control-height, 44px);
    min-height: var(--m-control-height, 44px);
    max-height: var(--m-control-height, 44px);
}
body.m-ui-v4 .v4-content .v4-content-filters .m-btn { min-height: var(--m-control-height, 44px); }
body.m-ui-v4 .v4-content.v4-composer { max-width: min(800px, 100%); }
body.m-ui-v4 .v4-content .v4-composer-card { padding: clamp(calc(var(--m-space) * 5), 3vw, calc(var(--m-space) * 9)); border-radius: var(--m-radius-16); }
body.m-ui-v4 .v4-content :is(.m-input, .m-select) { min-height: 48px; }
body.m-ui-v4 .v4-content .m-textarea { font-size: var(--m-type-16); line-height: 1.65; }
body.m-ui-v4 .v4-content [data-video-options][hidden],
body.m-ui-v4 .v4-content [data-media-open][hidden] { display: none !important; }
body.m-ui-v4 .v4-content #media-preview :is(img, video) { width: 100%; max-height: 400px; object-fit: contain; }
body.m-ui-v4 :is(.v4-content, .v4-chat) :is(a, button, input, select, textarea, summary):focus-visible {
    outline: 2px solid var(--m-gold);
    outline-offset: 3px;
}
body.m-ui-v4 .v4-chat .m-chat-main { position: relative; }
body.m-ui-v4 .v4-chat .m-chat-feed { gap: calc(var(--m-space) * 3); align-items: stretch; justify-content: flex-start; padding: calc(var(--m-space) * 5); }
body.m-ui-v4 .v4-chat .m-chat-row { flex: 0 0 auto; min-height: 0; padding: calc(var(--m-space) * 1); }
body.m-ui-v4 .v4-chat .m-chat-bubble,
body.m-ui-v4 .v4-chat .m-chat-bubble:not(.is-mine) {
    background: var(--m-surface-elevated, #171d25) !important;
    border: 1px solid var(--m-border) !important;
    border-radius: 0 var(--m-radius-16) var(--m-radius-16) var(--m-radius-16)!important;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    width: fit-content;
    max-width: 100%;
    overflow: visible;
}
body.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-bubble,
body.m-ui-v4 .v4-chat .m-chat-bubble.is-mine {
    background: linear-gradient(145deg, #d8b84a 0%, #c4a035 55%, #b08d2c 100%) !important;
    border-radius: var(--m-radius-16) 0 var(--m-radius-16) var(--m-radius-16) !important;
    color: #14100a !important;
    overflow: visible;
}
body.m-ui-v4 .v4-chat .m-chat-row.is-mine .m-chat-bubble-text { color: #14100a !important; }
body.m-ui-v4 .v4-chat .m-chat-bubble-text { font-size: var(--m-type-16); line-height: 1.7; overflow-wrap: anywhere; word-break: break-word; }
body.m-ui-v4 .v4-chat .m-chat-header { padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5); gap: calc(var(--m-space) * 3); }
body.m-ui-v4 .v4-chat .m-chat-header-title { font-size: var(--m-type-20); }
body.m-ui-v4 .v4-chat .m-chat-pin { flex: 0 0 auto; margin: calc(var(--m-space) * 2) calc(var(--m-space) * 4); border-radius: var(--m-radius-8); padding: 0 calc(var(--m-space) * 3); }
body.m-ui-v4 .v4-chat .m-chat-pin summary { min-height: 44px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; font-size: var(--m-type-12); }
body.m-ui-v4 .v4-chat .m-chat-pin[open] .m-chat-pin-text { display: block; -webkit-line-clamp: unset; padding: 0 0 calc(var(--m-space) * 4); max-height: 160px; overflow-y: auto; }
body.m-ui-v4 .v4-chat .m-chat-aside-toggle { min-width: 44px; }
body.m-ui-v4 .v4-chat .m-chat-aside-toggle .v4-icon { display: inline-block !important; width: 20px; height: 20px; }
body.m-ui-v4 .v4-chat .m-chat-composer-row { flex-wrap: nowrap; align-items: flex-end; }
body.m-ui-v4 .v4-chat .m-chat-composer textarea { font-size: var(--m-type-16); line-height: 1.5; padding: calc(var(--m-space) * 3); }
body.m-ui-v4 .v4-chat :is(.m-chat-reply-btn, .m-chat-mod-btn) { min-width: 44px; }
.m-chat-new-messages { position: absolute; bottom: 156px; left: 50%; transform: translateX(-50%); z-index: 12; border-radius: var(--m-radius-pill); max-width: calc(100% - 24px); }
.m-chat-new-messages[hidden] { display: none !important; }
@media (max-width: 767.98px) {
    body.m-ui-v4 .v4-content .v4-content-filters { padding: calc(var(--m-space) * 3); grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body.m-ui-v4 .v4-content .v4-content-filters input[type=search] { grid-column: 1 / -1; }
    body.m-ui-v4 .v4-chat .m-chat-header-sub {
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        overflow: hidden;
        white-space: normal;
    }
    body.m-ui-v4 .v4-chat .m-chat-header { padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3); }
    body.m-ui-v4 .v4-chat .m-chat-header-title { font-size: var(--m-type-16); }
    body.m-ui-v4 .v4-chat .m-chat-feed { padding: calc(var(--m-space) * 3); gap: calc(var(--m-space) * 3); }
    body.m-ui-v4 .v4-chat .m-chat-bubble { padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4); overflow: visible; }
    body.m-ui-v4 .v4-chat .m-chat-pin { margin: calc(var(--m-space) * 1) calc(var(--m-space) * 3); }
}
@media (max-width: 359px) {
    body.m-ui-v4 .v4-content .v4-content-filters { grid-template-columns: minmax(0, 1fr); }
}

/* meriva-community.css */
/**
 * MERİVA — Chat shell (rooms, feed, composer).
 * Tokens from meriva-design-system.css. No new color system.
 */

.mx-chat-page {
    min-width: 0;
    max-width: 100%;
}

.mx-chat-page .m-chat a:focus-visible,
.mx-chat-page .m-chat button:focus-visible,
.mx-chat-page .m-chat textarea:focus-visible,
.mx-chat-page .m-chat input:focus-visible,
.mx-chat-page .m-chat summary:focus-visible {
    outline: 2px solid var(--m-gold, #d4af37);
    outline-offset: 2px;
}

.m-chat {
    --m-chat-h: calc(100dvh - 5.5rem);
    --mx-chat-line: rgba(212, 175, 55, 0.16);
    --mx-chat-panel: #121218;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    min-width: 0;
    max-width: 100%;
    width: 100%;
    height: var(--m-chat-h);
    min-height: 22rem;
    max-height: var(--m-chat-h);
    border: 0;
    border-radius: 0;
    background: #0a0a0e;
    overflow: hidden;
    position: relative;
}

.m-chat-drawer-overlay {
    display: none;
    position: absolute;
    inset: 0;
    z-index: 20;
    border: 0;
    padding: 0;
    background: rgba(4, 7, 17, 0.62);
    cursor: pointer;
}

.m-chat-sidebar {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #0d0d12;
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.m-chat-sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--meriva-space-2);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.m-chat-sidebar-title {
    margin: 0;
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mx-chat-rail-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 4) 0;
}

.mx-chat-rail-links a,
.mx-chat-new-room {
    min-height: 44px;
    font-size: var(--m-type-14);
}

.mx-chat-rail-links a {
    display: inline-flex;
    align-items: center;
    color: var(--m-gold, #d4af37);
    text-decoration: none;
    font-weight: var(--m-weight);
}

.m-chat-drawer-close {
    display: none;
    min-width: 44px;
    min-height: 44px;
}

.m-chat-search {
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    flex-shrink: 0;
}

.m-chat-search .m-input,
.m-chat-search input {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    background: var(--mx-chat-panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--m-text);
    border-radius: var(--m-radius-pill);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 4);
    font-size: var(--m-type-14);
}

.m-chat-search .m-input:focus,
.m-chat-search input:focus {
    outline: 2px solid rgba(212, 175, 55, 0.45);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.4);
}

.m-chat-room-list {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    scrollbar-width: thin;
}

.m-chat-room-list::-webkit-scrollbar,
.m-chat-feed::-webkit-scrollbar{
    width: 8px;
}

.m-chat-room-list::-webkit-scrollbar-thumb,
.m-chat-feed::-webkit-scrollbar-thumb{
    background: rgba(212, 175, 55, 0.22);
    border-radius: var(--m-radius-pill);
}

.m-chat-section-label {
    margin: calc(var(--m-space) * 3) calc(var(--m-space) * 2) calc(var(--m-space) * 1);
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.m-chat-room {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    border-radius: var(--m-radius-8);
    border: 1px solid transparent;
    background: transparent;
    color: inherit;
    text-decoration: none;
}

.m-chat-room:hover,
.m-chat-room:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
    color: var(--m-text);
}

.m-chat-room.is-active {
    background: rgba(212, 175, 55, 0.1);
    border-color: rgba(212, 175, 55, 0.38);
    box-shadow: inset 2px 0 0 var(--m-gold, #d4af37);
}

.m-chat-room-ico {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    border-radius: var(--m-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(212, 175, 55, 0.12);
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-chat-room-body {
    min-width: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.m-chat-room-top {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-chat-room-name {
    display: block;
    min-width: 0;
    color: var(--m-text);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-chat-room-end {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-chat-room-time {
    flex: 0 0 auto;
    color: #C8C2B6;
    font-size: var(--m-type-12);
    white-space: nowrap;
}

.m-chat-room-meta {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    color: #C8C2B6;
    font-size: var(--m-type-12);
}

.m-chat-room-preview {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-chat-unread {
    flex: 0 0 auto;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.35rem;
    border-radius: var(--m-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--m-gold, #d4af37);
    color: #14100a;
    font-size: 0.6875rem;
    font-weight: var(--m-weight);
    line-height: 1;
    visibility: visible;
}

.m-chat-back {
    display: none;
}

.m-chat-back .v4-icon {
    transform: scaleX(-1);
}

.m-chat-header-members {
    display: none;
}

.m-chat-header-desk-meta {
    display: inline;
}



.m-chat-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 1);
    border-radius: var(--m-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.03em;
    text-transform: uppercase;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.m-chat-chip.is-closed {
    border-color: rgba(244, 63, 94, 0.35);
    color: #fda4af;
}

.m-chat-muted {
    margin: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    color: var(--m-text-muted, #C8C4BC);
    font-size: var(--m-type-12);
}

.m-chat-main {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #0a0a0e;
}

.m-chat-aside {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    background: #0d0d12;
    border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.m-chat-aside-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--meriva-space-2);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.m-chat-aside-body {
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    overflow: auto;
    min-height: 0;
    min-width: 0;
    scrollbar-width: thin;
}

.m-chat-aside-name {
    margin: 0;
    color: #f7f3ec;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-aside-meta,
.m-chat-aside-copy {
    margin: calc(var(--m-space) * 1) 0 0;
    color: #C8C2B6;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-member-list {
    list-style: none;
    margin: calc(var(--m-space) * 1) 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
}

.m-chat-member-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    max-width: 100%;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 1);
}

.m-chat-member-name {
    min-width: 0;
    flex: 1 1 auto;
    color: #f7f3ec;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-member-row.is-banned {
    opacity: 0.72;
}

.m-chat-member-mod {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    margin-top: calc(var(--m-space) * 1);
    min-width: 0;
}

.m-chat-member-mod-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    margin: 0;
    min-width: 0;
}

.m-chat-member-mod-select {
    appearance: none;
    min-height: var(--control, 44px);
    max-width: 100%;
    padding: 0 calc(var(--m-space) * 2);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #0b0b0b;
    color: #f7f3ec;
    font-size: var(--m-type-12);
}

.m-chat-room-mod-form {
    margin: calc(var(--m-space) * 1) 0 0;
}

.m-chat-load-older {
    appearance: none;
    align-self: center;
    margin: calc(var(--m-space) * 1) auto calc(var(--m-space) * 2);
    min-height: 44px;
    max-width: 100%;
    padding: 0 calc(var(--m-space) * 4);
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: #0b0b0b;
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    cursor: pointer;
}

.m-chat-load-older:disabled {
    opacity: 0.55;
    cursor: wait;
}

.m-chat-slow-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    margin-top: calc(var(--m-space) * 2);
}

.m-chat-report-dialog {
    width: min(26rem, calc(100vw - 1.5rem));
    max-width: 100%;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 5) calc(var(--m-space) * 4);
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: #0b0b0b;
    color: #f7f3ec;
}

.m-chat-report-dialog::backdrop {
    background: rgba(0, 0, 0, 0.72);
}

.m-chat-report-dialog h2 {
    margin: 0 0 calc(var(--m-space) * 3);
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-16);
}

.m-chat-report-reasons {
    margin: 0 0 calc(var(--m-space) * 3);
    padding: 0;
    border: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
}

.m-chat-report-reasons legend {
    margin-bottom: calc(var(--m-space) * 1);
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-chat-report-option {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-height: 44px;
    color: #f7f3ec;
    font-size: var(--m-type-14);
}

.m-chat-report-details {
    display: block;
    margin-bottom: calc(var(--m-space) * 1);
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-chat-report-dialog textarea {
    width: 100%;
    min-height: 5.5rem;
    margin-bottom: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border: 1px solid rgba(212, 175, 55, 0.28);
    background: #111;
    color: #f7f3ec;
    resize: vertical;
}

.m-chat-report-actions {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
}

.m-chat-aside-toggle {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    min-height: 44px;
}

.m-chat-context {
    display: none;
    flex-direction: column;
    position: absolute;
    inset: 0 0 0 auto;
    width: min(18.75rem, 90vw);
    max-width: 100%;
    min-height: 0;
    z-index: 30;
    background: #0d0d12;
    border-left: 1px solid var(--mx-chat-line);
    transform: translateX(105%);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.2s ease, visibility 0.2s ease;
}

.m-chat.has-context .m-chat-context {
    display: flex;
}

.m-chat.is-context-open .m-chat-context {
    transform: none;
    visibility: visible;
    pointer-events: auto;
    box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
}







.m-chat-anchor {
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 3);
}

.m-chat-anchor-note {
    margin: calc(var(--m-space) * 2) 0 0;
    color: #C8C2B6;
    font-size: var(--m-type-14);
}



.m-chat-header {
    display: flex;
    align-items: flex-start;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: #0c0c10;
    flex-shrink: 0;
    position: sticky;
    top: 0;
    z-index: 4;
    min-width: 0;
}

.m-chat-rooms-toggle {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    flex-shrink: 0;
    min-height: 44px;
    min-width: 44px;
}

.mx-chat-rooms-toggle-label {
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
}

.mx-chat-kicker {
    margin: 0;
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mx-chat-shell--direct .mx-chat-kicker {
    letter-spacing: 0.1em;
}

.m-chat-header-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.m-chat-header-title {
    margin: calc(var(--m-space) * 1) 0 0;
    color: #f7f3ec;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    letter-spacing: -0.02em;
    text-transform: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-header-sub {
    margin: calc(var(--m-space) * 1) 0 0;
    color: #C8C2B6;
    font-size: var(--m-type-12);
    overflow-wrap: break-word;
    word-break: normal;
}



.m-chat-header-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: calc(var(--m-space) * 1);
    flex-shrink: 1;
    min-width: 0;
    max-width: 100%;
}





.mx-chat-closed {
    margin: calc(var(--m-space) * 2) calc(var(--m-space) * 4) 0;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(244, 63, 94, 0.28);
    background: rgba(244, 63, 94, 0.08);
}

.mx-chat-closed-kicker {
    display: block;
    color: #fda4af;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mx-chat-closed p,
.mx-chat-composer-disabled {
    margin: calc(var(--m-space) * 1) 0 0;
    color: #C8C2B6;
    font-size: var(--m-type-14);
}

.mx-chat-composer-disabled {
    margin: 0;
}

.m-chat-pin {
    margin: calc(var(--m-space) * 2) calc(var(--m-space) * 4) 0;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(212, 175, 55, 0.22);
    background: rgba(212, 175, 55, 0.06);
    min-width: 0;
}

.m-chat-pin-label {
    display: block;
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: calc(var(--m-space) * 1);
}

.m-chat-pin-text {
    margin: 0;
    color: #f7f3ec;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.m-chat-feed {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4) calc(var(--m-space) * 2);
    scrollbar-width: thin;
    overscroll-behavior: contain;
}

.m-chat-empty {
    margin: auto;
    text-align: center;
    padding: calc(var(--m-space) * 6) calc(var(--m-space) * 3);
    max-width: 22rem;
    color: #C8C2B6;
}

.m-chat-empty img {
    width: 44px;
    height: 44px;
    margin: 0 auto calc(var(--m-space) * 3);
    opacity: 0.45;
    display: block;
}

.m-chat-empty p {
    margin: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-empty p + p {
    margin-top: calc(var(--m-space) * 2);
    color: #C8C2B6;
}

.mx-chat-empty-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: calc(var(--m-space) * 2);
    margin-top: calc(var(--m-space) * 3);
}

.m-chat-day-sep {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    width: 100%;
    margin: calc(var(--m-space) * 2) 0;
    pointer-events: none;
}

.m-chat-day-sep span {
    display: inline-block;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    background: color-mix(in srgb, var(--m-surface-elevated, #171d25) 88%, transparent);
    border: 1px solid var(--m-border, rgba(255, 255, 255, 0.08));
    color: var(--m-text-muted, #C8C4BC);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.02em;
}

.m-chat-row {
    display: flex;
    align-items: flex-end;
    gap: calc(var(--m-space) * 2);
    width: fit-content;
    max-width: 78% !important;
    min-width: 0;
    padding: calc(var(--m-space) * 1) 0;
    position: relative;
    box-sizing: border-box;
}

.m-chat-row.is-theirs {
    flex-direction: row;
    align-self: flex-start;
    margin-right: auto;
}

.m-chat-row.is-mine {
    flex-direction: row-reverse;
    align-self: flex-end;
    margin-left: auto;
}

.m-chat-row.is-mine .m-chat-avatar {
    display: none;
}

.m-chat-row.is-continued {
    padding-top: 0;
}

.m-chat-avatar {
    flex: 0 0 1.75rem;
    width: 1.75rem;
    height: 1.75rem;
    overflow: hidden;
    border-radius: var(--m-radius-pill);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #16161c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-chat-avatar.is-spacer {
    visibility: hidden;
}

.m-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mp-chat-emblem img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
}

.m-chat-bubble {
    position: relative;
    max-width: 100%;
    min-width: 0;
    width: fit-content;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3) calc(var(--m-space) * 2);
    border-radius: 0 var(--m-radius-16) var(--m-radius-16) var(--m-radius-16);
    background: var(--m-surface-elevated, #171d25) !important;
    border: 1px solid var(--m-border, rgba(255, 255, 255, 0.08)) !important;
    color: #f7f3ec !important;
    box-shadow: 0 8px 24px -18px #000 !important;
}

.m-chat-row.is-mine .m-chat-bubble,
.m-chat-bubble.is-mine {
    background: linear-gradient(145deg, #d8b84a 0%, #c4a035 55%, #b08d2c 100%) !important;
    border-color: #e6cd72 !important;
    border-radius: var(--m-radius-16) 0 var(--m-radius-16) var(--m-radius-16) !important;
    color: #14100a !important;
    box-shadow: 0 8px 22px -16px rgba(176, 141, 44, 0.55) !important;
}

.m-chat-row.is-mine .m-chat-bubble-text,
.m-chat-bubble.is-mine .m-chat-bubble-text {
    color: #14100a;
}

.m-chat-row.is-mine .m-chat-time,
.m-chat-bubble.is-mine .m-chat-time {
    color: rgba(20, 16, 10, 0.68);
    opacity: 1;
}

.m-chat-row.is-mine .m-chat-reply-quote {
    border-left-color: rgba(20, 16, 10, 0.35);
    color: rgba(20, 16, 10, 0.72);
}

.m-chat-row.is-mine .m-chat-reply-quote-name {
    color: #14100a;
}

.m-chat-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    min-width: 0;
    margin-bottom: calc(var(--m-space) * 1);
}

.m-chat-name {
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

.m-chat-pin-badge,
.m-chat-role {
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.m-chat-bubble-foot {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: calc(var(--m-space) * 1);
    min-height: 0;
}

.m-chat-time {
    margin: 0;
    color: var(--m-text-muted, #C8C4BC);
    font-size: 0.6875rem;
    line-height: 1;
    opacity: 0.72;
    white-space: nowrap;
}

.m-chat-bubble-text {
    margin: 0;
    color: #e8e4dc;
    font-size: var(--m-type-16);
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m-chat-bubble-text a {
    overflow-wrap: anywhere;
    word-break: break-word;
}

.mx-chat-shell--room .m-chat-row.is-reply,
.mx-chat-shell--room .m-chat-row[data-reply-depth] {
    max-width: 78%;
}

.mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="1"] {
    margin-left: calc(var(--m-space) * 3);
}

.mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="2"] {
    margin-left: calc(var(--m-space) * 5);
}

.mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="3"] {
    margin-left: calc(var(--m-space) * 7);
}

.m-chat-reply-quote {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
    max-width: 100%;
    margin: 0 0 calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
    border-left: 2px solid rgba(212, 175, 55, 0.7);
    color: #C8C2B6;
    font-size: var(--m-type-12);
    line-height: 1.35;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m-chat-reply-quote-name {
    color: var(--m-gold, #d4af37);
    font-weight: var(--m-weight);
    font-size: var(--m-type-12);
}

.m-chat-reply-excerpt {
    min-width: 0;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.m-chat-msg-menu,
.m-chat-msg-toolbar {
    position: absolute;
    top: calc(var(--m-space) * -1);
    right: 0;
    z-index: 4;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 1);
    border-radius: var(--m-radius-8);
    background: var(--m-surface-elevated, #1b212b);
    border: 1px solid var(--m-border, rgba(255, 255, 255, 0.12));
    box-shadow: 0 10px 28px -16px #000;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem);
    transition: opacity 120ms ease, transform 120ms ease;
}

.m-chat-row.is-mine .m-chat-msg-menu,
.m-chat-row.is-mine .m-chat-msg-toolbar {
    right: auto;
    left: 0;
}

.m-chat-row.is-menu-open .m-chat-msg-menu,
.m-chat-row.is-menu-open .m-chat-msg-toolbar {
    opacity: 1;
    pointer-events: auto;
    transform: none;
}

@media (hover: hover) and (pointer: fine) {
    .m-chat-row:hover .m-chat-msg-menu,
    .m-chat-row:focus-within .m-chat-msg-menu,
    .m-chat-row:hover .m-chat-msg-toolbar,
    .m-chat-row:focus-within .m-chat-msg-toolbar {
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }
}

.m-chat-reply-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    min-height: 36px;
    padding: 0 calc(var(--m-space) * 2);
    cursor: pointer;
}

.m-chat-reply-btn:hover,
.m-chat-reply-btn:focus-visible {
    color: var(--m-gold, #d4af37);
}

.m-chat-mod-form {
    margin: 0;
}

.m-chat-mod-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    min-height: 44px;
    padding: 0 calc(var(--m-space) * 1);
    cursor: pointer;
}

.m-chat-mod-btn:hover,
.m-chat-mod-btn:focus-visible {
    color: var(--m-gold, #d4af37);
}

.m-chat-mod-btn.is-danger:hover,
.m-chat-mod-btn.is-danger:focus-visible {
    color: #fda4af;
}

.m-chat-reply-bar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
    margin-bottom: calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
    border-left: 2px solid rgba(212, 175, 55, 0.7);
    background: rgba(255, 255, 255, 0.03);
}

.m-chat-reply-bar[hidden] {
    display: none !important;
}

.m-chat-reply-bar-copy {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    min-width: 0;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-chat-reply-bar-name {
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-chat-reply-bar-excerpt {
    color: #C8C2B6;
    font-size: var(--m-type-12);
}

.m-chat-reply-cancel {
    flex: 0 0 auto;
    appearance: none;
    border: 0;
    background: transparent;
    color: #C8C2B6;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    min-height: 44px;
    padding: 0 calc(var(--m-space) * 1);
    cursor: pointer;
}

@media (max-width: 63.98rem) {
    .mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="1"],
    .mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="2"],
    .mx-chat-shell--room .m-chat-row.is-theirs[data-reply-depth="3"] {
        margin-left: calc(var(--m-space) * 2);
    }
}









.m-chat-composer {
    flex-shrink: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3) calc(0.75rem + env(safe-area-inset-bottom));
    border-top: 1px solid var(--mx-chat-line);
    background: #0d0d12;
    min-width: 0;
}

.m-chat-composer-row {
    display: flex;
    align-items: flex-end;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-chat-composer textarea {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 100%;
    min-height: 44px;
    max-height: 8rem;
    resize: none;
    background: var(--mx-chat-panel);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--m-text);
    border-radius: var(--m-radius-8);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    font-size: var(--m-type-16);
    line-height: 1.4;
    overflow-wrap: break-word;
}

.m-chat-composer textarea:focus {
    outline: 2px solid rgba(212, 175, 55, 0.4);
    outline-offset: 1px;
    border-color: rgba(212, 175, 55, 0.4);
}

.m-chat-composer textarea::placeholder {
    color: var(--m-placeholder, #B8B4AC);
}

.m-chat-send {
    flex: 0 0 auto;
    min-height: 44px;
}

.m-chat-send:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

.m-chat .m-cref {
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid var(--mx-chat-line);
    background: var(--mx-chat-panel);
}


.m-create-room .modal-content {
    background: var(--m-surface);
    color: var(--m-text);
    border: 1px solid rgba(234, 179, 8, 0.28);
}

.m-create-room .form-control,
.m-create-room .form-select,
.m-create-room textarea {
    background: var(--m-surface-elevated);
    border-color: var(--meriva-dark-border);
    color: var(--m-text);
}

@media (max-width: 1023.98px) {
    .m-chat {
        --m-chat-h: calc(100dvh - 8.75rem);
        grid-template-columns: minmax(0, 1fr);
    }

    .m-chat-rooms-toggle,
    .m-chat-aside-toggle,
    .m-chat-drawer-close {
        display: inline-flex;
    }

    .mx-chat-shell--room .m-chat-back,
    .mx-chat-shell--direct .m-chat-back {
        display: inline-flex;
    }

    .mx-chat-shell--room .m-chat-rooms-toggle,
    .mx-chat-shell--direct .m-chat-rooms-toggle {
        display: none !important;
    }

    .m-chat-header-members {
        display: inline;
    }

    .m-chat-header-desk-meta {
        display: none;
    }

    .m-chat-sidebar,
    .m-chat-aside {
        position: absolute;
        z-index: 30;
        max-width: 100%;
        visibility: hidden;
        pointer-events: none;
        transition: transform 0.2s ease, visibility 0.2s ease;
    }

    .m-chat-sidebar {
        inset: 0 auto 0 0;
        top: 0;
        bottom: 0;
        width: min(17.5rem, 88vw);
        transform: translateX(-105%);
        box-shadow: none;
    }

    .m-chat-aside {
        inset: auto 0 0 0;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        max-height: min(78vh, 36rem);
        transform: translateY(105%);
        display: flex;
        flex-direction: column;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        border-radius: var(--m-radius-16) var(--m-radius-16) 0 0;
        background: var(--m-surface-elevated, #141820);
    }

    .m-chat.is-rooms-open .m-chat-sidebar,
    .m-chat.is-aside-open .m-chat-aside {
        transform: none;
        visibility: visible;
        pointer-events: auto;
    }

    .m-chat.is-rooms-open .m-chat-sidebar {
        box-shadow: 16px 0 40px rgba(0, 0, 0, 0.35);
    }

    .m-chat.is-aside-open .m-chat-aside {
        box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.35);
    }

    .m-chat.is-rooms-open .m-chat-drawer-overlay:not(.m-chat-aside-overlay),
    .m-chat.is-aside-open .m-chat-aside-overlay {
        display: block;
    }

    .m-chat-sidebar,
    .m-chat-aside,
    .m-chat-drawer-overlay,
    .m-chat-main {
        grid-column: 1;
        grid-row: 1;
    }

    .m-chat-main {
        width: 100%;
        min-width: 0;
        z-index: 1;
    }

    .m-chat.is-list-only .m-chat-sidebar {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: none;
        transform: none;
        visibility: visible;
        pointer-events: auto;
        box-shadow: none;
    }

    .m-chat.is-list-only .m-chat-main {
        display: none;
    }

    .m-chat.is-list-only .m-chat-drawer-overlay {
        display: none !important;
    }

    body.m-chat-immersive:has(.mx-chat-shell--room) .v4-dock,
    body.m-chat-immersive:has(.mx-chat-shell--direct) .v4-dock {
        display: none !important;
    }

    body.m-chat-immersive:has(.mx-chat-shell--room) .v4-context,
    body.m-chat-immersive:has(.mx-chat-shell--direct) .v4-context {
        display: none !important;
    }

    body.m-chat-immersive:has(.mx-chat-shell--room) .m-app-main,
    body.m-chat-immersive:has(.mx-chat-shell--direct) .m-app-main {
        padding-top: 0 !important;
        padding-bottom: env(safe-area-inset-bottom, 0px) !important;
    }

    body.m-chat-immersive:has(.mx-chat-shell--room) .m-chat,
    body.m-chat-immersive:has(.mx-chat-shell--direct) .m-chat,
    body.m-chat-immersive:has(.mx-chat-shell--room) .m-app-shell,
    body.m-chat-immersive:has(.mx-chat-shell--direct) .m-app-shell {
        --meriva-dock-h: 0px;
        height: 100dvh;
        max-height: 100dvh;
    }

    .mx-chat-shell--room,
    .mx-chat-shell--direct {
        --m-chat-h: 100dvh;
    }
}

@media (min-width: 1024px) {
    .m-chat-back {
        display: none !important;
    }

    .m-chat-header-members {
        display: none;
    }

    .m-chat-header-desk-meta {
        display: inline;
    }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
    .m-chat {
        grid-template-columns: minmax(14.5rem, 16.25rem) minmax(0, 1fr);
        --m-chat-h: calc(100dvh - 6.25rem);
    }

    .m-chat-rooms-toggle,
    .m-chat-sidebar .m-chat-drawer-close,
    .m-chat-drawer-overlay:not(.m-chat-aside-overlay) {
        display: none !important;
    }

    .m-chat-aside-toggle,
    .m-chat-aside .m-chat-drawer-close {
        display: inline-flex;
    }

    .m-chat-aside {
        position: absolute;
        inset: 0 0 0 auto;
        width: min(17.5rem, 88vw);
        max-width: 100%;
        z-index: 30;
        transform: translateX(105%);
        visibility: hidden;
        pointer-events: none;
        display: flex;
    }

    .m-chat.is-aside-open .m-chat-aside {
        transform: none;
        visibility: visible;
        pointer-events: auto;
        box-shadow: -16px 0 40px rgba(0, 0, 0, 0.35);
    }

    .m-chat.is-aside-open .m-chat-aside-overlay {
        display: block;
    }

    .m-chat-aside {
        grid-column: 1 / -1;
        grid-row: 1;
    }
}

@media (min-width: 1280px) {
    .m-chat {
        grid-template-columns: minmax(15rem, 16.5rem) minmax(0, 1fr) minmax(14.5rem, 16rem);
        --m-chat-h: calc(100dvh - 5.75rem);
    }

    .m-chat.is-members-collapsed {
        grid-template-columns: minmax(15rem, 16.5rem) minmax(0, 1fr);
    }

    .m-chat.is-members-collapsed .m-chat-aside {
        display: none;
    }

    .m-chat-rooms-toggle,
    .m-chat-sidebar .m-chat-drawer-close,
    .m-chat-aside .m-chat-drawer-close,
    .m-chat-drawer-overlay {
        display: none !important;
    }

    .m-chat-aside-toggle {
        display: inline-flex;
    }
}

@media (max-width: 374.98px) {
    .mx-chat-rooms-toggle-label {
        display: none;
    }
}

/* meriva-chat-v4.css */
/**
 * MERIVA chat V2 — frameless 3-pane shell.
 * Loaded after meriva-community.css. Keeps black/gold identity (no Discord/Reddit chrome).
 */

body.m-chat-immersive.m-ui-v4 .m-app-shell {
    height: 100dvh;
    max-height: 100dvh;
    overflow: hidden;
}

@media (max-width: 1099.98px) {
    body.m-chat-immersive.m-ui-v4 .m-app-shell {
        height: calc(100dvh - var(--meriva-dock-h, 5.4rem));
        max-height: calc(100dvh - var(--meriva-dock-h, 5.4rem));
    }
}

body.m-chat-immersive.m-ui-v4 .m-app-container {
    height: 100%;
    max-height: 100%;
    min-height: 0;
    overflow: hidden;
}

body.m-chat-immersive.m-ui-v4 .m-app-main {
    padding: 0!important;
    max-width: none;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

body.m-chat-immersive.m-ui-v4 .m-app-main > .v4-chat {
    flex: 1 1 auto;
    min-height: 0;
    height: auto;
}

body.m-chat-immersive.m-ui-v4 .v4-chat .m-chat-wrapper,
body.m-chat-immersive.m-ui-v4 .v4-chat .m-chat {
    height: 100%;
    max-height: 100%;
}

body.m-chat-immersive .v4-context {
    flex-shrink: 0;
}

body.m-ui-v4 .v4-chat {
    width: 100%;
    max-width: none;
    min-width: 0;
    height: 100%;
}

body.m-ui-v4 .v4-chat .m-chat-wrapper,
body.m-ui-v4 .v4-chat .m-chat {
    border: 0;
    border-radius: 0;
    background: #0a0a0e;
    color: #f7f3ec;
    overflow: hidden;
    --mx-chat-line: rgba(212, 175, 55, 0.16);
    --mx-chat-panel: #121218;
    --m-chat-h: calc(100dvh - 5.75rem);
    height: var(--m-chat-h);
    max-height: var(--m-chat-h);
}

body.m-ui-v4 .v4-chat .m-chat-header,
body.m-ui-v4 .v4-chat .m-chat-sidebar,
body.m-ui-v4 .v4-chat .m-chat-composer,
body.m-ui-v4 .v4-chat .m-chat-aside,
body.m-ui-v4 .v4-chat .m-chat-aside-head,
body.m-ui-v4 .v4-chat .m-chat-sidebar-head {
    background: #0c0c10;
    color: #f7f3ec;
    border-color: rgba(255, 255, 255, 0.06);
}

body.m-ui-v4 .v4-chat .m-chat-sidebar,
body.m-ui-v4 .v4-chat .m-chat-aside {
    background: #0d0d12;
}

body.m-ui-v4 .v4-chat .m-chat-sidebar-title,
body.m-ui-v4 .v4-chat .mx-chat-rail-links a,
body.m-ui-v4 .v4-chat .m-chat-reply-quote-name,
body.m-ui-v4 .v4-chat .m-chat-reply-bar-name,
body.m-ui-v4 .v4-chat .m-chat-role {
    color: var(--m-gold, #d4af37);
}

body.m-ui-v4 .v4-chat .m-chat-search .m-input,
body.m-ui-v4 .v4-chat .m-chat-search input,
body.m-ui-v4 .v4-chat .m-chat-composer textarea {
    background: #121218;
    color: #f7f3ec;
    border-color: rgba(255, 255, 255, 0.1);
}

body.m-ui-v4 .v4-chat .m-chat-search .m-input::placeholder,
body.m-ui-v4 .v4-chat .m-chat-search input::placeholder,
body.m-ui-v4 .v4-chat .m-chat-composer textarea::placeholder {
    color: var(--m-placeholder, #B8B4AC);
}

body.m-ui-v4 .v4-chat .m-chat-header-title,
body.m-ui-v4 .v4-chat .m-chat-room-name,
body.m-ui-v4 .v4-chat .m-chat-empty,
body.m-ui-v4 .v4-chat .m-chat-anchor-note,
body.m-ui-v4 .v4-chat .m-chat-pin-text,
body.m-ui-v4 .v4-chat .m-chat-name,
body.m-ui-v4 .v4-chat .m-chat-aside-name,
body.m-ui-v4 .v4-chat .m-chat-member-name,
body.m-ui-v4 .v4-chat .m-chat-bubble-text{
    color: #f7f3ec;
}

body.m-ui-v4 .v4-chat .m-chat-section-label,
body.m-ui-v4 .v4-chat .m-chat-aside-meta,
body.m-ui-v4 .v4-chat .m-chat-aside-copy,
body.m-ui-v4 .v4-chat .m-chat-reply-quote,
body.m-ui-v4 .v4-chat .m-chat-reply-excerpt,
body.m-ui-v4 .v4-chat .m-chat-reply-bar-excerpt {
    color: rgba(247, 243, 236, 0.62);
}

body.m-ui-v4 .v4-chat .m-chat-time,
body.m-ui-v4 .v4-chat .m-chat-muted{
    color: var(--m-text-muted, #C8C4BC);
}

body.m-ui-v4 .v4-chat .m-chat-room:hover,
body.m-ui-v4 .v4-chat .m-chat-room:focus-visible {
    background: rgba(255, 255, 255, 0.04);
    border-color: transparent;
    color: #f7f3ec;
}

body.m-ui-v4 .v4-chat .m-chat-room.is-active {
    background: rgba(212, 175, 55, 0.12);
    border-color: rgba(212, 175, 55, 0.42);
    box-shadow: inset 2px 0 0 var(--m-gold, #d4af37);
}

body.m-ui-v4 .v4-chat .m-chat-room {
    min-height: 48px;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

body.m-ui-v4 .v4-chat .m-chat-avatar {
    overflow: hidden;
    background: #16161c;
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--m-gold, #d4af37);
}

body.m-ui-v4 .v4-chat .m-chat-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

body.m-ui-v4 .v4-chat .m-chat-bubble,
body.m-ui-v4 .v4-chat .m-chat-bubble.is-mine,
body.m-ui-v4 .v4-chat .m-chat-bubble:not(.is-mine),
body.m-ui-v4 .v4-chat .mx-chat-shell--direct .m-chat-bubble,
body.m-ui-v4 .v4-chat .mx-chat-shell--direct .m-chat-bubble.is-mine {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #f7f3ec !important;
    border-radius: 0 !important;
}

body.m-ui-v4 .v4-chat .m-chat-reply-bar {
    background: rgba(255, 255, 255, 0.04);
    border-radius: var(--m-radius-8);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 2);
}

body.m-ui-v4 .v4-chat .m-chat-reply-quote {
    margin: calc(var(--m-space) * 1) 0 calc(var(--m-space) * 2);
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
}

body.m-ui-v4 .v4-chat .m-chat-reply-btn,
body.m-ui-v4 .v4-chat .m-chat-reply-cancel,
body.m-ui-v4 .v4-chat .m-chat-mod-btn {
    color: rgba(247, 243, 236, 0.62);
}

body.m-ui-v4 .v4-chat .m-chat-feed,
body.m-ui-v4 .v4-chat .m-chat-room-list,
body.m-ui-v4 .v4-chat .m-chat-aside-body {
    overflow-x: hidden;
    min-width: 0;
}

body.m-ui-v4 .v4-chat .m-chat-composer {
    padding-top: calc(var(--m-space) * 3);
    padding-inline: calc(var(--m-space) * 3);
    padding-bottom: calc(0.75rem + env(safe-area-inset-bottom));
}

body.m-ui-v4 .v4-chat .m-chat-composer-row {
    gap: calc(var(--m-space) * 2);
    align-items: flex-end;
}

body.m-ui-v4 .v4-chat .m-chat-attach {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border: 0;
    border-radius: var(--m-radius-8);
    background: transparent;
    color: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.m-ui-v4 .v4-chat .m-chat-attach:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

body.m-ui-v4 .v4-chat .m-chat-attach svg {
    width: 22px;
    height: 22px;
}

body.m-ui-v4 .v4-chat .m-chat-attach-preview {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    margin-bottom: calc(var(--m-space) * 1);
}

body.m-ui-v4 .v4-chat .m-chat-attach-preview img,
body.m-ui-v4 .v4-chat .m-chat-attach-preview video,
body.m-ui-v4 .v4-chat .m-chat-media-still,
body.m-ui-v4 .v4-chat .m-chat-media video {
    display: block;
    max-width: min(240px, 70%);
    max-height: 160px;
    border-radius: var(--m-radius-8);
    object-fit: cover;
}

body.m-ui-v4 .v4-chat .m-chat-media {
    position: relative;
    margin-top: calc(var(--m-space) * 1);
}

body.m-ui-v4 .v4-chat .m-chat-sound {
    position: absolute;
    right: 6px;
    bottom: 6px;
    min-width: 44px;
    min-height: 32px;
    border: 0;
    border-radius: var(--m-radius-pill);
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
}

body.m-ui-v4 .v4-chat .m-chat-media-pending {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-12);
    opacity: 0.7;
}

body.m-ui-v4 .v4-chat .m-chat-row {
    padding-block: calc(var(--m-space) * 1);
}

body.m-ui-v4 .v4-chat .m-chat-bubble {
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 2);
}

body.m-ui-v4 .v4-chat .m-chat-bubble-text {
    margin: 0;
    line-height: 1.3;
}

body.m-ui-v4 .v4-chat .m-chat-meta {
    gap: calc(var(--m-space) * 1);
    line-height: 1.2;
}





.m-chat-mod-media,
.m-chat-media,
.m-chat-media-still{
    max-width: 100%;
}

.m-chat-mod-item{
    min-width: 0;
    overflow-wrap: anywhere;
}

.m-chat-mod-avatar {
    width: 32px;
    height: 32px;
    border-radius: var(--m-radius-pill);
    object-fit: cover;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #2a2a2a;
    font-size: var(--m-type-12);
}





.m-chat-mod-item {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--m-radius-8);
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
}

.m-chat-mod-item.is-hidden {
    opacity: 0.72;
}

.m-chat-mod-item header {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    font-size: var(--m-type-12);
    opacity: 0.8;
}

.m-chat-mod-item p {
    margin: calc(var(--m-space) * 1) 0;
}

.m-chat-mod-media {
    display: block;
    max-width: 220px;
    max-height: 140px;
    border-radius: var(--m-radius-8);
    object-fit: cover;
}

.m-chat-mod-history {
    margin: calc(var(--m-space) * 1) 0 0;
    padding-left: calc(var(--m-space) * 4);
    font-size: var(--m-type-12);
}

body.m-ui-v4 .v4-chat .m-chat-composer textarea {
    min-height: 44px;
    border-radius: var(--m-radius-16);
}

body.m-ui-v4 .v4-chat .m-chat-send {
    min-width: 44px;
    min-height: 44px;
    border-radius: var(--m-radius-8);
}

body.m-ui-v4 .v4-chat .m-chat-row {
    padding-block: calc(var(--m-space) * 1);
}

body.m-ui-v4 .v4-chat .m-chat-drawer-overlay {
    background: rgba(6, 6, 8, 0.55);
}

body.m-ui-v4 .v4-chat .m-chat-bubble-text,
body.m-ui-v4 .v4-chat .m-chat-row,
body.m-ui-v4 .v4-chat .m-chat-main,
body.m-ui-v4 .v4-chat .m-chat-feed {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: break-word;
    word-break: normal;
}

@media (max-width: 1099.98px) {
    body.m-chat-immersive.m-ui-v4 .m-app-shell,
    body.m-chat-immersive.m-ui-v4 .m-app-container {
        height: 100dvh;
        max-height: 100dvh;
        min-height: 0;
    }

    body.m-chat-immersive.m-ui-v4:has(.v4-dock) .m-app-main {
        padding: 0!important;
        padding-bottom: var(--meriva-dock-h) !important;
        display: flex;
        flex-direction: column;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.m-ui-v4 .v4-chat {
        flex: 1 1 auto;
        min-height: 0;
        height: auto;
        display: flex;
        flex-direction: column;
    }

    body.m-ui-v4 .v4-chat .m-chat-wrapper,
    body.m-ui-v4 .v4-chat .m-chat {
        flex: 1 1 auto;
        min-height: 0 !important;
        height: auto !important;
        max-height: none !important;
    }

    body.m-ui-v4 .v4-chat .m-chat-main {
        min-height: 0;
        height: 100%;
    }
}

@media (min-width: 1100px) {
    body.m-ui-v4 .v4-chat .m-chat-wrapper,
    body.m-ui-v4 .v4-chat .m-chat {
        --m-chat-h: calc(100dvh - 5.5rem) !important;
        height: var(--m-chat-h) !important;
        max-height: var(--m-chat-h) !important;
    }
}

/* meriva-profile-hub.css */
/* Scoped to Account/Profile hub — do not change global body/sidebar/input rules. */

.m-app-main:has(> .m-profile-hub) {
    background: var(--meriva-v4-surface, #fafafa);
}

.m-profile-hub {
    --m-profile-hub-max: 1120px;
    --m-profile-hub-card: var(--meriva-v4-white, #ffffff);
    --m-profile-hub-border: var(--meriva-v4-border, rgba(20, 18, 14, 0.08));
    --m-profile-hub-text: var(--meriva-v4-text, #141414);
    --m-profile-hub-muted: var(--meriva-v4-text-muted, #6b675f);
    --m-profile-hub-gold: var(--meriva-v4-gold, var(--meriva-gold, #d4af37));
    box-sizing: border-box;
    width: 100%;
    max-width: var(--m-profile-hub-max);
    margin: 0 auto;
    padding: 0 calc(var(--m-space) * 4) calc(var(--m-space) * 5);
    color: var(--m-profile-hub-text);
    min-width: 0;
    overflow-x: visible;
}

.m-profile-hub *,
.m-profile-hub *::before,
.m-profile-hub *::after {
    box-sizing: border-box;
}

.m-profile-hub__hero,
.m-profile-hub__stat,
.m-profile-hub__activity,
.m-profile-hub__complete {
    min-width: 0;
    background: var(--m-profile-hub-card);
    border: 1px solid var(--m-profile-hub-border);
    border-radius: var(--meriva-v4-radius-md);
}

.m-profile-hub__hero {
    width: 100%;
    padding: calc(var(--m-space) * 5) calc(var(--m-space) * 5) calc(var(--m-space) * 5);
}

.m-profile-hub__identity {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 4);
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.m-profile-hub__avatar {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
    border-radius: var(--m-radius-pill);
    object-fit: cover;
    background: var(--meriva-v4-surface-soft, #f3f1ec);
    border: 1px solid var(--m-profile-hub-border);
}

.m-profile-hub__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    color: var(--m-profile-hub-text);
}

.m-profile-hub__who {
    flex: 1 1 0%;
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

.m-profile-hub__name,
.m-profile-hub__nick,
.m-profile-hub__place,
.m-profile-hub__since,
.m-profile-hub__bio,
.m-profile-hub__item-title,
.m-profile-hub__comment,
.m-profile-hub__hints li {
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    max-width: 100%;
}

.m-profile-hub__name {
    margin: 0;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    letter-spacing: -0.03em;
    width: 100%;
    max-width: 100%;
}

.m-profile-hub__nick,
.m-profile-hub__place,
.m-profile-hub__since {
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--m-profile-hub-muted);
    font-size: var(--m-type-14);
}

.m-profile-hub__bio {
    margin: calc(var(--m-space) * 4) 0 0;
    line-height: 1.5;
    color: var(--m-profile-hub-text);
}

.m-profile-hub__interests-title {
    margin: calc(var(--m-space) * 4) 0 0;
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--m-profile-hub-muted);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-hub__interests {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 1);
    list-style: none;
    margin: calc(var(--m-space) * 2) 0 0;
    padding: 0;
    max-width: 100%;
    min-width: 0;
}

.m-profile-hub__interest {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid rgba(212, 175, 55, 0.35);
    background: rgba(212, 175, 55, 0.08);
    color: var(--m-profile-hub-text);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-hub__referral {
    margin-top: calc(var(--m-space) * 4);
}

.m-profile-hub__referral-label {
    margin: 0 0 calc(var(--m-space) * 1);
    color: var(--m-profile-hub-muted);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-profile-hub__code-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
}

.m-profile-hub__code {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: calc(var(--m-space) * 1) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    border: 1px solid var(--m-profile-hub-border);
    background: #141418;
    color: #F4F1EA;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: var(--m-type-16);
    letter-spacing: 0.06em;
}

.m-profile-hub__actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    margin-top: calc(var(--m-space) * 4);
}

.m-profile-hub__edit {
    min-height: 48px;
}

.m-profile-hub__stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: calc(var(--m-space) * 3);
    margin-top: calc(var(--m-space) * 3);
}

.m-profile-hub .v4-level {
    margin-top: calc(var(--m-space) * 3);
}

.m-profile-hub__stat {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
}

.m-profile-hub__stat-label {
    margin: 0;
    color: var(--m-profile-hub-muted);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-hub__stat-value {
    margin: calc(var(--m-space) * 1) 0 0;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    letter-spacing: -0.03em;
    font-variant-numeric: tabular-nums;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-hub__body {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(16rem, 1fr);
    gap: calc(var(--m-space) * 3);
    margin-top: calc(var(--m-space) * 3);
    align-items: start;
}

.m-profile-hub__activity,
.m-profile-hub__complete {
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4) calc(var(--m-space) * 5);
}

.m-profile-hub__tab-input {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: calc(var(--m-space) * -1);
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.m-profile-hub__tabs {
    display: flex;
    gap: calc(var(--m-space) * 1);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--m-space) * 1);
    margin-bottom: calc(var(--m-space) * 3);
}

.m-profile-hub__tab {
    flex: 0 0 auto;
    min-height: var(--m-control-height, 44px);
    padding: calc(var(--m-space) * 2) var(--m-control-pad-x);
    border-radius: var(--m-radius-8);
    border: 1px solid transparent;
    background: transparent;
    color: var(--m-text);
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    cursor: pointer;
    white-space: nowrap;
}

#m-profile-hub-tab-posts:checked ~ .m-profile-hub__tabs label[for="m-profile-hub-tab-posts"],
#m-profile-hub-tab-comments:checked ~ .m-profile-hub__tabs label[for="m-profile-hub-tab-comments"] {
    color: var(--meriva-on-gold);
    background: var(--m-gold);
    border-color: var(--m-gold);
}

.m-profile-hub__panel {
    display: none;
    min-width: 0;
}

#m-profile-hub-tab-posts:checked ~ .m-profile-hub__panel--posts,
#m-profile-hub-tab-comments:checked ~ .m-profile-hub__panel--comments {
    display: block;
}

.m-profile-hub__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
}

.m-profile-hub__item {
    min-width: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 3);
    border: 1px solid var(--m-profile-hub-border);
    border-radius: var(--meriva-v4-radius-sm);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
}

.m-profile-hub__item-link,
.m-profile-hub__content-link {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 1);
    color: inherit;
    text-decoration: none;
    min-width: 0;
    min-height: var(--m-control-height, 44px);
}

.m-profile-hub__content-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-control-height, 44px);
    color: var(--m-profile-hub-text);
    font-weight: var(--m-weight);
}

.m-profile-hub__item-title {
    font-weight: var(--m-weight);
}

.m-profile-hub__item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--m-profile-hub-muted);
    font-size: var(--m-type-14);
}

.m-profile-hub__status {
    color: var(--m-profile-hub-text);
    font-weight: var(--m-weight);
}

.m-profile-hub__comment {
    margin: 0;
    line-height: 1.45;
}

.m-profile-hub__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: calc(var(--m-space) * 3);
    color: var(--m-profile-hub-muted);
}

.m-profile-hub__complete-title {
    margin: 0;
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}

.m-profile-hub__percent {
    margin: calc(var(--m-space) * 2) 0 calc(var(--m-space) * 3);
    font-size: var(--m-type-28);
    font-weight: var(--m-weight);
    letter-spacing: -0.04em;
}

.m-profile-hub__meter {
    height: 8px;
    border-radius: var(--m-radius-pill);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
    overflow: hidden;
}

.m-profile-hub__meter span {
    display: block;
    height: 100%;
    max-width: 100%;
    background: var(--m-profile-hub-gold);
}

.m-profile-hub__hints {
    margin: calc(var(--m-space) * 3) 0 0;
    padding-left: calc(var(--m-space) * 4);
    color: var(--m-profile-hub-muted);
    line-height: 1.45;
}

.m-profile-hub__complete-link {
    display: inline-flex;
    align-items: center;
    min-height: var(--m-control-height, 44px);
    margin-top: calc(var(--m-space) * 3);
    color: var(--m-profile-hub-text);
    font-weight: var(--m-weight);
    text-decoration: none;
}

.m-profile-hub__done {
    margin: calc(var(--m-space) * 3) 0 0;
    color: var(--m-profile-hub-muted);
}

@media (max-width: 1099.98px) {
    .m-profile-hub__stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .m-profile-hub__body {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 767.98px) {
    .m-profile-hub {
        padding-left: calc(var(--m-space) * 4);
        padding-right: calc(var(--m-space) * 4);
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }

    .m-profile-hub__identity {
        flex-direction: column;
        align-items: stretch;
    }

    .m-profile-hub__avatar {
        align-self: flex-start;
    }

    .m-profile-hub__actions,
    .m-profile-hub__edit,
    .m-profile-hub__empty {
        width: 100%;
    }

    .m-profile-hub__actions,
    .m-profile-hub__empty {
        flex-direction: column;
        align-items: stretch;
    }

    .m-profile-hub__edit {
        justify-content: center;
    }

    .m-profile-hub__complete {
        margin-bottom: calc(4.15rem + env(safe-area-inset-bottom, 0px));
    }
}

@media (min-width: 1100px) {
    .m-profile-hub {
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1280px) {
    .m-profile-hub {
        max-width: 1120px;
    }
}

/* meriva-profile-edit.css */
/* Scoped to Account/Profile — do not load on other pages. */

.m-app-main:has(> .m-profile-edit) {
    background: var(--meriva-v4-surface, #fafafa);
}

.m-profile-edit {
    --m-profile-edit-max: 1120px;
    --m-profile-edit-card: var(--meriva-v4-white, #ffffff);
    --m-profile-edit-border: var(--meriva-v4-border, rgba(20, 18, 14, 0.08));
    --m-profile-edit-text: var(--meriva-v4-text, #141414);
    --m-profile-edit-muted: var(--meriva-v4-text-muted, #6b675f);
    --m-profile-edit-gap: 0.75rem;
    box-sizing: border-box;
    width: 100%;
    max-width: var(--m-profile-edit-max);
    margin: 0 auto;
    padding: 0 calc(var(--m-space) * 4) calc(var(--m-space) * 5);
    color: var(--m-profile-edit-text);
    min-width: 0;
}

.m-profile-edit *,
.m-profile-edit *::before,
.m-profile-edit *::after {
    box-sizing: border-box;
}

.m-profile-edit__back {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: calc(var(--m-space) * 3);
    color: var(--m-profile-edit-muted);
    text-decoration: none;
    font-weight: var(--m-weight);
    hyphens: none;
}

.m-profile-edit__back:hover,
.m-profile-edit__back:focus-visible {
    color: var(--meriva-gold, #d4af37);
}

.m-profile-edit__form {
    display: flex;
    flex-direction: column;
    gap: var(--m-profile-edit-gap);
    min-width: 0;
    max-width: 100%;
}

.m-profile-edit__summary:not(:empty) {
    margin: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border: 1px solid rgba(229, 115, 115, 0.35);
    border-radius: var(--meriva-v4-radius-md);
    background: #201616;
    color: #f3d0d0;
}

.m-profile-edit__card {
    min-width: 0;
    padding: calc(var(--m-space) * 4) calc(var(--m-space) * 4);
    background: var(--m-profile-edit-card);
    border: 1px solid var(--m-profile-edit-border);
    border-radius: var(--meriva-v4-radius-md);
}

.m-profile-edit__card-title {
    margin: 0 0 calc(var(--m-space) * 4);
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
    letter-spacing: -0.02em;
    color: var(--m-profile-edit-text);
    hyphens: none;
}

.m-profile-edit__photo {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 4);
    min-width: 0;
}

.m-profile-edit__avatar {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    border-radius: var(--m-radius-pill);
    object-fit: cover;
    border: 1px solid var(--m-profile-edit-border);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
}

.m-profile-edit__avatar--fallback {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--m-weight);
    letter-spacing: 0.04em;
    color: var(--meriva-gold, #d4af37);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
}

.m-profile-edit__photo-note {
    margin: 0;
    min-width: 0;
    color: var(--m-profile-edit-muted);
    font-size: var(--m-type-14);
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.m-profile-edit__photo-copy {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    flex: 1 1 auto;
}

.m-profile-edit__photo-form,
.m-profile-edit__photo-remove {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-width: 0;
}

.m-profile-edit__file-label {
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
    color: var(--m-profile-edit-text);
}

.m-profile-edit__file {
    min-height: 48px;
    min-width: 0;
    max-width: 100%;
}

.m-profile-edit__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--m-space) * 4);
    min-width: 0;
}

.m-profile-edit__field {
    min-width: 0;
}

.m-profile-edit .m-form-label,
.m-profile-edit .m-form-group .m-form-label {
    color: var(--m-profile-edit-muted);
    hyphens: none;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-edit .m-input,
.m-profile-edit .m-select,
.m-profile-edit .m-textarea {
    min-height: 48px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    background: var(--meriva-v4-surface-soft, #f3f1ec);
    color: var(--m-profile-edit-text);
    border-color: var(--m-profile-edit-border);
}

.m-profile-edit .m-textarea {
    min-height: 8.5rem;
    resize: vertical;
}

.m-profile-edit .m-input:focus-visible,
.m-profile-edit .m-select:focus-visible,
.m-profile-edit .m-textarea:focus-visible,
.m-profile-edit__back:focus-visible,
.m-profile-edit .m-btn:focus-visible {
    outline: 2px solid var(--meriva-gold, #d4af37);
    outline-offset: 2px;
}

.m-profile-edit__readonly {
    margin: 0;
    min-height: 48px;
    display: block;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--meriva-radius-md);
    border: 1px solid var(--m-profile-edit-border);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
    color: var(--m-profile-edit-text);
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
    min-width: 0;
    max-width: 100%;
}

.m-profile-edit__hint,
.m-profile-edit .m-place-hint {
    margin: calc(var(--m-space) * 2) 0 0;
    color: var(--m-profile-edit-muted) !important;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    letter-spacing: normal;
    text-transform: none;
    line-height: 1.4;
    hyphens: none;
}

.m-profile-edit__count {
    margin: calc(var(--m-space) * 1) 0 0;
    color: var(--m-profile-edit-muted);
    font-size: var(--m-type-14);
}

.m-profile-edit .v4-interest-chips {
    max-width: 100%;
    min-width: 0;
}

.m-profile-edit .v4-interest-chip {
    max-width: 100%;
    min-height: 44px;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-edit .v4-interest-retired,
.v4-interest-retired {
    margin-left: calc(var(--m-space) * 1);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
}

.m-profile-edit .m-validation-feedback {
    display: block;
    margin-top: calc(var(--m-space) * 1);
    color: #e57373;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-profile-edit__place {
    margin-top: calc(var(--m-space) * 4);
    min-width: 0;
}

.m-profile-edit__current-place {
    margin: 0 0 calc(var(--m-space) * 3);
    min-width: 0;
    max-width: 100%;
    color: var(--m-profile-edit-muted);
    font-size: var(--m-type-14);
    line-height: 1.45;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.m-profile-edit .m-place-fields {
    min-width: 0;
}

.m-profile-edit__privacy {
    margin: 0;
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    border-radius: var(--meriva-v4-radius-sm);
    background: var(--meriva-v4-surface-soft, #f3f1ec);
    border: 1px solid var(--m-profile-edit-border);
    color: var(--m-profile-edit-muted);
    line-height: 1.45;
    hyphens: none;
}

.m-profile-edit__actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    padding-top: calc(var(--m-space) * 1);
}

.m-profile-edit__cancel,
.m-profile-edit__save {
    min-height: 48px;
    min-width: 44px;
}

.m-profile-edit__save-mobile {
    display: none;
}

@media (max-width: 767.98px) {
    .m-profile-edit {
        padding-left: calc(var(--m-space) * 4);
        padding-right: calc(var(--m-space) * 4);
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom));
    }

    .m-profile-edit__card:last-of-type {
        margin-bottom: calc(var(--m-space) * 19);
    }

    .m-profile-edit__photo {
        flex-direction: column;
        align-items: stretch;
    }

    .m-profile-edit__avatar {
        align-self: flex-start;
    }

    .m-profile-edit .m-place-fields {
        grid-template-columns: 1fr;
    }

    .m-profile-edit__save-desktop {
        display: none;
    }

    .m-profile-edit__save-mobile {
        display: inline;
    }

    .m-profile-edit__actions {
        position: sticky;
        bottom: calc(4.15rem + env(safe-area-inset-bottom));
        z-index: 4;
        margin: 0;
        width: 100%;
        max-width: 100%;
        padding: calc(var(--m-space) * 3) 0;
        justify-content: stretch;
        background: var(--meriva-v4-surface, #fafafa);
        border-top: 1px solid var(--m-profile-edit-border);
    }

    .m-profile-edit__cancel,
    .m-profile-edit__save {
        flex: 1 1 0;
    }
}

@media (min-width: 768px) {
    .m-profile-edit__grid {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    }
}

@media (min-width: 1100px) {
    .m-profile-edit {
        padding-left: 0;
        padding-right: 0;
    }
}

/* meriva-mpoint.css */
/* M-Puan surfaces: scoped to preserve the shared shell and landing page. */
.mp-page{--mp-line:rgba(239,225,193,.13);--mp-soft:#bcb8ae;max-width:1240px;margin:0 auto;padding:calc(var(--m-space) * 3) 0 calc(var(--m-space) * 10);color:#f7f3ec;min-width:0}
.mp-page *{box-sizing:border-box}
.mp-page h1,.mp-page h2,.mp-page h3,.mp-page p{margin-top:0;overflow-wrap:anywhere}
.mp-page h2{font-size:var(--m-type-20);line-height:1.35;letter-spacing:-.035em;margin-bottom:calc(var(--m-space) * 4)}
.mp-page h3{font-size:var(--m-type-16);line-height:1.5;margin-bottom:calc(var(--m-space) * 2)}
.mp-page p{line-height:1.75}
.mp-hero{display:grid;grid-template-columns:1.15fr 1fr;gap:calc(var(--m-space) * 10);align-items:center;padding:calc(var(--m-space) * 12);border:1px solid var(--mp-line);border-radius:var(--m-radius-16);background:radial-gradient(ellipse at 95% 0,rgba(212,175,55,.13),transparent 60%),linear-gradient(135deg,#171715,#0c0d10 65%)}
.mp-hero-copy,.mp-wallet,.mp-columns>*{min-width:0}
.mp-eyebrow{display:block;font-size:var(--m-type-12);letter-spacing:.18em;font-weight:var(--m-weight);color:#dec47b;line-height:1.8;margin-bottom:calc(var(--m-space) * 5)}
#mp-title{font-size:var(--m-type-40);letter-spacing:-.055em;font-weight:var(--m-weight);line-height:1.16;margin-bottom:calc(var(--m-space) * 6)}
#mp-title em{font-style:normal;color:#e6cf8c}
.mp-hero-copy>p{color:var(--mp-soft);max-width:46ch;font-size:var(--m-type-16);margin-bottom:calc(var(--m-space) * 6)}
.mp-page .mp-text-link{display:inline-flex;align-items:center;gap:calc(var(--m-space) * 3);min-height:44px;color:#e7d397;font-size:var(--m-type-14);text-decoration:none;line-height:1.6}
.mp-page a:focus-visible{outline:3px solid #e6cf8c;outline-offset:5px}
.mp-page a:hover{filter:brightness(1.12)}
.mp-wallet{padding:calc(var(--m-space) * 7);border:1px solid rgba(230,207,140,.3);border-radius:var(--m-radius-16);background:radial-gradient(ellipse at 100% 0,rgba(212,175,55,.16),transparent 75%),#151613;box-shadow:0 24px 48px #0004,inset 0 1px 0 #ffffff0a}
.mp-wallet-top{display:flex;justify-content:space-between;align-items:center;gap:calc(var(--m-space) * 4);color:#dec47b;font-size:var(--m-type-12);letter-spacing:.14em;font-weight:var(--m-weight)}
.mp-wallet-top i,.mp-wallet-top .v4-icon{font-size:var(--m-type-20);width:1.25rem;height:1.25rem}
.mp-page .mp-balance{font-size:var(--m-type-40);font-weight:var(--m-weight);line-height:1.2;letter-spacing:-.06em;margin:calc(var(--m-space) * 6) 0 calc(var(--m-space) * 1);font-variant-numeric:tabular-nums}
.mp-balance span{font-size:var(--m-type-12);color:#dec47b;font-weight:var(--m-weight)}
.mp-muted{color:var(--mp-soft);font-size:var(--m-type-14)}
.mp-actions{display:flex;flex-wrap:wrap;align-items:stretch;gap:calc(var(--m-space) * 3);margin-top:calc(var(--m-space) * 6)}
.mp-wallet .mp-actions{align-items:center}
.mp-page .mp-wallet-note{font-size:var(--m-type-12);color:var(--mp-soft);margin:calc(var(--m-space) * 5) 0 0;display:flex;align-items:baseline;gap:calc(var(--m-space) * 2)}
.mp-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-top:calc(var(--m-space) * 6);border:1px solid var(--mp-line);border-radius:var(--m-radius-16);background:#101113}
.mp-stats article{display:flex;align-items:center;gap:calc(var(--m-space) * 4);padding:calc(var(--m-space) * 6);min-width:0}
.mp-stats article+article{border-left:1px solid var(--mp-line)}
.mp-stat-icon,.mp-entry-icon{display:grid;place-items:center;flex-shrink:0;width:40px;height:40px;border:1px solid var(--mp-line);border-radius:var(--m-radius-8);color:#dec47b;background:#dac27c09}
.mp-stats article>div{min-width:0;overflow-wrap:anywhere}
.mp-stats article>div>span{font-size:var(--m-type-12);color:var(--mp-soft)}
.mp-stats strong{display:block;font-size:var(--m-type-28);font-variant-numeric:tabular-nums;margin-top:calc(var(--m-space) * 1);line-height:1.4}
.mp-stats small{font-size:var(--m-type-12);font-weight:var(--m-weight);color:var(--mp-soft)}
.mp-page .mp-footnote{font-size:var(--m-type-12);color:var(--mp-soft);margin:calc(var(--m-space) * 3) 0 calc(var(--m-space) * 6)}
.mp-columns{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:calc(var(--m-space) * 6);margin-bottom:calc(var(--m-space) * 6)}
.mp-card{padding:calc(var(--m-space) * 8);border:1px solid var(--mp-line);border-radius:var(--m-radius-16);background:linear-gradient(145deg,#151618,#0e0f11);min-width:0}
.mp-card .mp-eyebrow{margin-bottom:calc(var(--m-space) * 3)}
.mp-goal{background:radial-gradient(ellipse at 0 100%,#d4af370c,transparent 70%),#111214}
.mp-gift-mark{display:grid;place-items:center;width:76px;height:76px;margin:calc(var(--m-space) * 7) 0 calc(var(--m-space) * 5);border-radius:var(--m-radius-16);background:linear-gradient(135deg,#d4af3720,#d4af3705);border:1px solid #d4af3733;color:#e6cf8c;font-size:var(--m-type-28)}
.mp-page .mp-goal-price{font-size:var(--m-type-28);color:#e6cf8c;font-weight:var(--m-weight);margin:calc(var(--m-space) * 3) 0 calc(var(--m-space) * 5)}
.mp-goal-price span{font-size:var(--m-type-12);font-weight:var(--m-weight);color:var(--mp-soft)}
.mp-meter{height:6px;border-radius:var(--m-radius-8);background:#ffffff12;margin-bottom:calc(var(--m-space) * 4);overflow:hidden}
.mp-meter span{display:block;height:100%;background:linear-gradient(90deg,#a88418,#ecd99c);border-radius:inherit}
.mp-earn-list>div{display:grid;grid-template-columns:24px minmax(0,1fr) auto;gap:calc(var(--m-space) * 4);padding:calc(var(--m-space) * 5) 0;border-bottom:1px solid var(--mp-line);align-items:start}
.mp-earn-list>div>i,.mp-earn-list>div>.v4-icon{color:#dec47b;font-size:var(--m-type-20);width:1.2rem;height:1.2rem}
.mp-earn-list h3{font-size:var(--m-type-14);margin-bottom:calc(var(--m-space) * 1)}
.mp-earn-list p{font-size:var(--m-type-12);color:var(--mp-soft);margin:0}
.mp-earn-list strong{font-size:var(--m-type-12);color:#e6cf8c;white-space:nowrap;padding:calc(var(--m-space) * 1) calc(var(--m-space) * 2);background:#d4af370e;border-radius:var(--m-radius-8)}
.mp-card>.mp-footnote{margin-bottom:0}
.mp-section-head{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--m-space) * 5);flex-wrap:wrap;margin-bottom:calc(var(--m-space) * 3)}
.mp-period{font-size:var(--m-type-12);color:#d6ccb3;border:1px solid var(--mp-line);padding:calc(var(--m-space) * 2) calc(var(--m-space) * 3);border-radius:var(--m-radius-16);overflow-wrap:anywhere}
.mp-entry{display:grid;grid-template-columns:40px minmax(0,1fr) minmax(90px,auto);gap:calc(var(--m-space) * 4);align-items:center;padding:calc(var(--m-space) * 5) 0;border-top:1px solid var(--mp-line)}
.mp-entry-copy h3{font-size:var(--m-type-14);font-weight:var(--m-weight)}
.mp-entry-copy p{font-size:var(--m-type-12);color:var(--mp-soft);margin:0}
.mp-entry-amount{text-align:right;min-width:0;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.mp-entry-amount strong{display:block;font-size:var(--m-type-16)}
.mp-entry-amount span{display:block;font-size:var(--m-type-12);color:var(--mp-soft);margin-top:calc(var(--m-space) * 1)}
.mp-entry--in .mp-entry-amount strong{color:#9bd3ad}
.mp-entry--out .mp-entry-icon{color:#bcb8ae}
.mp-empty{text-align:center;padding:calc(var(--m-space) * 8) calc(var(--m-space) * 3)}
.mp-empty>i,.mp-empty .mp-empty-icon{display:block;font-size:var(--m-type-28);color:#dec47b;margin-bottom:calc(var(--m-space) * 4)}
.mp-empty .mp-empty-icon .v4-icon{width:2rem;height:2rem}
.mp-empty p{max-width:48ch;margin:0 auto calc(var(--m-space) * 6);color:var(--mp-soft);font-size:var(--m-type-14)}
.mp-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:calc(var(--m-space) * 5);margin-top:calc(var(--m-space) * 6)}
.mp-step{display:block;color:#dec47b;font-size:var(--m-type-12);letter-spacing:.12em;margin-bottom:calc(var(--m-space) * 7)}
.mp-steps p{font-size:var(--m-type-14);color:var(--mp-soft);margin-bottom:0}
.mp-steps .mp-text-link{margin-top:calc(var(--m-space) * 5)}
.mp-guest-wallet{text-align:center}
.mp-orbit{display:grid;place-items:center;width:120px;height:120px;margin:calc(var(--m-space) * 7) auto;border-radius:var(--m-radius-pill);border:1px solid #dec47b4a;box-shadow:0 0 0 12px #dec47b05,0 0 0 24px #dec47b03;background:radial-gradient(circle,#dec47b20,transparent 75%);color:#e6cf8c;font-size:var(--m-type-40)}
.mp-orbit .v4-icon{width:2.5rem;height:2.5rem}
.mp-gift-mark .v4-icon{width:2rem;height:2rem}
.mp-stat-icon .v4-icon,.mp-entry-icon .v4-icon{width:1.15rem;height:1.15rem}
.mp-text-link .v4-icon,.mp-wallet-note .v4-icon,.mp-guest-lock .v4-icon,.mp-actions .v4-icon{width:.95rem;height:.95rem}
.mp-guest-lock{display:inline-flex;align-items:center;gap:calc(var(--m-space) * 2);color:var(--mp-soft);font-size:var(--m-type-12);margin-top:calc(var(--m-space) * 3)}
@media(min-width:1100px){.mp-page .mp-hero--guest{grid-template-columns:1.25fr .75fr}}
@media(max-width:1000px){.mp-hero{padding:calc(var(--m-space) * 8);gap:calc(var(--m-space) * 7)}.mp-card{padding:calc(var(--m-space) * 6)}.mp-stats article{padding:calc(var(--m-space) * 5) calc(var(--m-space) * 4);gap:calc(var(--m-space) * 3)}.mp-stat-icon{display:none}.mp-steps{gap:calc(var(--m-space) * 4)}}
@media(max-width:760px){.mp-hero,.mp-columns{grid-template-columns:minmax(0,1fr)}.mp-hero{padding:calc(var(--m-space) * 7);border-radius:var(--m-radius-16)}.mp-hero-copy>p{max-width:60ch}#mp-title{font-size:var(--m-type-40)}.mp-steps{grid-template-columns:minmax(0,1fr)}.mp-step{margin-bottom:calc(var(--m-space) * 4)}.mp-stats strong{font-size:var(--m-type-20)}.mp-stats article{padding:calc(var(--m-space) * 4) calc(var(--m-space) * 3)}.mp-stats article>div>span{font-size:var(--m-type-12)}.mp-columns{gap:calc(var(--m-space) * 5)}.mp-wallet{padding:calc(var(--m-space) * 6)}.mp-balance{overflow-wrap:anywhere}.mp-history{padding:calc(var(--m-space) * 6) calc(var(--m-space) * 5)}}
@media(max-width:420px){.mp-hero,.mp-card{padding:calc(var(--m-space) * 5)}.mp-wallet{padding:calc(var(--m-space) * 5)}.mp-stats{grid-template-columns:minmax(0,1fr)}.mp-stats article{padding:calc(var(--m-space) * 4) calc(var(--m-space) * 5)}.mp-stats article+article{border-left:0;border-top:1px solid var(--mp-line)}.mp-stat-icon{display:grid}.mp-stats article>div{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--m-space) * 4);width:100%}.mp-stats strong{margin:0}.mp-entry{grid-template-columns:32px minmax(0,1fr);gap:calc(var(--m-space) * 3)}.mp-entry-icon{width:32px;height:32px}.mp-entry-amount{grid-column:2;text-align:left;display:flex;flex-wrap:wrap;align-items:baseline;gap:calc(var(--m-space) * 3)}.mp-entry-amount span{margin:0}.mp-earn-list>div{grid-template-columns:22px minmax(0,1fr);gap:calc(var(--m-space) * 3)}.mp-earn-list strong{grid-column:2;justify-self:start}.mp-actions{flex-direction:column;align-items:stretch}}
/* Keep cinematic panels legible within every shell theme. */
.mp-page{--m-text:#f7f3ec;--m-text-secondary:#e8e4dc;--m-text-muted:#bcb8ae;--m-border:rgba(239,225,193,.18)}
html[data-meriva-theme] .m-role-panel .m-app-main .mp-page :is(h1,h2,h3,p,span,strong,small,em,a,li):not(.m-btn):not(.m-badge){color:#F4F1EA}
html[data-meriva-theme] .m-role-panel .m-app-main .mp-page :is(.mp-muted,.mp-footnote,.mp-wallet-note,.mp-hero-copy>p,.mp-earn-list p,.mp-entry-copy p,.mp-empty p,.mp-steps p,.mp-guest-lock):not(.m-btn){color:#C8C2B6}
html[data-meriva-theme="white"] .m-role-panel .m-app-main .mp-page>p.mp-footnote:not(.m-btn){color:#4E4940}
.mp-page #mp-how{scroll-margin-top:140px}

/* meriva-privacy.css */
.m-privacy,
.m-privacy-admin {
  max-width: 720px;
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
  padding-bottom: calc(var(--m-space) * 6);
  color: var(--meriva-v4-text, #141414);
}

.m-privacy-card {
  background: var(--meriva-v4-white, #ffffff);
  border: 1px solid var(--meriva-v4-border, rgba(20, 18, 14, 0.08));
  border-radius: var(--m-radius-16);
  padding: calc(var(--m-space) * 4);
  margin-bottom: calc(var(--m-space) * 4);
  box-shadow: var(--meriva-v4-shadow, 0 8px 28px rgba(12, 10, 8, 0.06));
}

.m-privacy-card h2 {
  font-size: var(--m-type-16);
  margin: 0 0 calc(var(--m-space) * 2);
  overflow-wrap: break-word;
  word-break: normal;
}

.m-privacy-card[id] {
  scroll-margin-top: 5rem;
}

.m-privacy-subhead {
  font-size: var(--m-type-14);
  margin: calc(var(--m-space) * 3) 0 0;
}

.m-privacy-old {
  margin-top: calc(var(--m-space) * 2);
}

.m-privacy-old > summary {
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
}

.m-privacy-form,
.m-privacy-form label {
  display: grid;
  gap: calc(var(--m-space) * 2);
  min-width: 0;
  overflow-wrap: break-word;
  word-break: normal;
}

.m-privacy-form .m-input,
.m-privacy-form select,
.m-privacy-form textarea {
  width: 100%;
  min-width: 0;
  min-height: 44px;
}

.m-privacy-danger,
.m-privacy-cta {
  min-height: 48px;
  width: 100%;
  margin-top: calc(var(--m-space) * 2);
}

.m-privacy-list {
  list-style: none;
  padding: 0;
  margin: calc(var(--m-space) * 3) 0 0;
}

.m-privacy-list li {
  padding: calc(var(--m-space) * 2) 0;
  border-top: 1px solid var(--meriva-v4-border, rgba(20, 18, 14, 0.08));
  overflow-wrap: break-word;
  word-break: normal;
}

.m-privacy-banner {
  padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
  border-radius: var(--m-radius-8);
  background: rgba(201, 162, 39, 0.1);
  border: 1px solid rgba(201, 162, 39, 0.28);
  margin-bottom: calc(var(--m-space) * 4);
  overflow-wrap: break-word;
  word-break: normal;
}

.m-privacy-body {
  white-space: pre-wrap;
  font-size: var(--m-type-16);
  line-height: 1.65;
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: normal;
}

.m-privacy-export {
  margin-top: calc(var(--m-space) * 3);
}

.m-kvkk-soon {
  background: #6a5410;
  color: #fff8dc;
}

.m-kvkk-late {
  background: #6e1d1d;
  color: #fff5f5;
}

@media (max-width: 767.98px) {
  .m-privacy,
  .m-privacy-admin,
  .m-table-container {
    max-width: 100%;
  }
}

/* meriva-admin-users.css */
.m-admin-users {
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-users .m-admin-users-title {
    color: #fff;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    letter-spacing: -0.02em;
    margin: 0 0 calc(var(--m-space) * 1);
    line-height: 1.25;
}

.m-admin-users .m-admin-users-lead {
    color: #9a958c;
    font-size: var(--m-type-14);
    margin: 0 0 calc(var(--m-space) * 4);
}

.m-admin-users-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--m-space) * 3);
    margin-bottom: calc(var(--m-space) * 4);
}

.m-admin-users-stat {
    background: #14120f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--m-radius-16);
    padding: calc(var(--m-space) * 3) calc(var(--m-space) * 4);
    min-width: 0;
}

.m-admin-users-stat span {
    display: block;
    color: #9a958c;
    font-size: var(--m-type-12);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.m-admin-users-stat strong {
    display: block;
    color: #f6f1e6;
    font-size: var(--m-type-20);
    font-family: "JetBrains Mono", ui-monospace, monospace;
    margin-top: calc(var(--m-space) * 1);
}

.m-admin-users-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: calc(var(--m-space) * 2);
    margin-bottom: calc(var(--m-space) * 4);
}

.m-admin-users-filters input,
.m-admin-users-filters select {
    width: 100%;
    min-width: 0;
    background: #12100d;
    color: #f4f0e6;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--m-radius-8);
    min-height: 44px;
    padding: 0 calc(var(--m-space) * 3);
}

.m-admin-users-table-wrap {
    display: none;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: #12100d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--m-radius-16);
}

.m-admin-users-table {
    width: 100%;
    margin: 0;
    border-collapse: collapse;
    min-width: 36rem;
}

.m-admin-users-table th,
.m-admin-users-table td {
    padding: 0 calc(var(--m-space) * 3);
    vertical-align: middle;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-users-table td.m-font-mono,
.m-admin-users-card-grid .m-font-mono {
    white-space: nowrap;
    overflow-wrap: normal;
    word-break: keep-all;
}

.m-admin-users-table th {
    height: 40px;
    font-size: var(--m-type-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8d8880;
    font-weight: var(--m-weight);
}

.m-admin-users-table tbody tr {
    height: 64px;
}

.m-admin-users-user {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 3);
    min-width: 0;
    flex: 1 1 0%;
    max-width: 100%;
}

.m-admin-users-avatar {
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    border-radius: var(--m-radius-pill);
    display: grid;
    place-items: center;
    background: #1c1914;
    color: #e4b84a;
    font-weight: var(--m-weight);
    font-size: var(--m-type-14);
}

.m-admin-users-name,
.m-admin-users-card-id {
    flex: 1 1 0%;
    min-width: 0;
    max-width: 100%;
}

.m-admin-users-name strong,
.m-admin-users-card-id strong {
    display: block;
    color: #f6f1e6;
    font-size: var(--m-type-14);
    line-height: 1.2;
    overflow-wrap: break-word;
    max-width: 100%;
}

.m-admin-users-name span,
.m-admin-users-card-id span {
    display: block;
    color: #8d8880;
    font-size: var(--m-type-12);
}

.m-admin-users-pill {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 calc(var(--m-space) * 2);
    border-radius: var(--m-radius-pill);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    white-space: nowrap;
}

.m-admin-users-pill.is-on {
    background: rgba(16, 185, 129, 0.16);
    color: #34d399;
}

.m-admin-users-pill.is-off {
    background: rgba(255, 255, 255, 0.08);
    color: #a8a29a;
}

.m-admin-users-pill.is-admin { background: rgba(201, 162, 39, 0.18); color: #e4b84a; }
.m-admin-users-pill.is-mod { background: rgba(125, 211, 252, 0.14); color: #7dd3fc; }
.m-admin-users-pill.is-esnaf { background: rgba(52, 211, 153, 0.14); color: #34d399; }
.m-admin-users-pill.is-member { background: rgba(255, 255, 255, 0.08); color: #d6d3d1; }

.m-admin-users-menu {
    position: relative;
}

.m-admin-users-menu > button {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--m-radius-8);
    background: transparent;
    color: #c8c4bc;
}

.m-admin-users-menu > button:hover,
.m-admin-users-menu > button[aria-expanded="true"] {
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.m-admin-users-menu [role="menu"] {
    position: absolute;
    right: 0;
    top: calc(100% - 4px);
    z-index: 5;
    min-width: 188px;
    padding: calc(var(--m-space) * 2);
    background: #1a1713;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--m-radius-8);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4);
}

.m-admin-users-menu [role="menuitem"] {
    display: block;
    width: 100%;
    text-align: left;
    border: 0;
    background: transparent;
    color: #f4f0e6;
    padding: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
    border-radius: var(--m-radius-8);
    font-size: var(--m-type-14);
}

.m-admin-users-menu [role="menuitem"]:hover,
.m-admin-users-menu [role="menuitem"]:focus-visible {
    background: rgba(255, 255, 255, 0.06);
}

.m-admin-users-cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--m-space) * 3);
}

.m-admin-users-card {
    background: #14120f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--m-radius-16);
    padding: calc(var(--m-space) * 4);
    min-width: 0;
}

.m-admin-users-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: calc(var(--m-space) * 2);
    margin-bottom: calc(var(--m-space) * 3);
    min-width: 0;
    max-width: 100%;
}

.m-admin-users-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: calc(var(--m-space) * 2) calc(var(--m-space) * 3);
}

.m-admin-users-card-grid p {
    margin: 0;
    min-width: 0;
}

.m-admin-users-card-grid small {
    display: block;
    color: #8d8880;
    font-size: var(--m-type-12);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.m-admin-users-card-grid b {
    display: block;
    color: #f4f0e6;
    font-size: var(--m-type-14);
    font-weight: var(--m-weight);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-users-empty {
    padding: calc(var(--m-space) * 7) calc(var(--m-space) * 4);
    text-align: center;
    color: #9a958c;
}

.m-admin-users-pager {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    align-items: center;
    margin-top: calc(var(--m-space) * 4);
}

.m-admin-users-dialog {
    width: min(420px, calc(100vw - 24px));
    max-height: min(86vh, 36rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--m-radius-16);
    padding: 0;
    background: #16130f;
    color: #f4f0e6;
}

.m-admin-users-dialog::backdrop {
    background: rgba(0, 0, 0, 0.45);
}

.m-admin-users-dialog-body {
    padding: calc(var(--m-space) * 4);
}

.m-admin-users-dialog h2 {
    font-size: var(--m-type-16);
    margin: 0 0 calc(var(--m-space) * 3);
}

.m-admin-users-dialog label {
    display: block;
    margin: 0 0 calc(var(--m-space) * 2);
    font-size: var(--m-type-12);
    color: #c8c4bc;
}

.m-admin-users-dialog .m-input,
.m-admin-users-dialog .m-select,
.m-admin-users-dialog input,
.m-admin-users-dialog select,
.m-admin-users-dialog textarea {
    width: 100%;
    margin-bottom: calc(var(--m-space) * 3);
}

.m-admin-users-dialog-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    justify-content: flex-end;
    margin-top: calc(var(--m-space) * 2);
}

@media (min-width: 768px) {
    .m-admin-users-stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .m-admin-users-filters {
        grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 0.8fr)) auto;
        align-items: stretch;
    }

    .m-admin-users-table-wrap {
        display: block;
    }

    .m-admin-users-cards {
        display: none;
    }
}

@media (min-width: 1280px) {
    .m-admin-users-table {
        min-width: 0;
    }

    .m-admin-users-table tbody tr {
        height: 64px;
    }
}

@media (max-width: 767.98px) {
    .m-admin-users-filters {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: calc(var(--m-space) * 2);
    }

    .m-admin-users-filters input,
    .m-admin-users-filters .m-btn {
        grid-column: 1 / -1;
    }

    .m-admin-users-table-wrap {
        display: none;
    }

    .m-admin-users-cards {
        display: grid;
    }
}

/* meriva-admin-interests.css */
.m-admin-interests {
    max-width: 100%;
    min-width: 0;
    overflow-x: visible;
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-interests-title {
    color: #fff;
    font-size: var(--m-type-20);
    font-weight: var(--m-weight);
    margin: 0 0 calc(var(--m-space) * 1);
    line-height: 1.25;
}

.m-admin-interests-lead {
    color: #9a958c;
    font-size: var(--m-type-14);
    margin: 0 0 calc(var(--m-space) * 4);
}

.m-admin-interests-toolbar,
.m-admin-interests-filters,
.m-admin-interests-actions {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 2);
    align-items: center;
    min-width: 0;
    max-width: 100%;
    margin-bottom: calc(var(--m-space) * 4);
}

.m-admin-interests-filters a,
.m-admin-interests-actions .m-btn,
.m-admin-interests-card .m-btn,
.m-admin-interests-form .m-btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.m-admin-interests-filters a {
    padding: 0 calc(var(--m-space) * 3);
    border-radius: var(--m-radius-pill);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #f4f0e6;
    text-decoration: none;
    background: #12100d;
}

.m-admin-interests-filters a.is-on {
    border-color: #d4af37;
    color: #111;
    background: #d4af37;
}

.m-admin-interests-table-wrap {
    display: none;
    max-width: 100%;
    overflow-x: auto;
    background: #12100d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--m-radius-16);
}

.m-admin-interests-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 40rem;
}

.m-admin-interests-table th,
.m-admin-interests-table td {
    padding: calc(var(--m-space) * 3);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
    overflow-wrap: break-word;
    word-break: normal;
    color: #f6f1e6;
}

.m-admin-interests-table th {
    font-size: var(--m-type-12);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #8d8880;
}

.m-admin-interests-cards {
    display: grid;
    gap: calc(var(--m-space) * 3);
}

.m-admin-interests-card,
.m-admin-interests-form {
    background: #14120f;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--m-radius-16);
    padding: calc(var(--m-space) * 4);
    min-width: 0;
    max-width: 100%;
}

.m-admin-interests-card h3,
.m-admin-interests-form h2 {
    margin: 0 0 calc(var(--m-space) * 2);
    color: #f6f1e6;
    font-size: var(--m-type-16);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-interests-card p,
.m-admin-interests-meta {
    margin: 0 0 calc(var(--m-space) * 2);
    color: #9a958c;
    font-size: var(--m-type-14);
    overflow-wrap: break-word;
    word-break: normal;
}

.m-admin-interests-status {
    display: inline-flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-height: 24px;
    font-weight: var(--m-weight);
}

.m-admin-interests-status.is-on {
    color: #d4af37;
}

.m-admin-interests-status.is-off {
    color: #c7c2b8;
}

.m-admin-interests-form .m-field {
    display: flex;
    flex-direction: column;
    gap: calc(var(--m-space) * 2);
    margin-bottom: calc(var(--m-space) * 3);
    min-width: 0;
}

.m-admin-interests-form input[type="text"],
.m-admin-interests-form input[type="number"] {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    border-radius: var(--m-radius-8);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: #12100d;
    color: #f4f0e6;
    padding: 0 calc(var(--m-space) * 3);
}

.m-admin-interests-form .m-check {
    display: flex;
    align-items: center;
    gap: calc(var(--m-space) * 2);
    min-height: 44px;
    color: #f4f0e6;
}

.m-admin-interests-summary {
    color: #e57373;
    margin-bottom: calc(var(--m-space) * 3);
}

@media (min-width: 1024px) {
    .m-admin-interests-table-wrap {
        display: block;
    }

    .m-admin-interests-cards {
        display: none;
    }
}

/* Guest /Chat premium intro */
.mx-chat-guest {
    width: min(44rem, 100%);
    margin: 0 auto;
    padding: calc(var(--m-space) * 6) calc(var(--m-space) * 4) calc(var(--m-space) * 10);
    display: grid;
    gap: calc(var(--m-space) * 8);
}

.mx-chat-guest-hero {
    display: grid;
    gap: calc(var(--m-space) * 3);
}

.mx-chat-guest-title {
    margin: 0;
    color: var(--m-text, #f7f3ec);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: var(--m-weight);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.mx-chat-guest-lead {
    margin: 0;
    max-width: 36rem;
    color: var(--mp-muted, #c8c2b6);
    font-size: var(--m-type-14);
    line-height: 1.55;
}

.mx-chat-guest-section {
    display: grid;
    gap: calc(var(--m-space) * 3);
}

.mx-chat-guest-section-title {
    margin: 0;
    color: var(--m-gold, #d4af37);
    font-size: var(--m-type-12);
    font-weight: var(--m-weight);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mx-chat-guest-rooms {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: calc(var(--m-space) * 2);
}

.mx-chat-guest-room {
    display: grid;
    gap: calc(var(--m-space) * 1);
    padding: calc(var(--m-space) * 3) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.mx-chat-guest-room:last-child {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mx-chat-guest-room-name {
    color: var(--m-text, #f7f3ec);
    font-size: var(--m-type-16);
    font-weight: var(--m-weight);
}

.mx-chat-guest-room-desc {
    color: var(--mp-muted, #c8c2b6);
    font-size: var(--m-type-14);
    line-height: 1.45;
}

.mx-chat-guest-room-count {
    color: #a8a296;
    font-size: var(--m-type-12);
}

.mx-chat-guest-empty {
    margin: 0;
    color: var(--mp-muted, #c8c2b6);
    font-size: var(--m-type-14);
}

.mx-chat-guest-rules {
    margin: 0;
    padding-left: 1.25rem;
    display: grid;
    gap: calc(var(--m-space) * 2);
    color: var(--m-text, #f7f3ec);
    font-size: var(--m-type-14);
    line-height: 1.5;
}

.mx-chat-guest-cta {
    display: flex;
    flex-wrap: wrap;
    gap: calc(var(--m-space) * 3);
    align-items: center;
}

.mx-chat-guest-cta .m-btn {
    min-height: 44px;
}

@media (max-width: 639.98px) {
    .mx-chat-guest {
        padding: calc(var(--m-space) * 4) calc(var(--m-space) * 3) calc(var(--m-space) * 8);
        gap: calc(var(--m-space) * 6);
    }

    .mx-chat-guest-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .mx-chat-guest-cta .m-btn {
        width: 100%;
        justify-content: center;
    }
}
