/**
 * MilanSetu Public Stylesheet - Indian Matrimonial Luxury Design System
 * "Rishta Jo Dil Se Jude"
 */

:root {
	--ms-primary: #9e1e42;
	--ms-primary-dark: #7a1230;
	--ms-primary-light: #fff1f2;
	--ms-gold: #c58e38;
	--ms-gold-light: #fdf8eb;
	--ms-accent: #b45309;
	--ms-bg: #fdfbf9;
	--ms-surface: #ffffff;
	--ms-border: #f1e9e3;
	--ms-text: #1e293b;
	--ms-text-muted: #64748b;
	--ms-success: #16a34a;
	--ms-danger: #dc2626;
	--ms-radius: 14px;
	--ms-radius-sm: 8px;
	--ms-shadow: 0 4px 20px -2px rgba(90, 42, 54, 0.07);
	--ms-shadow-hover: 0 10px 25px -4px rgba(90, 42, 54, 0.12);
	--ms-font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
	--ms-font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Base Wrapper Scoping */
.ms-public-wrapper,
.ms-search-container,
.ms-dashboard-wrap,
.ms-interests-container,
.ms-shortlist-container,
.ms-chat-app,
.ms-notifications-wrap,
.ms-membership-pricing-wrap,
.ms-partner-pref-wrap,
.ms-edit-profile-wrap,
.ms-auth-wrap,
.ms-featured-showcase-wrap,
.ms-matches-feed-wrap {
	font-family: var(--ms-font-body);
	color: var(--ms-text);
	box-sizing: border-box;
	line-height: 1.5;
}

.ms-public-wrapper *,
.ms-search-container *,
.ms-dashboard-wrap *,
.ms-interests-container *,
.ms-shortlist-container *,
.ms-chat-app *,
.ms-notifications-wrap *,
.ms-membership-pricing-wrap *,
.ms-partner-pref-wrap *,
.ms-edit-profile-wrap *,
.ms-auth-wrap * {
	box-sizing: border-box;
}

.ms-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 16px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
	font-family: var(--ms-font-heading);
	color: #1a1a24;
	font-weight: 700;
	margin-top: 0;
}

/* Alerts */
.ms-alert {
	padding: 14px 18px;
	border-radius: var(--ms-radius-sm);
	font-size: 14px;
	margin-bottom: 20px;
	line-height: 1.5;
}
.ms-alert-info { background: #e0f2fe; color: #0369a1; border: 1px solid #bae6fd; }
.ms-alert-warning { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.ms-alert-success { background: #dcfce7; color: #15803d; border: 1px solid #bbf7d0; }
.ms-alert-danger { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* Buttons */
.ms-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 18px;
	border-radius: var(--ms-radius-sm);
	font-family: var(--ms-font-heading);
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	text-decoration: none;
	border: 1px solid transparent;
	transition: all 0.2s ease;
	line-height: 1.2;
}

.ms-btn-primary {
	background: linear-gradient(135deg, var(--ms-primary) 0%, var(--ms-primary-dark) 100%);
	color: #ffffff !important;
	box-shadow: 0 4px 12px rgba(158, 30, 66, 0.25);
}
.ms-btn-primary:hover {
	background: linear-gradient(135deg, #b0234c 0%, #8c1737 100%);
	box-shadow: 0 6px 16px rgba(158, 30, 66, 0.35);
	transform: translateY(-1px);
}

.ms-btn-outline {
	background: #ffffff;
	border-color: #d1d5db;
	color: #374151 !important;
}
.ms-btn-outline:hover {
	border-color: var(--ms-primary);
	color: var(--ms-primary) !important;
	background: var(--ms-primary-light);
}

.ms-btn-success { background: var(--ms-success); color: #ffffff !important; }
.ms-btn-warning { background: #d97706; color: #ffffff !important; }
.ms-btn-disabled { background: #f1f5f9; color: #94a3b8 !important; cursor: not-allowed; border-color: #e2e8f0; }
.ms-btn-subtle { background: transparent; color: #64748b; font-size: 13px; padding: 6px 12px; }
.ms-btn-subtle:hover { color: var(--ms-primary); background: #f8fafc; }
.ms-btn-block { width: 100%; }
.ms-btn-sm { padding: 6px 14px; font-size: 13px; }
.ms-btn-large { padding: 14px 26px; font-size: 16px; border-radius: 10px; }

/* ==================== PROFILE CARD ==================== */
.ms-profiles-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 24px;
	margin-top: 20px;
}

.ms-grid-2col {
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.ms-profile-card {
	background: var(--ms-surface);
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	overflow: hidden;
	box-shadow: var(--ms-shadow);
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
	position: relative;
}

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

.ms-card-featured {
	border: 2px solid var(--ms-gold);
}

.ms-card-photo-wrap {
	position: relative;
	width: 100%;
	padding-top: 105%;
	background: #f8fafc;
	overflow: hidden;
}

.ms-card-photo-link {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: block;
}

.ms-card-photo {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.ms-profile-card:hover .ms-card-photo {
	transform: scale(1.04);
}

.ms-card-badges-top {
	position: absolute;
	top: 12px;
	left: 12px;
	display: flex;
	gap: 6px;
	z-index: 2;
}

.ms-badge-pid {
	background: rgba(15, 23, 42, 0.75);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
	letter-spacing: 0.5px;
}

.ms-badge-featured {
	background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 3px 8px;
	border-radius: 6px;
}

.ms-card-match-badge {
	position: absolute;
	bottom: 12px;
	left: 12px;
	background: rgba(158, 30, 66, 0.9);
	backdrop-filter: blur(4px);
	color: #ffffff;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.ms-shortlist-btn {
	position: absolute;
	top: 12px;
	right: 12px;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(4px);
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #94a3b8;
	cursor: pointer;
	z-index: 2;
	transition: all 0.2s ease;
	box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.ms-shortlist-btn:hover {
	color: var(--ms-primary);
	transform: scale(1.1);
}

.ms-shortlist-btn.ms-active {
	color: var(--ms-primary);
	background: #ffffff;
}

.ms-card-body {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.ms-card-header-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.ms-card-name {
	font-size: 18px;
	font-weight: 700;
	margin: 0;
	color: #1e293b;
}

.ms-card-name a {
	color: inherit;
	text-decoration: none;
}

.ms-card-name a:hover {
	color: var(--ms-primary);
}

.ms-verified-icon {
	display: inline-flex;
	align-items: center;
}

.ms-card-meta {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--ms-text-muted);
}

.ms-card-location {
	margin: 6px 0 12px;
	font-size: 13px;
	color: #475569;
}

.ms-card-career {
	border-top: 1px dashed #f1f5f9;
	padding-top: 10px;
	margin-bottom: 16px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.ms-career-item {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #334155;
}

.ms-career-item .dashicons {
	font-size: 16px;
	width: 16px;
	height: 16px;
	color: #94a3b8;
}

.ms-card-actions {
	margin-top: auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 8px;
}

/* ==================== SEARCH LAYOUT ==================== */
.ms-search-container {
	margin: 30px auto;
	max-width: 1240px;
	padding: 0 16px;
}

.ms-search-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 30px;
	align-items: start;
}

.ms-sidebar-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 24px;
	box-shadow: var(--ms-shadow);
	position: sticky;
	top: 30px;
}

.ms-sidebar-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 18px;
	padding-bottom: 12px;
	border-bottom: 1px solid #f1f5f9;
}

.ms-sidebar-header h3 {
	margin: 0;
	font-size: 17px;
}

.ms-btn-link {
	background: none;
	border: none;
	color: var(--ms-primary);
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	padding: 0;
}

.ms-filter-group {
	margin-bottom: 18px;
}

.ms-filter-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 6px;
}

.ms-input, .ms-select, .ms-textarea {
	width: 100%;
	padding: 10px 12px;
	border-radius: var(--ms-radius-sm);
	border: 1px solid #cbd5e1;
	font-family: inherit;
	font-size: 14px;
	background: #ffffff;
	transition: border-color 0.2s ease;
}

.ms-input:focus, .ms-select:focus, .ms-textarea:focus {
	outline: none;
	border-color: var(--ms-primary);
	box-shadow: 0 0 0 3px rgba(158, 30, 66, 0.1);
}

.ms-radio-toggle {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 6px;
	background: #f1f5f9;
	padding: 4px;
	border-radius: 8px;
}

.ms-radio-toggle label {
	cursor: pointer;
	text-align: center;
	font-size: 13px;
	font-weight: 600;
	padding: 6px;
	border-radius: 6px;
	color: #475569;
}

.ms-radio-toggle input { display: none; }
.ms-radio-toggle input:checked + span {
	background: #ffffff;
	color: var(--ms-primary);
	display: block;
	padding: 4px;
	border-radius: 6px;
	box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.ms-range-inputs {
	display: flex;
	align-items: center;
	gap: 8px;
}

.ms-range-separator {
	color: #94a3b8;
	font-size: 13px;
}

.ms-custom-checkbox {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #334155;
	cursor: pointer;
	margin-bottom: 8px;
}

.ms-search-topbar {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: #ffffff;
	padding: 18px 24px;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	margin-bottom: 20px;
}

.ms-search-count-wrap h2 {
	margin: 0;
	font-size: 20px;
}

.ms-count-text {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ms-text-muted);
}

.ms-sort-wrap {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
}

.ms-select-sm {
	padding: 6px 10px;
	border-radius: 6px;
	border: 1px solid #cbd5e1;
	font-size: 13px;
}

/* Spinner */
.ms-loading-spinner {
	text-align: center;
	padding: 50px 0;
}

.ms-spinner {
	width: 40px;
	height: 40px;
	border: 4px solid #f1f5f9;
	border-top: 4px solid var(--ms-primary);
	border-radius: 50%;
	animation: ms-spin 0.8s linear infinite;
	margin: 0 auto 16px;
}

@keyframes ms-spin {
	0% { transform: rotate(0deg); }
	100% { transform: rotate(360deg); }
}

/* ==================== PROFILE DETAIL PAGE ==================== */
.ms-profile-detail-page {
	margin: 30px auto 60px;
}

.ms-detail-hero {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 30px;
	display: grid;
	grid-template-columns: 320px 1fr;
	gap: 36px;
	box-shadow: var(--ms-shadow);
	margin-bottom: 30px;
}

.ms-main-photo-wrap {
	width: 100%;
	border-radius: var(--ms-radius-sm);
	overflow: hidden;
	background: #f8fafc;
	aspect-ratio: 4/5;
	position: relative;
}

.ms-detail-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ms-photo-shield-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(15, 23, 42, 0.7);
	backdrop-filter: blur(8px);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	color: #ffffff;
	text-align: center;
	padding: 20px;
}

.ms-photo-shield-overlay .dashicons {
	font-size: 36px;
	width: 36px;
	height: 36px;
	margin-bottom: 8px;
}

.ms-gallery-thumbs {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
}

.ms-thumb-item {
	width: 60px;
	height: 60px;
	border-radius: 6px;
	object-fit: cover;
	cursor: pointer;
	border: 2px solid transparent;
	transition: all 0.2s ease;
}

.ms-thumb-item:hover, .ms-thumb-active {
	border-color: var(--ms-primary);
}

.ms-hero-header-line {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.ms-pid-group {
	display: flex;
	gap: 8px;
	align-items: center;
}

.ms-badge-pid-large {
	background: #1e293b;
	color: #ffffff;
	padding: 4px 12px;
	border-radius: 6px;
	font-weight: 700;
	font-size: 13px;
	letter-spacing: 0.5px;
}

.ms-badge-verified {
	background: #e0f2fe;
	color: #0284c7;
	padding: 4px 10px;
	border-radius: 6px;
	font-size: 12px;
	font-weight: 700;
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.ms-match-meter {
	background: var(--ms-primary-light);
	border: 1px solid rgba(158, 30, 66, 0.2);
	border-radius: 12px;
	padding: 6px 14px;
	display: flex;
	flex-direction: column;
	align-items: center;
}

.ms-match-percent {
	font-size: 20px;
	font-weight: 800;
	color: var(--ms-primary);
	line-height: 1;
}

.ms-match-label {
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	color: var(--ms-primary-dark);
}

.ms-hero-name {
	font-size: 28px;
	margin: 0;
	color: #0f172a;
}

.ms-hero-sub {
	font-size: 15px;
	color: var(--ms-text-muted);
	margin: 6px 0 18px;
}

.ms-hero-career-chips {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 24px;
}

.ms-chip {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	padding: 6px 12px;
	border-radius: 20px;
	font-size: 13px;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

.ms-chip .dashicons {
	color: var(--ms-primary);
	font-size: 16px;
	width: 16px;
	height: 16px;
}

.ms-hero-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	padding-top: 18px;
	border-top: 1px solid #f1f5f9;
}

.ms-detail-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 30px;
	align-items: start;
}

.ms-section-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 24px 28px;
	box-shadow: var(--ms-shadow);
	margin-bottom: 24px;
}

.ms-section-title {
	font-size: 18px;
	margin-bottom: 18px;
	padding-bottom: 10px;
	border-bottom: 1px solid #f1f5f9;
	display: flex;
	align-items: center;
	gap: 8px;
}

.ms-section-title .dashicons {
	color: var(--ms-primary);
}

.ms-info-table {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 24px;
}

.ms-info-row {
	display: flex;
	justify-content: space-between;
	padding-bottom: 8px;
	border-bottom: 1px dashed #f1f5f9;
	font-size: 14px;
}

.ms-info-lbl {
	color: var(--ms-text-muted);
	font-weight: 500;
}

.ms-info-val {
	font-weight: 600;
	color: #1e293b;
	text-align: right;
}

/* Contact Card */
.ms-contact-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 24px;
	box-shadow: var(--ms-shadow);
}

.ms-contact-lock-box {
	background: #f8fafc;
	border: 1px dashed #cbd5e1;
	border-radius: 10px;
	padding: 20px;
	text-align: center;
	margin-top: 12px;
}

.ms-lock-icon {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: #94a3b8;
	margin-bottom: 6px;
}

.ms-contact-unlocked-badge {
	display: inline-block;
	background: #dcfce7;
	color: #15803d;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 20px;
	margin-top: 8px;
}

/* ==================== USER DASHBOARD ==================== */
.ms-dashboard-wrap {
	max-width: 1200px;
	margin: 20px auto 50px;
	padding: 0 16px;
}

.ms-dash-topbar {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 20px 24px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	box-shadow: var(--ms-shadow);
	margin-bottom: 20px;
}

.ms-dash-user-info {
	display: flex;
	align-items: center;
	gap: 16px;
}

.ms-dash-avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	border: 2px solid var(--ms-primary);
}

.ms-dash-user-info h2 {
	margin: 0;
	font-size: 20px;
}

.ms-dash-pid {
	font-size: 14px;
	color: var(--ms-text-muted);
	font-weight: 500;
}

.ms-dash-sub {
	margin: 2px 0 0;
	font-size: 13px;
	color: var(--ms-text-muted);
}

.ms-dash-membership-tag {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ms-plan-badge {
	background: #fef3c7;
	color: #b45309;
	font-size: 12px;
	font-weight: 700;
	padding: 4px 12px;
	border-radius: 20px;
}

.ms-dash-nav {
	display: flex;
	gap: 8px;
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 8px 12px;
	margin-bottom: 24px;
	overflow-x: auto;
}

.ms-nav-item {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 14px;
	font-weight: 600;
	color: #475569;
	text-decoration: none;
	white-space: nowrap;
	transition: all 0.2s ease;
}

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

.ms-nav-active {
	background: var(--ms-primary-light) !important;
	color: var(--ms-primary) !important;
}

.ms-badge-count {
	background: var(--ms-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 2px 6px;
	border-radius: 10px;
}

.ms-dash-grid {
	display: grid;
	grid-template-columns: 1fr 340px;
	gap: 24px;
	align-items: start;
}

.ms-metric-row {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
	margin-bottom: 24px;
}

.ms-metric-box {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 18px;
	text-align: center;
	box-shadow: var(--ms-shadow);
}

.ms-metric-num {
	font-size: 26px;
	font-weight: 800;
	color: var(--ms-primary);
	line-height: 1.1;
}

.ms-metric-label {
	font-size: 13px;
	font-weight: 600;
	color: #475569;
	margin: 4px 0 6px;
}

.ms-metric-box a {
	font-size: 12px;
	color: var(--ms-primary);
	text-decoration: none;
	font-weight: 600;
}

.ms-dash-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 24px;
	box-shadow: var(--ms-shadow);
	margin-bottom: 24px;
}

.ms-dash-card-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 16px;
}

.ms-dash-card-header h3 {
	margin: 0;
	font-size: 18px;
}

.ms-progress-bar {
	height: 10px;
	background: #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 8px;
}

.ms-progress-fill {
	height: 100%;
	background: linear-gradient(90deg, #b8254c, #e11d48);
}

.ms-progress-text {
	font-size: 13px;
	color: #475569;
}

.ms-completion-tip {
	font-size: 13px;
	color: #64748b;
	margin: 10px 0 16px;
}

/* Mobile Bottom Nav */
.ms-mobile-bottom-nav {
	display: none;
	position: fixed;
	bottom: 0;
	left: 0;
	width: 100%;
	background: #ffffff;
	border-top: 1px solid #e2e8f0;
	box-shadow: 0 -4px 12px rgba(0,0,0,0.05);
	z-index: 999;
	justify-content: space-around;
	padding: 8px 0;
}

.ms-mob-link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-decoration: none;
	color: #64748b;
	font-size: 11px;
	font-weight: 600;
}

.ms-mob-link .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	margin-bottom: 2px;
}

.ms-mob-active {
	color: var(--ms-primary) !important;
}

/* ==================== 1-TO-1 CHAT ==================== */
.ms-chat-app {
	max-width: 1100px;
	margin: 20px auto;
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	overflow: hidden;
	box-shadow: var(--ms-shadow);
	height: 650px;
}

.ms-chat-layout {
	display: grid;
	grid-template-columns: 320px 1fr;
	height: 100%;
}

.ms-chat-sidebar {
	border-right: 1px solid #f1f5f9;
	display: flex;
	flex-direction: column;
	background: #fafafa;
}

.ms-chat-sidebar-header {
	padding: 18px 20px;
	border-bottom: 1px solid #f1f5f9;
}

.ms-chat-sidebar-header h3 {
	margin: 0;
	font-size: 18px;
}

.ms-chat-threads-list {
	flex-grow: 1;
	overflow-y: auto;
}

.ms-thread-item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	border-bottom: 1px solid #f1f5f9;
	text-decoration: none;
	color: inherit;
	transition: background 0.15s ease;
}

.ms-thread-item:hover, .ms-thread-active {
	background: #ffffff;
}

.ms-thread-active {
	border-left: 3px solid var(--ms-primary);
}

.ms-thread-avatar {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	object-fit: cover;
}

.ms-thread-info {
	flex-grow: 1;
	min-width: 0;
}

.ms-thread-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
}

.ms-thread-name {
	font-size: 14px;
	font-weight: 700;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.ms-thread-time {
	font-size: 11px;
	color: #94a3b8;
}

.ms-thread-bottom {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
}

.ms-thread-snippet {
	font-size: 12px;
	color: #64748b;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 170px;
}

.ms-chat-main {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: #ffffff;
}

.ms-chat-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 16px 24px;
	border-bottom: 1px solid #f1f5f9;
}

.ms-chat-user-box {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ms-chat-user-avatar {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	object-fit: cover;
}

.ms-chat-partner-name {
	margin: 0;
	font-size: 16px;
	font-weight: 700;
}

.ms-chat-partner-link {
	font-size: 12px;
	color: var(--ms-primary);
	text-decoration: none;
}

.ms-chat-messages {
	flex-grow: 1;
	padding: 20px;
	overflow-y: auto;
	display: flex;
	flex-direction: column;
	gap: 12px;
	background: #fdfbf9;
}

.ms-message-bubble {
	max-width: 70%;
	padding: 10px 14px;
	border-radius: 12px;
	font-size: 14px;
	line-height: 1.4;
	position: relative;
}

.ms-msg-sent {
	align-self: flex-end;
	background: var(--ms-primary);
	color: #ffffff;
	border-bottom-right-radius: 2px;
}

.ms-msg-received {
	align-self: flex-start;
	background: #ffffff;
	color: #1e293b;
	border: 1px solid #e2e8f0;
	border-bottom-left-radius: 2px;
}

.ms-msg-meta {
	font-size: 10px;
	display: flex;
	justify-content: flex-end;
	gap: 4px;
	margin-top: 4px;
	opacity: 0.8;
}

.ms-chat-input-bar {
	display: flex;
	padding: 14px 20px;
	border-top: 1px solid #f1f5f9;
	background: #ffffff;
	gap: 10px;
}

.ms-chat-input-bar textarea {
	flex-grow: 1;
	border: 1px solid #cbd5e1;
	border-radius: 20px;
	padding: 10px 16px;
	font-family: inherit;
	font-size: 14px;
	resize: none;
	outline: none;
}

.ms-chat-send-btn {
	width: 44px;
	height: 44px;
	border-radius: 50%;
	padding: 0;
}

/* ==================== MEMBERSHIP PRICING ==================== */
.ms-membership-pricing-wrap {
	max-width: 1200px;
	margin: 40px auto;
	padding: 0 16px;
}

.ms-pricing-header {
	text-align: center;
	max-width: 650px;
	margin: 0 auto 40px;
}

.ms-pricing-tagline {
	display: inline-block;
	color: var(--ms-primary);
	font-weight: 700;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 1px;
	margin-bottom: 8px;
}

.ms-pricing-header h2 {
	font-size: 32px;
	margin: 0 0 10px;
}

.ms-active-plan-banner {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	background: #fef3c7;
	color: #92400e;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 13px;
	margin-top: 16px;
}

.ms-pricing-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
	gap: 24px;
}

.ms-pricing-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 30px 24px;
	box-shadow: var(--ms-shadow);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: all 0.25s ease;
}

.ms-pricing-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--ms-shadow-hover);
}

.ms-card-popular {
	border: 2px solid var(--ms-primary);
	box-shadow: 0 8px 30px rgba(158, 30, 66, 0.15);
}

.ms-popular-ribbon {
	position: absolute;
	top: -12px;
	left: 50%;
	transform: translateX(-50%);
	background: var(--ms-primary);
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 14px;
	border-radius: 20px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.ms-plan-title {
	font-size: 20px;
	margin-bottom: 12px;
}

.ms-plan-price-wrap {
	display: flex;
	align-items: baseline;
	gap: 2px;
	margin-bottom: 4px;
}

.ms-currency {
	font-size: 22px;
	font-weight: 700;
	color: #1e293b;
}

.ms-plan-price {
	font-size: 38px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1;
}

.ms-plan-duration {
	font-size: 13px;
	color: var(--ms-text-muted);
	display: block;
	margin-bottom: 24px;
}

.ms-plan-features-list {
	list-style: none;
	padding: 0;
	margin: 0 0 28px;
	border-top: 1px solid #f1f5f9;
	padding-top: 18px;
	flex-grow: 1;
}

.ms-plan-features-list li {
	font-size: 14px;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 8px;
	color: #334155;
}

.ms-feat-check {
	color: var(--ms-success);
	font-weight: 800;
}

/* ==================== AUTH CARDS ==================== */
.ms-auth-wrap {
	max-width: 540px;
	margin: 40px auto;
	padding: 0 16px;
}

.ms-auth-card {
	background: #ffffff;
	border-radius: var(--ms-radius);
	border: 1px solid var(--ms-border);
	padding: 36px 32px;
	box-shadow: var(--ms-shadow);
}

.ms-auth-header {
	text-align: center;
	margin-bottom: 26px;
}

.ms-auth-heart {
	font-size: 32px;
	width: 32px;
	height: 32px;
	color: var(--ms-primary);
	margin-bottom: 8px;
}

.ms-auth-header h2 {
	font-size: 24px;
	margin: 0;
}

.ms-auth-tagline {
	font-size: 14px;
	color: var(--ms-text-muted);
	margin: 4px 0 0;
}

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

.ms-label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #334155;
	margin-bottom: 5px;
}

.ms-form-grid-2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px;
}

.ms-form-grid-3 {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.ms-auth-footer {
	text-align: center;
	margin-top: 20px;
	font-size: 13px;
	color: #64748b;
}

.ms-auth-footer a {
	color: var(--ms-primary);
	font-weight: 600;
	text-decoration: none;
}

/* Photo Upload Box in Editor */
.ms-photo-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ms-photo-box {
	position: relative;
	width: 120px;
	height: 140px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e2e8f0;
}

.ms-photo-box img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ms-photo-primary {
	border: 2px solid var(--ms-primary);
}

.ms-primary-tag {
	position: absolute;
	bottom: 0;
	left: 0;
	width: 100%;
	background: var(--ms-primary);
	color: #ffffff;
	font-size: 10px;
	font-weight: 700;
	text-align: center;
	padding: 2px 0;
}

.ms-btn-delete-photo {
	position: absolute;
	top: 4px;
	right: 4px;
	background: rgba(0,0,0,0.6);
	color: #ffffff;
	border: none;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	cursor: pointer;
	font-size: 12px;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ms-photo-upload-card {
	width: 120px;
	height: 140px;
	border: 2px dashed #cbd5e1;
	border-radius: 8px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s ease;
	text-align: center;
	padding: 10px;
}

.ms-photo-upload-card:hover {
	border-color: var(--ms-primary);
	background: var(--ms-primary-light);
}

.ms-upload-icon {
	font-size: 26px;
	width: 26px;
	height: 26px;
	color: var(--ms-primary);
	margin-bottom: 4px;
}

/* Responsive Media Queries */
@media (max-width: 900px) {
	.ms-search-layout {
		grid-template-columns: 1fr;
	}
	.ms-detail-hero {
		grid-template-columns: 1fr;
	}
	.ms-detail-grid {
		grid-template-columns: 1fr;
	}
	.ms-dash-grid {
		grid-template-columns: 1fr;
	}
	.ms-chat-layout {
		grid-template-columns: 1fr;
	}
	.ms-metric-row {
		grid-template-columns: 1fr 1fr;
	}
	.ms-mobile-bottom-nav {
		display: flex;
	}
	.ms-dashboard-wrap {
		margin-bottom: 80px;
	}
}

@media (max-width: 600px) {
	.ms-form-grid-2,
	.ms-form-grid-3,
	.ms-info-table {
		grid-template-columns: 1fr;
	}
	.ms-dash-topbar {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}
}
