* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    --primary-color: #34a853;
    --secondary-color: #9ced16;
    --danger-color: #ea4335;
    --warning-color: #fbbc04;
    --text-primary: #202124;
    --text-secondary: #5f6368;
    --text-light: #80868b;
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --border-color: #dadce0;
    --shadow-sm: 0 1px 2px 0 rgba(60,64,67,0.3), 0 1px 3px 1px rgba(60,64,67,0.15);
    --shadow-md: 0 1px 3px 0 rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
    --shadow-lg: 0 2px 6px 2px rgba(60,64,67,0.3), 0 8px 16px 6px rgba(60,64,67,0.15);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --nav-height: 64px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

#app {
    width: 100%;
    height: 100vh;
    height: 100dvh;
    position: relative;
    overflow: hidden;
}

/* ===== VIEWS ===== */
.view {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: var(--nav-height);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* ===== MAP ===== */
#map {
    height: 100vh;
    width: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

#viewMap {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.leaflet-container {
    background: #e5e8eb !important;
    font-family: 'Google Sans', 'Roboto', -apple-system, BlinkMacSystemFont, sans-serif;
}

.leaflet-tile-pane {
    filter: contrast(1.02) saturate(0.95) brightness(1.03);
}

.leaflet-tile {
    border: none !important;
}

.leaflet-control-zoom {
    border: none !important;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2) !important;
    border-radius: 2px !important;
    overflow: hidden;
    margin-right: 12px !important;
    margin-top: 140px !important;
}

.leaflet-control-zoom a {
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    border: none !important;
    background: white !important;
    color: #666 !important;
    font-weight: 400 !important;
    transition: background 0.2s ease !important;
}

.leaflet-control-zoom a:first-child {
    border-bottom: 1px solid #e0e0e0 !important;
}

.leaflet-control-zoom a:hover {
    background: #f5f5f5 !important;
    color: #333 !important;
}

.leaflet-control-attribution {
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 2px !important;
    padding: 3px 8px !important;
    font-size: 10px !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15) !important;
    margin: 0 8px 8px 0 !important;
    color: #666 !important;
}

.leaflet-control-attribution a {
    color: #1a73e8 !important;
    text-decoration: none;
}

.leaflet-popup {
    display: none !important;
}

.leaflet-bottom {
    bottom: 8px !important;
}

.leaflet-zoom-animated {
    transition: transform 0.25s cubic-bezier(0.4, 0.0, 0.2, 1);
}

/* Custom Markers */
.custom-marker {
    background: transparent !important;
    border: none !important;
}

.custom-marker div {
    filter: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-marker:hover div {
    filter: none;
    transform: scale(1.15);
}

/* ===== MAP LOADING ===== */
.map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 999;
    text-align: center;
}

.map-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 12px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.map-loading-text {
    color: var(--text-secondary);
    font-size: 14px;
}

/* ===== SEARCH BAR ===== */
.map-search-bar {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    z-index: 1000;
    display: flex;
    gap: 8px;
}

.search-input {
    flex: 1;
    background: var(--bg-primary);
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
}

.search-input:active {
    transform: scale(0.98);
}

.search-input i {
    color: var(--text-secondary);
    font-size: 18px;
}

.search-input span {
    color: var(--text-secondary);
    font-size: 16px;
    flex: 1;
    text-align: left;
}

.location-btn {
    width: 48px;
    height: 48px;
    background: var(--bg-primary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.location-btn:active {
    transform: scale(0.95);
}

.location-btn i {
    color: var(--primary-color);
    font-size: 20px;
}

.location-btn.active {
    background: linear-gradient(135deg, #fd39ea 0%, #da0369 100%);
}

.location-btn.active i {
    color: white;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* ===== FILTER CHIPS ===== */
.filter-chips {
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    z-index: 1000;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 16px 8px 16px;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.95);
    border: none;
    border-radius: var(--radius-xl);
    padding: 10px 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    box-shadow: 0 1px 4px rgba(0,0,0,0.15);
}

.filter-chip:active {
    transform: scale(0.95);
}

.filter-chip.active {
    background: var(--primary-color);
    color: white;
    box-shadow: 0 2px 8px rgba(66,133,244,0.4);
}

.filter-chip i {
    font-size: 16px;
}

/* ===== LIST VIEW BUTTON ===== */
.list-view-btn {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    box-shadow: 0 2px 12px rgba(52, 168, 83, 0.25);
    z-index: 1000;
    background: linear-gradient(135deg, #b02da4 0%, #f0138c 100%);
    border: none;
    border-radius: var(--radius-xl);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: white;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.18);
}

.list-view-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 6px rgba(52, 168, 83, 0.3);
}

.list-view-btn i {
    font-size: 14px;
    color: white;
}

/* ===== CALENDAR VIEW BUTTON ===== */
.calendar-view-btn {
    position: static;
    transform: none;
    top: auto;
    left: auto;
    margin-left: 0;
    box-shadow: 0 2px 12px rgba(156, 237, 22, 0.22);
    z-index: 1000;
    background: linear-gradient(135deg, #d6ff34 0%, #f9ff97 100%);
    border-radius: var(--radius-xl);
    padding: 10px 18px;
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #2a4a00;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 1px rgba(255,255,255,0.3);
	border:2px solid #b9e067;
}

.calendar-view-btn:active {
    transform: scale(0.96);
    box-shadow: 0 1px 6px rgba(156, 237, 22, 0.25);
}

.calendar-view-btn i {
    font-size: 14px;
    color: #2a4a00;
}

/* ===== LIST VIEW PANEL ===== */
.list-view-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    /* Above .bottom-nav (2000) so full-screen modal fully covers it
       and the last rows of content aren't hidden behind the tab bar. */
    z-index: 2100;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    visibility: hidden;
}

.list-view-panel.active {
    transform: translateX(0);
    visibility: visible;
}

.list-view-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
    min-height: 56px;
}

.list-view-header .back-btn {
    flex-shrink: 0;
}

.list-view-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    flex: 1;
}

.list-view-count {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--bg-secondary);
    padding: 4px 10px;
    border-radius: var(--radius-xl);
    flex-shrink: 0;
}

/* List view filters */
.list-view-filters {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.list-filter-row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
    margin-bottom: 12px;
}

.list-filter-row:last-child {
    margin-bottom: 0;
}

.list-filter-row::-webkit-scrollbar {
    display: none;
}

/* Distance slider */
.distance-slider-wrap {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.distance-slider-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.distance-slider-label span {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.distance-slider-label strong {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 700;
}

.distance-slider {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px;
    border-radius: 2px;
    background: var(--border-color);
    outline: none;
    cursor: pointer;
    transition: var(--transition);
}

.distance-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52,168,83,0.4);
    border: 3px solid white;
    transition: var(--transition);
}

.distance-slider::-webkit-slider-thumb:active {
    transform: scale(1.2);
}

.distance-slider::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(52,168,83,0.4);
    border: 3px solid white;
}

/* List content */
.list-view-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    min-height: 0;
    /* Space for iOS home indicator + extra breathing room so the last
       card isn't flush to the bottom edge. */
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
}

/* ===== LIST ITEM CARD ===== */
.list-item-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.list-item-card:active {
    background: var(--bg-secondary);
}

.list-item-badge {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.list-item-badge img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
}

.list-item-badge-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: white;
}

.list-item-info {
    flex: 1;
    min-width: 0;
}

.list-item-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-item-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.list-item-tag {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 4px;
}

.list-item-tag i {
    font-size: 11px;
    color: var(--text-light);
}

.list-item-right {
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.days-badge {
    background: var(--primary-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: var(--radius-xl);
    white-space: nowrap;
    line-height: 1.4;
    text-align: center;
}

.days-badge.today {
    background: #ea4335;
    animation: badgePulse 2s infinite;
}

.days-badge.soon {
    background: #fbbc04;
    color: #333;
}

.days-badge.spot-badge {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

@keyframes badgePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.75; }
}

.list-item-distance {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 600;
    white-space: nowrap;
}

/* ===== SEARCH PANEL ===== */
.search-panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 4000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.search-panel.active {
    transform: translateX(0);
}

.search-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
}

.back-btn {
    width: 40px;
    height: 40px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.back-btn:active {
    background: var(--bg-secondary);
}

.search-input-real {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 12px 16px;
}

.search-input-real i {
    color: var(--text-secondary);
    font-size: 18px;
}

.search-input-real input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.search-results {
    overflow-y: auto;
    height: calc(100% - 64px);
    padding: 16px;
}

.search-section {
    margin-bottom: 24px;
}

.search-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: var(--bg-primary);
    border-radius: var(--radius-md);
    margin-bottom: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.search-item:active {
    background: var(--bg-secondary);
}

.search-item-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-secondary);
    color: var(--text-secondary);
}

.search-item-content {
    flex: 1;
    min-width: 0;
}

.search-item-title {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.search-item-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
}

.empty-state-small {
    text-align: center;
    padding: 40px 20px;
}

.empty-state-small i {
    font-size: 48px;
    color: var(--text-light);
    margin-bottom: 12px;
    display: block;
}

.empty-state-small p {
    color: var(--text-secondary);
    margin: 0;
}

/* ===== DETAIL PANEL ===== */
.detail-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-primary);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.detail-panel.active {
    transform: translateX(0);
}

.detail-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border-color);
    min-height: 56px;
    flex-shrink: 0;
}

.detail-header-title {
    flex: 1;
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.detail-content {
    overflow-y: auto;
    height: calc(100% - 56px);
    padding: 0;
}

/* ===== VIEW HEADERS ===== */
.view-header {
    padding: 0 16px;
    background: var(--bg-primary);
   
    flex-shrink: 0;
    z-index: 1;
    min-height: 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.view-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
    padding: 14px 0 0 0;
}

.view-header-actions {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 40px;
    height: 40px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    transition: var(--transition);
}

.header-btn:active {
    background: var(--border-color);
}

.view-search {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: 10px 16px;
}

.view-search i {
    color: var(--text-secondary);
    font-size: 16px;
}

.view-search input {
    flex: 1;
    border: none;
    background: none;
    outline: none;
    font-size: 16px;
    color: var(--text-primary);
}

.view-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    position: relative;
    min-height: 0;
}

.view-content::after {
    content: '';
    display: block;
    height: 20px;
    flex-shrink: 0;
}

/* ===== PROFILES VIEW ===== */
.member-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.member-card:active {
    background: var(--bg-secondary);
}

.member-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--bg-secondary);
    flex-shrink: 0;
}

.member-avatar-placeholder {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: white;
    flex-shrink: 0;
}

.member-info {
    flex: 1;
    min-width: 0;
}

.member-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.member-meta i {
    margin-right: 4px;
    color: var(--text-light);
}

.member-badges {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
    flex-shrink: 0;
}

.member-distance {
    font-size: 12px;
    color: var(--primary-color);
    font-weight: 500;
    white-space: nowrap;
}

.member-last-active {
    font-size: 11px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.member-location {
    margin-top: 5px;
}

/* Charts header: title + button on same row */
#viewCharts .view-header {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    min-height: 56px;
}

#viewCharts .view-header h2 {
    padding: 0;
    font-size: 18px;
}

/* ===== CHARTS VIEW ===== */
.charts-sort {
    display: flex;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.sort-btn {
    padding: 8px 16px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 6px;
}

.sort-btn.active {
    background: linear-gradient(135deg, #34a853 0%, #2d9148 100%);
    color: white;
    border-color: #34a853;
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.3);
}

.sort-btn:active {
    transform: scale(0.97);
}

.chart-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
}

.chart-rank {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-light);
    width: 30px;
    text-align: center;
    flex-shrink: 0;
}

.chart-rank.top-3 {
    color: #34a853;
    text-shadow: 0 0 8px rgba(52, 168, 83, 0.3);
}

.chart-thumb {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    cursor: pointer;
    transition: var(--transition);
    display: block;
}

.chart-item a {
    display: block;
    text-decoration: none;
}

.chart-thumb:active {
    transform: scale(0.95);
}

.chart-info {
    flex: 1;
    min-width: 0;
}

.chart-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-artist {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
}

.chart-artist:hover {
    color: var(--primary-color);
}

.chart-artist:active {
    opacity: 0.7;
}

.chart-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.chart-vote-btn:active {
    transform: scale(0.95);
}

.chart-vote-btn.voted {
    background: linear-gradient(135deg, #fce8e6 0%, #f8d7da 100%);
    border-color: var(--danger-color);
    color: var(--danger-color);
    animation: votePulse 0.3s ease;
}

@keyframes votePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chart-vote-btn i {
    font-size: 18px;
}

.chart-vote-btn span {
    font-size: 12px;
    font-weight: 600;
}

.chart-title-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.chart-title-link:hover .chart-title {
    color: var(--primary-color);
}

/* ===== PROFILE VIEW ===== */
.profile-header-card {
    padding: 24px 16px;
    text-align: center;
    border-bottom: 1px solid var(--border-color);
}

.profile-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 12px;
    display: block;
}

.profile-avatar-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: 700;
    color: white;
    margin: 0 auto 12px;
}

.profile-username {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.profile-realname {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.profile-oneliner {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-location {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.profile-location i {
    color: #34a853;
    margin-right: 4px;
}

.profile-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

.profile-btn {
    padding: 10px 24px;
    border-radius: var(--radius-xl);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.profile-btn:active {
    transform: scale(0.97);
}

.profile-btn.primary {
    background: linear-gradient(135deg, #34a853 0%, #2d9148 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

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

.profile-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.profile-section-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.profile-bio {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
}

.profile-links a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    color: #34a853;
    text-decoration: none;
    font-size: 15px;
    transition: var(--transition);
}

.profile-links a:active {
    opacity: 0.7;
}

.profile-links a i {
    width: 20px;
    text-align: center;
}

/* ===== ADD VIEW ===== */
.add-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.add-option:active {
    background: var(--bg-secondary);
    transform: scale(0.99);
}

.add-option-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 22px;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.add-option-text {
    flex: 1;
}

.add-option-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.add-option-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
}

/* ===== BOTTOM POPUP ===== */
.bottom-popup {
    position: fixed;
    bottom: -60px;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    z-index: 1500;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 45vh;
    margin: 0 8px calc(var(--nav-height) + 8px) 8px;
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.bottom-popup.active {
    transform: translateY(0);
    bottom: -0px;
}

.bottom-popup-handle {
    width: 40px;
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    margin: 12px auto;
}

.bottom-popup-body {
    padding: 0 20px 20px;
    overflow-y: auto;
    max-height: calc(45vh - 40px);
}

.bottom-popup-close {
    position: absolute;
    top: 12px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
}

.bottom-popup-close:active {
    background: var(--border-color);
}

.bottom-popup-content {
    display: flex;
    gap: 16px;
    will-change: transform, opacity;
}

.bottom-popup-image {
    width: 110px;
    height: 110px;
    border-radius: var(--radius-md);
    object-fit: cover;
    flex-shrink: 0;
}

.bottom-popup-info {
    flex: 1;
    min-width: 0;
}

.bottom-popup-title {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.bottom-popup-meta {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.6;
}

.bottom-popup-meta i {
    width: 18px;
    color: var(--primary-color);
    margin-right: 4px;
}

.bottom-popup-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.bottom-popup-btn {
    flex: 1;
    padding: 10px;
    border-radius: var(--radius-sm);
    text-decoration: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.bottom-popup-btn.primary {
    background: var(--primary-color);
    color: white;
}

.bottom-popup-btn.secondary {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

/* ===== BOTTOM NAV ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    display: flex;
    justify-content: space-around;
    align-items: center;
    height: var(--nav-height);
    padding: 0 4px;
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
    box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.08);
    z-index: 2000;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
    flex: 1;
    border: none;
    background: none;
    cursor: pointer;
    height: var(--nav-height);
    min-width: 0;
    position: relative;
}

.nav-item i {
    font-size: 26px;
    margin-bottom: 8px;
    transition: var(--transition);
}

.nav-item[data-view="profile"] i {
    font-size: 32px;
    margin-bottom: 8px;
}

.nav-item[data-view="profile"] .profile-nav-img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 8px;
    border: 2px solid var(--border-color);
    display: block;
    flex-shrink: 0;
}

.nav-item[data-view="profile"].active .profile-nav-img {
    border-color: #88b818;
}

.nav-item span {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    transition: var(--transition);
}

.nav-item.active {
    color: #88b818;
    transform: scale(1.1);
}

.nav-item:active {
    transform: scale(0.95);
}

.nav-item.active span {
    color: #2f2d28;
}

/* Add button in nav */
.nav-item-add {
    position: relative;
    justify-content: flex-start;
    padding-top: 0;
}

.add-btn-circle {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
    background: #c2f906;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 6px solid white;
    margin-top: -30px;
    flex-shrink: 0;
    aspect-ratio: 1;
    position: relative;
    transition: var(--transition);
}


.nav-item-add.active .add-btn-circle {
    border: 6px solid white;
}

.add-btn-circle::before,
.add-btn-circle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #739e0c;
    border-radius: 2px;
}

.add-btn-circle::before {
    width: 22px;
    height: 3.5px;
}

.add-btn-circle::after {
    width: 3.5px;
    height: 22px;
}

.nav-item-add span {
    color: var(--text-secondary);
    margin-top: 5px !important;
}

.nav-item-add.active span {
    color: #343432;
}

/* ===== AUTH FORMS ===== */
.auth-container {
    padding: 24px 20px;
}

.auth-title {
    font-size: 24px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.auth-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 24px;
}

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

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

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    color: var(--text-primary);
    background: var(--bg-primary);
    outline: none;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #34a853;
    box-shadow: 0 0 0 3px rgba(52, 168, 83, 0.15);
}

.btn-primary {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #34a853 0%, #2d9148 100%);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.btn-primary:active {
    transform: scale(0.98);
    box-shadow: 0 2px 8px rgba(52, 168, 83, 0.4);
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn-secondary:active {
    transform: scale(0.98);
}

.auth-toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-secondary);
}

.auth-toggle a {
    color: #34a853;
    text-decoration: none;
    font-weight: 600;
}

.form-error {
    color: var(--danger-color);
    font-size: 14px;
    text-align: center;
    margin-bottom: 16px;
    padding: 10px;
    background: #fce8e6;
    border-radius: var(--radius-sm);
}

/* ===== APP LOADING ===== */
.app-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    backdrop-filter: blur(10px);
}

.app-loading-spinner {
    width: 48px;
    height: 48px;
    border: 4px solid var(--border-color);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

/* ===== TOAST ===== */
@keyframes slideUpBounce {
    from { opacity: 0; transform: translateX(-50%) translateY(20px); }
    to { opacity: 1; transform: translateX(-50%) translateY(0); }
}

@keyframes fadeOut {
    0%   { opacity: 1; }
    80%  { opacity: 1; }
    100% { opacity: 0; height: 0; margin: 0; overflow: hidden; }
}

/* ===== USER LOCATION MARKER ===== */
.user-location-marker {
    background: transparent !important;
    border: none !important;
}

@keyframes locationPulse {
    0% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.6); }
    70% { box-shadow: 0 0 0 18px rgba(66, 133, 244, 0); }
    100% { box-shadow: 0 0 0 0 rgba(66, 133, 244, 0); }
}

/* ===== RESPONSIVE ===== */
@media (min-width: 768px) {
    .map-search-bar {
        left: 50%;
        transform: translateX(-50%);
        max-width: 600px;
        right: auto;
    }

    .filter-chips {
        justify-content: center;
    }
}

@media (hover: none) and (pointer: coarse) {
    .leaflet-control-zoom a {
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
    }
}

/* ===== LOCATION PICKER IN FORMS ===== */
#eventLocationMap,
#spotLocationMap {
    position: relative;
    z-index: 1;
}

#eventLocationMap .leaflet-control-zoom,
#spotLocationMap .leaflet-control-zoom {
    margin-top: 8px !important;
    margin-right: 8px !important;
}

#eventLocationMap .leaflet-container,
#spotLocationMap .leaflet-container {
    border-radius: var(--radius-sm);
    cursor: crosshair !important;
}

.detail-content .leaflet-container {
    background: #e5e8eb !important;
}

.detail-content .leaflet-tile-pane {
    filter: none;
}

/* ===== LEGAL LINKS ===== */
.profile-legal-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.profile-legal-links a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 0;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.profile-legal-links a:last-child {
    border-bottom: none;
}

.profile-legal-links a:active {
    opacity: 0.6;
}

.profile-legal-links a i {
    width: 20px;
    text-align: center;
    color: var(--text-secondary);
    font-size: 16px;
}

/* ===== MEMBERS FILTER CHIPS ===== */
.members-filter-chips {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 2px;
}

.members-filter-chips::-webkit-scrollbar {
    display: none;
}

.members-filter-chips .filter-chip {
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    min-width: fit-content;
}

/* ===== INFINITE SCROLL LOADER ===== */
.scroll-loader {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-size: 14px;
}

.scroll-loader .map-loading-spinner {
    width: 28px;
    height: 28px;
    border-width: 3px;
    margin: 0 auto 8px;
}

.scroll-end {
    text-align: center;
    padding: 16px;
    color: var(--text-light);
    font-size: 13px;
}

.no-location-hint {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    margin: 0;
    background: #fff3cd;
    border-bottom: 1px solid #ffeeba;
    font-size: 13px;
    color: #856404;
    cursor: pointer;
    transition: var(--transition);
}

.no-location-hint:active {
    background: #ffe9a0;
}

.no-location-hint i {
    font-size: 16px;
    flex-shrink: 0;
}

/* ===== BEINGS PROMO BUTTONS ===== */
.beings-promo-buttons {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.promo-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: var(--radius-xl);
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.promo-btn:active {
    transform: scale(0.97);
}

.promo-btn i {
    font-size: 14px;
}

.promo-btn.invite-btn {
    color: #34a853;
    border-color: #34a853;
    background: #f0faf3;
}

.promo-btn.invite-btn:active {
    background: #d4edda;
}

.promo-btn.review-btn {
    color: #e09000;
    border-color: #e09000;
    background: #fff9e6;
}

.promo-btn.review-btn:active {
    background: #ffe8a0;
}

/* Remove border from profile view header */
#viewProfile .view-header {
    border-bottom: none;
    padding: 8px 16px;
    min-height: auto;
}

#viewProfile .profile-header-card {
    padding-top: 16px;
}

#viewProfile .view-header h2 {
    display: none;
}

/* ===== RSVP BUTTONS ===== */
.rsvp-row {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.rsvp-btn {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 12px 8px;
    border-radius: var(--radius-md);
    border: 2px solid var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.rsvp-btn i {
    font-size: 20px;
    transition: var(--transition);
}

.rsvp-btn em {
    position: absolute;
    top: 6px;
    right: 6px;
    font-style: normal;
    font-size: 10px;
    font-weight: 700;
    background: var(--border-color);
    border-radius: 10px;
    padding: 1px 5px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.rsvp-btn:active {
    transform: scale(0.95);
}

.rsvp-btn.rsvp-active-going {
    border-color: #34a853;
    background: #e8f5e9;
    color: #34a853;
}
.rsvp-btn.rsvp-active-going em {
    background: #34a853;
    color: white;
}

.rsvp-btn.rsvp-active-thinking {
    border-color: #fbbc04;
    background: #fffde7;
    color: #e09000;
}
.rsvp-btn.rsvp-active-thinking em {
    background: #fbbc04;
    color: #333;
}

.rsvp-btn.rsvp-active-favourite {
    border-color: #ea4335;
    background: #fce8e6;
    color: #ea4335;
}
.rsvp-btn.rsvp-active-favourite em {
    background: #ea4335;
    color: white;
}

/* ===== BEINGS TABS ===== */
.beings-tabs {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 0;
    flex-shrink: 0;
}

.beings-tab-btn {
    flex: 1;
    padding: 12px 8px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.beings-tab-btn.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.beings-tab-btn i {
    font-size: 15px;
}

.beings-tab-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
}

#viewAdd .view-header {
    flex-direction: row;
    align-items: center;
    min-height: 56px;
    padding: 0 16px;
}

#viewAdd .view-header h2 {
    padding: 0;
}

/* Beings header */
#viewProfiles .view-header {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 0px 16px 6px 16px;
    min-height: auto;
}

#viewProfiles .view-header h2 {
    padding: 0;
    margin-bottom: 6px;
}

#addChartBtn {
    background: linear-gradient(135deg, #9c27b0 0%, #e91e63 100%);
    color: white;
    box-shadow: 0 3px 10px rgba(156, 39, 176, 0.4);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: 700;
}

#addChartBtn:active {
    transform: scale(0.92);
    box-shadow: 0 1px 6px rgba(156, 39, 176, 0.5);
}

#addChartBtn i {
    background: linear-gradient(135deg, #fff 0%, #f8c8ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 16px;
    font-weight: 900;
}

/* ===== IMAGE UPLOAD WIDGET ===== */
.img-upload-wrap {
    width: 100%;
}

.img-upload-preview {
    width: 100%;
    height: 180px;
    border-radius: var(--radius-md);
    border: 2px dashed var(--border-color);
    overflow: hidden;
    cursor: pointer;
    position: relative;
    background: var(--bg-secondary);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-upload-preview:active {
    border-color: var(--primary-color);
    background: #f0faf3;
}

.img-upload-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-upload-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.img-upload-placeholder i {
    font-size: 36px;
    color: var(--text-light);
}

.img-upload-placeholder span {
    font-size: 15px;
    font-weight: 600;
}

.img-upload-placeholder small {
    font-size: 12px;
    color: var(--text-light);
}

.img-upload-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0,0,0,0.55);
    color: white;
    text-align: center;
    padding: 8px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.img-upload-progress-bar {
    width: 100%;
    height: 6px;
    background: var(--border-color);
    border-radius: 3px;
    margin-top: 10px;
    overflow: hidden;
}

.img-upload-progress-fill {
    height: 100%;
    background: var(--primary-color);
    border-radius: 3px;
    transition: width 0.4s ease, background 0.3s;
    width: 0%;
}

.img-upload-progress-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 6px;
    text-align: center;
}

textarea {
    min-height: 100px;
    overflow: hidden;
    resize: none;
    transition: height 0.15s ease;
}

textarea:not(.channel-compose-textarea):not(.motiv-add-textarea):not([id$="AddressPaste"]) {
    min-height: 100px;
    overflow: hidden;
    resize: none;
    transition: height 0.15s ease;
}

textarea[id$="AddressPaste"] {
    min-height: 44px;
    overflow: hidden;
    resize: none;
    transition: height 0.15s ease;
}


/* ===== VIDEO CARD ===== */
.video-card {
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-primary);
}

.video-card:active {
    background: var(--bg-secondary);
}

.video-thumb-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #111;
    flex-shrink: 0;
}

.video-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.video-card:active .video-thumb-wrap img {
    transform: scale(1.02);
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    transition: background 0.2s;
}

.video-card:active .video-play-overlay {
    background: rgba(0,0,0,0.4);
}

.video-play-btn {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.92);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0,0,0,0.35);
    transition: transform 0.2s ease;
}

.video-card:active .video-play-btn {
    transform: scale(0.92);
}

.video-play-btn i {
    font-size: 20px;
    color: #e91e63;
    margin-left: 3px;
}

.video-category-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(0,0,0,0.65);
    color: white;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.video-rank-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0,0,0,0.65);
    color: #ffd700;
    font-size: 11px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    backdrop-filter: blur(4px);
}

.video-card-body {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
}

.video-card-info {
    flex: 1;
    min-width: 0;
}

.video-card-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.35;
}

.video-card-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.video-card-meta .submitter {
    cursor: pointer;
    transition: color 0.2s;
}

.video-card-meta .submitter:active {
    color: var(--primary-color);
}

.video-vote-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-primary);
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
    min-width: 52px;
}

.video-vote-btn:active {
    transform: scale(0.95);
}

.video-vote-btn.voted {
    background: linear-gradient(135deg, #fce8e6 0%, #f8d7da 100%);
    border-color: var(--danger-color);
    color: var(--danger-color);
    animation: votePulse 0.3s ease;
}

.video-vote-btn i {
    font-size: 18px;
}

.video-vote-btn span {
    font-size: 12px;
    font-weight: 600;
}

/* Video player overlay */
#videoPlayerOverlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.97);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    animation: fadeInViewer 0.2s ease;
}

.video-player-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    flex-shrink: 0;
}

.video-player-header-title {
    flex: 1;
    color: white;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-player-close {
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}

.video-player-close i {
    color: white;
    font-size: 18px;
}

.video-player-iframe-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #000;
    flex-shrink: 0;
}

.video-player-iframe-wrap iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.video-player-info {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.video-player-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.35;
}

.video-player-meta {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.video-player-desc {
    font-size: 14px;
    color: rgba(255,255,255,0.75);
    line-height: 1.6;
    white-space: pre-wrap;
}

/* Add video form category select */
.video-category-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 4px;
}

.video-cat-btn {
    padding: 10px 6px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.video-cat-btn i {
    font-size: 16px;
}

.video-cat-btn.selected {
    border-color: #9c27b0;
    background: #f3e5f5;
    color: #9c27b0;
}

.video-cat-btn:active {
    transform: scale(0.95);
}

/* ===== FOLLOW BUTTON STATES ===== */
.follow-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    min-width: 130px;
}

.follow-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.follow-btn.secondary {
    background: var(--bg-secondary) !important;
    color: var(--text-secondary) !important;
    border: 1.5px solid var(--border-color) !important;
    box-shadow: none !important;
}

.follow-btn.secondary:active {
    background: #fce8e6 !important;
    color: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
}

/* Follow stats row */
.follow-stats-row {
    display: flex;
    gap: 24px;
    justify-content: center;
    padding: 12px 0 0;
}

.follow-stat {
    text-align: center;
    cursor: default;
}

.follow-stat-count {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1.2;
}

.follow-stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.follow-stat-divider {
    width: 1px;
    background: var(--border-color);
    margin: 4px 0;
}

/* ===== MESSAGING SYSTEM ===== */

/* Nav badge */
.nav-msg-badge-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

#msgNavBadge {
    position: absolute;
    top: -5px;
    right: -8px;
    background: #ea4335;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary, #fff);
    line-height: 1;
    z-index: 2;
}

/* Conversation list */
.conv-list-header {
    padding: 10px 16px 8px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.conv-list-hint {
    font-size: 12px;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 5px;
}

.conv-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s;
}

.conv-row:active,
.conv-row:hover {
    background: var(--bg-secondary);
}

.conv-row.conv-unread {
    background: rgba(66, 133, 244, 0.05);
}

.conv-row.conv-unread .conv-name {
    font-weight: 700;
    color: var(--text-primary);
}

.conv-row.conv-unread .conv-preview {
    color: var(--text-primary);
    font-weight: 500;
}

.conv-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.conv-avatar,
.conv-avatar-placeholder {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 20px;
    flex-shrink: 0;
}

.conv-unread-dot {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: #4285f4;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary, white);
    padding: 0 3px;
    line-height: 1;
}

.conv-info {
    flex: 1;
    min-width: 0;
}

.conv-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-preview {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conv-meta {
    flex-shrink: 0;
    text-align: right;
}

.conv-time {
    font-size: 11px;
    color: var(--text-light);
    white-space: nowrap;
}

/* Message thread */
.msg-thread-wrap {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.msg-thread-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.msg-back-btn {
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    color: var(--primary-color);
    font-size: 18px;
    flex-shrink: 0;
    border-radius: 8px;
    transition: background 0.15s;
}

.msg-back-btn:hover { background: var(--bg-secondary); }

.msg-thread-user {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.msg-thread-avatar {
    flex-shrink: 0;
}

.msg-thread-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.msg-thread-status {
    font-size: 12px;
    color: var(--text-light);
}

.msg-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: var(--bg-secondary, #f8f9fa);
}

.msg-list-empty {
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    padding: 40px 16px;
}

.msg-bubble-wrap {
    display: flex;
    flex-direction: column;
    max-width: 78%;
    gap: 3px;
}

.msg-bubble-wrap.mine {
    align-self: flex-end;
    align-items: flex-end;
}

.msg-bubble-wrap.theirs {
    align-self: flex-start;
    align-items: flex-start;
}

.msg-bubble {
    padding: 10px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.5;
    word-break: break-word;
    white-space: pre-wrap;
}

.msg-bubble-mine {
    background: linear-gradient(135deg, #4285f4, #2962ff);
    color: white;
    border-bottom-right-radius: 4px;
}

.msg-bubble-theirs {
    background: var(--bg-primary, white);
    color: var(--text-primary);
    border-bottom-left-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.msg-time {
    font-size: 11px;
    color: var(--text-light);
    padding: 0 4px;
}

.msg-composer {
    display: flex;
    align-items: flex-end;
    gap: 8px;
    padding: 10px 12px;
    padding-bottom: max(10px, env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.msg-input {
    flex: 1;
    border: 1.5px solid var(--border-color);
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 15px;
    font-family: inherit;
    resize: none;
    outline: none;
    background: var(--bg-secondary, #f5f5f5);
    color: var(--text-primary);
    min-height: 42px;
    max-height: 120px;
    overflow-y: auto;
    transition: border-color 0.2s;
    line-height: 1.4;
}

.msg-input:focus {
    border-color: #4285f4;
    background: var(--bg-primary, white);
}

.msg-send-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #2962ff);
    border: none;
    color: white;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.15s, opacity 0.15s;
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.4);
}

.msg-send-btn:active  { transform: scale(0.92); }
.msg-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.msg-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 32px;
    text-align: center;
    flex: 1;
}

.msg-empty-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #e3f2fd, #bbdefb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: #4285f4;
    margin-bottom: 20px;
}

.msg-empty-state h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.msg-empty-state p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 280px;
}

/* Dark mode */
@media (prefers-color-scheme: dark) {
    .msg-bubble-theirs {
        background: var(--bg-secondary, #2a2a2a);
    }
    .msg-input {
        background: var(--bg-secondary, #1e1e1e);
    }
    .msg-input:focus {
        background: var(--bg-primary, #121212);
    }
    .msg-list {
        background: var(--bg-primary, #0f0f0f);
    }
    .conv-row.conv-unread {
        background: rgba(66, 133, 244, 0.08);
    }
}

.profile-messages-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 12px);
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
    text-align: left;
}

.profile-messages-btn:active,
.profile-messages-btn:hover {
    background: var(--bg-primary);
}

.profile-messages-btn-left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.profile-messages-icon {
    position: relative;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, #4285f4, #2962ff);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(66,133,244,0.35);
}

#profileMsgBadge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #ea4335;
    color: white;
    font-size: 10px;
    font-weight: 800;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid var(--bg-primary, #fff);
    line-height: 1;
}

/* ===== CALENDAR GRID ===== */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.cal-nav-btn {
    width: 38px;
    height: 38px;
    background: var(--bg-secondary);
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    color: var(--text-primary);
    transition: var(--transition);
}

.cal-nav-btn:active { background: var(--border-color); }

.cal-month-label {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0;
    border-bottom: 1px solid var(--border-color);
}

.cal-day-header {
    text-align: center;
    padding: 8px 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
}

.cal-day-header:last-child { border-right: none; }

.cal-cell {
    min-height: 52px;
    padding: 4px;
    border-right: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    position: relative;
    cursor: default;
    background: var(--bg-primary);
    transition: background 0.15s;
}

.cal-cell:nth-child(7n) { border-right: none; }

.cal-cell.has-events {
    cursor: pointer;
    background: #f0faf3;
}

.cal-cell.has-events:active { background: #d4edda; }

.cal-cell.today .cal-day-num {
    background: #4285f4;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.cal-cell.other-month { background: var(--bg-secondary); opacity: 0.5; }

.cal-day-num {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-event-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
    margin: 1px auto;
    flex-shrink: 0;
}

.cal-event-dot.going     { background: #34a853; }
.cal-event-dot.thinking  { background: #fbbc04; }
.cal-event-dot.favourite { background: #ea4335; }

.cal-dots-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    margin-top: 2px;
}

.cal-events-section {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
}

.cal-events-section-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

.cal-event-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition);
}

.cal-event-row:last-child { border-bottom: none; }
.cal-event-row:active { opacity: 0.7; }

.cal-event-status-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
}

.cal-event-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: var(--bg-secondary);
}

.cal-event-thumb-placeholder {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: white;
    flex-shrink: 0;
}

.cal-event-info { flex: 1; min-width: 0; }

.cal-event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 2px;
}

.cal-event-meta {
    font-size: 12px;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-event-days-badge {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ===== PING BUTTON ===== */
.ping-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
    border: 2px solid #fbbc04;
    background: #fffde7;
    color: #856404;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
    justify-content: center;
    margin-bottom: 12px;
}

.ping-btn:active { transform: scale(0.97); }

.ping-btn.pinged {
    border-color: var(--border-color);
    background: var(--bg-secondary);
    color: var(--text-light);
    cursor: not-allowed;
}

.ping-btn i { font-size: 16px; }

/* ===== MEMBER CHANNEL STYLES ===== */
.channel-header {
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    padding: 24px 16px 20px;
    position: relative;
    overflow: hidden;
}

.channel-header::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -20%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}

.channel-header-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
}

.channel-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.channel-avatar,
.channel-avatar-placeholder {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    font-weight: 700;
    color: white;
}

.channel-verified-badge {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 22px;
    height: 22px;
    background: #4285f4;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #16213e;
}

.channel-verified-badge i {
    font-size: 10px;
    color: white;
}

.channel-header-info {
    flex: 1;
    min-width: 0;
}

.channel-name {
    font-size: 18px;
    font-weight: 800;
    color: white;
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-handle {
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    margin-bottom: 6px;
}

.channel-stats {
    display: flex;
    gap: 14px;
}

.channel-stat {
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}

.channel-stat i {
    font-size: 11px;
    opacity: 0.8;
}

.channel-description {
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    line-height: 1.5;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.channel-compose-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.channel-compose-btn {
    flex: 1;
    background: var(--bg-secondary);
    border: 1.5px solid var(--border-color);
    border-radius: 22px;
    padding: 10px 16px;
    font-size: 14px;
    color: var(--text-secondary);
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
}

.channel-compose-btn:active {
    background: var(--border-color);
}

.channel-post-card {
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    transition: background 0.15s;
}

.channel-post-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 8px;
}

.channel-post-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.channel-post-meta {
    flex: 1;
    min-width: 0;
}

.channel-post-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.channel-post-time {
    font-size: 11px;
    color: var(--text-light);
    flex-shrink: 0;
}

.channel-post-content {
    padding: 0 16px 10px;
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

.channel-post-image {
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    background: var(--bg-secondary);
}

.channel-event-pin {
    margin: 0 16px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
    position: relative;
}

.channel-event-pin::before {
    content: '📅 Event';
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(234,67,53,0.9);
    color: white;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 10px;
    z-index: 1;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.channel-event-pin:active {
    opacity: 0.85;
    transform: scale(0.99);
}

.channel-event-pin-img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
    background: linear-gradient(135deg, #ea4335, #c62828);
}

.channel-event-pin-img-placeholder {
    width: 100%;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ea4335, #c62828);
    color: white;
    font-size: 36px;
}

.channel-event-pin-body {
    padding: 12px;
}

.channel-event-pin-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
    line-height: 1.3;
}

.channel-event-pin-meta {
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.channel-event-pin-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.channel-event-pin-meta i {
    width: 14px;
    text-align: center;
    color: var(--text-light);
    font-size: 11px;
}

.channel-event-pin-days {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f5e9;
    color: #34a853;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 10px;
    margin-top: 6px;
}

.channel-post-actions {
    display: flex;
    align-items: center;
    padding: 6px 12px 10px;
    border-top: 1px solid var(--border-color);
    gap: 4px;
}

.channel-post-action-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border: none;
    border-radius: 18px;
    background: none;
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.channel-post-action-btn:active {
    background: var(--bg-secondary);
}

.channel-post-action-btn.reply-btn:active {
    color: #4285f4;
    background: rgba(66,133,244,0.1);
}

.channel-post-delete-btn {
    width: 28px;
    height: 28px;
    background: none;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-light);
    font-size: 13px;
    flex-shrink: 0;
    margin-left: auto;
    transition: var(--transition);
}

.channel-post-delete-btn:active {
    background: #fce8e6;
    color: var(--danger-color);
}

/* Channel post compose sheet */
.channel-compose-sheet {
    position: fixed;
    inset: 0;
    z-index: 99000;
    display: flex;
    flex-direction: column;
    background: var(--bg-primary);
    animation: slideUpFull 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUpFull {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.channel-compose-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}

.channel-compose-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
}

.channel-publish-btn {
    background: linear-gradient(135deg, #1a1a2e, #0f3460);
    color: white;
    border: none;
    border-radius: 20px;
    padding: 8px 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 2px 8px rgba(15,52,96,0.35);
}

.channel-publish-btn:active  { transform: scale(0.96); }
.channel-publish-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.channel-compose-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.channel-compose-textarea {
    width: 100%;
    border: none;
    outline: none;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background: transparent;
    resize: none;
    min-height: 140px;
    font-family: inherit;
}

.channel-compose-textarea::placeholder {
    color: var(--text-light);
}

.channel-compose-footer {
    flex-shrink: 0;
    border-top: 1px solid var(--border-color);
    padding: 10px 16px;
    padding-bottom: max(10px, env(safe-area-inset-bottom));
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--bg-primary);
}

.channel-tool-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 20px;
    border: 1.5px solid var(--border-color);
    background: var(--bg-secondary);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
    white-space: nowrap;
}

.channel-tool-btn:active { transform: scale(0.96); }

.channel-char-count {
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

.channel-char-count.near-limit { color: #fbbc04; font-weight: 600; }
.channel-char-count.at-limit   { color: var(--danger-color); font-weight: 700; }

.channel-replies-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
    background: var(--bg-primary);
}

.view-channel-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: linear-gradient(135deg, #1a1a2e 0%, #0f3460 100%);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: var(--transition);
    text-decoration: none;
}

.view-channel-btn:active { transform: scale(0.98); opacity: 0.9; }

.view-channel-btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,0.3);
    object-fit: cover;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 15px;
    font-weight: 700;
}

.view-channel-btn-text {
    flex: 1;
    text-align: left;
}

.view-channel-btn-label {
    font-size: 12px;
    color: rgba(255,255,255,0.6);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.view-channel-btn-name {
    font-size: 15px;
    font-weight: 700;
    color: white;
}

.view-channel-btn i.arrow {
    color: rgba(255,255,255,0.5);
    font-size: 14px;
    flex-shrink: 0;
}

.pin-event-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 12px;
}

.pin-event-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-secondary);
}

.pin-event-item:active {
    background: var(--border-color);
}

.pin-event-item.already-pinned {
    opacity: 0.5;
    cursor: not-allowed;
}

.pin-event-thumb {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    background: #ea4335;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 18px;
}

.pin-event-info {
    flex: 1;
    min-width: 0;
}

.pin-event-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pin-event-date {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 2px;
}

/* ===== NOTIFICATION BELL ===== */
.notif-bell-float {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 14px));
    right: 14px;
    z-index: 9000;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: white;
    border: none;
    box-shadow: 0 2px 12px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.notif-bell-float:active { transform: scale(0.92); }
.notif-bell-float i { font-size: 18px; color: var(--text-primary); }
.notif-bell-float.has-unread i { color: #ea4335; }

.notif-bell-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    min-width: 16px;
    height: 16px;
    background: #ea4335;
    color: white;
    font-size: 9px;
    font-weight: 800;
    border-radius: 8px;
    padding: 0 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    line-height: 1;
}

#notifBellFloat:active {
    transform: scale(0.91);
    box-shadow: 0 1px 6px rgba(0,0,0,0.13);
}

/* ===== NOTIFICATION PANEL ===== */
.notif-panel {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-panel.active { transform: translateX(0); }

.notif-panel-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: max(16px, calc(env(safe-area-inset-top) + 12px)) 16px 14px;
    border-bottom: 1px solid var(--border-color);
    background: var(--bg-primary);
    flex-shrink: 0;
}

.notif-panel-title {
    flex: 1;
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.notif-mark-all-btn {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 8px;
    white-space: nowrap;
}

.notif-mark-all-btn:active { background: var(--bg-secondary); }

.notif-list {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.notif-section-label {
    padding: 10px 16px 4px;
    font-size: 11px;
    font-weight: 800;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
}

.notif-item {
    display: flex;
    gap: 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: background 0.15s ease;
    position: relative;
    align-items: flex-start;
}

.notif-item:active { background: var(--bg-secondary); }
.notif-item.unread { background: rgba(66, 133, 244, 0.04); }

.notif-avatar-wrap {
    position: relative;
    flex-shrink: 0;
}

.notif-avatar,
.notif-avatar-placeholder {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 18px;
}

.notif-type-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--bg-primary);
}

.notif-type-icon i { font-size: 9px; color: white; }

.notif-body { flex: 1; min-width: 0; }

.notif-message {
    font-size: 14px;
    color: var(--text-primary);
    line-height: 1.4;
    margin-bottom: 4px;
    word-break: break-word;
}

.notif-item.unread .notif-message { font-weight: 600; }

.notif-entity {
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.notif-time {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.notif-unread-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4285f4;
    flex-shrink: 0;
    margin-top: 4px;
    align-self: center;
}

.notif-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 32px;
    text-align: center;
    color: var(--text-secondary);
}

.notif-empty i {
    font-size: 52px;
    color: var(--text-light);
    margin-bottom: 16px;
    opacity: 0.5;
}

.notif-empty h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.notif-empty p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

/* ===== MOTIVATION CARDS ===== */
.motiv-open-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
    z-index: 10;
}

.motiv-open-btn:active { background: rgba(255,255,255,0.25); transform: scale(0.94); }
.motiv-open-btn i { font-size: 18px; color: var(--primary-color); }

.motiv-overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    background: linear-gradient(160deg, #0f0c29, #302b63, #24243e);
    display: flex;
    flex-direction: column;
    transform: translateY(100%);
    transition: transform 0.38s cubic-bezier(0.32,0.72,0,1);
    overflow: hidden;
}

.motiv-overlay.active { transform: translateY(0); }

.motiv-header {
    display: flex;
    align-items: center;
    padding: 16px 16px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    flex-shrink: 0;
}

.motiv-close-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    color: #fff;
    font-size: 18px;
    margin-right: 12px;
    flex-shrink: 0;
}

.motiv-close-btn:active { background: rgba(255,255,255,0.2); transform: scale(0.94); }

.motiv-header-title {
    flex: 1;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.3px;
}

.motiv-header-title span {
    font-size: 13px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    margin-left: 6px;
}

.motiv-tabs {
    display: flex;
    gap: 0;
    padding: 10px 16px 0;
    flex-shrink: 0;
}

.motiv-tab-btn {
    flex: 1;
    padding: 9px 0;
    background: none;
    border: none;
    border-bottom: 2px solid transparent;
    color: rgba(255,255,255,0.45);
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.2px;
    transition: color 0.2s, border-color 0.2s;
}

.motiv-tab-btn.active {
    color: #fff;
    border-bottom-color: #a78bfa;
}

.motiv-tab-btn:active { opacity: 0.7; }

.motiv-body {
    flex: 1;
    overflow: hidden;
    position: relative;
}

.motiv-tab-panel {
    position: absolute;
    inset: 0;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px 100px;
    display: none;
}

.motiv-tab-panel.active { display: block; }

.motiv-deck-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 8px;
}

.motiv-card-stack {
    position: relative;
    width: 100%;
    max-width: 360px;
    height: 280px;
    margin-bottom: 24px;
    perspective: 1000px;
}

.motiv-card-stack::before,
.motiv-card-stack::after {
    content: '';
    position: absolute;
    width: 92%;
    height: 100%;
    border-radius: 24px;
    top: 0; left: 50%;
    transform: translateX(-50%);
}

.motiv-card-stack::before {
    background: rgba(167,139,250,0.18);
    transform: translateX(-50%) translateY(10px) rotate(3deg);
}

.motiv-card-stack::after {
    background: rgba(167,139,250,0.11);
    transform: translateX(-50%) translateY(18px) rotate(-2.5deg);
}

.motiv-card {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.13) 0%, rgba(255,255,255,0.06) 100%);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 28px 24px;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
    transform-origin: center bottom;
    transition: transform 0.18s ease;
    user-select: none;
    -webkit-user-select: none;
}

.motiv-card:active { transform: scale(0.97); }

@keyframes cardFlipOut {
    0%   { transform: rotateY(0deg) scale(1); opacity: 1; }
    50%  { transform: rotateY(90deg) scale(0.95); opacity: 0; }
    100% { transform: rotateY(90deg) scale(0.95); opacity: 0; }
}

@keyframes cardFlipIn {
    0%   { transform: rotateY(-90deg) scale(0.95); opacity: 0; }
    50%  { transform: rotateY(-90deg) scale(0.95); opacity: 0; }
    100% { transform: rotateY(0deg) scale(1); opacity: 1; }
}

.motiv-card.flip-out { animation: cardFlipOut 0.36s ease forwards; }
.motiv-card.flip-in  { animation: cardFlipIn 0.36s ease forwards; }

.motiv-card-quote-mark {
    font-size: 64px;
    line-height: 0.6;
    color: rgba(167,139,250,0.4);
    font-family: Georgia, serif;
    align-self: flex-start;
    margin-bottom: 12px;
    flex-shrink: 0;
}

.motiv-card-text {
    font-size: 17px;
    line-height: 1.6;
    color: #fff;
    text-align: center;
    font-weight: 500;
    letter-spacing: -0.1px;
    flex: 1;
    display: flex;
    align-items: center;
}

.motiv-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid rgba(255,255,255,0.12);
    width: 100%;
    cursor: pointer;
}

.motiv-card-author:active { opacity: 0.75; }

.motiv-card-author-avatar {
    width: 28px; height: 28px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.motiv-card-author-placeholder {
    width: 28px; height: 28px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,0.2);
}

.motiv-card-author-name {
    font-size: 13px;
    color: rgba(255,255,255,0.65);
    font-weight: 500;
}

.motiv-tap-hint {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.motiv-tap-hint i { font-size: 11px; }

.motiv-counter {
    font-size: 13px;
    color: rgba(255,255,255,0.45);
    margin-bottom: 16px;
}

.motiv-card-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
}

.motiv-action-btn {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 50px;
    border: 1.5px solid rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.75);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.18s;
}

.motiv-action-btn:active { transform: scale(0.95); background: rgba(255,255,255,0.15); }

.motiv-action-btn.fav-btn.active {
    background: rgba(236, 72, 153, 0.22);
    border-color: rgba(236, 72, 153, 0.5);
    color: #f472b6;
}

.motiv-action-btn.fav-btn.active i { color: #f472b6; }
.motiv-action-btn i { font-size: 15px; }

.motiv-action-btn.next-btn {
    background: rgba(167,139,250,0.18);
    border-color: rgba(167,139,250,0.4);
    color: #c4b5fd;
}

.motiv-action-btn.next-btn:active { background: rgba(167,139,250,0.3); }

.motiv-deck-shuffle-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 11px 28px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    margin-bottom: 20px;
    box-shadow: 0 4px 20px rgba(124,58,237,0.4);
}

.motiv-deck-shuffle-btn:active { transform: scale(0.96); }
.motiv-deck-shuffle-btn i { font-size: 16px; }

.motiv-empty {
    text-align: center;
    padding: 48px 24px;
    color: rgba(255,255,255,0.45);
}

.motiv-empty i { font-size: 48px; margin-bottom: 14px; display: block; }
.motiv-empty h3 { font-size: 18px; font-weight: 700; color: rgba(255,255,255,0.8); margin: 0 0 8px; }
.motiv-empty p  { font-size: 14px; margin: 0; line-height: 1.6; }

.motiv-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.motiv-list-card {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    position: relative;
    transition: background 0.18s;
}

.motiv-list-card:active { background: rgba(255,255,255,0.12); }

.motiv-list-card-text {
    font-size: 15px;
    line-height: 1.6;
    color: #fff;
    font-weight: 500;
    margin-bottom: 14px;
}

.motiv-list-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.motiv-list-card-author {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.motiv-list-card-author:active { opacity: 0.75; }

.motiv-list-card-avatar {
    width: 26px; height: 26px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255,255,255,0.25);
}

.motiv-list-card-avatar-ph {
    width: 26px; height: 26px;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; color: rgba(255,255,255,0.6);
}

.motiv-list-card-author-name {
    font-size: 12px;
    color: rgba(255,255,255,0.55);
    font-weight: 500;
}

.motiv-list-fav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 50px;
    padding: 6px 12px;
    color: rgba(255,255,255,0.55);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.18s;
}

.motiv-list-fav-btn:active { transform: scale(0.94); }

.motiv-list-fav-btn.active {
    background: rgba(236,72,153,0.18);
    border-color: rgba(236,72,153,0.45);
    color: #f472b6;
}

.motiv-list-fav-btn.active i { color: #f472b6; }

.motiv-list-card-delete {
    position: absolute;
    top: 12px; right: 14px;
    background: none;
    border: none;
    color: rgba(255,255,255,0.25);
    font-size: 15px;
    cursor: pointer;
    padding: 4px;
}

.motiv-list-card-delete:active { color: #f87171; }

.motiv-add-form {
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 20px;
}

.motiv-add-form-title {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255,255,255,0.75);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.motiv-add-form-title i { color: #a78bfa; }

.motiv-add-textarea {
    width: 100%;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 12px;
    padding: 12px 14px;
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
    resize: none;
    min-height: 80px;
    font-family: inherit;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.motiv-add-textarea::placeholder { color: rgba(255,255,255,0.3); }

.motiv-add-textarea:focus {
    outline: none;
    border-color: rgba(167,139,250,0.55);
}

.motiv-add-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
}

.motiv-add-char-count {
    font-size: 12px;
    color: rgba(255,255,255,0.35);
}

.motiv-add-char-count.near-limit { color: #fbbf24; }
.motiv-add-char-count.at-limit   { color: #f87171; }

.motiv-add-submit-btn {
    padding: 9px 22px;
    border-radius: 50px;
    border: none;
    background: linear-gradient(135deg, #a78bfa, #7c3aed);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(124,58,237,0.35);
}

.motiv-add-submit-btn:active  { transform: scale(0.96); }
.motiv-add-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.motiv-load-more-btn {
    width: 100%;
    padding: 12px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.6);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    margin-top: 4px;
}

.motiv-load-more-btn:active { background: rgba(255,255,255,0.12); }

.motiv-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px;
    color: rgba(255,255,255,0.4);
    gap: 10px;
    font-size: 14px;
}

.motiv-loading i { font-size: 22px; }

@keyframes motivSpin {
    to { transform: rotate(360deg); }
}

.motiv-loading i.spin { animation: motivSpin 0.9s linear infinite; }

/* ===== HIGHLIGHTED MARKER ===== */
.custom-marker.marker-selected div {
    filter: drop-shadow(0 0 4px rgba(255, 210, 0, 0.7))
            drop-shadow(0 0 8px rgba(255, 170, 0, 0.35)) !important;
    animation: markerGlow 2s ease-in-out infinite alternate;
}

@keyframes markerGlow {
    from {
        filter: drop-shadow(0 0 3px rgba(255, 210, 0, 0.6))
                drop-shadow(0 0 7px rgba(255, 170, 0, 0.25));
    }
    to {
        filter: drop-shadow(0 0 5px rgba(255, 220, 0, 0.8))
                drop-shadow(0 0 10px rgba(255, 180, 0, 0.4));
    }
}

#swipeHint {
    pointer-events: none;
}

.detail-content p,
.detail-content .profile-bio {
    -webkit-user-select: text;
    user-select: text;
}

/* ===== ONBOARDING / AUTH GATE ===== */
.onboarding-screen {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: var(--bg-primary);
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: none;
}

.onboarding-bg-glow {
    position: absolute;
    top: -20%;
    left: -30%;
    width: 160%;
    height: 60%;
    background: radial-gradient(ellipse at center, rgba(52,168,83,0.15) 0%, transparent 70%);
    pointer-events: none;
    overflow: hidden;
}

.onboarding-bg-glow-2 {
    position: absolute;
    bottom: -10%;
    right: -30%;
    width: 120%;
    height: 50%;
    background: radial-gradient(ellipse at center, rgba(156,237,22,0.08) 0%, transparent 70%);
    pointer-events: none;
    overflow: hidden;
}

.onboarding-split {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-height: 100dvh;
    width: 100%;
    max-width: 480px;
    max-width: 100vw;
    margin: 0 auto;
    padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px) 0;
    overflow-x: hidden;
}

.onboarding-hero {
    padding: 32px 28px 20px;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
}

.onboarding-logo {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, #34a853 0%, #9ced16 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
    box-shadow: 0 8px 28px rgba(52,168,83,0.45), 0 0 0 1px rgba(255,255,255,0.06);
}

.onboarding-logo i { font-size: 32px; color: white; }

.onboarding-title {
    font-size: 28px;
    font-weight: 800;
    color: white;
    line-height: 1.18;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.onboarding-title span {
    background: linear-gradient(135deg, #9ced16 0%, #34a853 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.onboarding-subtitle {
    font-size: 15px;
    color: rgba(255,255,255,0.6);
    line-height: 1.55;
    max-width: 300px;
    margin: 0 auto 20px;
}

.onboarding-features {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 0;
}

.onboarding-feature {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.07);
    border-radius: 14px;
    text-align: left;
}

.onboarding-feature-icon {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.onboarding-feature-title {
    font-size: 13px;
    font-weight: 700;
    color: white;
    margin-bottom: 1px;
}

.onboarding-feature-desc {
    font-size: 11px;
    color: rgba(255,255,255,0.5);
    line-height: 1.3;
}

.onboarding-form-panel {
    background: rgba(255,255,255,0.04);
    border-top: 1px solid rgba(255,255,255,0.09);
    padding: 20px 24px 40px;
    padding-bottom: max(40px, calc(env(safe-area-inset-bottom, 0px) + 24px));
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: visible;
}

.onboarding-auth-tabs {
    display: flex;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    padding: 3px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.onboarding-auth-tab {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: rgba(255,255,255,0.45);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    letter-spacing: 0.2px;
}

.onboarding-auth-tab.active {
    background: linear-gradient(135deg, #34a853, #2d9148);
    color: white;
    box-shadow: 0 3px 12px rgba(52,168,83,0.4);
}

.onboarding-auth-tab:active { transform: scale(0.97); }

.onboarding-input-group {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.07);
    border: 1.5px solid rgba(255,255,255,0.12);
    border-radius: 13px;
    margin-bottom: 10px;
    transition: border-color 0.2s, background 0.2s;
    overflow: hidden;
}

.onboarding-input-group:focus-within {
    border-color: rgba(156,237,22,0.55);
    background: rgba(255,255,255,0.1);
}

.onboarding-input-group > i {
    padding: 0 8px 0 16px;
    font-size: 16px;
    color: rgba(156, 237, 22, 0.6);
    flex-shrink: 0;
    pointer-events: none;
}

.onboarding-input-group:focus-within > i {
    color: #9ced16;
}

.onboarding-input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    padding: 13px 12px;
    font-size: 15px;
    color: white;
    font-family: inherit;
    -webkit-user-select: text;
    user-select: text;
    min-width: 0;
}

.onboarding-input-group input::placeholder {
    color: rgba(255,255,255,0.28);
}

.ob-pw-toggle {
    background: none;
    border: none;
    padding: 0 12px;
    cursor: pointer;
    color: rgba(255,255,255,0.3);
    display: flex;
    align-items: center;
    flex-shrink: 0;
    transition: color 0.2s;
}

.ob-pw-toggle:active { color: rgba(255,255,255,0.7); }
.ob-pw-toggle i { font-size: 18px; }

.onboarding-btn-primary {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 16px;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: linear-gradient(135deg, #9ced16 0%, #6bb800 100%);
    color: #0d2818;
    box-shadow: 0 5px 20px rgba(156,237,22,0.38), 0 0 0 1px rgba(156,237,22,0.15);
    letter-spacing: 0.2px;
    margin-top: 4px;
}

.onboarding-btn-primary:active {
    transform: scale(0.97);
    box-shadow: 0 2px 10px rgba(156,237,22,0.45);
}

.onboarding-btn-primary:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.onboarding-btn-primary i { font-size: 18px; }

.onboarding-inline-error {
    background: rgba(234,67,53,0.15);
    border: 1px solid rgba(234,67,53,0.3);
    border-radius: 10px;
    color: #ff8a80;
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    margin-bottom: 12px;
    line-height: 1.45;
}

.onboarding-guest-link {
    display: block;
    width: 100%;
    background: none;
    border: none;
    color: rgba(255,255,255,0.3);
    font-size: 13px;
    text-align: center;
    cursor: pointer;
    padding: 14px 8px 4px;
    transition: color 0.2s;
    font-family: inherit;
}

.onboarding-guest-link:active { color: rgba(255,255,255,0.6); }

.onboarding-legal {
    font-size: 11px;
    color: rgba(255,255,255,0.28);
    text-align: center;
    margin-top: 10px;
    line-height: 1.6;
}

.onboarding-legal a {
    color: rgba(255,255,255,0.42);
    text-decoration: underline;
}

/* Tablet / desktop layout */
@media (min-width: 768px) {
    .onboarding-split {
        flex-direction: row;
        max-width: 880px;
        min-height: 100vh;
        min-height: 100dvh;
    }

    .onboarding-hero {
        flex: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 48px 40px;
        text-align: left;
        border-right: 1px solid rgba(255,255,255,0.07);
    }

    .onboarding-logo { margin: 0 0 22px; }
    .onboarding-subtitle { margin: 0 0 24px; max-width: 100%; }

    .onboarding-form-panel {
        width: 360px;
        min-width: 360px;
        border-top: none;
        border-left: 1px solid rgba(255,255,255,0.07);
        justify-content: center;
        padding: 40px 32px;
    }
}

/* ===== SOCIALS SHEET ===== */
.socials-sheet-overlay {
    position: fixed;
    inset: 0;
    z-index: 99998;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    animation: fadeInOverlay 0.15s ease;
}

.socials-sheet {
    background: var(--bg-primary);
    border-radius: 20px 20px 0 0;
    width: 100%;
    max-width: 480px;
    padding: 0 0 max(20px, env(safe-area-inset-bottom));
    animation: slideUpPicker 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.socials-sheet-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--border-color);
}

.socials-sheet-header h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.socials-sheet-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 14px;
}

.socials-sheet-close:active {
    background: var(--border-color);
}

.socials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 18px 20px;
}

.social-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 8px;
    border-radius: 16px;
    text-decoration: none;
    transition: all 0.15s ease;
    border: 1.5px solid var(--border-color);
    background: var(--bg-primary);
}

.social-link-card:active {
    transform: scale(0.95);
    background: var(--bg-secondary);
}

.social-link-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: white;
    flex-shrink: 0;
}

.social-link-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.2;
}

.social-link-sub {
    font-size: 10px;
    color: var(--text-light);
    font-weight: 500;
}

/* ===== LOCATION PERMISSION BANNER ===== */
.location-banner {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9999;
    background: linear-gradient(135deg, #1e8449, #27ae60);
    color: white;
    padding: 12px 16px 12px 16px;
    padding-top: max(12px, env(safe-area-inset-top));
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 3px 16px rgba(0,0,0,0.25);
    transform: translateY(-110%);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.location-banner.visible {
    transform: translateY(0);
}

.location-banner-icon {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.location-banner-body {
    flex: 1;
    min-width: 0;
}

.location-banner-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 2px;
    line-height: 1.3;
}

.location-banner-sub {
    font-size: 12px;
    opacity: 0.88;
    line-height: 1.4;
}

.location-banner-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(255,255,255,0.2);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.15s;
}

.location-banner-close:active {
    background: rgba(255,255,255,0.35);
}

/* ===== ENHANCED SEARCH ===== */
.search-result-item,
.geo-result-item {
    transition: background 0.15s ease;
}

.search-result-item:active,
.geo-result-item:active {
    background: var(--bg-secondary);
}

.search-section-title {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    padding: 16px 16px 8px;
}

#searchGoToLocation {
    background: rgba(52, 168, 83, 0.04);
    border: 1px solid rgba(52, 168, 83, 0.15);
    border-radius: var(--radius-md);
    margin: 0 16px 8px;
    transition: all 0.15s ease;
}

#searchGoToLocation:active {
    background: rgba(52, 168, 83, 0.12);
    transform: scale(0.98);
}

.search-panel-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}

@keyframes userDotPulse {
    0%   { transform: scale(0.5); opacity: 0.8; }
    70%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

/* ===== REPEATING EVENT CALENDAR ===== */
.repeat-event-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f3e8ff, #ede9fe);
    border: 1px solid #d8b4fe;
    border-radius: var(--radius-sm);
    cursor: pointer;
    margin-bottom: 16px;
    transition: var(--transition);
}
.repeat-event-toggle:hover { background: linear-gradient(135deg, #ede9fe, #e9d5ff); }
.repeat-event-toggle .toggle-icon {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #7c3aed;
    color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.repeat-event-toggle .toggle-text {
    font-size: 14px; font-weight: 600; color: #6d28d9;
}
.repeat-event-toggle .toggle-sub {
    font-size: 12px; color: #7c3aed; font-weight: 400; margin-top: 1px;
}
.repeat-event-toggle .toggle-chevron {
    margin-left: auto;
    color: #7c3aed;
    font-size: 14px;
    transition: transform 0.2s;
}
.repeat-event-toggle.active .toggle-chevron { transform: rotate(180deg); }

.repeat-panel {
    display: none;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
    margin-bottom: 16px;
    animation: fadeSlideIn 0.25s ease;
}
.repeat-panel.visible { display: block; }

@keyframes fadeSlideIn {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
}

.repeat-freq-bar {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.repeat-freq-btn {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    background: var(--bg-primary);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}
.repeat-freq-btn:hover { border-color: #7c3aed; color: #7c3aed; }
.repeat-freq-btn.active {
    background: #7c3aed; color: #fff; border-color: #7c3aed;
}

.repeat-cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.repeat-cal-header .cal-nav {
    width: 32px; height: 32px;
    border-radius: 50%;
    border: none;
    background: var(--bg-primary);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
    transition: var(--transition);
}
.repeat-cal-header .cal-nav:hover { background: #ede9fe; color: #7c3aed; }
.repeat-cal-header .cal-month {
    font-size: 15px; font-weight: 600; color: var(--text-primary);
}

.repeat-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 12px;
}
.repeat-cal-grid .day-label {
    text-align: center;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-light);
    padding: 4px 0;
    text-transform: uppercase;
}
.repeat-cal-grid .day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 13px;
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    font-weight: 500;
}
.repeat-cal-grid .day-cell:hover:not(.empty):not(.past):not(.source) {
    background: #ede9fe;
}
.repeat-cal-grid .day-cell.empty { cursor: default; }
.repeat-cal-grid .day-cell.past {
    color: var(--text-light);
    opacity: 0.4;
    cursor: not-allowed;
}
.repeat-cal-grid .day-cell.today {
    font-weight: 700;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}
.repeat-cal-grid .day-cell.source {
    background: var(--primary-color);
    color: #fff;
    font-weight: 700;
    cursor: default;
}
.repeat-cal-grid .day-cell.selected {
    background: #7c3aed;
    color: #fff;
    font-weight: 700;
}
.repeat-cal-grid .day-cell.selected:hover {
    background: #6d28d9;
}

.repeat-selected-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    background: var(--bg-primary);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}
.repeat-selected-summary .count {
    font-size: 14px; font-weight: 600; color: #7c3aed;
}
.repeat-selected-summary .clear-btn {
    font-size: 13px;
    color: var(--danger-color);
    cursor: pointer;
    background: none;
    border: none;
    font-weight: 500;
}
.repeat-selected-summary .clear-btn:hover { text-decoration: underline; }

.repeat-date-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
    max-height: 120px;
    overflow-y: auto;
}
.repeat-date-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    background: #ede9fe;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    color: #6d28d9;
}
.repeat-date-chip .chip-remove {
    width: 16px; height: 16px;
    border-radius: 50%;
    background: rgba(109, 40, 217, 0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 10px;
    transition: var(--transition);
}
.repeat-date-chip .chip-remove:hover { background: rgba(109, 40, 217, 0.4); }