* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; background-color: #F0F4F0; color: #1A2A1A; line-height: 1.4; }
:root {
    --primary: #4CAF7F; --primary-dark: #3d8c64; --primary-light: #e2f3ea;
    --primary-ultralight: #f0faf5; --gray-bg: #F7F9F7; --gray-card: #FFFFFF;
    --text-dark: #1A2A1A; --text-gray: #5E6E5E; --border-light: #DEE6DE;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.03); --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05);
    --status-green: #2e7d32; --status-green-bg: #e8f5e9; --status-red: #c62828; --status-red-bg: #ffebee;
}
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.header { background: white; padding: 14px 0; border-bottom: 1px solid var(--border-light); position: sticky; top: 0; z-index: 10; }
.header-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.logo { font-size: 1.5rem; font-weight: 700; color: var(--primary); cursor: pointer; text-decoration: none; }
.nav { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--text-dark); font-weight: 500; transition: color 0.2s; cursor: pointer; }
.nav a:hover { color: var(--primary); }
.btn-primary { background: var(--primary); color: white; border: none; padding: 10px 20px; border-radius: 40px; font-weight: 600; cursor: pointer; transition: background 0.2s; font-size: 0.85rem; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--border-light); padding: 8px 18px; border-radius: 40px; background: white; font-weight: 500; cursor: pointer; transition: all 0.2s; color: var(--text-dark); font-size: 0.85rem; }
.btn-outline:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-max { background: #1A73E8; color: white; padding: 8px 18px; border-radius: 40px; font-size: 0.75rem; font-weight: 600; text-decoration: none; display: inline-block; transition: background 0.2s; }
.hero { text-align: center; padding: 60px 0 48px; }
.hero h1 { font-size: 3rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 20px; }
.hero p { font-size: 1.2rem; color: var(--text-gray); max-width: 640px; margin: 0 auto 32px; }
.search-bar { max-width: 600px; margin: 0 auto 24px; display: flex; background: white; border: 1px solid var(--border-light); border-radius: 60px; padding: 6px 6px 6px 24px; box-shadow: var(--shadow-sm); }
.search-bar input { flex: 1; border: none; padding: 14px 0; font-size: 1rem; outline: none; background: transparent; }
.search-bar button { background: var(--primary); border: none; border-radius: 60px; padding: 10px 28px; color: white; font-weight: 600; cursor: pointer; }
.chips { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.chip { background: var(--gray-bg); padding: 8px 18px; border-radius: 40px; font-size: 0.9rem; font-weight: 500; cursor: pointer; transition: all 0.2s; }
.chip:hover { background: var(--primary-light); color: var(--primary-dark); }
.section-title { font-size: 1.8rem; font-weight: 700; margin: 40px 0 12px; }
.section-sub { color: var(--text-gray); margin-bottom: 32px; font-size: 1rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 28px; margin: 32px 0 24px; }
.card { background: white; border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.25s ease; cursor: pointer; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.card-title { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.card-address { font-size: 0.75rem; color: var(--text-gray); margin-bottom: 12px; }
.card-stats { color: var(--text-gray); font-size: 0.75rem; margin: 12px 0; }
.card-avatar { width: 48px; height: 48px; background: var(--primary-light); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary); font-size: 1.25rem; overflow: hidden; }
.card-avatar img { width: 100%; height: 100%; object-fit: cover; }
.loading { text-align: center; padding: 60px; color: var(--text-gray); }
.dashboard { display: none; }
.dashboard-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin: 24px 0; }
.profile-card { background: white; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); text-align: center; }
.avatar-large { width: 120px; height: 120px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 3rem; color: var(--primary); cursor: pointer; overflow: hidden; position: relative; }
.avatar-large img { width: 100%; height: 100%; object-fit: cover; }
.avatar-upload-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; font-size: 0.7rem; padding: 4px; text-align: center; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.avatar-large:hover .avatar-upload-label { opacity: 1; }
.status-switch { display: inline-block; padding: 6px 18px; border-radius: 40px; font-size: 0.8rem; font-weight: 600; cursor: pointer; margin: 12px 0; transition: all 0.2s ease; border: 1px solid transparent; }
.status-switch.online { background: var(--status-green-bg); color: var(--status-green); border-color: var(--status-green); }
.status-switch.offline { background: var(--status-red-bg); color: var(--status-red); border-color: var(--status-red); }
.widget-card { background: white; border-radius: 24px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.widget-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.info-row { display: flex; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.info-label { font-size: 0.85rem; color: var(--text-gray); min-width: 100px; margin-left: 8px; }
.info-value { flex: 1; font-size: 0.9rem; color: var(--text-dark); margin-left: 8px; }
.edit-icon { color: #9e9e9e; cursor: pointer; font-size: 0.7rem; transition: color 0.2s; margin-right: 4px; }
.info-edit-input { flex: 1; padding: 6px 10px; border: 1px solid var(--border-light); border-radius: 12px; font-size: 0.85rem; margin-left: 8px; }
.edit-actions { display: flex; gap: 6px; margin-left: 8px; }
.interests-list { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; width: 100%; }
.interest-item { display: flex; align-items: center; margin-bottom: 12px; }
.interest-name { font-size: 0.9rem; color: var(--text-dark); margin-left: 8px; flex: 1; }
.edit-interest { color: #9e9e9e; cursor: pointer; font-size: 0.7rem; margin-right: 4px; }
.add-interest { display: flex; gap: 8px; margin-top: 16px; width: 100%; }
.add-interest input { flex: 1; padding: 8px 12px; border: 1px solid var(--border-light); border-radius: 40px; font-size: 0.8rem; }
.btn-small { background: var(--primary); color: white; border: none; padding: 8px 16px; border-radius: 40px; font-size: 0.75rem; cursor: pointer; }
.favorite-item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.favorite-avatar { width: 40px; height: 40px; background: var(--primary-light); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 1rem; overflow: hidden; }
.favorite-avatar img { width: 100%; height: 100%; object-fit: cover; }
.favorite-info { flex: 1; }
.modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); z-index: 1000; align-items: center; justify-content: center; }
.modal.active { display: flex; }
.modal-content { background: white; border-radius: 32px; padding: 32px; max-width: 500px; width: 90%; }
.modal-content input, .modal-content textarea { width: 100%; padding: 12px; margin: 12px 0; border: 1px solid var(--border-light); border-radius: 12px; font-size: 1rem; font-family: 'Inter', sans-serif; }
.modal-content textarea { resize: vertical; min-height: 80px; }
.footer { border-top: 1px solid var(--border-light); padding: 40px 0 32px; margin-top: 40px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; font-size: 0.8rem; color: var(--text-gray); }
.footer-links { display: flex; gap: 32px; flex-wrap: wrap; }
.section-profile { display: grid; grid-template-columns: 360px 1fr; gap: 32px; margin: 32px 0; }
.section-info-card { background: white; border-radius: 28px; padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); text-align: center; height: fit-content; }
.section-avatar { width: 120px; height: 120px; background: var(--primary-light); border-radius: 60px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; font-size: 3rem; color: var(--primary); cursor: pointer; overflow: hidden; position: relative; }
.section-avatar img { width: 100%; height: 100%; object-fit: cover; }
.section-avatar .avatar-upload-label { position: absolute; bottom: 0; left: 0; right: 0; background: rgba(0,0,0,0.6); color: white; font-size: 0.7rem; padding: 4px; text-align: center; cursor: pointer; opacity: 0; transition: opacity 0.2s; }
.section-avatar:hover .avatar-upload-label { opacity: 1; }
.section-name { font-size: 1.3rem; font-weight: 700; margin: 12px 0 8px; }
.trainer-name { color: var(--text-gray); font-size: 0.85rem; margin-bottom: 12px; }
.rating { margin-bottom: 20px; color: #ffb800; }
.chat-card { background: var(--primary-ultralight); border-radius: 20px; padding: 16px; text-align: center; margin: 16px 0; }
.chat-link-input { display: flex; gap: 8px; margin-top: 8px; }
.groups-widget { background: white; border-radius: 24px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); }
.group-item { display: flex; align-items: center; margin-bottom: 16px; flex-wrap: wrap; padding: 8px 0; border-bottom: 1px solid var(--border-light); }
.group-age { font-weight: 600; min-width: 140px; font-size: 0.85rem; }
.group-schedule { flex: 1; font-size: 0.8rem; color: var(--text-gray); }
.group-price { font-weight: 700; color: var(--primary); font-size: 0.85rem; min-width: 80px; text-align: right; }
.price-label { font-size: 0.7rem; color: var(--text-gray); margin-left: 8px; }
.add-group { display: flex; gap: 8px; margin-top: 16px; }
.individual-section { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--border-light); }
.individual-row { display: flex; align-items: center; gap: 12px; margin-top: 12px; }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--border-light); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.review-avatar { width: 36px; height: 36px; background: var(--gray-bg); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 0.8rem; }
.community-card { background: white; border-radius: 24px; padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--border-light); transition: all 0.25s ease; cursor: pointer; }
.community-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.community-avatar { width: 64px; height: 64px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; color: var(--primary); font-size: 2rem; overflow: hidden; }
.community-avatar img { width: 100%; height: 100%; object-fit: cover; }
.community-name { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.community-desc { font-size: 0.8rem; color: var(--text-gray); margin-bottom: 12px; line-height: 1.4; }
.community-stats { display: flex; gap: 16px; margin-bottom: 16px; font-size: 0.7rem; color: var(--text-gray); }
.user-menu { position: relative; cursor: pointer; }
.user-avatar-small { width: 40px; height: 40px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; color: var(--primary); overflow: hidden; cursor: pointer; transition: all 0.2s; border: 2px solid var(--primary-light); }
.user-avatar-small:hover { border-color: var(--primary); }
.user-avatar-small img { width: 100%; height: 100%; object-fit: cover; }
.dropdown-menu { position: absolute; top: 50px; right: 0; background: white; border-radius: 16px; box-shadow: var(--shadow-md); border: 1px solid var(--border-light); width: 200px; z-index: 100; display: none; overflow: hidden; }
.dropdown-menu.active { display: block; }
.dropdown-item { padding: 12px 20px; display: flex; align-items: center; gap: 12px; cursor: pointer; transition: background 0.2s; color: var(--text-dark); text-decoration: none; }
.dropdown-item:hover { background: var(--primary-light); }
.dropdown-item i { width: 20px; color: var(--text-gray); }
.dropdown-divider { height: 1px; background: var(--border-light); margin: 4px 0; }
.member-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: white; border-radius: 16px; margin-bottom: 8px; border: 1px solid var(--border-light); cursor: pointer; transition: all 0.2s; }
.member-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); background: var(--primary-ultralight); }
.member-avatar { width: 48px; height: 48px; background: var(--primary-light); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 600; color: var(--primary); overflow: hidden; }
.member-avatar img { width: 100%; height: 100%; object-fit: cover; }
.member-info { flex: 1; }
.member-name { font-weight: 600; margin-bottom: 4px; }
.member-role { font-size: 0.7rem; color: var(--text-gray); }
@media (max-width: 900px) { .dashboard-grid, .section-profile { grid-template-columns: 1fr; } .container { padding: 0 16px; } .hero h1 { font-size: 2rem; } .header-inner { flex-direction: column; align-items: flex-start; } .nav { width: 100%; justify-content: space-between; } }