/* TravelDATE — turvenn-inspired clean layout */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
html::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

body {
    font-family: Georgia, 'Times New Roman', serif;
    background: #f5f0e8;
    color: #333;
    line-height: 1.5;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: clip;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
body::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

* {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

a { color: #2c5f2e; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: linear-gradient(135deg, #1a3320 0%, #243828 50%, #2d2d2d 100%);
    color: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.18);
}
.header-inner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.65rem 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    text-decoration: none;
    flex-shrink: 0;
}
.logo:hover { text-decoration: none; color: #fff; }
.logo-mark {
    display: block;
    width: 2.15rem;
    height: 2.15rem;
    flex-shrink: 0;
    object-fit: contain;
}
.logo-text {
    display: inline-flex;
    align-items: baseline;
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}
.logo-wordmark-travel {
    color: #fff;
    font-weight: 500;
}
.logo-wordmark-date {
    color: #f4c430;
    font-weight: 500;
    font-size: 1.2em;
    letter-spacing: 0.06em;
}

.main-nav {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
}
.main-nav-guest { justify-content: flex-end; }
.nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    font-weight: 500;
    text-decoration: none;
    padding: 0.45rem 0.75rem;
    border-radius: 4px;
    transition: color 0.15s, background 0.15s;
}
.nav-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    text-decoration: none;
}
.nav-link.active {
    color: #f4c430;
    background: rgba(244, 196, 48, 0.12);
}
.nav-mobile-extras { display: none; }
.nav-desktop-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    flex: 1;
    justify-content: center;
}
.mobile-drawer,
.mobile-drawer-backdrop { display: none; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-shrink: 0;
}
.header-online {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.2);
    margin-right: 0.25rem;
}
.online-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #6fcf6f;
    box-shadow: 0 0 6px rgba(111, 207, 111, 0.8);
    animation: pulse-online 2s ease-in-out infinite;
}
@keyframes pulse-online {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.55; }
}
.header-icon-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    transition: background 0.15s, color 0.15s;
}
.header-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #f4c430;
    text-decoration: none;
}
.header-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    font-weight: bold;
    line-height: 16px;
    text-align: center;
}
.header-user-menu { position: relative; margin-left: 0.15rem; }
.header-user-trigger {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.25rem 0.5rem 0.25rem 0.3rem;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.15);
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.header-user-trigger:hover,
.header-user-trigger.active {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(244, 196, 48, 0.4);
}
.header-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.35);
}
.header-username {
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.header-chevron { opacity: 0.7; flex-shrink: 0; }
.btn-header-cta {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    border-radius: 999px;
    background: #f4c430;
    color: #1a3320 !important;
    font-weight: bold;
    text-decoration: none !important;
    border: none;
}
.btn-header-cta:hover { background: #e6b820; text-decoration: none !important; }

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.is-open .dropdown-menu { display: block; }
.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 0.4rem);
    right: 0;
    background: #fff;
    border: 1px solid #ddd;
    min-width: 190px;
    z-index: 10050;
    border-radius: 6px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    overflow: hidden;
    padding: 0.35rem 0;
}
.dropdown-menu a {
    display: block;
    padding: 0.55rem 1rem;
    color: #333 !important;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    text-decoration: none;
}
.dropdown-menu a:hover {
    background: #f5f0e8;
    text-decoration: none;
}
.dropdown-logout {
    border-top: 1px solid #eee;
    margin-top: 0.25rem;
    padding-top: 0.65rem !important;
    color: #c0392b !important;
}
.dropdown-form { margin: 0; }
.dropdown-item {
    display: block;
    width: 100%;
    padding: 0.55rem 1rem;
    border: none;
    background: none;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    text-align: left;
    cursor: pointer;
}
.dropdown-item:hover { background: #f5f0e8; }
.dropdown-item-muted {
    color: #999;
    cursor: default;
}
.dropdown-item-muted:hover { background: transparent; }

/* Layout */
.page-wrap {
    flex: 1;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem 3rem;
}
.page-wrap--map { max-width: none; padding: 0; }

/* Member map hero */
.map-hero {
    position: relative;
    height: calc(100vh - 64px);
    min-height: 520px;
    background: #1a2e1a;
}
#member-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}
.map-hero-overlay {
    position: absolute;
    top: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 500;
    text-align: center;
    color: #fff;
    background: rgba(20, 35, 20, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 0.9rem 1.6rem;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
    pointer-events: none;
}
.map-hero-overlay h1 {
    color: #fff;
    font-size: 1.8rem;
    margin-bottom: 0.2rem;
}
.map-hero-overlay p {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    opacity: 0.9;
}
.map-locate-btn {
    position: absolute;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #fff;
    color: #2c5f2e;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.28);
}
.map-locate-btn:hover:not(:disabled) { background: #f5f0e8; }
.map-locate-btn.is-loading {
    opacity: 0.65;
    cursor: wait;
}
.map-locate-icon {
    display: block;
}
.map-locate-btn:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}
.map-region-nav {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1100;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    max-width: 11rem;
}
.map-region-btn {
    padding: 0.4rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.94);
    color: #2c5f2e;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    line-height: 1.2;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.map-region-btn:hover {
    background: #f5f0e8;
    border-color: #2c5f2e;
}
.map-region-btn.is-active {
    background: #2c5f2e;
    color: #fff;
    border-color: #2c5f2e;
}
.map-info-panel {
    position: absolute;
    top: 0.9rem;
    left: 3rem;
    z-index: 1100;
    width: min(340px, calc(100% - 2rem));
    max-height: calc(100% - 5.5rem);
    display: none;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
    overflow: hidden;
    pointer-events: auto;
}
.map-info-panel.is-visible {
    display: flex;
}
.map-info-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    background: #f0ebe0;
    border-bottom: 1px solid #ddd;
}
.map-info-panel-header h2 {
    font-size: 1.05rem;
    color: #2c5f2e;
    margin: 0;
}
.map-info-subtitle {
    margin: 0.2rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #666;
}
.map-info-close {
    border: none;
    background: transparent;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.map-info-close:hover { color: #333; }
.map-info-cards {
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem;
}
.map-member-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.85rem;
    background: #faf8f4;
    border: 1px solid #e5dfd3;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}
.map-member-card-info {
    flex: 1;
    min-width: 0;
}
.map-member-card-name {
    display: block;
    font-size: 1rem;
    font-weight: bold;
    color: #2c5f2e;
    text-decoration: none;
    margin-bottom: 0.15rem;
}
.map-member-card-name:hover { text-decoration: underline; }
.map-member-card-meta,
.map-member-card-location {
    margin: 0.1rem 0;
    font-size: 0.82rem;
    color: #555;
}
.map-member-card-location { color: #2c5f2e; font-weight: bold; }
.map-member-card-seeking {
    margin: 0.35rem 0 0.5rem;
    font-size: 0.82rem;
    color: #444;
    line-height: 1.35;
}
.map-member-card-seeking span {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #888;
    margin-bottom: 0.1rem;
}
.map-member-card-seeking.is-empty { color: #999; font-style: italic; }
.map-member-card-photo {
    flex-shrink: 0;
    width: 76px;
    height: 76px;
    margin-left: 13px;
    border-radius: 4px;
    overflow: hidden;
    border: 2px solid #2c5f2e;
    background-color: #ddd;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: block;
    text-decoration: none;
}
.map-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    z-index: 2;
    background: rgba(245, 240, 232, 0.92);
    text-align: center;
    padding: 2rem;
}
.map-marker-wrap { background: transparent; border: none; }
.leaflet-div-icon.map-marker-wrap {
    background: transparent;
    border: none;
    cursor: pointer;
    width: 52px !important;
    height: 52px !important;
}
.map-marker-cluster {
    position: relative;
    width: 52px;
    height: 52px;
    pointer-events: auto;
}
.map-marker-pin {
    width: 52px;
    height: 52px;
    border-radius: 4px;
    overflow: hidden;
    border: 3px solid #fff;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
    background-color: #ddd;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    box-sizing: border-box;
}
.map-marker-count {
    position: absolute;
    top: -6px;
    right: -8px;
    min-width: 24px;
    height: 24px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2c5f2e;
    color: #fff;
    border: 2px solid #fff;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    line-height: 20px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.leaflet-popup.map-member-popup .leaflet-popup-content { margin: 0; }
.map-popup {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    padding: 0.5rem;
}
.map-popup-photo img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c5f2e;
}
.map-popup-name { color: #2c5f2e; text-decoration: none; font-size: 1rem; }
.map-popup-name:hover { text-decoration: underline; }
.map-popup-body p { margin: 0.15rem 0; color: #555; }
.map-popup-location { color: #2c5f2e; font-weight: bold; }
.map-popup .btn { margin-top: 0.4rem; }
.map-popup-group-count {
    margin: 0 0 0.5rem;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #666;
}
.map-popup-list {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    max-height: 220px;
    overflow-y: auto;
}
.map-popup-list-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
}
.map-popup-list-item:hover { background: #f5f0e8; }
.map-popup-list-item img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c5f2e;
    flex-shrink: 0;
}
.map-popup-list-item span {
    display: flex;
    flex-direction: column;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}
.map-popup-list-item small { color: #666; }

.layout-page {
    max-width: 1100px;
    margin: 0 auto;
}
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.5rem;
    align-items: start;
}
.main-content { min-width: 0; }
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.stamps-info-widget h3 {
    margin-top: 0;
    color: #2c5f2e;
}
.stamps-info-widget p,
.stamps-info-widget li {
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    color: #555;
    line-height: 1.5;
}
.stamps-info-widget p { margin: 0 0 0.85rem; }
.stamps-info-widget p:last-child { margin-bottom: 0; }
.stamps-info-widget ul {
    margin: 0 0 0.85rem;
    padding-left: 1.1rem;
}
.stamps-info-widget li + li { margin-top: 0.35rem; }
.stamps-info-widget .btn {
    width: 100%;
    margin-top: 0.25rem;
}
.stamps-info-highlight {
    padding: 0.75rem 0.85rem;
    margin-bottom: 0.85rem;
    background: #f5f0e8;
    border: 1px solid #e5dfd3;
    border-left: 3px solid #2c5f2e;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
    color: #444;
    line-height: 1.45;
}
.stamps-info-highlight strong { color: #2c5f2e; }

/* Hero */
.hero-banner {
    height: 180px;
    background: linear-gradient(rgba(0,0,0,0.2), rgba(0,0,0,0.2)),
        url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1200&h=400&fit=crop') center/cover;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
.hero-banner.small { height: 100px; }

/* Typography */
h1 { font-size: 2rem; margin-bottom: 0.75rem; color: #2c2c2c; }
h2 { font-size: 1.3rem; margin-bottom: 0.75rem; color: #444; }
h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.intro { color: #666; margin-bottom: 1.5rem; font-family: Arial, sans-serif; font-size: 0.95rem; }
.guest-cta-banner {
    background: linear-gradient(135deg, #e8f4e8, #f5f0e8);
    border: 1px solid #b8d4b8;
    border-left: 4px solid #2c5f2e;
    border-radius: 4px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #444;
}
.guest-cta-banner a { color: #2c5f2e; font-weight: bold; }
.guest-profile-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    border: 1px solid #888;
    background: #e8e0d0;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
}
.btn:hover { background: #d8d0c0; text-decoration: none; }
.btn-primary { background: #2c5f2e; color: #fff; border-color: #2c5f2e; }
.btn-primary:hover { background: #1e4620; }
.btn-small { padding: 0.3rem 0.7rem; font-size: 0.8rem; }
.btn-danger { background: #c0392b; color: #fff; border-color: #c0392b; }
.btn-active { background: #f4c430; border-color: #d4a410; }
.inline-form { display: inline; }

/* Flash messages */
.flash {
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.flash-success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.flash-error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }
.flash-notice { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }
.flash-notice a { color: #2c5f2e; font-weight: bold; }
.profile-incomplete-notice p { margin: 0 0 0.5rem; }
.profile-incomplete-notice p:last-child { margin-bottom: 0; }
.flash--dismiss {
    opacity: 0;
    margin-bottom: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.3s ease, margin 0.3s ease, padding 0.3s ease;
}
.megaphone-toast {
    position: sticky;
    top: 0.75rem;
    z-index: 5;
    margin-bottom: 0.75rem;
}

/* Forms */
label {
    display: block;
    margin-bottom: 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="date"], input[type="number"], input[type="file"],
select, textarea {
    display: block;
    width: 100%;
    padding: 0.4rem 0.6rem;
    margin-top: 0.25rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background: #fff;
}
.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1.5rem;
}
.form-grid-pair {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem 1rem;
    grid-column: 1 / -1;
}
.form-grid-pair label { margin-bottom: 0; min-width: 0; }
.form-grid-pair-note {
    grid-column: 1 / -1;
    margin: 0;
}
.form-grid-triple {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem 1rem;
    grid-column: 1 / -1;
}
.form-grid-triple label { margin-bottom: 0; min-width: 0; }
.form-grid-single {
    grid-column: 1 / -1;
    margin-bottom: 0;
    min-width: 0;
}
.form-section {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border-radius: 3px;
}
.form-section h2 {
    border-bottom: 1px solid #eee;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

/* Sliders */
.slider-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem 2rem;
}
.slider-row {
    display: grid;
    grid-template-columns: 140px 1fr 30px;
    align-items: center;
    gap: 0.5rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}
.slider-input { width: 100%; accent-color: #2c5f2e; }
.slider-value { text-align: center; font-weight: bold; color: #2c5f2e; }

/* Auth */
.auth-page {
    display: flex;
    justify-content: center;
    padding: 3rem 1rem;
}
.auth-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 2rem;
    width: 100%;
    max-width: 420px;
    border-radius: 4px;
}
.auth-card h1 { font-size: 1.5rem; }
.auth-card h2 { font-size: 1.35rem; margin-bottom: 0.25rem; }
.subtitle { color: #666; font-family: Arial, sans-serif; margin-bottom: 1.5rem; }
.auth-footer { margin-top: 1rem; font-family: Arial, sans-serif; font-size: 0.9rem; }
.auth-secondary-action { margin-top: 0.75rem; text-align: center; }
.btn-block { width: 100%; }
.field-hint {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.3;
}
.password-input-wrap {
    position: relative;
    display: block;
    margin-top: 0.25rem;
}
.password-input-wrap input {
    margin-top: 0;
    padding-right: 3.5rem;
}
.password-toggle {
    position: absolute;
    top: 50%;
    right: 0.35rem;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    color: #2c5f2e;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
}
.password-toggle:hover { text-decoration: underline; }
.password-input-wrap--admin {
    margin-top: 0;
}
.password-eye-toggle {
    position: absolute;
    top: 50%;
    right: 0.45rem;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #666;
    cursor: pointer;
    padding: 0;
    overflow: hidden;
}
.password-eye-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}
.password-eye-icon--hide {
    display: none;
}
.password-eye-toggle.is-revealed .password-eye-icon--show {
    display: none;
}
.password-eye-toggle.is-revealed .password-eye-icon--hide {
    display: block;
}
.password-eye-toggle:hover {
    color: #2c5f2e;
    background: rgba(44, 95, 46, 0.08);
}
.password-eye-toggle:focus-visible {
    outline: 2px solid #2c5f2e;
    outline-offset: 1px;
}
.password-input-wrap--admin input {
    width: 100%;
    padding-right: 2.75rem;
}
.password-input-wrap--admin input::-ms-reveal,
.password-input-wrap--admin input::-ms-clear {
    display: none;
}
.license-key-input {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    letter-spacing: 0.03em;
}
.license-key-input.license-key-masked {
    -webkit-text-security: disc;
}

/* Register */
.register-page {
    padding: 2rem 1.5rem 3rem;
}
.register-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: 2.5rem;
    align-items: start;
    max-width: 960px;
    margin: 0 auto;
}
.register-promo {
    padding: 1.5rem 0;
}
.register-promo-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    padding: 0.2rem 0.65rem;
    background: #e8f4e8;
    color: #2c5f2e;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.register-promo h1 {
    font-size: 2rem;
    line-height: 1.2;
    margin-bottom: 0.85rem;
    color: #2c5f2e;
}
.register-promo-lead {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.55;
    color: #555;
    margin-bottom: 1.5rem;
}
.register-benefits {
    list-style: none;
    margin: 0 0 1.5rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.register-benefits li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    color: #444;
}
.register-benefit-icon {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
}
.register-promo-note {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
}
.register-promo-note a { color: #2c5f2e; font-weight: bold; }
.register-form-wrap { width: 100%; }
.register-card {
    max-width: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.register-form-grid {
    margin-bottom: 0.25rem;
}
.register-terms {
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
}
.register-terms a { color: #2c5f2e; font-weight: bold; }
.beta-success-card { text-align: center; }
.beta-success-kicker {
    display: inline-block;
    margin: 0 0 0.5rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: #d4edda;
    color: #155724;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.beta-password-reveal {
    margin: 1.25rem 0 0.75rem;
    padding: 1rem 1.25rem;
    background: #f5f0e8;
    border: 2px dashed #2c5f2e;
    border-radius: 6px;
}
.beta-password-label {
    display: block;
    margin-bottom: 0.35rem;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: bold;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.beta-password-value {
    display: block;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2c5f2e;
    letter-spacing: 0.06em;
}
.beta-password-note { margin-bottom: 1.25rem; }
.beta-request-page {
    min-height: 100vh;
    padding: 2rem 1.5rem;
}
.beta-request-promo {
    padding: 1.5rem 0;
}
.beta-request-promo .preview-gate-logo {
    margin-bottom: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}
.beta-request-promo .preview-gate-logo .logo-mark {
    width: 3.25rem;
    height: 3.25rem;
}
.beta-request-promo .preview-gate-logo .logo-text {
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
}
.beta-request-promo .preview-gate-logo .logo-wordmark-travel {
    color: #2c5f2e;
    font-weight: 500;
}
.beta-request-promo .preview-gate-logo .logo-wordmark-date {
    color: #c99210;
    font-weight: 500;
    font-size: 1.2em;
    letter-spacing: 0.06em;
}

/* Profile */
.profile-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid #ddd;
}
.profile-tabs a {
    padding: 0.5rem 1.2rem;
    font-family: Arial, sans-serif;
    color: #666;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    text-decoration: none;
}
.profile-tabs a.active { color: #2c5f2e; border-bottom-color: #2c5f2e; font-weight: bold; }

.profile-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
}
.profile-photo {
    width: 100%;
    aspect-ratio: 3/4;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.profile-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.75rem 0; }
.profile-summary, .profile-status {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #555;
    margin-bottom: 0.5rem;
}
.profile-text-block {
    margin-top: 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.profile-center .profile-text-block {
    margin-top: 0;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e0d8cc;
    padding: 0.75rem 1rem;
    border-radius: 3px;
}
.profile-center .profile-text-block h3 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    color: #2c5f2e;
}
.profile-center .profile-text-block p {
    margin: 0;
}
.stamp-passport-section--tab {
    margin-top: 0;
    padding: 1.15rem 1.25rem 1.25rem;
}
.profile-stamps-header {
    margin-bottom: 1rem;
}
.profile-stamps-intro {
    margin: 0 0 0.45rem;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #444;
    line-height: 1.45;
}
.profile-stamps-overlap {
    margin: 0 0 0.45rem;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    color: #2c5f2e;
    font-weight: bold;
    line-height: 1.4;
}
.profile-stamps-overlap--none {
    color: #888;
    font-weight: normal;
}
.profile-stamps-count {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #999;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.profile-stamps-manage {
    margin: 0.65rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
}
.profile-stamps-legend {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.85rem;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #666;
}
.profile-stamps-legend-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2rem;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: #2c5f2e;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    flex-shrink: 0;
}
.stamp-collection--profile-tab {
    gap: 0.85rem 1rem;
}
.stamp-shared-badge {
    position: absolute;
    top: -0.2rem;
    right: -0.15rem;
    z-index: 1;
    padding: 0.12rem 0.38rem;
    border-radius: 999px;
    background: #2c5f2e;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.58rem;
    font-weight: bold;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(44, 95, 46, 0.25);
}
.profile-stamps-manage a {
    color: #2c5f2e;
    font-weight: bold;
    text-decoration: none;
}
.profile-stamps-manage a:hover {
    text-decoration: underline;
}
.stamp-passport-section {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #faf8f5;
    border: 1px solid #e5dfd3;
    border-radius: 4px;
}
.stamp-passport-section h3 {
    margin: 0 0 0.85rem;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    color: #2c5f2e;
}
.stamp-collection {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
    align-items: flex-start;
}
.stamp-collection--manage { margin-top: 1rem; }
.stamp-item {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    width: 100px;
}
.stamp-item--profile:not(.stamp-item--shared) .stamp-image {
    transform: rotate(var(--stamp-rotate, -4deg));
}
.stamp-item--profile.stamp-item--shared .stamp-image {
    animation: stamp-shared-float 2.6s ease-in-out infinite;
    animation-delay: var(--stamp-delay, 0s);
}
@keyframes stamp-shared-float {
    0%, 100% {
        transform: rotate(var(--stamp-rotate, -4deg)) translateY(0) scale(1);
        filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
    }
    50% {
        transform: rotate(calc(var(--stamp-rotate, -4deg) + 3deg)) translateY(-4px) scale(1.05);
        filter: drop-shadow(0 6px 10px rgba(44, 95, 46, 0.22));
    }
}
@media (prefers-reduced-motion: reduce) {
    .stamp-item--profile.stamp-item--shared .stamp-image {
        animation: none;
        transform: rotate(var(--stamp-rotate, -4deg));
    }
}
.stamp-image {
    width: 100px;
    height: 100px;
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.12));
}
.stamp-name {
    font-family: Arial, sans-serif;
    font-size: 0.65rem;
    color: #666;
    text-align: center;
    line-height: 1.2;
    max-width: 100px;
}
.stamp-remove-form { position: absolute; top: -0.35rem; right: -0.35rem; }
.stamp-remove-btn {
    width: 1.35rem;
    height: 1.35rem;
    border: none;
    border-radius: 50%;
    background: #c0392b;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}
.stamp-remove-btn:hover { background: #962d22; }
.stamp-add-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}
.stamp-add-form label { flex: 1; min-width: 200px; margin: 0; }

/* Stamps manage page */
.stamps-page { display: flex; flex-direction: column; gap: 1rem; }
.stamps-add-panel,
.stamps-collection-panel,
.stamps-empty-panel {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1rem 1.15rem;
}
.stamps-section-title {
    margin: 0 0 0.85rem;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #888;
}
.stamp-item--manage .stamp-image {
    transform: rotate(var(--stamp-rotate, -4deg));
}
.travel-status-banner {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    background: linear-gradient(135deg, #e8f4e8, #f5f0e8);
    border: 1px solid #b8d4b8;
    border-left: 4px solid #2c5f2e;
    padding: 1rem 1.1rem;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
}
.travel-status-icon {
    font-size: 1.6rem;
    line-height: 1;
    color: #2c5f2e;
}
.travel-status-banner strong {
    display: block;
    color: #2c5f2e;
    font-size: 1rem;
    margin-bottom: 0.15rem;
}
.travel-status-home,
.travel-status-updated {
    display: block;
    font-size: 0.82rem;
    color: #666;
}
.travel-quick-form {
    background: #fff;
    border: 1px solid #ddd;
    margin-bottom: 1.25rem;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    overflow: hidden;
}
.travel-quick-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 1rem;
    border: none;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    color: inherit;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.travel-quick-toggle:hover {
    background: #faf8f5;
}
.travel-quick-chevron {
    flex-shrink: 0;
    color: #2c5f2e;
    transition: transform 0.2s ease;
}
.travel-quick-toggle[aria-expanded="true"] .travel-quick-chevron {
    transform: rotate(180deg);
}
.travel-quick-collapse {
    display: none;
    padding: 0 1rem 1rem;
    border-top: 1px solid #eee8df;
}
.travel-quick-collapse.is-open {
    display: block;
}
.travel-quick-collapse .checkbox-label {
    display: block;
    margin-top: 0.85rem;
}
.travel-quick-form h3 {
    margin-bottom: 0.6rem;
    font-size: 1rem;
}
.travel-quick-fields {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin: 0.75rem 0;
}
@media (max-width: 640px) {
    .travel-quick-fields {
        grid-template-columns: 1fr;
    }
}
.travel-badge {
    color: #2c5f2e;
    font-weight: bold;
}
.travel-badge-inline {
    color: #2c5f2e;
    font-size: 0.85rem;
}
.profile-travel-line {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #2c5f2e;
    margin-bottom: 0.5rem;
}
.form-hint {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 0.75rem;
}
.info-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}
.info-table caption {
    text-align: left;
    font-weight: bold;
    font-size: 1rem;
    padding-bottom: 0.5rem;
    color: #444;
}
.info-table th, .info-table td {
    padding: 0.4rem 0.6rem;
    border: 1px solid #e0d8cc;
    text-align: left;
}
.info-table th { background: #f0ebe0; width: 40%; font-weight: normal; color: #666; }
.trait-section {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid #e0d8cc;
    padding: 0.75rem 1rem;
    border-radius: 3px;
}
.trait-section p { margin-bottom: 0.3rem; }

/* Search */
.search-page-title { margin-bottom: 0.75rem; }
.search-filters-toggle {
    display: none;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    color: #2c2c2c;
    font-family: Arial, sans-serif;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.search-filters-toggle:hover { background: #faf8f5; }
.search-filters-chevron {
    flex-shrink: 0;
    color: #2c5f2e;
    transition: transform 0.2s ease;
}
.search-filters-toggle[aria-expanded="true"] .search-filters-chevron {
    transform: rotate(180deg);
}
.search-filters-collapse { display: block; }
.search-filters {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border-radius: 3px;
}
.filter-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.results-count { font-family: Arial, sans-serif; color: #666; margin-bottom: 1rem; }
.search-results-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}
.search-results-bar .results-count { margin-bottom: 0; }
.search-sort-form { margin: 0; }
.search-sort-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    color: #666;
    white-space: nowrap;
}
.search-sort-label select {
    width: auto;
    min-width: 10.5rem;
    margin: 0;
    font-size: 0.88rem;
}
.search-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.save-search-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 3px;
    max-width: 400px;
}
.save-search-form[hidden] { display: none; }
.saved-searches {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1.25rem;
    border-radius: 3px;
}
.saved-searches h3 { font-size: 1rem; margin-bottom: 0.75rem; color: #444; }
.saved-search-list { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.saved-search-item { display: flex; align-items: center; gap: 0.25rem; }
.search-results { display: flex; flex-direction: column; gap: 0.75rem; }
.search-traveling-bar {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    background: linear-gradient(135deg, #e8f4e8, #f5f0e8);
    border: 1px solid #b8d4b8;
    border-left: 4px solid #2c5f2e;
    border-radius: 6px;
    padding: 0.85rem 1rem;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
}
.search-traveling-icon {
    font-size: 1.5rem;
    line-height: 1;
    color: #2c5f2e;
    flex-shrink: 0;
}
.search-traveling-copy {
    flex: 1;
    min-width: 0;
}
.search-traveling-copy strong {
    display: block;
    color: #2c5f2e;
    font-size: 0.95rem;
    margin-bottom: 0.1rem;
}
.search-traveling-copy span {
    display: block;
    font-size: 0.82rem;
    color: #666;
}
.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding-top: 1.4rem;
}
.filter-checkbox input {
    width: auto;
    margin: 0;
}
.search-card {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 6px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.search-card.is-traveling {
    border-color: #b8d4b8;
    border-left: 4px solid #2c5f2e;
    background: linear-gradient(90deg, #f8fbf8 0%, #fff 18%);
}
.search-card:hover {
    border-color: #2c5f2e;
    box-shadow: 0 2px 8px rgba(44, 95, 46, 0.08);
    text-decoration: none;
}
.search-card-photo {
    position: relative;
    flex-shrink: 0;
}
.search-card img {
    width: 88px;
    height: 88px;
    object-fit: cover;
    border-radius: 6px;
    display: block;
}
.search-travel-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #2c5f2e;
    color: #fff;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}
.search-card-body { flex: 1; min-width: 0; }
.search-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.search-card h3 {
    font-size: 1.1rem;
    color: #2c5f2e;
    margin: 0;
}
.search-online {
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: bold;
    color: #2c5f2e;
    background: #e8f4e8;
    padding: 0.15rem 0.45rem;
    border-radius: 999px;
    flex-shrink: 0;
}
.search-card .meta {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin: 0.15rem 0 0.35rem;
}
.search-travel-now {
    margin: 0 0 0.15rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    color: #333;
}
.search-travel-label {
    color: #666;
    margin-right: 0.25rem;
}
.search-travel-now strong { color: #2c5f2e; }
.search-travel-home,
.search-travel-updated,
.search-location {
    margin: 0 0 0.15rem;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #777;
}
.search-travel-updated { color: #999; font-size: 0.75rem; }
.search-bio {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin: 0.35rem 0 0;
}

/* Thumbnail grids */
.thumb-section { margin-bottom: 2rem; }
.thumb-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}
.thumb {
    text-align: center;
    text-decoration: none;
    color: inherit;
}
.thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
}
.thumb span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    color: #555;
    margin-top: 0.2rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.thumb:hover img { border-color: #2c5f2e; }

/* Overview member cards (temp-style grid) */
.member-cards-section { margin-bottom: 2rem; }
.member-cards-section h2 {
    font-family: Arial, sans-serif;
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: #333;
}
.member-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}
.member-card {
    position: relative;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}
.member-card:hover {
    transform: translateY(-2px);
}
.member-card-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    display: block;
}
.member-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 10px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: #fff;
}
.member-card-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 16px;
    border-radius: 2px;
    object-fit: cover;
}
.member-card-name {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
}
.member-card-location {
    font-family: Arial, sans-serif;
    font-size: 12px;
    color: #ccc;
    margin-top: 2px;
}
.member-cards-empty {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
}

/* Profile of the day */
.profile-of-day { margin-bottom: 2rem; }
.pod-card {
    display: flex;
    gap: 1.5rem;
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
}
.pod-card img { width: 200px; height: 250px; object-fit: cover; border-radius: 3px; }
.pod-card h3 { color: #2c5f2e; margin-bottom: 0.5rem; }
.pod-card p { font-family: Arial, sans-serif; font-size: 0.9rem; color: #555; }

/* Photos */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
}
.gallery-item { position: relative; }
.gallery-item-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: 3px;
}
.gallery-item-btn:focus-visible {
    outline: 2px solid #2c5f2e;
    outline-offset: 2px;
}
.gallery-item img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border: 1px solid #ddd;
    border-radius: 3px;
    display: block;
    transition: border-color 0.15s;
}
.gallery-item-btn:hover img { border-color: #2c5f2e; }
.manage-gallery .gallery-item-media { position: relative; }
.manage-gallery .gallery-item-toolbar {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: flex;
    gap: 0.25rem;
    z-index: 2;
}
.gallery-icon-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    border: none;
    border-radius: 3px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
}
.gallery-icon-btn:hover { background: rgba(0, 0, 0, 0.75); }
.gallery-icon-btn--danger:hover { background: #c0392b; }
.gallery-icon-btn svg { width: 1rem; height: 1rem; display: block; }
.gallery-icon-btn.is-busy {
    opacity: 0.55;
    cursor: wait;
    pointer-events: none;
}
.gallery-actions { margin-top: 0.4rem; display: flex; gap: 0.3rem; flex-wrap: wrap; }

/* Photo lightbox */
body.lightbox-open { overflow: hidden; }
body.lightbox-open.has-mobile-tab-bar .page-wrap,
body.lightbox-open:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) .page-wrap {
    overflow: hidden;
}
body.lightbox-open .site-header,
body.lightbox-open .mobile-tab-bar {
    visibility: hidden;
    pointer-events: none;
}
.photo-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100%;
    height: 100dvh;
    min-height: 100dvh;
    z-index: 10050;
    background: rgba(0, 0, 0, 0.96);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: none;
    max-width: none;
    max-height: none;
}
.photo-lightbox[hidden] { display: none; }
.lightbox-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    padding: 3rem 4.5rem;
}
.lightbox-stage img {
    max-width: 100vw;
    max-height: 100%;
    max-height: 100dvh;
    object-fit: contain;
    user-select: none;
    transition: transform 0.2s ease;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next,
.lightbox-rotate {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    cursor: pointer;
    font-family: Arial, sans-serif;
    line-height: 1;
    transition: background 0.15s;
    z-index: 1;
}
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-rotate:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox-close {
    top: 1rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-rotate {
    top: 1rem;
    right: 4.25rem;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
#chat-photo-lightbox .lightbox-rotate {
    right: 1rem;
}
#chat-photo-lightbox .lightbox-rotate.is-loading,
#chat-photo-lightbox .lightbox-rotate:disabled {
    opacity: 0.65;
    pointer-events: none;
}
#chat-photo-lightbox .lightbox-close {
    top: 1rem;
    left: 1rem;
    right: auto;
}
.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lightbox-prev .msg-icon,
.lightbox-next .msg-icon {
    width: 24px;
    height: 24px;
}
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-counter {
    position: absolute;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    color: #ccc;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}
.badge {
    position: absolute;
    top: 0.4rem;
    left: 0.4rem;
    background: #2c5f2e;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    padding: 0.15rem 0.4rem;
    border-radius: 2px;
}
.upload-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 3px;
}
.upload-form .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0 0 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: normal;
    cursor: pointer;
}
.upload-form .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.manage-gallery .gallery-actions .checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.45rem;
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    font-weight: normal;
    cursor: pointer;
    width: 100%;
}
.manage-gallery .gallery-actions .checkbox-label input[type="checkbox"] {
    width: auto;
    margin-top: 0.1rem;
    flex-shrink: 0;
}
.badge-muted {
    background: #666;
}
.profile-photos-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-bottom: 1rem;
}
.profile-photos-manage {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.profile-photo-item {
    position: relative;
}
.profile-photo-item .gallery-item-btn {
    position: relative;
}
.profile-photo-item .badge {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    z-index: 1;
    pointer-events: none;
}
.profile-photo-item .profile-photo-badge {
    top: 2.15rem;
}
.profile-photo-edit-option {
    display: none;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 0.5rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    font-weight: normal;
    cursor: pointer;
}
.profile-photo-edit-option input[type="checkbox"] {
    width: auto;
    margin-top: 0.15rem;
    flex-shrink: 0;
}
.profile-photo-gallery.is-editing .profile-photo-edit-option {
    display: flex;
}
.profile-photo-gallery.is-editing .profile-photo-view {
    cursor: default;
    pointer-events: none;
}
.profile-photos-edit-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}
.profile-photos-edit-actions[hidden] {
    display: none;
}
.gallery-item-media .badge + .badge {
    top: 2.15rem;
}
.upload-overlay-open { overflow: hidden; }
.upload-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.65);
}
.upload-overlay[hidden] { display: none; }
.upload-overlay-card { text-align: center; color: #fff; }
.upload-progress-ring {
    position: relative;
    width: 120px;
    height: 120px;
    margin: 0 auto 1rem;
}
.upload-progress-ring svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}
.upload-progress-track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.22);
    stroke-width: 8;
}
.upload-progress-fill {
    fill: none;
    stroke: #7dd87d;
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 0.15s ease;
}
.upload-progress-value {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: Arial, sans-serif;
    font-size: 1.35rem;
    font-weight: bold;
}
.upload-progress-label {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #eee;
}

.photo-picker {
    margin-bottom: 1rem;
}
.photo-picker-label {
    display: block;
    margin-bottom: 0.55rem;
    font-weight: bold;
}
.photo-picker-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 2px dashed #2c5f2e;
    background: #f5f0e8;
    cursor: pointer;
    overflow: hidden;
    position: relative;
    margin: 0;
    transition: border-color 0.15s, background 0.15s;
}
.photo-picker-circle input[type="file"] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    opacity: 0;
}
.photo-picker-circle:hover {
    border-color: #4a8f4c;
    background: #eef6ee;
}
.photo-picker-circle.has-preview {
    border-style: solid;
    background: #fff;
}
.photo-picker-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-picker-placeholder {
    padding: 0 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #2c5f2e;
    font-weight: 600;
    text-align: center;
    line-height: 1.3;
}
.photo-picker-circle.has-preview .photo-picker-placeholder {
    display: none;
}
.field-status {
    display: block;
    margin-top: 0.3rem;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    min-height: 1.1rem;
}
.field-status--checking { color: #666; }
.field-status--available { color: #2c5f2e; font-weight: 600; }
.field-status--taken,
.field-status--invalid { color: #b33; font-weight: 600; }

/* Messages */
.messages-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}
.messages-back-link {
    display: none;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #2c5f2e;
    text-decoration: none;
    align-items: center;
    gap: 0.2rem;
}
.messages-back-link:hover { text-decoration: underline; }
.msg-icon {
    width: 20px;
    height: 20px;
    display: block;
    flex-shrink: 0;
}
.msg-icon-sm {
    width: 16px;
    height: 16px;
}
.msg-toolbar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    border-radius: 50%;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
}
.msg-toolbar-btn:hover {
    background: #f0ebe0;
    border-color: #2c5f2e;
    color: #2c5f2e;
}
.msg-toolbar-btn:active {
    transform: scale(0.96);
}
.dropdown-item-with-icon {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}
.dropdown-menu a.dropdown-item-with-icon {
    display: flex;
}
.messages-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 1rem;
    min-height: 560px;
}
.inbox-list {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow-y: auto;
    max-height: 640px;
}
.inbox-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    position: relative;
    transition: background 0.15s;
}
.inbox-item:hover,
.inbox-item.active {
    background: #f0ebe0;
    text-decoration: none;
}
.inbox-item.unread {
    background: #faf8f4;
    border-bottom: 2px solid #2c5f2e;
}
.inbox-item.unread strong { color: #2c5f2e; }
.inbox-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e5dfd3;
    flex-shrink: 0;
}
.inbox-body { flex: 1; min-width: 0; }
.inbox-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
    margin-bottom: 0.15rem;
}
.inbox-top strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inbox-body p {
    margin: 0;
    color: #666;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.inbox-item .meta {
    color: #999;
    font-size: 0.72rem;
    flex-shrink: 0;
}
.inbox-empty { padding: 2rem 1rem; text-align: center; }
.message-thread {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    overflow: hidden;
}
.thread-header {
    padding: 0.9rem 1.1rem;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.65rem;
    background: #faf8f4;
}
.thread-back-link {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
    color: #444;
    text-decoration: none;
    transition: background 0.15s;
}
.thread-back-link:hover {
    background: #f0ebe0;
    text-decoration: none;
}
.thread-user {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    flex: 1;
}
.thread-avatar-link { flex-shrink: 0; }
.thread-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #2c5f2e;
    display: block;
}
.thread-header h2 {
    font-size: 1.05rem;
    margin: 0;
}
.thread-header h2 a {
    color: #2c5f2e;
    text-decoration: none;
}
.thread-header h2 a:hover { text-decoration: underline; }
.thread-meta {
    margin: 0.15rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #777;
}
.thread-menu {
    position: relative;
    flex-shrink: 0;
}
.thread-menu-btn {
    padding: 0;
}
.thread-messages {
    flex: 1;
    padding: 1rem 1.1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: linear-gradient(180deg, #f8f6f2 0%, #fff 100%);
}
.thread-empty,
.thread-placeholder {
    margin: auto;
    text-align: center;
    color: #888;
    font-family: Arial, sans-serif;
    padding: 2rem;
}
.thread-placeholder-icon {
    font-size: 3rem;
    color: #ccc;
    margin-bottom: 0.75rem;
}
.thread-placeholder h2 {
    font-size: 1.2rem;
    color: #444;
    margin-bottom: 0.5rem;
}
.message-date-divider {
    display: flex;
    justify-content: center;
    margin: 0.75rem 0 0.35rem;
}
.message-date-divider span {
    background: #e8e2d8;
    color: #666;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
}
.message-bubble {
    max-width: 72%;
    padding: 0.65rem 0.9rem;
    border-radius: 14px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.45;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
.message-bubble p { margin: 0; word-break: break-word; font-family: Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; }
.message-bubble a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
.message-bubble.sent a { color: #e8f5e9; }
.message-bubble.received a { color: #2c5f2e; }
.message-bubble.has-image {
    padding: 0.35rem;
    max-width: min(72%, 280px);
}
.message-bubble.has-image p {
    padding: 0.3rem 0.55rem 0;
}
.message-bubble.has-image .time {
    padding: 0 0.55rem 0.2rem;
}
.message-image-wrap {
    position: relative;
    display: block;
    width: 100%;
}
.message-image-btn {
    display: block;
    width: 100%;
    padding: 0;
    border: none;
    background: none;
    cursor: zoom-in;
    border-radius: 10px;
    overflow: hidden;
}
.message-image-rotate {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
    transition: background 0.15s, transform 0.1s;
}
.message-image-rotate:hover {
    background: rgba(44, 95, 46, 0.92);
}
.message-image-rotate:active {
    transform: scale(0.94);
}
.message-image-rotate .msg-icon {
    width: 15px;
    height: 15px;
}
.message-image-rotate.is-loading {
    opacity: 0.65;
    pointer-events: none;
}
.message-image {
    display: block;
    width: 100%;
    max-height: 240px;
    object-fit: cover;
    border-radius: 10px;
}
.message-bubble.sent {
    align-self: flex-end;
    background: #2c5f2e;
    color: #fff;
    border-bottom-right-radius: 4px;
}
.message-bubble.received {
    align-self: flex-start;
    background: #fff;
    border: 1px solid #e5dfd3;
    border-bottom-left-radius: 4px;
}
.message-bubble .time {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.68rem;
    opacity: 0.75;
    text-align: right;
}
.message-form {
    padding: 0.85rem 1rem 0.65rem;
    border-top: 1px solid #eee;
    background: #fff;
}
.message-compose {
    display: flex;
    align-items: flex-end;
    gap: 0.55rem;
}
.message-compose-field {
    flex: 1;
    display: flex;
    align-items: flex-end;
    min-width: 0;
    border: 1px solid #ccc;
    border-radius: 24px;
    background: #fff;
    padding: 0.3rem 0.45rem 0.3rem 0.3rem;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.message-compose-field:focus-within {
    border-color: #2c5f2e;
    box-shadow: 0 0 0 2px rgba(44, 95, 46, 0.12);
}
.message-attach-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    flex-shrink: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.message-attach-btn:hover {
    background: #f0ebe0;
    color: #2c5f2e;
}
.message-attach-btn input[type="file"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}
.message-emoji-wrap {
    position: relative;
    flex-shrink: 0;
}
.message-emoji-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    margin: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #777;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}
.message-emoji-btn:hover,
.message-emoji-btn[aria-expanded="true"] {
    background: #f0ebe0;
    color: #2c5f2e;
}
.message-emoji-picker {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: min(320px, calc(100vw - 2rem));
    max-height: min(420px, 55vh);
    overflow-y: auto;
    padding: 0.55rem 0.6rem 0.65rem;
    border: 1px solid #ddd;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    -webkit-overflow-scrolling: touch;
}
.message-emoji-picker-label {
    margin: 0.35rem 0 0.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #999;
}
.message-emoji-picker-label:first-child {
    margin-top: 0;
}
.message-emoji-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 0.15rem;
}
.message-emoji-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    aspect-ratio: 1;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    font-size: 1.35rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.12s, transform 0.1s;
}
.message-emoji-item:hover {
    background: #f5f0e6;
    transform: scale(1.08);
}
.message-emoji-grid--flags {
    grid-template-columns: repeat(10, 1fr);
}
.message-emoji-item--flag {
    font-size: 1.15rem;
}
.message-blocked-notice {
    padding: 1rem 1.1rem;
    border-top: 1px solid #eee;
    background: #faf8f4;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #777;
    text-align: center;
}
.message-blocked-notice p { margin: 0; }
.message-compose-field textarea {
    flex: 1;
    width: 100%;
    resize: none;
    min-height: 36px;
    max-height: 120px;
    padding: 0.5rem 0.65rem 0.5rem 0.15rem;
    border: none;
    border-radius: 0;
    background: transparent;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    line-height: 1.4;
}
.message-compose-field textarea:focus {
    outline: none;
}
.message-send-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: #2c5f2e;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(44, 95, 46, 0.25);
    transition: background 0.15s, transform 0.1s;
}
.message-send-btn:hover {
    background: #245026;
    color: #fff;
}
.message-send-btn:active {
    transform: scale(0.96);
}
.message-send-btn .msg-icon {
    margin-left: 2px;
}
.message-hint {
    margin: 0.35rem 0 0 0.65rem;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    color: #aaa;
}

/* Megaphone */
.widget {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 3px;
}
.widget h3 { font-size: 1rem; margin-bottom: 0.75rem; color: #444; }
.sidebar-pod-card {
    display: block;
    text-decoration: none;
    color: inherit;
}
.sidebar-pod-card img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 4px;
    display: block;
    margin-bottom: 0.65rem;
    border: 1px solid #e5dfd3;
}
.sidebar-pod-card:hover img { border-color: #2c5f2e; }
.sidebar-pod-body strong {
    display: block;
    color: #2c5f2e;
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
}
.sidebar-pod-body span {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 0.35rem;
}
.sidebar-pod-body p {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: #666;
    line-height: 1.4;
}
.sidebar-thumb-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.45rem;
}
.sidebar-thumb {
    text-align: center;
    text-decoration: none;
    color: inherit;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
}
.sidebar-thumb img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #ddd;
    display: block;
    margin-bottom: 0.2rem;
    transition: border-color 0.15s;
}
.sidebar-thumb:hover img { border-color: #2c5f2e; }
.sidebar-thumb span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #555;
}
.megaphone-item {
    border-top: 1px solid #eee;
    padding-top: 0.5rem;
    margin-top: 0.5rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}
.megaphone-item a { color: #2c5f2e; text-decoration: none; }
.megaphone-item a:hover { text-decoration: underline; }
.megaphone-item .meta { color: #999; font-size: 0.75rem; margin-left: 0.4rem; }
.widget-link { font-family: Arial, sans-serif; font-size: 0.85rem; display: block; margin-top: 0.5rem; }
.megaphone-card, .megaphone-page-form {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 3px;
    margin-bottom: 1rem;
}
.megaphone-card-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; font-family: Arial, sans-serif; }
.promo-widget p { font-family: Arial, sans-serif; font-size: 0.85rem; color: #666; margin-bottom: 0.75rem; }

/* Megaphone page */
.megaphone-page h1 {
    margin-bottom: 0.35rem;
    color: #2c5f2e;
}
.megaphone-page-header {
    margin-bottom: 1.5rem;
}
.megaphone-page-intro {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    max-width: 38rem;
    line-height: 1.5;
}
.megaphone-composer {
    background: linear-gradient(180deg, #fff 0%, #faf8f5 100%);
    border: 1px solid #e5dfd3;
    border-radius: 10px;
    padding: 1.15rem 1.25rem;
    margin-bottom: 1.75rem;
    box-shadow: 0 4px 16px rgba(44, 95, 46, 0.07);
}
.megaphone-composer-form {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}
.megaphone-composer-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5dfd3;
    flex-shrink: 0;
}
.megaphone-composer-body { flex: 1; min-width: 0; }
.megaphone-composer-body textarea {
    width: 100%;
    min-height: 96px;
    resize: vertical;
    border: 1px solid #e0dcd4;
    border-radius: 8px;
    padding: 0.85rem 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.5;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.megaphone-composer-body textarea:focus {
    outline: none;
    border-color: #2c5f2e;
    box-shadow: 0 0 0 3px rgba(44, 95, 46, 0.1);
}
.megaphone-composer-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid #eee8df;
}
.megaphone-composer-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.15rem 0.35rem;
    min-width: 0;
    flex: 1;
}
.megaphone-composer-meta-sep {
    color: #bbb;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
}
.megaphone-char-count {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #999;
    white-space: nowrap;
}
.megaphone-quota {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.35;
}
.megaphone-quota.is-at-limit {
    color: #b45309;
}
.megaphone-composer-form.is-limit-reached textarea {
    background: #f8f6f2;
    color: #888;
    cursor: not-allowed;
}
.megaphone-char-count.is-near-limit { color: #b45309; }
.megaphone-char-count.is-at-limit { color: #b91c1c; font-weight: bold; }
.megaphone-verify-notice {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
    background: #fff8e6;
    border: 1px solid #f0d78c;
    border-radius: 8px;
    padding: 0.85rem 1rem;
}
.megaphone-verify-notice a { color: #2c5f2e; font-weight: bold; }
.megaphone-feed-section {
    background: #faf8f5;
    border: 1px solid #e8e2d8;
    border-radius: 10px;
    padding: 1.25rem 1.25rem 1.5rem;
}
.megaphone-feed-title {
    font-size: 1rem;
    margin: 0 0 1rem 0;
    color: #444;
    font-weight: bold;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #e5dfd3;
}
.megaphone-feed-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.megaphone-post {
    display: flex;
    gap: 1rem;
    background: #fff;
    border: 1px solid #e5dfd3;
    border-radius: 10px;
    padding: 1.1rem 1.2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
}
.megaphone-post--new {
    animation: megaphone-post-highlight 1.2s ease-out;
}

.megaphone-post--removed {
    opacity: 0;
    transform: scale(0.98);
    max-height: 0;
    margin: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    overflow: hidden;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease, max-height 0.25s ease, margin 0.25s ease, padding 0.25s ease;
}

@keyframes megaphone-post-highlight {
    from { background-color: rgba(44, 95, 46, 0.14); }
    to { background-color: transparent; }
}

.megaphone-post:hover {
    border-color: #c9d9ca;
    box-shadow: 0 6px 20px rgba(44, 95, 46, 0.08);
}
.megaphone-post-avatar-link {
    position: relative;
    flex-shrink: 0;
    text-decoration: none;
}
.megaphone-post-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 2px #e5dfd3;
    display: block;
}
.megaphone-post-online {
    position: absolute;
    top: 0;
    right: 0;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #22c55e;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08);
}
.megaphone-post-body { flex: 1; min-width: 0; }
.megaphone-post-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 0.55rem;
}
.megaphone-post-name {
    display: block;
    font-size: 1.02rem;
    color: #2c5f2e;
    text-decoration: none;
    font-weight: bold;
    margin-bottom: 0.15rem;
}
.megaphone-post-name:hover { text-decoration: underline; }
.megaphone-post-meta {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
    line-height: 1.4;
}
.megaphone-traveling {
    display: inline-block;
    margin-left: 0.25rem;
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    background: #eef6ee;
    color: #2c5f2e;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    vertical-align: middle;
}
.megaphone-post-time {
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    color: #999;
    flex-shrink: 0;
    white-space: nowrap;
    background: #f5f2ec;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
}
.megaphone-post-message {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #333;
    margin-bottom: 0.75rem;
    word-break: break-word;
    background: #faf8f5;
    border: 1px solid #f0ebe3;
    border-radius: 8px;
    padding: 0.75rem 0.9rem;
}
.megaphone-post-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    padding-top: 0.15rem;
}
.megaphone-delete-form {
    display: inline;
    margin: 0;
}
.megaphone-post-action {
    display: inline-flex;
    align-items: center;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #2c5f2e;
    text-decoration: none;
    background: #f4f8f4;
    border: 1px solid #d4e4d4;
    border-radius: 999px;
    padding: 0.3rem 0.75rem;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}
.megaphone-post-action:hover {
    background: #e8f2e8;
    border-color: #2c5f2e;
    text-decoration: none;
}
.megaphone-post-action-danger {
    color: #b91c1c;
    background: #fef2f2;
    border-color: #fecaca;
}
.megaphone-post-action-danger:hover {
    background: #fee2e2;
    border-color: #b91c1c;
}
.megaphone-empty {
    background: #fff;
    border: 1px dashed #d4cdc0;
    border-radius: 10px;
    padding: 2.75rem 1.5rem;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #666;
    font-size: 0.95rem;
}
.megaphone-empty::before {
    content: "📢";
    display: block;
    font-size: 2rem;
    margin-bottom: 0.65rem;
    opacity: 0.7;
}
.megaphone-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #e5dfd3;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
}
.megaphone-pagination-status { color: #888; }

/* Forum */
.forum-categories { display: flex; flex-direction: column; gap: 0.75rem; }
.forum-category-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem 1.25rem;
    border-radius: 6px;
}
.forum-category-card--highlight {
    border-color: #c9d9ca;
    background: linear-gradient(180deg, #fff 0%, #f6faf6 100%);
    box-shadow: 0 2px 10px rgba(44, 95, 46, 0.06);
}
.forum-category-card h2 {
    margin-bottom: 0.3rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.45rem;
}
.forum-category-badge {
    display: inline-block;
    font-family: Arial, sans-serif;
    font-size: 0.65rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #2c5f2e;
    background: #eef6ee;
    border: 1px solid #d4e4d4;
    border-radius: 999px;
    padding: 0.15rem 0.5rem;
    vertical-align: middle;
}
.forum-category-card .meta { font-family: Arial, sans-serif; font-size: 0.8rem; color: #888; }
.thread-list { margin: 1.5rem 0; }
.thread-item {
    display: block;
    background: #fff;
    border: 1px solid #ddd;
    padding: 0.75rem 1rem;
    margin-bottom: 0.5rem;
    border-radius: 3px;
    text-decoration: none;
    color: inherit;
}
.thread-item:hover { border-color: #2c5f2e; text-decoration: none; }
.thread-item h3 { font-size: 1rem; color: #2c5f2e; }
.thread-item .meta { font-family: Arial, sans-serif; font-size: 0.8rem; color: #888; }
.forum-posts { margin: 1.5rem 0; }
.forum-post {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    margin-bottom: 0.75rem;
    border-radius: 3px;
}
.forum-post-header { display: flex; justify-content: space-between; margin-bottom: 0.5rem; font-family: Arial, sans-serif; }
.forum-post-body { font-family: Arial, sans-serif; font-size: 0.9rem; }
.forum-form { background: #fff; border: 1px solid #ddd; padding: 1.25rem; border-radius: 3px; }
.breadcrumb { font-family: Arial, sans-serif; font-size: 0.85rem; color: #888; margin-bottom: 0.5rem; }
.forum-back-link {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    margin: 0 0 0.75rem;
}
.forum-back-link a { color: #2c5f2e; text-decoration: none; }
.forum-back-link a:hover { text-decoration: underline; }

/* Pagination */
.pagination { display: flex; gap: 0.3rem; margin-top: 1.5rem; }
.pagination a {
    padding: 0.3rem 0.7rem;
    border: 1px solid #ddd;
    background: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    text-decoration: none;
    color: #333;
    border-radius: 3px;
}
.pagination a.active { background: #2c5f2e; color: #fff; border-color: #2c5f2e; }

.empty-state {
    color: #888;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    padding: 1.5rem;
    text-align: center;
}

/* 404 */
.not-found-page {
    max-width: 520px;
    margin: 2.5rem auto 3rem;
    padding: 2rem 1.25rem;
    text-align: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
}
.not-found-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin-bottom: 1.25rem;
    text-decoration: none;
    color: inherit;
}
.not-found-logo:hover { text-decoration: none; }
.not-found-logo .logo-mark {
    width: 3.5rem;
    height: 3.5rem;
}
.not-found-logo .logo-text {
    font-size: 1.45rem;
}
.not-found-code {
    margin: 0 0 0.35rem;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1;
    color: #2c5f2e;
    letter-spacing: 0.04em;
}
.not-found-page h1 {
    margin: 0 0 0.65rem;
    font-size: 1.65rem;
    color: #2c2c2c;
}
.not-found-lead {
    margin: 0 0 1.35rem;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    line-height: 1.5;
}
.not-found-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.55rem;
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, #243828 0%, #1e1e1e 100%);
    color: rgba(255, 255, 255, 0.72);
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2.5rem 1.5rem 2rem;
    display: grid;
    grid-template-columns: minmax(200px, 1.1fr) 2fr;
    gap: 2.5rem;
    align-items: start;
}
.footer-brand { max-width: 280px; }
.footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: #fff;
    font-size: 1.15rem;
    font-weight: bold;
    text-decoration: none;
    margin-bottom: 0.65rem;
}
.footer-logo:hover { color: #f4c430; text-decoration: none; }
.footer-logo-mark {
    display: block;
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
    object-fit: contain;
}
.footer-tagline {
    margin: 0;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.86rem;
}
.footer-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.footer-col h4 {
    margin: 0 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #f4c430;
}
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}
.footer-col a {
    color: rgba(255, 255, 255, 0.78);
    text-decoration: none;
    line-height: 1.4;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}
.footer-bottom p { margin: 0; }
.site-footer--compact .footer-inner {
    padding-top: 1.75rem;
    padding-bottom: 1.5rem;
    gap: 1.75rem;
}

/* Legal & info pages */
.legal-page {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 1rem 2rem;
}
.legal-page h1 {
    margin-bottom: 1rem;
}
.legal-body {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.5rem 1.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: #444;
}
.legal-body h2 {
    font-size: 1.05rem;
    color: #2c5f2e;
    margin: 1.5rem 0 0.5rem;
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p { margin: 0 0 0.85rem; }
.legal-body ul { margin: 0 0 0.85rem 1.25rem; padding: 0; }
.legal-body li { margin-bottom: 0.35rem; }
.legal-body a { color: #2c5f2e; font-weight: bold; }
.legal-updated { font-size: 0.85rem; color: #888; margin-bottom: 1rem !important; }
.legal-note { font-size: 0.9rem; color: #666; font-style: italic; }
.legal-contact-card {
    background: #f9f7f3;
    border: 1px solid #e0dcd4;
    border-radius: 4px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.legal-contact-card h2 { margin-top: 0; font-size: 1rem; }
.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.75rem 0 1rem;
    font-size: 0.9rem;
}
.legal-table th,
.legal-table td {
    border: 1px solid #ddd;
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}
.legal-table th { background: #f5f0e8; color: #333; }

/* Legal modals */
.legal-modal-open { overflow: hidden; }
.legal-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.legal-modal[hidden] { display: none; }
.legal-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.legal-modal-panel {
    position: relative;
    width: min(42rem, 100%);
    max-height: min(85vh, 40rem);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0dcd4;
    background: #faf8f5;
}
.legal-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #2c5f2e;
}
.legal-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.legal-modal-close:hover { background: #eee; color: #333; }
.legal-modal-body {
    padding: 1.25rem;
    overflow-y: auto;
}
.legal-modal-trigger {
    display: inline;
    padding: 0;
    border: none;
    background: none;
    font: inherit;
    color: #2c5f2e;
    font-weight: bold;
    text-decoration: underline;
    cursor: pointer;
}
.legal-modal-trigger:hover { color: #1e4620; }

/* Demo member modal */
.demo-member-modal-open { overflow: hidden; }
.demo-member-modal {
    position: fixed;
    inset: 0;
    z-index: 1100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.demo-member-modal[hidden] { display: none; }
.demo-member-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}
.demo-member-modal-panel {
    position: relative;
    width: min(24rem, 100%);
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.demo-member-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e0dcd4;
    background: #faf8f5;
}
.demo-member-modal-header h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #2c5f2e;
}
.demo-member-modal-close {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: #666;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}
.demo-member-modal-close:hover { background: #eee; color: #333; }
.demo-member-modal-body {
    padding: 1.25rem;
    text-align: center;
}
.demo-member-modal-body p {
    margin: 0 0 0.75rem;
    font-size: 1.05rem;
}
.demo-member-modal-hint {
    color: #666;
    font-size: 0.9rem !important;
    line-height: 1.45;
}
.demo-member-modal-body .btn {
    margin-top: 0.5rem;
    min-width: 7rem;
}

.faq-list { display: flex; flex-direction: column; gap: 0.5rem; }
.faq-item {
    border: 1px solid #e0dcd4;
    border-radius: 4px;
    padding: 0.65rem 1rem;
    background: #faf8f5;
}
.faq-item summary {
    cursor: pointer;
    font-weight: bold;
    color: #2c5f2e;
    list-style-position: outside;
}
.faq-item p { margin: 0.65rem 0 0; }

/* Verify banner */
.verify-banner {
    background: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 0.4rem 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    border-bottom: 1px solid #ffc107;
}
.verify-banner a { color: #533f03; font-weight: bold; }

/* Landing page */
.landing-hero {
    background: linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
        url('https://images.unsplash.com/photo-1529156069898-49953e39b3ac?w=1400&h=600&fit=crop') center/cover;
    color: #fff;
    padding: 4rem 2rem;
    border-radius: 4px;
    margin-bottom: 2rem;
    text-align: center;
}
.landing-hero h1 { color: #fff; font-size: 2.4rem; margin-bottom: 1rem; }
.landing-hero p { font-family: Arial, sans-serif; font-size: 1.1rem; max-width: 560px; margin: 0 auto 1.5rem; opacity: 0.95; }
.landing-cta { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
.btn-large { padding: 0.75rem 2rem; font-size: 1rem; }
.landing-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    margin-bottom: 2rem;
}
.feature-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.5rem;
    border-radius: 3px;
    text-align: center;
}
.feature-card h3 { color: #2c5f2e; margin-bottom: 0.5rem; }
.feature-card p { font-family: Arial, sans-serif; font-size: 0.9rem; color: #666; }
.landing-stats {
    text-align: center;
    font-family: Arial, sans-serif;
    color: #666;
    padding: 1rem;
}

/* Cookie banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #2d2d2d;
    color: #ddd;
    padding: 1rem 1.5rem;
    padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    z-index: 9000;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.2);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner a { color: #f4c430; }
.cookie-banner .btn { flex-shrink: 0; }

/* Mobile sticky tab bar */
.mobile-tab-bar {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 9700;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    background: #111;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.4rem 0.25rem;
    padding-bottom: calc(0.4rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.35);
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
.mobile-tab-bar--4 {
    grid-template-columns: repeat(4, 1fr);
}
.mobile-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
    padding: 0.35rem 0.15rem;
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    min-height: 52px;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    cursor: pointer;
}
.mobile-tab:hover { color: #fff; text-decoration: none; }
.mobile-tab.is-active { color: #f4c430; }
.mobile-tab-icon {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
}
.mobile-tab-icon .mobile-tab-svg {
    display: block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}
.mobile-tab.is-active .mobile-tab-icon--discover,
.mobile-tab.is-active .mobile-tab-icon--search {
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 50%;
    background: #f4c430;
    color: #111;
}
.mobile-tab.is-active .mobile-tab-icon--discover .mobile-tab-svg,
.mobile-tab.is-active .mobile-tab-icon--search .mobile-tab-svg {
    width: 22px;
    height: 22px;
}
.mobile-tab-label { line-height: 1.1; }
.mobile-tab-badge {
    position: absolute;
    top: -0.15rem;
    right: -0.35rem;
    min-width: 1rem;
    height: 1rem;
    padding: 0 0.2rem;
    border-radius: 999px;
    background: #e74c3c;
    color: #fff;
    font-size: 0.58rem;
    font-weight: 700;
    line-height: 1rem;
    text-align: center;
}
.activity-thumb-grid .thumb small {
    display: block;
    font-family: Arial, sans-serif;
    font-size: 0.62rem;
    color: #888;
    margin-top: 0.1rem;
}

/* Mobile nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0;
    margin-left: auto;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 6px;
    cursor: pointer;
}
.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #fff;
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.profile-report { font-family: Arial, sans-serif; font-size: 0.8rem; margin-top: 0.5rem; }

/* Admin */
.admin-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}
.admin-stat {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1.25rem;
    text-align: center;
    border-radius: 3px;
}
.admin-stat strong { display: block; font-size: 2rem; color: #2c5f2e; }
.admin-stat span { font-family: Arial, sans-serif; font-size: 0.85rem; color: #888; }
.admin-nav { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }
.admin-panel-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.25rem 1.5rem;
    margin-bottom: 1.5rem;
}
.admin-panel-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.5rem;
}
.admin-panel-card h2 {
    margin: 0;
    font-size: 1.15rem;
    color: #2c5f2e;
}
.admin-panel-copy {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem;
    line-height: 1.5;
}
.admin-status-badge {
    display: inline-block;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    font-weight: bold;
    letter-spacing: 0.04em;
}
.admin-status-badge.is-on {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
}
.admin-status-badge.is-off {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.admin-toggle-form { margin: 0; }

/* Admin shell */
.admin-body {
    margin: 0;
    background: #ece7de;
}
.admin-page-wrap {
    min-height: 100vh;
    padding: 0;
    max-width: none;
}
.admin-shell {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    min-height: 100vh;
}
.admin-sidebar {
    background: #1f3320;
    color: #e8efe4;
    display: flex;
    flex-direction: column;
    padding: 1.5rem 1rem;
    gap: 1.5rem;
}
.admin-sidebar-brand {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding: 0 0.5rem;
}
.admin-sidebar-kicker {
    font-family: Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a8c4a8;
}
.admin-sidebar-brand strong {
    font-size: 1.1rem;
    color: #fff;
}
.admin-sidebar-nav,
.admin-sidebar-footer {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.admin-sidebar-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.admin-sidebar-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.65rem 0.75rem;
    border-radius: 6px;
    color: #d8e6d8;
    text-decoration: none;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
}
.admin-sidebar-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}
.admin-sidebar-link.is-active {
    background: #2c5f2e;
    color: #fff;
}
.admin-sidebar-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.35rem;
    border-radius: 999px;
    background: #c9a227;
    color: #1f3320;
    font-size: 0.72rem;
    font-weight: bold;
}
.admin-main {
    padding: 1.5rem 2rem 2.5rem;
}
.admin-page-header {
    margin-bottom: 1.5rem;
}
.admin-page-header h1 {
    margin: 0;
    font-size: 1.75rem;
    color: #2c5f2e;
}
.admin-page-lead {
    margin: 0.35rem 0 0;
    font-family: Arial, sans-serif;
    color: #666;
    font-size: 0.95rem;
}
.admin-page-links {
    margin: -0.5rem 0 1.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.admin-panel-actions {
    margin: 0;
}
.admin-dashboard-top {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    margin-bottom: 1.25rem;
}
.admin-dashboard-top .admin-panel-card {
    margin-bottom: 0;
}
.admin-dashboard-summary {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #444;
}
.admin-dashboard-summary li {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.admin-dashboard-summary strong {
    font-size: 1.25rem;
    color: #2c5f2e;
    min-width: 1.5rem;
}
.admin-dashboard-summary .is-alert strong {
    color: #c0392b;
}
.admin-dashboard-meta {
    margin-bottom: 0;
    font-size: 0.82rem;
}
.admin-quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.admin-quick-action {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.2rem;
    padding: 0.95rem 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-quick-action:hover {
    border-color: #2c5f2e;
    box-shadow: 0 4px 14px rgba(44, 95, 46, 0.08);
    transform: translateY(-1px);
}
.admin-quick-action strong {
    color: #2c5f2e;
    font-size: 0.95rem;
}
.admin-quick-action span {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #888;
}
.admin-quick-action.is-alert {
    border-color: #e8b4b4;
    background: #fffafa;
}
.admin-quick-action.is-alert strong {
    color: #c0392b;
}
.admin-stat-group {
    margin-bottom: 1.25rem;
}
.admin-stat-group-title {
    margin: 0 0 0.65rem;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #888;
}
.admin-stat-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.admin-stat-link:hover {
    border-color: #2c5f2e;
    box-shadow: 0 4px 14px rgba(44, 95, 46, 0.08);
    transform: translateY(-1px);
}
.admin-stat-link.is-alert {
    border-color: #e8b4b4;
    background: #fffafa;
}
.admin-stat-link.is-alert strong {
    color: #c0392b;
}
.admin-stats-wide {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}
.admin-dashboard-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.admin-dashboard-grid--3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.admin-report-preview-link {
    text-decoration: none;
    color: inherit;
    padding: 0.65rem 0.75rem;
    margin: -0.65rem -0.75rem;
    border-radius: 4px;
    transition: background 0.15s ease;
}
.admin-report-preview-link:hover {
    background: #f5f0e8;
}
.admin-megaphone-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.admin-megaphone-preview {
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eee;
}
.admin-megaphone-preview:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.admin-megaphone-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.25rem;
}
.admin-megaphone-preview-head .meta {
    color: #888;
    font-size: 0.78rem;
    white-space: nowrap;
}
.admin-megaphone-preview p {
    margin: 0;
    color: #555;
    line-height: 1.45;
}
.admin-legal-layout {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}
.admin-legal-nav {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 0.75rem;
    position: sticky;
    top: 1rem;
}
.admin-legal-nav-link {
    display: block;
    padding: 0.55rem 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.admin-legal-nav-link:hover {
    background: #f5f0e8;
    color: #2c5f2e;
}
.admin-legal-nav-link.is-active {
    background: #2c5f2e;
    color: #fff;
    font-weight: bold;
}
.admin-legal-editor {
    margin-bottom: 0;
}
.admin-legal-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.admin-legal-textarea {
    width: 100%;
    min-height: 28rem;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.84rem;
    line-height: 1.5;
    padding: 0.85rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    resize: vertical;
}
.admin-table-compact th,
.admin-table-compact td {
    padding: 0.55rem 0.65rem;
    font-size: 0.88rem;
}
.admin-user-inline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}
.admin-user-inline:hover { text-decoration: underline; }
.admin-report-preview-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.admin-report-preview {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.admin-report-preview .meta {
    color: #888;
    font-size: 0.82rem;
}
.admin-search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin-bottom: 1rem;
}
.admin-search-label {
    flex: 1 1 220px;
    margin: 0;
}
.admin-search-label input {
    width: 100%;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.admin-result-meta {
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #888;
    margin: 0 0 0.75rem;
}
.admin-info-list {
    margin: 0;
    display: grid;
    gap: 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
}
.admin-info-list div {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 0.75rem;
}
.admin-info-list dt {
    margin: 0;
    color: #888;
}
.admin-info-list dd {
    margin: 0;
    color: #333;
}

.admin-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}
.admin-panel-card-span {
    grid-column: 1 / -1;
}
.admin-mode-picker {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.admin-mode-option {
    margin: 0;
    padding: 1.1rem 1.15rem 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: #faf8f4;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.admin-mode-option.is-selected {
    border-color: #2c5f2e;
    background: #f3f8f3;
    box-shadow: 0 0 0 1px rgba(44, 95, 46, 0.12);
}
.admin-mode-option-btn {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    width: 100%;
    margin: 0 0 0.75rem;
    padding: 0;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
    font: inherit;
    color: inherit;
}
.admin-mode-option.is-selected .admin-mode-option-btn {
    cursor: default;
}
.admin-mode-option-title {
    font-size: 1.05rem;
    font-weight: 700;
    color: #2c5f2e;
}
.admin-mode-option-meta {
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
    color: #888;
}
.admin-mode-option-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-mode-active-pill {
    flex-shrink: 0;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    background: #2c5f2e;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.admin-mode-option-copy {
    margin: 0 0 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #555;
}
.admin-mode-option-points {
    margin: 0;
    padding-left: 1.1rem;
    font-family: Arial, sans-serif;
    font-size: 0.84rem;
    line-height: 1.55;
    color: #666;
}
.admin-mode-option:not(.is-selected):hover {
    border-color: #9bb89c;
}
.admin-link-list {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
}
.admin-link-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.75rem 0.85rem;
    border: 1px solid #e2ddd3;
    border-radius: 6px;
    background: #fff;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
}
.admin-link-item:hover {
    border-color: #2c5f2e;
    background: #f7fbf7;
    text-decoration: none;
}
.admin-link-label {
    font-weight: 600;
    color: #2c5f2e;
}
.admin-link-meta {
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: #888;
}
.admin-health-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}
.admin-health-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background: #f7f7f7;
}
.admin-health-item.is-ok {
    background: #edf7ee;
}
.admin-health-item.is-bad {
    background: #fff1f0;
}
.admin-health-status {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-health-item.is-ok .admin-health-status { color: #2c5f2e; }
.admin-health-item.is-bad .admin-health-status { color: #b42318; }
.admin-panel-note {
    margin: 1rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
}
.admin-panel-note-warning {
    color: #8a6d00;
    background: #fff8e6;
    border: 1px solid #f2d98b;
    border-radius: 6px;
    padding: 0.75rem 0.85rem;
}
.admin-mini-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
    margin-bottom: 1rem;
}
.admin-mini-stat {
    padding: 0.75rem 0.5rem;
    text-align: center;
    background: #f7f7f7;
    border-radius: 6px;
}
.admin-mini-stat strong {
    display: block;
    font-size: 1.35rem;
    color: #2c5f2e;
}
.admin-mini-stat span {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
}
.admin-settings-json {
    margin: 0;
    padding: 1rem 1.1rem;
    background: #1f3320;
    color: #e8efe4;
    border-radius: 6px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.82rem;
    line-height: 1.5;
}

.admin-settings-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.admin-settings-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}
.admin-settings-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}
.admin-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
}
.admin-field > span {
    color: #555;
    font-weight: 600;
}
.admin-field-hint {
    font-size: 0.78rem;
    color: #888;
    font-weight: 400;
    line-height: 1.4;
}
.admin-field input[type="text"],
.admin-field input[type="email"],
.admin-field input[type="url"],
.admin-field input[type="number"],
.admin-field input[type="password"],
.admin-field select,
.admin-field textarea {
    width: 100%;
    padding: 0.55rem 0.65rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    font: inherit;
    background: #fff;
}
.admin-field-span {
    grid-column: 1 / -1;
}
.admin-field-inline {
    flex-direction: row;
    align-items: center;
    gap: 0.75rem;
}
.admin-checkbox {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 0.65rem;
}
.admin-settings-checks {
    margin-bottom: 1rem;
}
.admin-settings-branding-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}
.admin-branding-upload {
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #faf8f4;
}
.admin-branding-path {
    margin: 0.5rem 0;
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #666;
    word-break: break-all;
}
.admin-branding-preview {
    display: block;
    width: 72px;
    height: 72px;
    object-fit: contain;
    border-radius: 8px;
    background: #fff;
    border: 1px solid #ddd;
}
.admin-settings-inline-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}
.admin-email-actions {
    margin-top: 0.5rem;
    align-items: center;
}
.admin-email-test-field {
    flex: 1;
    min-width: min(100%, 280px);
    max-width: 360px;
}
.admin-email-test-field input {
    flex: 1;
    min-width: 0;
}
.admin-email-flash {
    margin-top: 0.75rem;
    margin-bottom: 0;
}
.admin-push-key-rows {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}
.admin-push-key-row {
    align-items: flex-end;
}
.admin-push-key-row .admin-field {
    flex: 1;
    min-width: min(100%, 280px);
}
.admin-push-stats {
    margin-bottom: 1rem;
}
.admin-push-subhead {
    margin: 1.25rem 0 0.5rem;
    font-size: 1rem;
    font-weight: 600;
}
.admin-push-actions {
    margin-top: 0.25rem;
}
.admin-push-hint {
    margin-top: 0.5rem;
}
.admin-push-warning {
    margin-top: 0.75rem;
    color: #7a5c00;
}
.admin-settings-save-bar {
    position: sticky;
    bottom: 0;
    padding: 1rem 0 0.25rem;
    background: linear-gradient(180deg, rgba(245,240,232,0) 0%, rgba(245,240,232,1) 35%);
}

.admin-photo-stats {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-bottom: 1.25rem;
}
.admin-mini-stat-link {
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s ease, background 0.15s ease;
    border: 2px solid transparent;
}
.admin-mini-stat-link:hover {
    background: #eef5ee;
    text-decoration: none;
}
.admin-mini-stat-link.is-active {
    border-color: #2c5f2e;
    background: #eef5ee;
}
.admin-photo-filters {
    margin-bottom: 1.25rem;
}
.admin-filter-label {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
}
.admin-filter-label select {
    min-width: 170px;
}
.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.85rem;
}
.admin-photo-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
}
.admin-photo-thumb-wrap {
    position: relative;
}
.admin-photo-thumb-toolbar {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    display: flex;
    gap: 0.25rem;
    z-index: 2;
}
.admin-photo-thumb {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #f0ebe0;
    overflow: hidden;
    border: 0;
    padding: 0;
    cursor: pointer;
    font: inherit;
    text-align: left;
}
.admin-photo-thumb:focus-visible {
    outline: 2px solid #2c5f2e;
    outline-offset: 2px;
}
.admin-photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}
.admin-photo-thumb:hover img {
    transform: scale(1.03);
}
.admin-photo-thumb-overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.3rem;
    padding: 0.55rem 0.65rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.72));
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 0.8rem;
}
.admin-photo-thumb-user {
    width: 100%;
    min-width: 0;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-photo-thumb-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    max-width: 100%;
}
.admin-photo-thumb-badge {
    flex-shrink: 0;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    background: #2c5f2e;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.admin-photo-thumb-badge--muted {
    background: rgba(255, 255, 255, 0.22);
    color: #f0f0f0;
}
.admin-photo-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.55rem 0.65rem;
}
.admin-photo-meta {
    margin: 0;
    min-width: 0;
    flex: 1 1 auto;
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    color: #888;
}
.admin-photo-visibility-btn {
    font-family: Arial, sans-serif;
    font-size: 0.76rem;
    color: #2c5f2e;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    flex-shrink: 0;
}
.admin-photo-visibility-btn:hover { text-decoration: underline; }
.admin-photo-visibility-btn.is-busy {
    opacity: 0.6;
    cursor: wait;
}
.badge-inline-muted {
    background: #f1f1f1;
    color: #666;
}

.admin-photo-lightbox .lightbox-close {
    font-size: 2rem;
}
.admin-photo-lightbox .lightbox-delete,
.admin-photo-lightbox .admin-lightbox-delete {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(192, 57, 43, 0.85);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.15s;
}
.admin-photo-lightbox .lightbox-delete:hover,
.admin-photo-lightbox .admin-lightbox-delete:hover {
    background: #c0392b;
}
.admin-photo-lightbox .lightbox-stage {
    padding: 3.5rem 4.5rem 9rem;
}
.admin-photo-lightbox .admin-lightbox-prev,
.admin-photo-lightbox .admin-lightbox-next {
    z-index: 2;
}
.admin-photo-lightbox .admin-lightbox-prev:disabled,
.admin-photo-lightbox .admin-lightbox-next:disabled {
    opacity: 0.35;
    cursor: default;
}
.admin-lightbox-panel {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(560px, calc(100% - 2rem));
    padding: 0.9rem 1rem;
    border-radius: 10px;
    background: rgba(18, 18, 18, 0.88);
    color: #eee;
    z-index: 2;
    pointer-events: auto;
}
.admin-lightbox-panel-top {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 0.65rem;
    margin-bottom: 0.25rem;
}
.admin-lightbox-user {
    font-weight: 700;
    color: #fff;
    text-decoration: none;
}
.admin-lightbox-user:hover {
    color: #d4e8d4;
    text-decoration: underline;
}
.admin-lightbox-badges {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.admin-lightbox-badges .badge-inline {
    font-size: 0.72rem;
}
.admin-lightbox-meta {
    margin: 0 0 0.65rem;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
    color: #bbb;
}
.admin-lightbox-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.55rem;
}
.admin-lightbox-actions .btn {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.admin-lightbox-actions .btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}
.admin-lightbox-hint {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.74rem;
    color: #888;
}
#admin-lightbox-primary-form {
    display: none;
}
.admin-photo-toast {
    margin-bottom: 1rem;
}

/* Admin login */
.admin-login-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f0e8;
}
.admin-login-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    min-height: 100vh;
}
.admin-login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 35, 20, 0.92), rgba(44, 95, 46, 0.82)),
        url('../images/hero-travel.jpg') center/cover no-repeat;
}
.admin-login-brand-inner {
    max-width: 420px;
}
.admin-login-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}
.admin-login-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    font-family: Arial, sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #d4c48a;
}
.admin-login-brand h1 {
    margin: 0 0 0.75rem;
    font-size: 2rem;
}
.admin-login-brand p {
    margin: 0;
    font-family: Arial, sans-serif;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
}
.admin-login-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}
.admin-login-card {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}
.admin-login-card h2 {
    margin: 0 0 0.35rem;
    color: #2c5f2e;
}
.admin-login-lead {
    margin: 0 0 1.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    color: #666;
    line-height: 1.5;
}
.admin-login-form label {
    display: block;
    margin-bottom: 1rem;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
}
.admin-login-form input {
    display: block;
    width: 100%;
    margin-top: 0.35rem;
}
.admin-login-footer {
    margin: 1.25rem 0 0;
    font-family: Arial, sans-serif;
    font-size: 0.88rem;
    text-align: center;
}

/* Preview access gate */
.preview-gate-body {
    margin: 0;
    min-height: 100vh;
    background: #f5f0e8;
}
.preview-gate-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
    min-height: 100vh;
}
.preview-gate-brand {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem 2.5rem;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(20, 35, 20, 0.88), rgba(44, 95, 46, 0.78)),
        url('https://images.unsplash.com/photo-1488646953014-85cb44e25828?w=1400&h=1000&fit=crop') center/cover;
}
.preview-gate-brand-inner {
    max-width: 460px;
}
.preview-gate-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 1.75rem;
    color: #fff;
}
.preview-gate-logo .logo-mark {
    width: 3.25rem;
    height: 3.25rem;
}
.preview-gate-logo .logo-text {
    font-family: 'Outfit', Arial, sans-serif;
    font-size: 1.85rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1;
    white-space: nowrap;
}
.preview-gate-logo .logo-wordmark-travel {
    color: #fff;
    font-weight: 500;
}
.preview-gate-logo .logo-wordmark-date {
    color: #f4c430;
    font-weight: 500;
    font-size: 1.2em;
    letter-spacing: 0.06em;
}
.preview-gate-brand h1 {
    color: #fff;
    font-size: clamp(1.9rem, 4vw, 2.5rem);
    line-height: 1.15;
    margin-bottom: 0.85rem;
}
.preview-gate-brand p {
    font-family: Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    opacity: 0.94;
    margin-bottom: 1.5rem;
}
.preview-gate-points {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}
.preview-gate-points li {
    position: relative;
    padding-left: 1.35rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.45;
    opacity: 0.92;
}
.preview-gate-points li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: #f4c430;
    font-weight: bold;
}
.preview-gate-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.5rem;
}
.preview-gate-card {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 2rem;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}
.preview-gate-badge {
    display: inline-block;
    margin-bottom: 0.85rem;
    padding: 0.25rem 0.7rem;
    border-radius: 999px;
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.preview-gate-card h2 {
    margin: 0 0 0.45rem;
    font-size: 1.55rem;
    color: #2c5f2e;
}
.preview-gate-lead {
    margin: 0 0 1.25rem;
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    line-height: 1.55;
    color: #666;
}
.preview-gate-card > .btn {
    margin-bottom: 1rem;
    text-align: center;
    text-decoration: none;
}
.preview-gate-login-btn {
    background: #fff;
    color: #2c5f2e;
    border-color: #2c5f2e;
}
.preview-gate-login-btn:hover {
    background: #f5f0e8;
    color: #1e4620;
}
.preview-gate-form {
    margin-bottom: 1rem;
}
.preview-gate-form .password-field {
    margin-bottom: 1rem;
}
.preview-gate-form input[type="password"],
.preview-gate-form input[type="text"] {
    margin-top: 0.25rem;
}
.preview-gate-footer {
    margin: 0;
    padding-top: 1rem;
    border-top: 1px solid #ece7df;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    color: #888;
    text-align: center;
    line-height: 1.5;
}
.preview-gate-footer-beta {
    margin-top: 1.25rem;
}
.preview-gate-footer span {
    display: block;
    margin-bottom: 0.35rem;
}
.preview-gate-footer a {
    color: #2c5f2e;
    font-weight: bold;
}
.preview-gate-footer-secondary {
    padding-top: 0;
    border-top: none;
    margin-top: 1.35rem;
}
.preview-gate-shell--centered {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 2rem 1.5rem;
    grid-template-columns: none;
}
.preview-gate-shell--centered .preview-gate-panel {
    width: 100%;
    max-width: 32rem;
    margin: 0;
    padding: 0;
}
.preview-gate-card--centered {
    text-align: center;
}
.preview-gate-card--centered .preview-gate-lead {
    margin-bottom: 0;
}
.preview-gate-shell--compact .preview-gate-brand p {
    margin-bottom: 0;
}
.preview-gate-shell--signup .preview-gate-panel {
    align-items: flex-start;
    padding-top: 2rem;
    padding-bottom: 2rem;
}
.preview-gate-panel--scroll {
    overflow-y: auto;
    max-height: 100vh;
}
.preview-gate-card--wide {
    max-width: 420px;
}
.preview-gate-badge--success {
    background: #d4edda;
    color: #155724;
    border-color: #c3e6cb;
}
.preview-gate-form--signup label:not(.photo-picker-circle):not(.checkbox-label) {
    margin-bottom: 0.75rem;
}
.preview-gate-form--signup .field-hint {
    margin-top: 0.25rem;
}
.preview-gate-form--signup .photo-picker {
    display: grid;
    gap: 0.55rem;
    justify-items: center;
    text-align: center;
    margin-bottom: 1rem;
}
.preview-gate-form--signup .photo-picker-label {
    justify-self: stretch;
    text-align: left;
    margin-bottom: 0;
}
.preview-gate-form--signup .photo-picker .field-hint {
    margin-top: 0;
    text-align: center;
}
.preview-gate-form-grid {
    margin-bottom: 0.25rem;
}
.preview-gate-form--signup select,
.preview-gate-form--signup input[type="date"] {
    display: block;
    width: 100%;
    padding: 0.4rem 0.6rem;
    margin-top: 0.25rem;
    border: 1px solid #bbb;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    background: #fff;
}
.preview-gate-terms {
    margin: 0.5rem 0 1rem;
    font-size: 0.85rem;
    line-height: 1.45;
}
.preview-gate-terms a,
.preview-gate-terms .legal-modal-trigger {
    color: #2c5f2e;
    font-weight: bold;
}
.preview-gate-form--signup .beta-password-reveal {
    margin-top: 0;
}
.preview-gate-card .beta-success-card {
    text-align: center;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    font-size: 0.85rem;
    background: #fff;
    margin-top: 1rem;
}
.admin-table th, .admin-table td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
}
.admin-table th { background: #f0ebe0; }
.admin-table th a { color: inherit; text-decoration: none; display: inline-flex; align-items: center; gap: 0.2rem; }
.admin-table th a:hover { text-decoration: underline; }
.sort-indicator { font-size: 0.65rem; opacity: 0.7; }
.admin-actions { white-space: nowrap; }
.admin-user-photo-link { display: inline-block; line-height: 0; }
.admin-user-photo {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #ddd;
    display: block;
}
.admin-user-photo-link:hover .admin-user-photo { border-color: #2c5f2e; }
.admin-user-form { max-width: 900px; margin-top: 1rem; }
.admin-user-form .hint { font-weight: normal; color: #888; font-size: 0.85rem; }
.admin-user-photos { max-width: 900px; margin-top: 2rem; }
.badge-inline { font-size: 0.75rem; color: #c0392b; }
.report-list { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.report-card {
    background: #fff;
    border: 1px solid #ddd;
    padding: 1rem;
    border-radius: 3px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
}
.report-card.status-open { border-left: 4px solid #c0392b; }
.report-card-header { display: flex; justify-content: space-between; margin-bottom: 0.4rem; }
.admin-megaphone-card .report-card-header { align-items: flex-start; gap: 1rem; }
.admin-megaphone-card-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
    flex-shrink: 0;
    text-align: right;
}
.admin-megaphone-card-meta .inline-form { display: block; margin: 0; }

/* Account hub */
.account-page { display: flex; flex-direction: column; gap: 1.25rem; }
.account-lead {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    margin: 0;
}
.account-card {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 1.25rem 1.35rem;
}
.account-card h1,
.account-card h2 {
    margin-top: 0;
    margin-bottom: 0.85rem;
    color: #2c5f2e;
}
.account-section-copy {
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin: 0 0 1rem;
}
.account-identity-body {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}
.account-photo-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.45rem;
    text-decoration: none;
    flex-shrink: 0;
}
.account-photo-link:hover { text-decoration: none; }
.account-photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #e8e2d8;
}
.account-photo-label {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #2c5f2e;
}
.account-identity-meta { flex: 1; min-width: 0; }
.account-identity-meta h2 {
    margin: 0 0 0.2rem;
    font-size: 1.55rem;
    color: #2c2c2c;
}
.account-email {
    font-family: Arial, sans-serif;
    font-size: 0.92rem;
    color: #666;
    margin: 0 0 0.85rem;
    word-break: break-word;
}
.account-meta-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
}
.account-meta-list div {
    display: grid;
    gap: 0.2rem;
}
.account-meta-list dt {
    font-family: Arial, sans-serif;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #888;
}
.account-meta-list dd {
    margin: 0;
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    color: #333;
}
.account-progress-value {
    display: inline-block;
    margin-right: 0.5rem;
    font-weight: 700;
    color: #2c5f2e;
}
.account-progress-bar {
    display: inline-block;
    vertical-align: middle;
    width: min(180px, 100%);
    height: 8px;
    background: #ece7df;
    border-radius: 999px;
    overflow: hidden;
}
.account-progress-fill {
    display: block;
    height: 100%;
    background: linear-gradient(90deg, #2c5f2e, #4a8f4c);
    border-radius: inherit;
}
.account-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}
.account-links a {
    display: block;
    padding: 0.75rem 0.9rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-family: Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: #2c5f2e;
    text-decoration: none;
}
.account-links a:hover {
    background: #f5f0e8;
    text-decoration: none;
}
.account-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr));
    gap: 0.75rem;
}
.account-stat-card {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.account-stat-card:hover {
    border-color: #b8d4b8;
    box-shadow: 0 4px 14px rgba(44, 95, 46, 0.08);
    text-decoration: none;
}
.account-stat-value {
    font-size: 1.75rem;
    font-weight: bold;
    color: #2c5f2e;
    line-height: 1.1;
}
.account-stat-label {
    font-family: Arial, sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: #333;
}
.account-stat-hint,
.account-stat-action {
    font-family: Arial, sans-serif;
    font-size: 0.78rem;
    color: #777;
}
.account-stat-action {
    margin-top: 0.35rem;
    color: #2c5f2e;
    font-weight: 600;
}
.account-password-form {
    display: grid;
    gap: 0.85rem;
    max-width: 420px;
}
.account-mobile-head { display: none; }
.account-desktop-title { margin-top: 0; }
.account-link-panel { display: contents; }
.account-link-panel-title { display: none; }
.account-link-emphasis { color: #c45a00; }

.edit-profile-mobile-head { margin-bottom: 0.75rem; }
.edit-profile-progress { margin-top: 0.65rem; }
.edit-profile-progress-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
    font-family: Arial, sans-serif;
    font-size: 0.82rem;
}
.edit-profile-progress-label {
    color: #666;
    font-weight: 600;
}
.edit-profile-progress-value {
    font-weight: 700;
    color: #2c5f2e;
}
.edit-profile-progress-bar {
    display: block;
    width: 100%;
    height: 10px;
}
.profile-form-actions { margin-top: 0.5rem; }

/* Responsive */
@media (max-width: 900px) {
    /* Mobile app shell: fixed header + tab bar, only main scrolls */
    html {
        touch-action: manipulation;
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
        overflow: hidden;
        height: 100%;
        height: 100dvh;
    }
    body {
        overflow: hidden;
        height: 100%;
        height: 100dvh;
        min-height: 0;
    }
    body.has-mobile-tab-bar,
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) {
        display: block;
    }
    body.has-mobile-tab-bar {
        --mtd-header-h: calc(3.75rem + env(safe-area-inset-top, 0px));
        --mtd-tab-bar-h: calc(4.25rem + env(safe-area-inset-bottom, 0px));
    }
    body.has-mobile-tab-bar:has(.verify-banner) {
        --mtd-header-h: calc(5.5rem + env(safe-area-inset-top, 0px));
    }
    .site-header {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        z-index: 9800;
        overflow: hidden;
        padding-top: env(safe-area-inset-top, 0px);
        transform: translate3d(0, 0, 0);
        -webkit-transform: translate3d(0, 0, 0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    .site-header .header-inner {
        overflow: hidden;
    }
    .has-mobile-tab-bar .mobile-tab-bar { display: grid; }
    .mobile-tab-bar {
        overflow: hidden;
    }
    .has-mobile-tab-bar .site-footer { display: none; }
    .has-mobile-tab-bar .cookie-banner {
        bottom: var(--mtd-tab-bar-h);
    }
    .has-mobile-tab-bar .page-wrap {
        position: fixed;
        top: var(--mtd-header-h);
        bottom: var(--mtd-tab-bar-h);
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        padding: 0.85rem 1rem 1rem;
        min-height: 0;
    }
    .has-mobile-tab-bar .page-wrap--map {
        padding: 0;
        overflow: hidden;
    }
    .has-mobile-tab-bar .page-wrap--map .map-hero {
        height: 100%;
        min-height: 0;
    }
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) {
        --mtd-header-h: calc(3.75rem + env(safe-area-inset-top, 0px));
    }
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body):has(.verify-banner) {
        --mtd-header-h: calc(5.5rem + env(safe-area-inset-top, 0px));
    }
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) .page-wrap {
        position: fixed;
        top: var(--mtd-header-h);
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        margin: 0;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        padding: 0.85rem 1rem 1rem;
        min-height: 0;
    }
    .admin-body {
        overflow: hidden;
        height: 100dvh;
    }
    .admin-body .admin-page-wrap {
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
    }
    h1 { font-size: 1.55rem; }
    h2 { font-size: 1.15rem; }
    .account-identity-body { flex-direction: column; align-items: center; text-align: center; }
    .account-meta-list { text-align: left; }
    .account-links { grid-template-columns: 1fr; }
    .account-stats { grid-template-columns: 1fr; }
    .hero-banner { display: none; }
    .profile-tabs {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        flex-wrap: nowrap;
    }
    .profile-tabs::-webkit-scrollbar { display: none; }
    .profile-tabs a {
        flex-shrink: 0;
        padding: 0.55rem 0.9rem;
        font-size: 0.88rem;
    }
    .nav-toggle {
        display: flex;
        position: relative;
        z-index: 10050;
        flex-shrink: 0;
        touch-action: manipulation;
    }
    .header-inner { flex-wrap: nowrap; padding: 0.6rem 1rem; }
    .logo-text { font-size: 1.1rem; }
    .logo-mark { width: 2rem; height: 2rem; }
    .main-nav { display: none; }
    .nav-desktop-links { display: none; }
    .mobile-drawer {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: min(88vw, 320px);
        z-index: 10000;
        margin: 0;
        padding: 0;
        border: none;
        background: #141414;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.35);
        transform: translateX(100%);
        transition: transform 0.25s ease;
        pointer-events: none;
        visibility: hidden;
    }
    .mobile-drawer.is-open {
        transform: translateX(0);
        pointer-events: auto;
        visibility: visible;
    }
    .mobile-drawer-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 9900;
        background: rgba(0, 0, 0, 0.55);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
    }
    .mobile-drawer-backdrop[hidden] {
        display: none !important;
    }
    .mobile-drawer-backdrop.is-visible {
        opacity: 1;
        pointer-events: auto;
    }
    body.mobile-drawer-open { overflow: hidden; }
    .mobile-drawer-panel {
        display: flex;
        flex-direction: column;
        height: 100%;
        width: 100%;
        padding: 1rem 1.15rem;
        padding-top: calc(0.85rem + env(safe-area-inset-top, 0px));
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .mobile-drawer-header {
        display: flex;
        justify-content: flex-end;
        margin-bottom: 1.25rem;
    }
    .mobile-drawer-close {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 2.35rem;
        height: 2.35rem;
        padding: 0;
        border: none;
        border-radius: 6px;
        background: #243828;
        color: #fff;
        cursor: pointer;
    }
    .mobile-drawer-links {
        display: flex;
        flex-direction: column;
        gap: 0.15rem;
        flex: 1;
    }
    .mobile-drawer-link {
        display: flex;
        align-items: center;
        gap: 0.85rem;
        padding: 0.8rem 0.15rem;
        color: #fff;
        font-family: Arial, sans-serif;
        font-size: 1rem;
        font-weight: 500;
        text-decoration: none;
        border-radius: 4px;
        cursor: pointer;
        -webkit-tap-highlight-color: rgba(255, 255, 255, 0.08);
        pointer-events: auto;
    }
    .mobile-drawer-link:hover,
    .mobile-drawer-link:focus {
        color: #fff;
        text-decoration: none;
        background: rgba(255, 255, 255, 0.04);
    }
    .mobile-drawer-icon {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 1.35rem;
        flex-shrink: 0;
        color: #e85d4c;
    }
    .mobile-drawer-footer {
        margin-top: auto;
        padding-top: 1.5rem;
    }
    .mobile-drawer-logout .mobile-drawer-icon { color: #e85d4c; }
    .main-nav-guest {
        position: static;
        width: 100%;
        order: 4;
        transform: none;
        pointer-events: auto;
        background: transparent;
        box-shadow: none;
        display: none;
        padding: 0.5rem 0 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 0.25rem;
    }
    .main-nav-guest.nav-open {
        display: flex;
        transform: none;
    }
    .main-nav-guest .nav-guest-links {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        gap: 0;
    }
    .main-nav-guest .nav-link {
        padding: 0.65rem 0.5rem;
        border-radius: 4px;
    }
    .header-inner:has(.main-nav-guest.nav-open) {
        flex-wrap: wrap;
    }
    .header-online { display: none; }
    .header-inner > .header-actions:not(.header-actions-guest) { display: none; }
    .header-actions-guest { margin-left: auto; }
    .landing-features { grid-template-columns: 1fr; }
    .register-layout {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .register-promo {
        padding: 0;
        text-align: center;
    }
    .register-promo h1 { font-size: 1.6rem; }
    .register-benefits { text-align: left; }
    .register-form-grid { grid-template-columns: 1fr; }
    .preview-gate-shell {
        grid-template-columns: 1fr;
    }
    .preview-gate-brand {
        min-height: auto;
        padding: 2rem 1.25rem 1.5rem;
    }
    .preview-gate-logo .logo-mark { width: 2.75rem; height: 2.75rem; }
    .preview-gate-logo .logo-text { font-size: 1.55rem; }
    .preview-gate-brand h1 { font-size: 1.65rem; }
    .preview-gate-points { display: none; }
    .preview-gate-panel {
        padding: 0 1rem 2rem;
        align-items: flex-start;
    }
    .preview-gate-card {
        padding: 1.5rem;
    }
    .admin-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-shell { grid-template-columns: 1fr; }
    .admin-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        padding: 0.75rem 1rem;
        gap: 0.5rem 1rem;
    }
    .admin-sidebar-brand,
    .admin-sidebar-footer {
        border: 0;
        padding: 0;
        margin: 0;
    }
    .admin-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        flex: 1 1 auto;
    }
    .admin-sidebar-footer {
        flex-direction: row;
        gap: 0.25rem;
    }
    .admin-main { padding: 1rem; }
    .admin-dashboard-top { grid-template-columns: 1fr; }
    .admin-dashboard-grid,
    .admin-dashboard-grid--3 { grid-template-columns: 1fr; }
    .admin-quick-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-legal-layout { grid-template-columns: 1fr; }
    .admin-legal-nav {
        position: static;
        flex-direction: row;
        flex-wrap: wrap;
    }
    .admin-settings-grid { grid-template-columns: 1fr; }
    .admin-mode-picker { grid-template-columns: 1fr; }
    .admin-mini-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-photo-stats { grid-template-columns: repeat(2, 1fr); }
    .admin-photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .admin-lightbox-panel {
        width: calc(100% - 1rem);
        bottom: 0.65rem;
        padding: 0.75rem 0.85rem;
    }
    .admin-lightbox-hint { display: none; }
    .admin-login-shell { grid-template-columns: 1fr; }
    .admin-login-brand { display: none; }
    .admin-login-panel { padding: 1.5rem 1rem 2rem; }
    .footer-inner {
        grid-template-columns: 1fr;
        gap: 1.75rem;
        padding: 2rem 1rem 1.5rem;
    }
    .footer-brand { max-width: none; }
    .footer-columns {
        grid-template-columns: repeat(3, 1fr);
        gap: 1rem;
    }
    .footer-bottom { padding: 0.85rem 1rem; }
    .profile-layout { grid-template-columns: 1fr; }
    .thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .filter-grid { grid-template-columns: 1fr; }
    .filter-checkbox { padding-top: 0; }
    .search-traveling-bar { flex-wrap: wrap; }
    .search-page-title { display: none; }
    .search-filters-toggle { display: flex; }
    .search-filters-collapse { display: none; }
    .search-filters-collapse.is-open { display: block; }
    .slider-grid, .form-grid { grid-template-columns: 1fr; }
    .messages-layout { grid-template-columns: 1fr; }
    .messages-layout.has-thread .inbox-list-compact { display: none; }
    .messages-layout:not(.has-thread) .message-thread { display: none; }

    /* Active chat: sticky compose bar replaces mobile tab bar / footer */
    body.has-mobile-tab-bar.messages-chat-mobile {
        --mtd-tab-bar-h: 0px;
    }
    body.has-mobile-tab-bar.messages-chat-mobile .mobile-tab-bar {
        display: none;
    }
    body.messages-chat-mobile .page-wrap {
        bottom: 0;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
    body.messages-chat-mobile .layout-messages {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    body.messages-chat-mobile .messages-page {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
    }
    body.messages-chat-mobile .messages-page-header {
        display: none;
    }
    body.messages-chat-mobile .thread-back-link {
        display: flex;
    }
    body.messages-chat-mobile .thread-header {
        flex-shrink: 0;
        padding: 0.65rem 0.75rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    body.messages-chat-mobile .thread-avatar {
        width: 42px;
        height: 42px;
    }
    body.messages-chat-mobile .thread-header h2 {
        font-size: 0.98rem;
        line-height: 1.2;
    }
    body.messages-chat-mobile .thread-meta {
        font-size: 0.78rem;
        color: #777;
    }
    body.messages-chat-mobile .thread-menu-btn {
        border: none;
        background: transparent;
        width: 40px;
        height: 40px;
    }
    body.messages-chat-mobile .messages-layout.has-thread {
        flex: 1;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 0;
    }
    body.messages-chat-mobile .message-thread {
        flex: 1;
        min-height: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-bottom: none;
    }
    body.messages-chat-mobile .thread-messages {
        flex: 1;
        min-height: 0;
        padding-bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px));
    }
    body.messages-chat-mobile .message-form,
    body.messages-chat-mobile .message-blocked-notice {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 9700;
        margin: 0;
        padding-bottom: calc(0.65rem + env(safe-area-inset-bottom, 0px));
        box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.1);
    }
    body.messages-chat-mobile .message-hint {
        display: none;
    }
    body.messages-chat-mobile .message-emoji-picker {
        z-index: 9800;
    }

    .messages-back-link { display: inline-flex; }
    .message-bubble { max-width: 88%; }

    /* Mobile app shell — member pages site-wide */
    .has-mobile-tab-bar .page-wrap:has(.layout-page),
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) .page-wrap:has(.layout-page) {
        padding: 0;
    }
    .layout-page {
        max-width: none;
        margin: 0;
    }
    .mobile-page-head {
        margin: 0;
        padding: 0.75rem 1rem 0.65rem;
        font-size: 1.2rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .mobile-page-intro {
        margin: 0;
        padding: 0.55rem 1rem 0.75rem;
        font-size: 0.85rem;
        color: #666;
        background: #fff;
        border-bottom: 1px solid #eee;
    }

    /* Overview */
    .layout-overview .hero-banner {
        height: 88px;
        border-radius: 0;
        margin-bottom: 0;
    }
    .layout-overview .guest-cta-banner {
        margin: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .layout-overview > .main-content > h1 {
        margin: 0;
        padding: 0.75rem 1rem 0.35rem;
        font-size: 1.2rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-overview .intro {
        margin: 0 0 0.75rem;
        padding: 0.65rem 1rem;
        font-size: 0.85rem;
    }
    .layout-overview .thumb-section {
        margin-bottom: 1rem;
        padding: 0 0.65rem;
    }
    .layout-overview .member-cards-section {
        margin-bottom: 1rem;
        padding: 0 0.65rem;
    }
    .layout-overview .member-cards-section h2,
    .layout-overview .thumb-section h2 {
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #666;
        margin-bottom: 0.5rem;
        padding-bottom: 0.35rem;
        border-bottom: 1px solid #e8e2d8;
    }

    /* Search */
    .layout-search .search-filters-toggle {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0;
        border-top: none;
    }
    .layout-search .search-filters-collapse.is-open .search-filters {
        border-radius: 0;
        border-left: none;
        border-right: none;
        margin-bottom: 0.75rem;
    }
    .layout-search .search-traveling-bar,
    .layout-search .search-results-bar,
    .layout-search .search-results,
    .layout-search .saved-searches,
    .layout-search .thumb-grid,
    .layout-search .pagination,
    .layout-search .empty-state {
        margin-left: 0.65rem;
        margin-right: 0.65rem;
    }

    /* Account */
    .layout-account .account-page {
        gap: 0;
        padding-bottom: 0.5rem;
    }
    .layout-account .account-mobile-head {
        display: block;
        margin: 0;
        padding: 0.75rem 1rem 0.65rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-account .account-mobile-head h1 {
        margin: 0;
        font-size: 1.2rem;
        color: #2c2c2c;
    }
    .layout-account .account-lead {
        display: none;
    }
    .layout-account .account-card {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 1rem;
        margin-bottom: 0;
    }
    .layout-account .account-desktop-title {
        display: none;
    }
    .layout-account .account-identity-body {
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.85rem;
    }
    .layout-account .account-photo-link {
        align-items: center;
    }
    .layout-account .account-photo {
        width: 72px;
        height: 72px;
        border-width: 2px;
    }
    .layout-account .account-photo-label {
        display: none;
    }
    .layout-account .account-identity-meta h2 {
        font-size: 1.15rem;
        margin-bottom: 0.1rem;
    }
    .layout-account .account-email {
        font-size: 0.82rem;
        margin-bottom: 0.55rem;
    }
    .layout-account .account-meta-list {
        grid-template-columns: 1fr 1fr;
        gap: 0.45rem 0.75rem;
    }
    .layout-account .account-meta-list dt {
        font-size: 0.65rem;
    }
    .layout-account .account-meta-list dd {
        font-size: 0.82rem;
    }
    .layout-account .account-progress-bar {
        display: block;
        width: 100%;
        margin-top: 0.25rem;
    }
    .layout-account .account-progress-value {
        margin-right: 0;
    }
    .layout-account .account-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0;
        margin: 0;
        border-bottom: 1px solid #e8e2d8;
        background: #fff;
    }
    .layout-account .account-stat-card {
        border-radius: 0;
        border: none;
        border-right: 1px solid #eee;
        border-bottom: 1px solid #eee;
        padding: 0.85rem 0.75rem;
        min-height: 5.5rem;
        box-shadow: none;
    }
    .layout-account .account-stat-card:nth-child(2n) {
        border-right: none;
    }
    .layout-account .account-stat-card:nth-last-child(-n+2) {
        border-bottom: none;
    }
    .layout-account .account-stat-card:hover {
        background: #faf8f4;
        box-shadow: none;
    }
    .layout-account .account-stat-value {
        font-size: 1.45rem;
    }
    .layout-account .account-stat-label {
        font-size: 0.82rem;
    }
    .layout-account .account-stat-hint,
    .layout-account .account-stat-action {
        display: none;
    }
    .layout-account .account-link-panel {
        display: block;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-account .account-link-panel-title {
        display: block;
        margin: 0;
        padding: 0.75rem 1rem 0.35rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #888;
    }
    .layout-account .account-links {
        display: flex;
        flex-direction: column;
        gap: 0;
        padding: 0;
        margin: 0;
        border-top: 1px solid #eee;
    }
    .layout-account .account-links a {
        min-height: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.75rem;
        padding: 0.75rem 1rem;
        background: #fff;
        border: none;
        border-radius: 0;
        border-bottom: 1px solid #eee;
        font-size: 0.92rem;
        font-weight: 500;
        color: #333;
    }
    .layout-account .account-links a:last-child {
        border-bottom: none;
    }
    .layout-account .account-links a::after {
        content: '';
        flex-shrink: 0;
        width: 0.45rem;
        height: 0.45rem;
        border-top: 2px solid #bbb;
        border-right: 2px solid #bbb;
        transform: rotate(45deg);
    }
    .layout-account .account-links a:hover,
    .layout-account .account-links a:focus {
        background: #faf8f4;
        color: #2c5f2e;
    }
    .layout-account .account-links a.account-link-emphasis {
        color: #c45a00;
        font-weight: 600;
    }
    .layout-account .account-link-panel + .account-card,
    .layout-account .account-card + .account-card {
        margin-top: 0.65rem;
    }
    .layout-account .account-card h2 {
        font-size: 1.05rem;
        margin-bottom: 0.65rem;
    }
    .layout-account .account-section-copy {
        font-size: 0.85rem;
        line-height: 1.45;
    }
    .layout-account .account-notify-toggles {
        gap: 0;
        border: 1px solid #eee;
        border-radius: 4px;
        overflow: hidden;
    }
    .layout-account .account-notify-toggles li {
        border-bottom: 1px solid #eee;
    }
    .layout-account .account-notify-toggles li:last-child {
        border-bottom: none;
    }
    .layout-account .account-notify-toggles label {
        min-height: 48px;
        padding: 0.65rem 0.85rem;
        justify-content: space-between;
        flex-direction: row-reverse;
    }
    .layout-account .account-notify-toggles input[type="checkbox"] {
        width: 1.15rem;
        height: 1.15rem;
        flex-shrink: 0;
    }
    .layout-account .account-notify-form .btn,
    .layout-account .account-password-form .btn {
        width: 100%;
        min-height: 44px;
    }
    .layout-account .account-password-form {
        max-width: none;
    }
    .layout-account .account-password-form label {
        display: grid;
        gap: 0.35rem;
    }
    .layout-account .account-password-form input {
        width: 100%;
        min-height: 44px;
        font-size: 16px;
    }
    .layout-account .push-device-actions {
        flex-direction: column;
    }
    .layout-account .push-device-actions .btn {
        width: 100%;
        min-height: 44px;
        justify-content: center;
    }
    .layout-account .push-hint {
        font-size: 0.82rem;
    }

    /* Edit profile */
    .layout-edit-profile .edit-profile-hero,
    .layout-edit-profile .hero-banner {
        display: none;
    }
    .layout-edit-profile .edit-profile-mobile-head {
        display: block;
        margin: 0;
        padding: 0.75rem 1rem 0.65rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-edit-profile .edit-profile-mobile-head h1 {
        margin: 0;
        font-size: 1.2rem;
        color: #2c2c2c;
    }
    .layout-edit-profile .edit-profile-progress {
        margin-top: 0.55rem;
    }
    .layout-edit-profile .edit-profile-progress-meta {
        font-size: 0.78rem;
    }
    .layout-edit-profile .edit-profile-progress-bar {
        height: 8px;
    }
    .layout-edit-profile .profile-form {
        display: flex;
        flex-direction: column;
        gap: 0.65rem;
        padding-bottom: calc(5.5rem + var(--mtd-tab-bar-h, 0px));
    }
    .layout-edit-profile .form-section {
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 1rem;
    }
    .layout-edit-profile .form-section h2 {
        margin: 0 0 0.85rem;
        padding: 0 0 0.55rem;
        font-size: 0.72rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: #888;
        border-bottom: 1px solid #eee;
    }
    .layout-edit-profile .form-hint {
        font-size: 0.82rem;
        line-height: 1.45;
        margin-bottom: 0.65rem;
    }
    .layout-edit-profile .form-grid {
        gap: 0.65rem;
    }
    .layout-edit-profile .form-grid-pair,
    .layout-edit-profile .form-grid-triple {
        gap: 0.65rem;
    }
    .layout-edit-profile label {
        margin-bottom: 0;
        font-size: 0.88rem;
    }
    .layout-edit-profile input[type="text"],
    .layout-edit-profile input[type="email"],
    .layout-edit-profile input[type="date"],
    .layout-edit-profile select,
    .layout-edit-profile textarea {
        min-height: 44px;
        font-size: 16px;
        margin-top: 0.35rem;
        border-color: #d8d2c8;
        border-radius: 4px;
    }
    .layout-edit-profile textarea {
        min-height: 7rem;
        padding: 0.65rem 0.75rem;
        line-height: 1.45;
    }
    .layout-edit-profile .checkbox-label {
        display: flex;
        align-items: center;
        gap: 0.65rem;
        min-height: 48px;
        margin: 0 0 0.65rem;
        padding: 0.65rem 0.85rem;
        background: #faf8f4;
        border: 1px solid #eee;
        border-radius: 4px;
        font-weight: 600;
        color: #333;
    }
    .layout-edit-profile .checkbox-label input[type="checkbox"] {
        width: 1.15rem;
        height: 1.15rem;
        margin: 0;
        flex-shrink: 0;
    }
    .layout-edit-profile .slider-grid {
        gap: 0.75rem;
    }
    .layout-edit-profile .slider-row {
        grid-template-columns: 1fr auto;
        grid-template-rows: auto auto;
        gap: 0.35rem 0.65rem;
        padding: 0.65rem 0;
        border-bottom: 1px solid #f0ebe0;
    }
    .layout-edit-profile .slider-row:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    .layout-edit-profile .slider-row label {
        grid-column: 1 / -1;
        margin: 0;
        font-size: 0.88rem;
        font-weight: 600;
        color: #333;
    }
    .layout-edit-profile .slider-input {
        grid-column: 1;
        min-height: 28px;
    }
    .layout-edit-profile .slider-value {
        grid-column: 2;
        grid-row: 2;
        align-self: center;
        min-width: 1.5rem;
        font-size: 0.95rem;
    }
    .layout-edit-profile .profile-form-actions {
        position: fixed;
        left: 0;
        right: 0;
        bottom: var(--mtd-tab-bar-h, 0px);
        z-index: 9600;
        margin: 0;
        padding: 0.75rem 1rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        background: rgba(250, 248, 244, 0.96);
        border-top: 1px solid #e8e2d8;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
    .layout-edit-profile .profile-form-actions .btn {
        width: 100%;
        min-height: 48px;
        font-size: 1rem;
    }

    /* Stamps */
    .layout-stamps.layout-with-sidebar,
    .layout-profile-stamps.layout-with-sidebar {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .layout-stamps .sidebar,
    .layout-profile-stamps .sidebar {
        order: -1;
        margin-top: 0;
        margin-bottom: 0;
    }
    .layout-stamps .main-content,
    .layout-profile-stamps .main-content {
        order: 0;
    }
    .layout-stamps .stamps-sidebar,
    .layout-profile-stamps .stamps-sidebar {
        margin-bottom: 0.65rem;
    }
    .layout-stamps .stamps-info-widget,
    .layout-profile-stamps .stamps-info-widget {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 1rem;
    }
    .layout-stamps .stamps-info-widget h3,
    .layout-profile-stamps .stamps-info-widget h3 {
        font-size: 0.95rem;
        margin-bottom: 0.65rem;
    }
    .layout-stamps .stamps-info-widget p,
    .layout-stamps .stamps-info-widget li,
    .layout-profile-stamps .stamps-info-widget p,
    .layout-profile-stamps .stamps-info-widget li {
        font-size: 0.85rem;
    }
    .layout-stamps .stamps-info-highlight,
    .layout-profile-stamps .stamps-info-highlight {
        font-size: 0.82rem;
    }
    .layout-profile-stamps .hero-banner,
    .layout-profile-stamps > .main-content > h1 {
        display: none;
    }
    .layout-profile-stamps .profile-tabs {
        margin: 0;
        padding: 0 0.65rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-profile-stamps .stamp-passport-section--tab {
        margin: 0;
        padding: 1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        background: #fff;
    }
    .layout-profile-stamps .stamp-collection--profile-tab {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem 0.55rem;
    }
    .layout-profile-stamps .stamp-collection--profile-tab .stamp-item {
        width: auto;
    }
    .layout-profile-stamps .stamp-collection--profile-tab .stamp-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }
    .layout-profile-stamps .stamp-collection--profile-tab .stamp-name {
        max-width: none;
        font-size: 0.68rem;
    }
    .layout-stamps .stamps-page {
        gap: 0;
    }
    .layout-stamps .stamps-add-panel,
    .layout-stamps .stamps-collection-panel,
    .layout-stamps .stamps-empty-panel {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 1rem;
        margin: 0;
    }
    .layout-stamps .stamps-collection-panel {
        margin-top: 0.65rem;
    }
    .layout-stamps .stamps-section-title {
        margin-bottom: 0.75rem;
    }
    .layout-stamps .stamp-add-form {
        flex-direction: column;
        align-items: stretch;
        gap: 0.65rem;
    }
    .layout-stamps .stamp-add-form label {
        min-width: 0;
    }
    .layout-stamps .stamp-add-form select {
        min-height: 44px;
        font-size: 16px;
    }
    .layout-stamps .stamp-add-form .btn {
        width: 100%;
        min-height: 44px;
    }
    .layout-stamps .stamp-collection {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.85rem 0.55rem;
        margin-top: 0;
        padding: 0;
    }
    .layout-stamps .stamp-collection--manage {
        margin-top: 0;
    }
    .layout-stamps .stamp-item {
        width: auto;
    }
    .layout-stamps .stamp-image {
        width: 100%;
        height: auto;
        aspect-ratio: 1;
        object-fit: contain;
    }
    .layout-stamps .stamp-name {
        max-width: none;
        font-size: 0.68rem;
    }
    .layout-stamps .stamp-remove-btn {
        width: 1.65rem;
        height: 1.65rem;
        font-size: 1.05rem;
    }
    .layout-stamps .stamps-empty-panel .empty-state {
        margin: 0;
        padding: 0.5rem 0;
        text-align: center;
        font-size: 0.9rem;
    }

    /* Activity grids (likes, visits, photos, stamps) */
    .layout-likes > .main-content > h1,
    .layout-visits > .main-content > h1,
    .layout-photos > .main-content > h1 {
        margin: 0;
        padding: 0.75rem 1rem 0.35rem;
        font-size: 1.2rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-likes .intro,
    .layout-visits .intro,
    .layout-photos .intro {
        margin: 0;
        padding: 0.55rem 1rem 0.75rem;
        font-size: 0.85rem;
        background: #fff;
        border-bottom: 1px solid #eee;
    }
    .layout-likes .thumb-grid,
    .layout-visits .thumb-grid,
    .layout-photos .thumb-grid,
    .layout-likes .member-cards-section,
    .layout-visits .member-cards-section,
    .layout-likes .empty-state,
    .layout-visits .empty-state {
        padding: 0.75rem 0.65rem;
    }

    /* Messages inbox */
    body:not(.messages-chat-mobile) .layout-messages .messages-page-header {
        margin: 0;
        padding: 0.75rem 1rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    body:not(.messages-chat-mobile) .layout-messages .messages-page-header h1 {
        margin: 0;
        font-size: 1.2rem;
    }
    body:not(.messages-chat-mobile) .layout-messages .messages-layout {
        padding: 0.65rem;
        min-height: auto;
    }

    /* Profile & forum */
    .layout-profile > .main-content > h1,
    .layout-profile .profile-header h1 {
        font-size: 1.25rem;
    }
    .layout-profile .profile-layout {
        gap: 0.75rem;
        padding: 0 0.65rem 0.75rem;
    }
    .layout-page .forum-category-card,
    .layout-page .thread-item,
    .layout-page .forum-post {
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    .layout-page .forum-categories,
    .layout-page .thread-list,
    .layout-page > .main-content > h1,
    .layout-page > .main-content > .intro {
        padding-left: 0.65rem;
        padding-right: 0.65rem;
    }
    .layout-page > .main-content > h1 {
        margin-top: 0.75rem;
        font-size: 1.2rem;
    }

    /* Megaphone mobile feed */
    .map-hero { height: 100%; min-height: 0; }
    .map-region-nav {
        top: 0.65rem;
        right: 0.65rem;
        max-width: min(12rem, calc(100% - 1.3rem));
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-end;
    }
    .map-region-btn {
        font-size: 0.68rem;
        padding: 0.35rem 0.5rem;
        flex: 0 1 auto;
    }
    .layout-megaphone .megaphone-page-header {
        margin-bottom: 0;
        padding: 0.75rem 1rem 0.65rem;
        background: #fff;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-megaphone .megaphone-page-header h1 {
        font-size: 1.2rem;
        margin-bottom: 0.15rem;
    }
    .layout-megaphone .megaphone-page-intro {
        font-size: 0.82rem;
        line-height: 1.45;
        max-width: none;
    }
    .layout-megaphone .megaphone-composer {
        position: sticky;
        top: 0;
        z-index: 60;
        margin-bottom: 0;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 0.75rem 1rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    }
    .layout-megaphone .megaphone-composer-form {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.65rem;
    }
    .layout-megaphone .megaphone-composer-avatar {
        width: 40px;
        height: 40px;
    }
    .layout-megaphone .megaphone-composer-body textarea {
        min-height: 44px;
        font-size: 16px;
        padding: 0.65rem 0.85rem;
    }
    .layout-megaphone .megaphone-composer-footer {
        flex-direction: row;
        align-items: center;
        margin-top: 0.5rem;
        padding-top: 0.5rem;
    }
    .layout-megaphone .megaphone-composer-footer .btn {
        width: auto;
        min-width: 4.25rem;
        min-height: 32px;
        padding: 0.35rem 0.85rem;
        font-size: 0.82rem;
    }
    .layout-megaphone .megaphone-feed-section {
        border: none;
        border-radius: 0;
        padding: 0;
        background: var(--theme-background, #f5f0e8);
    }
    .layout-megaphone .megaphone-feed-title {
        margin: 0;
        padding: 0.6rem 1rem;
        font-size: 0.78rem;
        text-transform: uppercase;
        letter-spacing: 0.05em;
        color: #777;
        background: #faf8f5;
        border-bottom: 1px solid #e8e2d8;
    }
    .layout-megaphone .megaphone-feed-list {
        gap: 0;
    }
    .layout-megaphone .megaphone-post {
        gap: 0.75rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
        padding: 0.85rem 1rem;
        box-shadow: none;
    }
    .layout-megaphone .megaphone-post:hover {
        box-shadow: none;
    }
    .layout-megaphone .megaphone-post-avatar {
        width: 44px;
        height: 44px;
    }
    .layout-megaphone .megaphone-post-header {
        flex-direction: row;
        align-items: flex-start;
        gap: 0.5rem;
        margin-bottom: 0.4rem;
    }
    .layout-megaphone .megaphone-post-author {
        flex: 1;
        min-width: 0;
    }
    .layout-megaphone .megaphone-post-name {
        font-size: 0.92rem;
        margin-bottom: 0.1rem;
    }
    .layout-megaphone .megaphone-post-meta {
        font-size: 0.72rem;
    }
    .layout-megaphone .megaphone-post-time {
        font-size: 0.68rem;
        padding: 0;
        background: transparent;
    }
    .layout-megaphone .megaphone-post-message {
        background: transparent;
        border: none;
        padding: 0;
        margin-bottom: 0.65rem;
        font-size: 0.92rem;
        line-height: 1.5;
    }
    .layout-megaphone .megaphone-post-actions {
        gap: 0.3rem;
    }
    .layout-megaphone .megaphone-post-action {
        flex: 0 1 auto;
        justify-content: center;
        min-height: 30px;
        font-size: 0.68rem;
        padding: 0.22rem 0.55rem;
    }
    .layout-megaphone .megaphone-pagination .btn {
        min-height: 32px;
        padding: 0.35rem 0.75rem;
        font-size: 0.82rem;
    }
    .layout-megaphone .megaphone-empty {
        margin: 1rem;
        border-radius: 10px;
    }
    .layout-megaphone .megaphone-pagination {
        margin-top: 0;
        padding: 1rem;
        background: #fff;
        border-top: 1px solid #e8e2d8;
    }
    .layout-megaphone .megaphone-verify-notice {
        margin: 0;
    }
    .lightbox-stage { padding: calc(3.5rem + env(safe-area-inset-top, 0px)) 1rem calc(2.5rem + env(safe-area-inset-bottom, 0px)); }
    .lightbox-stage img {
        max-width: 100vw;
        max-height: calc(100dvh - 6rem - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
    }
    .lightbox-close {
        top: calc(1rem + env(safe-area-inset-top, 0px));
        right: calc(1rem + env(safe-area-inset-right, 0px));
    }
    .lightbox-counter {
        bottom: calc(1.25rem + env(safe-area-inset-bottom, 0px));
    }
    .lightbox-prev, .lightbox-next { width: 2.5rem; height: 3rem; font-size: 1.8rem; }
    .lightbox-prev { left: 0.25rem; }
    .lightbox-next { right: 0.25rem; }
    .cookie-banner {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        padding: 1rem;
        padding-bottom: calc(1rem + env(safe-area-inset-bottom, 0px));
    }
    .cookie-banner .btn { width: 100%; min-height: 44px; }
}

@media (max-width: 640px) {
    .has-mobile-tab-bar .page-wrap:not(:has(.layout-page)),
    body:not(.has-mobile-tab-bar):not(.admin-body):not(.preview-gate-body) .page-wrap:not(:has(.layout-page)) {
        padding: 0.75rem 0.85rem 1rem;
    }
    body.messages-chat-mobile .page-wrap {
        padding: 0;
    }
    h1 { font-size: 1.35rem; }
    .thumb-grid { grid-template-columns: repeat(2, 1fr); gap: 0.45rem; }
    .member-cards-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .sidebar-thumb-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-columns { grid-template-columns: 1fr; gap: 1.25rem; }
    .footer-col a {
        display: block;
        padding: 0.35rem 0;
        min-height: 36px;
    }
    .btn, .btn-small, .message-send-btn, .header-icon-btn {
        min-height: 44px;
    }
    .layout-megaphone .btn,
    .layout-megaphone .megaphone-post-action {
        min-height: 30px;
    }
    .layout-megaphone .megaphone-composer-footer .btn {
        min-height: 32px;
    }
    .btn-small { display: inline-flex; align-items: center; justify-content: center; }
    input[type="text"],
    input[type="email"],
    input[type="password"],
    input[type="number"],
    input[type="date"],
    input[type="search"],
    input[type="tel"],
    input[type="url"],
    select,
    textarea {
        font-size: 16px;
    }
    .search-filters { padding: 1rem; }
    .guest-cta-banner { font-size: 0.85rem; }
    .verify-banner { font-size: 0.82rem; padding: 0.55rem 0.85rem; }
    .forum-post-body, .thread-item h3 { word-break: break-word; }
}

/* Push notifications */
.push-banner {
    position: sticky;
    top: 0;
    z-index: 90;
    background: linear-gradient(135deg, #0f4c5c 0%, #1b6b7a 100%);
    color: #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.push-banner-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.85rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}
.push-banner-text { margin: 0; font-size: 0.92rem; flex: 1 1 220px; }
.push-banner-actions { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.push-device-panel { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--border, #e5e7eb); }
.push-status { margin: 0 0 0.75rem; font-size: 0.92rem; }
.push-status--ok { color: #0d7a4c; }
.push-status--warn { color: #9a6700; }
.push-status--err { color: #b42318; }
.push-device-actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.75rem; }
.push-device-list { margin: 0 0 0.75rem; padding-left: 1.1rem; font-size: 0.88rem; color: var(--text-muted, #64748b); }
.account-notify-toggles { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: 0.55rem; }
.account-notify-toggles label { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.push-hint { margin-top: 0.75rem; font-size: 0.88rem; }
